cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W options their own entries.
[gcc.git] / gcc / ChangeLog
1 2002-06-07 Zack Weinberg <zack@codesourcery.com>
2
3 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
4 options their own entries.
5 (parse_option): Clarify comment.
6 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
7 special case. Replace if/strcmp chain for -W options with
8 use of new OPT_* entries for them.
9 (cpp_handle_options): Update to match.
10 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
11 * c-decl.c: Update call to cpp_handle_option.
12
13 2002-06-07 Akim Demaille <akim@epita.fr>
14
15 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
16 Whitespace changes.
17
18 2002-06-07 Jeffrey Law <law@redhat.com>
19
20 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
21 on empty lists.
22
23 2002-06-07 H.J. Lu (hjl@gnu.org)
24
25 * configure.in: Add --enable-__cxa_atexit.
26 * configure: Regenerated.
27 * config.in: Likewise.
28
29 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
30 not defined.
31
32 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
33
34 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
35
36 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
37
38 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
39
40 2002-06-07 Jason Merrill <jason@redhat.com>
41
42 * cppexp.c (num_equality_op): Use a temporary variable to work
43 around gcc 3.0.4 bug.
44
45 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
46
47 * diagnostic.c (diagnostic_build_prefix): Tidy.
48
49 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
50
51 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
52 scan_parameters, save_replacement_text, replacement_length): New.
53 (scan_out_logical_line): Take a macro and save parameters if
54 non-NULL.
55 (_cpp_logical_line_trad): Update.
56 (_cpp_create_trad_definition): Update to handle function-like
57 macros.
58 * cpplex.c (new_buff): Update.
59 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
60 * cpphash.h: ...here.
61 (CPP_ALIGN2, _cpp_save_parameter): New.
62 * cppmacro.c (save_parameter): Rename, export.
63 (parse_params): Update.
64
65 2002-06-07 Andreas Jaeger <aj@suse.de>
66
67 * config/mmix/mmix.c: Remove extra broken prototype for
68 mmix_init_machine_status.
69
70 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
71
72 * gengtype.c: Add comments before all the routines.
73
74 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
75
76 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
77 from and add t-sh64 to ${tmake_file}.
78 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
79 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
80 * config/sh/t-netbsd-sh5-32: Remove.
81 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
82 MULTILIB_ENDIAN.
83 (MULTILIB_DIRNAMES): Define.
84
85 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
86
87 * i386.md (and promoting splitters): Disable QI to SImode promoting
88 when doing so changes immediate to be 32bit.
89
90 * rtl.h (emit_*_scope): Declare.
91 * emit-rtl.c (emit_*_scope): New global functions.
92 (try_split): Copy scope.
93 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
94 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
95 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
96 noce_process_if_block, find_cond_trap): Copy scopes.
97 * recog.c (peephole2_optimize): likewise.
98
99 2002-06-06 Jeffrey Law <law@redhat.com>
100
101 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
102
103 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
104
105 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
106
107 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
108
109 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
110 ($(docdir)/gccinstall.info): New target.
111 (info): Depend on it.
112 (gccinstall.dvi): New target.
113 (dvi): Depend on it.
114 * doc/.cvsignore: Ignore new info files.
115 * doc/install.texi (@setfilename): Reflect new info filename.
116
117 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
118
119 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
120 on an UNSPEC.
121
122 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
123
124 PR objc/6834
125 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
126 c_common_get_alias_set.
127 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
128
129 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
130
131 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
132 functions.
133 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
134 * avr/avr.c (avr_output_function_epilogue): Use above to determine
135 function size.
136 * pa/pa.c (pa_output_function_prologue): Likewise.
137
138 2002-06-05 David S. Miller <davem@redhat.com>
139
140 * integrate.c (subst_constants): Handle 'B' RTL format.
141
142 2002-06-05 Eric Christopher <echristo@redhat.com>
143
144 * varasm.c (make_decl_rtl): Fix comment for removed
145 halfpic.c.
146
147 2002-06-05 Eric Christopher <echristo@redhat.com>
148
149 * Makefile.in: Remove missed halfpic bits.
150
151 2002-06-05 Eric Christopher <echristo@redhat.com>
152
153 * toplev.c: Remove half-pic.
154 * config/mips/mips.c: Ditto.
155 * config/mips/mips.h: Ditto. Remove unused defines.
156 * config/mips/openbsd.h: Update comment to reflect above.
157 * config/mips/mips.md: Remove half-pic constraints.
158 * halfpic.h: Delete.
159 * halfpic.c: Ditto.
160
161 2002-06-05 Jeffrey Law <law@redhat.com>
162
163 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
164 rejects (mem (lo_sum (reg) (unspec))), but will allow
165 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
166
167 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
168
169 * cpphash.h (_cpp_create_definition): Update prototype.
170 (_cpp_push_text_context, _cpp_create_trad_definition): New.
171 ( cpp_lex_identifier_trad): New.
172 (_cpp_set_trad_context): New.
173 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
174 * cpplib.c (SEEN_EOL): Update.
175 (lex_macro_node): Update for -traditional.
176 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
177 * cppmacro.c (_cpp_create_definition): Split into
178 create_iso_definition() and _cpp_create_trad_definition().
179 (warn_of_redefinition): Update prototype; handle traditional
180 macros.
181 (_cpp_push_text_context): New.
182 * cpptrad.c (skip_whitespace, push_replacement_text): New.
183 (lex_identifier): Call ht_lookup with correct start.
184 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
185 _cpp_set_trad_context): New.
186 (scan_out_logical_line): Update to handle changing contexts.
187
188 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
189
190 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
191 (shl*-*-elf*): Add.
192 * config/sh/t-be (MULTILIB_ENDIAN): Set.
193 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
194 * t-sh (MULTILIB_ENDIAN): Set.
195 (MULTILIB_OPTIONS): Use it.
196 * t-sh64 (MULTILIB_OPTIONS): Likewise.
197 (MULTILIB_DIRNAMES): Likewise.
198
199 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
200
201 * toplev.h (report_error_function): Remove.
202
203 * diagnostic.h (location_t): New datatype.
204 (text_info): Likewise.
205 (diagnostic_info): Likewise.
206 (output_prefix): New macro.
207 (diagnostic_last_function_changed): Likewise.
208 (diagnostic_set_last_function): Likewise.
209 (diagnostic_last_module_changed): Likewise.
210 (diagnostic_set_last_module): Likewise.
211 (report_diagnostic): Now macro.
212 (diagnostic_set_info): Declare.
213
214 * diagnostic.c (report_problematic_module): Rename to
215 diagnostic_repor_current_module.
216 (set_diagnostic_context): Remove.
217 (count_error): Rename to diagnostic_error_count.
218 (error_function_changed): Remove.
219 (record_last_error_function): Likewise.
220 (error_module_changed): Likewise.
221 (record_last_error_module): Likewise.
222 (context_as_prefix): Rename to diagnostic_build_prefix.
223 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
224 (diagnostic_set_info): New function.
225
226 * objc/objc-act.c: #include diagnostic.h
227 (error_with_ivar): Adjust call to count_error.
228 (warn_with_method): Likewise.
229 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
230
231 2002-06-05 Bob Wilson <bob.wilson@acm.org>
232
233 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
234 lang_hooks.types.make_type instead of make_node; set up
235 __va_list_tag type decl.
236 (xtensa_builtin_saveregs): Remove broken use of
237 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
238 for saved registers; add varargs alias set.
239
240 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
241
242 config:
243 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
244 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
245 CPP_PREDEFINES and part of CPP_SPEC.
246 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
247 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
248
249 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
250
251 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
252
253 2002-06-05 Alan Modra <amodra@bigpond.net.au>
254
255 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
256
257 2002-06-04 Zack Weinberg <zack@codesourcery.com>
258
259 * gengtype-yacc.y: Make sure all rules end with a semicolon.
260
261 2002-06-04 Bob Wilson <bob.wilson@acm.org>
262
263 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
264 typo in function prototype and include "ggc.h" header.
265
266 2002-06-04 Richard Henderson <rth@redhat.com>
267
268 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
269 (print_operand) ['U']: Likewise.
270 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
271 (alpha_expand_unaligned_store_words): Likewise.
272 (alpha_expand_builtin_vector_binop): Fix typo.
273 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
274 umulh, and cix insns.
275 (one_arg_builtins): Add cix builtins.
276 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
277 (alpha_expand_builtin): Fix typo in arity.
278 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
279 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
280 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
281 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
282 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
283 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
284 builtin_ctlz, builtin_ctpop): New.
285 * doc/extend.texi (Alpha Built-in Functions): Update.
286
287 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
288
289 * gengtype.c (write_gc_root): Don't unnecessarily prevent
290 global variable-length arrays being roots.
291
292 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
293 * configure.in (config_gtfiles): New variable.
294 (all_gtfiles): Initialise from config_gtfiles.
295 * configure: Regenerate.
296
297 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
298
299 config/i386:
300 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
301 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
302 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
303 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
304 win32.h (CPP_SPEC): Remove cpp_cpu.
305 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
306 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
307
308 2002-06-04 Janis Johnson <janis187@us.ibm.com>
309
310 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
311
312 2002-06-04 Jeff Law <law@redhat.com.
313 David Edelsohn <edelsohn@gnu.org>
314 Michael Matz <matz@kde.org>
315
316 * sched-int.h (struct deps): New field libcall_block_tail_insn.
317 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
318 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
319 is set, then mark the current insn as being part of a libcall
320 scheduling group.
321 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
322
323 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
324 insns against the issue rate.
325
326 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
327
328 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
329 * final.c (final_scan_insn): Likewise.
330 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
331 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
332 * haifa-sched.c (unlink_other_notes): Likeewise.
333 (reemit_notes): Likewise.
334 * print-rtl.c (print_rtx): Likewise.
335 * sched-deps (sched-analyze): Likewise.
336 * rtl.c (note_insn_name): Likewise.
337 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
338 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
339 (RANGE_*): Kill.
340
341 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
342
343 * varasm.c (mark_constants): Handle RTX format 'B'.
344
345 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
346
347 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
348 (struct cpp_context): Add traditional fields.
349 * cppmacro.c (paste_all_tokens, push_ptoken_context,
350 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
351 * cpptrad.c (skip_comment, lex_identifier,
352 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
353
354 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
355
356 * gbl-ctors.h: Fix formatting.
357 * gcc.c: Likewise.
358 * gccspec.c: Likewise.
359 * gcov.c: Likewise.
360 * gcov-io.h: Likewise.
361 * gcse.c: Likewise.
362 * ggc-common.c: Likewise.
363 * ggc.h: Likewise.
364 * ggc-page.c: Likewise.
365 * ggc-simple.c: Likewise.
366 * global.c: Likewise.
367 * graph.h: Likewise.
368 * gthr-dce.h: Likewise.
369 * gthr.h: Likewise.
370 * gthr-posix.h: Likewise.
371 * gthr-rtems.h: Likewise.
372 * gthr-solaris.h: Likewise.
373 * gthr-win32.h: Likewise.
374
375 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
376
377 Merge from pch-branch:
378
379 * gengtype.h (UNION_OR_STRUCT_P): New macro.
380 * gengtype.c (write_gc_structure_fields): Use it.
381 (write_gc_root): Use it here too.
382
383 * gengtype.c (write_gc_structure_fields): Assume that lengths
384 of typenames fit into an 'int'; don't pass a size_t to "%d" in
385 printf.
386 (write_gc_marker_routine_for_structure): Likewise.
387 (write_gc_types): Likewise.
388 (write_gc_root): Likewise.
389
390 * varray.h (VARRAY_CLEAR): New.
391 (varray_clear): Prototype.
392 * varray.c (varray_clear): New.
393 * cselib.c (reg_values_old): New.
394 (used_regs_old): New.
395 (cselib_init): Use cached varrays if available to avoid
396 generating large amounts of garbage.
397 (cselib_finish): Don't throw away old varrays.
398
399 * final.c (insn_addresses_): Move out of ifdef.
400
401 * varray.c (uses_ggc): Make more varray kinds GCable.
402 * varray.h (union varray_data_tag): Let gengtype see
403 fields 'generic' and 'te'.
404 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
405 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
406 (reg_to_stack): Don't call VARRAY_FREE.
407 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
408 (insn_addresses_): Use gengtype to mark.
409 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
410 pointers; handle generic pointers in unused union fields.
411 (get_output_file_with_visibility): Include cselib.h,
412 insn-addr.h in gtype-desc.c.
413 * function.c (prologue): Use gengtype to mark.
414 (epilogue): Likewise.
415 (sibcall_epilogue): Likewise.
416 * dependence.c: Include gt-dependence.h, ggc.h.
417 (struct def_use): Use gengtype to mark.
418 (struct loop): Likewise.
419 (struct induction): Likewise.
420 (struct dependence): Likewise.
421 (def_use_chain): Likewise.
422 (dep_chain): Likewise.
423 (loop_chain): Likewise.
424 (induction_chain): Likewise.
425 (init_dependence_analysis): Don't free anything, just clear pointers.
426 (build_def_use): Use GGC to allocate def_use.
427 (add_loop): Use GGC to allocate loop.
428 (find_induction_variable): Use GGC to allocate induction.
429 (check_node_dependence): Use GGC to allocate induction, dependence.
430 (dump_node_dependence): Don't free varrays.
431 (end_dependence_analysis): Likewise.
432 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
433 (struct elt_loc_list): Likewise.
434 (struct elt_list): Likewise.
435 * cselib.c: Don't include obstack.h.
436 (hash_table): Use gengtype to mark.
437 (reg_values): Use gengtype to mark.
438 (used_regs): Use gengtype to mark.
439 (cselib_obstack): Delete.
440 (cselib_startobj): Delete.
441 (empty_vals): Mark as deletable.
442 (empty_elt_lists): Mark as deletable.
443 (empty_elt_loc_lists): Mark as deletable.
444 (new_elt_list): Use GGC to allocate struct elt_list.
445 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
446 (clear_table): Don't delete obstack; don't unnecessarily clear
447 deletable variables.
448 (new_cselib_val): Use GGC to allocate struct cselib_val.
449 (cselib_init): Don't set up obstacks. Use GGC to allocate
450 hash table.
451 (cselib_finish): Just clear variables, don't free anything.
452 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
453 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
454 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
455 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
456 (gt-reg-stack.h): New rule.
457 (gt-dependence.h): New rule.
458 (gtype-desc.o): Add cselib.h, insn-addr.h.
459
460 * varray.c: Use only necessary headers.
461 (element_size): New.
462 (uses_ggc): New.
463 (varray_init): Take type, not size. Use GGC if appropriate.
464 (varray_grow): Update for change to struct varray_head_tag.
465 Use GGC if appropriate.
466 * varray.h (struct const_equiv_data): Use gengtype.
467 (enum varray_data_enum): New.
468 (union varray_data_tag): Use gengtype.
469 (struct varray_head_tag): Use gengtype. Replace size field with
470 enum varray_data_enum.
471 (varray_init): Update prototype.
472 (VARRAY_SCHED_INIT): Delete.
473 (VARRAY_*_INIT): Update for change to varray_init.
474 (VARRAY_SCHED): Delete.
475 (VARRAY_PUSH_SCHED): Delete.
476 (VARRAY_TOP_SCHED): Delete.
477 * tree.h: Update for change to length specifier.
478 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
479 (clone_body): Likewise.
480 * ssa.h (ssa_definition): Use gengtype to mark.
481 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
482 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
483 * rtl.h (struct rtvec_def): Update for change to length specifier.
484 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
485 (struct initial_value_struct): Update for change to length specifier.
486 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
487 (ggc_add_tree_varray_root): Delete prototype.
488 (ggc_mark_rtx_varray): Delete prototype.
489 (ggc_mark_tree_varray): Delete prototype.
490 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
491 (ggc_add_tree_varray_root): Delete.
492 (ggc_mark_rtx_varray): Delete.
493 (ggc_mark_tree_varray): Delete.
494 (ggc_mark_rtx_varray_ptr): Delete.
495 (ggc_mark_tree_varray_ptr): Delete.
496 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
497 (create_varray): Delete prototype.
498 * gengtype.c (varrays): Delete.
499 (create_varray): Delete.
500 (adjust_field_type): Detect array of string pointers.
501 (process_gc_options): Remove code to handle varray_type option.
502 (set_gc_used_type): Remove TYPE_VARRAY case.
503 (output_escaped_param): New.
504 (write_gc_structure_fields): Use output_escaped_param on all
505 parameters. Handle 'skip' with 'use_param' option. Handle
506 arrays of strings. Remove TYPE_VARRAY handling.
507 (write_gc_roots): Use boolean to detect 'length' option.
508 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
509 (struct_fields): Call adjust_field_type on array fields.
510 (type): Remove VARRAY_TYPE case.
511 (type_option): Likewise.
512 * gengtype-lex.l: Don't consider varray_type a keyword.
513 * function.h: Update for change to length specifier.
514 (free_eh_status): Delete prototype.
515 * function.c (free_after_compilation): Don't call free_eh_status.
516 (reorder_blocks): Don't use VARRAY_FREE.
517 * except.c (struct eh_status): Update for change to length specifier.
518 remove varray_type specifier.
519 (free_eh_status): Delete.
520 * dwarf2out.c: Include gt-dwarf2out.h.
521 (used_rtx_varray): Use gengtype to mark, move
522 outside ifdefs.
523 (incomplete_types): Likewise.
524 (decl_scope_table): Likewise.
525 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
526 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
527 * c-tree.h (struct lang_type): Update for change to length specifier.
528 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
529 * c-objc-common.c: Include gt-c-objc-common.h.
530 (deferred_fns): Mark for gengtype.
531 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
532 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
533 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
534 (gtype-desc.o): Update dependencies.
535 (dwarf2out.o): Add gt-dwarf2out.h.
536 (varray.o): Update dependencies.
537 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
538 (gt-c-objc-common.h): New rule.
539 (gt-dwarf2out.h): New rule.
540 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
541
542 * doc/gty.texi (GTY Options): Correct spelling.
543 (GGC Roots): Likewise.
544 * Makefile.in (TEXI_CPP_FILES): New.
545 (TEXI_GCC_FILES): New.
546 (TEXI_GCCINT_FILES): New.
547 (TEXI_CPPINT_FILES): New.
548 ($(docdir)/cpp.info): Use new macros.
549 ($(docdir)/gcc.info): Likewise.
550 ($(docdir)/gccint.info): Likewise.
551 ($(docdir)/cppinternals.info): Likewise.
552 (cpp.dvi): Likewise.
553 (gcc.dvi): Likewise.
554 (gccint.dvi): Likewise.
555 (cppinternals.dvi): Likewise.
556
557 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
558 * doc/gccint.texi (Top): Include gty.texi.
559 * doc/gty.texi: New file.
560
561 * bitmap.c: Include ggc.h, gt-bitmap.h.
562 (bitmap_ggc_free): New.
563 (bitmap_elem_to_freelist): New.
564 (bitmap_element_free): Use bitmap_elem_to_freelist.
565 (bitmap_element_allocate): Allow use of GGC.
566 (bitmap_clear): Use bitmap_elem_to_freelist.
567 (bitmap_copy): Update for change to bitmap_element_allocate.
568 (bitmap_set_bit): Likewise.
569 (bitmap_operation): Update for changes elsewhere.
570 (bitmap_initialize): Allow to create bitmaps that will use GGC.
571 * bitmap.h (struct bitmap_element_def): Use gengtype.
572 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
573 (bitmap_initialize): Add extra parameter.
574 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
575 (BITMAP_ALLOCA): Delete.
576 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
577 (BITMAP_GGC_ALLOC): New.
578 * Makefile.in (gtype-desc.o): Add bitmap.h.
579 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
580 (GTFILES): Add bitmap.c.
581 (gt-bitmap.h): New rule.
582 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
583 * basic-block.h: Update for changes to bitmap_initialize.
584 * except.c (exception_handler_label_map): Move into...
585 (struct eh_status): Here.
586 (struct eh_region): Make 'aka' GCable.
587 (free_eh_status): Don't need to specially handle
588 exception_handler_label_map.
589 (add_ehl_entry): Update for changes to exception_handler_label_map.
590 (find_exception_handler_labels): Likewise.
591 (remove_exception_handler_label): Likewise.
592 (maybe_remove_eh_handler): Likewise.
593 (for_each_eh_label): Likewise.
594 (remove_eh_handler): Allocate 'aka' using GGC.
595 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
596 to list of includes.
597
598 * gengtype.c (write_gc_marker_routine_for_structure): Name
599 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
600 (write_gc_types): Arrange for the tests with NULL to be inlined.
601 (write_gc_roots): Update uses of procedure pointers.
602 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
603
604 * Makefile.in (explow.o): Add dependency on gt-explow.h.
605 (sdbout.o): Add dependency on gt-sdbout.h.
606
607 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
608 (mem_attrs_htab): Likewise.
609 (init_emit_once): Don't call ggc_add_deletable_htab.
610 * fold-const.c (size_htab): Use gengtype to clear unused entries.
611 (size_int_type_wide): Don't call ggc_add_deletable_htab.
612 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
613 parameters, use them, change callers.
614 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
615 (write_gc_roots): Handle 'if_marked' option.
616 (main): Don't need to call set_gc_used_type any more.
617 * ggc.h (ggc_htab_marked_p): Delete.
618 (ggc_htab_mark): Delete.
619 (struct ggc_cache_tab): New.
620 (gt_ggc_cache_rtab): New declaration.
621 * ggc-common.c (struct d_htab_root): Delete.
622 (d_htab_roots): Delete.
623 (ggc_add_deletable_htab): Delete.
624 (ggc_htab_delete): Handle new htab-deleting mechanism.
625 (ggc_mark_roots): Use new htab-deleting mechanism.
626 * tree.c (type_hash_table): Use gengtype to clear unused entries.
627 Make static.
628 (init_obstacks): Don't call ggc_add_deletable_htab.
629
630 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
631 (struct hashed_entry): Likewise.
632 (nst_method_hash_list): Likewise.
633 (cls_method_hash_list): Likewise.
634 (HASH_ALLOC_LIST_SIZE): Delete.
635 (ATTR_ALLOC_LIST_SIZE): Delete.
636 * objc/objc-act.c (hash_init): Use ggc to allocate
637 nst_method_hash_list, cls_method_hash_list.
638 (hash_enter): Use ggc to allocate; allocate one entry at a time.
639 (hash_add_attr): Likewise.
640 (ggc_mark_hash_table): Delete.
641 (objc_act_parse_init): Delete.
642 (objc_init): Delete reference to objc_act_parse_init.
643 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
644 obstack.h. Replace references to 'struct hash_table' with htab_t.
645 (struct symbol_hash_entry): Replace hash header with key field.
646 (struct file_hash_entry): Replace hash header with key field.
647 (struct demangled_hash_entry): Replace hash header with key field.
648 (hash_string_eq): New.
649 (hash_string_hash): New.
650 (symbol_hash_newfunc): Delete.
651 (symbol_hash_lookup): Modify to use htab_t.
652 (file_hash_newfunc): Delete.
653 (file_hash_lookup): Modify to use htab_t.
654 (demangled_hash_newfunc): Delete.
655 (demangled_hash_lookup): Modify to use htab_t.
656 (tlink_init): Modify to use htab_t.
657 * hash.h: Delete.
658 * hash.c: Delete.
659 * ggc.h: Delete forward structure declarations.
660 Delete prototypes for deleted functions.
661 * ggc-common.c: Don't include hash.h.
662 (ggc_add_tree_hash_table_root): Delete.
663 (ggc_mark_tree_hash_table_entry): Delete.
664 (ggc_mark_tree_hash_table): Delete.
665 (ggc_mark_tree_hash_table_ptr): Delete.
666 * gengtype.c (write_gc_structure_fields): Allow param_is option.
667 (write_gc_marker_routine_for_structure): Use visibility of
668 the parameter if there is one.
669 * function.c: Replace hash.h with hashtab.h. Replace references
670 to 'struct hash_table *' with htab_t.
671 (struct insns_for_mem_entry): Include a plain key.
672 (fixup_var_refs_insns_with_hash): Update to use htab_t.
673 (insns_for_mem_newfunc): Delete.
674 (insns_for_mem_hash): Update to use htab_t.
675 (insns_for_mem_comp): Likewise.
676 (insns_for_mem_walk): Likewise.
677 * c-lang.c: Include ggc.h.
678 * Makefile.in (OBJS): Remove hash.o.
679 (c-lang.o): Add GGC_H.
680 (COLLECT2_OBJS): Remove hash.o.
681 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
682 (ggc-common.o): Remove hash.h.
683 (function.o): Remove hash.h, add HASHTAB_H.
684 (genautomata.o): Remove hash.h, add HASHTAB_H.
685
686 * varasm.c (mark_const_str_htab_1): Delete.
687 (mark_const_str_htab): Delete.
688 (const_str_htab_del): Delete.
689 (const_str_htab): Use gengtype to mark.
690 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
691 allocate them.
692 * tree.c (mark_tree_hashtable_entry): Delete.
693 (mark_tree_hashtable): Delete.
694 * tree.h (mark_tree_hashtable): Delete prototype.
695 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
696 (ggc_mark): Likewise.
697 (ggc_calloc): New.
698 (htab_create_ggc): New.
699 * ggc-common.c (ggc_calloc): New.
700 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
701 (struct type): Add param_struct structure.
702 * gengtype.c (param_structs): New.
703 (adjust_field_type): Handle param_is option.
704 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
705 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
706 (write_gc_structure_fields): Add new PARAM parameter. Update
707 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
708 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
709 Use it to generate function name. Update callers.
710 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
711 Process them.
712 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
713 option.
714 (main): Define PTR as pointer-to-scalar. Don't specially
715 mark deferred_string or ehl_map_entry.
716 * gengtype-yacc.y (PARAM_IS): Add new token.
717 (externstatic): Use adjust_field_type.
718 (type_option): Add PARAM_IS.
719 * gengtype-lex.l: Add rule for typedef of function pointers.
720 Add rule for PARAM_IS.
721 (IWORD): Add size_t.
722 * except.c (exception_handler_label_map): Use gengtype to mark.
723 (type_to_runtime_map): Likewise.
724 (mark_ehl_map_entry): Delete.
725 (mark_ehl_map): Delete.
726 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
727 (t2r_mark_1): Delete.
728 (t2r_mark): Delete.
729 * Makefile.in (gtype-desc.o): Correct dependencies.
730 (GTFILES): Add hashtab.h.
731 (genautomata.o): Actually uses hashtab.h.
732
733 * Makefile.in (stringpool.o): Add $(GGC_H).
734 (dwarf2asm.o): Likewise.
735 (GTFILES): Add hashtable.h.
736 * c-common.h (struct c_common_identifier): Use gengtype.
737 * c-decl.h (c_mark_tree): Delete.
738 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
739 * c-tree.h (struct lang_identifier): Use gengtype.
740 (union lang_tree_node): New.
741 (c_mark_tree): Delete prototype.
742 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
743 dwarf2_debug_hooks.
744 * gengtype-lex.l (IWORD): Allow 'bool'.
745 (ptr_alias): Match.
746 * gengtype-yacc.y (ALIAS): New token.
747 (type_option): New rule.
748 (option): Use type_option.
749 * gengtype.c (process_gc_options): New.
750 (set_gc_used_type): Use it.
751 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
752 Add new variable 't' to hold the type of the field being processed.
753 Add more error checking. Use UNION_P when looking at 'desc' option.
754 Handle language-specific structures containing other
755 language-specific structures.
756 (write_gc_types): Handle 'ptr_alias' option.
757 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
758 * ggc-common.c (ggc_pending_trees): Delete.
759 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
760 (ggc_mark_trees): Delete.
761 (gt_ggc_m_tree_node): Delete.
762 * ggc.h (ggc_pending_trees): Delete.
763 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
764 * hashtable.h (ht_identifier): Use gengtype.
765 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
766 * langhooks.h (struct lang_hooks): Delete mark_tree.
767 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
768 anyway.
769 * system.h: Poison LANG_HOOKS_MARK_TREE.
770 * tree.c (tree_node_structure): New.
771 * tree.h (struct tree_common): Use gengtype.
772 (struct tree_int_cst): Likewise.
773 (struct tree_real_cst): Likewise.
774 (struct tree_string): Likewise.
775 (struct tree_complex): Likewise.
776 (struct tree_vector): Likewise.
777 (struct tree_identifier): Likewise.
778 (struct tree_list): Likewise.
779 (struct tree_vec): Likewise.
780 (struct tree_exp): Likewise.
781 (struct tree_block): Likewise.
782 (struct tree_type): Likewise.
783 (struct tree_decl): Likewise.
784 (enum tree_structure_enum): New.
785 (union tree_node): Use gengtype, with an alias.
786 (tree_node_structure): Prototype.
787 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
788
789 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
790 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
791 to LANG_HOOKS_FUNCTION_FINAL.
792 * Makefile.in (GTFILES): Add bitmap.h.
793 * except.c (struct eh_region): Mark field 'aka' to be skipped.
794
795 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
796 (alpha_init_machine_status): Give proper type.
797 * Makefile.in (c-lang.o): Depend on gtype-c.h.
798 (optabs.o): Depend on gt-optabs.h.
799 (GTFILES): Add optabs.o.
800 (gt-optabs.h): Add rule.
801 * optabs.c: Include gt-optabs.h.
802
803 * gengtype.c (set_gc_used_type): Correct some errors in last change.
804 (write_gc_structure_fields): If a field which should be NULL is
805 not, abort.
806 * c-pragma.c: Move struct align_stack and variable alignment_stack
807 out from the ifdef.
808
809 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
810 * config/xtensa/xtensa.c: Include gt-cris.h.
811 (struct machine_function): Use gengtype to mark.
812 * config/mmix/mmix.h (struct machine_function): Use gengtype
813 to mark.
814 * config/cris/t-cris: Add dependencies for gt-cris.h.
815 * config/cris/cris.c: Include gt-cris.h.
816 (struct machine_function): Use gengtype to mark.
817 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
818 to mark.
819 * doc/tm.texi (Per-Function Data): Delete references to
820 mark_machine_status.
821 * config/ia64/ia64.c (ia64_override_options): Don't set
822 mark_machine_status.
823 * config/i386/i386.c (override_options): Likewise.
824 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
825 * config/arm/arm.c (arm_init_expanders): Likewise.
826 * config/alpha/alpha.c (override_options): Likewise.
827 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
828 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
829 (write_gc_structure_fields): Don't handle 'really' option.
830 Handle 'maybe_null' option.
831 (write_gc_types): Handle 'maybe_null' option.
832 * function.h (struct function): Don't use "really".
833 (mark_machine_status): Delete declaration.
834 (mark_lang_status): Delete declaration.
835 (gt_ggc_mr_machine_function): Delete prototype.
836 (gt_ggc_mr_language_function): Delete prototype.
837 * function.c (mark_machine_status): Delete.
838 (mark_lang_status): Delete.
839 (gt_ggc_mr_machine_function): Delete.
840 (gt_ggc_mr_language_function): Delete.
841 * c-tree.h (mark_c_function_context): Delete prototype.
842 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
843 * c-decl.c (struct language_function): Rename from struct
844 c_language_function. Update uses. Use gengtype to mark.
845 (mark_c_function_context): Delete.
846 * c-common.h (struct c_language_function): Rename from struct
847 language_function.
848 (mark_stmt_tree): Delete prototype.
849 (c_mark_lang_decl): Delete prototype.
850 (mark_c_language_function): Delete prototype.
851 * c-common.c (mark_stmt_tree): Delete.
852 (c_mark_lang_decl): Delete.
853 (mark_c_language_function): Delete.
854
855 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
856 (lang_bitmap): New typedef. Use where appropriate.
857 (struct type): Add gc_used field, lang_struct field.
858 (UNION_P): New macro.
859 (new_structure): New prototype.
860 (find_structure): Remove 'pos' parameter. Change all callers.
861 * gengtype-lex.l: Update for changes to find_structure.
862 * gengtype-yacc.y (typedef_struct): Use new_structure.
863 (yacc_ids): Suppress warning.
864 (type): Use new_structure.
865 * gengtype.c (string_type): Update for changes to struct type.
866 (find_structure): Just find a structure, don't worry about
867 creating one.
868 (new_structure): New.
869 (note_yacc_type): Use new_structure.
870 (set_gc_used_type): New.
871 (set_gc_used): New.
872 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
873 (write_gc_types): Handle TYPE_LANG_STRUCT.
874 (write_gc_marker_routine_for_structure): New.
875 (main): Call set_gc_used. Add some calls to set_gc_used_type
876 for places where GCC doesn't use gengtype properly yet.
877 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
878 (gt_ggc_m_tree_node): Likewise.
879
880 * varasm.c (copy_constant): Call expand_constant if we hit
881 something we can't recognise.
882
883 * ggc-common.c (ggc_mark_rtvec_children): Delete.
884 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
885 (lang_mark_false_label_stack): Delete.
886 * rtl.h (struct rtvec_def): Use gengtype to mark.
887 * ggc.h (ggc_mark_rtvec): Delete.
888 (gt_ggc_m_rtvec_def): Delete.
889 (ggc_mark_nonnull_tree): Delete.
890 (ggc_mark_rtvec_children): Delete prototype.
891 (lang_mark_false_label_stack): Delete declaration.
892
893 * gengtype.h (note_yacc_type): Add prototype.
894 * gengtype.c (note_yacc_type): New function.
895 * gengtype-lex.l: Add lexer support for yacc files.
896 * gengtype-yacc.y (start): Extract union from yacc files.
897 (yacc_union): New rule.
898 (yacc_typematch): New rule.
899 (yacc_ids): New rule.
900 (enum_items): Tweak for efficiency.
901 (optionseq): Likewise.
902
903 * c-common.h (struct language_function): Use gengtype.
904 (struct c_lang_decl): Likewise.
905 * c-tree.h (struct lang_decl): Likewise.
906 (struct lang_type): Likewise.
907 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
908 tree language substructures.
909
910 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
911 ggc_mark_tree.
912 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
913
914 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
915
916 * stmt.c (struct nesting): Add discriminator. Use gengtype to
917 mark. Remove 'data.block.cleanup_ptr' field.
918 (struct stmt_status): Use usual technique to mark struct nesting.
919 (gt_ggc_mr_nesting_cond): Delete.
920 (gt_ggc_mr_nesting_loop): Delete.
921 (gt_ggc_mr_nesting_block): Delete.
922 (gt_ggc_mr_nesting_case_stmt): Delete.
923 (expand_start_cond): Set discriminator.
924 (expand_start_loop): Likewise.
925 (expand_start_null_loop): Likewise.
926 (expand_start_bindings_and_block): Set discriminator. Don't set
927 deleted fields.
928 (expand_decl_cleanup): Replace 'cleanup_ptr' with
929 &thisblock->data.block.cleanups.
930 (expand_start_case): Set discriminator.
931 (expand_start_case_dummy): Set discriminator.
932
933 * ggc-callbacks.c: Remove.
934
935 * gengtype.h (struct type): Add 'u.s.bitmap' field.
936 (find_structure): Add 'pos' parameter.
937 * gengtype-lex.l: Update callers to find_structure.
938 * gengtype-yacc.y: Likewise.
939 * gengtype.c (find_structure): Allow for structures to be defined
940 in multiple language backends.
941 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
942 (counter): Rename to gc_counter.
943 (write_gc_structure_fields): Fail when writing out fields for
944 an incomplete structure. Ignore arrays of scalars. Handle
945 'tree_vec' special.
946 (write_gc_types): Reset counter for each procedure written.
947
948 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
949 (free_case_nodes): Delete.
950 (expand_end_case_type): Delete call to free_case_nodes.
951
952 * Makefile.in (cselib.o): Include gt-<filename>.h.
953 (gcse.o): Likewise.
954 (profile.o): Likewise.
955 (alias.o): Likewise.
956 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
957 alphabetize backend files.
958 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
959 * alias.c: Use gengtype for roots.
960 * c-common.h (struct stmt_tree_s): Use gengtype.
961 * c-decl.c: Use gengtype for roots.
962 * cselib.c: Use gengtype for roots.
963 * expr.c: Use gengtype for roots.
964 * fold-const.c: Use gengtype for roots.
965 * gcse.c: Use gengtype for roots.
966 * gengtype-lex.l: Handle typedefs of function types.
967 Allow for empty array bounds.
968 Allow processing to stop on initialisers.
969 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
970 (semiequal): New rule.
971 * gengtype.c (create_file): Tidy output files.
972 (get_output_file_with_visibility): Fix paren warning. Fix bug
973 involving multiple input files mapping to one output file.
974 (write_gc_structure_fields): Skip arrays of scalars.
975 (write_gc_types): Tidy output files.
976 (write_gc_root): New function.
977 (write_gc_roots): Fix bugs, add support for roots that are
978 structures.
979 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
980 (ggc_mark_tree_ptr): Delete.
981 (ggc_add_rtx_root): Delete.
982 (ggc_add_tree_root): Delete.
983 (ggc_del_root): Delete.
984 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
985 allocate struct initial_value_struct.
986 * profile.c: Use gengtype for roots.
987 * sdbout.c: Use gengtype for roots.
988 * varasm.c (mark_weak_decls): Delete unused prototype.
989 (mark_const_hash_entry): Delete unused function.
990 * config/darwin-protos.h: Use gengtype for roots.
991 (machopic_add_gc_roots): Delete.
992 * config/arm/arm.c: Use gengtype for roots.
993 * config/arm/arm.h: Use gengtype for roots.
994 * config/c4x/c4x-protos.h: Use gengtype for roots.
995 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
996 * config/d30v/d30v-protos.h: Use gengtype for roots.
997 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
998 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
999 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
1000 * config/ia64/ia64-protos.h: Use gengtype for roots.
1001 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
1002 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
1003 * config/m68hc11/m68hc11.c (z_reg): Make global.
1004 (z_reg_qi): Make global.
1005 (m68hc11_add_gc_roots): Delete.
1006 * config/mcore/mcore-protos.h: Use gengtype for roots.
1007 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
1008 * config/mips/mips.c (mips_add_gc_roots): Delete.
1009 * config/mips/mips.h: Use gengtype for roots.
1010 * config/mmix/mmix.c (override_options): Use gengtype for roots.
1011 * config/mmix/mmix.h: Use gengtype for roots.
1012 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
1013 * config/mn10200/mn10200.h: Use gengtype for roots.
1014 * config/pa/pa.c: Use gengtype for roots, marking.
1015 (struct deferred_plabel): Use GGC, gengtype.
1016 (pa_add_gc_roots): Delete.
1017 (mark_deferred_plabels): Delete.
1018 * config/pj/pj-protos.h: Use gengtype for roots.
1019 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
1020 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
1021 machopic_add_gc_roots.
1022 * config/rs6000/rs6000.h: Use gengtype for roots.
1023 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
1024 (gt-darwin.h): Add rule.
1025 * config/sh/sh.c: Use gengtype for roots.
1026 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
1027 (gt-sh.h): Add rule.
1028 * config/sparc/sparc.c: Use gengtype for roots.
1029 (sparc_add_gc_roots): Delete.
1030 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
1031 (mark_ultrasparc_pipeline_state): Delete.
1032 * config/sparc/sparc.h: Use gengtype for roots.
1033
1034 * Makefile.in (c-parse.o): Update dependencies.
1035 (c-common.o): Likewise.
1036 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
1037 Add dependencies for the files they generate.
1038 * c-common.c: Replace ggc_add_* uses with GTY annotations.
1039 * c-common.h: Likewise.
1040 * c-decl.c: Likewise.
1041 (gt_ggc_mp_binding_level): Delete.
1042 * c-lang.c: Include gtype-c.h.
1043 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
1044 gt-c-parse.h.
1045 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
1046 (gt_ggc_mp_align_stack): Delete.
1047 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
1048 * function.c: Replace ggc_add_* uses with GTY annotations.
1049 (gt_ggc_mp_function): Delete.
1050 * function.h: Replace ggc_add_* uses with GTY annotations.
1051 * gengtype.c (lang_names): New.
1052 (NUM_BASE_FILES): New.
1053 (open_base_files): Create language base files.
1054 (startswith): New.
1055 (get_file_basename): New.
1056 (get_base_file_bitmap): New.
1057 (get_output_file_with_visibility): Rename from get_output_file.
1058 Add more mappings for various C/Objc filenames.
1059 (finish_root_table): New.
1060 (write_gc_roots): Handle dependencies and scoping properly.
1061 * gengtype.h: Add prototypes for new functions.
1062 * ggc-common.c (struct deletable_root): Delete.
1063 (deletables): Delete.
1064 (ggc_add_deletable_root): Delete.
1065 (ggc_mark_roots): No need to deal with deleted functionality.
1066 * ggc.h (ggc_add_deletable_root): Delete prototype.
1067 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
1068 (gtype-objc.h): Add rule to create.
1069 * objc/config-lang.in (gtfiles): New.
1070 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
1071 ggc_add_* with GTY markers. Include gtype-objc.h.
1072 (ggc_mark_imp_list): Delete.
1073 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
1074 * objc/objc-lang.c: Random Whitespace Change.
1075
1076 * except.h (exception_handler_labels): Delete.
1077 (get_exception_handler_labels): New.
1078 * except.c (exception_handler_labels): Delete.
1079 (struct eh_status): Add exception_handler_labels field.
1080 (doing_eh): Don't add exception_handler_labels as root.
1081 (free_eh_status): Don't need to free exception_handler_labels.
1082 (get_exception_handler_labels): New.
1083 (find_exception_handler_labels): Update for move of
1084 exception_handler_labels.
1085 (remove_exception_handler_label): Likewise.
1086 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
1087 * jump.c (rebuild_jump_labels): Likewise.
1088 * loop.c (find_and_verify_loops): Likewise.
1089 * sched-rgn.c (is_cfg_nonregular): Likewise.
1090
1091 * gengtype.c (write_gc_structure_fields): Handle variable-length
1092 TYPE_ARRAYs.
1093
1094 * varasm.c (struct weak_syms): Use GGC, gengtype.
1095 (mark_weak_decls): Delete.
1096 (weak_decls): Likewise.
1097 (add_weak): Likewise.
1098 (remove_from_pending_weak_list): Likewise.
1099 (init_varasm_once): Likewise.
1100
1101 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
1102 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
1103 stor-layout.c, regclass.c, and lists.c.
1104 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
1105 gt-regclass.h and gt-lists.h on s-gtype.
1106 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
1107 * except.c: Use gengtype for roots.
1108 * explow.c: Use gengtype for roots. Include gt-explow.h.
1109 * expr.h (init_stor_layout_once): Delete prototype.
1110 * function.c: Use gengtype for roots.
1111 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
1112 * gengtype-yacc.y (start): Can also be an externstatic.
1113 (externstatic): New production.
1114 (struct_fields): Correct array bounds inversion for 2-d arrays.
1115 * gengtype.c (variables): New variable.
1116 (note_variable): New function.
1117 (get_output_file): Include libfuncs.h into gtype-desc.c.
1118 (get_output_file_name): New function.
1119 (write_gc_structure_fields): Suppress warnings.
1120 (write_gc_types): Make static.
1121 (put_mangled_filename): New function.
1122 (write_gc_roots): New function.
1123 (main): Call write_gc_roots.
1124 * gengtype.h (note_variable): Prototype.
1125 (get_output_file_name): Prototype.
1126 (write_gc_types): Delete prototype.
1127 * ggc.h: Clean up unnecessary structure predefinitions.
1128 (struct ggc_root_tab): Define.
1129 (gt_ggc_m_rtx_def): Make function, not macro.
1130 (gt_ggc_m_tree_node): Likewise.
1131 * libfuncs.h: Use gengtype for roots.
1132 * lists.c: Use gengtype for roots. Include gt-lists.h.
1133 (init_EXPR_INSN_LIST_cache): Delete.
1134 * optabs.c: Use gengtype for roots.
1135 (gt_ggc_mp_optab): Delete.
1136 * optabs.h: Use gengtype for roots.
1137 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
1138 * rtl.h: Use gengtype for roots.
1139 (init_EXPR_INSN_LIST_cache): Delete prototype.
1140 * stor-layout.c: Use gengtype for roots.
1141 Include gt-stor-layout.h.
1142 (init_stor_layout_once): Delete.
1143 * toplev.c: Use gengtype for roots. Delete calls to deleted
1144 routines.
1145 * tree.c: Use gengtype for roots.
1146 * tree.h: Use gengtype for roots.
1147 * varasm.c: Use gengtype for roots.
1148
1149 * Makefile.in (GTFILES): Add @all_gtfiles@.
1150 * configure: Regenerate.
1151 * configure.in: Construct all_gtfiles from the gtfiles definitions
1152 in config-lang.in.
1153 * gengtype-yacc.y (type): Warn about duplicate structure names.
1154 * gengtype.c (get_output_file): Handle .c files in language
1155 subdirectories.
1156
1157 * Makefile.in (GTFILES): Run gengtype on all the config files
1158 and on the target .c file.
1159 * except.c (mark_eh_region): Delete.
1160 (init_eh_for_function): Use GGC on struct eh_status.
1161 (mark_eh_status): Delete.
1162 (free_eh_status): Use GGC.
1163 (expand_eh_region_start): Use GGC to
1164 (collect_eh_region_array): Allocate last_region_number using GGC.
1165 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
1166 (remove_eh_handler): Let GGC free struct eh_region.
1167 (add_call_site): Use GGC to reallocate call_site_record array.
1168 * function.c (init_machine_status): Update calling sequence.
1169 (mark_machine_status): Likewise.
1170 (mark_lang_status): Likewise.
1171 (prepare_function_start): Update init_machine_status call.
1172 (mark_function_status): Delete.
1173 (maybe_mark_struct_function): Delete.
1174 (ggc_mark_struct_function): Delete.
1175 (gt_ggc_mp_function): New.
1176 (gt_ggc_mr_machine_function): New.
1177 (gt_ggc_mr_language_function): New.
1178 (init_function_once): Use canonical names.
1179 * function.h (struct function): Use gengtype.
1180 (init_machine_status): Return the structure.
1181 (mark_machine_status): Take a 'void *'.
1182 (mark_lang_status): Likewise.
1183 * ggc-common.c (ggc_mark_trees): Use canonical name for
1184 ggc_mark_struct_function.
1185 * tree.h (ggc_mark_struct_function): Delete prototype.
1186 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
1187 (alpha_init_machine_status): Likewise.
1188 (override_options): Use canonical name for alpha_mark_machine_status.
1189 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
1190 * config/arm/arm.h (struct machine_function): Use gengtype.
1191 * config/arm/arm.c (arm_mark_machine_status): Delete.
1192 (arm_init_machine_status): Update calling sequence.
1193 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
1194 * config/cris/cris.c (cris_init_machine_status): Update
1195 calling sequence.
1196 * config/d30v/d30v.h (struct machine_function): Use gengtype.
1197 * config/d30v/d30v.c (d30v_init_machine_status): Update
1198 calling sequence.
1199 (d30v_mark_machine_status): Delete.
1200 * config/i386/i386.c: Include gt-i386.h.
1201 (struct machine_function): Use gengtype.
1202 (ix86_init_machine_status): Update calling sequence.
1203 (ix86_mark_machine_status): Delete.
1204 (override_options): Use canonical namke for ix86_mark_machine_status.
1205 * config/ia64/ia64.h (struct machine_function): Use gengtype.
1206 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
1207 sequence.
1208 (ia64_mark_machine_status): Delete.
1209 (ia64_override_options): Use canonical name for
1210 ia64_mark_machine_status.
1211 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
1212 sequence.
1213 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
1214 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1215 * gengtype.c (get_output_file): Fix warning.
1216 (main): Add prototype to suppress warning.
1217 * tree.c: Remove tree_hash_mark prototype.
1218
1219 * tree.h (init_stmt): Delete prototype.
1220 * toplev.c (lang_independent_init): Don't call init_stmt.
1221 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
1222 (stmt_obstack): Delete.
1223 (POPSTACK): No need to free 'struct nesting'.
1224 (gt_ggc_mr_nesting_cond): Use canonical names.
1225 (gt_ggc_mr_nesting_loop): Use canonical names.
1226 (gt_ggc_mr_nesting_block): Use canonical names.
1227 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
1228 (mark_stmt_status): Delete.
1229 (init_stmt): Delete.
1230 (clear_last_expr): Clear both last_expr_type and last_expr_value.
1231 Use it everywhere that last_expr_type was cleared.
1232 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
1233 (zap_lists): Delete.
1234 * ggc.h (ggc_add_deletable_root): Prototype.
1235 (mark_stmt_status): Remove prototype.
1236 * ggc-common.c (ggc_add_deletable_root): New.
1237 (ggc_mark_roots): Handle deletable roots.
1238 * function.c (ggc_mark_struct_function): Use canonical name
1239 for mark_stmt_status.
1240 * emit-rtl.c (free_sequence_stack): New.
1241 (start_sequence): Use a freelist for sequences.
1242 (end_sequence): Likewise.
1243 (init_emit_once): Add free_sequence_stack as a deleteable root.
1244 * c-pragma.c Include gt-c-pragma.h.
1245 (struct align_stack): Use gengtype.
1246 (push_alignment): Use GGC for struct align_stack.
1247 (mark_align_stack): Delete.
1248 (gt_ggc_mp_align_stack): New.
1249 (init_pragma): Use canonical name for mark_align_stack.
1250 * c-decl.c: Include gt-c-decl.h.
1251 (struct binding_level): Use gengtype.
1252 (make_binding_level): Use GGC; handle the freelist here.
1253 (pop_binding_level): New.
1254 (pushlevel): Move code into make_binding_level.
1255 (push_label_level): Likewise.
1256 (poplevel): Move code into pop_binding_level.
1257 (pop_label_level): Likewise.
1258 (mark_binding_level): Delete.
1259 (gt_ggc_mp_binding_level): New.
1260 (c_init_decl_processing): Use canonical name for mark_binding_level.
1261 Add free_binding_level as deletable root.
1262 (mark_c_function_context): Use canonical name for mark_binding_level.
1263 * Makefile.in (c-decl.o): Add gt-c-decl.h.
1264 (c-pragma.o): Add gt-c-pragma.h.
1265 (GTFILES): Add c-decl.c and c-pragma.c.
1266 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
1267
1268 * tree.c (struct type_hash): Use gengtype.
1269 (init_obstacks): Use canonical name for type_hash_mark.
1270 (type_hash_mark): Delete.
1271 Include gt-tree.h.
1272 * rtl.h (struct mem_attrs): Use gengtype.
1273 * optabs.h (struct optab): Use gengtype.
1274 * optabs.c (expand_binop): Squish signed/unsigned warning.
1275 (mark_optab): Make local, use canonical name, use autogenerated
1276 marker procedure.
1277 (init_optabs): Use canonical name for mark_optab.
1278 (new_optab): Use GGC to allocate optabs.
1279 * ggc.h: Delete mark_optab prototype.
1280 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
1281 mem_attrs marker procedure.
1282 * gengtype.c (get_output_file): Include headers in gtype-desc.c
1283 explicitly rather than deducing them from file names.
1284 (write_gc_structure_fields): Handle arrays of structures.
1285 (main): Return non-zero exit code if errors occur during output.
1286 * emit-rtl.c (mem_attrs_mark): Delete.
1287 (init_emit_once): Use canonical name for mem_attrs marker procedure.
1288 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
1289 (tree.o): Depend on gt-tree.h.
1290 (GTFILES): Add rtl.h, optabs.h, tree.c.
1291 (gt-tree.h): Add it to s-gtype rule.
1292
1293 * .cvsignore: Ignore gengtype flex/bison generated files.
1294 * Makefile.in (GGC_H): Add gtype-desc.h.
1295 (OBJS): Add gtype-desc.o.
1296 (GEN): Add gengtype.
1297 (STAGESTUFF): Add gengtype.
1298 (varasm.o): Add gt-varasm.h.
1299 (stmt.o): Add gt-stmt.h.
1300 (except.o): Add gt-except.h.
1301 (integrate.o): Add gt-integrate.h.
1302 (GTFILES): New.
1303 Add new rules for new files.
1304 * configure: Regenerate.
1305 * configure.in: Correct defaults.h paths.
1306 * emit-rtl.c (mark_sequence_stack): Delete.
1307 (mark_emit_status): Delete.
1308 (start_sequence): Allocate sequence structures using GGC.
1309 (end_sequence): Allocate sequence structures using GGC.
1310 * except.c: Use gengtype for various structures. Include
1311 gt-except.h.
1312 * expr.c (mark_expr_status): Delete.
1313 * function.c: Use gengtype for various structures. Include
1314 gt-function.h.
1315 (mark_function_status): Use standard gt_ggc names for marker functions.
1316 (ggc_mark_struct_function): Likewise.
1317 * function.h: Use gengtype for various structures.
1318 * gengtype-lex.l: New file.
1319 * gengtype-yacc.y: New file.
1320 * gengtype.c: New file.
1321 * gengtype.h: New file.
1322 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
1323 the standard names. Remove some now-unnecessary prototypes.
1324 * integrate.c: Use gengtype for various structures. Include
1325 gt-integrate.h.
1326 (mark_hard_reg_initial_vals): Delete.
1327 * integrate.h (mark_hard_reg_initial_vals): Delete.
1328 * stmt.c: Use gengtype for various structures. Include
1329 gt-stmt.h.
1330 (mark_case_node): Delete.
1331 (mark_goto_fixup): Delete.
1332 (mark_stmt_status): Use standard gt_ggc names for marker functions.
1333 * system.h: Define GTY to empty. In flex/bison files,
1334 don't poison malloc or realloc, instead just define them to
1335 xmalloc and xrealloc.
1336 * varasm.c: Use gengtype for various structures. Include
1337 gt-varasm.h. Use standard gt_ggc names for marker functions.
1338 (mark_pool_constant): Delete.
1339 (mark_varasm_status): Delete.
1340 (decode_rtx_const): #if 0 out non-typesafe hack.
1341
1342 * function.h (free_lang_status): Mark as obsolete.
1343 * function.c (free_lang_status): Mark as obsolete.
1344 * c-decl.c (push_c_function_context): Use GC to allocate and free
1345 struct language_function.
1346 (pop_c_function_context): Likewise.
1347 * c-common.c (mark_c_language_function): Mark struct
1348 language_function.
1349
1350 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
1351 Document that the machine_function structures must be allocated
1352 using GC. Update mark_machine_status documentation.
1353 * function.h: Don't declare free_machine_status.
1354 * function.c (free_machine_status): Don't define.
1355 (free_after_compilation): Don't call free_machine_status.
1356 (ggc_mark_struct_function): Mark f->machine. Call
1357 mark_machine_status only on non-NULL pointers.
1358 * system.h: Poison free_machine_status.
1359 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
1360 struct machine_function.
1361 (xtensa_free_machine_status): Delete.
1362 (override_options): Don't set free_machine_status.
1363 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1364 free_machine_status.
1365 (rs6000_init_machine_status): Use GC on struct machine_function.
1366 (rs6000_free_machine_status): Delete.
1367 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
1368 machine_function.
1369 (ia64_mark_machine_status): Likewise.
1370 (ia64_free_machine_status): Delete.
1371 (ia64_override_options): Don't set free_machine_status.
1372 * config/i386/i386.c (override_options): Don't set
1373 free_machine_status.
1374 (ix86_init_machine_status): Use GC on struct machine_function.
1375 (ix86_mark_machine_status): Likewise.
1376 (ix86_free_machine_status): Delete.
1377 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
1378 machine_function.
1379 (d30v_mark_machine_status): Likewise.
1380 (d30v_free_machine_status): Delete.
1381 (d30v_init_expanders): Don't set free_machine_status.
1382 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
1383 machine_function.
1384 (arm_init_machine_status): Likewise.
1385 (arm_free_machine_status): Delete.
1386 (arm_init_expanders): Don't set free_machine_status.
1387 * config/alpha/alpha.c (override_options): Don't set
1388 free_machine_status.
1389 (alpha_init_machine_status): Use GC on struct machine_function.
1390 (alpha_mark_machine_status): Likewise.
1391 (alpha_free_machine_status): Delete.
1392
1393 * varasm.c (compare_constant): Fix typo.
1394
1395 * varasm.c: Don't include obstack.h.
1396 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
1397 (struct rtx_const): Give substructures names, improve formatting.
1398 (struct constant_descriptor): Delete.
1399 (struct constant_descriptor_tree): New, based on constant_descriptor.
1400 (const_hash_table): Is a hash table of trees.
1401 (mark_const_hash_entry): Is used for hashes of trees. Mark
1402 constant_descriptor_tree structure.
1403 (mark_const_str_htab_1): Mark deferred_string structure.
1404 (compare_constant): Rewrite to compare trees.
1405 (compare_constant_1): Delete.
1406 (record_constant): Delete.
1407 (record_constant_1): Delete.
1408 (output_constant_def): Use struct constant_descriptor_tree.
1409 Don't duplicate trees twice.
1410 (struct constant_descriptor_rtx): New.
1411 (struct pool_constant): Used for rtx constants.
1412 (init_varasm_status): Update for change to struct varasm_status.
1413 (mark_varasm_status): Likewise.
1414 (free_varasm_status): Delete.
1415 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
1416 (record_constant_rtx): Likewise.
1417 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
1418 (force_const_mem): Likewise.
1419 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
1420 * function.c (free_after_compilation): Don't use free_varasm_status.
1421 * function.h: Don't prototype free_varasm_status.
1422
1423 * ggc-common.c (ggc_realloc): Handle X being NULL.
1424
1425 * ggc-common.c (ggc_realloc): New function.
1426 * ggc.h: Prototype it.
1427 * emit-rtl.c (free_emit_status): Delete.
1428 (init_emit): Allocate emit subarrays using GC.
1429 (gen_reg_rtx): Reallocate subarrays using GC.
1430 (init_emit): Use GC to allocate 'struct emit_status' and its
1431 subarrays.
1432 (mark_emit_status): Mark structure and its subarrays.
1433 * stmt.c (free_stmt_status): Delete.
1434 * expr.c (free_expr_status): Delete.
1435 * function.h: Remove prototypes for deleted functions.
1436 * function.c (free_after_compilation): Don't use deleted functions.
1437 Don't call free() on x_parm_reg_stack_loc.
1438 (free_after_parsing): Don't use free_stmt_status.
1439 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
1440 (mark_function_status): Mark x_parm_reg_stack_loc.
1441
1442 * varasm.c (init_varasm_status): Use GC to allocate
1443 'struct varasm_status' and its fields x_const_rtx_hash_table
1444 and x_const_rtx_sym_hash_table.
1445 (mark_varasm_status): Mark them.
1446 (free_varasm_status): Use GC to free them.
1447 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
1448 (mark_expr_status): Mark the structure itself.
1449 (free_expr_status): Use GC to free the structure.
1450 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
1451 (mark_stmt_status): Mark the 'struct stmt_status' itself.
1452 (init_stmt_for_function): Allocate the structure for GC.
1453
1454 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
1455 (equate_type_number_to_die): Likewise.
1456 * tree.h (TYPE_SYMTAB_DIE): New macro.
1457 (struct die_struct): Predeclare.
1458 (struct tree_type): Add field symtab.die. Add a tag
1459 to the union type of field symtab.
1460
1461 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
1462 'struct rtvec_def *', not 'struct rtvec_def'.
1463
1464 * function.h (original_arg_vector): Make a real rtvec.
1465 * function.c (ggc_mark_struct_function): Adjust.
1466 * integrate.c (expand_inline_function): Adjust.
1467
1468 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1469
1470 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
1471 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
1472 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
1473 (TARGET_VERSION_CPU): Define according to the
1474 default target.
1475 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
1476 TARGET_VERSION_CPU.
1477 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
1478 if TARGET_SHMEDIA64.
1479 (LINK_DEFAULT_CPU_EMUL): Define according to the
1480 default target.
1481 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
1482 (SUBTARGET_LINK_SPEC): Define.
1483 (LINK_SPEC): Use SH_LINK_SPEC.
1484 (ASM_SPEC): Remove.
1485 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1486 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
1487 and TARGET_SHMEDIA64 which abort, for now.
1488 * config/sh/t-netbsd-sh5: New file.
1489 * config/sh/t-netbsd-sh5-32: New file.
1490 * config/sh/t-netbsd-sh5-64: New file.
1491
1492 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1493 Richard Henderson <rth@redhat.com>
1494
1495 * config/alpha/alpha.c (reg_or_const_int_operand): New.
1496 (some_operand, input_operand): Accept CONST_VECTOR.
1497 (alpha_extra_constraint): Add 'W'.
1498 (alpha_expand_zap_mask): New.
1499 (alpha_expand_builtin_vector_binop): New.
1500 (enum alpha_builtin): New.
1501 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
1502 (alpha_init_builtins, alpha_expand_builtin): New.
1503 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
1504 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
1505 (PREDICATE_CODES): Update.
1506 * config/alpha/alpha-protos.h: Update.
1507 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
1508 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
1509 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
1510 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
1511 (movv2si, movv2si_fix, movv2si_nofix): New.
1512 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
1513 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
1514 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
1515 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
1516 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
1517 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
1518 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
1519 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
1520 builtin_unpkbw, unpkbw): New.
1521 * doc/extend.texi (Alpha Built-in Functions): New.
1522
1523 2002-06-03 Richard Henderson <rth@redhat.com>
1524
1525 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
1526 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
1527
1528 2002-06-03 Richard Henderson <rth@redhat.com>
1529
1530 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
1531
1532 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
1533 (const0_operand): New.
1534 (reg_or_fp0_operand, fp0_operand): Remove.
1535 * config/alpha/alpha.h (PREDICATE_CODES): Update.
1536 * config/alpha/alpha-protos.h: Update.
1537 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
1538 and fp0_operand with reg_or_0_operand and const0_operand.
1539
1540 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1541
1542 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
1543
1544 2002-06-03 Roger Sayle <roger@eyesopen.com>
1545
1546 * gcse.c (cprop_jump): Use single_set to get the pattern
1547 from the setcc argument.
1548
1549 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
1550
1551 * diagnostic.h (diagnostic_count): Move from output_buffer to
1552 diagnostic_context.
1553 (diagnostic_kind_count): Adjust definition.
1554
1555 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
1556
1557 * except.c (except.c): Do not rebuild CFG.
1558 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
1559 optimization.
1560
1561 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1562
1563 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
1564 * toplev.c: Include cfglahout.h
1565 * Makefile.in (toplev.c): Add dependnecy.
1566
1567 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
1568
1569 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
1570 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
1571 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
1572
1573 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1574
1575 * config/ns32k/netbsd.h: Update copyright years.
1576 (TARGET_OS_CPP_BUILTINS): Define.
1577 (CPP_PREDEFINES): Remove.
1578 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
1579 (TARGET_CPU_CPP_BUILTINS): Define.
1580
1581 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1582
1583 * emit-rtl.c: Fix formatting.
1584 * errors.h: Likewise.
1585 * except.c: Likewise.
1586 * explow.c: Likewise.
1587 * expmed.c: Likewise.
1588 * expr.c: Likewise.
1589 * expr.h: Likewise.
1590
1591 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1592
1593 * config/h8300/elf.h: Fix formatting.
1594 * config/h8300/rtems.h: Likewise.
1595
1596 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1597
1598 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1599
1600 2002-06-02 Tom Tromey <tromey@redhat.com>
1601
1602 * fixinc/fixincl.x: Rebuilt.
1603 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
1604
1605 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1606
1607 config/i370:
1608 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
1609 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
1610 * mvs.h: Similarly.
1611 * oe.h: Similarly.
1612
1613 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1614
1615 * final.c (final): Allow notes to not have computed addresses;
1616 kill no longer needed STACK_REGS ifdef.
1617
1618 2002-06-02 Richard Henderson <rth@redhat.com>
1619
1620 * gcse.c (bypass_conditional_jumps): Fix typo last change.
1621
1622 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1623
1624 * loop.c (emit_prefetch_instructions): Properly place the address
1625 computation.
1626
1627 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1628
1629 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
1630 (set_block_for_insn): Turn into macro.
1631 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
1632 * cfglayout.c (insn_scopes): Kill.
1633 (scope_to_insns_initialize): Do not use insn_scopes.
1634 (scope_to_insns_finalize): Likewise.
1635 (duplicate_insn_chain): Likewise.
1636 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
1637 * cfgrtl.c (basic_block_for_insn): Kill.
1638 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
1639 (create_basic_block_structure): Use reorder_insns.
1640 (compute_bb_for_insn): Do not use basic_block_for_insn.
1641 (merge_blocks_nomove): Likewise.
1642 (update_bb_for_insn): Likewise.
1643 (verify_flow_info): Likewise.
1644 (set_block_for_insn): Kill.
1645 * combine.c (try_combine): Update gen_rtx_INSN call.
1646 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
1647 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
1648 scopes and BBs.
1649 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
1650 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
1651 Clear BB.
1652 (emit_insns_after): Simplify.
1653 (emit_copy_of_insn_after): Copy scope.
1654 * final.c (final_start_function): Lower scopes.
1655 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
1656 * integrate.c (copy_insn_list): Cope scopes.
1657 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
1658 * loop.c (loop_optimize): Do not care block notes.
1659 * print-rtl.c (print_rtx): Print BB.
1660 * recog.c (apply_change_group): Simplify.
1661 * rtl.c (copy_rtx): Handle 'B'.
1662 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
1663 * rtl.h (Field accessors): Update indexes.
1664 * sched-ebb.c (schedule_ebbs): Do not lower notes.
1665 * sched-rgn.c (schedule_insns): Likewise.
1666 * toplev.c (rest_of_compilation): Lower notes.
1667 * unroll.c (unroll_loop): Do not care scoping notes.
1668 (copy_loop_body): Copy scopes.
1669
1670 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1671
1672 config/h8300:
1673 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1674 SUBTARGET_SPEC.
1675 * rtems.h: Similarly.
1676 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
1677 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
1678 (TARGET_CPU_CPP_BUILTINS): Use.
1679
1680 2002-06-02 Richard Henderson <rth@redhat.com>
1681
1682 * alias.c: Include target.h.
1683 (mark_constant_function): Use targetm.binds_local_p instead
1684 of checking TREE_PUBLIC ourselves.
1685 * Makefile.in (alias.o): Add TARGET_H.
1686
1687 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1688
1689 * c-lex.c: Update copyright and file description.
1690
1691 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1692
1693 * config/fr30/fr30.h: Update to new CPP macros.
1694
1695 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1696
1697 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
1698
1699 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1700 Zack Weinberg <zack@codesourcery.com>
1701
1702 * c-common.c (c_common_init): Override cpplib's default
1703 warn_long_long setting.
1704 * c-lex.c (lex_number): Replace with interpret_integer,
1705 interpret_float, narrowest_unsigned_type and
1706 narrowest_signed_type, taking advantage of the new
1707 cpplib functionality.
1708 * cpperror.c (_cpp_begin_message): If a warning is turned
1709 into an error, avoid printing "warning:".
1710 * cppexp.c (cpp_num_sign_extend): New.
1711 * cppinit.c: Update comment.
1712 * cpplib.h (cpp_num_sign_extend): New.
1713 * tree.h: Update comment.
1714
1715 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1716
1717 * diagnostic.h (struct diagnostic_context): Add new member
1718 internal_error.
1719 (internal_error_function): Remove declaration.
1720 * diagnostic.c (internal_error_function): Remove definition..
1721 (internal_error): Adjust use.
1722
1723 2002-06-02 Richard Henderson <rth@redhat.com>
1724
1725 * rtl.h (CC0_P): New.
1726 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
1727 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
1728 (bypass_block): Save old dest block for dump text.
1729 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
1730 Allow only true SET insns, not single_set.
1731
1732 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1733
1734 * diagnostic.c (diagnostic_finish): Rename to output_flush.
1735 (clear_disgnostic_info): Rename to output_clear_data. Use false
1736 instead of 0 for boolean value.
1737 Adjust function call throughout.
1738
1739 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
1740
1741 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
1742 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
1743
1744 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1745
1746 * d30v.h (CPP_PREDEFINES): Replace with
1747 (TARGET_CPU_CPP_BUILTINS): New.
1748
1749 2002-06-02 Roger Sayle <roger@eyesopen.com>
1750
1751 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
1752
1753 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
1754
1755 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
1756
1757 2002-06-02 Richard Henderson <rth@redhat.com>
1758
1759 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
1760
1761 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1762
1763 Support for C++ constructors/destructors.
1764 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
1765 instead of looping if main() returns.
1766 (asm_file_start): Output global symbols that cause .data and .bss
1767 initialization code to be linked in, unconditionally for now.
1768 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
1769 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
1770 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1771 (LIBSTDCXX): New.
1772 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
1773 (__tablejump__): New.
1774 (__do_copy_data, __do_clear_bss): New.
1775 (__do_global_ctors, __do_global_dtors): New.
1776 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
1777 _ctors, _dtors.
1778
1779 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1780
1781 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
1782 (CPP_SPEC, CPP_PREDEFINES): Kill.
1783 * c4x/rtems.h (CPP_PREDEFINES): Kill.
1784 (TARGET_OS_CPP_BUILTINS): New.
1785
1786 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
1787
1788 * Makefile.in (tracer.o): New.
1789 * params.def (TRACER_*): New options.
1790 * rtl.h (tracer): Declare.
1791 * timevar.def (TV_TRACER): New.
1792 * toplev.c (dump_file_index): Add DFI_tracer.
1793 (dump_file_info): Add tracer.
1794 (flag_tracer): New.
1795 (lang_indepdenent_options): Add tracer.
1796 (rest_of_compilation): Call tracer.
1797 * tracer.c: New file.
1798 * invoke.texi (-ftracer): Document.
1799 (--param tracer-*): Document.
1800
1801 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
1802
1803 * tree-inline.c (expand_call_inline): Make the statement
1804 expression we generate have a COMPOUND_STMT.
1805
1806 2002-06-01 Roger Sayle <roger@eyesopen.com>
1807
1808 * gcse.c (cprop_cc0_jump): Function deleted.
1809 (cprop_jump): Take an additional argument which is the possibly
1810 NULL cc setting insn immediately before the conditional jump.
1811 When a MODE_CC set is present, substitute it into the JUMP_INSN
1812 before attempting the constant propagation.
1813 (cprop_insn): Recognize cc setters followed by conditional jumps
1814 as a special case. Use cprop_jump instead of cprop_cc0_jump.
1815 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
1816 (find_bypass_set): New function based upon find_avail_set used by
1817 cprop, but finds constant expressions available at the end of
1818 basic blocks.
1819 (bypass_block): New function. Given a basic block that begins
1820 with a conditional jump and multiple incoming edges, perform
1821 the jump bypass optimization.
1822 (bypass_conditional_jumps): New function. Call bypass_block with
1823 each suitable basic block in the CFG using a simple single pass.
1824
1825 2002-06-01 Roger Sayle <roger@eyesopen.com>
1826
1827 * tree.c (real_minus_onep): New function to test for -1.0.
1828 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
1829
1830 2002-06-01 Roger Sayle <roger@eyesopen.com>
1831
1832 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
1833 and "!p && !q" into "(p|q) == 0" under suitable conditions.
1834
1835 2002-06-01 Andreas Jaeger <aj@suse.de>
1836
1837 * cppexp.c (cpp_classify_number): Cast precission to int for
1838 correct printf format.
1839
1840 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
1841
1842 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
1843 expected, but don't really exist: atmega83, atmega85, attiny10.
1844 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
1845 emulations for all devices.
1846 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
1847 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
1848
1849 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
1850
1851 * config/h8300/h8300-protos.h: Add a prototype for
1852 h8300_shift_needs_scratch_p.
1853 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
1854 * config/h8300/h8300.h (OK_FOR_R): New.
1855 (OK_FOR_S): Likewise.
1856 (OK_FOR_T): Likewise.
1857 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
1858 * config/h8300/h8300.md (anonymous shift patterns): Use
1859 constraints R, S, and T.
1860
1861 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1862
1863 * basic-block.h (struct basic_block_def): New field loop_father.
1864 (BB_VISITED): New flag.
1865 (struct loop): New field pred, removed field shared.
1866 (struct loops): New field parray.
1867 (LOOP_EXITS_DOMS): Removed.
1868 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
1869 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
1870 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
1871 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
1872 verify_loop_structure): Declare.
1873 * cfg.c (entry_exit_blocks): Initialize loop_father field.
1874 * cfganal.c (dfs_enumerate_from): New function.
1875 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
1876 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1877 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
1878 flow_loop_dump, flow_loops_dump, flow_loops_free,
1879 flow_loop_tree_node_add, flow_loop_level_compute,
1880 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
1881 flow_loop_outside_edge_p): Modified for new infrastructure.
1882 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
1883 redirect_edge_with_latch_update, flow_loop_free): New static functions.
1884 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
1885 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
1886 find_common_loop, verify_loop_structure, loop_latch_edge,
1887 loop_preheader_edge): New functions.
1888 (flow_loops_cfg_dump): Do not show dominators, as this information
1889 does not remain up to date long.
1890 (flow_loops_find): Store results in new format.
1891 * predict.c (propagate_freq, estimate_probability,
1892 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
1893 infrastructure.
1894
1895 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
1896
1897 * except.c (nothrow_function_p): Walk epilogue delay list
1898 checking the insn, not the chain for potential throws.
1899
1900 2002-05-31 Zack Weinberg <zack@codesourcery.com>
1901
1902 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
1903 (install): Refer to install-cpp directly.
1904 (uninstall-cpp): Folded into uninstall rule.
1905 * configure.in: Delete all code relating to --disable-cpp.
1906 * configure: Regenerate.
1907 * config/t-install-cpp: Delete.
1908
1909 2002-05-31 Richard Henderson <rth@redhat.com>
1910
1911 * configure.in (HAVE_AS_TLS): Add alpha tests.
1912 * configure: Rebuild.
1913 * config/alpha/alpha.c (TARGET_AS_TLS): New.
1914 (alpha_tls_size, alpha_tls_size_string): New.
1915 (overide_options): Set it. Always install machine_status hooks.
1916 (input_operand): Accept got tls predicates.
1917 (local_symbol_p): Merge into ...
1918 (local_symbolic_operand): ... here. Reject tls symbols.
1919 (global_symbolic_operand): Likewise.
1920 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
1921 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
1922 (tp16_symbolic_operand, tp32_symbolic_operand): New.
1923 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
1924 (alpha_encode_section_info): Handle TLS symbols.
1925 (alpha_strip_name_encoding): Likewise.
1926 (alpha_legitimate_address_p): Likewise.
1927 (alpha_legitimize_address): Likewise.
1928 (alpha_expand_mov): Early exit to avoid nop moves.
1929 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
1930 (alpha_init_machine_status, alpha_mark_machine_status,
1931 alpha_free_machine_status): Always define.
1932 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
1933 (print_operand, print_operand_address): Add TLS relocs.
1934 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
1935 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
1936 (TARGET_SWITCHES): Add -mtls-kernel.
1937 (alpha_tls_size, alpha_tls_size_string): New.
1938 (TARGET_OPTIONS): Add -mtls-size=.
1939 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
1940 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
1941 (ASM_OUTPUT_LABELREF): Skip %.
1942 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
1943 (PREDICATE_CODES): Update.
1944 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
1945 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
1946 UNSPEC_TP, UNSPECV_SET_TP): New.
1947 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
1948 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
1949 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
1950 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
1951 (call_value_osf_2_er): Accept anything as op4.
1952 * config/alpha/alpha-protos.h: Update.
1953 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
1954
1955 2002-05-31 Zack Weinberg <zack@codesourcery.com>
1956
1957 * cppinit.c (append_include_chain): Always pay attention to
1958 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
1959 marker on argument.
1960
1961 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
1962
1963 * target.h: Fix formatting.
1964 * timevar.h: Likewise.
1965 * tlink.c: Likewise.
1966 * toplev.c: Likewise.
1967 * toplev.h: Likewise.
1968 * tree.c: Likewise.
1969 * tree-dump.h: Likewise.
1970 * tree.h: Likewise.
1971 * tree-inline.h: Likewise.
1972 * unroll.c: Likewise.
1973 * unwind-dw2.c: Likewise.
1974 * unwind-dw2-fde.c: Likewise.
1975 * unwind-dw2-fde-glibc.c: Likewise.
1976 * unwind-dw2-fde.h: Likewise.
1977 * unwind.h: Likewise.
1978 * unwind-sjlj.c: Likewise.
1979 * varasm.c: Likewise.
1980 * varray.h: Likewise.
1981 * vmsdbg.h: Likewise.
1982 * vmsdbgout.c: Likewise.
1983 * xcoffout.h: Likewise.
1984
1985 2002-05-31 Igor Shevlyakov <igor@microunity.com>
1986
1987 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
1988 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
1989
1990 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
1991
1992 * gcc.c (cpp_unique_options): Remove "-d" options.
1993 (cpp_debug_options): New spec string.
1994 (default_compilers): Use it.
1995 * objc/lang-specs.h: Likewise.
1996
1997 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
1998
1999 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
2000 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
2001 * gcc/mklibgcc.in: Likewise.
2002 * gcc/config/arc/t-arc: Likewise.
2003 * gcc/configure.in: Likewise.
2004 * gcc/configure: Regenerate.
2005
2006 2002-05-31 Stan Shebs <shebs@apple.com>
2007 Turly O'Connor <turly@apple.com>
2008
2009 * c-decl.c (struct binding_level): Change int field n_incomplete
2010 to tree list incomplete_list.
2011 (clear_binding_level): Init field with NULL.
2012 (pushdecl): Add incomplete type to list.
2013 (mark_binding_level): Mark the incomplete list.
2014 (finish_struct): Scan the incomplete list for types instead
2015 of all decls in the current binding level.
2016
2017 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2018
2019 * pa.c (output_millicode_call): Add missing '%' characters.
2020 (output_call): Likewise.
2021
2022 2002-05-31 David Edelsohn <edelsohn@gnu.org>
2023
2024 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
2025 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2026
2027 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
2028
2029 * varasm.c (mark_constant_pool): Walk epilogue delay list
2030 checking the insn, not the chain for potential constants.
2031
2032 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
2033
2034 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
2035
2036 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
2037
2038 * i386.c (classify_argument): Properly handle base types.
2039
2040 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
2041 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
2042 registers.
2043
2044 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2045
2046 * gcse.c (gcse_emit_move_after): New.
2047 (pre_delete, hoist_store): Use it.
2048
2049 * reload1.c (emit_input_reload_insns): Use constrain_operands
2050 instead of constraint_accepts_reg_p to verify optimization.
2051 (constraint_accepts_reg_p): Kill
2052
2053 * reload1.c (reload_cse_delete_noop_set): Kill.
2054 (reload_cse_simplify): use delte_insn_and_edges.
2055
2056 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2057
2058 * cfgloop.c (flow_loops_find): Initialize first and last fields
2059 correctly.
2060
2061 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
2062
2063 * c-common.c (builtin_define_std): Correct logic.
2064
2065 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2066
2067 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
2068 (output_call): Likewise.
2069
2070 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2071
2072 * pa.c: Move output.h include after tree.h include.
2073 (pa_asm_output_mi_thunk): Constify identifier lab.
2074
2075 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2076
2077 * config/ns32k/ns32k.h: Define named constants for the
2078 bits in target_flags and use them.
2079 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
2080
2081 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2082
2083 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
2084 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
2085 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
2086 default scheduling model.
2087 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
2088 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
2089 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
2090 * doc/install.texi (hppa*-*-*): Document default scheduling.
2091
2092 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2093
2094 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
2095
2096 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2097
2098 * config.gcc (ns32k-*-netbsd*): Set tm_file to
2099 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
2100 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
2101 netbsd.h, or netbsd-aout.h.
2102
2103 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2104
2105 * longlong.h (count_trailing_zeros): Add missing \, and clean up
2106 whitespace in __ns32000__ case.
2107
2108 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
2109
2110 * expr.c (expand_expr): Output partially zeroed out vectors with
2111 output_constant_def.
2112
2113 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2114
2115 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
2116 (sh-*-netbsdelf*)
2117 (shl*-*-netbsdelf*): New targets.
2118 * config/sh/netbsd-elf.h: New file.
2119 * config/sh/t-netbsd: New file.
2120
2121 2002-05-30 Richard Henderson <rth@redhat.com>
2122 Eric Botcazou <ebotcazou@multimania.com>
2123
2124 PR optimization/6822
2125 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
2126 to unsigned int for op1 comparisons. Use gen_int_mode.
2127
2128 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
2129
2130 * expmed.c (const_mult_add_overflow_p): New.
2131 * expr.h: Declare it.
2132 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
2133 Don't eliminate the biv if the giv has a constant multiplier and
2134 the rhs argument of the comparison does satisfy the predicate.
2135 Use expand_mult_add to compute the replacement constant.
2136
2137 2002-05-30 Osku Salerma <osku@iki.fi>
2138
2139 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
2140 (c_common_get_alias_set): Handle it.
2141 * doc/extend.texi: Document it.
2142
2143 2002-05-30 Richard Henderson <rth@redhat.com>
2144
2145 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2146 * toplev.c (process_options): Don't check it.
2147 * doc/tm.texi: Don't document it.
2148 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
2149 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2150 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
2151 frame pointer optimization if current_function_profile.
2152
2153 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2154
2155 * langhooks.c: Fix formatting.
2156 * langhooks.h: Likewise.
2157 * lcm.c: Likewise.
2158 * libgcc2.c: Likewise.
2159 * lists.c: Likewise.
2160 * local-alloc.c: Likewise.
2161 * loop.c: Likewise.
2162 * loop.h: Likewise.
2163
2164 2002-05-30 Marc Espie <espie@openbsd.org>
2165
2166 * config.gcc (sparc64-*-openbsd*): New.
2167 * config/sparc/openbsd1-64.h: New.
2168 * config/sparc/openbsd64.h: New.
2169
2170 2002-05-30 Jeff Law <law@redhat.com>
2171
2172 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
2173 a dead insn with a REG_RETVAL note when the entire libcall is not
2174 dead and remove the associated REG_LIBCALL note at the same time.
2175
2176 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2177
2178 * lcm.c (output.h): #include.
2179 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
2180 as an ordinary block.
2181 (optimize_mode_switching): Don't pretend that the exit block is
2182 an ordinary block, or handle sucessors of entry block specially.
2183 Instead, split edges from entry block and to exit block, and
2184 put a computing definition on the thus gained post-entry-block,
2185 and a need on the pre-exit-block.
2186
2187 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2188
2189 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
2190 * rtl.texi: Document 'B'
2191
2192 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2193
2194 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
2195 at run-time.
2196 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
2197
2198 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
2199
2200 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2201 const0_rtx instead of NULL_RTX when in error.
2202 (altivec_expand_abs_builtin): Same.
2203 (rs6000_expand_binop_builtin): Same.
2204 (altivec_expand_predicate_builtin): Same.
2205 (altivec_expand_stv_builtin): Same.
2206 (rs6000_expand_ternop_builtin): Same.
2207 (altivec_expand_builtin): Same.
2208
2209 2002-05-29 David S. Miller <davem@redhat.com>
2210
2211 * rtl.h (clear_emit_caches): Delete.
2212 * integrate.c (output_inline_function): Don't call it.
2213 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
2214 (clear_emit_caches): Delete definition.
2215 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
2216
2217 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
2218
2219 * config/mmix/mmix.c: Include real.h.
2220 (mmix_constant_address_p): Remove redundant test before switch.
2221
2222 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2223
2224 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
2225 only if not already defined.
2226
2227 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2228
2229 * config/h8300/h8300-protos.h: Remove prototypes for
2230 ok_for_bclr and small_power_of_two.
2231 * config/h8300/h8300.c (small_power_of_two): Remove.
2232 (ok_for_blcr): Likewise.
2233 (fix_bit_operand): Make WHAT deal with an integer instead of a
2234 constraint character.
2235 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
2236 (CONST_OK_FOR_P): Likewise.
2237 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
2238 CONST_OK_FOR_P any more.
2239 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
2240 of fix_bit_operand.
2241 (iorqi3): Likewise.
2242 (xorqi3): Likewise.
2243
2244 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2245
2246 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2247 (CPP_PREDEFINES): Make sure this is undefined.
2248 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
2249 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
2250 or -U__MIPSEB__ before defining one or the other. Instead,
2251 use %(subtarget_endian_default) if neither -EB nor -EL are
2252 specified.
2253 (SUBTARGET_EXTRA_SPECS): Define.
2254 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
2255 %(netbsd_cpp_spec).
2256
2257 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
2258
2259 * doc/md.texi (Patterns): Note pattern condition pitfall
2260 for unnamed insn.
2261
2262 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
2263
2264 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
2265 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
2266 ternary operations from here...
2267 (rs6000_expand_builtin): ...to here.
2268 New argument expandedp.
2269 Change all instances of altivec_expand_binop_builtin to
2270 rs6000_expand_binop_builtin.
2271 (altivec_expand_unop_builtin): Rename to
2272 rs6000_expand_unop_builtin.
2273 (altivec_expand_binop_builtin): Rename to
2274 rs6000_expand_binop_builtin.
2275 (altivec_expand_ternop_builtin): Rename to
2276 rs6000_expand_ternop_builtin.
2277
2278 2002-05-29 Richard Henderson <rth@redhat.com>
2279
2280 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
2281 (TARGET_BI_ARCH): Likewise.
2282 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
2283 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
2284 (TARGET_64BIT_DEFAULT): Default to 0.
2285 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
2286
2287 2002-05-29 Richard Henderson <rth@redhat.com>
2288
2289 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
2290 (get_pc_thunk_name): New.
2291 (output_set_got): Use it.
2292 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
2293 into linkonce sections.
2294
2295 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2296
2297 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2298 (CPP_PREDEFINES): Make sure this is undefined.
2299 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
2300 (CPP_SUBTARGET_SPEC): Don't provide different versions for
2301 default-32 and default-64. Just always use %(netbsd_cpp_spec).
2302 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
2303 cpp_subtarget_spec64. Add netbsd_cpp_spec.
2304 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2305 (CPP_PREDEFINES): Make sure this is undefined.
2306 (SUBTARGET_EXTRA_SPECS): Define.
2307 (CPP_SPEC): Use %(netbsd_cpp_spec).
2308
2309 2002-05-29 Jeff Law <law@redhat.com>
2310
2311 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
2312
2313 * flow.c (propagate_one_insn): Do not remove a dead insn if it
2314 contains a REG_RETVAL note.
2315
2316 * haifa-sched (sched_analyze): Remove another useless clearing
2317 of SCHED_GROUP_P I missed yesterday.
2318
2319 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
2320 * pa.c (pa_asm_output_mi_thunk): New function.
2321 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
2322
2323 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2324 Marek Michalkiewicz <marekm@amelek.gda.pl>
2325
2326 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
2327 (avr_asm_only_p): Make non-static.
2328 (enum avr_arch): Remove.
2329 (avr_arch_types): New.
2330 (avr_mcu_types): Update.
2331 (avr_override_options): Use avr_arch_types table instead of switch.
2332 * avr.h (CPP_PREDEFINES): Die.
2333 (avr_base_arch_macro, avr_extra_arch_macro): New.
2334 (TARGET_CPU_CPP_BUILTINS): New.
2335 (CPP_SPEC, EXTRA_SPECS): Simplify.
2336 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
2337 CPP_AVR5_SPEC): Die.
2338
2339 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2340
2341 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2342 NETBSD_OS_CPP_BUILTINS_AOUT.
2343 (SUBTARGET_EXTRA_SPECS): Define.
2344 (CPP_SPEC): Use %(netbsd_cpp_spec).
2345
2346 2002-05-29 Richard Henderson <rth@redhat.com>
2347
2348 * config/i386/i386.c (ix86_output_function_epilogue): New.
2349 (TARGET_ASM_FUNCTION_EPILOGUE): New.
2350 (pic_label_name): Remove.
2351 (pic_labels_used): New.
2352 (ix86_asm_file_end): Emit one pc load stub for each register used.
2353 (output_set_got): Generate deep pc load to any register.
2354 (ix86_select_alt_pic_regnum): New.
2355 (ix86_save_reg): Don't save pic register if we can find a valid
2356 call-clobbered replacement.
2357 (ix86_expand_prologue): If we found a valid replacement, renumber
2358 pic_offset_table_rtx.
2359 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
2360 pic_offset_table_rtx after reload.
2361 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
2362 * config/i386/i386.md (set_got): Make insn, not expander.
2363 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
2364
2365 2002-05-29 Richard Henderson <rth@redhat.com>
2366
2367 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
2368 alignment for alloca.
2369
2370 2002-05-29 Richard Henderson <rth@redhat.com>
2371
2372 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
2373 (print_operand_address): Only add rip for symbolic addresses
2374 for which we do not have another relocation type.
2375
2376 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2377
2378 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2379 (EXTRA_SPECS): Add netbsd_cpp_spec.
2380 (CPP_SPEC): Use %(netbsd_cpp_spec).
2381 (CPP_PREDEFINES): Remove.
2382 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2383 (EXTRA_SPECS): Define.
2384 (CPP_SPEC): Use %(netbsd_cpp_spec).
2385 (CPP_PREDEFINES): Remove.
2386
2387 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2388
2389 PR preprocessor/6844
2390 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
2391 NUL.
2392
2393 2002-05-29 Eric Christopher <echristo@redhat.com>
2394
2395 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
2396 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
2397
2398 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
2399
2400 * config/fr30/fr30.md: Remove previous restriction on splits.
2401 Enforce conformance through gen_lowpart and cont_int_operand.
2402 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
2403 as the assembler does not support ".bss".
2404
2405 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2406
2407 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2408 (CPP_PREDEFINES): Remove.
2409 (SUBTARGET_EXTRA_SPECS): Define.
2410 (CPP_SPEC): Use %(netbsd_cpp_spec).
2411 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2412 (CPP_PREDEFINES): Remove.
2413 (SUBTARGET_EXTRA_SPECS): Define.
2414 (CPP_SPEC): Use %(netbsd_cpp_spec).
2415 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
2416 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
2417 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
2418 Add netbsd_cpp_spec.
2419 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
2420
2421 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2422 Zack Weinberg <zack@codesourcery.com>
2423
2424 * cppexp.c (cpp_num): Move to cpplib.h.
2425 (CPP_ERROR): Remove.
2426 (interpret_float_suffix, interpret_int_suffix): New.
2427 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
2428 (cpp_classify_number, cpp_interpret_integer): New.
2429 (interpret_number): Remove.
2430 (eval_token): Update to use new routines.
2431 * cpphash.h (cpp_num_part): Move to cpplib.h.
2432 * cppinit.c (cpp_post_options): Set warn_long_long.
2433 * cpplib.h (struct cpp_options): Add warn_long_long.
2434 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
2435 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
2436 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
2437 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
2438 cpp_interpret_integer): New.
2439
2440 2002-05-29 Joel Sherrill <joel@OARcorp.com>
2441
2442 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
2443
2444 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2445
2446 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2447 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
2448 (CPP_SUBTARGET_SPEC): Define.
2449 (SUBTARGET_EXTRA_SPECS): Define.
2450 (CPP_SPEC): Remove.
2451
2452 2002-05-29 Chris Lattner <sabre@nondot.org>
2453
2454 * ssa.c (rename_insn_1): Rename uses of undefined registers to
2455 prevent confusion if/when the register is defined.
2456
2457 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
2458
2459 PR target/6838
2460 * config/cris/cris.md: Fix typos and thinkos in comments.
2461 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
2462 second alternative.
2463 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
2464 ("*mov_sideqi_mem"): Similar, but for operand 3.
2465 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
2466 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
2467 Remove spurious mode specifier on operand 2.
2468
2469 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2470
2471 * config/h8300/h8300-protos.h: Remove the prototype for
2472 o_operand.
2473 Add prototypes for single_one_operand and single_zero_operand.
2474 * config/h8300/h8300.c (o_operand): Remove.
2475 (single_one_operand): New.
2476 (single_zero_operand): Likewise.
2477 (print_operand): For 'V' operand, and the operand with 0xff.
2478 For 'V' and 'W' operands, do not and the bit position with 7.
2479 * config/h8300/h8300.md (various anonymous patterns): Replace
2480 use of exact_log2 with single_one_operand/single_zero_operand.
2481
2482 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2483
2484 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2485
2486 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2487
2488 * config/s390/s390.c (legitimate_pic_operand_p): Do not
2489 accept symbolic LARL operands.
2490 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
2491 epilogue insns.
2492
2493 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
2494
2495 * config/s390/s390.md (cmpstr_64/31): Mark whole
2496 input registers as used.
2497
2498 2002-05-28 Richard Henderson <rth@redhat.com>
2499
2500 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
2501 not current_function_uses_pic_offset_table and
2502 current_function_uses_const_pool; examine current_function_profile.
2503 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
2504 input to blockage if needed.
2505 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
2506 (legitimize_pic_address): Likewise. Set regs_ever_live for
2507 pic_offset_table_rtx when invoked during reload.
2508 * config/i386/i386.h (FINALIZE_PIC): Remove.
2509 * config/i386/i386.md (tablejump): Reformat. Do not set
2510 current_function_uses_pic_offset_table.
2511 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
2512 (blockage): Accept anything as operand 0.
2513
2514 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2515
2516 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
2517 common CPP built-ins for all NetBSD a.out targets.
2518 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
2519 common CPP built-ins for all NetBSD ELF targets.
2520 * config/netbsd.h: Add missing notice.
2521 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
2522 for all NetBSD targets.
2523 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
2524 for all NetBSD targets using an LP64 code model.
2525 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
2526 NetBSD targets.
2527
2528 2002-05-28 Richard Henderson <rth@redhat.com>
2529
2530 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
2531 update if UPDATE_LIFE_LOCAL.
2532
2533 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2534
2535 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
2536
2537 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2538 Jason R. Thorpe <thorpej@wasabisystems.com>
2539
2540 config/sh reorganization to factor out endianness and coff:
2541
2542 * config/sh/little.h: New file.
2543 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
2544 defined, define to 0 to select big-endian.
2545 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
2546 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2547 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2548 * config/sh/t-be: New file.
2549 * config/sh/t-le: New file.
2550
2551 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
2552 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
2553 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
2554 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
2555 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2556 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2557 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
2558 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
2559 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
2560 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
2561 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
2562 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
2563 (LINK_SPEC): Define to SH_LINK_SPEC.
2564 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
2565 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
2566 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2567 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
2568 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
2569 * config/sh/coff.h: New file.
2570 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
2571 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2572 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
2573 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
2574 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
2575 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
2576 (PTRDIFF_TYPE): Likewise.
2577 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
2578 (CPP_PREDEFINES): Don't define.
2579 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2580 (LINK_SPEC): Define to SH_LINK_SPEC.
2581 (LINK_EMUL_PREFIX): Redefine.
2582 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
2583 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
2584 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
2585 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
2586 (TARGET_OS_CPP_BUILTINS): Define.
2587 (TARGET_DEFAULT): Redefine.
2588 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2589 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
2590 (LINK_SPEC): Don't redefine.
2591 (LINK_DEFAULT_CPU_EMUL): Redefine.
2592 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2593 * sh.c (sh_asm_named_section): Don't declare / define.
2594 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
2595 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
2596 (sh64-*-elf* tm_file): Likewise.
2597 (sh-*-rtemself* tm_file): Likewise.
2598 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
2599 (sh-*-linux* tmake_file): Add sh/t-le.
2600 (sh-*-rtems* tm_file): Add sh/coff.h
2601 (sh-*-* tm_file): Likewise.
2602
2603 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2604
2605 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
2606 CONSTANT_POOL_ADDRESS_P.
2607
2608 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
2609
2610 2002-05-28 David Edelsohn <edelsohn@gnu.org>
2611 Jeff Law <law@redhat.com>
2612
2613 * optabs.c (expand_binop): Fix nwords sign warnings.
2614 generate pseudo for add_optab.
2615
2616 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
2617 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
2618
2619 2002-05-28 Marc Espie <espie@openbsd.org>
2620
2621 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
2622 inherited from gas.h.
2623 (ASM_QUAD): Undef. OpenBSD does not support it.
2624
2625 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
2626
2627 * doc/install.texi (binaries): Change mingw binaries
2628 link to www.mingw.org.
2629
2630 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2631
2632 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
2633
2634 2002-05-28 Richard Henderson <rth@redhat.com>
2635
2636 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
2637 bottom alignment for leaf functions.
2638
2639 2002-05-28 Zack Weinberg <zack@codesourcery.com>
2640
2641 * config/pa/milli32.S, config/pa/lib1funcs.asm,
2642 config/sparc/sol2-g1.asm: Delete unused files.
2643
2644 2002-05-28 Richard Henderson <rth@redhat.com>
2645
2646 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
2647
2648 * flow.c (calculate_global_regs_live): Rename call_used to
2649 invalidated_by_call. Initialize from regs_invalidated_by_call
2650 instead of call_used_regs.
2651
2652 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
2653 DECL_EXTERNAL.
2654
2655 2002-05-28 Zack Weinberg <zack@codesourcery.com>
2656
2657 * tree.h: Don't include real.h.
2658 Forward-declare struct realvaluetype.
2659 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
2660 contain it.
2661 (TREE_REAL_CST_PTR): New accessor.
2662 (TREE_REAL_CST): Update.
2663 * real.h: Include machmode.h.
2664 (realvaluetype): Make it struct realvaluetype, not a typedef.
2665 (build_real): Prototype here.
2666
2667 * tree.c: Include real.h.
2668 (build_real): Allocate the REAL_VALUE_TYPE as a separate
2669 object in GC memory, set TREE_REAL_CST_PTR to point to it.
2670 (build_real_from_int_cst): Use build_real.
2671 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
2672 REAL_CST.
2673
2674 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
2675 fold-const.c, print-tree.c, real.c: Include real.h.
2676 * Makefile.in: Update dependency lists.
2677
2678 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2679
2680 * basic-block.h (last_basic_block): Declare.
2681 (expunge_block_nocompact): Declaration removed.
2682 (compact_blocks): Declare.
2683 * cfg.c (last_basic_block): New variable.
2684 (expunge_block_nocompact): Removed.
2685 (expunge_block): Do not compact basic blocks.
2686 (compact_blocks): New.
2687 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
2688 longer change.
2689 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
2690 last_basic_block.
2691 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
2692 real positions of blocks.
2693 (delete_unreachable_blocks): Simplified -- quadratic behavior now
2694 cannot occur.
2695 (cleanup_cfg): Compact blocks.
2696 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
2697 basic_block_info varray.
2698 (flow_delete_block): Comment update.
2699 (back_edge_of_syntactic_loop_p): Modify position check code.
2700 (verify_flow_info): Update checking.
2701 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
2702 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2703 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
2704 indices no longer change.
2705 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
2706 last_basic_block.
2707 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
2708 * profile.c (branch_prob): Compact blocks.
2709 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
2710 last_basic_block.
2711
2712 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
2713
2714 * config/h8300/h8300.md (two anonymous patterns): New.
2715
2716 2002-05-28 David S. Miller <davem@redhat.com>
2717
2718 * config/sparc/sparc.md (cpu): Tidy.
2719 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
2720 'trap'.
2721 (in_call_delay): Delete reference to 'return' type.
2722 (eligible_for_return_delay, in_return_delay, define_delay
2723 referencing those): Delete.
2724 (rest of file): Use new type attributes as appropriate.
2725 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
2726 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
2727 * config/sparc/ultra1_2.md (us1_single): New reservation.
2728 (us1_ialuX): Likewise.
2729 * config/sparc/ultra3.md (us3_single): Likewise.
2730 (us3_ialuX): Likewise.
2731 (us3_imul, us3_idiv): Tweak.
2732
2733 2002-05-28 Richard Henderson <rth@redhat.com>
2734
2735 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
2736 STRING_CST.
2737
2738 2002-05-28 Richard Henderson <rth@redhat.com>
2739
2740 * config.gcc: Obsolete mn10200.
2741
2742 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
2743
2744 * cppexp.c (interpret_number): Optimize for single-digit
2745 and less-than-half-precision cases.
2746 (num_trim, num_positive, num_div_op): Cast constants.
2747
2748 2002-05-27 Bo Thorsen <bo@suse.de>
2749
2750 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
2751 3.1 branch. The file was made by Jakub Jelinek.
2752 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
2753 support so multilib doesn't break. And don't define this at all
2754 when -Dinhibit_libc is used.
2755 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
2756 * config/i386/t-linux64: Implement full multilib support. Patch
2757 originally done by Andreas Jaeger and Jakub Jelinek.
2758
2759 2002-05-27 Roger Sayle <roger@eyesopen.com>
2760
2761 * c-common.c: Add support for __attribute__((nothrow)) to specify
2762 that a function cannot throw an exception (using TREE_NOTHROW).
2763 (handle_nothrow_attribute): New function to process this attribute.
2764
2765 * doc/extend.texi: Document the new nothrow function attribute.
2766
2767 2002-05-27 H.J. Lu (hjl@gnu.org)
2768
2769 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
2770 (num_positive): Likewise.
2771 (num_div_op): Likewise.
2772
2773 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2774
2775 * c-common.c (c_common_init): Always use intmax_t.
2776
2777 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2778
2779 * c-common.c (c_common_init): Use intmax_t for now.
2780
2781 2002-05-24 Andrew Haley <aph@redhat.com>
2782
2783 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
2784 if T is a boolean type.
2785
2786 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2787
2788 * basic-block.h (last_basic_block): Defined as synonym for
2789 n_basic_blocks.
2790 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
2791 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2792 flow_dfs_compute_reverse_init): Replaced relevant occurences of
2793 n_basic_blocks with last_basic_block.
2794 * cfgbuild.c (make_edges): Likewise.
2795 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
2796 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
2797 * combine.c (combine_instructions): Likewise.
2798 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
2799 iterative_dataflow_bitmap): Likewise.
2800 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2801 calc_idoms, idoms_to_doms): Likewise.
2802 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
2803 Likewise.
2804 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
2805 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
2806 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
2807 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
2808 delete_null_pointer_checks, compute_code_hoist_vbeinout,
2809 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2810 compute_store_table, build_store_vectors): Likewise.
2811 * haifa-sched.c (sched_init): Likewise.
2812 * ifcvt.c (if_convert): Likewise.
2813 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
2814 pre_edge_lcm, compute_available, compute_nearerout,
2815 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
2816 Likewise.
2817 * predict.c (estimate_probability, process_note_prediction,
2818 note_prediction_to_br_prob): Likewise.
2819 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
2820 * recog.c (split_all_insns, peephole2_optimize): Likewise.
2821 * regrename.c (copyprop_hardreg_forward): Likewise.
2822 * resource.c (init_resource_info): Likewise.
2823 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
2824 init_regions, schedule_insns): Likewise.
2825 * ssa-ccp.c (ssa_const_prop): Likewise.
2826 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2827 * ssa.c (compute_dominance_frontiers,
2828 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
2829
2830 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
2831 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
2832 sizes consistently.
2833
2834 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
2835
2836 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
2837 new.
2838 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
2839 hoist_insn_after, hoist_insn_to_edge): New.
2840
2841 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
2842
2843 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
2844 (PROP_FINAL): Include.
2845 * flow.c (life_analysis, update_life_info,
2846 init_propagate_block_info, mark_set_1, mark_used_rgs):
2847 Support SCAN_DEAD_STORE.
2848
2849 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2850
2851 * c-common.c (c_common_init): Set CPP arithmetic precision.
2852 * cppexp.c (cpp_num_part): Move typedef ...
2853 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
2854 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
2855 (sanity_checks): Update.
2856
2857 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
2858
2859 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
2860 (mkheaders): New rule.
2861 (install-mkheaders): New rule.
2862 * configure.in (all_outputs): Add mkheaders.
2863 * configure: Regenerate.
2864 * mkheaders.in: New file.
2865
2866 2002-05-26 Jakub Jelinek <jakub@redhat.com>
2867
2868 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
2869
2870 2002-05-26 Andreas Jaeger <aj@suse.de>
2871
2872 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
2873
2874 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
2875
2876 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
2877 right_shift): Remove.
2878 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
2879 HIGH_PART): New.
2880 (struct op): Use cpp_num.
2881 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
2882 num_part_mul, num_unary_op, num_binary_op, num_negate,
2883 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
2884 num_div_op, num_lshift, num_rshift, append_digit): New.
2885 (interpret_number, parse_defined, eval_token, reduce): Update
2886 for two-integer arithmetic.
2887 (binary_handler): New typedef.
2888 (optab): Update.
2889 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
2890 (_cpp_parse_expr, reduce): Update to handle two-integers.
2891 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
2892
2893 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
2894
2895 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
2896 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
2897 branch insn into account, do not assume 1.
2898 (avr_out_sbxx_branch): New function. Optimize cases of skipping
2899 over single word insn. Handle upper half of I/O space too.
2900 * config/avr/avr.md (*sbrx_branch): Use it.
2901 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
2902 (*sbix_branch, *sbix_branch_bit7): Likewise.
2903 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
2904 Use RTL peepholes to optimize register operand sign tests.
2905
2906 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
2907
2908 * config/avr/avr.c (avr_asm_only_p): New variable.
2909 (avr_override_options): Set it here if AVR1.
2910 (asm_file_start): Test it here, report an error if set.
2911
2912 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
2913
2914 * alias.c: Fix formatting.
2915 * attribs.c: Likewise.
2916 * bb-reorder.c: Likewise.
2917 * bitmap.c: Likewise.
2918 * bitmap.h: Likewise.
2919 * builtins.c: Likewise.
2920
2921 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
2922
2923 * reload.c (find_valid_class): Accept new argument DEST,
2924 choose class accordingly.
2925 (push_reload): Update callers.
2926
2927 2002-05-26 Andreas Jaeger <aj@suse.de>
2928
2929 * combine.c (combine_instructions): Do not indent #if for
2930 traditional C.
2931
2932 2002-05-25 Richard Henderson <rth@redhat.com>
2933
2934 * c-pragma.c (apply_pragma_weak): Convert value identifier to
2935 string for decl_attributes.
2936 (handle_pragma_weak): Call assemble_alias if we're modifying
2937 an existing decl.
2938
2939 2002-05-25 Richard Henderson <rth@redhat.com>
2940
2941 PR target/6788
2942 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
2943 using rtl instead of fprintf.
2944 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
2945 * config/sparc/sparc-protos.h: Update.
2946
2947 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
2948
2949 * Makefile.in (C_COMMON_H): Fix.
2950 Update other targets.
2951 * c-common.c: Don't include c-lex.h.
2952 (builtin_define_with_value): Make static and prototype.
2953 (builtin_define_std): Move from c-lex.h.
2954 * c-common.h (init_c_lex): Move from c-lex.h.
2955 * c-decl.c: Don't include c-lex.h.
2956 (make_pointer_declarator): Move from c-parse.in.
2957 * c-lex.c: Don't include c-lex.h.
2958 * c-lex.h: Remove.
2959 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
2960 (make_pointer_declarator): Move to c-decl.c.
2961 * c-pragma.c: Don't include c-lex.h.
2962 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
2963 * c-tree.h (make_pointer_declarator): New.
2964 doc:
2965 * passes.texi, tm.texi: Update.
2966 objc:
2967 * Make-lang.in: Update and correct.
2968 * objc-act.c: Don't include c-lex.h or cpplib.h.
2969 treelang:
2970 * treetree.c: Don't include c-lex.h.
2971 config:
2972 * darwin-c.c: Don't include c-lex.h.
2973 * c4x/c4x-c.c: Don't include c-lex.h.
2974 * c4x/t-c4x: Update.
2975 * i370/i370-c.c: Don't include c-lex.h.
2976 * i370/t-i370: Update.
2977 * i960/i960-c.c: Don't include c-lex.h.
2978 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
2979 * i960/t-960bare: Update.
2980 * i960/t-vxworks: Update.
2981 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
2982 * rs6000/t-darwin: Update.
2983 * rs6000/t-rs6000-c-rule: Update.
2984 * v850/v850-c.c: Don't include c-lex.h.
2985 * v850/v850.c: Don't include c-lex.h or cpplib.h.
2986
2987
2988 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2989
2990 * tree.def: Fix typos.
2991 * doc/install.texi: Likewise.
2992
2993 2002-05-25 Richard Henderson <rth@redhat.com>
2994
2995 * configure.in (HAVE_AS_TLS): Add ia64 test.
2996 * configure: Rebuild.
2997 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
2998 (override_options): Set it.
2999 (TARGET_HAVE_TLS): New.
3000 (sdata_symbolic_operand): Look for 's'.
3001 (tls_symbolic_operand): New.
3002 (ia64_expand_load_address): Abort for tls symbols.
3003 (gen_tls_get_addr): New.
3004 (gen_thread_pointer): New.
3005 (ia64_expand_move): Split out from movdi. Handle tls symbols.
3006 (rtx_needs_barrier): Add new unspecs.
3007 (ia64_encode_section_info): Handle tls symbols.
3008 (ia64_strip_name_encoding): Strip two encoding chars.
3009 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
3010 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
3011 (TARGET_OPTIONS): Add tls-size.
3012 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
3013 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
3014 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
3015 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
3016 (movsf, movdf): Likewise.
3017 (movdi_symbolic): Use match_scratch. Don't split if we won't
3018 have a scratch availiable.
3019 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
3020 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
3021 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
3022 * config/ia64/ia64-protos.h: Update.
3023 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
3024 sdata_symbolic_operand.
3025 (ASM_OUTPUT_LABELREF): Strip two characters.
3026
3027 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3028
3029 * combine.c (simplify_set): Remove an unnecessary subreg.
3030
3031 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
3032
3033 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
3034
3035 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
3036
3037 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3038
3039 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
3040
3041 2002-05-25 Roger Sayle <roger@eyesopen.com>
3042
3043 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
3044 (cond (compare x y) 0) into the equivalent (cond x y).
3045
3046 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3047
3048 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
3049
3050 2002-05-24 Zack Weinberg <zack@codesourcery.com>
3051
3052 * config.gcc: Remove all stanzas for previously obsoleted
3053 systems. Where necessary, add explicit error stanzas to
3054 prevent removed systems from being misidentified as something
3055 else. Begin a fresh obsoletions list, with the systems that
3056 were reprieved last round.
3057 * doc/install.texi: Remove all mention of dead targets.
3058 * fixinc/mkfixinc.sh: Likewise.
3059
3060 * config/arm/arm.h: Bit 31 of target_flags is no longer
3061 reserved.
3062
3063 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
3064 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
3065 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
3066 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
3067 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
3068 config/alpha/osf12.h, config/alpha/osf2or3.h,
3069 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
3070 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
3071 config/clipper/clipper-protos.h, config/clipper/clipper.c,
3072 config/clipper/clipper.h, config/clipper/clipper.md,
3073 config/clipper/clix.h, config/convex/convex-protos.h,
3074 config/convex/convex.c, config/convex/convex.h,
3075 config/convex/convex.md, config/convex/fixinc.convex,
3076 config/convex/proto.h, config/elxsi/elxsi-protos.h,
3077 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
3078 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
3079 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
3080 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
3081 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
3082 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
3083 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
3084 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
3085 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
3086 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
3087 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
3088 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
3089 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
3090 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
3091 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
3092 config/m68k/altos3068.h, config/m68k/apollo68.h,
3093 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
3094 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
3095 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
3096 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
3097 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
3098 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
3099 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
3100 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
3101 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
3102 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
3103 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
3104 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
3105 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
3106 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
3107 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
3108 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
3109 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
3110 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
3111 config/mips/dec-osf1.h, config/mips/elflorion.h,
3112 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
3113 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
3114 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
3115 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
3116 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
3117 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
3118 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
3119 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
3120 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
3121 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
3122 config/ns32k/sequent.h, config/ns32k/tek6000.h,
3123 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
3124 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
3125 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
3126 config/sparc/rtems.h, config/we32k/we32k-protos.h,
3127 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
3128 Delete file.
3129
3130 2002-05-24 Richard Henderson <rth@redhat.com>
3131
3132 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
3133 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
3134 * config/i386/i386.c (tls_model_chars): Add leading space.
3135 (tls_symbolic_operand): Don't bias by 1.
3136 (legitimize_address): Don't unbias by 1.
3137
3138 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3139
3140 * lcm.c (optimize_mode_switching): Change bb used as indices
3141 to bb->index.
3142
3143 2002-05-24 Richard Henderson <rth@redhat.com>
3144
3145 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
3146 of update_life_info_in_dirty_blocks.
3147
3148 2002-05-24 Jakub Jelinek <jakub@redhat.com>
3149
3150 PR other/6782
3151 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
3152
3153 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
3154
3155 PR preprocessor/6780
3156 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
3157
3158 2002-05-24 Jim Blandy <jimb@redhat.com>
3159
3160 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
3161 entry with a type code of zero, marking the end of the compilation
3162 unit's macro info.
3163
3164 2002-05-24 Richard Henderson <rth@redhat.com>
3165
3166 * varasm.c (asm_output_bss): Always output one byte.
3167 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3168
3169 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3170
3171 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
3172 namespace.
3173
3174 2002-05-24 Andreas Jaeger <aj@suse.de>
3175
3176 * ggc-page.c (alloc_page): Cast variables of type size_t to
3177 unsigned long, adjust printf format string.
3178 (ggc_alloc): Likewise.
3179 (ggc_print_statistics): Likewise.
3180 (ggc_print_statistics): Correct printf format string for SCALE to
3181 use unsigned long.
3182
3183 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
3184
3185 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
3186
3187 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
3188 Zack Weinberg <zack@codesourcery.com>
3189
3190 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
3191 quoted strings.
3192 * dwarf2out.c (lookup_filename): Properly quote filename in .file
3193 directive in assembly file.
3194 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3195 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3196 * config/pj/pj.h (ASM_FILE_START): Likewise.
3197 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
3198 * config/avr/avr.c (asm_file_end): Likewise.
3199 * toplev.c (output_quoted_string): Handle possibly signed plain
3200 char.
3201 * toplev.h (output_clean_symbol_name): Declare
3202 * toplev.c (output_clean_symbol_name): Define.
3203 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
3204 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
3205
3206 2002-05-24 Alan Modra <amodra@bigpond.net.au>
3207
3208 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
3209
3210 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
3211
3212 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
3213 of size of unsigned.
3214
3215 2002-05-23 Richard Henderson <rth@redhat.com>
3216
3217 * configure.in (HAVE_AS_TLS): New test.
3218 * config.in, configure: Rebuild.
3219 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
3220 (ix86_tls_dialect_string, ix86_tls_dialect): New.
3221 (override_options): Set it.
3222 (tls_model_chars, tls_symbolic_operand): New.
3223 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
3224 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
3225 (local_exec_symbolic_operand): New.
3226 (get_pic_label_name): Merge into output_set_got.
3227 (ix86_asm_file_end): Emit pic_label_name if defined.
3228 (legitimate_constant_p, constant_address_p): New.
3229 (legitimate_pic_operand_p): New.
3230 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
3231 (legitimate_address_p): Likewise.
3232 (ix86_encode_section_info): Rename from i386_; handle tls decls.
3233 (ix86_strip_name_encoding): New.
3234 (get_thread_pointer): New.
3235 (legitimize_address): Handle tls symbols.
3236 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
3237 Remove UNSPEC_PLT.
3238 (struct machine_function): Add some_ld_name.
3239 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
3240 (print_operand) [&]: Use it. Handle UNSPEC_TP.
3241 (output_addr_const_extra): New.
3242 (maybe_get_pool_constant): New.
3243 (ix86_split_to_parts): Use it.
3244 (ix86_expand_move): Handle tls symbols.
3245 (ix86_tls_get_addr): New.
3246 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
3247 (TARGET_OPTIONS): Add tls-dialect.
3248 (CONSTANT_ADDRESS_P): Use new out-of-line function.
3249 (LEGITIMATE_CONSTANT_P): Likewise.
3250 (LEGITIMATE_PIC_OPERAND_P): Likewise.
3251 (TARGET_STRIP_NAME_ENCODING): New.
3252 (ASM_OUTPUT_LABELREF): New.
3253 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3254 (OUTPUT_ADDR_CONST_EXTRA): New.
3255 (PREDICATE_CODES): Update.
3256 (ix86_tls_dialect, ix86_tls_dialect_string): New.
3257 * config/i386/i386.md: Regroup and renumber unspec constants.
3258 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
3259 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
3260 (tls_global_dynamic, tls_local_dynamic_base): New.
3261 (tls_local_dynamic_once): New.
3262 * config/i386/i386-protos.h: Update.
3263
3264 2002-05-23 Richard Henderson <rth@redhat.com>
3265
3266 * genemit.c (gen_insn): Print file:lineno comment before function.
3267 (main): likewise.
3268 * gensupport.c (struct queue_elem): Add filename member.
3269 (queue_pattern): Initialize it; update all callers.
3270 (process_include): Don't free filename.
3271 (read_md_rtx): Set read_rtx_filename.
3272
3273 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
3274
3275 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
3276
3277 2002-05-23 Richard Henderson <rth@redhat.com>
3278
3279 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
3280
3281 2002-05-23 Richard Henderson <rth@redhat.com>
3282
3283 * doc/extend.texi (C++98 Thread-Local Edits): Update with
3284 commentary from Mark.
3285
3286 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3287
3288 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
3289 Use FOR_EACH_BB macros to iterate over basic block chain.
3290 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
3291 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
3292 Likewise.
3293 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
3294 find_unreachable_blocks, create_edge_list, verify_edge_list,
3295 remove_fake_edges, add_noreturn_fake_exit_edges,
3296 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
3297 Likewise.
3298 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3299 find_sub_basic_blocks): Likewise.
3300 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
3301 Likewise.
3302 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
3303 Likewise.
3304 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
3305 Likewise.
3306 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
3307 commit_edge_insertions, commit_edge_insertions_watch_calls,
3308 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
3309 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
3310 * conflict.c (conflict_graph_compute): Likewise.
3311 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3312 df_modified_p, df_refs_unlink, df_dump): Likewise.
3313 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
3314 * final.c (compute_alignments): Likewise.
3315 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
3316 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
3317 count_or_remove_death_notes): Likewise.
3318 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
3319 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
3320 classic_gcse, compute_transp, cprop, compute_pre_data,
3321 compute_transpout, invalidate_nonnull_info,
3322 delete_null_pointer_checks_1, delete_null_pointer_checks,
3323 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
3324 compute_store_table, build_store_vectors, store_motion): Likewise.
3325 * global.c (global_conflicts, mark_elimination): Likewise.
3326 * graph.c (print_rtl_graph_with_bb): Likewise.
3327 * haifa-sched.c (sched_init): Likewise.
3328 * ifcvt.c (if_convert): Likewise.
3329 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3330 compute_available, compute_nearerout, compute_rev_insert_delete,
3331 optimize_mode_switching): Likewise.
3332 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
3333 * predict.c (estimate_probability, note_prediction_to_br_prob,
3334 propagate_freq, counts_to_freqs, expensive_function_p,
3335 estimate_bb_frequencies): Likewise.
3336 * profile.c (instrument_edges, get_exec_counts,
3337 compute_branch_probabilities, compute_checksum, branch_prob,
3338 find_spanning_tree): Likewise.
3339 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3340 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
3341 Likewise.
3342 * regclass.c (scan_one_insn, regclass): Likewise.
3343 * regmove.c (mark_flags_life_zones, regmove_optimize,
3344 record_stack_memrefs): Likewise.
3345 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
3346 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
3347 * resource.c (find_basic_block): Likewise.
3348 * sched-ebb.c (schedule_ebbs): Likewise.
3349 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
3350 find_single_block_region, find_rgns, schedule_insns)
3351 * sibcall.c (optimize_sibling_and_tail_recursive_call)
3352 * ssa-ccp.c (optimize_unexecutable_edges,
3353 ssa_ccp_df_delete_unreachable_insns): Likewise.
3354 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3355 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
3356 rename_block, convert_to_ssa, compute_conservative_reg_partition,
3357 compute_coalesced_reg_partition, rename_equivalent_regs,
3358 convert_from_ssa): Likewise.
3359 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
3360 process_for_unwind_directive): Likewise.
3361
3362 * df.c (FOR_ALL_BBS): Removed.
3363 * gcse.c (struct null_pointer_info): Type of current_block field
3364 changed.
3365 (struct reg_avail_info): Type of last_bb field changed.
3366 * config/ia64/ia64.c (block_num): Removed.
3367 (need_copy_state): Type changed.
3368 (last_block): New.
3369
3370 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3371
3372 * cppinit.c (mark_named_operators): Split out from init_builtins.
3373 (cpp_finish_options): Call it from here instead.
3374
3375 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3376
3377 * builtin-attrs.def: Update copyright years.
3378 (ATTR_NONNULL): New attribute identifier.
3379 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
3380 attribute tree lists.
3381 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
3382 format operand.
3383 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
3384 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
3385 attribute lists. Chain the appropriate nonnull attribute.
3386 * c-format.c (check_format_arg): Remove null format string
3387 warning.
3388 * testsuite/gcc.dg/format/null-1.c: New test.
3389
3390 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3391
3392 * Makefile.in (ADAC): Define.
3393 (SYSLIBS): Define.
3394 (.SUFFIXES): Move before language makefile fragments.
3395 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
3396
3397 2002-05-23 Mark Mitchell <mark@codesourcery.com>
3398
3399 * varasm.c (make_decl_rtl): Don't allow weak variables to be
3400 placed in common.
3401
3402 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3403
3404 * cfg.c (dump_flow_info): Print results of
3405 maybe_hot/probably_never_executed predicates.
3406 * toplev.c (open_dump_file): Print function frequency.
3407
3408 2002-05-23 David S. Miller <davem@redhat.com>
3409
3410 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
3411 regsets.
3412
3413 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3414
3415 * c-common.c (warn_nonnull): Declare.
3416 (c_common_attribute_table): Add "nonnull" attribute.
3417 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
3418 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
3419 check_function_arguments_recurse): New functions.
3420 * c-common.h (warn_nonnull): Declare extern.
3421 (check_function_arguments, check_function_arguments_recurse): New
3422 prototypes.
3423 * c-decl.c (c_decode_option): Add -Wnonnull option.
3424 * c-format.c (set_Wformat): Set warn_nonnull if enabling
3425 format checking.
3426 (format_check_context): New structure.
3427 (check_format_info_recurse): Remove recursion and rename to...
3428 (check_format_arg): ...this. Update comment.
3429 (check_format_info): Use check_function_arguments_recurse.
3430 * c-typeck.c (build_function_call): Call check_function_arguments
3431 instead of check_function_format.
3432 * doc/extend.texi: Document "nonnull" attribute.
3433 * doc/invoke.texi: Docuemnt -Wnonnull option.
3434 * testsuite/gcc.dg/nonnull-1.c: New test.
3435 * testsuite/gcc.dg/nonnull-2.c: New test.
3436
3437 2002-05-23 David S. Miller <davem@redhat.com>
3438
3439 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
3440 * cfgcleanup.c (cleanup_cfg): If it is set do not
3441 attempt to delete trivially dead insns.
3442 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
3443 * toplev.c (rest_of_compilation): Document non-trivial aspect
3444 the RTL before optimize_save_area_alloca is run.
3445
3446 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3447
3448 * c-lex.c (indent_level): Remove.
3449 (cb_file_change, c_lex): Remove indent level handling.
3450 * c-lex.h (indent_level): Remove.
3451 * input.h (struct file_stack): Remove indent_level.
3452 * toplev.c (push_srcloc): Remove indent_level handling.
3453
3454 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3455
3456 PR target/6753
3457 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
3458 of x in constraints for clarity.
3459 (sse_mov?fcc split): abort if op2 == op3.
3460 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
3461 sse_movsfcc_const0_4): Add earlyclobber.
3462 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
3463 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
3464 Use Y instead of x in constraints.
3465
3466 2002-05-23 Richard Henderson <rth@redhat.com>
3467
3468 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
3469 (C++98 Thread-Local Edits): New subsection.
3470
3471 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
3472 (ix86_arch): Set type to enum processor_type.
3473
3474 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
3475 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
3476
3477 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3478
3479 * configure.in: Fix as version test for binutils 2.12.1 releases
3480 (without dates).
3481 * configure: Rebuilt.
3482
3483 2002-05-23 Richard Henderson <rth@redhat.com>
3484
3485 * config/i386/i386.c (get_pic_label_name): New.
3486 (load_pic_register): Remove.
3487 (output_set_got): New.
3488 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
3489 * config/i386/i386.md (UNSPEC_SET_GOT): New.
3490 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
3491 (prologue_set_got, prologue_get_pc): Remove.
3492 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
3493 (builtin_setjmp_receiver): Use gen_set_got.
3494 * config/i386/i386-protos.h: Update.
3495
3496 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
3497
3498 * gcse.c (hash_expr): Do not use alias set for hashing.
3499
3500 2002-05-22 Kevin Buettner <kevinb@redhat.com>
3501
3502 * dbxout.c (dbxout_class_name_qualifiers): New function.
3503 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
3504
3505 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3506
3507 * cpperror.c (_cpp_begin_message): No special casing
3508 of CPP_FATAL_LIMIT.
3509 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
3510 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
3511 * cpplib.c (do_include_common): Use DL_ERROR.
3512 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
3513 (DL_ICE): Renumber.
3514 * fix-header.c (read_scan_file): Update.
3515
3516 2002-05-22 Richard Henderson <rth@redhat.com>
3517
3518 * config/i386/i386.c (ix86_expand_call): New function, extracted
3519 from md call patterns. Add pic_offset_table_rtx to
3520 CALL_INSN_FUNCTION_USAGE when needed.
3521 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
3522 (call_value_pop, call_value, untyped_call): Likewise.
3523 (call_exp, call_value_exp): Remove.
3524 * config/i386/i386-protos.h: Update.
3525
3526 2002-05-22 Richard Henderson <rth@redhat.com>
3527
3528 * varasm.c (default_section_type_flags): Check for VAR_DECL
3529 before using DECL_THREAD_LOCAL.
3530
3531 2002-05-22 David Edelsohn <edelsohn@gnu.org>
3532
3533 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
3534 (STARTFILE_SPEC): Delete PE crt0.o.
3535 * config/rs6000/aix51.h: Same.
3536 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
3537 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
3538 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
3539 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
3540 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
3541
3542 2002-05-22 Richard Henderson <rth@redhat.com>
3543
3544 * varasm.c (default_section_type_flags): Handle tls data and
3545 default sections.
3546 (default_unique_section): Handle tls sections.
3547
3548 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3549
3550 * configure.in (CROSS): Define NATIVE_CROSS.
3551 * configure: Regenerate.
3552 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
3553 (startfile_prefix_spec): New var.
3554 (static_specs): Add startfile_prefix_spec.
3555 (do_spec_2): Split out from..
3556 (do_spec): ..here.
3557 (main): Process startfile_prefix_spec.
3558 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
3559 dynamic linker.
3560 (STARTFILE_PREFIX_SPEC): Define.
3561 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
3562 absolute paths.
3563
3564 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3565
3566 * cpperror.c: Fix formatting.
3567 * cppexp.c: Likewise.
3568 * cppfiles.c: Likewise.
3569 * cpphash.c: Likewise.
3570 * cpphash.h: Likewise.
3571 * cppinit.c: Likewise.
3572 * cpplex.c: Likewise.
3573 * cpplib.c: Likewise.
3574 * cppmacro.c: Likewise.
3575 * cppmain.c: Likewise.
3576 * cppspec.c: Likewise.
3577
3578 2002-05-22 Jakub Jelinek <jakub@redhat.com>
3579
3580 * combine.c (force_to_mode): Use gen_int_mode.
3581 Don't clear CONST_INT bits outside of mode.
3582
3583 2002-05-22 Richard Henderson <rth@redhat.com>
3584
3585 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
3586 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3587
3588 2002-05-22 Jakub Jelinek <jakub@redhat.com>
3589
3590 PR c/6643
3591 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
3592 if DECL_SIZE_UNIT is INTEGER_CST.
3593
3594 2002-05-22 Richard Henderson <rth@redhat.com>
3595
3596 * flow.c (life_analysis): Delete broken reg_label check.
3597
3598 2002-05-22 Richard Henderson <rth@redhat.com>
3599
3600 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
3601 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3602
3603 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3604
3605 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
3606 (embed-bb.c): New rule.
3607 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
3608 * config/sh/embed_bb.c: Delete.
3609
3610 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
3611
3612 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
3613
3614 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3615
3616 * config/h8300/h8300.md (*andorqi3): New.
3617
3618 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
3619
3620 PR preprocessor/6517
3621 * Makefile.in: Update.
3622 * c-common.c (c_common_post_options): Add preprocessor
3623 errors to the error count.
3624 * c-lang.c (c_post_options): Kill.
3625 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3626 * hooks.h: Add header guards.
3627 * langhooks-def.h: Include hooks.h.
3628 (LANG_HOOKS_POST_OPTIONS): Update.
3629 * langhooks.h (struct lang_hooks): Update post_options.
3630 * toplev.c (parse_options_and_default_flags): Update.
3631 objc:
3632 * objc-lang.c (objc_post_options): Kill.
3633 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3634
3635 2002-05-21 Bruce Korb <bkorb@gnu.org>
3636
3637 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
3638 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
3639 * fixinc/fixincl.x: regen.
3640
3641 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
3642
3643 * cfgbuild.c: Fix formatting.
3644 * cfg.c: Likewise.
3645 * cfgcleanup.c: Likewise.
3646 * cfglayout.c: Likewise.
3647 * cfgloop.c: Likewise.
3648 * cfgrtl.c: Likewise.
3649
3650 2002-05-21 Richard Henderson <rth@redhat.com>
3651
3652 * c-common.h (enum rid): Add RID_THREAD.
3653 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
3654 (grokdeclarator): Grok __thread.
3655 * c-parse.in (reswords): Add __thread.
3656 (rid_to_yy): Add RID_THREAD.
3657
3658 * tree.h (DECL_THREAD_LOCAL): New.
3659 (struct tree_decl): Add thread_local_flag.
3660 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
3661 * tree.c (staticp): TLS variables are not static.
3662
3663 * target-def.h (TARGET_HAVE_TLS): New.
3664 * target.h (have_tls): New.
3665 * output.h (SECTION_TLS): New.
3666 * varasm.c (assemble_variable): TLS variables can't be common for now.
3667 (default_section_type_flags): Handle .tdata and .tbss.
3668 (default_elf_asm_named_section): Handle SECTION_TLS.
3669 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
3670
3671 * flags.h (flag_tls_default): Declare.
3672 * toplev.c (flag_tls_default): Define.
3673 (display_help): Display help for it.
3674 (decode_f_option): Set it.
3675
3676 * doc/extend.texi (Thread-Local): New node describing language-level
3677 thread-local storage.
3678 * doc/invoke.texi (-ftls-model): Document.
3679
3680 * fixinc/inclhack.def (thread_keyword): New.
3681 * fixinc/fixincl.x: Rebuild.
3682
3683 2002-05-21 Jeffrey A Law <law@redhat.com>
3684
3685 * optabs.c (expand_binop): For double-word integer multiplies,
3686 do not compute intermediate results into something that is
3687 not a register (such as a SUBREG or MEM).
3688
3689 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
3690 (ix86_sched_reorder): Make sure to initialize scheduling
3691 data even when there's only one insn in the ready queue.
3692
3693 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3694
3695 * genautomata.c (reserv_sets_hash_value): Fix a typo.
3696
3697 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3698
3699 * genautomata.c (reserv_sets_hash_value): Define hash_value as
3700 set_el_t. Transform the hash value into unsigned.
3701 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
3702 (transform_3): Add code to process `(A,B)+(D,E)'.
3703
3704 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
3705
3706 * reload1.c (do_output_reload): Run delete_output_reload
3707 only if optimizing.
3708
3709 2002-05-21 Roger Sayle <roger@eyesopen.com>
3710
3711 PR middle-end/6600
3712 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
3713 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
3714 (can_store_by_pieces): ... and here to limit the largest mode used.
3715 Add a comment to document this function.
3716
3717 2002-05-21 Richard Henderson <rth@redhat.com>
3718
3719 * flow.c (life_analysis): Fix test for deleted label.
3720
3721 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
3722
3723 * doc/tm.texi: Fix typo.
3724
3725 2002-05-21 Zack Weinberg <zack@codesourcery.com>
3726
3727 * c-common.c (c_common_init): Set options->unsigned_char from
3728 flag_signed_char.
3729 (cb_register_builtins): Define __STRICT_ANSI__ and
3730 __CHAR_UNSIGNED__ here...
3731 * cppinit.c (init_builtins): Not here.
3732 (cpp_create_reader): unsigned_char option defaults to 0, not
3733 !DEFAULT_SIGNED_CHAR.
3734 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
3735 and -funsigned-char.
3736
3737 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
3738 * cpphash.c (_cpp_init_hashtable): Don't set it.
3739 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
3740 directly. Clarify comment.
3741
3742 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3743
3744 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
3745 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
3746 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
3747 BASIC_BLOCK (n_basic_blocks - 1).
3748 * cfganal.c (can_fallthru, flow_call_edges_add,
3749 flow_preorder_transversal_compute): Too.
3750 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3751 find_sub_basic_blocks): Too.
3752 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
3753 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
3754 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
3755 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
3756 * combine.c (this_basic_block): Type changed to basic_block.
3757 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
3758 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3759 get_last_value, distribute_notes, distribute_links): Too.
3760 * final.c (compute_alignments): Too.
3761 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
3762 * function.c (thread_prologue_and_epilogue_insns): Too.
3763 * gcse.c (compute_code_hoist_vbeinout): Too.
3764 * global.c (build_insn_chain): Too.
3765 * ifcvt.c (find_if_block, find_cond_trap): Too.
3766 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
3767 * regmove.c (regmove_optimize): Too.
3768 * resource.c (find_basic_block): Too.
3769 * sched-ebb.c (schedule_ebbs): Too.
3770 * ssa-dce.c (find_control_dependence, find_pdom): Too.
3771
3772 2002-05-21 Andreas Jaeger <aj@suse.de>
3773
3774 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
3775
3776 2002-05-21 Richard Henderson <rth@redhat.com>
3777
3778 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
3779 unspec names, not numbers.
3780
3781 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
3782
3783 * doc/sourcebuild.texi: Mention snapshot-README and
3784 snapshot-index.html as needing updating for new front ends.
3785
3786 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3787
3788 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
3789 disabling checking, and avoid multiple evaluation of RTX.
3790
3791 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
3792
3793 * bitmap.c (bitmap_find_bit): Return early if we have the correct
3794 element cached.
3795
3796 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3797
3798 * profile.c (gen_edge_profiler): Set alias set before the memory is
3799 used.
3800
3801 2002-05-20 David S. Miller <davem@redhat.com>
3802
3803 * cselib.c (max_value_regs): New.
3804 (cselib_lookup, cselib_invalidate_regno): Initialize it when
3805 adding new entries to the REG_VALUES table and we are dealing with
3806 a hard register.
3807 (clear_table): Initialize it.
3808 (cselib_invalidate_regno): Use it to determine which hard
3809 registers to scan when mode is not VOIDmode.
3810
3811 2002-05-20 Duraid Madina <duraid@fl.net.au>
3812
3813 * tradcpp.c (fixup_newlines): Use old-style function header.
3814
3815 2002-05-20 Krister Walfridsson <cato@df.lth.se>
3816
3817 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
3818
3819 2002-05-20 H.J. Lu (hjl@gnu.org)
3820
3821 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
3822
3823 * config/mips/mips.h (DFMODE_NAN): Defined.
3824 (SFMODE_NAN): Likewise.
3825
3826 2002-05-20 Dale Johannesen <dalej@apple.com>
3827
3828 * combine.c (cant_combine_insn_p): Back out my
3829 previous patch.
3830
3831 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3832
3833 * params.c: Fix formatting.
3834 * params.h: Likewise.
3835 * predict.c: Likewise.
3836 * prefix.c: Likewise.
3837 * print-rtl.c: Likewise.
3838 * print-tree.c: Likewise.
3839 * profile.c: Likewise.
3840
3841 2002-05-20 H.J. Lu (hjl@gnu.org)
3842
3843 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
3844
3845 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
3846
3847 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
3848 switches straight on to the assembler, do not abbreviate them.
3849 * config/arm/elf.h (ASM_SPEC): As above.
3850 * config/arm/semi.h (ASM_SPEC): As above.
3851 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
3852 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
3853 -mcpu=xscale on to the assembler by default.
3854 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
3855
3856 2002-05-20 Richard Henderson <rth@redhat.com>
3857
3858 * cse.c (canon_hash): Reorder do_not_record test. Always
3859 allow pic_offset_table_rtx.
3860
3861 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
3862
3863 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
3864 (expand_binop): Ditto (3 times).
3865
3866 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
3867
3868 * Makefile.in (distclean): Remove QMTest stuff.
3869 (QMTEST_PATH): New variable.
3870 (QMTESTFLAGS): Likewise.
3871 (QMTESTRUNFLAGS): Likewise.
3872 (QMTEST): Likewise.
3873 (QMTEST_GPP_TESTS): Likewise.
3874 (QMTEST_DIR): Likewise.
3875 (QMTEST_DIR/context): New target.
3876 (qmtest-g++): Likeise.
3877 (qmtest-gui): Likewise.
3878 (QMTEST_DIR/gpp-expected.qmr): Likewise.
3879
3880 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
3881
3882 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
3883 an altivec register if TARGET_ALTIVEC.
3884
3885 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
3886 to ALTIVEC_VECTOR_MODE.
3887 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
3888 (rs6000_va_arg): Vectors may go in registers if they are not
3889 altivec vectors.
3890
3891 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
3892
3893 * protoize.c: Fix formatting.
3894
3895 2002-05-19 Richard Henderson <rth@redhat.com>
3896
3897 * gensupport.c (init_include_reader): Merge into ...
3898 (process_include): ... here. Simplify composite path creation.
3899 Plug memory leaks. Fix file/line number tracking. Do not
3900 process_define_cond_exec. Return void.
3901 (process_rtx): Don't check process_include return value.
3902
3903 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3904
3905 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
3906 fields.
3907 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3908 traversing basic block chain.
3909 (create_basic_block_structure, create_basic_block): Declaration changed.
3910 (link_block, unlink_block): Declare.
3911 * cfg.c (entry_exit_blocks): Initialize new fields.
3912 (link_block, unlink_block): New.
3913 (expunge_block_nocompact): Unlink basic block.
3914 (dump_flow_info): Print prev_bb/next_bb fields.
3915 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
3916 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
3917 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
3918 * cfgrtl.c (create_basic_block_structure, create_basic_block,
3919 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
3920 (verify_flow_info): Check that list agrees with numbering.
3921
3922 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
3923
3924 * c-common.c (preprocessing_asm): New macro.
3925 * c-lex.h (builtin_define, builtin_assert): Use pfile.
3926 doc:
3927 * tm.texi: Update.
3928 config/alpha:
3929 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
3930 (CPP_SPEC): Simplify.
3931 (TARGET_CPU_CPP_BUILTINS): Update.
3932 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
3933 (CPP_SPEC): Simplify.
3934 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
3935 (TARGET_OS_CPP_BUILTINS): Update.
3936 * osf.h (CPP_XFLOAT_SPEC): Kill.
3937 (TARGET_OS_CPP_BUILTINS): Update.
3938 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
3939 * osf5.h (CPP_XFLOAT_SPEC): Kill.
3940 * vms.h (CPP_SUBTARGET_SPEC): Kill.
3941 (TARGET_OS_CPP_BUILTINS): Update.
3942
3943 2002-05-19 Richard Henderson <rth@redhat.com>
3944
3945 * varasm.c (default_binds_local_p): Fix typo.
3946
3947 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
3948
3949 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
3950 CONST_INT operand to the correct mode after adding 1 to it.
3951
3952 2002-05-19 Mark Mitchell <mark@codesourcery.com>
3953
3954 * config.gcc (powerpc-wrs-windiss*): New target.
3955
3956 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3957
3958 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
3959 (ashrdi3): Use it.
3960
3961 2002-05-18 Mark Mitchell <mark@codesourcery.com>
3962
3963 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
3964 alphasort.
3965 * config.in: Regenerated.
3966 * configure: Regenerated.
3967
3968 2002-05-19 Richard Henderson <rth@redhat.com>
3969
3970 * target-def.h (TARGET_BINDS_LOCAL_P): New.
3971 * target.h (struct gcc_target): Move boolean fields to the end.
3972 Add binds_local_p.
3973 * varasm.c (default_binds_local_p): New.
3974 * output.h: Declare it.
3975
3976 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
3977 * config/cris/cris.c (cris_encode_section_info): Likewise.
3978 * config/i386/i386.c (i386_encode_section_info): Likewise.
3979 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
3980 * config/sh/sh.c (sh_encode_section_info): Likewise.
3981
3982 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
3983 (TARGET_BINDS_LOCAL_P): New.
3984
3985 2002-05-19 Richard Henderson <rth@redhat.com>
3986
3987 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
3988 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
3989 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
3990
3991 * toplev.c (display_help): Kill -a -ax help.
3992
3993 * config/1750a/1750a.h, config/alpha/alpha.h,
3994 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
3995 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
3996 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
3997 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
3998
3999 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
4000 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
4001
4002 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
4003 (ix86_output_function_block_profiler): Kill.
4004 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
4005 (m68hc11_function_block_profiler): Kill.
4006 * config/m68hc11/m68hc11-protos.h: Update.
4007 * config/m88k/m88k.c (output_block_profiler): Kill.
4008 (output_function_block_profiler): Kill.
4009 * config/m88k/m88k-protos.h: Update.
4010
4011 2002-05-19 Richard Henderson <rth@redhat.com>
4012
4013 * system.h (STRIP_NAME_ENCODING): Poison it.
4014 * output.h (STRIP_NAME_ENCODING): Remove.
4015 (default_strip_name_encoding): Declare.
4016 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
4017 * target.h (strip_name_encoding): New.
4018 * varasm.c (default_strip_name_encoding): New.
4019
4020 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
4021 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
4022 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
4023 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
4024 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
4025 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
4026 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
4027 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
4028 config/v850/v850.h: Use the hook, not the macro.
4029
4030 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4031 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
4032 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
4033 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
4034 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
4035 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
4036 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
4037 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
4038 config/v850/v850.c, config/v850/v850.h:
4039 Move STRIP_NAME_ENCODING to out-of-line function and add
4040 TARGET_STRIP_NAME_ENCODING.
4041
4042 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
4043 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
4044 with TARGET_STRIP_NAME_ENCODING referencing existing function;
4045 make function static.
4046
4047 * xcoffout.c: Include target.h
4048 * Makefile.in (xcoffout.o): Update.
4049
4050 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
4051 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
4052 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
4053 reloc argument unused.
4054 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
4055
4056 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
4057 STRIP_NAME_ENCODING docs.
4058
4059 2002-05-19 Andreas Jaeger <aj@suse.de>
4060
4061 * gengenrtl.c: Add prototype for excluded_rtx.
4062
4063 * real.h: Add prototype for exact_real_truncate.
4064
4065 2002-05-18 Richard Henderson <rth@redhat.com>
4066
4067 * system.h (ENCODE_SECTION_INFO): Poison it.
4068 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
4069 * target.h (encode_section_info): New.
4070 * varasm.c (make_decl_rtl, output_constant_def): Use it.
4071 * hooks.c (hook_tree_int_void): New.
4072 * hooks.h: Declare it.
4073
4074 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4075 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
4076 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
4077 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
4078 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
4079 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
4080 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4081 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
4082 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4083 config/mcore/mcore-protos.h, config/mcore/mcore.c,
4084 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
4085 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
4086 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
4087 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
4088 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
4089 referencing existing function. Make function static.
4090
4091 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
4092 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
4093 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4094 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
4095 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
4096 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
4097 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
4098 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
4099 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
4100 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
4101 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
4102 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
4103 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
4104 Move ENCODE_SECTION_INFO to out-of-line function and add
4105 TARGET_ENCODE_SECTION_INFO.
4106
4107 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
4108 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4109
4110 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
4111 from SUBTARGET_*
4112 (switch_to_section): Replace in_rdata case with in_readonly_data.
4113
4114 * config/h8300/h8300.c (h8300_encode_label): Make static.
4115 * config/h8300/h8300-protos.h: Update.
4116
4117 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
4118 from rs6000_encode_section_info; make static.
4119 (rs6000_xcoff_encode_section_info): New.
4120
4121 * config/v850/v850.c (v850_encode_data_area): Make static.
4122 * config/v850/v850-protos.h: Update.
4123
4124 * config/vax/vax.c: Include flags.h.
4125 (vms_select_section): Fix typo.
4126
4127 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
4128 ENCODE_SECTION_INFO docs.
4129
4130 2002-05-18 Richard Henderson <rth@redhat.com>
4131
4132 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
4133 REGISTER_TARGET_PRAGMAS.
4134 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
4135
4136 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
4137
4138 2002-05-18 Richard Henderson <rth@redhat.com>
4139
4140 * system.h (SELECT_RTX_SECTION): Poison.
4141 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
4142 * target.h (select_rtx_section): New.
4143 * varasm.c (output_constant_pool): Use it.
4144 (default_select_rtx_section, default_elf_select_rtx_section): New.
4145 * output.h: Declare them.
4146
4147 * config/darwin.h (SELECT_RTX_SECTION): Move ...
4148 * config/darwin.c (machopic_select_rtx_section): ... here.
4149 * config/darwin-protos.h: Update.
4150
4151 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
4152 * config/nextstep.c (machopic_select_rtx_section): ... here.
4153 (nextstep_select_section): Rename variable to avoid macro clash.
4154 * config/nextstep-protos.h: Update.
4155
4156 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
4157 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
4158 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
4159 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
4160 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
4161 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
4162 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
4163 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
4164 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
4165 (SELECT_RTX_SECTION): Remove.
4166
4167 * config/darwin.h, config/elfos.h, config/nextstep.h,
4168 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
4169 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
4170 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
4171 config/sparc/lynx.h, config/xtensa/xtensa.c
4172 (TARGET_ASM_SELECT_RTX_SECTION): New.
4173
4174 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
4175 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
4176 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
4177 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
4178 (ia64_aix_select_rtx_section): New.
4179 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
4180 redefining.
4181 * config/mips/mips.c (mips_select_rtx_section): Make static.
4182 Support ELF SHF_MERGE features.
4183 * config/mips/mips-protos.h: Update.
4184 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
4185 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
4186 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
4187 make static, fall back to default_elf_select_rtx_section.
4188 * config/rs6000/rs6000-protos.h: Update.
4189 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
4190 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
4191 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
4192 * config/romp/romp.c (romp_select_rtx_section): New.
4193 * config/s390/s390.c (s390_select_rtx_section): New.
4194 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
4195 declarations before target macro definition.
4196 (xtensa_emit_call): Use static buffer.
4197 (xtensa_select_rtx_section): New.
4198 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
4199 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
4200 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
4201
4202 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
4203 SELECT_RTX_SECTION docs.
4204
4205 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
4206
4207 * i386.md (movsi/movdi): Fix template.
4208 (sse2 patterns): Set attributes consistently.
4209
4210 * i386.md (pushqi2, ashrqi_*): Fix constraint.
4211
4212 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
4213
4214 * optabs.c (complex_part_zero_p): New.
4215 * (expand_cmplxdiv_straight): Use it.
4216 * (expand_cmplxdiv_wide): Ditto.
4217 * (expand_binop): Ditto.
4218
4219 2002-05-18 Richard Henderson <rth@redhat.com>
4220
4221 * final.c (HAVE_READONLY_DATA_SECTION): New.
4222 (shorten_branches): Use it instead of ifdefs.
4223 * varasm.c (enum in_section): Add in_readonly_data.
4224 (text_section, data_section): Tidy.
4225 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
4226
4227 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
4228 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
4229 (READONLY_DATA_SECTION): Don't undef.
4230
4231 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
4232 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
4233 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
4234
4235 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
4236 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
4237 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
4238 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
4239
4240 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
4241 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
4242 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4243 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
4244 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
4245 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
4246 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
4247 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
4248 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
4249
4250 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
4251 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
4252 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
4253 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
4254 config/pa/pa64-hpux.h, config/sparc/litecoff.h
4255 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4256
4257 * config/elfos.h, config/netware.h, config/svr3.h,
4258 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4259 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4260 config/h8300/h8300.h, config/i386/i386-interix.h,
4261 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4262 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
4263
4264 * config/elfos.h, config/netware.h, config/svr3.h,
4265 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4266 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
4267 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4268 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
4269
4270 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
4271 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
4272 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
4273 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
4274 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
4275 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
4276 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
4277 config/rs6000/sysv4.h, config/v850/v850.h
4278 (EXTRA_SECTIONS): Remove in_const/in_rdata.
4279 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
4280
4281 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
4282 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
4283 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
4284 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
4285 * config/alpha/alpha.c (alpha_start_function): Likewise.
4286 (alpha_write_linkage): Likewise.
4287 * config/m32r/m32r.c (m32r_select_section): Likewise.
4288 * config/m88k/m88k.c (m88k_select_section): Likewise.
4289 * config/mips/mips.c (mips_select_rtx_section): Likewise.
4290 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
4291 (rs6000_elf_select_section): Likewise.
4292 * config/v850/v850.c (v850_select_section): Likewise.
4293
4294 * config/1750a/1750a.h, config/i860/sysv3.h
4295 (READONLY_DATA_SECTION_ASM_OP): New.
4296 READONLY_DATA_SECTION_ASM_OP.
4297 * config/i386/interix.c, config/i386/winnt.c
4298 (i386_pe_unique_section): Always use .rdata prefix.
4299 * config/pa/som.h (readonly_data): Always switch to read-only section.
4300 (READONLY_DATA_SECTION): Predicate on flag_pic.
4301 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
4302 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
4303 (READONLY_DATA_SECTION): Update.
4304
4305 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
4306
4307 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
4308 is used without -Wformat.
4309 * c-common.h (warn_format_zero_length): Declare extern.
4310 * c-decl.c (warn_options): Add "format-zero-length".
4311 * c-format.c (warn_format_zero_length): Declare.
4312 (set_Wformat): Set warn_format_zero_length for -Wformat.
4313 (check_format_info): Only warn about zero-length formats if
4314 warn_format_zero_length is true. Include the format type
4315 name in the warning message.
4316 * doc/invoke.texi: Document -Wformat-zero-length.
4317 * testsuite/gcc.dg/format/zero-length-1.c: New test.
4318
4319 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4320
4321 * timevar.c: Fix formatting.
4322 * tlink.c: Likewise.
4323 * toplev.c: Likewise.
4324 * tree-dump.c: Likewise.
4325 * tree-inline.c: Likewise.
4326
4327 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4328
4329 * cppinit.c (cpp_post_options): If preprocessed, turn off
4330 traditional. If traditional, turn off column numbers.
4331 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
4332 * cpptrad.c (handle_newline): Update line_base.
4333 (skip_comment): Handle -Wcomment.
4334
4335 2002-05-17 Zack Weinberg <zack@codesourcery.com>
4336
4337 * cppinit.c (struct builtin): Remove unused fields.
4338 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
4339 (operator_array): New - was second half of builtin_array.
4340 (init_builtins): Simplify loop over builtin_array/operator_array.
4341
4342 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4343
4344 * defaults.h (UNIQUE_SECTION): Remove.
4345 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
4346
4347 2002-05-17 Richard Henderson <rth@redhat.com>
4348
4349 * expr.c (init_expr_once): Don't use start/end_sequence.
4350 Use rtx_alloc instead of emit_insn.
4351 * toplev.c (lang_dependent_init): Run init_expr_once here ...
4352 (lang_independent_init): ... not here.
4353
4354 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4355
4356 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
4357
4358 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
4359
4360 * config/avr/avr.c (avr_regs_to_save): New function. Also check
4361 for fixed registers, possibly used for global register variables.
4362 (initial_elimination_offset, avr_output_function_prologue,
4363 avr_output_function_epilogue): Move common code to avr_regs_to_save.
4364
4365 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4366
4367 * Makefile.in: Update for cpptrad.c.
4368 * cpphash.h (struct cpp_buffer): New members for buffer
4369 overlays.
4370 (struct cpp_reader): New members for traditional output.
4371 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
4372 * cppinit.c (cpp_create_reader): Set trad_line.
4373 (cpp_destroy): Free trad_out_base if used.
4374 (cpp_read_main_file): Overlay an empty buffer if traditional.
4375 (cpp_finish_options): Don't do builtins.
4376 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
4377 (cpp_handle_option): Handle it.
4378 * cpplex.c (continue_after_nul): New.
4379 (_cpp_lex_direct): Use handle_nul.
4380 * cpplib.h (struct cpp_options): New traditional option.
4381 * cpptrad.c: New file.
4382
4383 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4384
4385 * c-common.c (c_common_init_options): Use C89 for Objective-C,
4386 and set the options flag.
4387 * cppinit.c (lang_flags): Remove objc.
4388 (lang_defaults): Remove OBJC and OBJCXX.
4389 (set_lang): Update.
4390 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
4391 (cpp_handle_option): Remove -+ and -lang-objc++.
4392 For ObjC, just set a flag.
4393 (print_help): Update.
4394 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
4395
4396 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4397
4398 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
4399 bootstrap with -mips3.
4400
4401 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
4402
4403 * final.c: Fix formatting.
4404 * fix-header.c: Likewise.
4405 * flow.c: Likewise.
4406 * fold-const.c: Likewise.
4407 * function.c: Likewise.
4408
4409 2002-05-17 David S. Miller <davem@redhat.com>
4410
4411 PR c/6689, PR optimization/6615
4412 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
4413 and make it a pointer to rtx. Update comments.
4414 (update_equiv_regs): When scanning for equivalences, record
4415 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
4416 it while making the equiv replacements.
4417
4418 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4419
4420 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
4421
4422 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
4423
4424 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
4425 when encoding visibility into SYMBOL_REF_FLAG.
4426
4427 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
4428
4429 * expr.c (force_operand): Fix reversed move.
4430
4431 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
4432
4433 * doc/install.texi (Testing): Mention two common DejaGnu warnings
4434 that can be ignored.
4435
4436 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4437
4438 * doc/install.texi (Final install): Recommend to install into a
4439 "clean" target directory.
4440
4441 2002-05-17 Richard Henderson <rth@redhat.com>
4442
4443 * config/ia64/ia64.md: Use braced strings instead of quoted strings
4444 for code blocks. Tidy whitespace.
4445
4446 2002-05-17 Richard Henderson <rth@redhat.com>
4447
4448 * hooks.c (hook_tree_bool_false): New.
4449 * hooks.h: Declare it.
4450 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
4451 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
4452 * target.h (select_section, unique_section): New.
4453 (in_small_data_p): New.
4454 * varasm.c (resolve_unique_section): Use hooks instead of macros.
4455 (variable_section, output_constant_def_contents): Likewise.
4456 (default_select_section, default_unique_section): New.
4457 (categorize_decl_for_section, default_elf_select_section): New.
4458 * output.h: Declare them.
4459
4460 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
4461 (TARGET_ASM_SELECT_SECTION): New.
4462 (SELECT_SECTION): Move ...
4463 * config/darwin.c (machopic_select_section): ... here.
4464 * config/darwin-protos.h: Update.
4465
4466 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
4467 (SELECT_SECTION): Move ...
4468 * config/nextstep.c (nextstep_select_section): ... here.
4469 * config/nextstep-protos.h: Update.
4470
4471 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
4472 (TARGET_ASM_SELECT_SECTION): New.
4473 * config/svr3.h (SELECT_SECTION): Remove.
4474
4475 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
4476 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
4477 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
4478 (alpha_encode_section_info): Use it.
4479 * config/alpha/alpha-protos.h: Update.
4480 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
4481 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4482 (TARGET_ASM_SELECT_SECTION): New.
4483 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
4484
4485 * config/arm/pe.h (UNIQUE_SECTION): Remove.
4486 (TARGET_ASM_UNIQUE_SECTION): New.
4487
4488 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
4489 (avr_unique_section): Rename from unique_section; make static.
4490 * config/avr/avr-protos.h: Update.
4491 * config/avr/avr.h (UNIQUE_SECTION): Remove.
4492
4493 * config/c4x/c4x.h (SELECT_SECTION): Remove.
4494
4495 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
4496 (TARGET_ASM_UNIQUE_SECTION): New.
4497 * config/i386/i386-interix.h: Likewise.
4498 * config/i386/win32.h: Likewise.
4499 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
4500 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
4501 * config/i386/sco5.h (SELECT_SECTION): Remove.
4502 (TARGET_ASM_SELECT_SECTION): New.
4503 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
4504
4505 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
4506 instead of SELECT_SECTION.
4507 * config/m68k/dpx2.h: Likewise.
4508 * config/rs6000/lynx.h: Likewise.
4509
4510 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4511 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4512 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
4513 (ia64_in_small_data_p): New.
4514 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
4515 (ia64_aix_select_section, ia64_aix_unique_section): New.
4516 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
4517 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4518
4519 * config/m32r/m32r.h (SELECT_SECTION): Remove.
4520 (TARGET_ASM_SELECT_SECTION): New.
4521 * config/m32r/m32r.c (m32r_select_section): Take align argument.
4522 * config/m32r/m32r-protos.h: Update.
4523
4524 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
4525 (SELECT_SECTION): Move ...
4526 * config/m88k/m88k.c (m88k_select_section): ... here.
4527
4528 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
4529 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
4530 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
4531 (mcore_unique_section): Make static.
4532 * config/mcore/mcore-protos.h: Update.
4533
4534 * config/mips/elf.h (UNIQUE_SECTION): Remove.
4535 (TARGET_ASM_UNIQUE_SECTION): New.
4536 * config/mips/elf64.h: Likewise.
4537 * config/mips/iris6gld.h: Likewise.
4538 * config/mips/linux.h: Likewise.
4539 * config/mips/mips-protos.h: Update.
4540 * config/mips/mips.c (mips_select_section): Add align argument.
4541 * config/mips/mips.h (SELECT_SECTION): Remove.
4542 (TARGET_ASM_SELECT_SECTION): New.
4543
4544 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4545 * config/mmix/mmix.c (mmix_select_section): Remove.
4546 (mmix_unique_section): Remove.
4547 * config/mmix/mmix-protos.h: Update.
4548
4549 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
4550 (SELECT_SECTION): Move ...
4551 * config/pa/pa.c (pa_select_section): ... here.
4552 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
4553
4554 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
4555 from rs6000_select_section and make static.
4556 (rs6000_elf_unique_section): Similarly.
4557 (rs6000_xcoff_select_section): From xcoff.h.
4558 (rs6000_xcoff_unique_section): Likewise.
4559 * config/rs6000/rs6000-protos.h: Update.
4560 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4561 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4562 * config/rs6000/xcoff.h: Likewise.
4563
4564 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
4565 (SELECT_SECTION): Move ...
4566 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
4567
4568 * config/v850/v850.h (SELECT_SECTION): Move ...
4569 * config/v850/v850.c (v850_select_section): ... here.
4570 (TARGET_ASM_SELECT_SECTION): New.
4571
4572 * config/vax/vms.h (SELECT_SECTION): Move ...
4573 * config/vax/vax.c (vms_select_section): ... here.
4574 (TARGET_ASM_SELECT_SECTION): New.
4575
4576 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
4577 for the target hooks.
4578
4579 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
4580
4581 * config/arm/arm.c (emit_multi_reg_push): Do not set
4582 RTX_FRAME_RELATED_P on the SEQUENCE.
4583
4584 2002-05-16 Richard Henderson <rth@redhat.com>
4585
4586 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
4587 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
4588
4589 2002-05-16 Richard Henderson <rth@redhat.com>
4590
4591 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
4592
4593 * config/ia64/ia64.c (saveable_obstack): Do not declare.
4594
4595 2002-05-16 Richard Henderson <rth@redhat.com>
4596
4597 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
4598 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
4599 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
4600 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
4601 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
4602 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
4603 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
4604 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
4605 Revert "Basic block renumbering removal", and two followup patches.
4606
4607 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4608
4609 * lcm.c (optimize_mode_switching): Revert previous change.
4610
4611 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4612
4613 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
4614 with only extant block numbers.
4615
4616 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4617
4618 * lcm.c (optimize_mode_switching): Fix typo.
4619
4620 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4621
4622 * flow.c (calculate_global_regs_live): Queue blocks in program order.
4623
4624 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4625
4626 * doc/install.texi (Configuration): Document PWDCMD.
4627
4628 2002-05-16 Dale Johannesen <dalej@apple.com>
4629
4630 * combine.c (cant_combine_insn_p): Reenable combinations
4631 involving hard regs unless CLASS_LIKELY_SPILLED_P.
4632
4633 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4634
4635 * c-common.c (cb_register_builtins): Handle more built-ins
4636 here rather than in gcc.c specs.
4637 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
4638 (cpp_options): Pass -O flags even when only preprocessing.
4639 * toplev.c (set_fast_math_flags): New prototype.
4640 (fast_math_flags_set_p): New.
4641 (set_no_fast_math_flags): Remove.
4642 (decode_f_option): Update.
4643 * toplev.h (set_fast_math_flags): Update.
4644 (fast_math_flags_set_p): New.
4645 (set_no_fast_math_flags): Remove.
4646 config:
4647 * c4x/c4x.c (c4x_override_options): Update.
4648
4649 2002-05-16 Zack Weinberg <zack@codesourcery.com>
4650
4651 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
4652 Default-define here.
4653 (builtin_define_with_value): Can now wrap the expansion in
4654 quotation marks if such is wanted.
4655 (cb_register_builtins): Update calls to builtin_define_with_value.
4656 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
4657 here.
4658 (c_common_init): Set options->stdc_0_in_system_headers.
4659 * c-lex.h: Update prototype of builtin_define_with_value.
4660 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
4661 and REGISTER_PREFIX.
4662
4663 * cppinit.c (VERS, ULP, C, X): Kill.
4664 (builtin_array): Remove entries for __VERSION__,
4665 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
4666 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
4667 a constant.
4668 (init_builtins): Kill off a bunch of now-dead code.
4669 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
4670 -fno-leading-underscore.
4671 (cpp_handle_option): Remove code to set user_label_prefix.
4672 (cpp_post_options): Likewise.
4673
4674 * cpplib.h (struct cpp_options): Remove user_label_prefix.
4675 (stdc_0_in_system_headers): New.
4676 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
4677 stdc_0_in_system_headers) too to decide the value of __STDC__.
4678
4679 * tradcpp.c (user_label_prefix): Kill.
4680 (main): Remove code handling -f(no-)leading-underscore.
4681 (initialize_builtins): Don't define __REGISTER_PREFIX__
4682 or __USER_LABEL_PREFIX__.
4683 (install_value): Wrap compound statement in dummy loop so the
4684 macro works properly in an if statement.
4685
4686
4687 2002-05-16 Janis Johnson <janis187@us.ibm.com>
4688
4689 * loop.h (struct loop_info): Add member has_prefetch.
4690 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
4691 (prescan_loop): Initialize has_prefetch.
4692 (struct prefetch_info): Change prefetch_in_loop and
4693 prefetch_before_loop from bit fields to ints.
4694 (emit_prefetch_instructions): Several small fixes.
4695 (check_dbra_loop): Don't reverse loop that uses prefetch.
4696
4697 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4698
4699 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
4700 * configure.in: Likewise.
4701 * fixinc/check.tpl: Likewise.
4702 * fixinc/fixinc.dgux: Likewise.
4703 * fixinc/fixinc.svr4: Likewise.
4704 * fixinc/fixinc.winnt: Likewise.
4705 * fixinc/fixincl.sh: Likewise.
4706 * fixproto: Likewise.
4707 * configure: Regenerate.
4708
4709 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4710
4711 Basic block renumbering removal:
4712 * basic_block.h (struct basic_block_def): Renamed index to sindex,
4713 added prev_bb and next_bb fields.
4714 (n_basic_blocks): Renamed to num_basic_blocks.
4715 (last_basic_block): New, index of last basic block.
4716 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4717 traversing basic block chain.
4718 (BLOCK_NUM): index -> sindex.
4719 (create_basic_block_structure, create_basic_block): Declaration changed.
4720 (debug_num2bb): Declare.
4721 (expunge_block_nocompact): Declaration removed.
4722 (link_block, unlink_block, compact_blocks): Declare.
4723 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
4724 * cfg.c (entry_exit_blocks): Initialize new fields.
4725 (clear_edges, alloc_block, expunge_block, cached_make_edge,
4726 redirect_edge_pred, dump_flow_info, dump_edge_info,
4727 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
4728 free_aux_for_edges): Modified.
4729 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
4730 (expunge_block_nocompact): Removed.
4731 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
4732 find_unreachable_blocks, create_edge_list, print_edge_list,
4733 verify_edge_list, flow_edge_list_print, remove_fake_successors,
4734 remove_fake_edges, flow_reverse_top_sort_order_compute,
4735 flow_depth_first_order_compute, flow_preorder_transversal_compute,
4736 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
4737 flow_dfs_compute_reverse_execute): Modified.
4738 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
4739 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
4740 Modified.
4741 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
4742 merge_blocks_move_predecessor_nojumps,
4743 merge_blocks_move_successor_nojumps, merge_blocks,
4744 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
4745 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
4746 * cfglayout.c (skip_insns_after_block, label_for_bb,
4747 record_effective_endpoints, scope_to_insns_finalize,
4748 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
4749 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
4750 cfg_layout_duplicate_bb): Modified.
4751 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
4752 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4753 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
4754 flow_loops_find, flow_loop_outside_edge_p): Modified.
4755 * cfgrtl.c (create_basic_block_structure, create_basic_block,
4756 flow_delete_block, compute_bb_for_insn, split_block,
4757 try_redirect_by_replacing_jump, redirect_edge_and_branch,
4758 force_nonfallthru_and_redirect, tidy_fallthru_edge,
4759 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
4760 commit_edge_insertions, commit_edge_insertions_watch_calls,
4761 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
4762 purge_all_dead_edges): Modified.
4763 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
4764 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4765 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
4766 Modified.
4767 * conflict.c (conflict_graph_compute): Modified.
4768 * df.c (FOR_ALL_BBS): Removed.
4769 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4770 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
4771 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
4772 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
4773 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
4774 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
4775 * final.c (compute_alignments, final_scan_insn): Modified.
4776 * flow.c (verify_local_live_at_start, update_life_info,
4777 update_life_info_in_dirty_blocks, free_basic_block_vars,
4778 delete_noop_moves, calculate_global_regs_live,
4779 initialize_uninitialized_subregs, allocate_bb_life_data,
4780 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
4781 mark_used_reg, count_or_remove_death_notes): Modified.
4782 * function.c (thread_prologue_and_epilogue_insns): Modified.
4783 * gcse.c (struct null_pointer_info): Change typo of current_block
4784 to basic_block.
4785 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
4786 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
4787 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
4788 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
4789 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
4790 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
4791 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
4792 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
4793 pre_delete, one_pre_gcse_pass, compute_transpout,
4794 invalidate_nonnull_info, delete_null_pointer_checks_1,
4795 free_code_hoist_mem, compute_code_hoist_vbeinout,
4796 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
4797 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
4798 compute_store_table, build_store_vectors, insert_insn_start_bb,
4799 insert_store, replace_store_insn, free_store_memory, store_motion):
4800 Modified.
4801 * global.c (global_alloc, global_conflicts, mark_elimination,
4802 build_insn_chain): Modified.
4803 * graph.c (print_rtl_graph_with_bb): Modified.
4804 * haifa-sched.c (sched_init): Modified.
4805 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4806 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
4807 if_convert): Modified.
4808 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
4809 compute_insert_delete, pre_edge_lcm, compute_available,
4810 compute_farthest, compute_nearerout, compute_rev_insert_delete,
4811 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
4812 Modified.
4813 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
4814 * loop.c (loop_dump_aux): Modified.
4815 * predict.c (combine_predictions_for_insn, estimate_probability,
4816 last_basic_block_p, process_note_prediction, process_note_predictions,
4817 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
4818 expensive_function_p, estimate_bb_frequencies,
4819 compute_function_frequency): Modified.
4820 * print-rtl.c (print_rtx): Modified.
4821 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
4822 get_exec_counts, compute_branch_probabilities, compute_checksum,
4823 branch_prob, find_spanning_tree): Modified.
4824 * recog.c (split_all_insns, peephole2_optimize): Modified.
4825 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
4826 convert_regs_1, convert_regs_2, convert_regs): Modified.
4827 * regclass.c (scan_one_insn, regclass): Modified.
4828 * regmove.c (mark_flags_life_zones, regmove_optimize,
4829 combine_stack_adjustments): Modified.
4830 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
4831 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
4832 * reorg.c (dbr_schedule): Modified.
4833 * resource.c (find_basic_block, init_resource_info): Modified.
4834 * sbitmap.c (sbitmap_intersection_of_succs,
4835 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
4836 sbitmap_union_of_preds): Modified.
4837 * sched-deps.c (init_dependency_caches): Modified.
4838 * sched-ebb.c (schedule_ebbs): Modified.
4839 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
4840 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
4841 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
4842 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
4843 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
4844 ssa_const_prop): Modified.
4845 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
4846 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
4847 * ssa.c (remove_phi_alternative, find_evaluations,
4848 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
4849 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
4850 make_regs_equivalent_over_bad_edges,
4851 make_equivalent_phi_alternatives_equival,
4852 compute_conservative_reg_partition,
4853 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
4854 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
4855 Modified.
4856
4857 2002-05-16 Mark Mitchell <mark@codesourcery.com>
4858
4859 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
4860
4861 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
4862
4863 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
4864 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4865 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
4866 calling CONSTANT_POOL_ADDRESS_P.
4867 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
4868 to decide whether to define __arm__ or __thumb.
4869 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
4870 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4871
4872 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4873
4874 * config/arc/arc.h (CPP_PREDEFINES): Remove.
4875 (CPP_SPEC): Update.
4876 (TARGET_CPU_CPP_BUILTINS): New.
4877
4878 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4879
4880 * cpphash.h (cpp_macro): Move here, and make expansion a union.
4881 * cppmacro.c (cpp_macro): Remove.
4882 (enter_macro_context, replace_args, warn_of_redefinition,
4883 _cpp_create_definition, cpp_macro_definition): Update.
4884
4885 2002-05-16 Jason Merrill <jason@redhat.com>
4886
4887 * config/mips/mips.c (mips_output_external): Don't do sdata
4888 optimization for a variable with DECL_COMDAT set.
4889
4890 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
4891
4892 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
4893 Cleanups for accepting modifiers on pointers.
4894 Fix predicate typos.
4895 Allow long pointers as well as int pointers.
4896
4897 2002-05-15 Richard Henderson <rth@redhat.com>
4898
4899 * varasm.c (merge_weak): Remove special case for extern and common.
4900
4901 2002-05-15 Matt Hiller <hiller@redhat.com>
4902
4903 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
4904 XFAILing.
4905 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
4906 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
4907 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
4908 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
4909 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
4910 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
4911
4912 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
4913
4914 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
4915
4916 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
4917
4918 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
4919 ("altivec_mfvscr"): Read from VSCR.
4920
4921 Add vscr sets for the following insns: altivec_vctuxs,
4922 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
4923 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
4924 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
4925 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
4926 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
4927 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
4928 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
4929 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
4930 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
4931 altivec_vsum2sws, altivec_vsumsws.
4932
4933 * config/rs6000/rs6000.h: Add VSCR fixed register.
4934 (CALL_REALLY_USED_REGISTERS): Add vscr.
4935 (CALL_USED_REGISTERS): Same.
4936 (FIXED_REGISTERS): Same.
4937 (REG_ALLOC_ORDER): Same.
4938 (reg_class): Add VSCR_REGS.
4939 (REG_CLASS_NAMES): Same.
4940 (REG_CLASS_CONTENTS): Same.
4941 (VSCR_REGNO): New.
4942 (REGISTER_NAMES): Add vscr.
4943 (DEBUG_REGISTER_NAMES): Same.
4944 (ADDITIONAL_REGISTER_NAMES): Same.
4945 (FIRST_PSEUDO_REGISTER): Increment.
4946 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
4947
4948 2002-05-15 Jakub Jelinek <jakub@redhat.com>
4949
4950 * fold-const.c (fold): Fix a typo.
4951
4952 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
4953
4954 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
4955 comparison against the highest or lowest integer value before
4956 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
4957 transformation and that of an unsigned comparison against 0
4958 right after.
4959
4960 2002-05-15 Richard Henderson <rth@redhat.com>
4961
4962 * varasm.c (merge_weak): Error for any weakening after definition.
4963 Adjust weakening after use warning to catch more cases.
4964 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
4965 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
4966
4967 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
4968
4969 * invoke.texi (-malign-double): Re-add lost warning.
4970
4971 * i386-protos.h (x86_output_mi_thunk): Declare.
4972 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
4973 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
4974
4975 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
4976 when flag_asynchronous_unwind_tables is set.
4977
4978 * flags.h (flag_reorder_functions): Declare.
4979 * function.c (prepare_function_start): Initialize frequnecy.
4980 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
4981 * Makefile.in (predict.o): Add dependency on target.h and params.h
4982 * defaults.h (HOT_TEXT_SECTION_NAME,
4983 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
4984 * predict.c (choose_function_section): New function.
4985 (estimate_bb_frequencies): Use it.
4986 * toplev.c (flag_reorder_functions): New global variable.
4987 (lang_independent_options): New.
4988 (parse_options_and_default_flags): Set.
4989 * varasm.c (assemble_start_function): Bypass functdion alignment
4990 for never executed functions.
4991 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
4992 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
4993 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
4994 Document.
4995
4996 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
4997
4998 * predict.c: Inlude profile.h
4999 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
5000 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
5001 Use the information about maximal counter in the program.
5002
5003 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
5004
5005 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
5006 probably_never_executed_bb_p): New functions.
5007 * cfgcleanup.c (outgoing_edges_match): Use them.
5008 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
5009 (maybe_hot_bb_p, probably_cold_bb_p,
5010 probably_never_executed_bb_p): New functions.
5011
5012 * function.h (function): Add new field function_frequency.
5013 * predict.c (compute_function_frequency): New function.
5014 (estimate_probability): Call it.
5015
5016 2002-03-09 Jakub Jelinek <jakub@redhat.com>
5017
5018 PR optimization/5172, optimization/5200
5019 * gcse.c (gcse_main): Disable store_motion.
5020
5021 2002-05-14 Zack Weinberg <zack@codesourcery.com>
5022
5023 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
5024 (c_common_nodes_and_builtins): Use it.
5025 (builtin_define_with_value): New function.
5026 (cb_register_builtins): Define __SIZE_TYPE__,
5027 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
5028 using builtin_define_with_value. Use consistent notation when
5029 defining __GXX_WEAK__.
5030 (WCHAR_TYPE_SIZE): Don't redefine.
5031 (combine_strings): Don't use WCHAR_TYPE_SIZE.
5032
5033 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
5034 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
5035 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
5036 * tradcpp.c (initialize_builtins): Likewise.
5037 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
5038
5039 * c-lex.h (builtin_define_with_value): Prototype.
5040 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
5041 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
5042 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
5043
5044 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5045 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
5046 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
5047 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
5048 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
5049 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
5050 config/sparc/sol2-bi.h, config/sparc/sparc.h:
5051 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
5052 to __SIZE_TYPE__ etc from all spec strings. When this makes
5053 extra specs empty, delete them.
5054
5055 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
5056
5057 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
5058 for PA8000 or generating dwarf2 call frame information.
5059 (output_call): Remove DO_FRAME_NOTES check from return pointer
5060 optimization.
5061 (following_call): Return 0 when scheduling for PA8000 or generating
5062 dwarf2 call frame information. Revise comment.
5063
5064 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5065
5066 config/alpha:
5067 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
5068 and __IEEE_FP_INEXACT as appropriate.
5069 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
5070 (CPP_SPEC): Remove ieee defines.
5071 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
5072
5073 2002-05-14 Richard Henderson <rth@redhat.com>
5074
5075 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
5076 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
5077
5078 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5079
5080 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
5081 (CPP_SPEC): Update.
5082 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
5083 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
5084 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
5085 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
5086 (EXTRA_SPECS): Update.
5087 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5088 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
5089 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
5090 define TARGET_OS_CPP_BUILTINS if necessary.
5091
5092 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5093
5094 * gcc.c (cpp_options): Must pass -m* and -f* options
5095 to the front end even when only preprocessing.
5096 (cc1_options): Remove redundant -lang-c.
5097 * tradcpp.c (main): Ignore -m options.
5098 objc:
5099 * lang-specs.h: Similarly.
5100
5101 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
5102
5103 * genautomata.c (transform_3): Add code for transformation
5104 `(A,B,...)+C -> A+C,B,...'.
5105
5106 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
5107
5108 * final.c (end_final): Do not output profile_arcs constructor, when
5109 no functions are instrumented.
5110
5111 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
5112
5113 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
5114
5115 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5116
5117 * doc/install.texi: Remove special markup originally required for
5118 HTML generation with texi2html.
5119
5120 2002-05-14 Andreas Schwab <schwab@suse.de>
5121
5122 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
5123 SELECT_SECTION.
5124 (UNIQUE_SECTION): Define to get small data correctly.
5125
5126 * varasm.c (resolve_unique_section): Add third parameter
5127 flag_function_or_data_sections and use it instead of
5128 flag_function_sections.
5129 (assemble_start_function): Pass flag_function_sections.
5130 (asm_emit_uninitialised): Pass flag_data_sections.
5131 (assemble_variable): Likewise.
5132
5133 2002-05-14 Richard Henderson <rth@redhat.com>
5134
5135 * config/i386/i386.md: Use define_constants for unspec numbers.
5136 * config/i386/i386.c: Likewise.
5137
5138 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5139
5140 * doc/contrib.texi: Update my entry.
5141
5142 2002-05-13 Mark Mitchell <mark@codesourcery.com>
5143
5144 * fixinc/inclhack.def (winidss_valist): Limit applicability.
5145 * fixinc/fixincl.x: Regenerated.
5146 * fixinc/tests/base/math.h: Update.
5147 * fixinc/tests/base/testing.h: Likewise.
5148
5149 2002-05-13 Zack Weinberg <zack@codesourcery.com>
5150
5151 * genattr.c (gen_attr): Don't emit a comma after the last
5152 enumerator.
5153
5154 2002-05-13 Richard Henderson <rth@redhat.com>
5155
5156 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
5157 by non-local gotos.
5158 * recog.c (peephole2_optimize): Likewise.
5159
5160 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
5161
5162 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
5163 input to O_BINARY.
5164
5165 2002-05-13 Jeffrey A Law (law@redhat.com)
5166
5167 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
5168 Update prototype and callers.
5169 (propagate_one_insn): Stack pointer adjustments kill MEMs on
5170 the mem_set_list which reference the stack pointer, as do
5171 calls to constant functions as they may clobber outgoing
5172 argument space.
5173
5174 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
5175
5176 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5177 (ia32_multipass_dfa_lookahead): New function.
5178
5179 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5180
5181 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
5182 (translate_options): Remove 'V'.
5183 (process_command): Similarly.
5184 doc:
5185 * invoke.texi: Remove documentation of 'V'.
5186
5187 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5188
5189 * config/s390/linux.h: Revert 2002-04-22 changes.
5190
5191 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
5192
5193 * config/fr30/fr30.md: Only allow splits of immediate loads
5194 if the destination is a register.
5195
5196 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5197
5198 * Makefile.in (c-common.o, cppinit.o): Update.
5199 * c-common.c: Include except.h.
5200 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
5201 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
5202 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
5203 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
5204 CPP_PREDEFINES): Handle here.
5205 config:
5206 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
5207 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
5208 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
5209 TARGET_OS_CPP_BUILTINS.
5210 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
5211 (CPP_SPEC, EXTRA_SPECS): Update.
5212 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
5213 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
5214 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
5215 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
5216 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
5217 doc:
5218 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
5219 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
5220
5221 2002-05-12 Zack Weinberg <zack@codesourcery.com>
5222
5223 * emit-rtl.c (global_rtl): Update comment.
5224 (const_double_htab, const_double_htab_hash,
5225 const_double_htab_hash, lookup_const_double): New.
5226 (const_int_htab_hash, const_int_htab_eq): Remove const
5227 qualifiers, which cause tons of warnings with RTL checking on.
5228 (gen_rtx_CONST_DOUBLE): Deleted.
5229 (const_double_from_real_value): New function - bears some
5230 resemblance to the former immed_real_const_1.
5231 (immed_double_const): Moved here from varasm.c and
5232 simplified.
5233 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
5234 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
5235 (gen_rtx): Use immed_double_const.
5236 (init_emit_once): Initialize the const_double_htab. Use
5237 REAL_VALUE_FROM_INT where possible. Can now use
5238 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
5239 * varasm.c (struct varasm_status): Remove x_const_double_chain.
5240 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
5241 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
5242 (init_varasm_status, mark_varasm_status): Don't touch
5243 x_const_double_chain.
5244
5245 * output.h: Delete prototype for clear_const_double_mem.
5246 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
5247 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
5248 const_double_from_real_value, not immed_real_const_1, and use
5249 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
5250 CONST_DOUBLE_ATOF.
5251 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
5252 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
5253 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
5254 (gen_rtx_REG): Second arg is unsigned.
5255
5256 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
5257 (excluded_rtx): New, return true for CONST_DOUBLE.
5258 (genmacro): Write nothing for excluded codes.
5259 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
5260 * expr.c (expand_expr): Likewise.
5261 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
5262 CONST_DOUBLE_CHAIN.
5263 * toplev.c (rest_of_compilation): Don't call
5264 clear_const_double_mem.
5265
5266 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
5267 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
5268 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
5269 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
5270 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
5271 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
5272 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
5273 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
5274
5275 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5276
5277 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
5278
5279 2002-05-12 Tom Tromey <tromey@redhat.com>
5280
5281 * tree.h (copy_node): Don't mention TREE_PERMANENT.
5282
5283 2002-05-12 Zack Weinberg <zack@codesourcery.com>
5284
5285 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
5286 (scan_comma_elt): New function. Accepts whitespace in comma lists.
5287 * gensupport.h: Prototype new routines.
5288 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
5289 use of printf.
5290 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
5291 (next_comma_elt): Use scan_comma_elt.
5292
5293 * config/i386/i386.md: Use new attribute notation to break up
5294 long lines in define_attr forms.
5295
5296 2002-05-12 Richard Henderson <rth@redhat.com>
5297
5298 * expr.c (compress_float_constant): New.
5299 (emit_move_insn): Use it.
5300 (float_extend_from_mem): New.
5301 (init_expr_once): Initialize it.
5302 * real.c (exact_real_truncate): New.
5303
5304 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
5305 dropped into memory; penalize for size.
5306 (RTX_COSTS): FLOAT_EXTEND is free.
5307 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
5308 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
5309
5310 2002-05-12 Richard Henderson <rth@redhat.com>
5311
5312 * profile.h (profile_info): Add missing extern to declaration.
5313 * profile.c (profile_info): Define it.
5314
5315 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5316
5317 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
5318 used for DImode and TImode.
5319
5320 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
5321
5322 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
5323 fake a newline.
5324
5325 2002-05-11 Zack Weinberg <zack@codesourcery.com>
5326
5327 * config/rs6000/rs6000.c (rs6000_default_long_calls,
5328 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
5329 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
5330 (rs6000_override_options): Handle -m(no-)longcall.
5331 (init_cumulative_args, output_mi_thunk): Check for both
5332 longcall and shortcall attributes on the function.
5333 (rs6000_attribute_table): Add "shortcall".
5334 (rs6000_handle_longcall_attribute): Update comment.
5335 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
5336 altivec_expand_ternop_builtin): Add default clauses to switches
5337 to silence warnings.
5338
5339 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
5340 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
5341 (TARGET_OPTIONS): Add longcall and no-longcall.
5342
5343 * config/rs6000/rs6000.md (call_nonlocal_sysv,
5344 call_value_nonlocal_sysv): Split by alternatives. One pair
5345 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
5346 the call cookie. The other pair accepts only LR/CTR and has
5347 no restriction.
5348
5349 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
5350 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
5351 tmake_file.
5352 * config/rs6000/rs6000-c.c: New file.
5353 * config/rs6000/t-rs6000-c-rule: New file.
5354 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
5355 Prototype rs6000_pragma_longcall.
5356
5357 * doc/extend.texi: Document shortcall attribute.
5358 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
5359
5360 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5361
5362 * reorg.c (dbr_schedule): Remove unnecessary test.
5363
5364 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5365
5366 * i386.md (testsi to testqi spliters): New.
5367
5368 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
5369
5370 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
5371
5372 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
5373
5374 * basic-block.h: New flag EDGE_CAN_FALLTHRU
5375 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
5376 that can be made fallthru.
5377
5378 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
5379
5380 * cfglayout.c (cleanup_unconditional_jumps): New static function.
5381 (cfg_layout_initialize): Use it.
5382
5383 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
5384
5385 * config/avr/avr.c (avr_mcu_types): Update supported devices.
5386 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5387 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5388
5389 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5390
5391 * dbxout.c: Fix formatting.
5392 * dependence.c: Likewise.
5393 * df.c: Likewise.
5394 * diagnostic.c: Likewise.
5395 * doloop.c: Likewise.
5396 * dominance.c: Likewise.
5397 * doschk.c: Likewise.
5398 * dwarf2asm.c: Likewise.
5399 * dwarf2out.c: Likewise.
5400 * dwarfout.c: Likewise.
5401
5402 2002-05-10 Richard Henderson <rth@redhat.com>
5403
5404 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
5405 Convert integers constants as needed. Replace "nwords" field with
5406 "sizeof_bb".
5407 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
5408 * function.h: Fix typo in comment.
5409 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
5410
5411 2002-05-10 Roger Sayle <roger@eyesopen.com>
5412
5413 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
5414 into the equivalent (signed char)c > 0.
5415
5416 2002-05-10 Janis Johnson <janis187@us.ibm.com>
5417
5418 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
5419 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
5420 (struct prefetch_info): Fix spelling of member bytes_accessed.
5421 (emit_prefetch_instructions): Make dump messages more regular;
5422 restructure code to add more dump messages; use new macros for
5423 heuristics. (There are no code generation changes in any of this).
5424
5425 2002-05-10 David S. Miller <davem@redhat.com>
5426
5427 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
5428 (struct rtx_def): Update unchanging flag comment.
5429 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
5430 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
5431 to be handled to INSN too.
5432 (dbr_schedule): Likewise.
5433 * resource.c (next_insn_no_annul): Likewise.
5434
5435 * cse.c (rtx_cost): Remove multiplication by power of 2 special
5436 casing.
5437
5438 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5439
5440 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
5441 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
5442 (possibly) work around broken /bin/sh.
5443
5444 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5445
5446 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
5447 . as N64/N32 libgcc_s.so subdirs.
5448
5449 2002-05-10 David S. Miller <davem@redhat.com>
5450
5451 * config/sparc/sparc.md: Use define_constants for unspec numbers.
5452
5453 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
5454 more accurately.
5455 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
5456 comment.
5457 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
5458 * doc/rtl.texi: Document these macros more accurately.
5459 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
5460 JUMP_INSNs and CALL_INSNs.
5461 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
5462 or INSN_FROM_TARGET_P if the code is appropriate.
5463
5464 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
5465
5466 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
5467 before using SYMBOL_REF_FLAG (addr).
5468
5469 * config/avr/avr-protos.h (avr_io_address_p): Declare.
5470 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
5471 Make non-static. Update all callers.
5472 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
5473 New insns to clear/set/test a single bit in I/O address space.
5474
5475 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5476
5477 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
5478
5479 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5480
5481 * Makefile.in: Update.
5482 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
5483 builtin_define_std): New.
5484 (c_common_init): Register CPP builtins callback.
5485 * c-common.h (flag_iso, flag_undef): New.
5486 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
5487 * c-lex.c: Don't include target.h.
5488 (cb_register_builtins): Move to c-common.c.
5489 (init_c_lex): Don't register hook here.
5490 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
5491 (cpp_define, cpp_assert): Remove.
5492 * gcc.c (cc1_options): Pass -undef to front end.
5493 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
5494 (TARGET_INITIALIZER): Update.
5495 * target.h (struct cpp_reader): Don't predeclare.
5496 (struct gcc_target): Remove cpp builtin hook.
5497 * tree.c (default_register_cpp_builtins): Remove.
5498 doc:
5499 * tm.texi: Update.
5500
5501 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5502
5503 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
5504
5505 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5506
5507 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
5508 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
5509
5510 2002-05-09 Jakub Jelinek <jakub@redhat.com>
5511
5512 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
5513 * config/sparc/libgcc-sparc-glibc.ver: New file.
5514 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5515 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
5516
5517 2002-05-09 Jakub Jelinek <jakub@redhat.com>
5518
5519 PR target/6429
5520 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
5521 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
5522 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
5523 base multilibs.
5524 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
5525 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5526 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5527 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5528
5529 2002-05-09 Richard Henderson <rth@redhat.com>
5530
5531 * config/ia64/ia64.md: Use define_constants for unspec numbers.
5532 * config/ia64/ia64.c: Likewise.
5533
5534 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
5535
5536 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
5537 (save_restore_insns): Likewise.
5538 (mips_expand_prologue, mips_expand_epilogue): Update callers.
5539 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
5540
5541 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
5542
5543 * athlon.md, k6.md, pentium.md, ppro.md): New files.
5544 * i386.md: Move scheduling information into new files.
5545
5546 * i386.md (type attribute): Add "rotate" for rotate insns.
5547 (rotate insns): Set type to "rotate".
5548 (various attributes and function units): Treat rotate like shift.
5549 (pent_pair attribute): Only rotates by one bit position are
5550 pairable.
5551 (sbb insns): Explicitly set pent_pair attribute on a couple
5552 that were missing it.
5553
5554 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
5555
5556 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
5557 make sure that buffer starts on odd word address.
5558 (sh_va_arg): Skip odd fp registers when reading a double precision
5559 value.
5560
5561 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5562
5563 * tree.h (preserve_data, object_permanent_p, type_precision):
5564 Remove.
5565
5566 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5567
5568 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
5569 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
5570 doc:
5571 * cpp.texi: Update for removal of obsolete features.
5572
5573 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
5574 Jeffrey A Law (law@redhat.com)
5575
5576 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
5577 the DFA interface for Pentium processors.
5578 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
5579 (attr_pent_pair, ix86_pent_find_pair): Remove.
5580 (ix86_sched_reorder_pentium): Remove.
5581 (ix86_sched_reorder): Remove reordering for Pentium.
5582 * i386.md (Pentium scheduling): Rewrite using DFA description.
5583
5584 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
5585
5586 * cfganal.c (can_fallthru): Fix fast path.
5587 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
5588 with edges to the next block.
5589
5590 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
5591 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
5592
5593 * final.c (end_final): Use C trees to output data structures for profiling.
5594
5595 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5596 (profile.o): New dependency profile.h
5597 (final.o): New dependency profile.h
5598 * profile.h: New file. New global structure profile_info.
5599 * final.h (count_edges_instrumented_now): Declare.
5600 (current_function_cfg_checksum): Declare.
5601 (function_list): New structure.
5602 (functions_head, functions_tail): New static variables.
5603 (end_final): Emits more data, removed some -ax stuff.
5604 (final): Stores function names and chcksums.
5605 * gcov-io.h (__write_gcov_string): New function.
5606 (__read_gcov_string): New function.
5607 * gcov.c (read_profile): New function.
5608 (create_program_flow_graph): Uses read_profile instead of reading
5609 da_file.
5610 (read_files): Removed da_file checking, it's done by read_profile now.
5611 * libgcc2.c (bb_function_info): New structure.
5612 (bb): New field in structure, removed some -ax stuff.
5613 (__bb_exit_func): Changed structure of da_file.
5614 * profile.c (count_edges_instrumented_now): New global variable.
5615 (current_function_cfg_checksum): New global variable.
5616 (max_counter_in_program): New global variable.
5617 (get_exec_counts): New function.
5618 (compute_checksum): New function.
5619 (instrument_edges): Sets count_edges_instrumented_now.
5620 (compute_branch_probabilities): Uses get_exec_counts instead of
5621 reading da_file.
5622 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
5623 (init_branch_prob): Removed da_file checking, done in get_exec_counts
5624 now.
5625 (end_branch_prob): Removed da_file checking, done in get_exec_counts
5626 now.
5627 * gcov.texi: Updated information about gcov file format.
5628
5629 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5630
5631 * sbitmap.c: Fix formatting.
5632 * scan.c: Likewise.
5633 * scan-decls.c: Likewise.
5634 * sched-deps.c: Likewise.
5635 * sched-ebb.c: Likewise.
5636 * sched-rgn.c: Likewise.
5637 * sched-vis.c: Likewise.
5638 * sdbout.c: Likewise.
5639 * sibcall.c: Likewise.
5640 * simplify-rtx.c: Likewise.
5641 * ssa.c: Likewise.
5642 * ssa-ccp.c: Likewise.
5643 * ssa-dce.c: Likewise.
5644 * stmt.c: Likewise.
5645 * stor-layout.c: Likewise.
5646 * stringpool.c: Likewise.
5647
5648 2002-05-09 David S. Miller <davem@redhat.com>
5649
5650 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
5651
5652 2002-05-07 David S. Miller <davem@redhat.com>
5653
5654 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
5655 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
5656 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
5657 library implementation clobbers the output before the inputs
5658 are fully consumed, use stack temporary for the output.
5659
5660 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
5661
5662 * config/netbsd.h (CPP_SPEC): Remove.
5663 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
5664 * config/i386/netbsd.h (CPP_SPEC): Define.
5665 * config/ns32k/netbsd.h (CPP_SPEC): Define.
5666 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
5667 * config/sparc/netbsd.h (CPP_SPEC): Define.
5668 * config/vax/netbsd.h (CPP_SPEC): Define.
5669
5670 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5671
5672 * read-rtl.c: Fix formatting.
5673 * real.c: Likewise.
5674 * recog.c: Likewise.
5675 * regclass.c: Likewise.
5676 * regmove.c: Likewise.
5677 * reg-stack.c: Likewise.
5678 * reload1.c: Likewise.
5679 * reload.c: Likewise.
5680 * resource.c: Likewise.
5681 * rtlanal.c: Likewise.
5682 * rtl.c: Likewise.
5683 * rtl-error.c: Likewise.
5684
5685 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5686
5687 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
5688 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
5689
5690 2002-05-08 Bernd Schmidt <bernds@redhat.com>
5691
5692 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
5693 use __SSE2__ macro instead.
5694 * config/i386/xmmintrin.h: Likewise.
5695
5696 2002-05-08 Janis Johnson <janis187@us.ibm.com>
5697
5698 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
5699 and use it in all invocations of these macros. Clean up comments.
5700 * rtl.c (rtl_check_failed_flag): Add an argument for the name
5701 of the flag access macro whose check failed.
5702 * doc/rtl.texi (Flags): Document additional flag uses.
5703
5704 2002-05-08 Robert Spier <rspier@pobox.com>
5705 Neil Booth <neil@daikokuya.demon.co.uk>
5706
5707 PR preprocessor/6521
5708 * cppfiles.c (handle_missing_header): Don't do anything
5709 different for <> includes.
5710 doc:
5711 * cppopts.texi: Update documentation for -MG.
5712
5713 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
5714
5715 * cpplex.c (cpp_interpret_charconst): Truncate as well as
5716 sign-extend.
5717 doc:
5718 * cpp.texi: Clarify multichar charconst valuation.
5719
5720 2002-05-08 Mark Mitchell <mark@codesourcery.com>
5721
5722 * doc/invoke.texi: Document -mwindiss option.
5723
5724 2002-05-08 Jason Merrill <jason@redhat.com>
5725
5726 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
5727
5728 * dwarf2out.c (gen_type_die): Abort on broken recursion.
5729
5730 PR c++/6381
5731 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
5732 REAL_CST.
5733
5734 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
5735
5736 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
5737 little-endian multilibs to override arm/thumb multilibs.
5738 Do not build hardware floating point multilibs, nor apcs-26
5739 multilibs for the Thumb.
5740
5741 2002-05-08 Mark Mitchell <mark@codesourcery.com>
5742
5743 PR c/6569.
5744 * varasm.c (mark_weak): New function.
5745 (merge_weak): Use it. Do not call declare_weak.
5746 (declare_weak): Use merge_weak.
5747
5748 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5749
5750 * cse.c (dead_libcall_p): Update counts.
5751 (delete_trivially_dead_insns): Update call of dead_libcall_p.
5752
5753 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5754
5755 * cfglayout.c (function_tail_eff_head): Rename to ...
5756 (function_footer): ... this one.
5757 (unlink_insn_chain): New functions.
5758 (label_for_bb): Only call block_label and emit debug message.
5759 (record_effective_endpoints): Actually unlink the headers and footers.
5760 (fixup_reorder_cahin): Re-insert the unlinked sequences.
5761 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
5762 * cfglayout.h (struct reorder_block_def): New fields footer/header;
5763 remove eff_head/eff_end.
5764 * rtl.h (set_first_insn): Declare.
5765 * emit-rtl.c (set_first_insn): New function.
5766
5767 * cfglayout.c (fixup_reorder_chain): Dump duplicated
5768 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5769 cfg_layout_duplicate_bb): New global function.
5770 (duplicate_insn_chain): New static function.
5771 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5772 cfg_layout_duplicate_bb): Declare.
5773 (struct reorder_block_def): Add "original" field.
5774 * emit-rtl.c (emit_copy_of_insn_after): New function.
5775 * rtl.h (emit_copy_of_insn_after): Declare.
5776
5777 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
5778 (fixup_reorder_chain): properly handle edges to exit block.
5779
5780 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5781 Jan Hubicka <jh@suse.cz>
5782
5783 * basic-block.h (note_prediction_to_br_prob): declare.
5784 * c-semantics.c: Inlucde predit.h
5785 (expand_stmt): predict GOTO_STMT as not taken.
5786 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
5787 (cleanup_cfg): Do not free tail_recursion_list.
5788 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
5789 (flow_delete_block): Kill predictions past end of basic block.
5790 * output.h (delete_unreachable_blocks): Declare.
5791 * predict.c (predicted_by_p, process_note_predictions,
5792 process_note_prediction, last_block_p): New function.
5793 (estimate_probability): Bypass loop on PRED_CONTINUE;
5794 do not handle noreturn heuristics; kill PRED_RETURN; add
5795 PRED_EARLY_RETURN.
5796 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
5797 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
5798 * predict.h (IS_TAKEN): New constant.
5799 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
5800 * rtl.c (NOTE_INSN_PREDICTION): New.
5801 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
5802 New macro.
5803 (insn_note): add NOTE_INSN_PREDICTION.
5804 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
5805 CFG; free tail_recursion_label_list.
5806 * stmt.c: Include predict.h;
5807 (return_prediction): New.
5808 (expand_value_return): Use it.
5809 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
5810
5811 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
5812
5813 * config/mips/mips.md: Name the unspecs with define_constant.
5814 (*HILO_delay): Rename to 'hilo_delay' (no star).
5815 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
5816 (reload_outdi, reload_outsi): Likewise.
5817
5818 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5819
5820 * toplev.c: Fix formatting.
5821
5822 2002-05-07 Janis Johnson <janis187@us.ibm.com>
5823
5824 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
5825 * configure.in (ac_rtlflag_checking): New.
5826 * doc/install.texi (--enable-checking): Document RTL flag checking.
5827
5828 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
5829
5830 * c-common.c (c_common_init): Set options->unsigned_wchar.
5831 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
5832 group target dependencies.
5833 (init_builtins, cpp_handle_option): Update.
5834 * cpplex.c (cpp_interpret_charconst): Update.
5835 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
5836 signed_char to unsigned_char, group target dependencies.
5837 * defaults.h (WCHAR_UNSIGNED): Remove.
5838 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
5839 config:
5840 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
5841 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
5842 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
5843 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
5844 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
5845 doc:
5846 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
5847
5848 2002-05-07 Mark Mitchell <mark@codesourcery.com>
5849
5850 * fixinc/inclhack.def (windiss_math1): New fix.
5851 (windiss_math2): Likewise.
5852 (windiss_valist): Likewise.
5853 * fixinc/fixincl.x: Regenerated.
5854
5855 2002-05-07 Andreas Jaeger <aj@suse.de>
5856
5857 * genautomata.c (output_internal_min_issue_delay_func): Add
5858 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
5859 (output_internal_trans_func): Likewise.
5860
5861 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
5862
5863 * pa.c (hppa_profile_hook): Use force_reg to get the address
5864 of the profile hook into an appropriate pseudo register.
5865
5866 2002-05-07 Mark Mitchell <mark@codesourcery.com>
5867
5868 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
5869 (LINK_START_SPEC): Handle it.
5870 (LINK_OS_SPEC): Likewise.
5871 (CPP_SPEC): Likewise.
5872 (STARTFILE_SPEC): Likewise.
5873 (LIB_SPEC): Likewise.
5874 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
5875 all platforms.
5876 (CRTSAVRES_DEFAULT_SPEC): New macro.
5877 (LIB_WINDISS_SPEC): New macro.
5878 (CPP_OS_WINDISS_SPEC): Likewise.
5879 (STARTFILE_WINDISS_SPEC): Likewise.
5880 (ENDFILE_WINDISS_SPEC): Likewise.
5881 (LINK_START_WINDISS_SPEC): Likewise.
5882 (LINK_OS_WINDISS_SPEC): Likewise.
5883 * config/rs6000/windiss.h: New file.
5884
5885 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
5886
5887 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
5888
5889 2002-05-06 David S. Miller <davem@redhat.com>
5890
5891 * config/sparc/sparc.md (shift insns): Do not mask off
5892 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
5893 take care of it.
5894
5895 2002-05-06 Richard Henderson <rth@redhat.com>
5896
5897 PR c++/6212
5898 * expr.c (highest_pow2_factor_for_type): New.
5899 (expand_assignment): Use it.
5900
5901 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
5902
5903 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
5904 unspec_volatile.
5905 ("altivec_mfvscr"): Same.
5906
5907 2002-05-06 Janis Johnson <janis187@us.ibm.com>
5908
5909 * rtl.h (struct rtx_def): Update comments.
5910 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
5911 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
5912 RTL_FLAG_CHECK macros with list of expected RTL codes.
5913 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
5914 (rtl_check_failed_flag): New.
5915 * reload1.c (reload): Use REG macro before changing rtx to MEM.
5916 (reload_cse_noop_set_p): Check rtx code before using access macro.
5917 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
5918 before using access macro.
5919
5920 2002-05-06 Janis Johnson <janis187@us.ibm.com>
5921
5922 * doc/rtl.texi (Flags): Update to reflect current usage.
5923
5924 2002-05-06 Roger Sayle <roger@eyesopen.com>
5925
5926 PR opt/3995
5927 * fold-const.c (sign_bit_p): New function.
5928 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
5929 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
5930 Reapply fold when converting (A & C) == C into (A & C) != 0.
5931 (fold_binary_op_with_conditional_arg): Fix typo in comment.
5932
5933 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
5934
5935 * c-common.c (warn_multichar): New.
5936 (c_common_init): Set CPP's warn_multichar.
5937 * c-common.h (warn_multichar): New.
5938 * c-decl.c (warn_multichar): Remove.
5939 * c-lex.c (lex_charconst): Update.
5940 * c-tree.h (warn_multichar): Remove.
5941 * cppexp.c (eval_token): Sign-extend charconst value.
5942 * cppinit.c (cpp_create_reader): Set warn_multichar.
5943 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
5944 each character. Update prototype. Sign-extend the result.
5945 * cpplib.h: Fix conditions.
5946 (struct cpp_options): Add new warning flag.
5947 (cpp_interpret_charconst): Update prototype.
5948 doc:
5949 * cpp.texi: Update documentation.
5950
5951 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
5952
5953 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
5954 Fix typo in usage of allof instead of unit.
5955
5956 2002-05-06 Richard Henderson <rth@redhat.com>
5957
5958 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
5959 and any jump or call for IN.
5960
5961 2002-05-06 Bernd Schmidt <bernds@redhat.com>
5962
5963 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
5964 -msse2.
5965 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
5966
5967 2002-05-06 Roger Sayle <roger@eyesopen.com>
5968
5969 * fold-const.c (lshift-double): Cast the high word to an unsigned
5970 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
5971 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
5972 avoid compiler warning. (fold): Remove redundant code from
5973 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
5974
5975 2002-05-06 Jeff Law <law@redhat.com>
5976
5977 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
5978 * pa.c (pa_adjust_cost): Remove all true dependency cost
5979 adjustments. Also remove support for non-DFA scheduling.
5980 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
5981 to adjust true dependency costs. Update various comments.
5982 (7100lc, 7200, 7300 scheduling): Simplify by combining the
5983 FP ALU & MPY units into a single unit.
5984
5985 2002-05-06 Catherine Moore <clm@redhat.com>
5986
5987 * config/v850/v850.c (compute_register_save_size): Make sure
5988 to count all of the registers that will be saved.
5989
5990 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5991
5992 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
5993
5994 2002-05-06 David S. Miller <davem@redhat.com>
5995
5996 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
5997 allow result to overlap input operands in memory.
5998
5999 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
6000
6001 doc:
6002 * cpp.texi: Update multichar charconst docs.
6003
6004 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
6005
6006 * cpplex.c (cpp_interpret_charconst): Sign-extend each
6007 character. Don't ignore excess characters. Treat
6008 multicharacter character constants as signed.
6009 (cpp_parse_escape): Clarify diagnostic.
6010
6011 2002-05-05 Jakub Jelinek <jakub@redhat.com>
6012
6013 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
6014 use add instead of shift.
6015 (ashldi3_sp64): Likewise.
6016 (ashlsi3_const1, ashldi3_const1): Remove.
6017 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
6018 * config/sparc/sparc.c (const1_operand): New.
6019
6020 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
6021
6022 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
6023
6024 2002-05-05 Jakub Jelinek <jakub@redhat.com>
6025
6026 PR target/6561
6027 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
6028
6029 2002-05-05 Richard Henderson <rth@redhat.com>
6030
6031 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
6032 memory latency adjustments.
6033 (alpha_variable_issue): Remove.
6034 (alpha_use_dfa_pipeline_interface): New.
6035 (alpha_multipass_dfa_lookahead): New.
6036 * config/alpha/alpha.md: Remove define_function_unit scheduling;
6037 include new dfa scheduling.
6038 (attr type): Add none.
6039 (blockage): Use it.
6040 * config/alpha/ev4.md: New.
6041 * config/alpha/ev5.md: New.
6042 * config/alpha/ev6.md: New.
6043
6044 2002-05-05 David S. Miller <davem@redhat.com>
6045
6046 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
6047
6048 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
6049
6050 * cse.c: Fix formatting.
6051 * emit-rtl.c: Likewise.
6052
6053 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6054
6055 * genautomata.c (initiate_states): Add additional guard to
6056 initialize `units_array'.
6057
6058 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6059
6060 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
6061 process_unit_to_form_the_same_automaton_unit_lists,
6062 form_the_same_automaton_unit_lists
6063 check_unit_distributions_to_automata): New prototypes and
6064 functions.
6065 (check_automata): Rename it into `check_automata_insn_issues'.
6066 (unit_decl): New fields `the_same_automaton_unit' and
6067 `the_same_automaton_message_reported_p'.
6068 (unit_decl_t): New typedef.
6069 (the_same_automaton_lists): New gloval variable.
6070 (unit_regexp, unit_set_el, units_array, units_cmp,
6071 output_get_cpu_unit_code_func): Use the typedef.
6072 (evaluate_max_reserv_cycles): Increment
6073 `description->max_insn_reserv_cycles'.
6074 (initiate_states): Don't increment `max_cycles_num'.
6075 (transform_insn_regexps): Move code around transformation of
6076 regexps from `generate'.
6077 (generate): Remove call of `transform_insn_regexps'.
6078 (expand_automata): Call `transform_insn_regexps' and
6079 `check_unit_distributions_to_automata'. Check errors before
6080 `generate'.
6081
6082 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
6083 automaton `ultrasparc3_1'.
6084
6085 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
6086
6087 * c-common.c (c_common_init): Set up CPP arithmetic.
6088 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
6089 something reasonable for the host.
6090 (sanity_checks): Add checks.
6091 (cpp_read_main_file): Call sanity_checks() from here...
6092 (cpp_post_options): ... not here.
6093 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
6094 * cpplib.h (struct cpp_options): New member int_precision.
6095
6096 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6097
6098 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
6099
6100 2002-05-04 David S. Miller <davem@redhat.com>
6101
6102 * config/sparc/linux.h, config/sparc/linux64.h
6103 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
6104
6105 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
6106 more RTX codes.
6107 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
6108
6109 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
6110 of SETs.
6111
6112 2002-05-05 Tim Josling <tej@melbpc.org.au>
6113
6114 * treelang; New directory for new sample language treelang.
6115
6116 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6117
6118 * Makefile.in (c-lex.o): Update.
6119 * c-lex.c: Include target.h.
6120 (cb_register_builtins): New.
6121 (init_c_lex): Set builtins callback.
6122 * c-lex.h (cpp_define, cpp_assert): New prototypes.
6123 * cppinit.c (init_builtins): Use callback, including for
6124 GXX_WEAK.
6125 * cpplib.h (struct cpp_callbacks): New member.
6126 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
6127 (TARGET_INITIALIZER): Update.
6128 * target.h (struct gcc_target): New hook.
6129 * tree.c (default_register_cpp_builtins): New.
6130 * tree.h (default_register_cpp_builtins): New.
6131 doc:
6132 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
6133
6134 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6135
6136 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
6137 (cpp_post_options): Move sanity checks to...
6138 (sanity_checks): New.
6139 * cpplex.c (maybe_read_ucs): Fix prototype.
6140 (parse_string, cpp_parse_escape): Cast for %c format specifier.
6141 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
6142 if necessary.
6143
6144 2002-05-04 Bernd Schmidt <bernds@redhat.com>
6145
6146 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
6147 builtins. Use V2DI patterns instead of TI for logical operations.
6148 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
6149 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
6150 (ix86_expand_builtins): Change the pattern used for movntdq.
6151 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
6152 sse2_nandv2di3): New patterns.
6153 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
6154 on operands.
6155 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
6156 (cvtdq2pd): Correct mode on operand 1.
6157 (sse2_umulsidi3): Describe without unspec.
6158 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
6159 machine modes.
6160 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
6161 (ashlv2di3): Likewise, from sse2_ashlv2di3.
6162 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
6163 ashlv4si3, ashlv2di3): Use SImode for shift count.
6164 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
6165 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
6166 New patterns.
6167 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
6168 New typedefs.
6169 (__m128i, __m128d): New macros.
6170 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
6171 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
6172 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
6173 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
6174 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
6175 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
6176 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
6177 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
6178 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
6179 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
6180 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
6181 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
6182 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
6183 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
6184 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
6185 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
6186 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
6187 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
6188 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
6189 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
6190 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
6191 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6192 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
6193 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6194 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
6195 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
6196 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
6197 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
6198 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
6199 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
6200 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
6201 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6202 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
6203 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
6204 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
6205 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
6206 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
6207 functions.
6208 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
6209 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
6210
6211 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
6212
6213 * dwarf2out.c: Fix formatting.
6214 * varasm.c: Likewise.
6215
6216 2002-05-04 David Edelsohn <edelsohn@gnu.org>
6217
6218 PR c/6543
6219 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
6220 clobber and use result as temporary value.
6221
6222 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6223
6224 * expr.c (force_operand): Use expand_simple_* to handle more
6225 cases.
6226
6227 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6228
6229 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
6230 and sign-extension.
6231 (lex_charconst): Update for change in prototype of
6232 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
6233 appropriately.
6234 * cpphash.h (BITS_PER_CPPCHAR_T): New.
6235 * cppinit.c (cpp_create_reader): Initialize them for no
6236 change in semantics.
6237 (cpp_post_options): Add sanity checks.
6238 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
6239 and truncation issues. Calculate in type cppchar_t.
6240 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
6241 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
6242 run-time dependent precision correctly. Return whether the
6243 result is signed or not.
6244 * cpplib.c (dequote_string): Use cppchar_t; update.
6245 * cpplib.h (cppchar_signed_t): New.
6246 struct cpp_options): New precision members.
6247 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
6248 * cppexp.c (eval_token): Update.
6249
6250 2002-05-03 David S. Miller <davem@redhat.com>
6251
6252 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
6253 * config/sparc/sparc.c (sparc_rtx_costs): New function
6254 implementing RTX_COSTS and CONST_COSTS.
6255 * config/sparc/sparc.h (CONST_COSTS): Delete.
6256 (RTX_COSTS_CASES): Define.
6257 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
6258 the work.
6259
6260 * config/sparc/sparc.md (DFA schedulers): Split out...
6261 * config/sparc/cypress.md, config/sparc/hypersparc.md,
6262 config/sparc/sparclet.md, config/sparc/supersparc.md,
6263 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
6264
6265 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
6266 checks on it, always defined for Sparc.
6267
6268 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
6269 Tweak, and add more detailed comments.
6270
6271 2002-05-03 Zack Weinberg <zack@codesourcery.com>
6272
6273 * Re-apply patch accidentally reverted with
6274 DFA scheduler merge: remove all rules and variables to slurp
6275 source files out of libiberty and rebuild them with HOST_CC.
6276 ($(HOST_PREFIX_1)varray.o): New rule.
6277 (genattrtab rule): Word wrap.
6278
6279 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6280
6281 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
6282 (CPP_SUBTARGET_SPEC): Define.
6283 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
6284 cpp_subtarget specs.
6285 (CPP_SPEC): Redefine to include %(cpp_subtarget).
6286
6287 2002-05-03 David S. Miller <davem@redhat.com>
6288
6289 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
6290 * target.h (struct gcc_target): Delete cycle_display member.
6291
6292 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
6293 (rtx_needs_barrier): Delete reference to cycle_display unspec.
6294 (ia64_sched_reorder2): Mention need for cycle display handling
6295 once such notes exist.
6296
6297 2002-05-03 Richard Henderson <rth@redhat.com>
6298
6299 * real.c (etoasc): Strip most trailing zeros for clarity.
6300 * sched-vis.c: Include real.h.
6301 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
6302 * Makefile.in (sched-vis.o): Add real.h.
6303
6304 2002-05-03 David S. Miller <davem@redhat.com>
6305
6306 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
6307 no longer needed.
6308
6309 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
6310
6311 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
6312 when we get an out of range literal.
6313 (altivec_expand_ternop_builtin): Same.
6314 (altivec_expand_unop_builtin): Same.
6315 (altivec_expand_builtin): Same, for dss.
6316 (altivec_expand_builtin): Use trees instead of rtl when
6317 determining literal argument validity.
6318
6319 2002-05-03 David S. Miller <davem@redhat.com>
6320
6321 Delete cycle display scheduling hook.
6322 * config/ia64/ia64.c (ia64_cycle_display,
6323 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
6324 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
6325 and use emit_insn_before instead of ia64_emit_insn_before.
6326 * config/ia64/ia64.md (unspec usage): Delete cycle display.
6327 (cycle_display): Delete insn pattern.
6328 * config/sparc/sparc.md (unspec usage): Delete cycle display.
6329 (cycle_display): Delete insn pattern.
6330 * config/sparc/sparc.c (sparc_cycle_display,
6331 TARGET_SCHED_CYCLE_DISPLAY): Delete.
6332 * doc/md.texi (cycle_display): Don't mention.
6333 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
6334
6335 2002-05-03 Richard Henderson <rth@redhat.com>
6336
6337 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
6338 * recog.h: Declare them.
6339
6340 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
6341 * config/sparc/sparc.md: Use store_data_bypass_p instead.
6342 * config/sparc/sparc-protos.h: Update.
6343
6344 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6345
6346 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
6347 -D__arch64__. Add -D_LP64.
6348 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
6349 from sparc.h.
6350 (CPP_ARCH64_SPEC): Likewise.
6351 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
6352 (NO_BUILTIN_SIZE_TYPE): Undef.
6353
6354 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
6355
6356 * genautomata.c (min_issue_delay_pass_states): Change return type
6357 in the prototype.
6358 (min_issue_delay_pass_states): Change the algorithm.
6359 (min_issue_delay): Set up min_insn_issue_delay for the state.
6360 (output_min_issue_delay_table): Interchange the nested loops and
6361 and initiate min_insn_issue_delay for states.
6362
6363 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
6364
6365 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
6366 jump is simplejump.
6367
6368 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
6369
6370 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
6371 sequence.
6372
6373 2002-05-03 Richard Henderson <rth@redhat.com>
6374
6375 PR opt/6534
6376 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6377 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6378 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
6379 code before JUMP, not EARLIEST.
6380
6381 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
6382
6383 * c-format.c (check_format_info_main): Don't check for presence of
6384 parameter for * width until after operand number has been read,
6385 and only check for it if format parameters are available.
6386 Fixes PR c/6547.
6387
6388 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6389
6390 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
6391 (LINK_SPEC): Undef before defining.
6392
6393 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6394
6395 PR preprocessor/6489
6396 * tradcpp.c (fixup_newlines): New.
6397 (main, finclude): Use it.
6398
6399 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
6400
6401 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
6402 * config/mips/mips.c (mips_unique_section): Strip encoding from
6403 decl name.
6404
6405 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6406
6407 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
6408 mode.
6409
6410 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6411
6412 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
6413 (Specific): Removed buildstats references.
6414 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
6415 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
6416 Accomodate Solaris versions beyond 8.
6417 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
6418 (Specific, *-*-solaris2.8): Removed, obsolete.
6419
6420 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6421
6422 PR target/6542
6423 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
6424 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
6425 fill leaf_reg_remap with identity.
6426 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
6427
6428 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6429
6430 * config/h8300/crti.asm: Remove trailing spaces.
6431 * config/h8300/h8300.c: Likewise.
6432 * config/h8300/lib1funcs.asm: Likewise.
6433
6434 2002-05-02 Jason Merrill <jason@redhat.com>
6435
6436 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
6437 * c-decl.c (c_init_decl_processing): Use it.
6438 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
6439 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
6440 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
6441
6442 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6443
6444 * regrename.c: Fix formatting.
6445 * tree.c: Likewise.
6446
6447 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
6448
6449 * i386.md (attribute memory): Handle compares properly.
6450
6451 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
6452
6453 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
6454 to none.
6455
6456 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
6457
6458 * function.c: Fix formatting.
6459
6460 2002-05-02 Jan Hubicka <jh@suse.cz>
6461
6462 * haifa-sched.c (schedule_insn): Print table of instructions and
6463 reservations.
6464 (sched_block): Do not print ready list at verbosity level 1.
6465 * sched-vis.c (print_insn): Make global.
6466 * sched-ebb.c (ebb_print_insn): Rename from...
6467 (print_insn): ... this one.
6468 * sched-int.h (print_insn): Declare
6469
6470 2002-05-02 Richard Henderson <rth@redhat.com>
6471
6472 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
6473 emitted by cycle_display.
6474
6475 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
6476
6477 * doc/install.texi (*-*-freebsd*): Update to latest status.
6478
6479 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6480
6481 PR target/6540
6482 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
6483 * config/float-sparc.h: Assume 128-bit long double if
6484 __LONG_DOUBLE_128__ is defined.
6485
6486 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
6487
6488 * genattrtab.c (write_function_unit_info): Add a dummy element
6489 when num_units == 0.
6490
6491 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6492
6493 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
6494 TYPE_MODE (double_type_node) instead of DFmode.
6495
6496 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
6497
6498 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
6499 jumps post reload.
6500 * toplev.c (rest_of_compilation): Revert Richard's patch.
6501
6502 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
6503
6504 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
6505
6506 2002-05-02 Catherine Moore <clm@redhat.com>
6507
6508 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
6509
6510 2002-05-02 Kazu Hirata <kazu@hxi.com>
6511
6512 * combine.c: Fix comment typos.
6513 * expr.c: Likewise.
6514 * genautomata.c: Likewise.
6515 * stmt.c: Likewise.
6516 * tree.h: Likewise.
6517
6518 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
6519
6520 * doc/install.texi: State GNAT version requirements.
6521
6522 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
6523
6524 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
6525 of the frame pointer or arg pointer register which strict register
6526 checking is not enabled.
6527
6528 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
6529
6530 * gcc.dg/altivec-8.c: New.
6531
6532 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
6533 PRE_INC and PRE_DEC for altivec modes.
6534
6535 2002-05-01 Bruce Korb <bkorb@gnu.org>
6536
6537 * fixinc/check.tpl(set-writable): make sure the function exists first
6538 * fixinc/inclhack.def(alpha_assert): fix test_text
6539 * fixinc/tests/base/assert.h: add in missing result
6540
6541 2002-05-01 Jeff Law <law@redhat.com>
6542
6543 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
6544 'T' constraint.
6545
6546 2002-05-01 Joel Brobecker <brobecker@gnat.com>
6547
6548 * dbxout.c (dbxout_type): Emit size information for range types,
6549 as well, but only when using GDB extensions.
6550
6551 2002-05-01 Richard Henderson <rth@redhat.com>
6552
6553 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
6554 target-independent gnu binutils date test.
6555
6556 2002-05-01 Richard Henderson <rth@redhat.com>
6557
6558 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
6559 info before expunging the block.
6560
6561 2002-05-01 Jakub Jelinek <jakub@redhat.com>
6562
6563 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
6564 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
6565 -M -or -MM is in effect.
6566
6567 2002-05-01 Zack Weinberg <zack@codesourcery.com>
6568
6569 * config.gcc: Correct test of --enable-obsolete. Obsolete all
6570 A29k configurations.
6571 * doc/install.texi: Update to match.
6572
6573 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6574
6575 PR bootstrap/6514
6576 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
6577 for duplicates. Always loop over whole list.
6578
6579 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6580
6581 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
6582
6583 2002-05-01 Joel Sherrill <joel@OARcorp.com>
6584
6585 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
6586 support routines.
6587
6588 2002-05-01 Joel Sherrill <joel@OARcorp.com>
6589
6590 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
6591
6592 2002-05-01 David Edelsohn <edelsohn@gnu.org>
6593
6594 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
6595 (nabs_nopower): Same.
6596 (floatdisf2): New pattern.
6597 (absdi2): Convert to define_insn_and_split.
6598 (nabsdi2): Same.
6599 (trunctfsf2): Same.
6600 (floatditf2): Same.
6601 (floatsitf2): Same.
6602 (fix_trunctfdi2): Same.
6603 (fix_trunctfsi2): Same.
6604
6605 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
6606
6607 * doc/install.texi: Update Texinfo version requirement
6608 documentation.
6609
6610 2002-05-01 Jakub Jelinek <jakub@redhat.com>
6611
6612 PR target/6512, PR target/5628
6613 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
6614 when memory is not aligned.
6615 (movdf_insn_v9only_vis): Likewise.
6616 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
6617 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
6618 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
6619
6620 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
6621
6622 * gcc.dg/altivec-7.c: New.
6623
6624 * config/rs6000/altivec.h: Cleanup.
6625
6626 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
6627
6628 * doc/invoke.texi (Option Summary): Add -mvrsave=.
6629 (RS/6000 and PowerPC Options): Document -mvrsave=.
6630
6631 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
6632 (rs6000_altivec_vrsave_string): Same.
6633 (rs6000_override_options): Call rs6000_parse_vrsave_option.
6634 (rs6000_parse_vrsave_option): New.
6635 (rs6000_stack_info): Only generate vrsave instructions when
6636 TARGET_ALTIVEC_VRSAVE.
6637
6638 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
6639 (rs6000_altivec_vrsave_string): Define extern.
6640 (rs6000_altivec_vrsave): Same.
6641 (TARGET_ALTIVEC_VRSAVE): New.
6642
6643 2002-04-30 Richard Henderson <rth@redhat.com>
6644
6645 PR opt/6516
6646 * toplev.c (rest_of_compilation): Don't run cross-jump before
6647 bb-reorder.
6648
6649 2002-04-30 Tom Rix <trix@redhat.com>
6650
6651 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
6652 check which_alternative.
6653
6654 2002-04-30 Kazu Hirata <kazu@hxi.com>
6655
6656 * cpplex.c: Fix comment formatting.
6657 * function.c: Likewise.
6658 * integrate.c: Likewise.
6659 * regrename.c: Likewise.
6660 * sibcall.c: Likewise.
6661 * simplify-rtx.c: Likewise.
6662 * tree-inline.c: Likewise.
6663
6664 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6665
6666 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
6667 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
6668 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
6669 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
6670 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
6671 * pa/x-ada: New file. Define ADA_CFLAGS.
6672
6673 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
6674
6675 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
6676 from MMIX_LAST_REGISTER_FILE_REGNUM.
6677 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
6678 (struct machine_function): New member highest_saved_stack_register
6679 previously static variable in mmix.c.
6680 (MACHINE_DEPENDENT_REORG): Define.
6681 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
6682 (MMIX_OUTPUT_REGNO): New.
6683 (mmix_target_asm_function_prologue): Move calculation of last used
6684 saved-stack-register into...
6685 (mmix_machine_dependent_reorg): New function. Update to also handle
6686 !TARGET_ABI_GNU.
6687 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
6688 register names, simplify somewhat by new variable regno.
6689 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
6690 register.
6691 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
6692 emitting register names.
6693 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
6694 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
6695 Remove fixed FIXME.
6696 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
6697 Declare.
6698
6699 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
6700
6701 2002-04-30 Richard Henderson <rth@redhat.com>
6702
6703 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
6704 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
6705 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
6706 emit_tfmode_cvt): New.
6707 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
6708 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
6709 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
6710 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
6711 * config/sparc/sparc-protos.h: Update.
6712
6713 2002-04-30 Janis Johnson <janis187@us.ibm.com>
6714
6715 * install.texi (Final install): Add to the list of info to include
6716 in a report of a successful bootstrap, and add link to 3.1 list.
6717
6718 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
6719
6720 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
6721 (mode): Add vector modes
6722 (i387): Kill attribute.
6723 (unit): New attribute.
6724 (length_immediate): Grok new types.
6725 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
6726 (modrm): Use "unit".
6727 (memory): Handle MMX/SSE properly.
6728 (scheduling descriptions): Kill uses of fop1.
6729 (sse, mmx, fp patterns): Set type and mode properly.
6730
6731 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
6732
6733 * pa.c (override_options): Default to PA8000 scheduling.
6734 * doc/invoke.texi (HP-PA options): Mention newly added 7300
6735 scheduling parameter.
6736
6737 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
6738 handling of double precision multiplies.
6739
6740 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
6741 fpdiv and fpsqrt instructions.
6742 (7200 & 7300 scheduling): Fix typo in handling of
6743 store-load and store-store penalties.
6744
6745 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6746
6747 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
6748 mips. Add two missing commas.
6749
6750 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
6751
6752 * doc/contrib.texi (Contributors): Update Paolo Carlini's
6753 and Benjamin Kosnik's entries.
6754
6755 2002-04-29 David S. Miller <davem@redhat.com>
6756
6757 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
6758 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
6759 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
6760 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6761
6762 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6763
6764 * combine.c (find_split_point): Use gen_int_mode.
6765
6766 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
6767
6768 Merging code from dfa-branch:
6769
6770 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
6771
6772 * genautomata.c (output_reserv_sets): Fix typo.
6773
6774 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
6775
6776 * genautomata.c (output_reserv_sets): Remove
6777 next_cycle_output_flag.
6778
6779 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
6780
6781 * sched-rgn.c (init_ready_list): Make the DFA code handle
6782 USE/CLOBBER insns in the same way as the traditional
6783 scheduler.
6784 (new_ready): Similarly..
6785
6786 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
6787
6788 * haifa-sched.c (schedule_block): Change the DFA state only after
6789 issuing insn.
6790
6791 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
6792
6793 * pa.c (hppa_use_dfa_pipeline_interface): New function.
6794 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6795 (override_options): Add PA7300 scheduling support.
6796 (pa_adjust_cost): Update various comments. Properly
6797 handle anti and output dependencies when using the
6798 DFA scheduler.
6799 (pa_issue_rate): Add PA7300 scheduling support.
6800 (pa_can_combine_p): Call extract_insn before calling
6801 constrain_operands (taken from mainline tree).
6802 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
6803 * pa.md (cpu attr): Add 7300. Rewrite pipeline
6804 descriptions using DFA descriptions. Add PA7300
6805 scheduling support.
6806
6807 2002-03-30 David S. Miller <davem@redhat.com>
6808
6809 Add UltraSPARC-III DFA scheduling support.
6810 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
6811 Update FP conditional move on register insn patterns to use it, as
6812 appropriate.
6813 (define_attr cpu): Add ultrasparc3.
6814 (define_attr us3load_type): New, update integer load patterns to
6815 set it, as appropriate.
6816 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
6817 (rest): Add UltraSPARC3 scheduling description.
6818 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
6819 (PROCESSOR_ULTRASPARC3): New.
6820 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
6821 ({ASM,CPP}_CPU_SPEC): Likewise.
6822 (REGISTER_MOVE_COST): Likewise.
6823 (RTX_COSTS): Likewise.
6824 * config/sparc/sparc.c (sparc_override_options,
6825 sparc_initialize_trampoline, sparc64_initialize_trampoline,
6826 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
6827 sparc_issue_rate): Likewise.
6828 * config/sparc/sol2.h: Likewise.
6829 * config/sparc/sol2-sld-64.h: Likewise.
6830 * config/sparc/linux64.h: Likewise.
6831
6832 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
6833
6834 * doc/md.texi: Add comments about usage the latency time for the
6835 different dependencies and about case when two or more conditions
6836 in different define_insn_reservations returns TRUE for an insn.
6837
6838 * doc/md.texi: Add reference for automaton based pipeline
6839 description.
6840
6841 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
6842
6843 * doc/passes.texi: Add missed information about genattrtab.
6844
6845 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
6846
6847 * genautomata.c (output_automata_list_transition_code): Check
6848 automata_list on NULL.
6849
6850 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
6851
6852 * genautomata.c (output_insn_code_cases,
6853 output_automata_list_min_issue_delay_code,
6854 output_automata_list_transition_code,
6855 output_automata_list_state_alts_code): Comment the functions.
6856
6857 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
6858
6859 * genautomata.c (automata_list_el_t): New typedef.
6860 (get_free_automata_list_el,free_automata_list_el,
6861 free_automata_list, automata_list_hash, automata_list_eq_p,
6862 initiate_automata_lists, automata_list_start, automata_list_add,
6863 automata_list_finish, finish_automata_lists,
6864 output_insn_code_cases, output_automata_list_min_issue_delay_code,
6865 output_automata_list_transition_code,
6866 output_automata_list_state_alts_code, add_automaton_state,
6867 form_important_insn_automata_lists): New functions and prototypes.
6868 (insn_reserv_decl): Add members important_automata_list and
6869 processed_p.
6870 (ainsn): Add members important_p.
6871 (automata_list_el): New structure.
6872 (first_free_automata_list_el, current_automata_list,
6873 automata_list_table): New global variables.
6874 (create_ainsns): Initiate member important_p.
6875 (output_internal_min_issue_delay_func): Generate the switch and
6876 call output_insn_code_cases.
6877 (output_internal_trans_func, output_internal_state_alts_func):
6878 Ditto.
6879 (generate): Call initiate_automata_lists.
6880 (automaton_states): New global variable.
6881 (expand_automata): Call form_important_insn_automata_lists.
6882 (write_automata): Call finish_automata_lists.
6883
6884 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
6885
6886 * genautomata.c (add_excls, add_presence_absence): Check that
6887 cpu units in the sets belong the same automaton.
6888
6889 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
6890 about that cpu units in the sets belong the same automaton.
6891
6892 * doc/md.texi: Ditto.
6893
6894 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
6895 Nitin Gupta <niting@noida.hcltech.com>
6896
6897 * config/sh/sh.c (sh_use_dfa_interface): New function.
6898
6899 (sh_issue_rate): New Function.
6900 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
6901 TARGET_SCHED_ISSUE_RATE: define.
6902
6903 * config/sh/sh.md: Add DFA based pipeline description for SH4.
6904
6905 (define_attr insn_class): New attribute used for DFA
6906 scheduling.
6907 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
6908 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
6909 cmpeqdi_t): Likewise.
6910
6911 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
6912 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
6913 ex_group.
6914 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
6915
6916 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
6917
6918 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
6919 break.
6920
6921 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
6922
6923 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
6924 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
6925 necessary.
6926 (output_dfa_start_func): Initiate new variable insn_codes_length,
6927 (write_automata): Output definition of the new variable.
6928
6929 2001-10-02 David S. Miller <davem@redhat.com>
6930
6931 * haifa-sched.c (advance_one_cycle): New function.
6932 (schedule_block): Use it.
6933 (queue_to_ready): Use it, and also make sure to advance the DFA
6934 state on all stall cycles, not just those where insn_queue links
6935 are found.
6936
6937 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
6938
6939 * haifa-sched.c (max_issue): Remove last_p argument. Only return
6940 non-zero if the highest-priority instruction could be scheduled.
6941 (choose_ready): Remove last argument from max_issue call.
6942
6943 2001-09-28 David S. Miller <davem@redhat.com>
6944
6945 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
6946 ultrasparc and 3 for other multi-issue sparcs.
6947
6948 2001-09-27 David S. Miller <davem@redhat.com>
6949
6950 * config/sparc/sparc.md (cycle_display): New pattern.
6951 * config/sparc/sparc.c (sparc_cycle_display): New.
6952 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
6953
6954 2001-09-25 David S. Miller <davem@redhat.com>
6955
6956 Convert all of Sparc scheduling to DFA
6957 * config/sparc/sparc.md: Kill all define_function_unit
6958 directives and replace with DFA equivalent.
6959 * config/sparc/sparc.c (ultrasparc_adjust_cost,
6960 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
6961 ultra_fpmode_conflict_exists, ultra_find_type,
6962 ultra_build_types_avail, ultra_flush_pipeline,
6963 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
6964 ultrasparc_variable_issue, ultrasparc_sched_init,
6965 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
6966 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
6967 ultra_cur_hist, ultra_cycles_elapsed): Kill.
6968 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
6969 ultrasparc_store_bypass_p): New.
6970 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
6971 Declare.
6972
6973 2001-09-24 David S. Miller <davem@redhat.com>
6974
6975 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
6976 ready->vec[foo] not ready[foo].
6977
6978 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
6979
6980 * doc/md.texi: Correct examples for define_insn_reservations
6981 `mult' and `div'.
6982
6983 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
6984
6985 * genautomata.c (create_automata): Print message about creation of
6986 each automaton.
6987 (generate): Remove printing meease about creation of
6988 automata.
6989
6990 2001-09-05 David S. Miller <davem@redhat.com>
6991
6992 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
6993 * config/sparc/linux64.h: Likewise.
6994
6995 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
6996
6997 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
6998 schedule_block, sched_init, sched_finish): Add missed calls of
6999 use_dfa_pipeline_interface.
7000
7001 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
7002 Ditto.
7003
7004 * sched-vis.c (get_visual_tbl_length): Ditto.
7005
7006 2001-08-27 Richard Henderson <rth@redhat.com>
7007
7008 * genattr.c (main): Emit state_t even when not doing scheduling.
7009
7010 2001-08-27 Richard Henderson <rth@redhat.com>
7011
7012 * genautomata.c (expand_automata): Always create a description.
7013
7014 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
7015
7016 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
7017 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
7018 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
7019 RTL constructions.
7020
7021 * genattr.c (main): New variable num_insn_reservations. Increase
7022 it if there is DEFINE_INSN_RESERVATION. Output automaton based
7023 pipeline hazard recognizer interface.
7024
7025 * genattrtab.h: New file.
7026
7027 * genattrtab.c: Include genattrtab.h.
7028 (attr_printf, check_attr_test, make_internal_attr,
7029 make_numeric_value): Move protypes into genattrtab.h. Define them
7030 as external.
7031 (num_dfa_decls): New global variable.
7032 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
7033 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
7034 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
7035 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
7036
7037 * genautomata.c: New file.
7038
7039 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
7040
7041 * sched-int.h: (curr_state): Add the external definition for
7042 automaton pipeline interface.
7043 (haifa_insn_data): Add comments for members blockage and units.
7044
7045 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7046 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7047 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7048 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7049 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7050 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7051 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
7052 macros.
7053 (TARGET_SCHED): Use the new macros.
7054
7055 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
7056 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
7057 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
7058 dfa_bubble): New members in gcc_target.sched.
7059
7060 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
7061 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
7062 (insn_queue): Redefine it as pointer to array.
7063 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
7064 INSN_QUEUE_SIZE.
7065 (max_insn_queue_index_macro_value): New variable.
7066 (curr_state, dfa_state_size, ready_try): New varaibles for
7067 automaton interface.
7068 (ready_element, ready_remove, max_issue): New function prototypes
7069 for automaton interface.
7070 (choose_ready): New function prototype.
7071 (insn_unit, blockage_range): Add comments.
7072 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
7073 FUNCTION_UNITS_SIZE == 0.
7074 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
7075 actual_hazard, potential_hazard): Add comments.
7076 (insn_cost): Use cost -1 as undefined value. Remove
7077 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
7078 pipeline interface.
7079 (ready_element, ready_remove): New functions for automaton
7080 interface.
7081 (schedule_insn): Add new code for automaton pipeline interface.
7082 (queue_to_ready): Add new code for automaton pipeline interface.
7083 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
7084 (debug_ready_list): Print newline when the queue is empty.
7085 (max_issue): New function for automaton pipeline interface.
7086 (choose_ready): New function.
7087 (schedule_block): Add new code for automaton pipeline interface.
7088 Print ready list before scheduling each insn.
7089 (sched_init): Add new code for automaton pipeline interface.
7090 Initiate insn cost by -1.
7091 (sched_finish): Free the current automaton state and finalize
7092 automaton pipeline interface.
7093
7094 * sched-rgn.c: Include target.h.
7095 (init_ready_list, new_ready, debug_dependencies): Add new code for
7096 automaton pipeline interface.
7097
7098 * sched-vis.c: Include target.h.
7099 (get_visual_tbl_length): Add code for automaton interface.
7100 (target_units, print_block_visualization): Add comments.
7101
7102 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
7103 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
7104 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
7105 (getruntime.o, genautomata.o): New entries.
7106 (genattrtab.o): Add new dependency file genattrtab.h.
7107 (genattrtab): Add new dependencies. Link it with `libm.a'.
7108 (getruntime.o, hashtab.o): New entries for canadian cross.
7109
7110 * doc/md.texi: Description of automaton based model.
7111
7112 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
7113 Add comments.
7114 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7115 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7116 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7117 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7118 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7119 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7120 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
7121 hook descriptions.
7122 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
7123 MAX_DFA_ISSUE_RATE): New macro descriptions.
7124
7125 * doc/contrib.texi: Add dfa based scheduler contribution.
7126
7127 * doc/gcc.texi: Add more information about genattrtab.
7128
7129 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7130
7131 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
7132 adjust_address_nv call.
7133
7134 2002-04-29 Janis Johnson <janis187@us.ibm.com>
7135
7136 * doc/install.texi (Testing): Provide additional information, and
7137 a stronger encouragement, for running the testsuites.
7138
7139 2002-04-29 DJ Delorie <dj@redhat.com>
7140
7141 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
7142 given in upper case.
7143
7144 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7145
7146 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
7147 Solaris 2 <widec.h> if missing.
7148 * fixinc/fixincl.x: Regenerate.
7149 * fixinc/tests/base/widec.h: New file.
7150
7151 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
7152
7153 * toplev.c (f_options): Add "profile" switch so that
7154 -fno-profile can be used to disable -p.
7155
7156 2002-04-29 Bernd Schmidt <bernds@redhat.com>
7157
7158 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
7159 UV2DImode.
7160 * tree.c (build_common_tree_nodes_2): Likewise.
7161 * tree.h (enum tree_index): Likewise.
7162 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
7163
7164 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
7165 entries.
7166 (init_mmx_sse_builtins): Initialize SSE2 builtins.
7167 (ix86_expand_builtin): Add support for SSE2 builtins.
7168 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
7169 (VALID_SSE_REG_MODE): Use it.
7170 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
7171 (enum ix86_builtins): Add SSE2 builtins.
7172 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
7173 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
7174 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
7175 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
7176 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
7177 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
7178 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
7179 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
7180 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
7181 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
7182 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
7183 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
7184 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
7185 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
7186 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
7187 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
7188 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
7189 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
7190 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
7191 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
7192 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
7193 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
7194 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
7195 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
7196 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
7197 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
7198 lfence_insn): New patterns.
7199 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
7200 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
7201
7202 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
7203
7204 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
7205
7206 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7207
7208 * doc/contrib.texi (Contributors): Add Paolo Carlini and
7209 Janis Johnson.
7210 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
7211 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
7212 and CPU instead of cpu.
7213
7214 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7215
7216 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
7217 variables.
7218 (lang_independent_options): Add -fif-conversion, -fif-conversion2
7219 (rest_of_compilation): Do if conversion only when asked for.
7220 (parse_options_and_default_flags): Set new variables to 1 for -O1
7221 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
7222
7223 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7224
7225 * i386.c (dbx64_register_map): Fix typo.
7226
7227 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
7228
7229 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
7230 real_one_half, real_bb_freq_max): New static variables.
7231 (debug_profile_bbauxs): Kill.
7232 (process_note_predictions): Kill unused variable.
7233 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
7234 volatile double.
7235 (propagate_freq): Use REAL_ARITHMETICS.
7236 (estimate_bb_frequencies): Likevise; init new static variables.
7237 * Makefile.in (predict.o): Add dependency on real.h
7238
7239 2002-04-28 David S. Miller <davem@redhat.com>
7240
7241 PR target/6500
7242 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
7243 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
7244 several {reads,writes} instead.
7245 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
7246 Define.
7247
7248 2002-04-27 David S. Miller <davem@redhat.com>
7249
7250 PR target/6494
7251 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
7252 of the stack bias.
7253
7254 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
7255 including signal.h and sys/ucontext.h, not needed.
7256
7257 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
7258
7259 * varasm.c (output_constant_def): Correct test for not calling
7260 ENCODE_SECTION_INFO for INTEGER_CST.
7261
7262 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
7263
7264 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
7265 keep most cases as function eval_token.
7266 (eval_token): New function.
7267 (_cpp_parse_expr): Read token here for improved diagnostics.
7268 Don't use op_as_text. Detect bad ':' here.
7269 (reduce): Don't detect bad ':' here.
7270 (op_as_text): Remove.
7271 * cpphash.h (_cpp_test_assertion): Change prototype.
7272 * cpplib.c (_cpp_test_assertion): Change prototype.
7273
7274 2002-04-28 Richard Henderson <rth@redhat.com>
7275
7276 PR c/5154
7277 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
7278 (ggc_mark_rtx_children): New.
7279
7280 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7281
7282 PR target/6496
7283 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
7284 after call peepholes for UltraSPARC.
7285 (call + jump 64-bit peepholes): Remove.
7286
7287 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7288
7289 PR c/6497
7290 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
7291 result as temporary value.
7292
7293 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7294
7295 PR c++/6396
7296 * toplev.c (rest_of_compilation): Only run regrename and copy
7297 propagation if optimizing.
7298
7299 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7300
7301 PR optimization/6475
7302 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
7303 register of REGNO_DECL (i).
7304 * Makefile.in (reload1.o): Add $(TREE_H).
7305
7306 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
7307
7308 * cppexp.c (lex): Update to use state.skip_eval.
7309 (struct op): Remove prio and flags members.
7310 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
7311 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
7312 (LEFT_ASSOC): New macro.
7313 (optab): New table of operator priorities and flags.
7314 (SHIFT): Update.
7315 (_cpp_parse_expr): Clean up logic. Return bool. Use a
7316 malloc-ed parser stack.
7317 (reduce): New; reduce the operator stack.
7318 (_cpp_expand_op_stack): Expand the operator stack as necessary.
7319 * cpphash.h (struct op): Predeclare.
7320 (struct cpp_reader): New members op_stack, op_limit.
7321 (struct lexer_state): New member skip_eval.
7322 (_cpp_parse_expr): Update.
7323 (_cpp_expand_op_stack): New.
7324 * cpplib.c (do_if): Update.
7325 * cppinit.c (cpp_create_reader): Create op stack.
7326 (cpp_destroy): And destroy it.
7327 * cpplib.h (CPP_LAST_CPP_OP): Correct.
7328 (TTYPE_TABLE): Correct.
7329
7330 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7331
7332 PR c/6343
7333 * c-decl.c (duplicate_decls): Call merge_weak.
7334 * c-pragma.c (apply_pragma_weak): Warn about misuse.
7335 * output.h (merge_weak): Prototype merge_weak.
7336 * varasm.c (merge_weak): New function.
7337 (declare_weak): Make sure we don't give an error on VAR_DECLs.
7338 Mark RTL with SYMBOL_REF_WEAK.
7339
7340 2002-04-27 Kurt Garloff <garloff@suse.de>
7341
7342 * tree-inline.c (inlinable_function_p): Improve heuristics
7343 by using a smoother function to cut down allowable inlinable size.
7344 * param.def: Add parameters max-inline-insns-single,
7345 max-inline-slope, min-inline-insns that determine the exact
7346 shape of the above function.
7347 * param.h: Likewise.
7348
7349 2002-04-26 Richard Henderson <rth@redhat.com>
7350
7351 * c-parse.in (malloced_yyss, malloced_yyvs): New.
7352 (yyoverflow): Re-add. Set them.
7353 (free_parser_stacks): New.
7354 * c-common.h: Declare it.
7355 * c-lex.c (c_common_parse_file): Call it.
7356
7357 2002-04-26 Richard Henderson <rth@redhat.com>
7358
7359 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
7360 for fallthru search.
7361
7362 2002-04-26 Eric Christopher <echristo@redhat.com>
7363
7364 PR optimization/3700
7365 * config/mips/mips.c (mips_issue_rate): Define. New function.
7366 (TARGET_SCHED_ISSUE_RATE): Use.
7367
7368 2002-04-25 David S. Miller <davem@redhat.com>
7369
7370 PR target/6422
7371 * reorg.c (optimize_skip): Do not allow exception causing
7372 instructions to be considered for delay slots.
7373 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
7374 (relax_delay_slots): Do not try to consider exception causing
7375 instructions as redundant.
7376
7377 2002-04-26 Richard Henderson <rth@redhat.com>
7378
7379 PR c/5225
7380 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
7381
7382 2002-04-26 Mark Mitchell <mark@codesourcery.com>
7383
7384 PR bootstrap/6445
7385 * config/i386/i386.md (untyped_call): Return the value in a float
7386 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
7387 TARGET_80387.
7388
7389 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
7390
7391 * tree.c (tree_int_cst_lt): Compare constants whose types differ
7392 in unsigned-ness correctly.
7393
7394 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7395
7396 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
7397 portable runtime model.
7398
7399 2002-04-26 Richard Henderson <rth@redhat.com>
7400
7401 * c-parse.in (yyoverflow): Revert.
7402
7403 2002-04-26 David Edelsohn <edelsohn@gnu.org>
7404 Richard Henderson <rth@redhat.com>
7405
7406 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
7407 result as temporary value.
7408
7409 2002-04-26 Richard Henderson <rth@redhat.com>
7410
7411 PR c/3581
7412 * c-common.c (fix_string_type): Split out of ...
7413 (combine_strings): ... here. Take a varray, not a tree list.
7414 (c_expand_builtin_printf): Use fix_string_type.
7415 * c-common.h: Update decls.
7416 * c-parse.in (string): Remove. Update all uses to use STRING
7417 instead, and not call combine_strings.
7418 (yylexstring): New.
7419 (_yylex): Use it.
7420 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
7421 (build_asm_stmt): Likewise.
7422 * objc/objc-act.c (my_build_string): Use fix_string_type.
7423 (build_objc_string_object): Build varray for combine_strings.
7424
7425 2002-04-26 Bo Thorsen <bo@suse.co.uk>
7426
7427 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
7428 x86-64.
7429
7430 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
7431
7432 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
7433 (HAVE_NO_R_OPERAND): Remove.
7434 (HAVE_VALUE): Remove.
7435 (op_to_prio): Update.
7436 (UNARY): Don't alter flags.
7437 (_cpp_parse_expr): want_value used to indicate whether
7438 a number or unary operator is expected next. Distinguish
7439 unary and binary +/-.
7440 (op_as_text): Update for unary operators.
7441
7442 2002-04-25 Richard Henderson <rth@redhat.com>
7443
7444 PR c/2161
7445 * c-parse.in (yyoverflow): New.
7446
7447 2002-04-25 Richard Henderson <rth@redhat.com>
7448
7449 PR c/2098
7450 * c-common.c (shorten_compare): Simplfy conditions leading to
7451 the generation of a warning.
7452
7453 2002-04-25 Richard Henderson <rth@redhat.com>
7454
7455 PR c/2035
7456 * expmed.c (extract_bit_field): Fall through to generic code rather
7457 than aborting on subreg special case.
7458
7459 2002-04-25 David S. Miller <davem@redhat.com>
7460
7461 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
7462 for DECL being NULL.
7463
7464 2002-04-25 Steve Christiansen <smc@us.ibm.com>
7465
7466 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
7467
7468 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
7469
7470 * c-decl.c (grokdeclarator): Remove outdated ??? note
7471 on invalid declaration of flexible array members.
7472
7473 2002-04-25 Richard Henderson <rth@redhat.com>
7474
7475 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
7476
7477 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7478
7479 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
7480 needed by the compiler, even if they are used as global regs.
7481
7482 2002-04-25 Matt Hiller <hiller@redhat.com>
7483
7484 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
7485 functions.
7486 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
7487 of the corresponding functions.
7488 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
7489 New prototypes.
7490
7491 2002-04-25 Matt Hiller <hiller@redhat.com>
7492
7493 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
7494
7495 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
7496 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
7497 registers, adjust comment accordingly.
7498 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
7499 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
7500 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
7501 for coprocessor registers.
7502 (ADDITIONAL_REGISTER_NAMES): Include
7503 ALL_COP_ADDITIONAL_REGISTER_NAMES.
7504
7505 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
7506 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
7507 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
7508 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
7509 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
7510
7511 (mips_char_to_class): Adjust comment to include coprocessor
7512 constraint letters.
7513
7514 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
7515 New functions.
7516 (mips_reg_names, mips_regno_to_class): Include coprocessor
7517 information.
7518 (mips_sw_reg_names): Ditto, make non-static.
7519 (mips_move_1word): Handle moves to and from coprocessor registers.
7520 (mips_move_2words): Handle moves to and from coprocessor
7521 registers.
7522 (mips_class_max_nregs, mips_register_move_cost): Handle
7523 coprocessor register classes.
7524 (override_options): Initialize mips_char_to_class and
7525 mips_hard_regno_mode_ok properly for coprocessor registers.
7526
7527 * config/mips/mips.md (movdi_internal, movdi_internal2,
7528 movsi_internal1, movsi_internal2): Add constraint-sets for
7529 coprocessor registers.
7530 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
7531 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
7532 isn't mips.
7533 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
7534 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
7535 isn't mips.
7536 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
7537 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
7538 isn't mips.
7539 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
7540 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
7541 isn't mips.
7542
7543 * doc/tm.texi: Document feature.
7544
7545 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7546
7547 * integrate.c (function_attribute_inlinable_p): Simplify.
7548 Check the table pointer is not NULL.
7549
7550 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
7551
7552 * doc/c-tree.texi: Fix typo in introduction.
7553
7554 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7555
7556 * c-common.h (c_common_parse_file): Update.
7557 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7558 * c-lex.c (YYDEBUG): Get from c-lex.h.
7559 (c_common_parse_file): Update.
7560 * c-lex.h (YYDEBUG, yydebug): New.
7561 * c-parse.in (YYDEBUG): Get from c-lex.h.
7562 (c_set_yydebug): Remove.
7563 * c-tree.h (c_set_yydebug): Remove.
7564 * langhooks-def.h (lhd_do_nothing_i): New.
7565 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
7566 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
7567 * langhooks.c (lhd_do_nothing_i): New.
7568 (lhd_set_yydebug): Remove.
7569 * langhooks.h (struct lang_hooks): Update.
7570 * toplev.c (set_yydebug): New.
7571 (compile_file): Update call to parse_file hook.
7572 (decode_d_option): Update.
7573 objc:
7574 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7575
7576 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
7577
7578 * loop.c (load_mems): Don't change the interface of called functions.
7579
7580 * calls.c (expand_call): Take current_function_pretend_args_size
7581 into account when setting argblock for sibcalls.
7582
7583 2002-04-24 Matt Hiller <hiller@redhat.com>
7584
7585 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
7586 * c-lex.c: Ditto.
7587
7588 * cpplex.c (skip_line_comment): Process comment one multibyte
7589 character at a time rather than one char at a time, if
7590 appropriate.
7591 (parse_string): Process string one multibyte character at a time
7592 rather than one char at a time, if appropriate.
7593 * c-lex.c (lex_string): Lex and copy multibyte strings
7594 appropriately.
7595 * cpplib.h (cppchar_t): Change to unsigned.
7596
7597 2002-04-24 Richard Henderson <rth@redhat.com>
7598
7599 PR c/3467
7600 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
7601 for c99.
7602
7603 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
7604
7605 * sh.c (sh_va_arg): If argument was passed by reference,
7606 dereference the pointer.
7607
7608 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7609
7610 * sh.md (divsi3_i4_media): Use match_operand for input values
7611 rather than hard registers.
7612 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7613 unnecessarily through hard registers. Keep copies of pseudo
7614 registers outside of the libcall sequence.
7615
7616 * sh.md (casesi_shift_media): Add modes.
7617
7618 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
7619 values in memory.
7620
7621 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
7622
7623 * attribs.c (c_common_attribute_table): Move table and handlers
7624 to c-common.c.
7625 (format_attribute_table, lang_attribute_table,
7626 lang_attribute_common): Remove.
7627 (init_attributes): Replace NULL pointers with pointers to the
7628 empty table.
7629 (handle_packed_attribute, handle_nocommon_attribute,
7630 handle_common_attribute, handle_noreturn_attribute,
7631 handle_noinline_attribute, handle_always_inline_attribute,
7632 handle_used_attribute, handle_unused_attribute,
7633 handle_const_attribute, handle_transparent_union_attribute,
7634 handle_constructor_attribute, handle_destructor_attribute,
7635 handle_mode_attribute, handle_section_attribute,
7636 handle_aligned_attribute, handle_weak_attribute,
7637 handle_alias_attribute, handle_visibility_attribute,
7638 handle_no_instrument_function_attribute, handle_malloc_attribute,
7639 handle_no_limit_stack_attribute, handle_pure_attribute,
7640 handle_deprecated_attribute, handle_vector_size_attribute,
7641 vector_size_helper): Move to c-common.c.
7642 * c-common.c (c_common_attribute_table,
7643 handle_packed_attribute, handle_nocommon_attribute,
7644 handle_common_attribute, handle_noreturn_attribute,
7645 handle_noinline_attribute, handle_always_inline_attribute,
7646 handle_used_attribute, handle_unused_attribute,
7647 handle_const_attribute, handle_transparent_union_attribute,
7648 handle_constructor_attribute, handle_destructor_attribute,
7649 handle_mode_attribute, handle_section_attribute,
7650 handle_aligned_attribute, handle_weak_attribute,
7651 handle_alias_attribute, handle_visibility_attribute,
7652 handle_no_instrument_function_attribute, handle_malloc_attribute,
7653 handle_no_limit_stack_attribute, handle_pure_attribute,
7654 handle_deprecated_attribute, handle_vector_size_attribute,
7655 vector_size_helper): Move from attribs.c.
7656 * c-common.h (c_common_attribute_table,
7657 c_common_format_attribute_table): New.
7658 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7659 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7660 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
7661 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
7662 (LANG_HOOKS_INITIALIZER): Update.
7663 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
7664 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
7665 * target.h: Update comment.
7666 * tree.c (default_target_attribute_table): Remove.
7667 * tree.h (default_target_attribute_table, format_attribute_table,
7668 lang_attribute_table, lang_attribute_common): Remove.
7669 objc:
7670 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7671 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7672
7673 2002-04-24 Jason Merrill <jason@redhat.com>
7674
7675 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
7676 * dwarf2out.c (dwarf_attr_name): Support it.
7677 (gen_array_type_die): Emit it.
7678 (lookup_type_die): No special handling for VECTOR_TYPE.
7679 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
7680
7681 2002-04-24 Richard Henderson <rth@redhat.com>
7682
7683 * config/mips/mips.md (movdi_usd): Renumber.
7684
7685 2002-04-24 David S. Miller <davem@redhat.com>
7686
7687 PR target/6420
7688 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
7689 32-bit Sparc and current_function_returns_struct is true.
7690
7691 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
7692
7693 * loop.c (canonicalize_condition): Use gen_int_mode.
7694
7695 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
7696
7697 * config/rs6000/altivec.h: Cleanup file. Add non individual
7698 variants.
7699 (vec_vaddubm): New.
7700 (vec_vadduhm): New.
7701 (vec_vadduwm): New.
7702 (vec_vaddfp): New.
7703 (vec_vaddcuw): New.
7704 (vec_vaddubs): New.
7705 (vec_vaddsbs): New.
7706 (vec_vadduhs): New.
7707 (vec_vadduws): New.
7708 (vec_vaddsws): New.
7709 (vec_vand): New.
7710 (vec_vandc): New.
7711 (vec_vavgub): New.
7712 (vec_vavgsb): New.
7713 (vec_vavguh): New.
7714 (vec_vavgsh): New.
7715 (vec_vavguw): New.
7716 (vec_vavgsw): New.
7717 (vec_vrfip): New.
7718 (vec_vcmpbfp): New.
7719 (vec_vcmpequb): New.
7720 (vec_vcmpequh): New.
7721 (vec_vcmpequw): New.
7722 (vec_vcmpeqfp): New.
7723 (vec_vcmpgefp): New.
7724 (vec_vcmpgtub): New.
7725 (vec_vcmpgtsb): New.
7726 (vec_vcmpgtuh): New.
7727 (vec_vcmpgtsh): New.
7728 (vec_vcmpgtuw): New.
7729 (vec_vcmpgtsw): New.
7730 (vec_vcmpgtfp): New.
7731 (vec_vcmpgefp): New.
7732 (vec_vcfux): New.
7733 (vec_vcfsx): New.
7734 (vec_vctsxs): New.
7735 (vec_vctuxs): New.
7736 (vec_vexptefp): New.
7737 (vec_vrfim): New.
7738 (vec_lvx): New.
7739 (vec_lvebx): New.
7740 (vec_lvehx): New.
7741 (vec_lde): Add vector float variant.
7742 (vec_lvewx): New.
7743 (vec_lvxl): New.
7744 (vec_vlogefp): New.
7745 (vec_vmaddfp): New.
7746 (vec_vmhaddshs): New.
7747 (vec_vmaxub): New.
7748 (vec_vmaxsb): New.
7749 (vec_vmaxuh): New.
7750 (vec_vmaxsh): New.
7751 (vec_vmaxuw): New.
7752 (vec_vmaxsw): New.
7753 (vec_vmaxsw): New.
7754 (vec_vmaxfp): New.
7755 (vec_vmrghb): New.
7756 (vec_vmrghh): New.
7757 (vec_vmrghw): New.
7758 (vec_vmrglb): New.
7759 (vec_vmrglh): New.
7760 (vec_vmrglw): New.
7761 (vec_vminub): New.
7762 (vec_vminsb): New.
7763 (vec_vminuh): New.
7764 (vec_vminsh): New.
7765 (vec_vminuw): New.
7766 (vec_vminsw): New.
7767 (vec_vminfp): New.
7768 (vec_vmladduhm): New.
7769 (vec_vmhraddshs): New.
7770 (vec_msumubm): New.
7771 (vec_vmsummbm): New.
7772 (vec_vmsumuhm): New.
7773 (vec_vmsumshm): New.
7774 (vec_vmsumuhs): New.
7775 (vec_vmsumshs): New.
7776 (vec_vmuleub): New.
7777 (vec_vmulesb): New.
7778 (vec_vmuleuh): New.
7779 (vec_vmulesh): New.
7780 (vec_vmuloub): New.
7781 (vec_mulosb): New.
7782 (vec_vmulouh): New.
7783 (vec_vmulosh): New.
7784 (vec_vnmsubfp): New.
7785 (vec_vnor): New.
7786 (vec_vor): New.
7787 (vec_vpkuhum): New.
7788 (vec_vpkuwum): New.
7789 (vec_vpkpx): New.
7790 (vec_vpkuhus): New.
7791 (vec_vpkshss): New.
7792 (vec_vpkuwus): New.
7793 (vec_vpkswss): New.
7794 (vec_vpkshus): New.
7795 (vec_vpkswus): New.
7796 (vec_vperm): New.
7797 (vec_vrefp): New.
7798 (vec_vrlb): New.
7799 (vec_vrlh): New.
7800 (vec_vrlw): New.
7801 (vec_vrfin): New.
7802 (vec_vrsqrtefp): New.
7803 (vec_vsel): New.
7804 (vec_vslb): New.
7805 (vec_vslh): New.
7806 (vec_vslw): New.
7807 (vec_vsldoi): New.
7808 (vec_vsl): New.
7809 (vec_vslo): New.
7810 (vec_vspltb): New.
7811 (vec_vsplth): New.
7812 (vec_vspltw): New.
7813 (vec_vspltisb): New.
7814 (vec_vspltish): New.
7815 (vec_vspltisw): New.
7816 (vec_vsrb): New.
7817 (vec_vsrh): New.
7818 (vec_vsrw): New.
7819 (vec_vsrab): New.
7820 (vec_vsrah): New.
7821 (vec_vsraw): New.
7822 (vec_vsr): New.
7823 (vec_vsro): New.
7824 (vec_stvx): New.
7825 (vec_stvebx): New.
7826 (vec_stvehx): New.
7827 (vec_stvewx): New.
7828 (vec_stvxl): New.
7829 (vec_vsububm): New.
7830 (vec_vsubuhm): New.
7831 (vec_vsubuwm): New.
7832 (vec_vsubfp): New.
7833 (vec_vsubcuw): New.
7834 (vec_vsububs): New.
7835 (vec_vsubsbs): New.
7836 (vec_vsubuhs): New.
7837 (vec_vsubshs): New.
7838 (vec_vsubuws): New.
7839 (vec_vsubsws): New.
7840 (vec_vsum4ubs): New.
7841 (vec_vsum4sbs): New.
7842 (vec_vsum4shs): New.
7843 (vec_vsum2sws): New.
7844 (vec_vsumsws): New.
7845 (vec_vrfiz): New.
7846 (vec_vupkhsb): New.
7847 (vec_vupkhpx): New.
7848 (vec_vupkhsh): New.
7849 (vec_vupklsb): New.
7850 (vec_vupklpx): New.
7851 (vec_vupklsh): New.
7852 (vec_vxor): New.
7853
7854 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
7855
7856 PR c/5430
7857 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
7858 added literals from substracted literals.
7859 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
7860 (fold) [associate]: Preserve MINUS_EXPR if needed.
7861
7862 2002-04-23 Zack Weinberg <zack@codesourcery.com>
7863
7864 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
7865 are obsoleted.
7866
7867 2002-04-23 Tom Tromey <tromey@redhat.com>
7868
7869 * gcc.c: Added --resource. For PR java/6314.
7870
7871 2002-04-23 David O'Brien <obrien@FreeBSD.org>
7872
7873 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
7874 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
7875 these libraries.
7876
7877 2002-04-23 David O'Brien <obrien@FreeBSD.org>
7878
7879 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
7880
7881 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
7882
7883 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
7884 workaround.
7885 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
7886 (ix86_expand_clrstr): Fix typo.
7887 * loop.c (gen_load_of_final_value): New.
7888 (loop_givs_rescan, strength_reduce, check_dbra_loop):
7889 Use it.
7890
7891 2002-04-23 Roger Sayle <roger@eyesopen.com>
7892
7893 * builtins.c (builtin_memset_gen_str): New function.
7894 (expand_builtin_memset): Optimize the case of constant length, but
7895 unknown value.
7896
7897 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
7898
7899 * config/rs6000/altivec.h (vec_step): Remove extraneous
7900 parentheses.
7901 (vec_ctu): Cast return.
7902
7903 2002-04-23 Alan Modra <amodra@bigpond.net.au>
7904
7905 PR target/6413
7906 * function.h: (struct function): Add profile_label_no field.
7907 (current_function_profile_label_no): Define.
7908 * function.c: (profile_label_no): New static var.
7909 (expand_function_start): Increment it, and copy to
7910 current_function_profile_label_no.
7911 * output.h (profile_label_no): Delete.
7912 * final.c (profile_label_no): Delete.
7913 (profile_function): Use current_function_profile_label_no.
7914 (final_end_function): Don't increment profile_label_no here.
7915 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
7916 profile_label_no with current_function_profile_label_no.
7917 * config/pa/pa.c (current_function_number): Delete.
7918 (pa_output_function_prologue): Don't output profile label here.
7919 (hppa_profile_hook): Use label_no param rather than
7920 current_function_number.
7921 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
7922 * config/pa/pa.h: .. here.
7923 (FUNCTION_PROFILER): Output profile label here.
7924
7925 2002-04-22 Eric Christopher <echristo@redhat.com>
7926
7927 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
7928 patch of 2002-04-09 due to binutils issues.
7929 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
7930
7931 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
7932
7933 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
7934 constraint to 'o' for m=r and r=m alternatives.
7935 ("*movv8hi_internal1"): Same.
7936 ("*movv16qi_internal1"): Same.
7937 ("*movv4sf_internal1"): Same.
7938
7939 2002-04-22 Janis Johnson <janis187@us.ibm.com>
7940
7941 * rtl.h (RTX_FLAG): New macro.
7942 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
7943 * final.c (alter_subreg): Use macro to access rtx flag.
7944 * integrate.c (copy_rtx_and_substitute): Use new access macro.
7945 * print-rtl.c (print_rtx): Use new access macro.
7946
7947 * cse.c (insert): Check rtx code before accessing flag.
7948
7949 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
7950 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
7951 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
7952 convert_const_symbol_ref, make_canonical, make_alternative_compare,
7953 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
7954 simplify_test_exp, optimize_attrs, simplify_by_exploding,
7955 find_and_mark_used_attributes, unmark_used_attributes,
7956 add_values_to_cover, simplify_with_current_value,
7957 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
7958 copy_rtx_unchanging, main): Use new access macros.
7959
7960 2002-04-22 Tom Rix <trix@redhat.com>
7961
7962 * expmed.c (init_expmed): Generate shifted constant once.
7963
7964 2002-04-22 Zack Weinberg <zack@codesourcery.com>
7965
7966 * c-lex.c (lex_charconst): Call convert to get constant in
7967 proper type; don't just smash the type field.
7968 Fixes PR c/6300.
7969
7970 * config.gcc: Add list of obsolete configurations. Disallow
7971 building these without --enable-obsolete.
7972 * doc/install.texi: Document --enable-obsolete and obsoletion
7973 policy. Mention obsoletion of individual targets in
7974 appropriate places.
7975
7976 2002-04-22 Richard Henderson <rth@redhat.com>
7977
7978 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
7979
7980 2002-04-22 Mark Mitchell <mark@codesourcery.com>
7981
7982 PR f/6138.
7983 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
7984 (walk_fixup_memory_subreg): Likewise.
7985 (fixup_var_refs_insn): Adjust accordingly.
7986 (fixup_var_refs_1): Likewise.
7987
7988 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
7989
7990 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
7991 LIBPATH_ARCH64_SPEC): Define.
7992 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
7993 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
7994 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
7995 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
7996
7997 2002-04-22 Joel Sherrill <joel@OARcorp.com>
7998
7999 * gthr-rtems.h: Correct prototypes to remove warnings.
8000
8001 2002-04-22 Richard Henderson <rth@redhat.com>
8002
8003 PR c/6344
8004 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
8005
8006 * gcse.c (free_insn_expr_list_list): New.
8007 (clear_modify_mem_tables): Use it. Fix bit set usage.
8008 (canon_list_insert): Use EXPR_LISTs for expressions.
8009 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
8010
8011 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
8012
8013 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
8014 file change and include code to _cpp_pop_buffer.
8015 * cpphash.h (struct pending_option): Predeclare.
8016 (struct cpp_reader): New member next_include_file.
8017 (_cpp_pop_file_buffer): Update.
8018 (_cpp_push_next_buffer): Update, rename.
8019 * cppinit.c (cpp_destroy): Free include chain and pending here.
8020 (cpp_finish_options): Simplify.
8021 (_cpp_push_next_buffer): Rename and clean up.
8022 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
8023 Clarify.
8024 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
8025
8026 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
8027
8028 * config/rs6000/altivec.h (vec_xor): Add variant for both args
8029 being vector signed int.
8030 (vec_andc): Same.
8031 (vec_xor): Add variant for both args being vector signed char.
8032 Remove redundant variant.
8033 (vec_andc): Same.
8034
8035 2002-04-21 David S. Miller <davem@redhat.com>
8036
8037 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
8038 compare mode in output RTL.
8039
8040 2002-04-22 David Edelsohn <edelsohn@gnu.org>
8041
8042 * config/rs6000/rs6000.c (rs6000_override_options): Correct
8043 style and formatting of previous patch.
8044
8045 2002-04-22 Alan Modra <amodra@bigpond.net.au>
8046
8047 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
8048 flag_pic for ABI_AIX.
8049
8050 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8051
8052 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
8053 * cppfiles.c (read_include_file): Similarly.
8054 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
8055 uxstrdup ustrchr, ufputs): Similarly.
8056 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
8057 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
8058 cpp_ideq, parse_identifier, parse_number): Similarly.
8059 * cpplib.c (struct directive, dequote_string, D, run_directive,
8060 cpp_push_buffer): Similarly.
8061 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
8062 _cpp_create_definition, check_trad_stringification,
8063 cpp_macro_definition): Similarly.
8064
8065 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8066
8067 * cppmacro.c (funlike_invocation_p): Don't step back
8068 over CPP_EOF.
8069
8070 2002-04-21 David Edelsohn <edelsohn@gnu.org>
8071
8072 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
8073 labelno.
8074
8075 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
8076
8077 * doc/invoke.texi: Remove Chill references.
8078 * doc/gcc.texi: Update last modified date.
8079
8080 2002-04-20 Kazu Hirata <kazu@hxi.com>
8081
8082 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
8083 push and pop. Replace add.l with add.w.
8084
8085 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8086
8087 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
8088 multiply instructions for H8/300H case.
8089
8090 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8091
8092 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
8093 Bum three instructions from each routine.
8094
8095 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
8096
8097 * Makefile.in: Update.
8098 * decl.c (push_c_function_context, pop_c_function_context,
8099 mark_c_function_context): Rename for consistency.
8100 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
8101 * c-tree.h (push_c_function_context, pop_c_function_context,
8102 mark_c_function_context): Rename for consistency.
8103 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8104 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8105 * function.c (init_lang_status, save_lang_status,
8106 restore_lang_status, mark_lang_status, free_lang_status):
8107 Move to langhooks.h.
8108 (push_function_context_to, pop_function_context_from,
8109 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
8110 Update.
8111 * function.h (init_lang_status, save_lang_status,
8112 restore_lang_status, mark_lang_status, free_lang_status):
8113 Move to langhooks.h.
8114 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
8115 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
8116 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
8117 LANG_HOOKS_FUNCTION_INITIALIZER): New.
8118 (LANG_HOOKS_INITIALIZER): Update.
8119 (lhd_do_nothing_f): New.
8120 * langhooks.h (struct lang_hooks_for_functions): New.
8121 (struct lang_hooks): New hooks.
8122 * langhooks.c (lhd_do_nothing_f): New.
8123 objc:
8124 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8125 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8126
8127 2002-04-19 David S. Miller <davem@redhat.com>
8128
8129 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
8130 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
8131
8132 2002-04-19 Jakub Jelinek <jakub@redhat.com>
8133
8134 PR optimization/3756
8135 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
8136 x = ((int) y < 0) ? cst1 : cst2.
8137
8138 2002-04-19 Jakub Jelinek <jakub@redhat.com>
8139
8140 PR c/6358
8141 * function.c: Reapply patch for c/6358.
8142 (expand_function_end): Copy decl_rtl's mode, not
8143 current_function_return_rtx mode.
8144
8145 2002-04-19 Joel Sherrill <joel@OARcorp.com>
8146
8147 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
8148 targets.
8149
8150 2002-04-19 Tom Tromey <tromey@redhat.com>
8151
8152 * doc/install.texi (Specific): Update status of Solaris 2.8.
8153 For PR libgcj/6158.
8154
8155 2002-04-19 Andreas Schwab <schwab@suse.de>
8156
8157 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
8158 (PUT_REAL): Restore old definition.
8159
8160 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
8161 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8162
8163 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
8164 binutils 2.11.2 and higher generate smaller binaries than Sun's
8165 native tools.
8166
8167 2002-04-19 Mark Mitchell <mark@codesourcery.com>
8168
8169 PR c++/6352
8170 * toplev.c (rest_of_compilation): Do not defer functions for which
8171 TREE_SYMBOL_REFERENCED has already been set.
8172
8173 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
8174
8175 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
8176 alternative.
8177
8178 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
8179
8180 * builtins.c: Include langhooks.h.
8181 (lang_type_promotes_to): Remove.
8182 (expand_builtin_va_arg): Use new hook.
8183 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
8184 (simple_type_promotes_to): Move to c-typeck.c.
8185 * c-common.h (simple_type_promotes_to): Remove.
8186 * c-decl.c (duplicate_decls, grokdeclarator): Update.
8187 * c-format.c: Include langhooks.h.
8188 (check_format_types): Update.
8189 * c-tree.h (c_type_promotes_to): New.
8190 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
8191 (type_lists_compatible_p): Update.
8192 * langhooks-def.h (lhd_type_promotes_to): New.
8193 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
8194 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8195 * langhooks.c (lhd_type_promotes_to): New.
8196 * langhooks.h (struct lang_hooks_for_types): New hook.
8197 * tree.h (lang_type_promotes_to): Remove.
8198 objc:
8199 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
8200
8201 2002-04-18 Richard Henderson <rth@redhat.com>
8202
8203 * function.c: Revert patch for c/6358.
8204
8205 2002-04-18 Richard Henderson <rth@redhat.com>
8206
8207 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
8208 blocks. Handle multiple references to the TRAP block. Handle
8209 non-adjacent THEN and OTHER blocks.
8210
8211 2002-04-18 Richard Henderson <rth@redhat.com>
8212
8213 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
8214 crash with no type for by-mode libcalls.
8215
8216 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
8217
8218 2002-04-18 Bob Wilson <bob.wilson@acm.org>
8219
8220 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
8221 __xtensa_nonlocal_goto): Use a syscall instructions to flush
8222 the register windows.
8223
8224 2002-04-18 Zack Weinberg <zack@codesourcery.com>
8225
8226 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
8227 appropriate. Document need for extended precision even when
8228 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
8229 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
8230 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
8231 instead of relying on later syntax error when REAL_WIDTH > 5.
8232 * real.c: Define NE based only on whether or not we have a
8233 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
8234 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
8235 define GET_REAL and PUT_REAL as simple memcpy operations; no
8236 need to byteswap or round.
8237 Use #error instead of #ifdef-ing out the entire file, for
8238 prompt error detection.
8239
8240 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
8241
8242 2002-04-18 David S. Miller <davem@redhat.com>
8243
8244 * config/sparc/sparc.h (BRANCH_COST): Define.
8245
8246 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
8247 does it.
8248
8249 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
8250
8251 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
8252 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
8253 propagate_block calls after relaxation loop using new variable
8254 stabilized_prop_flags.
8255
8256 2002-04-18 Richard Henderson <rth@redhat.com>
8257
8258 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
8259 (ia64_va_arg): Expect variable sized types by reference.
8260 * config/ia64/ia64-protos.h: Update.
8261 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
8262 ia64_function_arg_pass_by_reference.
8263
8264 2002-04-18 Richard Henderson <rth@redhat.com>
8265
8266 * ifcvt.c: Include except.h.
8267 (block_has_only_trap): Break out from find_cond_trap.
8268 (find_cond_trap): Use it. Always delete the trap block.
8269 (merge_if_block): Allow then block null. Be less simplistic about
8270 what insns can end a block.
8271 * Makefile.in (ifcvt.o): Depend on except.h.
8272
8273 * config/ia64/ia64.md (trap, conditional_trap): New.
8274
8275 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8276
8277 PR c/6358
8278 * function.c (assign_parms): Assign hard current_function_return_rtx
8279 register here...
8280 (expand_function_end): ...not here.
8281
8282 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
8283
8284 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8285 * c-tree.h (c_incomplete_type_error): New.
8286 * c-typeck.c (require_complete_type, build_component_ref): Update.
8287 (incomplete_type_error): Rename.
8288 * langhooks-def.h (lhd_incomplete_type_error): New.
8289 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
8290 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8291 * langhooks.c (lhd_incomplete_type_error): New.
8292 * langhooks.h (struct lang_hooks_for_types): New hook.
8293 * tree.c (size_in_bytes): Use new hook.
8294 * tree.h (incomplete_type_error): Remove.
8295 objc:
8296 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8297
8298 2002-04-18 Zack Weinberg <zack@codesourcery.com>
8299
8300 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
8301 TARGET_FLOAT_FORMAT blocks.
8302
8303 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8304
8305 * doc/install.texi (Downloading the source): Do not mention Chill
8306 any longer, but mention Ada.
8307 (Configuration): Do not mention Chill any longer.
8308
8309 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
8310
8311 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
8312
8313 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
8314
8315 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
8316 in last patch.
8317
8318 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8319
8320 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
8321 instead of unsigned_type.
8322
8323 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
8324
8325 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
8326 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
8327 later.
8328
8329 2002-04-18 Bernd Schmidt <bernds@redhat.com>
8330
8331 * attribs.c (vector_type_node_list): New static variable.
8332 (handle_vector_size_attribute): Use it to avoid generating a
8333 new type node each time we are called.
8334
8335 * combine.c (subst): Avoid trying to make a vector mode subreg of
8336 an integer constant.
8337 (gen_lowpart_for_combine): Likewise.
8338
8339 2002-04-18 Roger Sayle <roger@eyesopen.com>
8340 Jakub Jelinek <jakub@redhat.com>
8341
8342 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
8343 for integer constant c (if x has unsigned type or sign bit is not
8344 set in c). This folds the zero/sign extension into the bit-wise and
8345 operation.
8346
8347 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8348
8349 PR middle-end/6205
8350 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
8351 otherwise xorps.
8352
8353 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
8354
8355 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
8356
8357 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
8358
8359 * gcc.c (read_specs): Detect and fail if an attempt is made to
8360 rename a spec string to an already existing string.
8361
8362 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8363
8364 * config/s390/s390.c (legitimize_pic_address): Do not generate
8365 illegal address constant without CONST.
8366
8367 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8368
8369 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
8370 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8371
8372 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8373
8374 PR optimization/6305
8375 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
8376 to make sure previous reloads are taken into account. Generate
8377 better code if one operand is an in-range immediate constant.
8378
8379 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
8380
8381 * doc/install.texi (Building): libgcj requires GNU make.
8382
8383 2002-04-17 Jakub Jelinek <jakub@redhat.com>
8384
8385 PR bootstrap/6315
8386 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
8387 even if hard quad and register is not floating.
8388 (movtf reg<-mem split): Disallow splitting if hard quad and
8389 register is floating.
8390 (movtf mem<-reg split): Likewise.
8391 * config/sparc/sparc.c (fp_register_operand): New predicate.
8392 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
8393
8394 2002-04-17 Zack Weinberg <zack@codesourcery.com>
8395
8396 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
8397 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
8398 (unprotoize.o): Ditto. Build from protoize.c. Define
8399 UNPROTOIZE on command line.
8400 * protoize.c: Include cppdefault.h. Delete include_defaults.
8401 (in_system_include_dir): Use cpp_include_defaults (defined in
8402 cppdefault.o).
8403 * unprotoize.c: Delete file.
8404
8405 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
8406
8407 * config/rs6000/altivec.h (vec_ld): Add array variants.
8408 (vec_lde): Same.
8409 (vec_ldl): Same.
8410
8411 2002-04-17 Alan Matsuoka <alanm@redhat.com>
8412 Aldy Hernandez <aldyh@redhat.com>
8413
8414 * config/rs6000/altivec.h: Define __ALTIVEC__.
8415 (bool): New.
8416 (__pixel): New.
8417 (pixel): New.
8418 (vec_cfux): New.
8419 (vec_vmaddfp): New.
8420 (vec_vsldoi): New.
8421 Add parentheses to all macro arguments.
8422
8423 2002-04-16 Richard Henderson <rth@redhat.com>
8424
8425 PR c++/6320
8426 * except.c (remove_eh_handler): Insert inner regions at beginning
8427 of sibling chain. Refactor expressions.
8428
8429 2002-04-16 Richard Henderson <rth@redhat.com>
8430
8431 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
8432 * config/sparc/sol2-gas-bi.h: New file.
8433 * config.gcc (sparc*-solaris): Add it as needed.
8434 * configure.in (AS_SPARC64_FLAG): Remove check.
8435 * config.in, configure: Regenerate.
8436
8437 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
8438
8439 2002-04-16 Richard Henderson <rth@redhat.com>
8440
8441 * config/mips/mips.c (override_options): Don't override N32 for
8442 a 64-bit ISA.
8443
8444 PR 6202
8445 * config/mips/mips.md (can_delay): Split out of existing define_delays.
8446 (HILO_delay): Set can_delay false.
8447
8448 2002-04-16 Dale Johannesen <dalej@apple.com>
8449
8450 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
8451 instruction addresses.
8452 (rs6000_output_function_epilogue): Likewise.
8453
8454 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
8455
8456 * c-parse.in (poplevel, compstmt_start,
8457 compstmt_primary_start): Add ending ';', in accordance
8458 with POSIX.
8459
8460 2002-04-16 Richard Henderson <rth@redhat.com>
8461
8462 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
8463 Adjust tm_file order to get TARGET_DEFAULT set properly.
8464 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
8465 * doc/install.texi (sparc-solaris): Update.
8466
8467 2002-04-16 Dale Johannesen <dalej@apple.com>
8468
8469 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
8470 comparison operands do not match each other or if modes of
8471 conditions do not match result.
8472
8473 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
8474
8475 PR target/6305
8476 * config/s390/s390.md (mulsidi3): Set both subregs of the
8477 multiword register.
8478
8479 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
8480
8481 * config/rs6000/altivec.h (vec_addc): Type check.
8482
8483 2002-04-16 Jakub Jelinek <jakub@redhat.com>
8484
8485 PR middle-end/6279
8486 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
8487
8488 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
8489
8490 2002-04-15 Richard Henderson <rth@redhat.com>
8491
8492 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
8493 call_really_used_regs too.
8494
8495 2002-04-15 Richard Henderson <rth@redhat.com>
8496
8497 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
8498
8499 2002-04-15 David S. Miller <davem@redhat.com>
8500
8501 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
8502 as being CLOBBERed.
8503
8504 2002-04-16 Jakub Jelinek <jakub@redhat.com>
8505
8506 PR c/6290
8507 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
8508 CONST_VECTOR is { 0, ... 0 }.
8509
8510 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
8511
8512 * doc/install.texi (Installing GCC: Configuration): Clarify
8513 the only supported ways to configure gcc.
8514
8515 2002-04-15 Roland McGrath <roland@frob.com>
8516
8517 * config.gcc (alpha*-*-gnu*): New target configuration.
8518 * config/alpha/gnu.h: New file for it.
8519 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
8520
8521 2002-04-16 Mark Mitchell <mark@codesourcery.com>
8522
8523 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
8524 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
8525 * tree.h (expand_start_stmt_expr): Update prototype.
8526 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
8527 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
8528 on the STMT_EXPR created for the inline function.
8529
8530 2002-04-15 Richard Henderson <rth@redhat.com>
8531
8532 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
8533 config/i386/linux-aout.h, config/i386/linux-oldld.h,
8534 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
8535 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
8536 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
8537 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
8538 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
8539 Define __gnu_linux__, not gnu_linux.
8540 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
8541
8542 2002-04-15 Mark Mitchell <mark@codesourcery.com>
8543
8544 Remove Chill front end.
8545 * gcc.c (default_compilers): Remove Chill entries.
8546 * ch: Remove directory.
8547 * doc/frontends.texi: Remove information about Chill.
8548 * doc/sourcebuild.texi: Likewise.
8549 * doc/standards.texi: Likewise.
8550
8551 2002-04-15 Douglas B Rupp <rupp@gnat.com>
8552
8553 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
8554 (LONGLONG_STANDALONE): Define.
8555
8556 2002-04-15 David S. Miller <davem@redhat.com>
8557
8558 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
8559 Call emit_library_call with LCT_NORMAL.
8560 (sparc_initialize_trampoline): Use LCT_foo instead of
8561 magic constant in emit_library_call invocations.
8562 (sparc64_initialize_trampoline): Likewise.
8563 (sparc_profile_hook): Likewise.
8564 * config/sparc/sparc.md: Likewise.
8565
8566 * config/sparc/sparc.c (sparc_extra_constraint_check):
8567 Fix type of argument 'c'.
8568 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
8569 Likewise.
8570
8571 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
8572
8573 * diagnostic.h (output_buffer_state): Redefine.
8574 (output_format_decoder): New macro.
8575 (output_prefixing_rule): Likewise.
8576 (output_line_cutoff): Likewise.
8577 (diagnostic_format_decoder): Adjust.
8578 (diagnostic_prefixing_rule): Likewise.
8579 (diagnostic_line_cutoff): Likewise.
8580 (diagnostic_state): Likewise.
8581 (diagnostic_kind_count): Likewise.
8582 (diagnostic_buffer): Now a macro.
8583
8584 * diagnostic.c (diagnostic_buffer): Remove definition.
8585 (output_is_line_wrapping): Adjust.
8586 (set_real_maximum_length): Likewise.
8587 (output_set_maximum_length): Likewise.
8588 (init_output_buffer): Likewise.
8589 (lhd_print_error_function): Likewise.
8590 (output_do_verbatim): Likewise.
8591
8592 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
8593
8594 * cpperror.c (print_location): Don't print include chain
8595 if line == 0.
8596 (cpp_begin_message): Update to use DL_ macros.
8597 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8598 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8599 cpp_notice, cpp_notice_from_errno): Remove.
8600 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8601 level.
8602 (cpp_errno): New.
8603 * cppexp.c (CPP_ICE): Remove.
8604 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
8605 lex, integer_overflow, _cpp_parse_expr): Update.
8606 * cppfiles.c (read_include_file, find_include_file,
8607 handle_missing_header, _cpp_read_file, remap_filename): Update.
8608 * cpphash.h (enum error_type): Remove.
8609 (_cpp_begin_message): Update.
8610 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
8611 cpp_handle_option, cpp_post_options): Update.
8612 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
8613 skip_whitespace, parse_identifier, parse_slow, parse_string,
8614 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
8615 cpp_interpret_charconst): Update.
8616 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
8617 lex_macro_node, do_undef, glue_header_name, parse_include,
8618 do_include_common, read_flag, do_line, do_linemarker, do_ident,
8619 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
8620 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
8621 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
8622 _cpp_pop_buffer, do_diagnostic): Update.
8623 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
8624 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
8625 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8626 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8627 cpp_notice, cpp_notice_from_errno): Remove.
8628 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8629 level.
8630 (cpp_errno): New.
8631 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
8632 collect_args, enter_macro_context, save_parameter, parse_params,
8633 _cpp_create_definition, check_trad_stringification,
8634 cpp_macro_definition): Update.
8635 * cppmain.c (cpp_preprocess_file): Update.
8636 * fix-header.c (read_scan_file): Update.
8637
8638 2002-04-14 Andreas Schwab <schwab@suse.de>
8639
8640 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
8641
8642 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8643
8644 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
8645
8646 2002-04-13 Mark Mitchell <mark@codesourcery.com>
8647
8648 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
8649 not gnu_hurd.
8650
8651 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
8652
8653 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
8654
8655 2002-04-13 Joel Sherrill <joel@OARcorp.com>
8656
8657 * config/sparc/t-elf: Enable v8 multilibs. Impacts
8658 sparc-elf and sparc-rtems targets.
8659
8660 2002-04-13 Mark Mitchell <mark@codesourcery.com>
8661
8662 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
8663 defined, and __gnu_hurd__ wherever __GNU__ is defined.
8664 * arm/linux-elf.h: Likewise.
8665 * cris/aout.h: Likewise.
8666 * cris/linux.h: Likewise.
8667 * i370/linux.h: Likewise.
8668 * i386/gnu.h: Likewise.
8669 * i386/linux-aout.h: Likewise.
8670 * i386/linux-oldld.h: Likewise.
8671 * i386/linux.h: Likewise.
8672 * i386/linux64.h: Likewise.
8673 * ia64/linux.h: Likewise.
8674 * m68k/linux-aout.h: Likewise.
8675 * m68k/linux.h: Likewise.
8676 * mips/linux.h: Likewise.
8677 * pa/pa-linux.h: Likewise.
8678 * pj/linux.h: Likewise.
8679 * rs6000/sysv4.h: Likewise.
8680 * s390/linux.h: Likewise.
8681 * sh/linux.h: Likewise.
8682 * sparc/linux-aout.h: Likewise.
8683 * sparc/linux.h: Likewise.
8684 * sparc/linux64.h: Likewise.
8685 * xtensa/linux.h: Likewise.
8686
8687 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
8688
8689 * stmt.c (check_unique_operand_names): Expect operand names to
8690 be strings rather than identifiers. Use simple_cst_equal to
8691 compare them.
8692 (resolve_operand_name_1): Make same identifier to string change here.
8693 * c-parse.in (asm_operand): Convert a named operand into a string.
8694 * cp/parse.y (asm_operand): Likewise.
8695
8696 2002-04-13 Andreas Schwab <schwab@suse.de>
8697
8698 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
8699
8700 2002-04-12 Mark Mitchell <mark@codesourcery.com>
8701
8702 Revert these changes:
8703
8704 2002-04-06 Mark Mitchell <mark@codesourcery.com>
8705
8706 PR c++/5571
8707 * stor-layout.c (layout_decl): Reset the RTL for the decl.
8708
8709 2002-04-12 Richard Henderson <rth@redhat.com>
8710
8711 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
8712 (sparc*-*-solaris): Clean up header files.
8713 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
8714 and plan on generating 64-bit code.
8715 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
8716 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
8717 * config/sparc/sol2-sld-64.h: Rename ...
8718 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
8719 for AS_SPARC64_FLAG not defined.
8720 * config/sparc/sol2-gld-bi.h: New.
8721 * config/sparc/sol2-sld.h: Remove.
8722 * config/sparc/sol26-sld.h: New.
8723 * config/sparc/sol2.h: Tidy comments.
8724 * doc/install.texi: Document sparc-solaris configury changes.
8725
8726 2002-04-12 Richard Henderson <rth@redhat.com>
8727
8728 * recog.c (offsettable_address_p): Match the logic in adjust_address.
8729
8730 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
8731 in 64-bit mode only. Use only for 32-bit or MEDLOW.
8732
8733 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8734
8735 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
8736
8737 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
8738
8739 * pa.c (pa_can_combine_p): Call extract_insn before calling
8740 constrain_operands.
8741
8742 2002-04-12 Douglas B Rupp <rupp@gnat.com>
8743
8744 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
8745 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
8746 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8747 (CPP_PREDEFINES): Handle __declspec.
8748 * config/i386/t-interix (USER_H): Remove.
8749
8750 2002-04-12 DJ Delorie <dj@redhat.com>
8751
8752 * integrate.c (compare_blocks): Make comparisons safe for when
8753 sizeof(int) < sizeof(char *).
8754 (find_block): Likewise.
8755
8756 2002-04-12 Jan Hubicka <jh@suse.cz>
8757 David Edelsohn <edelsohn@gnu.org>
8758
8759 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
8760 registers.
8761 (symbol_ref_operand): New.
8762 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
8763 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
8764
8765 2002-04-12 Andreas Schwab <schwab@suse.de>
8766
8767 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
8768 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
8769 overrides the definition in config/svr4.h.
8770
8771 2002-04-12 Eric Norum <eric.norum@usask.ca>
8772
8773 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
8774 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
8775 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
8776 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
8777 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
8778 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
8779 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
8780 definitions to config/rtems.h and make the targets more similar.
8781
8782 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8783
8784 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
8785 POINTERS_EXTEND_UNSIGNED.
8786 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
8787 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
8788
8789 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
8790 not specified.
8791
8792 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
8793
8794 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
8795 depends on TARGET_SHMEDIA, not TARGET_SH5.
8796
8797 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
8798
8799 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
8800 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
8801
8802 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
8803
8804 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
8805 no r0 clobber.
8806
8807 2002-04-12 Andreas Schwab <schwab@suse.de>
8808
8809 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
8810
8811 2002-04-12 Richard Henderson <rth@redhat.com>
8812
8813 PR bootstrap/4191
8814 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
8815
8816 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
8817 modes spanning multiple hard regs.
8818
8819 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
8820
8821 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8822
8823 * pa.c (pa_output_function_prologue): Don't accumulate the total
8824 number of code bytes when using TARGET_64BIT, or gas, SOM and not
8825 the portable runtime.
8826 (output_deferred_plabels): Handle 64bit plabels.
8827 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
8828 generating pic code using the GAS assembler for object formats that
8829 are not SOM (ie., ELF32 and ELF64).
8830 (output_millicode_call): Check attribute type if attribute length is 28.
8831 Likewise use $PIC_pcrel$0. Only call get_attr_length and
8832 dbr_sequence_length once.
8833 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
8834 dbr_sequence_length once.
8835 * pa.h (TARGET_SOM): Define if not defined.
8836 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
8837 with GAS and not SOM.
8838 (jump, call_internal_reg, call_value_internal_reg): Likewise.
8839 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
8840
8841 2002-04-11 David O'Brien <obrien@FreeBSD.org>
8842
8843 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
8844 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
8845 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
8846 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
8847 elfos.h and dbxelf.h values are fine now.
8848 * config/i386/freebsd.h, config/alpha/freebsd.h
8849 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
8850
8851 2002-04-11 David O'Brien <obrien@FreeBSD.org>
8852
8853 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
8854 or set Acpu or Amachine. Reformat.
8855 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8856 define.
8857 (LINK_SPEC): Do not need to undef.
8858 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
8859 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
8860 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8861 define.
8862 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
8863 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
8864 (LINK_SPEC): Do not need to undef.
8865 (DONT_USE_BUILTIN_SETJMP): Do not define.
8866 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
8867 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
8868 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
8869 Remove trailing spaces.
8870 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
8871 __ELF__, or set Acpu or Amachine. Reformat.
8872 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8873 define.
8874
8875 2002-04-11 David O'Brien <obrien@FreeBSD.org>
8876
8877 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
8878 all other *-*-freebsd* targets.
8879
8880 2002-04-11 Richard Henderson <rth@redhat.com>
8881
8882 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
8883
8884 2002-04-11 David O'Brien <obrien@FreeBSD.org>
8885
8886 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
8887 Include {cpu}/{cpu}.h thru tm_file.
8888 (alpha*-*-linux*ecoff): Remove target.
8889 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
8890 (LINK_SPEC): Remove, is not OS independent.
8891 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
8892 (LINK_SPEC): Do not need to #undef any longer.
8893 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
8894 any longer.
8895 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
8896 __ELF__.
8897 (LINK_SPEC): Moved here from alpha/elf.h.
8898 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
8899 SUB_CPP_PREDEFINES.
8900 * config/alpha/linux-ecoff.h: Remove.
8901 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
8902 (CPP_SPEC): Define _POSIX_SOURCE as needed.
8903 (CPP_SUBTARGET_SPEC): Do not define.
8904 (LINK_SPEC): Do not need to #undef any longer.
8905 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
8906 * config/alpha/vms.h: Likewise.
8907
8908 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
8909
8910 * doc/extend.texi: Remove old claim that typedefs cannot have
8911 an alignment attribute.
8912
8913 2002-04-11 Jakub Jelinek <jakub@redhat.com>
8914
8915 PR optimization/6177
8916 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
8917 bitpos is 0 and bitsize CONCAT size.
8918
8919 2002-04-11 Jakub Jelinek <jakub@redhat.com>
8920
8921 PR c/6223
8922 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
8923
8924 2002-04-10 David O'Brien <obrien@FreeBSD.org>
8925
8926 * config/alpha/freebsd.h: Minor reformatting.
8927 (CPP_SPEC): Define ELF and add cpp_subtarget.
8928 (ASM_SPEC): No longer needed.
8929
8930 2002-04-11 Richard Henderson <rth@redhat.com>
8931
8932 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
8933 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
8934 (dimode mem/zero splitter): New.
8935
8936 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
8937
8938 * config/cris/cris.c (cris_override_options): Tweak error message
8939 for PIC not implemented.
8940
8941 * config/cris/cris.h: Tweak comments related to parameter-passing.
8942
8943 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
8944
8945 2002-04-10 Richard Henderson <rth@redhat.com>
8946
8947 * except.c (add_ehl_entry): Allow duplicates after landing pad
8948 creation.
8949
8950 2002-04-10 David Edelsohn <edelsohn@gnu.org>
8951
8952 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
8953
8954 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
8955
8956 * c-decl.c (c_init_decl_processing): Move generation of
8957 decls for g77_integer_type_node and friends from here ...
8958 * c-common.c (c_common_nodes_and_builtins): ... to here.
8959
8960 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
8961
8962 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
8963 is only used as frame pointer when frame_pointer_needed is true.
8964
8965 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
8966
8967 PR target/817
8968 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
8969 for the fact that the pool entry uses two words.
8970 (movdf_hard_insn): Similarly. Also, ADR instruction can span
8971 1k bytes.
8972 (movdf_soft_insn): Similarly.
8973 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
8974 for the fact that the pool entry uses three words.
8975
8976 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
8977
8978 * config/mips/mips.c (mips_va_arg): When using the struct version
8979 of the EABI va_list, allow arguments in the register save area to
8980 take up less room than a stack argument.
8981
8982 2002-04-10 Richard Henderson <rth@redhat.com>
8983
8984 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
8985 if EXPAND_INITIALIZER.
8986
8987 2002-04-09 Richard Henderson <rth@redhat.com>
8988
8989 * config/alpha/alpha.md (movdi_er_maybe_g): New.
8990 * config/alpha/alpha.c (alpha_expand_mov): Use it.
8991
8992 2002-04-10 Alan Modra <amodra@bigpond.net.au>
8993
8994 PR optimization/6233
8995 * rtlanal.c (pure_call_p): New function.
8996 * rtl.h (pure_call_p): Declare.
8997 * loop.c (prescan_loop): Use it to set has_nonconst_call.
8998 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
8999
9000 2002-04-09 Eric Christopher <echristo@redhat.com>
9001
9002 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
9003 information to .comm directive.
9004
9005 2002-04-09 Richard Henderson <rth@redhat.com>
9006
9007 PR c/5078
9008 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
9009
9010 2002-04-09 Richard Henderson <rth@redhat.com>
9011
9012 * basic-block.h (flow_delete_block_noexpunge): Declare.
9013 (expunge_block_nocompact): Declare.
9014 * cfg.c (expunge_block_nocompact): Split out from ...
9015 (expunge_block): ... here.
9016 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
9017 (flow_delete_block_noexpunge): Split out from ...
9018 (flow_delete_block): ... here.
9019 * cfgcleanup.c (delete_unreachable_blocks): Compact while
9020 removing dead blocks.
9021 * except.c (exception_handler_labels): Remove.
9022 (exception_handler_label_map): New.
9023 (struct eh_region): Add aka member.
9024 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
9025 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
9026 (for_each_eh_label, for_each_eh_label_1): New.
9027 (init_eh): Register exception_handler_label_map.
9028 (free_eh_status): Use free_region.
9029 (find_exception_handler_labels): Use the map, not the list.
9030 (remove_exception_handler_label): Likewise.
9031 (maybe_remove_eh_handler): Likewise.
9032 (remove_eh_handler): Use the region aka bitmap.
9033 * except.h (exception_handler_labels): Remove.
9034 (for_each_eh_label): Declare.
9035 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
9036 * loop.c (invalidate_loops_containing_label): New.
9037 (find_and_verify_loops): Use it. Use for_each_eh_label.
9038 * sched-rgn.c (is_cfg_nonregular): Use
9039 current_function_has_exception_handlers.
9040
9041 2002-04-09 Richard Henderson <rth@redhat.com>
9042
9043 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
9044 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
9045 Do not return changed status.
9046 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
9047 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
9048 New functions that do return changed status.
9049 * sbitmap.h: Update decls.
9050 * gcse.c, lcm.c: Use _cg functions as needed.
9051
9052 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
9053
9054 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
9055 (sh64-*-elf*, sh-*-rtemself*): Likewise.
9056 * config/sh/embed_bb.c: New file.
9057 * config/sh/embed-elf.h: New file.
9058 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
9059 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
9060 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9061 __PTRDIFF_TYPE__ .
9062 (SUBTARGET_CPP_PTR_SPEC): Don't define.
9063 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
9064 Add subtarget_asm_endian_spec.
9065 (ASM_SPEC): Use subtarget_asm_endian_spec.
9066 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
9067 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
9068 (WCHAR_UNSIGNED): Define.
9069 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
9070 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9071 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
9072 Fix value.
9073 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
9074 (sh_adjust_cost): Likewise.
9075 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9076 __PTRDIFF_TYPE__ .
9077 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
9078 (WCHAR_TYPE_SIZE): Likewise.
9079 (ASM_SPEC): Use subtarget_asm_endian_spec.
9080 (SH_ELF_WCHAR_TYPE): #undef/ #define.
9081 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
9082 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
9083 (MAX_WCHAR_TYPE_SIZE): Don't #define .
9084 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
9085 (USER_LABEL_PREFIX): Don't #undef /#define .
9086 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9087 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
9088 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
9089 (ASM_SPEC): Likewise.
9090 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
9091 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
9092 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
9093 (LIB2FUNCS_EXTRA): Define.
9094 * t-sh64 (LIB2FUNCS_EXTRA): Define.
9095 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
9096 (LIB1ASMFUNCS_CACHE): Define.
9097 (LIB2FUNCS_EXTRA): Redefine empty.
9098
9099 2002-04-08 Richard Henderson <rth@redhat.com>
9100
9101 * reorg.c (get_branch_condition): Use reversed_comparison_code.
9102
9103 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9104
9105 * config/m68hc11/larith.asm (__map_data_section): Fix condition
9106 and optimize for size.
9107 (__do_global_ctors): Fix pointer comparison.
9108 (__do_global_dtors): Likewise.
9109
9110 2002-04-09 David S. Miller <davem@redhat.com>
9111
9112 * config/sparc/sparc.c (sparc_extra_constraint_check): New
9113 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
9114 allow reloading pseudos.
9115 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
9116 * config/sparc/sparc-protos.h: Declare it.
9117
9118 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
9119 unsigned comparison warning.
9120 (output_restore_regs): Mark leaf_function as unused.
9121
9122 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9123
9124 * expr.c (is_aligning_offset): New function.
9125 (expand_expr, case COMPONENT_EXPR): Call it.
9126
9127 2002-04-08 David S. Miller <davem@redhat.com>
9128
9129 PR target/6082
9130 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
9131
9132 Make init_priority work on Sparc when using GNU ld.
9133 * config/sparc/linux.h, config/sparc/linux64.h,
9134 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
9135 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
9136 * config/sparc/sol2-gld.h: New file to do the same.
9137 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
9138 sparc/sol2-gld.h to tm_file.
9139
9140 PR optimization/4328
9141 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
9142 * doc/md.texi: Document it.
9143 * config/sparc/sparc.md (movdi_insn_sp64_novis,
9144 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
9145 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
9146 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
9147 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
9148
9149 2002-04-08 Andreas Jaeger <aj@suse.de>
9150
9151 * stmt.c (expand_asm_operands): Revert last patch from Richard
9152 Henderson.
9153
9154 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9155
9156 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
9157 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
9158
9159 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9160
9161 * doc/contrib.texi (Contributors): Add David O'Brien.
9162
9163 2002-04-08 Alan Modra <amodra@bigpond.net.au>
9164
9165 * configure.in (auto-build.h): Use target_alias and build_alias
9166 when running configure.
9167 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
9168 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
9169 * configure: Regenerate.
9170
9171 2002-04-07 David S. Miller <davem@redhat.com>
9172
9173 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
9174
9175 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9176
9177 PR 5933
9178 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
9179 generating 32-bit pic code.
9180
9181 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
9182
9183 * cppinit.c (cpp_create_reader): Initialize
9184 discard_comments_in_macro_exp.
9185 (COMMAND_LINE_OPTIONS): Add "-CC" option.
9186 (cpp_handle_option): Handle "-CC" option.
9187 * cpplex.c (save_comment): If saving a C++ comment in
9188 a directive, convert it to a C comment.
9189 (_cpp_lex_direct): Pass second comment start character to
9190 save_comment to indicate comment type.
9191 * cpplib.c (_cpp_handle_directive): If processing
9192 a "#define" directive and discard_comments_in_macro_exp
9193 is false, re-enable saving of comments.
9194 (lex_macro_node): If discard_comments_in_macro_exp is false,
9195 discard any comments before the macro identifier.
9196 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
9197 member.
9198 * cppmacro.c (cpp_get_token): If expanding a macro while
9199 processing a directive, discard any comments we might encounter.
9200 (parse_params): If discard_comments_in_macro_exp is false,
9201 ignore comments in the macro parameter list.
9202 * gcc.c (cpp_unique_options): Add "-CC" option.
9203 (option_map): Map "--comments-in-macros" to "-CC".
9204 * doc/cppopts.texi: Document "-CC" option.
9205 * f/lang-specs.h: Add "-CC" option.
9206 * testsuite/gcc.dg/cpp/maccom1.c: New test.
9207 * testsuite/gcc.dg/cpp/maccom2.c: New test.
9208 * testsuite/gcc.dg/cpp/maccom3.c: New test.
9209 * testsuite/gcc.dg/cpp/maccom4.c: New test.
9210 * testsuite/gcc.dg/cpp/maccom5.c: New test.
9211 * testsuite/gcc.dg/cpp/maccom6.c: New test.
9212
9213 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
9214
9215 PR middle-end/6180
9216 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
9217
9218 2002-04-06 Mark Mitchell <mark@codesourcery.com>
9219
9220 PR c++/5571
9221 * stor-layout.c (layout_decl): Reset the RTL for the decl.
9222
9223 PR opt/5120
9224 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
9225 RTX_UNCHANGING_P for the functions arguments when a tail call
9226 is made.
9227
9228 2002-04-06 Jason Merrill <jason@redhat.com>
9229
9230 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
9231 (parse_options_and_default_flags): Set them appropriately.
9232 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
9233
9234 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
9235
9236 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
9237 here.
9238
9239 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
9240 semicolon.
9241
9242 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
9243 types come in by-reference. Fix typo in comment.
9244
9245 2002-04-05 David S. Miller <davem@redhat.com>
9246
9247 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
9248 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
9249 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
9250 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
9251
9252 2002-04-05 David S. Miller <davem@redhat.com>
9253
9254 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
9255 are not going to emit return instructions, emit at least a nop
9256 for the sake of sane backtraces.
9257
9258 2002-04-05 Richard Henderson <rth@redhat.com>
9259
9260 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
9261
9262 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
9263
9264 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
9265
9266 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
9267
9268 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
9269 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9270 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
9271
9272 2002-04-05 Andreas Schwab <schwab@suse.de>
9273
9274 * c-convert.c: Include c-common.h.
9275 * Makefile.in (c-convert.o): Updated.
9276
9277 2002-04-05 Jakub Jelinek <jakub@redhat.com>
9278
9279 * mklibgcc.in: Use separate libgcc.map for each multilib.
9280 * Makefile.in (distclean): Don't remove libgcc.map here.
9281
9282 2002-04-05 Jakub Jelinek <jakub@redhat.com>
9283
9284 * Makefile.in (s-mlib): Handle --disable-multilib by separate
9285 genmultilib invocation.
9286
9287 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
9288
9289 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
9290 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
9291 to num_gprs for symmetry.
9292 * config/mips/mips.c: Adjust accordingly.
9293
9294 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
9295
9296 * c-common.c (truthvalue_conversion): Rename, update.
9297 * c-common.h (c_common_truthvalue_conversion): New.
9298 * c-convert.c (convert): Update.
9299 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9300 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
9301 * c-typeck.c (build_binary_op, build_unary_op,
9302 build_conditional_expr): Update.
9303 * fold-const.c (constant_boolean_node, fold): Use langhook.
9304 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
9305 * langhooks.h (struct lang_hooks): New hook.
9306 * stmt.c (expand_decl_cleanup): Use langhook.
9307 * tree.h (truthvalue_conversion): Remove.
9308 objc:
9309 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9310
9311 2002-04-05 Alan Modra <amodra@bigpond.net.au>
9312
9313 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
9314 Add rules to make null object file.
9315
9316 2002-04-04 Jim Blandy <jimb@redhat.com>
9317
9318 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
9319 macro formal parameter names.
9320
9321 2002-04-04 David S. Miller <davem@redhat.com>
9322
9323 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
9324
9325 2002-04-04 Richard Henderson <rth@redhat.com>
9326
9327 PR middle-end/5099
9328 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
9329 Support copies into and out of memory. Don't accept allows_reg
9330 and allows_mem as gospel.
9331
9332 2002-04-04 Richard Henderson <rth@redhat.com>
9333
9334 PR opt/6165
9335 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
9336 (write_dependence_p): Likewise.
9337
9338 2002-04-04 Richard Henderson <rth@redhat.com>
9339
9340 * predict.c (estimate_bb_frequencies): Do frequency calculation
9341 with a volatile temporary.
9342
9343 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
9344
9345 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
9346
9347 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9348
9349 PR c++/6119
9350 * final.c (final_start_function): Don't bump profile_label_no here...
9351 (final_end_function): ...but here.
9352
9353 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9354
9355 * config/sparc/sparc.md (pic): New attribute.
9356 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
9357 into stack slots.
9358 (split after do_builtin_setjmp_setup): New.
9359
9360 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9361
9362 PR fortran/6106
9363 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
9364 change.
9365
9366 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9367
9368 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
9369 UNITS_PER_WORD for zero sized aggregates.
9370
9371 2002-04-03 David S. Miller <davem@redhat.com>
9372
9373 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
9374 one-character spec for this, just use %(link_gcc_c_sequence).
9375
9376 2002-04-03 David S. Miller <davem@redhat.com>
9377
9378 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
9379 handling.
9380
9381 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9382
9383 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
9384 (DWARF_FRAME_RETURN_COLUMN): Move.
9385 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9386 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
9387 * pa.c (except.h, predict.h): Include.
9388 (FRP): Delete.
9389 (store_reg_modify, set_reg_plus_d): Revise prototypes.
9390 (output_ascii): Add cast.
9391 (store_reg_modify): Revise to add frame notes.
9392 (set_reg_plus_d): Likewise.
9393 (compute_frame_size): Include space for eh data registers in frame if
9394 the current function calls eh_return.
9395 (hppa_expand_prologue): Ensure register %r2 is saved if the current
9396 function calls eh_return. Save eh data registers if the current
9397 function calls eh_return. Fix code to add frame notes. Emit
9398 blockage to prevent insns with frame notes being scheduled in the
9399 delay slot of calls.
9400 (hppa_expand_epilogue): Restore eh data registers and do final stack
9401 adjustment if the current function calls eh_return. Don't add frame
9402 notes.
9403 (output_call): Revise for change in length of call insn. Don't do
9404 return pointer adjustment for an unconditional jump in the delay slot
9405 of a call when using frame notes.
9406 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
9407 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
9408 (ARG_POINTER_CFA_OFFSET): Define.
9409 * pa.md (return_external_pic): New pattern.
9410 (prologue): Correct formatting. Use return_external_pic if current
9411 function calls eh_return.
9412 (call_internal_symref, call_value_internal_symref,
9413 sibcall_internal_symref, sibcall_value_internal_symref): Change default
9414 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
9415 respectively.
9416 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
9417
9418 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
9419 list of targets to check using "nop" insn.
9420 * configure: Rebuilt.
9421
9422 2002-04-04 Alan Modra <amodra@bigpond.net.au>
9423
9424 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
9425
9426 2002-04-03 David S. Miller <davem@redhat.com>
9427
9428 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
9429 library sequence passed to the linker.
9430 (LINK_COMMAND_SPEC): Use it.
9431 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
9432 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
9433 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9434
9435 2002-04-03 Jason Merrill <jason@redhat.com>
9436
9437 * except.c (struct eh_status): Remove protect_list.
9438 (begin_protect_partials, end_protect_partials): Remove.
9439 (add_partial_entry): Remove.
9440 * except.h: Remove prototypes.
9441
9442 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
9443 expand_decl_cleanup_eh.
9444
9445 PR c++/5636
9446 * tree.h (CLEANUP_EH_ONLY): New macro.
9447 * stmt.c (expand_decl_cleanup_eh): New fn.
9448 (expand_cleanups): Check CLEANUP_EH_ONLY.
9449 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
9450 Use expand_decl_cleanup_eh.
9451 (expand_stmt): Adjust.
9452 * c-common.h: Adjust prototype.
9453
9454 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
9455
9456 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
9457 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
9458 (cris_target_asm_function_epilogue): Ditto.
9459 (cris_initial_frame_pointer_offset): Ditto.
9460 (cris_simple_epilogue): Ditto.
9461 (cris_expand_builtin_va_arg): Variable-size types come in
9462 by-reference.
9463
9464 2002-04-03 David S. Miller <davem@redhat.com>
9465
9466 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
9467 little-endian.
9468 (set_fast_math): Correct 'fsr' type.
9469
9470 2002-04-03 Richard Henderson <rth@redhat.com>
9471
9472 PR opt/3569
9473 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
9474 * toplev.c (check_global_declarations): Use it.
9475 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
9476 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9477 (LANG_HOOKS_DECLS): Add it.
9478 * langhooks.c (lhd_warn_unused_global_decl): New.
9479 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9480 * c-objc-common.c (c_warn_unused_global_decl): New.
9481 * c-tree.h (c_warn_unused_global_decl): Declare.
9482 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9483
9484 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
9485
9486 * langhooks-def.h (lhd_set_decl_assembler_name,
9487 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
9488 (LANG_HOOKS_INITIALIZER): Update.
9489 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
9490 * langhooks.h (struct lang_hooks): New hook.
9491 * tree.c (set_decl_assembler_name): Move to langhooks.c.
9492 (lang_set_decl_assembler_name): Remove.
9493 (init_obstacks): Don't set hook.
9494 (decl_assembler_name): New function.
9495 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
9496 (decl_assembler_name): New.
9497 (lang_set_decl_assembler_name): Remove.
9498
9499 2002-04-03 Jakub Jelinek <jakub@redhat.com>
9500
9501 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
9502 works properly with .hidden symbols.
9503 * configure: Rebuilt.
9504 * config.in: Rebuilt.
9505 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9506 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
9507 properly with .hidden symbols.
9508
9509 2002-04-03 Jakub Jelinek <jakub@redhat.com>
9510
9511 PR middle-end/6102
9512 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
9513 USE argument.
9514
9515 2002-04-03 Richard Henderson <rth@redhat.com>
9516
9517 PR opt/4120
9518 * sched-rgn.c (sets_likely_spilled): New.
9519 (sets_likely_spilled_1): New.
9520 (add_branch_dependences): Use it.
9521
9522 2002-04-02 Richard Henderson <rth@redhat.com>
9523
9524 PR opt/4311
9525 * loop.h (LOOP_FIRST_PASS): New.
9526 * loop.c (strength_reduce): Mind it when deciding to unroll.
9527 * toplev.c (rest_of_compilation): Set it.
9528
9529 2002-04-02 David S. Miller <davem@redhat.com>
9530
9531 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
9532 mems_ok_for_ldd_peep when the order of the loads being examined
9533 is reversed.
9534 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
9535 existing comment to increase comprehension of this situation.
9536
9537 2002-04-02 Zack Weinberg <zack@codesourcery.com>
9538
9539 * config/sh/sh.md: Don't use union real_extract.
9540
9541 2002-04-02 Richard Henderson <rth@redhat.com>
9542
9543 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
9544
9545 2002-04-02 David O'Brien <obrien@FreeBSD.org>
9546
9547 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
9548 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
9549 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
9550 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
9551 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
9552 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
9553 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
9554 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
9555 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
9556 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
9557 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
9558 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
9559 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
9560 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
9561 Include as many configury headers via tm_file as possible. This
9562 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
9563 * config/openbsd-oldgas.h: New file.
9564 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
9565 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
9566 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
9567 config/i386/i386-coff.h, config/i386/i386-interix.h,
9568 config/i386/iscdbx.h, config/i386/linux-aout.h,
9569 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
9570 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
9571 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
9572 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
9573 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
9574 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
9575 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
9576 config/i386/vxi386.h: Do not directly include configury headers.
9577 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
9578 Directly include configury headers that are no longer automatically
9579 included by the above headers.
9580 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
9581 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
9582 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
9583 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
9584 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
9585 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
9586 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
9587 (TARGET_VERSION): Define.
9588 * config/i386/beos-elf.h, config/i386/freebsd.h,
9589 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
9590 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
9591 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
9592 config/i386/sco5.h, config/i386/sysv4.h
9593 (TARGET_VERSION): Do not need to protect.
9594 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
9595 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
9596 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
9597 config/i386/i386-interix.h, config/i386/linux-aout.h,
9598 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
9599 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
9600 (YES_UNDERSCORES): Do not define - not needed.
9601 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
9602 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9603 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
9604 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
9605 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9606 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
9607 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
9608 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
9609
9610 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
9611 Richard Henderson <rth@redhat.com>
9612
9613 PR c/5484
9614 * function.c (assign_temp): Accept either type or decl argument.
9615 Detect variables whose size is too large to fit into an integer.
9616 * stmt.c (expand_decl): Pass the decl, not the type.
9617
9618 2002-04-02 David O'Brien <obrien@FreeBSD.org>
9619
9620 * protoize.c: Match include directory usage with cppdefault.c.
9621
9622 2002-04-03 Jeffrey A Law (law@redhat.com)
9623 Hans-Peter Nilsson <hp@bitrange.com>
9624
9625 * combine.c (simplify_comparison): Avoid narrowing a comparison
9626 with a paradoxical subreg when doing so would drop signficant bits.
9627
9628 2002-04-02 Steve Ellcey <sje@cup.hp.com>
9629
9630 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
9631 if POINTERS_EXTEND_UNSIGNED is defined.
9632
9633 2002-04-02 Richard Henderson <rth@redhat.com>
9634
9635 PR opt/3967
9636 * local-alloc.c (contains_replace_regs): LO_SUM may contain
9637 replace regs.
9638
9639 2002-04-02 Richard Henderson <rth@redhat.com>
9640
9641 * doc/standards.texi: Document required freestanding libc entry points.
9642
9643 2002-04-02 Alan Modra <amodra@bigpond.net.au>
9644
9645 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
9646 associated splitter. Remove MQ constraint.
9647 (ctrdi_internal4): Correct CCmode clobber.
9648
9649 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
9650
9651 * milli64.S ($$dyncall): New function.
9652 * t-linux (LIB1ASMFUNCS): Revise module list.
9653 (LIB1ASMSRC): Use pa/milli64.S.
9654
9655 2002-04-02 Richard Henderson <rth@redhat.com>
9656
9657 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
9658 rename solaris_sys_varargs_h.
9659
9660 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9661
9662 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
9663 the same mode as its component.
9664
9665 2002-04-02 Richard Henderson <rth@redhat.com>
9666
9667 PR opt/190
9668 * final.c (this_is_asm_operands): Export.
9669 * output.h (this_is_asm_operands): Declare.
9670 * config/i386/i386.c (print_operand): Error odd asm operands.
9671
9672 2002-04-02 Richard Henderson <rth@redhat.com>
9673
9674 PR opt/420
9675 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
9676
9677 2002-04-01 Richard Henderson <rth@redhat.com>
9678
9679 PR target/1538
9680 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
9681 * fixinc/fixincl.x: Rebuild.
9682
9683 2002-04-01 Richard Henderson <rth@redhat.com>
9684
9685 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
9686 (atomic_alloc, atomic_free): New.
9687 (SIZE, MASK_FOR, PTR_IN): New.
9688 (emergency_reg_state, emergency_reg_state_free): New.
9689 (emergency_labeled_state, emergency_labeled_state_free): New.
9690 (reg_state_alloced, labeled_state_alloced): New.
9691 (alloc_reg_state, free_reg_state): New.
9692 (alloc_label_state, free_label_state, free_label_states): New.
9693 (push, pop, dup_state_stack, free_state_stack): Use them.
9694 (desc_label_state): Likewise.
9695 (uw_frame_state_for): Free label states and state stack.
9696 (uw_update_reg_address): Eliminate warnings.
9697
9698 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
9699
9700 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9701 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
9702
9703 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9704
9705 * c-decl.c (grokdeclarator): Update.
9706 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9707 * c-tree.h (c_mark_addressable): New.
9708 * c-typeck.c (default_function_array_conversion, build_unary_op,
9709 build_array_ref, convert_for_assignment): Update.
9710 (mark_addressable): Rename.
9711 * calls.c (try_to_integrate, expand_call): Use langhook.
9712 * expr.c (expand_expr): Use langhook.
9713 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
9714 * langhooks.h (struct lang_hooks): New hook.
9715 * stmt.c (expand_asm_operands): Use langhook.
9716 * tree.h (mark_addressable): Remove.
9717 objc:
9718 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9719
9720 2002-04-01 Bob Wilson <bob.wilson@acm.org>
9721
9722 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
9723 in previous change.
9724
9725 2002-04-01 Bob Wilson <bob.wilson@acm.org>
9726
9727 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
9728 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
9729
9730 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9731
9732 * c-common.c (unsigned_conversion_warning, convert_and_check,
9733 unsigned_type, signed_type, shorten_compare,
9734 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
9735 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
9736 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
9737 New.
9738 * c-decl.c (grokdeclarator): Update.
9739 * c-format.c (check_format_types): Update.
9740 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9741 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9742 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
9743 * convert.c (convert_to_integer): Use new hooks.
9744 * expmed.c (make_tree): Use new hooks.
9745 * expr.c (store_expr): Use new hooks.
9746 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
9747 all_ones_mask_p, unextend, fold): Use new hooks.
9748 * langhooks.h (struct lang_hooks_for_types): New hooks.
9749 * tree.h (signed_or_unsigned_type, signed_type,
9750 unsigned_type): Remove.
9751 objc:
9752 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9753 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9754
9755 2002-03-31 Richard Henderson <rth@redhat.com>
9756
9757 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
9758 (desc_frgr_mem): Fix reference to f16-f31.
9759
9760 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9761
9762 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
9763 RTVEC_ELT): Const-ify.
9764 * varray.h (VARRAY_CHECK): Const-ify.
9765 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
9766 ggc_mark_rtvec, ggc_mark): Const-ify.
9767
9768 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9769
9770 * diagnostic.c: Include langhooks-def.h.
9771 * Makefile.in (diagnostic.o): Update.
9772
9773 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
9774
9775 * c-common.c (c_unsafe_for_reeval): Rename.
9776 * c-common.h (c_unsafe_for_reeval): Rename.
9777 * c-decl.c (finish_incomplete_decl): Rename.
9778 (c_init_decl_processing): Don't set langhook.
9779 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9780 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9781 * c-objc-common.c (c_objc_common_init): Don't set langhook.
9782 * c-tree.h (finish_incomplete_decl): Rename.
9783 * langhooks-def.h (lhd_unsafe_for_reeval): New.
9784 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
9785 (LANG_HOOKS_INITIALIZER): Update.
9786 * langhooks.c (lhd_unsafe_For_reeval): New.
9787 * langhooks.h (struct langhooks): New hooks.
9788 * toplev.c (incomplete_decl_finalize_hook): Remove.
9789 (wrapup_global_declarations): Update.
9790 * tree.c (lang_unsafe_for_reeval): Remove.
9791 (unsafe_for_reeval): Update.
9792 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
9793 Remove.
9794 objc:
9795 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9796 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9797
9798 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
9799
9800 * diagnostic.c (print_error_function): Remove.
9801 (default_print_error_function): Rename.
9802 (report_error_function): Update.
9803 * diagnostic.h (print_error_function): Remove.
9804 (default_print_error_function): Remove.
9805 * langhooks-def.h (struct diagnostic_context): Predeclare.
9806 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
9807 (LANG_HOOKS_INITIALIZER): Update.
9808 * langhooks.h (struct diagnostic context): Predeclare.
9809 (struct lang_hooks): New hook.
9810
9811 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9812
9813 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
9814 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
9815 !flag_pic.
9816 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
9817 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
9818 of PIC_OFFSET_TABLE_REGNUM thruout.
9819 * config/rs6000/rs6000.md: Likewise.
9820 * config/rs6000/darwin.h: Likewise.
9821
9822 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9823
9824 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
9825 unsigned HOST_WIDE_INT, not unsigned int.
9826
9827 2002-03-31 Jakub Jelinek <jakub@redhat.com>
9828
9829 PR middle-end/6096, middle-end/6098, middle-end/6099
9830 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
9831 CODE_LABELs.
9832 (fill_slots_from_thread): Likewise.
9833
9834 2002-03-31 Jakub Jelinek <jakub@redhat.com>
9835
9836 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
9837 floating fields in float regs.
9838 (function_arg_record_value_2): Likewise.
9839
9840 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
9841
9842 * config/mmix/mmix.md (define_constants): Remove misleading
9843 FIXME. Add MMIX_fp_rO_OFFSET.
9844 ("nonlocal_goto_receiver"): Don't have stack-frame address of
9845 saved rO as part of the pattern. Remove FIXME.
9846 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
9847 here, at output-time.
9848
9849 2002-03-31 Jakub Jelinek <jakub@redhat.com>
9850
9851 PR middle-end/6100
9852 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
9853 REG_BR_PRED.
9854 (output_v9branch): Likewise.
9855
9856 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
9857
9858 * gcc.c: Revert previous patch for now.
9859 * config/i386/djgpp.h: Likewise.
9860
9861 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
9862
9863 * config/mmix/crti.asm (_init): Register _fini with atexit.
9864 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
9865
9866 2002-03-31 Richard Henderson <rth@redhat.com>
9867
9868 PR target/3997
9869 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
9870 (ASM_OUTPUT_DEF_FROM_DECLS): New.
9871
9872 2002-03-31 Richard Henderson <rth@redhat.com>
9873
9874 * libgcc2.c (__bb_exit_func): Make static.
9875
9876 * config/alpha/alpha.md (trap): New.
9877
9878 2002-03-31 Richard Henderson <rth@redhat.com>
9879
9880 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
9881 promoted argument types; build trap.
9882 (expand_builtin_trap): New.
9883 (expand_builtin): Use it.
9884 * stmt.c (expand_nl_goto_receivers): Likewise.
9885 * expr.h (expand_builtin_trap): Declare.
9886 * libfuncs.h (LTI_abort, abort_libfunc): New.
9887 * optabs.c (init_optabs): Init abort_libfunc.
9888
9889 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
9890
9891 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
9892 (LINK_COMMAND_SPEC): ... from here.
9893 (init_gcc_specs): Duplicate it here too, omitting
9894 shared_name in the second copy.
9895 (init_spec): Test for duplicate
9896 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
9897
9898 2002-03-30 David S. Miller <davem@redhat.com>
9899
9900 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9901 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
9902
9903 2002-03-30 Roger Sayle <roger@eyesopen.com>
9904 Richard Henderson <rth@redhat.com>
9905
9906 * regmove.c (combine_stack_adjustments_for_block): Avoid
9907 emitting a stack adjustment of zero bytes. Let delete_insn
9908 update bb->head.
9909
9910 2002-03-30 Richard Henderson <rth@redhat.com>
9911
9912 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
9913 (sparc_emitting_epilogue): New.
9914 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
9915 * config/sparc/sparc-protos.h: Update.
9916 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
9917 (TARGET_SWITCHES): Update.
9918 * config/sparc/sparc.md (return): Remove.
9919 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
9920 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
9921 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
9922 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
9923 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
9924 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
9925 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
9926 Remove MASK_EPILOGUE.
9927 * doc/invoke.texi: Update.
9928
9929 2002-03-30 Daniel Berlin <dan@dberlin.org>
9930
9931 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
9932 CPP will start the file for us.
9933
9934 2002-03-30 Richard Henderson <rth@redhat.com>
9935
9936 PR target/5446
9937 * config/ia64/ia64.c (group_barrier_needed_p): Special case
9938 prologue_allocate_stack.
9939 (ia64_single_set): Use insn codes for recognition of special
9940 cases, not rtl matching.
9941 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
9942
9943 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
9944
9945 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
9946
9947 2002-03-30 Richard Henderson <rth@redhat.com>
9948
9949 PR target/6032
9950 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
9951 or -fomit-frame-pointer with profiling.
9952 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9953 (FUNCTION_PROFILER): Do nothing.
9954 (PROFILE_HOOK): New.
9955 * config/sparc/sparc.c (sparc_override_options): Don't check
9956 code models for profiling.
9957 (sparc_function_profiler): Remove.
9958 (sparc_profile_hook): New.
9959 * config/sparc/sparc-protos.h: Update.
9960
9961 2002-03-30 Jakub Jelinek <jakub@redhat.com>
9962
9963 PR optimization/6086
9964 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
9965 of SUBREG of volatile MEM or because the MEM was mode dependent,
9966 return CLOBBER instead of unmodified SUBREG.
9967
9968 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
9969
9970 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
9971 when not optimizing.
9972
9973 * toplev.c (rest_of_compilation): Cann mark_constant_function
9974 only when optimizing.
9975
9976 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
9977 are NULL.
9978
9979 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
9980 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
9981 (try_optimize_cfg): clear all AUX fields.
9982
9983 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
9984 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
9985 (ix86_address_cost): Be prepared for SUBREGed registers.
9986 (legitimate_address_p): Accept SUBREGed registers.
9987
9988 2002-03-29 Richard Henderson <rth@redhat.com>
9989
9990 PR target/5672
9991 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
9992
9993 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9994
9995 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
9996 for aggregate and TFmode types.
9997
9998 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
9999
10000 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
10001
10002 2002-03-29 Richard Henderson <rth@redhat.com>
10003
10004 PR target/5886
10005 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
10006 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
10007
10008 2002-03-29 Richard Henderson <rth@redhat.com>
10009
10010 PR target/6041
10011 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
10012 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
10013 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
10014 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
10015 conditional.
10016 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
10017
10018 2002-03-29 Dale Johannesen <dalej@apple.com>
10019
10020 * loop.c (combine_movables): Do allow combination of pseudos.
10021
10022 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
10023
10024 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
10025 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
10026 No functional change except ...
10027 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
10028 * doc/install.texi (*-*-freebsd*): Document port configuration.
10029
10030 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10031
10032 * Makefile.in (convert.o, calls.o, expmed.o): Update.
10033 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
10034 Use new hooks.
10035 * builtin-types.def (BT_PTRMODE): Update.
10036 * c-common.c (type_for_size): Rename c_common_type_for_size.
10037 (type_for_mode): Similarly.
10038 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
10039 Use new hook.
10040 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
10041 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
10042 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
10043 Redefine.
10044 * c-typeck.c (common_type, comptypes, default_conversion):
10045 Use new hooks.
10046 * calls.c: Include langhooks.h.
10047 (emit_library_call_value_1): Use new hooks. Avoid redundant
10048 calls.
10049 * convert.c: Include langhooks.h
10050 (convert_to_pointer, convert_to_integer): Use new hooks.
10051 * except.c (init_eh): Similarly.
10052 * expmed.c: Include langhooks.h.
10053 (expand_mult_add): Use new hooks.
10054 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
10055 try_casesi): Similarly.
10056 * fold-const.c (optimize_bit_field_compare, make_range,
10057 decode_field_reference, fold_truthop, fold): Similarly.
10058 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
10059 put_var_into_stack): Similarly.
10060 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
10061 LANG_HOOKS_TYPE_FOR_SIZE): New.
10062 (LANG_HOOKS_TYPES_INITIALIZER): Update.
10063 * langhooks.h (lang_hooks_for_types): New hooks.
10064 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
10065 * tree.c (get_unwidened, get_narrower): Similarly.
10066 * tree.h (type_for_mode, type_for_size): Remove.
10067 * varasm.c (force_const_mem): Use new hooks.
10068 * utils2.c (nonbinary_modular_operation): Update.
10069 objc:
10070 * objc-act.c (handle_impent): Update.
10071 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
10072 Redefine.
10073
10074 2002-03-29 Steve Ellcey <sje@cup.hp.com>
10075
10076 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
10077 * config/ia64/ia64.c (basereg_operand): New.
10078 * config/ia64/ia64-protos.h (basereg_operand): Declare.
10079 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
10080
10081 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10082
10083 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
10084 unwind information when frame_pointer_needed.
10085 (mmix_assemble_integer): Tweak wording in comment.
10086
10087 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10088
10089 * Makefile.in (except.o): Update.
10090 * except.c: Include langhooks.h.
10091 (init_eh): Use langhook.
10092 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
10093 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
10094 (LANG_HOOKS_INITIALIZER): Update.
10095 * langhooks.h (lang_hooks_for_types): New.
10096 (struct lang_hooks): Add it.
10097 * tree.c (make_lang_type_fn, make_lang_type): Remove.
10098 * tree.h (make_lang_type_fn, make_lang_type): Remove.
10099 config:
10100 * alpha/alpha.c: Include langhooks.h.
10101 (alpha_build_va_list): Use langhook.
10102 * d30v/d30v.c: Include langhooks.h.
10103 (d30v_build_va_list): Use langhook.
10104 * i386/i386.c: Include langhooks.h.
10105 (ix86_build_va_list): Use langhook.
10106 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
10107 * s390/s390.c: Include langhooks.h.
10108 (s390_build_va_list): Use langhook.
10109 * stormy16/stormy16.c: Include langhooks.h.
10110 (stormy16_build_va_list): Use langhook.
10111
10112 2002-03-29 Jakub Jelinek <jakub@redhat.com>
10113
10114 PR c++/5964
10115 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
10116 attributes.
10117 (length): Compute variable length for branches/calls/jumps here.
10118 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
10119 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
10120 define branch_type attribute.
10121 (divsi3_sp32): Maximum length is 6 not 7.
10122 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
10123 call_address_untyped_struct_value_sp32,
10124 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
10125 * config/sparc/sparc.c (empty_delay_slot): New function.
10126 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
10127 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
10128
10129 2002-03-29 Jakub Jelinek <jakub@redhat.com>
10130
10131 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
10132 nonzero_bits if not needed.
10133 (nonzero_bits) [XOR]: Likewise.
10134 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
10135 reg_last_set_mode and mode are both MODE_INT, but not equal.
10136 (record_value_for_reg): Compute reg_last_set_nonzero_bits
10137 in nonzero_bits_mode for MODE_INT modes.
10138
10139 2002-03-28 Richard Henderson <rth@redhat.com>
10140
10141 PR target/5715
10142 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
10143 to GAS. Correct drift between alternatives.
10144
10145 2002-03-28 Richard Henderson <rth@redhat.com>
10146
10147 PR target/6087
10148 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
10149
10150 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
10151
10152 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
10153 emulation to the linker.
10154
10155 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
10156
10157 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
10158 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10159
10160 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
10161
10162 * combine.c (simplify_and_const_int): Make sure to apply mask
10163 when force_to_mode returns a constant integer. PR3311.
10164
10165 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10166
10167 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
10168
10169 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10170
10171 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
10172 and Objective-C Dialect Options.
10173
10174 2002-03-28 Richard Henderson <rth@redhat.com>
10175
10176 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
10177 comparison should be done vs !=0 not >0 return code. Tidy cases.
10178
10179 2002-03-28 Richard Henderson <rth@redhat.com>
10180
10181 * c-decl.c (finish_function): New arg can_defer_p. Pass it
10182 on to c_expand_body.
10183 * c-tree.h (finish_function): Update decl.
10184 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
10185
10186 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
10187
10188 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
10189
10190 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
10191
10192 * rtlanal.c: Include flags.h
10193 (may_trap_p): Do not mark FP operations if trapping
10194 if !flag_trapping_math
10195 * Makefile.in (rtlanal.o): Add dependency on flag.h
10196 * ifcvt.c (noce_operand_ok): Avoid the lameness.
10197
10198 2002-03-27 Zack Weinberg <zack@codesourcery.com>
10199
10200 * mips.md: Use dconst1, not 1.0, as first argument of
10201 REAL_VALUE_LDEXP. Don't use union real_extract.
10202
10203 2002-03-28 Alan Modra <amodra@bigpond.net.au>
10204
10205 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
10206 rather than $target. Heed program_prefix and
10207 program_transform_name. Search for gas in cross-compiler case too.
10208 "test -x" rather than "test -f".
10209 (gcc_cv_ld): Likewise.
10210 (gcc_cv_nm): Heed program_prefix and program_transform_name.
10211 (gcc_cv_objdump): Likewise.
10212 * configure: Regenerate.
10213
10214 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10215
10216 * Makefile.in (attribs.o): Update.
10217 * attribs.c: Include langhooks.h.
10218 (decl_attributes): Use langhook.
10219 * c-decl.c (insert_default_attributes): Rename.
10220 * c-tree.h (c_insert_default_attributes): New.
10221 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
10222 (LANG_HOOKS_INITIALIZER): Update.
10223 * langhooks.h (struct lang_hooks): New hook.
10224 * tree.h (insert_default_attributes): Remove.
10225 objc:
10226 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
10227
10228 2002-03-27 Andreas Schwab <schwab@suse.de>
10229
10230 * config/i386/i386.c (classify_argument): Also check for
10231 QUAL_UNION_TYPE.
10232
10233 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10234
10235 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
10236 any more.
10237
10238 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
10239
10240 * i960.md (ret): Set PC.
10241 (nonlocal_goto): Fix expander.
10242 * builtins.c (epxand_builin_longjmp): Check that we've emitted
10243 some jump or call.
10244
10245 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
10246
10247 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
10248 of libcall regions.
10249
10250 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10251
10252 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
10253 assigning to BLOCK_FOR_INSN directly.
10254
10255 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
10256
10257 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
10258
10259 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10260
10261 * c-common.c (c_expand_expr): Fix prototype.
10262 * c-common.h (c_expand_expr): Always declare, update.
10263 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10264 * c-objc-common.c (c_objc_common_init): No global hook.
10265 * expr.c (expand_expr): Use langhook.
10266 * expr.h (enum expand_modifier): Conditionally declare.
10267 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
10268 (LANG_HOOKS_INITIALIZER): Update.
10269 * langhooks.c (lhd_expand_expr): New.
10270 * langhooks.h (struct lang_hooks): New hook.
10271 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
10272 (lang_independent_init): Don't default hook.
10273 objc:
10274 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10275
10276 2002-03-27 Richard Henderson <rth@redhat.com>
10277
10278 PR target/6054
10279 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
10280 TARGET_CONST_GP. Simplify conditions.
10281
10282 2002-03-27 Richard Henderson <rth@redhat.com>
10283
10284 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10285 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
10286 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
10287
10288 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
10289
10290 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
10291 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
10292 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
10293 Remove unnecessary masks.
10294 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
10295 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
10296 -mwindows, -mdll switches and their negations.
10297
10298 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10299
10300 * gcc-common.c (lang_mark_false_label_stack): Remove.
10301 * ggc.h (lang_mark_false_label_stack): Similarly.
10302
10303 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
10304
10305 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
10306
10307 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
10308 or __rtems_ is defined.
10309
10310 2002-03-26 Richard Henderson <rth@redhat.com>
10311
10312 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
10313 if a non-trivial load was emitted.
10314 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
10315 in high+extra+low case.
10316
10317 2002-03-26 Richard Henderson <rth@redhat.com>
10318
10319 * config.gcc (sparc*-solaris): Use float_format=sparc.
10320
10321 2002-03-26 Richard Henderson <rth@redhat.com>
10322
10323 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10324 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
10325 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
10326 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
10327 (WINT_TYPE_SIZE): Fix at 32.
10328
10329 2002-03-26 Richard Henderson <rth@redhat.com>
10330
10331 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
10332 until after eh landing pad generation.
10333 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
10334 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
10335
10336 2002-03-26 Richard Henderson <rth@redhat.com>
10337
10338 * expr.h (ADD_PARM_SIZE): One more convert for INC.
10339
10340 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
10341
10342 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
10343 and warning switches.
10344 (cc1_options): Likewise.
10345
10346 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
10347
10348 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
10349 Restore more of the signal context. Set no_reg_stack_frame.
10350 * config/ia64/unwind-ia64.c (unw_state_record):
10351 Add no_reg_stack_frame, comments.
10352 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
10353 (uw_update_context): Adjust bsp when unwinding from leaf,
10354 but not signal frame.
10355
10356 2002-03-26 David Edelsohn <edelsohn@gnu.org>
10357
10358 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
10359
10360 2002-03-26 Bob Wilson <bob.wilson@acm.org>
10361
10362 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
10363
10364 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
10365
10366 PR target/5621
10367 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
10368 "Add a pool_range attribute", which was lost during the ARM/Thumb
10369 merge.
10370
10371 2002-03-26 Bob Wilson <bob.wilson@acm.org>
10372
10373 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
10374 a register into the MAC16 accumulator.
10375
10376 2002-03-26 Andrew Cagney <ac131313@redhat.com>
10377
10378 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
10379 (Warning Options): Document -Wswitch-enum.
10380 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
10381 -Wswitch.
10382 (warn_switch_enum): Define variables.
10383 * flags.h (warn_switch_enum): Declare variables.
10384 * stmt.c (expand_end_case_type): When warn_switch_enum /
10385 -Wswitch-enum, perform switch checks.
10386 Fix PR c/5044.
10387
10388 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
10389
10390 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
10391 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
10392 (reload_muladdsi_compare0_scratch): Delete.
10393
10394 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
10395
10396 * doc/install.texi (*-*-freebsd*): Update.
10397
10398 2002-03-26 Richard Henderson <rth@redhat.com>
10399
10400 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
10401 (SUB_PARM_SIZE): Cast DEC to ssizetype.
10402
10403 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
10404 types from the normal argument frame.
10405
10406 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
10407 variable sized objects by reference.
10408 (sparc_va_arg): Receive them by reference too.
10409
10410 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
10411
10412 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
10413 code to not restoring global registers.
10414
10415 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
10416
10417 * Makefile.in (ggc-common.o): Update.
10418 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
10419 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10420 * c-tree.h (c_mark_tree): New.
10421 * ggc-common.c: Include langhooks.h.
10422 (gcc_mark_trees): Use new langhook.
10423 * ggc-callbacks.c: Delete file.
10424 * ggc.h (lang_mark_tree): Remove.
10425 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
10426 (LANG_HOOKS_INITIALIZER): Update.
10427 * langhooks.h (struct lang_hooks): New hook.
10428 objc:
10429 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10430
10431 2002-03-25 Zack Weinberg <zack@codesourcery.com>
10432
10433 * doc/cpp.texi: Exclude entire Top node from printed manual.
10434 Move option index after directive index. Insert page breaks
10435 before GFDL and concept index. Index environment variables
10436 with command line options.
10437 * doc/cppenv.texi: Use @vtable for environment variable list.
10438 Add paragraph explaining semantics of empty elements in path
10439 variables. Exclude a cross-reference to Fishkill from the
10440 manpage. Remove an unnecessary cross-reference of the entry
10441 right above the referer. Don't use @anchor in text that goes
10442 into manpage.
10443 * doc/cppopts.texi: Cross-reference the environment variables
10444 section, not the specific environment variable, for consistency.
10445
10446 2002-03-25 Richard Henderson <rth@redhat.com>
10447
10448 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
10449 anywhere in the block. Don't refer to insns that have been
10450 removed from the chain. Iterate backward through the new insns.
10451 Don't refer to edges that have been removed.
10452
10453 2002-03-26 Alan Modra <amodra@bigpond.net.au>
10454
10455 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
10456 test for overflow of constant.
10457
10458 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
10459
10460 PR target/2623
10461 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
10462 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
10463 these patterns on arm_archv4.
10464
10465 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
10466
10467 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
10468 int".
10469
10470 2002-03-25 Zack Weinberg <zack@codesourcery.com>
10471
10472 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
10473 float_handled, float_handler, float_signal, set_float_handler,
10474 and do_float_handler. Set handler for SIGFPE to crash_signal.
10475 * toplev.h: Don't prototype do_float_handler.
10476
10477 * c-lex.c: Fold parse_float into lex_number. Make warning
10478 about portability of hex float constants more informative, and
10479 don't issue it on top of a syntax error.
10480 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
10481 their callers.
10482 * real.h: Define REAL_VALUE_ABS here...
10483 * simplify-rtx.c: ... not here. Fold check_fold_consts,
10484 simplify_unary_real, simplify_binary_real, and
10485 simplify_binary_is2orm1 into their callers.
10486 * tree.c: Fold build_real_from_int_cst_1 into caller.
10487
10488 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
10489
10490 * tsystem.h: Include float.h here...
10491 * libgcc2.c: ... not here.
10492
10493 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
10494
10495 Fixes for: PR bootstrap/3591, target/5676
10496 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
10497 defined. Do not disable exceptions or rtti.
10498 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
10499 mcore.h. Disable exceptions and rtti, since they are not
10500 supported by EPOC.
10501
10502 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
10503
10504 * c-decl.c (maybe_build_cleanup): Remove.
10505 * expr.c (expand_expr): Use langhook.
10506 * langhooks-def.h (lhd_return_null_tree,
10507 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
10508 (LANGHOOKS_INITIALIZER): Update.
10509 * langhooks.c (lhd_return_null_tree): New.
10510 * langhooks.h (struct lang_hooks): New hook.
10511 * tree-inline.c (initialize_inlined_parameters): Use langhook.
10512 * tree.h (maybe_build_cleanup): Remove.
10513
10514 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10515
10516 * regrename.c (build_def_use): Move recog_memoized
10517 before extract_insn.
10518
10519 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10520
10521 PR target/6043
10522 * expr.c (emit_group_store): Handle storing into CONCAT.
10523
10524 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10525
10526 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
10527 corresponding MATCH_DUP.
10528
10529 2002-03-24 Richard Henderson <rth@redhat.com>
10530
10531 * unroll.c (unroll_loop): Zero label_map.
10532
10533 * gcse.c: Include except.h.
10534 * Makefile.in (gcse.o): Update.
10535
10536 2002-03-24 Richard Henderson <rth@redhat.com>
10537
10538 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
10539 Do resolve_unique_section before shared data clause.
10540
10541 2002-03-24 Richard Henderson <rth@redhat.com>
10542
10543 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
10544
10545 2002-03-24 Richard Henderson <rth@redhat.com>
10546
10547 * recog.c (peephole2_optimize): Split blocks when EH insns are
10548 generated in the middle of a block. Do global life update if
10549 zapped EH edges.
10550
10551 2002-03-24 Richard Henderson <rth@redhat.com>
10552
10553 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
10554
10555 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10556
10557 preprocessor/3951
10558 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
10559 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
10560 (init_dependency_output): Don't make no_output decision here.
10561
10562 2002-03-24 Andrew Cagney <ac131313@redhat.com>
10563
10564 * stmt.c (check_for_full_enumeration_handling): Remove tests of
10565 warn_switch. Update description.
10566 (expand_end_case_type): Call check_for_full_enumeration_handling
10567 when warn_switch.
10568
10569 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10570
10571 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
10572 (m68hc11_split_move): Call it to see if the source and destination
10573 operands use the same direction auto inc/dec mode, otherwise make the
10574 source an offsetable memory operand and generate an add.
10575
10576 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10577
10578 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
10579 register for operand 2.
10580 ("*subsi3_zero_extendqi"): Likewise.
10581 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
10582 bits so that it is compatible with a pop.
10583 ("*andhi3_gen"): Likewise.
10584 ("xorhi3"): Likewise.
10585
10586 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10587
10588 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
10589 -pedantic here...
10590 (cpp_post_options): ... not here.
10591
10592 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10593 Aldy Hernandez <aldyh@redhat.com>
10594
10595 Removal of separate preprocessor cpp0.
10596
10597 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
10598 cpp0, install-common): Update.
10599 * c-common.c (flag_preprocess_only): New.
10600 (c_common_init): Preprocess for -E.
10601 * c-common.h (flag_preprocess_only): New.
10602 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
10603 * c-objc-common.c (c_init_decl_processing): Exit quickly
10604 for NULL return from c_common_init.
10605 * cpplib.h (cpp_preprocess_file): New.
10606 * cppmain.c (main, general_init, pfile, progname): Remove.
10607 (do_preprocessing): Rename cpp_preprocess_file, don't call
10608 cpp_finish. Don't close stdout here.
10609 (setup_callbacks): Update prototype.
10610 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
10611 Update.
10612 * tradcpp.c (main): Ignore -quiet.
10613 objc:
10614 * lang-specs.h (default_compilers): Preprocess with cc1obj.
10615
10616 2002-03-24 Richard Henderson <rth@redhat.com>
10617
10618 PR optimization/5742
10619 * machmode.def: Add inner mode field to complex modes.
10620 * config/mips/mips.c (mips_function_value): Always define. Add
10621 new argument to handle libcalls.
10622 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
10623 (FUNCTION_VALUE): Likewise.
10624 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
10625 * config/mips/mips-protos.h: Update.
10626
10627 2002-03-23 Richard Henderson <rth@redhat.com>
10628
10629 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
10630 * config/sparc/sparc-protos.h: Update.
10631 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
10632
10633 2002-03-23 Richard Henderson <rth@redhat.com>
10634
10635 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
10636 _start or _init begins the text segment.
10637
10638 2002-03-23 David Edelsohn <edelsohn@gnu.org>
10639
10640 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
10641 not HOST_WIDEST_INT.
10642 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
10643
10644 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
10645
10646 PR java/5489
10647 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
10648 operand argument to output_return_instruction.
10649 * arm.c (arm_print_operand, case 'd'): If the operand is
10650 const_true_rtx then just return.
10651 (arm_print_operand, case 'D'): If the operand is const_true_rtx
10652 then abort.
10653
10654 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10655
10656 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
10657 (Warning Options): Document -Wswitch-default.
10658 * toplev.c (W_options): Add -Wswitch-default. Update comment on
10659 -Wswitch.
10660 (warn_switch_default): Define variable.
10661 (warn_switch): Update comment.
10662 * flags.h (warn_switch_default): Declare variable.
10663 (warn_switch): Update comment.
10664 * stmt.c (expand_end_case): Check for and, when
10665 warn_switch_no_default, warn of a missing default case.
10666
10667 2002-03-23 Alan Modra <amodra@bigpond.net.au>
10668
10669 * real.h (N): Special case 128 bit doubles.
10670
10671 * combine.c (simplify_comparison): When widening modes, ignore
10672 sign extension on CONST_INTs.
10673
10674 2002-03-22 Bob Wilson <bob.wilson@acm.org>
10675
10676 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
10677 passed to adjust_address. Fix comment formatting.
10678
10679
10680 2002-03-22 Zack Weinberg <zack@codesourcery.com>
10681
10682 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
10683 Always make REAL_VALUE_TYPE a struct containing an array of
10684 HOST_WIDE_INT, not a double. Tidy up the code deciding how
10685 big it is. Don't declare or use union real_extract.
10686
10687 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
10688 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
10689 (print_operand), config/arm/arm.c (output_move_double),
10690 config/arm/arm.md (consttable_4, consttable_8),
10691 config/romp/romp.c (output_fpops), config/s390/s390.h
10692 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
10693 (xtensa_output_literal): Don't use union real_extract.
10694
10695 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
10696 (sfmode_constant_to_ulong), config/ns32k/merlin.h
10697 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
10698 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
10699 (PRINT_OPERAND): Don't use local version of union
10700 real_extract.
10701
10702 * config/convex/convex.c (check_float_value), config/vax/vax.c
10703 (vax_float_literal), config/m88k/m88k.md (divdf3),
10704 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
10705 config/pdp11/pdp11.c (output_move_quad): Don't do host
10706 arithmetic on target floating point quantities.
10707
10708 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
10709 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
10710
10711 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
10712 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
10713
10714 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
10715 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
10716 INFINITY.
10717 * print-rtl.c (print_rtx): Disable code which needs
10718 floating-point emulator.
10719 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
10720 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
10721 depending on HOST_FLOAT_FORMAT to be defined properly.
10722
10723 * config/1750a/1750a.c (get_double, float_label): Delete.
10724 (print_operand): Delete huge commented-out chunk. Use
10725 REAL_VALUE_TO_DECIMAL.
10726 * config/1750a/1750a-protos.h: Delete prototypes of deleted
10727 functions.
10728 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
10729 IEEE_FLOAT_FORMAT.
10730 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
10731 Use REAL_VALUE_TO_DECIMAL as ELF version does.
10732 * config/m88k/m88k.c (real_power_of_2_operand,
10733 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
10734 real_extract out of the union; run the input through
10735 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
10736 from that into the union.
10737 * config/pdp11/pdp11.c (output_move_double): Rearrange
10738 parentheses to make automatic indenter happy.
10739
10740 * doc/tm.texi (Cross-compilation): Rename node to "Floating
10741 Point" and rewrite to describe current situation. Also adjust
10742 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
10743 match code.
10744 * doc/rtl.texi: Adjust cross reference.
10745
10746 2002-03-22 Bob Wilson <bob.wilson@acm.org>
10747
10748 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
10749 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
10750 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
10751 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
10752 prevent use of sp as a reload register.
10753 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
10754 non_acc_reg_operand.
10755 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
10756 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
10757 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
10758 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
10759
10760 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
10761
10762 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
10763 * cpplex.c (unterminated): Delete.
10764 (parse_string): No string literal may extend over multiple
10765 lines. Suppress the error when preprocessing assembly.
10766 * cppmain.c (scan_translation_unit): Strings are single-line.
10767
10768 * doc/cpp.texi: Update to match.
10769
10770 2002-03-22 Jakub Jelinek <jakub@redhat.com>
10771
10772 PR optimization/5854
10773 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
10774 Shut up warnings.
10775 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
10776 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
10777 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
10778 const0 if scratch register was not allocated.
10779 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
10780 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
10781 with GEN_INT (...).
10782 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
10783 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
10784 with GEN_INT (...) everywhere. Remove constraints in define_split
10785 patterns.
10786 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
10787 require scratch register for setting 0 into regs/non-pushable memory.
10788
10789 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
10790
10791 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
10792 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
10793
10794 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
10795
10796 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
10797 * cppinit.c (cpp_create_reader): On by default.
10798 (cpp_handle_option): Handle -W[no-]endif-labels.
10799 (cpp_post_options): Also enable if -pedantic.
10800 * cpplib.c (do_else): Use it.
10801 (do_endif): Likewise.
10802 * doc/cppopts.texi: Document new option.
10803 * doc/invoke.texi: Document new option.
10804
10805 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
10806
10807 * config/i386/i386.c, config/i386/i386.md: Change all occurences
10808 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
10809
10810 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
10811
10812 * flow.c (calculate_global_regs_live): Clear aux fields of
10813 ENTRY and EXIT.
10814
10815 2002-03-22 Jakub Jelinek <jakub@redhat.com>
10816
10817 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
10818 REG or MEM subregs, pass rtx * instead of rtx to it.
10819 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
10820 rtx * instead of rtx to alter_subreg.
10821 * config/m32r/m32r.c (gen_split_move_double): Likewise.
10822 * config/pj/pj.c (pj_output_rval): Likewise.
10823
10824 2002-03-22 Richard Henderson <rth@redhat.com>
10825
10826 PR target/3177
10827 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
10828 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
10829 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
10830 (ia64_expand_prologue): Look at int_regs, not words, for number
10831 of incomming int regs.
10832
10833 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
10834
10835 * expr.c (expand_expr): A RESULT_DECL is part of a call.
10836
10837 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
10838
10839 * toplev.c (flag_loop_optimize, flag_crossjumping):
10840 New static variables.
10841 (rest_of_compilation): Conditionalize crossjumping and
10842 loop optimizer.
10843 (parse_options_and_default_flags): Default loop_optimize and
10844 crossjumping.
10845 (lang_independent_options): Add -fcrossjumping and -floop-optimize
10846 * invoke.texi (crossjumping, loop-optimize): Document.
10847
10848 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
10849
10850 * real.c (eiisneg): Move outside #ifdef NANS.
10851
10852 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
10853
10854 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
10855 frequencies match; avoid match on different loop depths.
10856 (try_crossjump_to_bb): Kill tests that no longer brings time
10857 savings.
10858 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
10859 updating code.
10860 (split_edge): Likewise.
10861
10862 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
10863 variable.
10864
10865 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
10866 * cfgrtl.c: Include insn-config.h
10867 (split_block) Dirtify block in presence of conditional execution
10868
10869 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
10870
10871 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
10872 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
10873 (function_arg): Constify CUMULATIVE_ARGS.
10874 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
10875 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
10876 (UNITS_PER_DOUBLE): New macro.
10877 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
10878 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
10879 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
10880 fp_regs and stack_words.
10881 (EABI_FLOAT_VARARGS_P): New macro.
10882 * config/mips/mips.c (struct mips_arg_info): New.
10883 (mips_arg_info): New function.
10884 (function_arg_advance): Use it. Add adjustment instructions here
10885 rather than in function_arg.
10886 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
10887 for VOIDmode at the beginning of the function.
10888 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
10889 (function_arg_pass_by_reference): Likewise.
10890 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
10891 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
10892 (mips_va_start): Likewise. Use the new stack_words field of
10893 CUMULATIVE_ARGS to set up overflow area. Reformat.
10894 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
10895 doubles and other types, aligning the overflow pointer for non-doubles
10896 too. Remove some code duplication. Replace hard-coded constants.
10897
10898 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
10899
10900 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
10901 (CLASS_UNITS): Undefine.
10902 (CLASS_MAX_NREGS): Use FP_INC.
10903 * config/mips/mips.c (compute_frame_size): Likewise.
10904 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
10905
10906 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
10907
10908 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
10909 prototype, and handle lexing numbers and identifiers.
10910 (parse_identifier): Update to new form of parse_slow.
10911 (parse_number): Fast path only, use parse_slow otherwise.
10912 (_cpp_lex_direct): Update calls to parse_number.
10913
10914 2002-03-21 DJ Delorie <dj@redhat.com>
10915
10916 * bb-reorder.c (make_reorder_chain_1): Protect against
10917 when redundant edges are omitted.
10918 * predict.c (dump_prediction): Likewise.
10919
10920 2002-03-21 Richard Henderson <rth@redhat.com>
10921
10922 PR target/5996
10923 * fixinc/inclhack.def (solaris_stdio_tag): New.
10924 * fixinc/fixincl.x: Regenerate.
10925
10926 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
10927
10928 PR c/5597
10929 * c-typeck.c (process_init_element): Flag non-static
10930 initialization of a flexible array member as illegal.
10931
10932 2002-03-22 Alan Modra <amodra@bigpond.net.au>
10933
10934 * config/rs6000/t-linux64: New.
10935 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
10936 t-ppccomm. Use t-rs6000 and t-linux64.
10937 (powerpc64-*-gnu* <tmake_file>): Likewise.
10938 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
10939 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
10940 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
10941
10942 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
10943
10944 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
10945 flag_really_no_inline instead of optimize == 0.
10946
10947 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
10948
10949 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
10950
10951 * flags.h (flag_really_no_inline): New.
10952
10953 * c-common.c (c_common_post_options): Initialize
10954 flag_really_no_inline.
10955
10956 * toplev.c (flag_really_no_inline): New.
10957
10958 2002-03-21 Jakub Jelinek <jakub@redhat.com>
10959
10960 * config/avr/avr.md (length): Fix length computation for
10961 conditional branches.
10962
10963 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
10964
10965 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
10966 sdbout.o, profile.o): Update.
10967 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
10968 langhook.
10969 * c-common.h (gettags): Move here from tree.h.
10970 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
10971 insert_block, getdecls, kept_level_p, global_bindings_p): New.
10972 * dbxout.c (dbxout_init): Use getdecls langhook.
10973 * expr.c (expand_expr): Use insert_block langhook.
10974 * fold-const.c: Include langhooks.h.
10975 (fold_range_test, fold_binary_op_with_conditional_arg,
10976 fold): Use global_bindings_p langhook.
10977 * integrate.c (expand_inline_function): Use insert_block langhook.
10978 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
10979 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
10980 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
10981 LANG_HOOKS_GETDECLS): New.
10982 (LANG_HOOKS_INITIALIZER): Update.
10983 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
10984 langhook.
10985 * langhooks.h (struct lang_hooks_for_decls): New.
10986 (struct lang_hooks): Update.
10987 * profile.c: Include langhooks.h.
10988 (output_func_start_profiler): Use new langhooks.
10989 * sdbout.c: Include langhooks.h.
10990 (sdbout_init, sdbout_finish): Use getdecls langhook.
10991 * stmt.c: Include langhooks.h.
10992 (expand_fixup, fixup_gotos): Use new langhooks.
10993 * stor-layout.c: Include langhooks.h.
10994 (variable_size): Use global_bindings_p langhook.
10995 * toplev.c (compile_file): Use getdecls langhook.
10996 * tree-inline.c (remap_block): Use insert_block langhook.
10997 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
10998 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
10999
11000 2002-03-21 Richard Henderson <rth@redhat.com>
11001
11002 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
11003 constants in .data when -fpic.
11004
11005 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11006
11007 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
11008 where appropriate.
11009
11010 2002-03-21 Tom Tromey <tromey@redhat.com>
11011
11012 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
11013
11014 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11015
11016 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
11017
11018 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
11019
11020 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
11021 Richard Henderson <rth@redhat.com>
11022
11023 PR c/5354
11024 * c-common.c (c_expand_expr): Preserve result of a statement
11025 expression if needed.
11026
11027 2002-03-21 Jakub Jelinek <jakub@redhat.com>
11028
11029 PR bootstrap/4195
11030 * genrecog.c (maybe_both_true_mode): Remove.
11031 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
11032 * machmode.def (Pmode): Likewise.
11033
11034 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
11035
11036 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
11037 (nonlocal_mentioned_p_1): New function.
11038 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
11039 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
11040 (mark_constant_function): Recognize pure functions.
11041 * rtl.h (global_reg_mentioned_p): New prototype.
11042 * rtlanal.c (global_reg_mentioned_p,
11043 global_reg_mentioned_p_1): New function.
11044
11045 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11046
11047 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
11048 UNIX assert.h.
11049 * fixinc/fixincl.x: Regenerate.
11050
11051 2002-03-20 Jason Merrill <jason@redhat.com>
11052
11053 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
11054
11055 2002-03-20 Michael Meissner <meissner@redhat.com>
11056
11057 * doc/invoke.texi (Optimize Options): Document that -O2 sets
11058 -fstrict-aliasing.
11059
11060 2002-03-20 Bob Wilson <bob.wilson@acm.org>
11061
11062 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
11063 ".literal_position" directive before the constant pool.
11064
11065 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11066
11067 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
11068 Add Craig Rodrigues.
11069 Add Brad Lucier to testers.
11070
11071 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11072
11073 PR target/4792
11074 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
11075 to if_then_else.
11076 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
11077 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
11078 instead of insn_extract.
11079
11080 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11081
11082 PR bootstrap/4192
11083 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
11084
11085 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
11086 stmt if some case has been output.
11087
11088 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11089
11090 PR c/5972
11091 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
11092 movsfcc_1, movdfcc_1): Add %O2.
11093 * config/i386/i386.c (print_operand): Handle %ON.
11094 Print . before float condition codes in Sun as cmov syntax.
11095 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
11096 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
11097 no longer true.
11098
11099 2002-03-20 Philip Blundell <pb@nexus.co.uk>
11100
11101 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
11102 return instruction if PC was popped.
11103
11104 2002-03-20 Bob Wilson <bob.wilson@acm.org>
11105
11106 * config/xtensa/xtensa.md: Remove unused type attributes.
11107 (adddi_carry, subddi_carry): Change type attribute to "multi".
11108
11109 2002-03-19 Dale Johannesen <dalej@apple.com>
11110
11111 PR optimization/5999, middle-end/5731
11112 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
11113 multiplications by reciprocals.
11114
11115 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
11116
11117 * Makefile.in: Update.
11118 * c-common.c: Include langhooks.h.
11119 (inline_forbidden_p): Use new hook.
11120 * diagnostic.c: Include langhooks.h.
11121 (format_with_decl, announce_function,
11122 default_print_error_function): Use new hook.
11123 * dwarf2out.c (dwarf2_name): Use new hook.
11124 * function.c: Include langhooks.h.
11125 (init_function_start): Use new hook.
11126 * langhooks-def.h (lhd_decl_printable_name): New.
11127 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
11128 (LANGHOOKS_INITIALIZER): Update.
11129 * langhooks.c (lhd_decl_printable_name): New.
11130 * langhooks.h (struct lang_hooks): New hook.
11131 * toplev.c (decl_name, decl_printable_name): Remove.
11132 (open_dump_file): Use new hook.
11133 (process_options): Remove old hook.
11134 * tree.h (decl_printable_name): Remove.
11135 objc:
11136 * objc-act.c (objc_init): Remove old hook.
11137 (objc_printable_name): Export.
11138 * objc-act.h (objc_printable_name): New.
11139 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11140
11141 2002-03-19 Jim Blandy <jimb@redhat.com>
11142
11143 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
11144 the start_source_file debug hook, not the current line number.
11145
11146 2002-03-19 Richard Henderson <rth@redhat.com>
11147
11148 * flow.c (EH_USES): Provide default.
11149 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
11150 * doc/tm.texi (EH_USES): New.
11151
11152 * config/ia64/ia64.c (ia64_eh_uses): New.
11153 * config/ia64/ia64-protos.h: Update.
11154 * config/ia64/ia64.h (EH_USES): New.
11155
11156 2002-03-19 Richard Henderson <rth@redhat.com>
11157
11158 * varasm.c (output_constant_def): Fix stupid typo.
11159
11160 2002-03-19 Richard Henderson <rth@redhat.com>
11161
11162 PR 5879
11163 * except.c (current_function_has_exception_handlers): New.
11164 * except.h: Declare it.
11165 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11166 Combine tests that disable all sibcalls for the function.
11167
11168 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
11169
11170 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
11171 for INTEGER_CST.
11172
11173 2002-03-19 Richard Henderson <rth@redhat.com>
11174
11175 PR 5977, 5991
11176 * config/ia64/ia64.c: Revert 2002-03-01 patch.
11177 * config/ia64/ia64.h (INIT_EXPANDERS): New.
11178
11179 2002-03-19 Jim Blandy <jimb@redhat.com>
11180
11181 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
11182 name, even if the replacement list contains no tokens, as required
11183 by Dwarf.
11184
11185 2002-03-19 Jason Merrill <jason@redhat.com>
11186
11187 * varasm.c (globalize_decl): Get the name from the RTL, not
11188 DECL_ASSEMBLER_NAME.
11189
11190 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
11191
11192 2002-03-19 Bob Wilson <bob.wilson@acm.org>
11193
11194 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
11195 subdi_carry): Define.
11196
11197 2002-03-19 David Edelsohn <edelsohn@gnu.org>
11198
11199 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
11200 about -fpic/-fPIC if extra_warnings set.
11201
11202 2002-03-19 David Edelsohn <edelsohn@gnu.org>
11203
11204 * expr.c (expand_expr): Sign-extend CONST_INT generated from
11205 TREE_STRING_POINTER.
11206 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
11207
11208 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11209
11210 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
11211 in favor of SP if FRAME_POINTER_REQUIRED is false.
11212
11213 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
11214
11215 * emit-rtl.c (gen_int_mode): New function.
11216 * rtl.h: Prototype for it.
11217 * combine.c (make_extraction, simplify_comparison), expmed.c
11218 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
11219 (convert_modes, store_field), optabs.c (expand_fix),
11220 simplify-rtx.c (neg_const_int, simplify_unary_real),
11221
11222 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
11223 Use it instead of GEN_INT (trunc_int_for_mode (...)).
11224
11225 2002-03-19 Jakub Jelinek <jakub@redhat.com>
11226
11227 PR c/5656
11228 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11229 convert_parm_for_inlining.
11230 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
11231 Define.
11232 * langhooks-def.h: Likewise.
11233 * objc/objc-lang.c: Likewise.
11234 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
11235 function.
11236 * tree-inline.c (initialize_inlined_parameters):
11237 Call convert_parm_for_inlining lang hook if needed.
11238 * c-typeck.c (c_convert_parm_for_inlining): New function.
11239 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
11240
11241 2002-03-18 Mark Mitchell <mark@codesourcery.com>
11242
11243 * calls.c (precompute_arguments): Do not assume that temporaries
11244 can be destroyed after expanding the argument.
11245 (expand_call): Likewise.
11246
11247 2002-03-15 Eric Christopher <echristo@redhat.com>
11248
11249 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
11250 Fix register preference on last change.
11251 * config/mips/mips.c (mips_return_in_memory): New function.
11252 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
11253 * config/mips/mips-protos.h: Declare.
11254 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
11255 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
11256
11257 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
11258
11259 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
11260 a register too.
11261 (anddi3, iorsi3): Likewise.
11262
11263 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
11264 use %gprel for symbols that are going to be placed in linkonce
11265 sections.
11266
11267 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
11268 RETURN_ADDRESS_POINTER_REGNUM to $ra.
11269 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
11270 not needed. Disregard leaf_function_p().
11271 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
11272 mips16 frame pointer.
11273 * config/mips/mips.md (store ra): Only to small SP offsets.
11274 2001-08-22 Graham Stott <grahams@redhat.com>
11275 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
11276 return a REG rtx for the return address register.
11277
11278 2002-03-18 Bob Wilson <bob.wilson@acm.org>
11279
11280 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
11281 constant-pool addresses as "mode-dependent".
11282 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
11283
11284 2002-03-18 Jakub Jelinek <jakub@redhat.com>
11285
11286 PR target/5740
11287 * expr.c (emit_group_load): Use extract_bit_field if
11288 needed for CONCAT arguments.
11289
11290 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
11291
11292 PR target/4863
11293 * arm.md (tablejump): Make this a define_expand. For PIC add the
11294 offset to the base of the table.
11295 (thumb_tablejump): Matcher for Thumb tablejump insn.
11296 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
11297 as the difference of two labels.
11298 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11299 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
11300 tables in the code.
11301 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11302 * arm.c (get_jump_table_size): If the table is not in the text
11303 section, return zero.
11304
11305 2002-03-18 Bernd Schmidt <bernds@redhat.com>
11306
11307 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
11308 of gen_rtx_SUBREG.
11309 (arm_reload_out_hi): Use gen_lowpart instead of
11310 gen_rtx_SUBREG to access QImode components.
11311 * config/arm/arm.md: Disable zero_extend split for QImode
11312 subregs in BIG_ENDIAN mode.
11313 (storehi_bigend): Match use of least significant byte.
11314 (storeinthi): Remove extraneous SUBREG.
11315 Add missing construction of operands[2].
11316 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
11317 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
11318 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
11319
11320 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
11321
11322 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
11323 any_operand.
11324
11325 2002-03-17 Richard Henderson <rth@redhat.com>
11326
11327 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
11328 explicitly.
11329
11330 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11331
11332 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
11333 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
11334
11335 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11336
11337 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
11338
11339 * predict.c (estimate_bb_frequencies): Delete unused variables.
11340
11341 2002-03-17 Richard Henderson <rth@redhat.com>
11342
11343 * config/ia64/ia64.c (ia64_attribute_table): Move before
11344 targetm definition. Make static.
11345
11346 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
11347
11348 * c-common.h (yyparse, c_common_parse_file): New.
11349 * c-lang.c: Include c-common.h.
11350 (LANG_HOOKS_PARSE_FILE): Redefine.
11351 * c-lex.c: Include c-common.h.
11352 (yyparse): Rename c_common_parse_file. Call yyparse.
11353 * c-parse.in (yyparse): Remove macro.
11354 * c-tree.h (yyparse_1): Remove.
11355 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
11356 (LANG_HOOKS_INITIALIZER): Update.
11357 * langhooks.h (struct lang_hoooks): New hook parse_file.
11358 * toplev.c (compile_file): Use parse_file hook.
11359 * tree.h (yyparse): Remove.
11360 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
11361
11362 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11363
11364 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
11365 float_truncate, not fix.
11366 ("*truncdfsf2_real"): Ditto.
11367 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
11368
11369 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
11370
11371 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
11372
11373 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
11374 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
11375 where appropriate. Make the second reference to
11376 leaf_function_p a function call, as intended. Reindented.
11377
11378 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
11379 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
11380
11381 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
11382 add register to non-constant into sp.
11383
11384 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
11385 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
11386 (mips16_gp_pseudo_rtx): Lose.
11387 (INIT_EXPANDERS): Deleted.
11388 * config/mips/mips.c (mips_init_machine_status): New.
11389 (mips_free_machine_status): New.
11390 (mips_mark_machine_status): New.
11391 (override_options): Set them.
11392 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
11393 (struct machine_function): ... new. Replaced all references.
11394 (mips_add_gc_roots): Don't mark them.
11395 (embedded_pic_fnaddr_reg): New, extracted from...
11396 (embedded_pic_offset): ... here.
11397 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
11398 (movsi): Likewise.
11399
11400 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11401
11402 * cppinit.c: Revert -MD removal.
11403
11404 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11405
11406 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
11407 soft registers by default for 68HC12.
11408 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
11409 when compiling with -fomit-frame-pointer.
11410 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
11411 (expand_epilogue): Likewise.
11412 (m68hc11_gen_rotate): Use exg when rotating by 8.
11413
11414 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11415
11416 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
11417 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
11418 (splits): Remove unused add splits.
11419 ("*addhi3_68hc12"): Tune constraints.
11420 ("addhi_sp"): Try to use X instead of Y in all cases and if the
11421 constant fits in 8-bits and D is dead use abx/aby instructions.
11422 ("*addhi3"): Remove extern declaration of ix_reg.
11423 ("*subsi3"): Optimize and provide new split.
11424 ("subhi3"): Cleanup.
11425 ("*subhi3_sp"): Avoid saving X if we know it is dead.
11426 (arith splits): For 68hc12 save the address register on the stack
11427 and do the arithmetic operation with a pop.
11428
11429 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11430
11431 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
11432 allocating QImode in address registers.
11433 ("*movqi_m68hc11"): Likewise.
11434
11435 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
11436
11437 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
11438
11439 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11440
11441 * cppinit.c (print_help): Display -MD and -MMD.
11442 Don't display usage string. Update assertion syntax and
11443 typo.
11444 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
11445 (cpp_handle_option): Update.
11446
11447 2002-03-15 Chris Demetriou <cgd@broadcom.com>
11448
11449 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
11450 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
11451 and define it so that regardless of target CPU size,
11452 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
11453 of "int" rather than "long."
11454
11455 2002-03-15 Richard Henderson <rth@redhat.com>
11456
11457 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
11458 size as a tree.
11459
11460 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11461
11462 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
11463 ("tstqi" split): Avoid using memory for tstqi on address register.
11464 (splits): Remove constraints.
11465 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
11466 ("cmpdf", "cmpsf"): Remove since not used.
11467 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
11468 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
11469
11470 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11471
11472 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
11473 ("neghi2"): Tighten constraints.
11474 ("one_cmplsi2"): Optimize and simplify split.
11475 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
11476
11477 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11478
11479 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
11480 and split of AND operation to clear the upper bits.
11481 ("*logicalsi3_zextqi"): Likewise.
11482 ("*logicallhi3_zexthi_ashift8"): Likewise.
11483 ("*logicalsi3_silshr16"): Likewise.
11484 ("logicalsi3_silshl16"): Likewise.
11485 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
11486
11487 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11488
11489 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
11490 (m68hc11_indirect_p): New function.
11491 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
11492 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
11493 TARGET_M6812.
11494 (asm_print_register): Likewise.
11495 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
11496 (m68hc11_indirect_p): Declare.
11497 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
11498 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
11499 (TARGET_SWITCHES): New option -mrelax.
11500 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
11501 destination.
11502 ("iorsi3", "xorsi3"): Likewise.
11503 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
11504 ("*andhi3_mem"): New to handle destination in memory with bclr
11505 and a scratch register.
11506 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
11507 ("*andhi3_const"): New when operand2 is constant.
11508 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
11509 ("*andhi3_gen"): Cleanup of the old "andhi3".
11510 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
11511 ("xorqi3"): Update constraints.
11512
11513 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11514
11515 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
11516 for reg_equiv_memory_loc when the operand is a register that does
11517 not get a hard register (stack location).
11518 (tst_operand): After reload, accept all memory operand.
11519 (symbolic_memory_operand): Fix detection of symbolic references.
11520 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
11521 accept symbols and any constant.
11522
11523 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11524
11525 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
11526 note on the insn that sets the soft frame register.
11527 (must_parenthesize): ix and iy are also reserved names.
11528 (print_operand_address): One more place where parenthesis are required
11529 to avoid confusion with register names.
11530 (m68hc11_gen_movhi): Allow push of stack pointer.
11531 (m68hc11_check_z_replacement): Fix handling of parallel with a
11532 clobber.
11533 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
11534 the replacement register is.
11535 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
11536 and D8_REGS classes.
11537 (MODES_TIEABLE_P): All modes are tieable except QImode.
11538
11539 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11540
11541 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
11542 (___subdi3): Likewise.
11543 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
11544 (__map_data_section): Optimize 68hc11 case.
11545
11546 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11547
11548 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
11549 than a shift to avoid adding a register with itself.
11550 (m68hc11_memory_move_cost): Take into account NO_REGS.
11551 (m68hc11_register_move_cost): Update and use memory move cost
11552 for soft registers.
11553 (m68hc11_address_cost): Make cost of valid offset not 0 so that
11554 it gives more opportunities to cse to optimize.
11555 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
11556 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
11557
11558 2002-03-15 Mark Mitchell <mark@codesourcery.com>
11559
11560 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
11561 * c-common.def (CLEANUP_STMT): New tree node.
11562 * c-common.h (CLEANUP_DECL): New macro.
11563 (CLEANUP_EXPR): Likewise.
11564 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
11565 * expr.c (expand_expr): Tidy.
11566 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
11567 * tree-inline.c (initialize_inlined_parameters): Clean up
11568 new local variables.
11569
11570 2002-03-15 Jakub Jelinek <jakub@redhat.com>
11571
11572 PR bootstrap/4128
11573 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
11574 before movrXX only, use reg_overlap_mentioned_p.
11575 Only special case NE if just one insn can be generated.
11576
11577 2002-03-15 Jason Merrill <jason@redhat.com>
11578
11579 * varasm.c (assemble_variable): Call resolve_unique_section before
11580 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
11581 of error_mark_node.
11582
11583 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
11584
11585 PR target/5170
11586 * arm.md (split pattern for thumb shiftable immediates): Add comment
11587 explaining non-obvious test.
11588
11589 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
11590
11591 PR target/5712
11592 * arm.md (movaddr, movaddr_insn): Delete.
11593
11594 2002-03-15 Jason Merrill <jason@redhat.com>
11595
11596 * toplev.c (wrapup_global_declarations): Clarify variable handling.
11597 -fkeep-static-consts doesn't apply to comdats.
11598
11599 2002-03-14 Richard Henderson <rth@redhat.com>
11600
11601 * c-decl.c: Include c-pragma.h.
11602 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
11603 (finish_function): Tidy.
11604 * c-pragma.c: Include c-common.h.
11605 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
11606 (handle_pragma_weak): Use them.
11607 (init_pragma): Register pending_weaks.
11608 * c-pragma.h (maybe_apply_pragma_weak): Declare.
11609 * print-tree.c (print_node): Print DECL_WEAK.
11610 * varasm.c (mark_weak_decls): Remove.
11611 (remove_from_pending_weak_list): Remove.
11612 (add_weak): Remove.
11613 (asm_emit_uninitialised): Call globalize_decl for weak commons.
11614 (weak_decls): Make a tree_list.
11615 (declare_weak): Cons weak_decls directly.
11616 (globalize_decl): Remove weak_decls elements directly.
11617 (weak_finish): Simplify weak_decls walk. Don't weaken unused
11618 symbols. Don't pretend to handle aliases.
11619 (init_varasm_once): Update weak_decls registry.
11620 * Makefile.in: Update dependencies.
11621
11622 2002-03-14 Richard Henderson <rth@redhat.com>
11623
11624 PR target/5312
11625 * config/ia64/ia64.c: Include tm_p.h last.
11626 (gen_nop_type): Remove duplicate definition.
11627 (cycle_end_fill_slots): Set sched_data for second L slot.
11628 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
11629 (nop_cycles_until): Fix typos.
11630
11631 2002-03-15 Jakub Jelinek <jakub@redhat.com>
11632
11633 PR optimization/5891
11634 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
11635
11636 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
11637
11638 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
11639 descriptors correctly.
11640
11641 2002-03-14 Michael Meissner <meissner@redhat.com>
11642
11643 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
11644 100, allowing MAX_UNROLLED_INSNS to be overridden.
11645
11646 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
11647 --param.
11648
11649 * unroll.c (params.h): Include.
11650 (MAX_UNROLLED_INSNS): Delete, now in params.h.
11651
11652 * doc/invoke.texi (--param max-unroll-insns): Document.
11653
11654 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
11655
11656 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
11657
11658 * arm.md: Fix warnings about constraints in peepholes and splits.
11659
11660 2002-03-14 Zack Weinberg <zack@codesourcery.com>
11661
11662 * cpphash.h (struct lexer_state): Remove line_extension member.
11663 * cpplib.c (dequote_string, do_linemarker): New functions.
11664 (linemarker_dir): New data object.
11665 (DIRECTIVE_TABLE): No longer need to interpret #line in
11666 preprocessed source. Delete obsolete comment about return
11667 values of handlers.
11668 (end_directive, directive_diagnostics, _cpp_handle_directive):
11669 Don't muck with line_extension.
11670 (directive_diagnostics): No need to issue warnings for
11671 linemarkers here.
11672 (_cpp_handle_directive): Issue warnings for linemarkers here,
11673 when appropriate. Dispatch linemarkers to do_linemarker, not
11674 do_line.
11675 (do_line): Code to handle linemarkers split out to do_linemarker.
11676 Convert escape sequences in filename argument, both places.
11677
11678 * cppmacro.c (quote_string): Rename cpp_quote_string and
11679 export. All callers changed.
11680 * cpplib.h (cpp_quote_string): Prototype.
11681 * cppmain.c (print_line): Call cpp_quote_string on to_file
11682 before printing it.
11683
11684 * doc/cpp.texi: Document that escapes are now interpreted in
11685 #line and in linemarkers, and that non-printing characters are
11686 converted to octal escapes when linemarkers are generated.
11687
11688 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
11689
11690 * emit-rtl.c (try_split): Use delete_insns.
11691 * recog.c (split_all_insns): Fix terminating condition.
11692
11693 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
11694 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
11695
11696 PR target/5828
11697 * arm.c (arm_output_epilogue): Fix floating-point register save
11698 adjustment when using a frame pointer.
11699
11700 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
11701
11702 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
11703 * config/mips/mips.c (compute_frame_size): Retrofit them here.
11704 (save_restore_insns, mips_expand_epilogue): And here.
11705 (build_mips16_call_stub): And here.
11706 (mips_function_value): Use the new macros to decide whether a single
11707 or complex float can be returned in floating-point registers. Return
11708 a parallel rtx in the complex case.
11709
11710 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
11711
11712 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
11713 call after liveness analysis.
11714
11715 * recog.c (split_insn): Use delete_insn_and_edges.
11716
11717 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
11718 instructions to have branch prediction notes.
11719 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
11720
11721 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
11722
11723 * configure.in: Don't pass -Wno-long-long to a ADA compiler
11724 that doesn't support it.
11725 * configure: Regenerate.
11726
11727 2002-03-13 Jakub Jelinek <jakub@redhat.com>
11728
11729 PR target/5626
11730 * config/sparc/sparc.md (normal_branch, inverted_branch,
11731 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
11732 inverted_fp_branch): Adjust calls to output_cbranch.
11733 Set length attribute.
11734 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
11735 output_v9branch. Set length attribute.
11736 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
11737 predicates.
11738 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
11739 (output_cbranch): Likewise. Handle far branches.
11740 (output_v9branch): Handle far branches.
11741 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
11742 Adjust prototypes.
11743 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
11744 noov_compare64_op predicates.
11745
11746 2002-03-13 Jason Merrill <jason@redhat.com>
11747
11748 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
11749 into the function and constify it.
11750 * gthr-dce.h, gthr-solaris.h: Likewise.
11751
11752 2002-03-13 David Edelsohn <edelsohn@gnu.org>
11753
11754 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
11755 * config/rs6000/rs6000.c (rs6000_va_arg): Use
11756 std_expand_builtin_va_arg if not ABI_V4.
11757
11758 2002-03-13 Jason Merrill <jason@redhat.com>
11759
11760 * varasm.c (globalize_decl): New fn.
11761 (assemble_start_function): Use it.
11762 (asm_emit_uninitialized): Use it.
11763 (assemble_alias): Use it.
11764 (assemble_variable): Use it.
11765
11766 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
11767
11768 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
11769 2002-03-12 internal visibility change.
11770 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
11771 visibility into SYMBOL_REF_FLAG.
11772
11773 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
11774
11775 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
11776 VOIDmode operand. Add compile-time optimization for constant results.
11777
11778 2002-03-12 Jason Merrill <jason@redhat.com>
11779
11780 * c-typeck.c (convert_for_assignment): Don't allow conversions
11781 between pointers and references. Only allow lvalues to convert to
11782 reference.
11783
11784 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
11785
11786 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
11787 before prologue, to avoid scheduling problems.
11788
11789 2002-03-13 Jakub Jelinek <jakub@redhat.com>
11790
11791 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
11792 (ELIMINABLE_REGS): Add sfp->sp.
11793 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
11794
11795 2002-03-13 Jakub Jelinek <jakub@redhat.com>
11796
11797 PR optimization/5892
11798 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
11799
11800 2002-03-13 Jakub Jelinek <jakub@redhat.com>
11801
11802 * loop.c (basic_induction_var): Don't call convert_modes if mode
11803 classes are different.
11804
11805 2002-03-12 Richard Henderson <rth@redhat.com>
11806
11807 PR optimization/5901
11808 * function.c (reposition_prologue_and_epilogue_notes): Position
11809 the markers after/before the last/first insn not deleted.
11810
11811 2002-03-12 Richard Henderson <rth@redhat.com>
11812
11813 PR optimization/5878
11814 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
11815 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
11816 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11817
11818 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
11819 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
11820 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
11821
11822 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
11823 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
11824 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
11825 also. Don't set it if not flag_pic.
11826 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
11827 to be INVALID_REGNUM when not used.
11828
11829 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
11830
11831 * expmed.c (store_bit_field): Reset alias set for memory.
11832 (extract_bit_field): Same.
11833
11834 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11835
11836 * c-common.c (c_tree_code_type, c_tree_code_length,
11837 c_tree_code_name, add_c_tree_codes): Delete.
11838 * c-common.h (add_c_tree_codes): Delete.
11839 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
11840 Define.
11841 * c-objc-common.c (c_objc_common_init): Don't call
11842 add_c_tree_codes, instead set lang_unsafe_for_reeval.
11843 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
11844 objc_tree_code_name, add_objc_tree_codes): Delete.
11845 (objc_init): Don't call add_objc_tree_codes.
11846 * objc/objc-lang.c (tree_code_type, tree_code_length,
11847 tree_code_name): Define.
11848 * toplev.c (lang_independent_init): Don't set
11849 tree_code_length[IDENTIFIER_NODE].
11850 * tree.c (tree_code_type, tree_code_length, tree_code_name):
11851 Delete definitions, moved to language front-ends.
11852 * tree.def (IDENTIFIER_NODE): Hardwire the length.
11853 * tree.h (tree_code_type, tree_code_length, tree_code_name):
11854 Const-ify.
11855 (tree_code_length): Change type to unsigned char.
11856
11857 2002-03-12 Richard Henderson <rth@redhat.com>
11858
11859 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
11860 internal visibility change.
11861
11862 2002-03-12 Bob Wilson <bob.wilson@acm.org>
11863
11864 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
11865 validize_mem() instead of change_address to avoid clobbering
11866 memory attributes.
11867
11868 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
11869
11870 * c-lex.h (position_after_whitespace): Remove.
11871
11872 2002-03-12 Jakub Jelinek <jakub@redhat.com>
11873
11874 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
11875 (lex_string): Use unsigned char pointers.
11876
11877 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
11878
11879 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
11880 is not a valid memory_operand.
11881
11882 2002-03-12 Bob Wilson <bob.wilson@acm.org>
11883
11884 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
11885 * config/xtensa/lib1funcs.asm: Fix copyright to include
11886 special case for libgcc files.
11887 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
11888 (__divsi3): Likewise.
11889 (__umodsi3): Likewise.
11890 (__modsi3): Likewise.
11891 * config/xtensa/lib2funcs.S: Fix copyright to include
11892 special case for libgcc files.
11893
11894 2002-03-12 Tom Rix <trix@redhat.com>
11895
11896 * collect2.c (resolve_lib_name): Move outside of
11897 OBJECT_FORMAT_COFF ifdef.
11898 (ignore_library): Same.
11899
11900 2002-03-12 Bob Wilson <bob.wilson@acm.org>
11901
11902 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
11903
11904 2002-03-12 Bob Wilson <bob.wilson@acm.org>
11905
11906 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
11907 to function_section before writing out the constant pool.
11908
11909 2002-03-12 David Edelsohn <edelsohn@gnu.org>
11910
11911 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
11912 zero_constant.
11913 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
11914
11915 2002-03-12 Alan Modra <amodra@bigpond.net.au>
11916
11917 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
11918 (adddi3): Likewise.
11919 (movdf): Likewise.
11920 (movdi): Likewise.
11921 (cmpsi splitter): Likewise.
11922 (modsi3): Fail if <= 0.
11923 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
11924 redundant test when HOST_BITS_PER_WIDE_INT != 32.
11925 (reg_or_sub_cint64_operand): Likewise.
11926 (num_insns_constant_wide): Optimize sign extension.
11927 (rs6000_legitimize_address): Likewise.
11928
11929 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
11930
11931 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11932 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11933
11934 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
11935
11936 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
11937 address calculation.
11938
11939 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
11940
11941 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
11942 scratch register to DImode / TImode.
11943 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
11944 register used does not overlap the target.
11945
11946 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11947
11948 * Makefile.in (debug.o): Depend on debug.h.
11949 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
11950 * debug.c (do_nothing_debug_hooks): Likewise.
11951 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
11952 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
11953 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
11954 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
11955 * dwarfout.c (dwarf_debug_hooks): Likewise.
11956 * integrate.c (output_inline_function): Likewise.
11957 * objc/objc-act.c (synth_module_prologue): Likewise.
11958 * sdbout.c (sdb_debug_hooks): Likewise.
11959 * toplev.c (debug_hooks): Likewise.
11960 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11961
11962 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11963
11964 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
11965 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
11966 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
11967 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
11968 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
11969 * defaults.h (POINTER_SIZE): Define.
11970 * doc/tm.texi (POINTER_SIZE): Document default.
11971
11972 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11973
11974 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
11975
11976 2002-03-11 Richard Henderson <rth@redhat.com>
11977
11978 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
11979 if rebuild_label_notes_after_reload.
11980
11981 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
11982
11983 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
11984 emit pic register load if "internal" visibility.
11985 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
11986 (cris_expand_builtin_va_arg): Do all computations on trees.
11987
11988 2002-03-11 Richard Henderson <rth@redhat.com>
11989
11990 * rtlanal.c: Include recog.h.
11991 (keep_with_call_p): Fix thinko.
11992 * Makefile.in (rtlanal.o): Update dependencies.
11993
11994 2002-03-11 Chris Meyer <cmeyer@gatan.com>
11995
11996 * genflags.c (gen_insn): Use IS_VSPACE.
11997 * genoutput.c (output_insn_data): Likewise.
11998 (process_template): Likewise.
11999
12000 2002-03-11 Richard Henderson <rth@redhat.com>
12001
12002 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
12003
12004 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
12005
12006 * Makefile.in: Update.
12007 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
12008 Update documentation.
12009 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
12010 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
12011
12012 2002-03-11 Zack Weinberg <zack@codesourcery.com>
12013
12014 * Makefile.in: Give texi2pod its input file as a command line
12015 argument, not on stdin.
12016
12017 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
12018 Daniel Berlin <dan@dberlin.org>
12019
12020 C++ alias analysis improvement.
12021 * alias.c (record_component_aliases): Record aliases for base
12022 classes too.
12023
12024 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
12025
12026 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
12027
12028 2002-03-11 Douglas B Rupp <rupp@gnat.com>
12029
12030 * toplev.c (vms_fopen): Remove, not needed.
12031
12032 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
12033
12034 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
12035
12036 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
12037 for FP, already done later.
12038
12039 * toplev.c (debug_args): Add entry for VMS_DEBUG.
12040 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
12041
12042 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
12043
12044 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
12045 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
12046 LARGEST_EXPONENT_IS_NORMAL for the given mode.
12047 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
12048 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
12049 (ediv, emul, eldexp, esqrt): Likewise.
12050 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
12051 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
12052 (saturate): New function.
12053 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
12054 (make_nan): Use a saturation value instead of a NaN if
12055 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
12056 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
12057 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
12058 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
12059 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
12060 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
12061 !ROUND_TOWARDS_ZERO.
12062 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
12063 (ROUND_TOWARDS_ZERO): Document.
12064
12065 2002-03-11 Andreas Jaeger <aj@suse.de>
12066
12067 * cfg.c (dump_flow_info): Remove unused variable.
12068
12069 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
12070
12071 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
12072 computations on trees.
12073
12074 2002-03-10 Richard Henderson <rth@redhat.com>
12075
12076 PR 5693:
12077 * reload.c (copy_replacements_1): New.
12078 (copy_replacements): Use it to recurse through the rtx.
12079
12080 2002-03-10 Richard Henderson <rth@redhat.com>
12081
12082 * loop.c (strength_reduce): Compute number of iterations as
12083 unsigned HOST_WIDE_INT.
12084
12085 2002-03-10 Richard Henderson <rth@redhat.com>
12086
12087 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
12088 to move away from the end of the block.
12089
12090 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
12091
12092 PR preprocessor/5899
12093 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
12094
12095 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12096
12097 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
12098
12099 * attribs.c (decl_attributes): Fix signed/unsigned warning.
12100
12101 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
12102
12103 * config/mmix/mmix.c: Improve comments.
12104 (mmix_target_asm_function_prologue): Drop variable
12105 empty_stack_frame. Don't allocate unused slot above fp.
12106 (mmix_target_asm_function_epilogue): Mirror prologue changes.
12107 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
12108 brace in first column.
12109 (enum reg_class): Ditto.
12110 (FIRST_PARM_OFFSET): Now 0.
12111 (USER_LABEL_PREFIX): Remove #if 0:d definition.
12112
12113 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12114
12115 * combine.c (make_extraction): Fix error in last change.
12116
12117 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12118
12119 * c4x.c (c4x_fp_reglist): Const-ify.
12120 * cris.c (cris_print_operand): Likewise.
12121 * i386.c (ix86_va_arg): Likewise.
12122 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
12123 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
12124 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
12125 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
12126 * mcore.h (regno_reg_class): Likewise.
12127 * mips.c (gen_int_relational): Likewise.
12128 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
12129 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
12130 * pdp11.c (move_costs): Likewise.
12131 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
12132 * s390.c (s390_branch_condition_mnemonic, regclass_map):
12133 Likewise.
12134 * s390.h (regclass_map): Likewise.
12135 * sh.c (shift_amounts): Likewise.
12136 * sh.md (rotlsi3): Likewise.
12137
12138 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
12139
12140 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
12141 (ne0+5): Use new clobber to generate proper shift pattern.
12142 Patch by Michael Matz <matz@kde.org>.
12143
12144 2002-03-09 Andreas Schwab <schwab@suse.de>
12145
12146 * gcc.c (validate_all_switches): Also handle `%W{...}'.
12147
12148 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
12149
12150 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
12151
12152 2002-03-09 Jakub Jelinek <jakub@redhat.com>
12153
12154 PR middle-end/5877
12155 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
12156 even for non-representable constants.
12157
12158 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12159
12160 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
12161 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
12162 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
12163 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
12164 (pop_function_context): Compute MAY_SHARE parameter for
12165 fixup_var_refs.
12166 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
12167 (gen_mem_addressof): Call fixup_var_refs with new parm.
12168
12169 * combine.c (make_extraction): Don't make extension of CONST_INT.
12170
12171 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
12172
12173 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
12174 in o32 and o64 ABIs.
12175 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
12176 but getting fixed-size structs passed in registers regardless of
12177 padding in o32 and o64 ABIs.
12178
12179 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
12180 offset before loading address of argument passed by transparent
12181 reference.
12182
12183 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
12184
12185 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
12186
12187 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
12188
12189 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
12190 marker such that registers after it are saved.
12191
12192 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12193
12194 * sparc.c (arith_4096_operand): Fix error in last change.
12195
12196 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
12197
12198 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
12199 defaults for MEABI.
12200
12201 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
12202
12203 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
12204 vectors.
12205
12206 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
12207
12208 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
12209
12210 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
12211
12212 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
12213 removed; fix return value.
12214 * combine.c (combine_instructions): Dirtify blocks where we failed to
12215 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
12216 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
12217
12218 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12219
12220 * gcse.c (insert_insn_end_bb): Fix typo in last change.
12221
12222 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
12223
12224 * recog.c (peephole2_optimize): Re-distribute EH edges.
12225
12226 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
12227
12228 * expr.c (expand_expr): Use unsave lang hook.
12229 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
12230 (LANG_HOOKS_INITIALIZER): Update.
12231 * langhooks.h (struct lang_hooks): New hook unsave.
12232 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
12233 (unsave_expr_1): Remove unused lang_unsave_expr_now.
12234 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
12235 (unsave_expr_now): Remove.
12236 * tree.h (unsave_expr_now, lang_unsave,
12237 lang_unsave_expr_now): Remove.
12238 (lhd_unsave): New.
12239
12240 2002-03-08 Andreas Jaeger <aj@suse.de>
12241
12242 * flow.c (propagate_block_delete_insn): Remove unused variable.
12243
12244 2002-03-08 Kazu Hirata <kazu@hxi.com>
12245
12246 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
12247 insn length for memory load/store.
12248
12249 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
12250
12251 * doc/install.texi (--with-libiconv-prefix): Document.
12252
12253 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
12254
12255 * doc/sourcebuild.texi: Fix typo.
12256
12257 2002-03-08 Jakub Jelinek <jakub@redhat.com>
12258
12259 PR c/3711
12260 * builtins.c (std_expand_builtin_va_arg): Do all computations on
12261 trees.
12262
12263 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12264
12265 * rtl.c (copy_most_rtx): Move from here ...
12266 * emit-rtl.c (copy_most_rtx): ... to here.
12267
12268 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
12269
12270 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
12271 SUBTARGET_CPP_SIZE_SPEC.
12272 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
12273
12274 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
12275
12276 2002-03-07 Matt Hiller <hiller@redhat.com>
12277
12278 * gensupport.c (first_dir_md_include): Renamed from include;
12279 change all references.
12280 (last_dir_md_include): Renamed from last_include; change all
12281 references.
12282 (init_md_reader): Unconditionally initialize base_dir whether or
12283 not filename is a relative path.
12284
12285 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
12286
12287 * config/fp-bit.c (_unord_f2): Compile it in even if
12288 US_SOFTWARE_GOFAST is enabled.
12289
12290 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
12291 NULL_RTX. Set all HFmode operations as NULL_RTX.
12292 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
12293 NULL_RTX, try reversing the comparison and the operands.
12294
12295 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12296
12297 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
12298 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
12299 and MATCH_OP_DUP.
12300
12301 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
12302
12303 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
12304
12305 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12306
12307 * basic-block.h (fixup_abnormal_edges): Declare.
12308 * reload1.c (fixup_abnormal_edges): New function.
12309 * reg-stack.c (convert_regs): Use it.
12310
12311 * gcse.c (insert_insn_end_bb): Handle trapping insns.
12312
12313 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
12314
12315 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
12316
12317 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
12318 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
12319 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
12320 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
12321 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
12322 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
12323 unless x and y could be infinite.
12324 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
12325 Check that the common type of both arguments is a real, even for
12326 targets without unordered comparisons. Allow an integer argument
12327 to be compared against a real.
12328 (expand_tree_builtin): Use expand_unordered_cmp.
12329 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
12330 * cse.c (fold_rtx): Likewise. Fix indentation.
12331 * fold-const.c (fold_real_zero_addition_p): New.
12332 (fold): Use it, and the new HONOR_... macros.
12333 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
12334 * jump.c (reversed_comparison_code_parts): After searching for
12335 the true comparison mode, use HONOR_NANS to decide whether it
12336 can be safely reversed.
12337 (reverse_condition_maybe_unordered): Remove IEEE check.
12338 * simplify-rtx.c (simplify_binary_operation): Use the new macros
12339 to decide which simplifications are valid. Allow the following
12340 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
12341 and (a - -b) to (a + b).
12342 (simplify_relational_operation): Use HONOR_NANS.
12343 * doc/tm.texi: Document the MODE_HAS_... macros.
12344
12345 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12346
12347 * combine.c (simplify_comparison): If simplifying a logical shift
12348 right and compare with constant, force the comparison to unsigned.
12349
12350 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
12351
12352 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
12353
12354 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
12355 -mabi=no-altivec
12356 (alt_reg_names): Remove % for vrsave.
12357
12358 2002-03-06 Richard Henderson <rth@redhat.com>
12359
12360 PR optimization/5844
12361 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
12362 if used indicates we've already emitted one copy of an operand.
12363 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
12364 (gen_split): Supply a non-null used.
12365
12366 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12367
12368 * reload1.c (reload): Unshare all rtl after reload is done.
12369
12370 * simplify-rtx.c (simplify_plus_minus): Do not abort,
12371 but simply fail if the expression is too complex to simplify.
12372 (simplify_gen_binary): Handle simplify_plus_minus failures.
12373
12374 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
12375
12376 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
12377 consistently call delete_trivially_dead_insns after CSE and GCSE;
12378 fix DFI_life dumping; do jump threading after liveness; do crossjumping
12379 after liveness2; update comment in last crossjumping.
12380 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
12381
12382 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
12383
12384 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
12385 after completing fast dead code elimination.
12386
12387 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
12388 COMPARE operator.
12389
12390 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
12391
12392 * version.c: Fix misplaced leading blanks on first line.
12393
12394 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
12395
12396 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
12397
12398 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
12399
12400 * cfgcleanup.c (mentions_nonequal_regs): New function.
12401 (thread_jump): Use it.
12402 * toplev.c (rest_of_compilation): Run jump threading after
12403 liveness.
12404
12405 2002-03-06 Jakub Jelinek <jakub@redhat.com>
12406
12407 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
12408 patch.
12409
12410 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
12411
12412 * predict.c (estimate_bb_frequencies): Do not reload the
12413 frequencies from notes.
12414
12415 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
12416
12417 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
12418 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
12419
12420 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
12421 delete_noop_moves): Return indeger.
12422 * flow.c (ndead): New variable.
12423 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
12424 BB argument; update callers.
12425 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
12426 (life_analysis): Do not call purge_all_dead_edges.
12427 (update_life_info): Return number of deleted insns; print statistics.
12428 (update_life_info_in_dirty_blocks): likewise.
12429 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
12430 return number of insns deleted.
12431
12432 * cse.c: Include timevar.h
12433 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
12434 iterate until stabilizes; print statistics; return number of killed
12435 insns.
12436 * Makefile.in: (cse.o): Add timevar.h dependency
12437 * rtl.h (delete_trivially_dead_insns): New.
12438 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
12439 * toplev.c (rest_of_compilation): Update callers.
12440
12441 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
12442 (try_optimize_cfg): Do not update liveness.
12443 (cleanup-cfg): Loop until try_optimize_cfg and dead code
12444 removal stabilizes; use delete_trivially_dead_insns.
12445
12446 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
12447
12448 2002-03-05 Zack Weinberg <zack@codesourcery.com>
12449
12450 * cppmain.c (setup_callbacks): Disable #pragma and #ident
12451 callbacks when processing assembly language.
12452
12453 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
12454
12455 * pa.h (ASM_FILE_END): Define.
12456 * som.h (ASM_FILE_END): Delete.
12457
12458 * pa.c (function_arg): Don't pass floats in general registers in
12459 indirect calls if TARGET_ELF32.
12460
12461 2002-03-05 Richard Henderson <rth@redhat.com>
12462
12463 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
12464
12465 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
12466
12467 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
12468
12469 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12470
12471 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
12472 -r command line. Don't hide any symbols if not building
12473 shared libgcc.
12474
12475 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
12476
12477 * cfg.c (dump_flow_info): Warn about profile mismatches.
12478 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
12479 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
12480
12481 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12482
12483 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
12484 wide volatile memory by parts.
12485
12486 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12487
12488 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
12489 is NULL.
12490
12491 2002-03-05 Richard Henderson <rth@redhat.com>
12492
12493 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
12494
12495 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
12496
12497 * toplev.c (documented_lang_options): Document more
12498 language-specific options.
12499 * doc/invoke.texi (Warning Options): Correct documentation for
12500 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
12501 * c-decl.c (c_decode_option): Use a table to handle warning options.
12502
12503 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
12504
12505 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
12506 parameter to mmix_encode_section_info.
12507 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
12508 relocatably. Always produce ELF, not mmo if linking relocatably.
12509 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
12510 first is non-zero, don't add symbol prefix.
12511 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
12512 prototype accordingly.
12513
12514 2002-03-04 Krister Walfridsson <cato@df.lth.se>
12515
12516 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
12517
12518 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
12519
12520 * configure.in: Increase required makeinfo version to 4.1.
12521 * configure: Regenerate.
12522
12523 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
12524
12525 * .cvsignore: Remove *.info* and genrtl*; these files are generated
12526 elsewhere now.
12527
12528 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
12529
12530 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
12531 * doc/invoke.texi: Fix @math uses.
12532
12533 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12534
12535 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
12536 removal
12537
12538 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
12539
12540 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
12541 (powerpc-*-eabisimaltivec*): Same.
12542
12543 * config/rs6000/t-ppcendian: New.
12544
12545 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12546
12547 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
12548 nonimmediate_src_operand and nonimmediate_lsrc_operand to
12549 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
12550
12551 2002-03-03 Richard Henderson <rth@redhat.com>
12552
12553 * toplev.c (rest_of_decl_compilation): Revert last two changes.
12554
12555 2002-03-03 Zack Weinberg <zack@codesourcery.com>
12556
12557 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
12558 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
12559 tree.c, config/m68k/m68k.c:
12560 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
12561 REAL_ARITHMETIC blocks unconditional. Delete some further
12562 #ifdef blocks predicated on REAL_ARITHMETIC.
12563 * flags.h, toplev.c: Delete remaining references to
12564 flag_pretend_float.
12565
12566 * doc/invoke.texi: Remove documentation of -fpretend-float.
12567 * doc/tm.texi: Describe the various REAL_* macros as provided by
12568 real.h, not by the target configuration files.
12569
12570 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
12571 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
12572 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12573 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
12574 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
12575 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
12576 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
12577 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
12578 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12579 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
12580 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12581 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12582 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
12583 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
12584 config/xtensa/xtensa.h:
12585 Do not define, undefine, or mention in comments any of
12586 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
12587 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
12588 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
12589 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
12590 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
12591 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
12592 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
12593 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
12594 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
12595
12596 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12597
12598 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
12599 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
12600 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
12601 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
12602 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
12603 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
12604 Delete.
12605 * defaults.h (BITS_PER_WORD): Define.
12606 * doc/tm.texi (BITS_PER_WORD): Document default value.
12607
12608 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
12609 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
12610 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
12611
12612 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12613
12614 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
12615 lieu of explicit sizeof/sizeof.
12616 * i386.c (override_options, ix86_init_mmx_sse_builtins,
12617 ix86_expand_builtin): Likewise.
12618 * mips.c (mips_add_gc_roots): Likewise.
12619 * mmix.c (mmix_output_condition): Likewise.
12620 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
12621 altivec_init_builtins): Likewise.
12622 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
12623 * cppexp.c (Nsuff, parse_number): Likewise.
12624 * cppinit.c (builtin_array_end): Likewise.
12625 * gcc.c (n_default_compilers, process_command): Likewise.
12626 * genpreds.c (output_predicate_decls): Likewise.
12627 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
12628 * lcm.c (N_ENTITIES): Likewise.
12629 * stor-layout.c (set_sizetype): Likewise.
12630
12631 2002-03-03 Richard Henderson <rth@redhat.com>
12632
12633 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
12634 for types or labels.
12635
12636 2002-03-03 Richard Henderson <rth@redhat.com>
12637
12638 * c-decl.c (start_decl): Initialized variables are not common.
12639
12640 2002-03-02 Per Bothner <per@bothner.com>
12641
12642 * gcc.c (option_map): Suport new --bootclasspath option.
12643 --CLASSPATH is now just an alias for --classpath.
12644
12645 2002-03-02 Richard Henderson <rth@redhat.com>
12646
12647 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
12648 load if "internal" visibility.
12649 * doc/extend.texi: Document visibility meanings.
12650
12651 2002-03-02 Richard Henderson <rth@redhat.com>
12652
12653 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
12654 to functions as well.
12655
12656 2002-03-02 Richard Henderson <rth@redhat.com>
12657
12658 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
12659 (handle_visibility_attribute): Don't call assemble_visibility.
12660 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
12661 without asmspec. Invoke assemble_alias when needed.
12662 * varasm.c (maybe_assemble_visibility): New.
12663 (assemble_start_function, assemble_variable, assemble_alias): Use it.
12664
12665 2002-03-02 Richard Henderson <rth@redhat.com>
12666
12667 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
12668 invoke ENCODE_SECTION_INFO with first call flag.
12669
12670 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
12671 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
12672 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
12673 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
12674 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12675 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12676 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
12677 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
12678 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
12679 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
12680 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12681 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
12682 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12683 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
12684 config/mcore/mcore-protos.h, config/mcore/mcore.c,
12685 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
12686 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
12687 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
12688 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
12689 config/sh/sh.h, config/sparc/sparc.h,
12690 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
12691 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
12692 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
12693 FIRST argument. As needed, examine it and do nothing.
12694
12695 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
12696 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12697 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
12698
12699 * config/arm/t-pe (pe.o): Add dependencies.
12700
12701 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12702
12703 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
12704 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
12705 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
12706 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
12707 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
12708 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
12709 * defaults.h (BITS_PER_UNIT): Define.
12710 * doc/tm.texi (BITS_PER_UNIT): Document default value.
12711
12712 2002-03-02 Kazu Hirata <kazu@hxi.com>
12713
12714 * config/h8300/h8300-protos.h: Add a prototype for
12715 compute_a_shift_length.
12716 * config/h8300/h8300.c (h8300_asm_insn_count): New.
12717 (compute_a_shift_length): Likewise.
12718 (h8300_adjust_insn_length): Do not adjust insn length of shift
12719 insns.
12720 * config/h8300/h8300.md (anonymous shift patterns): Use
12721 compute_a_shift_length.
12722
12723 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12724
12725 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
12726 trunc_int_for_mode.
12727
12728 * emit-rtl.c (offset_address): Call update_temp_slot_address.
12729
12730 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12731
12732 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
12733 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
12734 * flags.h (flag_zero_initialized_in_bss): Declare.
12735 * toplev.c (flag_zero_initialized_in_bss): New flag.
12736 (lang_independent_options): Add flag_zero_initialized_in_bss.
12737 * tree.c (initializer_zerop): New function.
12738 * tree.h (initializer_zerop): Declare.
12739 * varasm.c (assemble_variable): If we can emit bss, put zero
12740 initializers in the bss section.
12741
12742 2002-03-02 Alan Modra <amodra@bigpond.net.au>
12743
12744 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
12745 like more than one symbol per .weak directive.
12746
12747 2002-03-01 Richard Henderson <rth@redhat.com>
12748
12749 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
12750 adjust argument_pointer by pretend_args_size.
12751 (ia64_va_start): Adjust va_start address by -pretend_args_size.
12752
12753 2002-03-01 Kazu Hirata <kazu@hxi.com>
12754
12755 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
12756
12757 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
12758
12759 * toplev.c (rest_of_compilation): Delete dead jumptables before
12760 loop.
12761 * flow.c (delete_dead_jumptables): Make global.
12762 * rtl.h (delete_dead_jumptables): Declare.
12763
12764 2002-03-01 David Edelsohn <edelsohn@gnu.org>
12765
12766 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
12767 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
12768 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
12769
12770 2002-03-01 Kazu Hirata <kazu@hxi.com>
12771
12772 * config/h8300/h8300-protos.h: Fix formatting.
12773 * config/h8300/h8300.c: Likewise.
12774 * config/h8300/h8300.h: Likewise.
12775
12776 2002-03-01 Kazu Hirata <kazu@hxi.com>
12777
12778 * config/h8300/h8300.c (print_operand): Support 16-bit
12779 constant addresses.
12780 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
12781
12782 2002-02-28 Richard Henderson <rth@redhat.com>
12783
12784 * expmed.c (store_bit_field): Prevent generation of CONCATs;
12785 pun complex values as integers; use gen_lowpart instead of
12786 gen_rtx_SUBREG.
12787 (extract_bit_field): Likewise.
12788
12789 2002-03-01 Alan Modra <amodra@bigpond.net.au>
12790 David Edelsohn <edelsohn@gnu.org>
12791
12792 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
12793 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
12794 (SUPPORTS_WEAK): Likewise.
12795 * output.h (add_weak): Add tree param.
12796 * varasm.c (add_weak): Likewise. Save decl.
12797 (struct weak_syms): Add decl field.
12798 (mark_weak_decls): New function.
12799 (init_varasm_once): ggc_add_root mark_weak_decls.
12800 (assemble_start_function): Use ASM_WEAKEN_DECL.
12801 (assemble_variable): Likewise.
12802 (assemble_alias): Likewise.
12803 (declare_weak): Pass decl to add_weak.
12804 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
12805 (remove_from_pending_weak_list): Declare and define for
12806 ASM_WEAKEN_DECL.
12807 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
12808 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
12809 * defaults.h (SUPPORTS_WEAK): Likewise.
12810 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12811 .weak for code sym. Do emit .size for descriptor sym.
12812 (ASM_DECLARE_FUNCTION_SIZE): Define.
12813 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
12814 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
12815 .lglobl unless TARGET_XCOFF. Formatting fixes.
12816 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12817 .weak for code sym.
12818 (HANDLE_PRAGMA_WEAK): Remove.
12819 (ASM_WEAKEN_LABEL): Remove.
12820 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
12821
12822 2002-03-01 Jason Merrill <jason@redhat.com>
12823
12824 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
12825 (TARGET_EXPR_CLEANUP): New macro.
12826
12827 2002-02-28 Steve Ellcey <sje@cup.hp.com>
12828
12829 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
12830 to take ptr_extend into account as third type of extension.
12831 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
12832 fields used by SUBREG_PROMOTED_UNSIGNED_P.
12833 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
12834 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
12835 * calls.c (precompute_arguments): Use new macro.
12836 (expand_call): Ditto.
12837 * combine.c (nonzero_bits): Ditto.
12838 (record_promoted_value): Ditto.
12839 * expr.c (store_expr): Ditto.
12840 (expand_expr): Ditto.
12841 * function.c (assign_parms): Ditto.
12842
12843 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
12844
12845 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
12846 override -shared and -shared-libgcc.
12847
12848 2002-02-28 David O'Brien <obrien@FreeBSD.org>
12849
12850 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
12851 of "ultrasparc".
12852 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
12853 to be broken.
12854
12855 2002-02-28 Richard Henderson <rth@redhat.com>
12856
12857 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
12858 4 cycle latency from MM producers.
12859 (ia64_internal_sched_reorder): Likewise with pipeline flush.
12860
12861 2002-02-28 Jakub Jelinek <jakub@redhat.com>
12862
12863 * mklibgcc.in: Don't use GNU make extension.
12864
12865 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
12866
12867 * c-parse.in (STATIC): New terminal.
12868 (scspec): New non-terminal. Update productions accordingly.
12869 (program): Remove bogus ifc / end ifc.
12870 (array_declarator): Simplify production using STATIC.
12871
12872 2002-02-28 Jim Meyering <meyering@lucent.com>
12873
12874 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
12875 \a still means TARGET_BELL.
12876
12877 2002-02-28 Richard Henderson <rth@redhat.com>
12878
12879 * haifa-sched.c (sched_emit_insn): New.
12880 (schedule_block): Use last_scheduled_insn to track last insn.
12881 * sched-int.h (sched_emit_insn): Prototype.
12882 * config/ia64/ia64.c (last_issued): Remove.
12883 (ia64_variable_issue): Don't set it.
12884 (nop_cycles_until): Use sched_emit_insn.
12885
12886 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
12887
12888 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
12889 extended constants.
12890
12891 2002-02-28 Kazu Hirata <kazu@hxi.com>
12892
12893 * config/h8300/h8300.c: Fix formatting.
12894 * config/h8300/h8300.h: Likewise.
12895
12896 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
12897
12898 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
12899 which may overwrite the high byte of the frame pointer.
12900
12901 2002-02-28 Bo Thorsen <bo@suse.de>
12902
12903 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
12904 (STARTFILE_SPEC): Add 64 bit files.
12905 (ENDFILE_SPEC): Likewise.
12906
12907 2002-02-28 Jason Merrill <jason@redhat.com>
12908
12909 * c-decl.c (finish_function): Only warn about missing return
12910 statement with -Wreturn-type.
12911
12912 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
12913
12914 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
12915
12916 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
12917 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
12918
12919 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
12920
12921 * basic-block.h (BB_REACHABLE): Renumber.
12922 (BB_DIRTY, BB_NEW): New flags.
12923 (clear_bb_flags): Declare.
12924 (update_life_info_in_dirty_blocks): Declare.
12925 * cfg.c (clear_bb_flags): New function.
12926 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
12927 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
12928 reorder_insns, emit_insn_after): Mark block as dirty.
12929 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
12930 (update_life_info_in_dirty_blocks): New function.
12931 * recog.c (apply_change_group): Dirtify block.
12932
12933 * cse.c (cse_insn): Reorder emitting of jump insn to keep
12934 cfg consistent.
12935 * gcse.c (delete_null_pointer_checks): Likewise.
12936
12937 * toplev.c (dump_file_index): Move cse2 after bp,
12938 add DFI_null
12939 (dump_file_info): Similary.
12940 (rest_of_compilation): Avoid most of CFG rebuilds;
12941 do first if converision after null pointer checks, do cse2
12942 after branch prediction; avoid full liveness rebuild after
12943 initializing subregs.
12944 * invoke.texi (-d options): Document -du, renumber.
12945
12946 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
12947 (notice_new_block): Do not set BB_UPDATE_LIFE.
12948 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
12949 merge_blocks_move_successor_nojumps, merge_blocks,
12950 try_crossjump_to_edge): Likewise.
12951 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
12952 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
12953 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
12954 (merge_of_block): Do not use life_data_ok.
12955 (find_if_case_1): Do not use SET_UPDATE_LIFE.
12956 (if_convert): Use BB_DIRTY mechanizm to update life.
12957 * lcm.c (optimize_mode_switching): Update
12958 update_life_info_in_dirty_blocks
12959
12960 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
12961
12962 * Makefile.in (integrate.o): Update.
12963 * c-decl.c (copy_lang_decl): Rename.
12964 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
12965 * integrate.c: Include langhooks.h.
12966 (copy_decl_for_inlining): Update to use langhook.
12967 * langhooks-def.h (lhd_do_nothing_t,
12968 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
12969 (LANG_HOOKS_INITIALIZER): Update.
12970 * langhooks.c (lhd_do_nothing_t): New.
12971 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
12972 * tree.h (copy_lang_decl): Remove.
12973 objc:
12974 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
12975
12976 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
12977
12978 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
12979 POST_DEC, and POST_MODIFY.
12980
12981 2002-02-27 Zack Weinberg <zack@codesourcery.com>
12982
12983 * c-typeck.c (digest_init): Remove unused parameter; all
12984 callers changed.
12985
12986 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
12987
12988 * expmed.c (expand_shift): Correctly test for low part of a
12989 subreg.
12990
12991 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
12992
12993 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
12994 insn UIDs with insn addresses.
12995
12996 2002-02-27 Zack Weinberg <zack@codesourcery.com>
12997
12998 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
12999 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
13000 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
13001 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
13002 gcc.c, toplev.c: Delete code implementing -traditional mode.
13003
13004 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
13005 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
13006 Document removal of -traditional mode for compilation, and
13007 remove documentation only relevant to that mode.
13008
13009 * config/nextstep.h, config/ptx4.h, config/svr4.h,
13010 config/convex/convex.h, config/d30v/d30v.h,
13011 config/i386/dgux.h, config/i386/osf1elf.h,
13012 config/i386/osfelf.h, config/i386/osfrose.h,
13013 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
13014 config/m68k/hp310.h, config/m88k/dgux.h,
13015 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
13016 config/m88k/m88k.h, config/m88k/openbsd.h,
13017 config/mips/abi64.h, config/mips/osfrose.h,
13018 config/mips/svr4-5.h, config/mips/svr4-t.h,
13019 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13020 config/stormy16/stormy16.h: Remove all references to
13021 -traditional from target specs. Delete all mention of the
13022 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
13023 delete a couple of commented-out definitions of
13024 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
13025 to -traditional.
13026
13027 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
13028 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
13029
13030 2002-02-27 Zack Weinberg <zack@codesourcery.com>
13031
13032 * mklibgcc.in: Don't use \n in a line subject to
13033 interpretation by echo.
13034
13035 2002-02-27 Graham Stott <grahams@redhat.com>
13036
13037 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
13038 Constify NAME.
13039
13040 * loop.c (prescan_loop): Handle PARALLEL.
13041
13042 * unroll.c (loop_iterations): Return 0 if the add_val for
13043 a BIV is REG.
13044
13045 * final.c (output_operand_lossage): Constify PFX_STR.
13046
13047 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
13048
13049 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
13050
13051 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
13052 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
13053
13054 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
13055
13056 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13057
13058 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
13059
13060 * cpplex.c (_cpp_lex_token): Handle directives in macro
13061 arguments.
13062 * cpplib.c (_cpp_handle_directive): Save and restore state
13063 if parsing macro args when entering a directive.
13064 * cppmacro.c (collect_args): No need to handle directives
13065 in macro arguments.
13066 (enter_macro_context, replace_args): Use the original macro
13067 definition in case it was redefined whilst collecting arguments.
13068 doc:
13069 * cpp.texi: Update.
13070
13071 2002-02-26 David Edelsohn <edelsohn@gnu.org>
13072
13073 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
13074 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
13075 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
13076 method on AIX.
13077 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
13078 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
13079 (load_toc_v4_PIC_2): Same.
13080
13081 2002-02-26 Alan Modra <amodra@bigpond.net.au>
13082
13083 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
13084
13085 2002-02-26 Richard Henderson <rth@redhat.com>
13086
13087 * config/alpha/alpha.md (ashldi_se): Re-enable.
13088
13089 2002-02-26 Richard Henderson <rth@redhat.com>
13090
13091 * config/alpha/alpha.c (alpha_encode_section_info): Examine
13092 MODULE_LOCAL_P; improve commentary.
13093
13094 2002-02-26 Zack Weinberg <zack@codesourcery.com>
13095
13096 * doc/cpp.texi: Clarify documentation of relationship between
13097 #line and #include.
13098
13099 2002-02-26 Kazu Hirata <kazu@hxi.com>
13100
13101 * config/h8300/h8300-protos.h: Update the prototype for
13102 compute_logical_op_length. Add the prototype for
13103 compute_logical_op_cc.
13104 * config/h8300/h8300.c (compute_logical_op_length): Figure out
13105 code from operands.
13106 (compute_logical_op_cc): New.
13107 * config/h8300/h8300.md: Combine all the logical op patterns
13108 in HImode and SImode. Use compute_logical_op_cc.
13109
13110 2002-02-26 Kelley Cook <kelleycook@comcast.net>
13111
13112 * config/i386/i386.c (print_operand): Don't append ATT-style
13113 length suffixs to x87 opcodes when in Intel mode.
13114
13115 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
13116
13117 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
13118 (init_emit_once): Update calls.
13119 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
13120 (init_syntax_once): Prototype.
13121
13122 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
13123
13124 * pa-linux.h (LIB_SPEC): Update definition.
13125 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
13126
13127 2002-02-26 Richard Henderson <rth@redhat.com>
13128
13129 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
13130 if we emitted a stop bit.
13131
13132 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13133
13134 * configure.in (libgcc_visibility): Substitute.
13135 * configure: Rebuilt.
13136 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
13137 defined symbols .hidden.
13138
13139 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13140
13141 * attribs.c (c_common_attribute_table): Add visibility.
13142 (handle_visibility_attribute): New function.
13143 * varasm.c (assemble_visibility): New function.
13144 * output.h (assemble_visibility): Add prototype.
13145 * tree.h (MODULE_LOCAL_P): Define.
13146 * crtstuff.c (__dso_handle): Use visibility attribute.
13147 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
13148 for MODULE_LOCAL_P symbols too.
13149 * config/ia64/ia64.c (ia64_encode_section_info): Handle
13150 MODULE_LOCAL_P symbols the same way as local symbols.
13151 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
13152 into .sdata/.sbss by the user.
13153 * doc/extend.texi (Function Attributes): Document visibility
13154 attribute.
13155
13156 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13157
13158 PR debug/5770
13159 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
13160 STRING_CST initializer spanning the whole variable without
13161 embedded zeros.
13162 If expand_expr returned MEM, don't use it.
13163
13164 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
13165
13166 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
13167 generate a die for the lexical block.
13168
13169 2002-02-26 Kazu Hirata <kazu@hxi.com>
13170
13171 * config/h8300/h8300-protos.h: Add a prototype for
13172 compute_logical_op_length.
13173 * config/h8300/h8300.c (compute_logical_op_length): New.
13174 * config/h8300/h8300.md (anonymous logical patterns): Use
13175 compute_logical_op_length for length.
13176
13177 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13178
13179 * dwarf2out.c (modified_type_die): Do not call type_main_variant
13180 for vectors.
13181 (gen_type_die): Same.
13182
13183 * attribs.c (handle_vector_size_attribute): Set debug information.
13184
13185 2002-02-26 Daniel Egger <degger@fhm.edu>
13186
13187 * config/rs6000/rs6000.md: Swap define_insn attributes to
13188 fix incorrect generation of merge high instructions instead
13189 of merge low.
13190
13191 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13192
13193 * c-typeck.c (really_start_incremental_init): Use
13194 bitsize_zero_node for vectors.
13195
13196 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13197
13198 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
13199 ("*set_vrsave_internal"): Same.
13200
13201 2002-02-25 Richard Henderson <rth@redhat.com>
13202
13203 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
13204 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
13205
13206 2002-02-25 Jakub Jelinek <jakub@redhat.com>
13207
13208 PR target/5755
13209 * config/i386/i386.c (ix86_return_pops_args): Only pop
13210 fake structure return argument if it was passed on the stack.
13211
13212 2002-02-25 Jason Merrill <jason@redhat.com>
13213
13214 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
13215 RESULT_DECL.
13216
13217 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
13218
13219 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
13220 link with shared_name only.
13221 * doc/invoke.texi (Link Options): Document new behavior.
13222
13223 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
13224
13225 * c-typeck.c (push_init_level): Handle vectors.
13226
13227 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
13228
13229 * config/sparc/sparc.c (const64_high_operand): Zero-extend
13230 operands of SPARC_SETHI_P.
13231 (input_operand): Likewise.
13232 (sparc_emit_set_const32): Likewise.
13233 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
13234 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
13235 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
13236 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
13237 (movdi_insn_sp64_vis): Likewise.
13238 (movdi split, movdf split): Use SETHI32.
13239 * doc/md.texi: Document SPARC constraints L, M and N.
13240
13241 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
13242
13243 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
13244 ("*set_vrsave_internal"): use mfspr for Darwin.
13245
13246 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
13247 gen_get_vrsave_internal.
13248
13249 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13250
13251 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
13252
13253 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
13254
13255 * cpplex.c (cpp_interpret_charconst): Get signedness or
13256 otherwise of wide character constants correct.
13257 * cppexp.c (lex): Get signedness of wide charconsts correct.
13258
13259 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13260
13261 * optabs.c (widen_operand): Only call convert_modes for
13262 promoted SUBREG if signedness matches.
13263 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
13264
13265 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13266
13267 * cpplib.c (glue_header_name): Use local buffer to build up
13268 header name.
13269
13270 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13271
13272 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
13273
13274 2002-02-23 Kazu Hirata <kazu@hxi.com>
13275
13276 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
13277 H8/300[HS] separately.
13278 * config/h8300/h8300.md: Remove the early clobber constraint
13279 from bit field patterns.
13280
13281 2002-02-23 Kazu Hirata <kazu@hxi.com>
13282
13283 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
13284 register_operand.
13285 (mulhisi3): Likewise.
13286 (umulqisi3): Likewise.
13287 (umulhisi3): Likewise.
13288
13289 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13290
13291 * cppinit.c (output_deps): Correct test for stdout output.
13292 (init_dependency_output): Cure warning.
13293
13294 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13295
13296 * expr.c (store_expr): When converting expression to promoted
13297 equivalent type, allow using SUBREG_REG of TARGET as the target
13298 of the expansion of EXP.
13299 * loop.c (basic_induction_var, case SUBREG): Always look inside.
13300 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
13301 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
13302 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
13303 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
13304
13305 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
13306
13307 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
13308 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
13309 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
13310
13311 2002-02-23 Jakub Jelinek <jakub@redhat.com>
13312
13313 PR optimization/5747
13314 * loop.c (scan_loop): Update reg info if move_movables created new
13315 pseudos.
13316
13317 2002-02-23 David Edelsohn <edelsohn@gnu.org>
13318
13319 * gcc.c (init_gcc_spec): Revert last change.
13320
13321 2002-02-23 David Edelsohn <edelsohn@gnu.org>
13322
13323 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
13324 gpc_reg_operand constraint.
13325
13326 2002-02-23 Alan Modra <amodra@bigpond.net.au>
13327
13328 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
13329 Simplify comparison of `low'.
13330 (add_operand): Fix formatting.
13331 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
13332 (mask_operand): Disallow mask to wrap in 64-bit mode.
13333 (rs6000_stack_info): Remove redundant test setting push_p.
13334 (output_toc): Fix formatting.
13335 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
13336 cc_reg_not_cr0_operand constraint.
13337 (booldi3, boolcdi3 splitters): Same.
13338
13339 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
13340
13341 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
13342
13343 2002-02-22 David Edelsohn <edelsohn@gnu.org>
13344
13345 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
13346 gcc invoked with -shared-libgcc.
13347
13348 2002-02-22 Jakub Jelinek <jakub@redhat.com>
13349
13350 PR c++/5748
13351 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
13352 decl if any of elements was TREE_USED.
13353
13354 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
13355
13356 * config/sparc/sol2.h: Don't include sys/mman.h.
13357 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
13358 (arith_4096_operand): Don't throw high bits away.
13359 (const64_operand): Take sign extension of CONST_INTs into account.
13360 (const64_high_operand, sparc_emit_set_const32): Likewise.
13361 (GEN_HIGHINT64): Likewise.
13362 (sparc_emit_set_const64_quick1): Likewise.
13363 (const64_is_2insns): Likewise.
13364 (print_operand): Use trunc_int_for_mode for sign extension.
13365 * config/sparc/sparc.h (SMALL_INT32): Likewise.
13366 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
13367 chars. Assume CONST_INT is already properly sign-extended.
13368 (movdi split): Sign-extend each SImode part.
13369 (andsi3 split): Don't mask high bits off, so that result
13370 remains properly sign-extend.
13371 (iorsi3 split): Likewise.
13372 (xorsi3 split): Likewise.
13373
13374 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
13375
13376 * fold-const.c (fold): Fix typo in comments.
13377
13378 2002-02-21 Diego Novillo <dnovillo@redhat.com>
13379
13380 * Makefile.in (langhooks.o): Update dependencies.
13381
13382 2002-02-21 Diego Novillo <dnovillo@redhat.com>
13383
13384 * langhooks.c: Include flags.h.
13385
13386 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
13387
13388 * testsuite/gcc.dg/attr-alwaysinline.c: New.
13389
13390 * c-common.c (c_common_post_options): Set inline trees by
13391 default.
13392
13393 * doc/extend.texi (Function Attributes): Document always_inline
13394 attribute.
13395 Update documentation about inlining when not optimizing.
13396
13397 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
13398
13399 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
13400 unless DECL_ALWAYS_INLINE.
13401
13402 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
13403 unless DECL_ALWAYS_INLINE.
13404 (c_disregard_inline_limits): Disregard if always_inline set.
13405
13406 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
13407 Disregard if always_inline set.
13408 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
13409 unless DECL_ALWAYS_INLINE.
13410
13411 * attribs.c (handle_always_inline_attribute): New.
13412 (c_common_attribute_table): Add always_inline.
13413
13414 * config/rs6000/altivec.h: Add prototypes for builtins
13415 requiring the always_inline attribute.
13416
13417 2002-02-21 Eric Christopher <echristo@redhat.com>
13418
13419 * expmed.c (store_bit_field): Try to simplify the subreg
13420 before generating a new one when when the mode size of
13421 value is less than maxmode.
13422
13423 2002-02-21 Richard Henderson <rth@redhat.com>
13424
13425 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
13426 than gen_rtx_PLUS to form the sum.
13427 * explow.c (force_reg): Rearrange to not allocate new pseudo
13428 when force_operand returns a register.
13429 * expr.c (expand_assignment): Allow offset_rtx expansion to
13430 return a sum. Do not force addresses into registers.
13431 (expand_expr): Likewise.
13432 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
13433 to canonicalize arithmetic that didn't simpify.
13434 (simplify_plus_minus): New argument force; update
13435 all callers. Don't split CONST unless we can do something with it,
13436 and wouldn't lose the constness of the operands.
13437
13438 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
13439 that we generated earlier.
13440
13441 2002-02-21 Tom Tromey <tromey@redhat.com>
13442
13443 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13444 (output_line_info): Use constant `1', with a long explanatory
13445 comment.
13446 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
13447
13448 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
13449
13450 * jump.c (redirect_jump): If old label has no UID, don't try to
13451 delete it.
13452
13453 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
13454
13455 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
13456 If input is constant, do shifts at compile time.
13457
13458 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
13459
13460 * doc/extend.texi: Fix some more overfull hboxes.
13461
13462 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13463
13464 PR optimization/4994
13465 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
13466 register moves.
13467
13468 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13469
13470 PR c++/4574
13471 * expr.h (expand_and): Add mode argument.
13472 * expmed.c (expand_and): Add mode argument.
13473 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
13474 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
13475 * except.c (expand_builtin_extract_return_addr): Likewise.
13476 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13477 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
13478 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
13479 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
13480 * config/c4x/c4x.md: Use GEN_INT (x) instead of
13481 gen_rtx (CONST_INT, VOIDmode, x).
13482
13483 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13484
13485 PR c/4697:
13486 * stmt.c (warn_if_unused_value): Move side effects test once more.
13487
13488 2002-02-20 Torbjorn Granlund <tege@swox.com>
13489
13490 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
13491 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
13492
13493 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
13494
13495 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
13496 SUBREG or ZERO_EXTEND.
13497
13498 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
13499
13500 * sh.h (current_function_anonymous_args): Remove.
13501 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
13502 of current_function_varargs and current_function_stdarg is set.
13503 * sh.c (sh_expand_prologue): Check current_function_varargs /
13504 current_function_stdarg / TARGET_SH5 instead of
13505 current_function_anonymous_args.
13506
13507 * sh64.h (TARGET_VERSION): Define.
13508
13509 2002-02-20 David Edelsohn <edelsohn@gnu.org>
13510
13511 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
13512 VRSAVE_REGNO on TARGET_ALTIVEC.
13513
13514 2002-02-20 Alan Modra <amodra@bigpond.net.au>
13515
13516 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
13517 bits of SImode const_int.
13518 (includes_rshift_p): Likewise.
13519 (print_operand): Call mask_operand and mask64_operand with correct
13520 mode.
13521 (rs6000_output_function_epilogue): Pad traceback table to word.
13522 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
13523 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
13524 mask64_operand with correct mode.
13525 (FUNCTION_ARG_REGNO_P): Correct parentheses.
13526
13527 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13528
13529 PR debug/4461
13530 * varasm.c (get_pool_constant_mark): New.
13531 * rtl.h (get_pool_constant_mark): Add prototype.
13532 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
13533 be represented if it has not been output.
13534
13535 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
13536
13537 * combine.c (do_SUBST): Sanity check substitutions of
13538 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
13539 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
13540 CONST_INT into its operand.
13541 (known_cond): Likewise, for ZERO_EXTEND.
13542 * simplify-rtx.c (simplify_unary_operation): Fix condition to
13543 allow for simplification of wide modes. Reject CONST_INTs in
13544 ZERO_EXTEND when their actual mode is not given.
13545
13546 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
13547
13548 * c-decl.c (pushdecl): If no global declaration is found for an
13549 extern declaration in block scope, try a limbo one.
13550
13551 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13552
13553 PR c++/4401
13554 * c-common.c (pointer_int_sum): Moved from...
13555 * c-typeck.c (pointer_int_sum): ...here.
13556 * c-common.h (pointer_int_sum): Add prototype.
13557
13558 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13559
13560 PR c++/5713
13561 * c-decl.c (duplicate_decls): Return 0 if issued error about
13562 redeclaration.
13563
13564 2002-02-20 Roger Sayle <roger@eyesopen.com>
13565 Jakub Jelinek <jakub@redhat.com>
13566
13567 PR c/4389
13568 * tree.c (host_integerp): Ensure that the constant integer is
13569 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
13570 when pos is zero or non-zero respectively. Clarify comment.
13571 * c-format.c (check_format_info_recurse): Fix host_integerp
13572 usage; the pos argument should be zero when assigning to a
13573 signed HOST_WIDE_INT.
13574
13575 2002-02-20 Richard Henderson <rth@redhat.com>
13576
13577 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
13578 of the operand, rather than assuming TImode.
13579 (ix86_expand_binop_builtin): Cope with commutative patterns
13580 using nonimmediate_operand for both operands.
13581 (ix86_expand_timode_binop_builtin): Likewise.
13582 (ix86_expand_store_builtin): Validate operand 1.
13583 (ix86_expand_unop1_builtin): Likewise.
13584
13585 2002-02-20 Philip Blundell <philb@gnu.org>
13586
13587 PR 5705
13588 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
13589
13590 2002-02-20 Richard Henderson <rth@redhat.com>
13591
13592 PR c/5615
13593 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
13594
13595 2002-02-20 Tom Tromey <tromey@redhat.com>
13596
13597 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13598 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13599 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13600 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13601 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
13602 unconditionally.
13603
13604 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
13605
13606 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
13607 for (const_int 0) in X not just INTVAL.
13608
13609 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
13610
13611 * doc/extend.texi: Avoid or reduce overfull hboxes.
13612
13613 2002-02-20 Diego Novillo <dnovillo@redhat.com>
13614
13615 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
13616 operations if the field does not start at a mode boundary.
13617
13618 2001-02-20 Joel Sherrill <joel@OARcorp.com>
13619
13620 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
13621 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
13622 Also done for -Acpu and -Amachine.
13623
13624 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
13625
13626 * cppinit.c (init_dependency_output): Take deps output file
13627 from -o if none given with -MF. Suppress normal output.
13628 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
13629 * doc/cpp.texi, doc/invoke.texi: Update.
13630
13631 2002-02-19 Zack Weinberg <zack@codesourcery.com>
13632
13633 * toplev.c (output_quoted_string): Write unprintable
13634 characters with octal escapes.
13635
13636 2002-02-19 David Edelsohn <edelsohn@gnu.org>
13637
13638 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
13639 really_call_used[VRSAVE_REGNO] if not Altivec.
13640
13641 2002-02-19 Alan Modra <amodra@bigpond.net.au>
13642
13643 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
13644 MODE_MASK.
13645 (constant_pool_expr_1): Fix formatting.
13646 (rs6000_legitimize_reload_address): Likewise.
13647
13648 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13649
13650 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
13651 now that we have one.
13652
13653 2002-02-19 Zack Weinberg <zack@codesourcery.com>
13654
13655 * tree.h (struct tree_common): Remove aux. Add unused_0 at
13656 end of first block of bitfields (which was only seven bits);
13657 rename dummy to unused_1; remove comment which is no longer true.
13658
13659 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13660
13661 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
13662
13663 2002-02-19 Philip Blundell <pb@nexus.co.uk>
13664
13665 PR 5399
13666 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
13667 if generating PIC.
13668
13669 PR 5054
13670 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
13671 arm_is_longcall_p rather than inspecting call-type cookie
13672 directly.
13673 (call_value_insn) [TARGET_THUMB]: Likewise.
13674
13675 2002-02-19 Graham Stott <grahams@redhat.com>
13676
13677 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
13678
13679 2002-02-19 David Edelsohn <edelsohn@gnu.org>
13680
13681 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
13682 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
13683 (FP_SAVE_INLINE): Delete.
13684
13685 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
13686 * config/rs6000/eabi.asm: Remove ABI save restore routines.
13687 * config/rs6000/t-ppccomm: Build crtsavres.o.
13688 * config/rs6000/crtsavres.asm: New file.
13689
13690 2002-02-19 Philip Blundell <philb@gnu.org>
13691
13692 * config/arm/arm.c (use_return_insn): Don't reject interrupt
13693 functions.
13694 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
13695 (output_return_instruction): Allow interrupt functions to return with
13696 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
13697 (arm_expand_prologue): Subtract 4 before stacking LR in an
13698 interrupt function.
13699
13700 2002-02-19 Philip Blundell <pb@nexus.co.uk>
13701
13702 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
13703 decl, not just FUNCTION_DECL.
13704 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
13705 (arm_assemble_integer): Likewise.
13706 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
13707 marked local.
13708
13709 2002-02-19 matthew green <mrg@eterna.com.au>
13710
13711 * config.gcc (sparc-*-netbsdelf*): Enable target.
13712 (sparc64-*-netbsd*): New target.
13713 * config/sparc/netbsd-elf.h: New file.
13714 * config/sparc/t-netbsd64: New file.
13715
13716 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13717
13718 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
13719
13720 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
13721
13722 * doc/invoke.texi: explicitly list the style guidelines that
13723 -Weffc++ checks for.
13724
13725 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
13726
13727 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
13728
13729 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
13730
13731 PR other/5718
13732 * gcc.c (cpp_unique_options): Treat -o as indicating object file
13733 only if not -E. If -E, pass -o through to the preprocessor.
13734
13735 2002-02-19 Kazu Hirata <kazu@hxi.com>
13736
13737 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
13738 register number with an appropriate macro.
13739
13740 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
13741
13742 * doc/rtl.texi (Constants): Close @code tag.
13743
13744 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
13745
13746 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
13747 ("mmx_uavgv4hi3"): Same.
13748 ("pmulhrwv4hi3"): Same.
13749
13750 * tree-inline.c (walk_tree): Handle vectors.
13751
13752 * c-common.c (constant_expression_warning): Handle vectors.
13753 (overflow_warning): Same.
13754
13755 * sched-deps.c (sched_analyze_2): Handle vectors.
13756
13757 * rtlanal.c (rtx_unstable_p): Handle vectors.
13758 (rtx_varies_p): Same.
13759 (count_occurrences): Same.
13760 (regs_set_between_p): Same.
13761 (modified_between_p): Same.
13762 (modified_in_p): Same.
13763 (volatile_insn_p): Same.
13764 (volatile_refs_p): Same.
13765 (side_effects_p): Same.
13766 (may_trap_p): Same.
13767 (inequality_comparisons_p): Same.
13768 (replace_regs): Same.
13769 (computed_jump_p_1): Same.
13770
13771 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
13772 argument.
13773 (inner_mode_array): New.
13774 (copy_rtx): Handle vectors.
13775 (copy_most_rtx): Same.
13776 (rtx_equal_p): Same.
13777 (get_mode_alignment): Adjust for vectors.
13778
13779 * resource.c (mark_referenced_resources): Handle vectors.
13780 (mark_set_resources): Same.
13781
13782 * reload1.c (eliminate_regs): Handle vectors.
13783 (elimination_effects): Same.
13784 (scan_paradoxical_subregs): Same.
13785
13786 * reload.c (subst_reg_equivs): Handle vectors.
13787
13788 * regrename.c (scan_rtx): Handle vectors.
13789
13790 * regclass.c (reg_scan_mark_refs): Handle vectors.
13791
13792 * recog.c (find_single_use_1): Handle vectors.
13793
13794 * local-alloc.c (equiv_init_varies_p): Handle vectors.
13795 (contains_replace_regs): Same.
13796 (memref_referenced_p): Same.
13797
13798 * integrate.c (copy_rtx_and_substitute): Handle vectors.
13799 (subst_constants): Same.
13800
13801 * genattrtab.c (attr_copy_rtx): Handle vectors.
13802 (encode_units_mask): Same.
13803 (clear_struct_flag): Same.
13804 (count_sub_rtxs): Same.
13805
13806 * gcse.c (want_to_gcse_p): Handle vectors.
13807 (oprs_unchanged_p): Same.
13808 (hash_expr_1): Same.
13809 (oprs_not_set_p): Same.
13810 (expr_killed_p): Same.
13811 (compute_transp): Same.
13812 (store_ops_ok): Same.
13813
13814 * function.c (purge_addressof_1): Do not allow paradoxical subregs
13815 of vectors.
13816 (fixup_var_refs_1): Same.
13817 (instantiate_virtual_regs_1): Same.
13818
13819 * fold-const.c (operand_equal_p): Handle vectors.
13820 (fold): Same.
13821 (rtl_expr_nonnegative_p): Same.
13822
13823 * flow.c (mark_used_regs): Handle vectors.
13824
13825 * df.c (df_uses_record): Handle vectors.
13826
13827 * cselib.c (cselib_subst_to_values): Handle vectors.
13828 (cselib_mem_conflict_p): Same.
13829 (hash_rtx): Same.
13830
13831 * cse.c (canon_reg): Handle vectors.
13832 (fold_rt): Same.
13833 (cse_process_notes): Same.
13834 (count_reg_usage): Same.
13835 (canon_hash): Same.
13836
13837 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
13838
13839 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
13840
13841 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
13842 (gen_rtx): Handle CONST_VECTOR.
13843 (gen_const_vector_0): New.
13844 (copy_rtx_if_shared): CONST_VECTORs can be shared.
13845 (reset_used_flags): Same.
13846 (copy_insn_1): Same.
13847 (initializer_constant_valid_p): Handle VECTOR_CST.
13848
13849 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
13850
13851 * doc/rtl.texi (Constants): Document const_vector.
13852 (CONST0_RTX): Update for vectors.
13853 (RTL sharing): Same.
13854
13855 * print-tree.c (print_node): Add case for VECTOR_CST.
13856
13857 * tree.h (TREE_VECTOR_CST_ELTS): New.
13858 (struct tree_vector): New.
13859 (union tree_node): Add vector node.
13860 (build_vector): Add prototype.
13861
13862 * tree.def (VECTOR_CST): New.
13863
13864 * tree.c (build_vector): New.
13865
13866 * expmed.c (make_tree): Handle CONST_VECTOR.
13867
13868 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
13869 (CONST_VECTOR_ELT): New.
13870 (CONST_VECTOR_NUNITS): New.
13871
13872 * machmode.h (GET_MODE_INNER): New.
13873 (DEF_MACHMODE): Accept 8th arg.
13874
13875 * machmode.def: Add 8th argument for vector inner mode.
13876 Add inner vector modes for vectors.
13877
13878 * rtl.def (VEC_CONST): Remove.
13879 (CONST_VECTOR): New.
13880
13881 * expr.c (clear_storage): Allow vectors.
13882 (is_zeros_p): Handle VECTOR_CST.
13883
13884 * varasm.c (output_constant_pool): Handle vectors.
13885 (rtx_const): Add veclo and vechi fields.
13886 (kind): Add RTX_VECTOR.
13887 (decode_rtx_const): Add case for vector.
13888
13889 * config/rs6000/rs6000-protos.h: Add zero_constant.
13890
13891 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
13892 constants. Force easy vector constants into memory.
13893 (easy_vector_constant): New.
13894 (emit_easy_vector_constant): New.
13895 (rs6000_legitimize_reload_address): Do not generate bad reloads on
13896 darwin.
13897
13898 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
13899 instruction does.
13900 ("altivec_lvxl"): Same.
13901 (altivec_lvebx): Same.
13902 (altivec_lvehx): Same.
13903 (altivec_lvewx): Same.
13904 ("*movv4si_const0"): New.
13905 ("*movv4sf_const0"): New.
13906 ("*movv8hi_const0"): New.
13907 ("*movv16qi_const0"): New.
13908
13909 2002-02-18 Kazu Hirata <kazu@hxi.com>
13910
13911 * config/h8300/h8300.c (notice_update_cc): Use
13912 cc_status.value2.
13913
13914 2002-02-18 Kazu Hirata <kazu@hxi.com>
13915
13916 * config/h8300/h8300.md (divmod patterns): Change the
13917 constraints for operands[1] to register_operand.
13918
13919 2002-02-18 Kazu Hirata <kazu@hxi.com>
13920
13921 * config/h8300/h8300-protos.h: Remove the prototype for
13922 p_operand.
13923 * config/h8300/h8300.c (p_operand): Remove.
13924 * config/h8300/h8300.md: Replace p_operand with
13925 const_int_operand.
13926
13927 2002-02-18 Philip Blundell <pb@nexus.co.uk>
13928
13929 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
13930 comment.
13931 (output_return_instruction): Allow use of LDR to unstack
13932 return addresss even for interrupt handlers or when
13933 interworking. If compiling for ARMv5, use interworking-safe
13934 return instructions by default. Remove duplicated code and
13935 lengthy "strcat" sequences.
13936
13937 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13938
13939 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
13940 (LINK_EH_SPEC): Define.
13941 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
13942
13943 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
13944
13945 * config/s390/s390.c (s390_emit_prologue): Do not set the
13946 frame_related flag for call-clobbered registers.
13947
13948 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
13949
13950 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
13951 (construct_container): Fix handling of SSE operands.
13952 (ix86_expand_builtin): Fix handling of 64bit pointers.
13953 (mmx_maskmovq_rex): New pattern.
13954
13955 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
13956
13957 * regrename.c (kill_set_value): Handle subregs properly.
13958
13959 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
13960
13961 * objc/objc-act.c (handle_impent): Remove leading '*'
13962 from objc_class_name.
13963
13964 2002-02-17 Richard Henderson <rth@redhat.com>
13965
13966 * config/alpha/alpha.c (some_small_symbolic_operand,
13967 some_small_symbolic_operand_1, split_small_symbolic_operand,
13968 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
13969 Handle small SYMBOL_REFs anywhere, not just inside memories.
13970 * config/alpha/alpha-protos.h: Update.
13971 * config/alpha/alpha.h (PREDICATE_CODES): Update.
13972 * config/alpha/alpha.md (small symbolic operand splitter): Update.
13973
13974 2002-02-17 Roland McGrath <roland@frob.com>
13975
13976 * config.gcc (powerpc-*-gnu-gnualtivec*,
13977 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
13978 * config/rs6000/gnu.h: New file.
13979 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
13980 Grok "gnu" in rs6000_abi_name.
13981 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
13982 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
13983 Grok -mcall-gnu analogous to -mcall-linux et al.
13984 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13985 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
13986 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
13987
13988 2002-02-17 Jakub Jelinek <jakub@redhat.com>
13989
13990 PR c/3444:
13991 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
13992 shortening.
13993
13994 2002-02-17 Philipp Thomas <pthomas@suse.de>
13995
13996 * config/cris/cris.h: Undefine STARTFILE_SPEC and
13997 ENDFILE_SPEC before (re)defining them.
13998
13999 2002-02-17 Kazu Hirata <kazu@hxi.com>
14000
14001 * config/h8300/h8300.c: Fix formatting.
14002 * config/h8300/h8300.h: Likewise.
14003
14004 2002-02-17 Philipp Thomas <pthomas@suse.de>
14005
14006 * doc/tm.texi: Explain why empty strings should not be
14007 marked for translation.
14008
14009 2002-02-17 Philipp Thomas <pthomas@suse.de>
14010
14011 * final.c (output_operand_lossage): Changed to accept
14012 printf style arguments. Change calls where necessary.
14013 * output.h (output_operand_lossage): Change declaration
14014 accordingly. Update copyright.
14015 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
14016 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
14017 Update copyright date where necessary.
14018
14019 * config/i386/i386.c (print_operand): Likewise. Remove use of
14020 sprintf.
14021
14022 * config/cris/cris.c (cris_operand_lossage): Likewise.
14023 Rename parameter so that exgettext recognizes it as
14024 translatable message.
14025 (LOSE_AND_RETURN): Rename parameter to msgid.
14026
14027 2002-02-17 Kazu Hirata <kazu@hxi.com>
14028
14029 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
14030 hard coded register number with an appropriate macro.
14031 (HARD_REGNO_MODE_OK): Likewise.
14032 (ARG_POINTER_REGNUM): Likewise.
14033 (STATIC_CHAIN_REGNUM): Likewise.
14034 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
14035 * config/h8300/h8300.md (define_constants): Define more
14036 register numbers.
14037
14038 2002-02-17 Philipp Thomas <pthomas@suse.de>
14039
14040 * config/i386/i386.h: Don't mark empty strings for translation.
14041
14042 2002-02-16 H.J. Lu <hjl@gnu.org>
14043
14044 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
14045
14046 2002-02-16 Zack Weinberg <zack@codesourcery.com>
14047
14048 * cppinit.c (merge_include_chains): Check for brack being
14049 NULL before attempting to merge it with qtail.
14050
14051 2002-02-16 Andrew Cagney <ac131313@redhat.com>
14052
14053 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
14054 DBX_DEBUG.
14055
14056 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14057
14058 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
14059
14060 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14061
14062 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
14063 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
14064 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
14065
14066 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14067
14068 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
14069 now only if !TARGET_FIX.
14070 (*movsi_nt_vms_fix): New pattern.
14071
14072 2002-02-16 Douglas B Rupp <rupp@gnat.com>
14073
14074 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
14075 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
14076 (alpha_sa_mask, alpha_sa_size): Reflect above change.
14077 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
14078 (alpha_start_function, alpha_expand_epilogue): Likewise.
14079 (unicosmk_gen_dsib): Likewise.
14080
14081 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14082
14083 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
14084
14085 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
14086
14087 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
14088 check_and_change_labels, s390_final_chunkify): Delete.
14089 (s390_split_branches, s390_chunkify_pool): New functions.
14090 (s390_function_prologue): Call them.
14091
14092 * config/s390/s390.h (S390_REL_MAX): Delete.
14093 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
14094
14095 * config/s390/s390.md (cjump, icjump, jump): Fix length
14096 attribute calculation.
14097
14098
14099 2002-02-15 David Edelsohn <edelsohn@gnu.org>
14100
14101 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
14102 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
14103
14104 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14105
14106 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
14107 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
14108 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
14109
14110 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
14111
14112 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
14113
14114 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
14115
14116 * reload.c (find_dummy_reload): Check that an output register
14117 is valid for its mode.
14118
14119 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
14120
14121 * combine.c (known_cond): After replacing the REG of a SUBREG, try
14122 to simplify it.
14123
14124 * function.c (assign_parms): Demote promoted argument passed by
14125 transparent reference.
14126
14127 2001-02-14 Joel Sherrill <joel@OARcorp.com>
14128
14129 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
14130 -Acpu() and -Amachine() to eliminate warnings.
14131
14132 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
14133
14134 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
14135
14136 2002-02-14 Kazu Hirata <kazu@hxi.com>
14137
14138 * config/h8300/h8300-protos.h: Update the prototype for
14139 const_costs.
14140 * config/h8300/h8300.c (const_costs): Treat SET as a little
14141 more expensive operation.
14142 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
14143 reference to const_costs.
14144
14145 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
14146
14147 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
14148
14149 2002-02-14 Jakub Jelinek <jakub@redhat.com>
14150
14151 PR c/5503:
14152 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
14153 use arguments from newtype.
14154
14155 2002-02-13 Eric Christopher <echristo@redhat.com>
14156
14157 * config/mips/mips.c (override_options): Add check for march/mipsX
14158 on the same command line. Fix error message in cpu processing.
14159 Remove architecture and ISA checks.
14160
14161 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
14162
14163 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
14164
14165 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
14166
14167 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
14168
14169 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
14170 alternatives.
14171 ("*movv8hi_internal1"): Same.
14172 ("*movv16qi_internal1"): Same.
14173 ("*movv4sf_internal1"): Same.
14174
14175 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
14176 not push_reload for altivec modes.
14177
14178 2002-02-13 Joel Sherrill <joel@OARcorp.com>
14179
14180 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
14181 all RTEMS targets including removal of #includes from config/*/rtems*.h
14182 file and adding them to tm_file setting. Added xm_defines=POSIX to
14183 many targets.
14184 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
14185 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
14186 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
14187 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
14188 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
14189 config/m68k/rtemself.h: Ditto.
14190 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
14191 config/mips/rtems64.h: Ditto.
14192 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
14193 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
14194 Ditto.
14195 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
14196 config/sparc/rtemself.h: Ditto.
14197 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
14198 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
14199 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
14200 more like arm-elf.
14201 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
14202 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
14203 target made more similar to i386-elf.
14204 * config/i386/t-rtems-i386: Added soft float support and multilibs.
14205 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
14206 be similar to config/m68k/t-m68kelf.
14207 * gthr-rtems.h: Encapsulate with extern "C" for C++.
14208
14209 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
14210
14211 * regmove.c (kill_value): Handle subregs.
14212
14213 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
14214
14215 * i386.md (mul patterns): Allow memory operand to be first;
14216 add expanders where needed; fix constraints.
14217 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
14218 Allow memory operand to be the first.
14219
14220 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
14221 operands.
14222
14223 2002-02-13 Jakub Jelinek <jakub@redhat.com>
14224
14225 PR c/5681:
14226 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
14227 GET_MODE (x).
14228
14229 2002-02-13 Jakub Jelinek <jakub@redhat.com>
14230
14231 PR optimization/5547:
14232 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
14233 all valid IA-32 address modes involving non-scaled %ebx and
14234 GOT/GOTOFF as displacement.
14235
14236 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
14237
14238 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
14239 after emitting ltorg insns.
14240
14241 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
14242 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
14243 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
14244 *abssf2): Fix "op_type" attribute.
14245
14246 2002-02-13 Douglas B Rupp <rupp@gnat.com>
14247
14248 * mkconfig.sh: Avoid using a subshell redirect.
14249 ($output.T): Change to $(output)T.
14250 (ENABLE_NLS): Remove unneeded undef.
14251
14252 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
14253 * config/alpha/x-vms (libsubdir): Define.
14254
14255 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
14256 register frame procedures. Optimize retrieving context.
14257
14258 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
14259 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
14260 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
14261
14262 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14263
14264 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
14265 Make same change as for find_base_value.
14266
14267 2002-02-13 Kazu Hirata <kazu@hxi.com>
14268
14269 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
14270 of QImode and SImode.
14271
14272 2002-02-13 Kazu Hirata <kazu@hxi.com>
14273
14274 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
14275 length computation of movsi.
14276 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
14277
14278 2002-02-13 Kazu Hirata <kazu@hxi.com>
14279
14280 * config/h8300/h8300.md (subqi3): Tighten the predicate for
14281 operands[2] to register_operand.
14282
14283 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
14284
14285 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
14286
14287 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
14288
14289 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
14290 for altivec_lvx* and altivec_stvx*.
14291 ("*movv4si_internal"): Add constraint for loading from GPRs.
14292 ("*movv8hi_internal1"): Same.
14293 ("*movv16qi_internal1"): Same.
14294 ("*movv4sf_internal1"): Same.
14295
14296 * config/rs6000/rs6000.c (altivec_register_operand): New.
14297
14298 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14299 altivec_register_operand.
14300
14301 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
14302
14303 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
14304 handle SYMBOL_REF.
14305
14306 2002-02-13 Stan Shebs <shebs@apple.com>
14307
14308 * c-typeck.c (digest_init): Handle vectors.
14309 (really_start_incremental_init): Same.
14310 (pop_init_level): Same.
14311 (process_init_element): Same.
14312
14313 * varasm.c (output_constant): Same.
14314
14315 * expr.c (clear_storage): Same.
14316 (store_constructor): Same.
14317
14318 2002-02-12 Eric Christopher <echristo@redhat.com>
14319
14320 * explow.c (hard_function_value): Add comment explaining
14321 signed/unsigned comparison.
14322
14323 2002-02-12 Jakub Jelinek <jakub@redhat.com>
14324
14325 * jump.c (never_reached_warning): Add finish argument.
14326 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
14327 real insn after end.
14328 * rtl.h (never_reached_warning): Adjust prototype.
14329 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
14330 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
14331 never_reached_warning.
14332
14333 2002-02-12 Graham Stott <grahams@redhat.com>
14334
14335 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
14336
14337 2002-02-12 Kazu Hirata <kazu@hxi.com>
14338
14339 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
14340 logical shifts on H8/300.
14341 (shift_alg_si): Improve several shifts on H8/300.
14342 (get_shift_alg): Likewise.
14343
14344 2002-02-12 Graham Stott <grahams@redhat.com>
14345
14346 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
14347
14348 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14349
14350 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
14351 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
14352
14353 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
14354
14355 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
14356 non-CONST_INT through default_assemble_integer.
14357 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
14358 <case 8>: Abort for CONST_DOUBLE.
14359
14360 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14361
14362 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
14363 is specified.
14364 * config/pa/pa-linux.h (LIB_SPEC): Delete.
14365 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14366
14367 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
14368
14369 * config/stormy16/stormy16.md (zero_extendqihi2): New.
14370
14371 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
14372
14373 * regrename.c (regrename_optimize): Don't accept a
14374 part-clobbered register if the replaced register is not part
14375 clobbered.
14376
14377 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
14378 take padding into account when computing the argument value.
14379
14380 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
14381
14382 * combine.c (try_combine): Apply substitutions in
14383 CALL_INSN_FUNCTION_USAGE too.
14384
14385 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
14386
14387 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
14388 __builtin_altivec_abs*.
14389 (bdesc_abs): New.
14390
14391 * config/rs6000/rs6000.h (rs6000_builtins): Add
14392 ALTIVEC_BUILTIN_ABS*.
14393
14394 * config/rs6000/altivec.h: Use const char for builtins expecting
14395 literals.
14396 (vec_abs): New versions for C and C++.
14397 (vec_abss): Same.
14398
14399 2002-02-10 Kazu Hirata <kazu@hxi.com>
14400
14401 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
14402 using Pmode.
14403
14404 2002-02-10 Kazu Hirata <kazu@hxi.com>
14405
14406 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
14407 constant definition from h8300.md.
14408 (FRAME_POINTER_REGNUM): Likewise.
14409 * config/h8300/h8300.md (define_constants): Add FP_REG.
14410
14411 2002-02-10 Kazu Hirata <kazu@hxi.com>
14412
14413 * config/h8300/h8300.c (print_operand): Remove redundant code.
14414
14415 2002-02-10 Kazu Hirata <kazu@hxi.com>
14416
14417 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
14418 * config/h8300/h8300.c (byte_reg): Make it static.
14419
14420 2002-02-10 Richard Henderson <rth@redhat.com>
14421
14422 PR c/5623
14423 * c-typeck.c (incomplete_type_error): Handle flexible array members.
14424
14425 2002-02-10 Richard Henderson <rth@redhat.com>
14426
14427 PR c++/5624
14428 * tree.c (append_random_chars): Don't abort if main_input_filename
14429 does not exist.
14430
14431 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
14432
14433 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
14434
14435 2002-02-10 Kazu Hirata <kazu@hxi.com>
14436
14437 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
14438 (pushhi1): Likewise.
14439
14440 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
14441
14442 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
14443 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
14444
14445 2002-02-09 David O'Brien <obrien@FreeBSD.org>
14446
14447 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
14448 remove MASK_VIS.
14449 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
14450
14451 2002-02-09 Kazu Hirata <kazu@hxi.com>
14452
14453 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
14454 a half of an SImode register on H8/300.
14455
14456 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
14457
14458 * i386.md (movdi_2): Add missing '!'.
14459
14460 2002-02-09 Kazu Hirata <kazu@hxi.com>
14461
14462 * config/h8300/h8300.h: Fix formatting. Remove commented-out
14463 definitions.
14464
14465 2002-02-09 Kazu Hirata <kazu@hxi.com>
14466
14467 * config/h8300/h8300.md (length): Correct the distance valid
14468 for the short branch.
14469
14470 2002-02-09 Kazu Hirata <kazu@hxi.com>
14471
14472 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
14473
14474 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14475
14476 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
14477 registers in SImode.
14478 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
14479 part-clobbered.
14480
14481 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
14482 patch.
14483
14484 Contribute sh64-elf.
14485 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14486 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
14487 (sh_cannot_modify_jumps_p): New function.
14488 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
14489 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
14490 (sh_ms_bitfield_layout_p): New function.
14491 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
14492 Zack Weinberg <zack@codesourcery.com>
14493 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
14494 expand_simple_binop instead of expand_binop.
14495 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
14496 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
14497 use of .quad and .uaquad.
14498 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
14499 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
14500 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14501 * config/sh/sh.md (movdi_const, movdi_const_32bit,
14502 movdi_const_16bit): Make sure all CONSTs have modes.
14503 (sym2PIC): Ditto, but by adjusting all callers.
14504 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
14505 if the prologue calls the SHmedia argument decoder or register
14506 saver.
14507 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14508 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
14509 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
14510 (sh_expand_epilogue): Don't emit USE of return target register.
14511 (prepare_move_operands): Legitimize DImode PIC addresses.
14512 (sh_media_register_for_return): Skip tr0, used to initialize the
14513 PIC register.
14514 (sh_expand_prologue): Remove explicit USE of return register.
14515 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
14516 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
14517 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
14518 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
14519 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
14520 EXTRA_CONSTRAINT_T.
14521 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
14522 (MOVI_SHORI_BASE_OPERAND_P): New.
14523 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
14524 (EXTRA_CONSTRAINT_T): Define in terms of them.
14525 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
14526 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
14527 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
14528 alternatives supporting TARGET_REGS.
14529 (UNSPEC_GOTPLT): New constant.
14530 (movdi split): Move incrementing of LABEL_NUSES...
14531 (movdi_const, movdi_const_32bit): Here. Use
14532 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
14533 (movdi_const_16bit): New.
14534 (call, call_value) [flag_pic]: Use GOTPLT.
14535 (call_pop, call_value_pop): New expands.
14536 (call_pop_compact, call_pop_rettramp): New insns.
14537 (call_value_pop_compact, call_value_pop_rettramp): New insns.
14538 (sibcall) [flag_pic]: Use GOT.
14539 (builtint_setjmp_receiver): Remove bogus, unused expand.
14540 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
14541 (*pt, *ptb, ptrel): New insns.
14542 (sym2GOT): Handle DImode GOT.
14543 (sym2GOTPLT, symGOTPLT2reg): New expands.
14544 (sym2PIC): New expand.
14545 (shcompact_return_tramp): Use GOTPLT to return trampoline.
14546 (shcompact_return_tramp_i): Use return register explicitly.
14547 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
14548 disable flag_reorder_blocks.
14549 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14550 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
14551 clobbers, for clarity.
14552 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
14553 restoring of r0 in macl as MAYBE_DEAD.
14554 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
14555 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
14556 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
14557 alter_subreg all over.
14558 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
14559 reload, instead of emitting instructions that would require
14560 reloading.
14561 (casesi_load_media): Add missing modes.
14562 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
14563 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
14564 as used if the argument decoder is called.
14565 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14566 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
14567 Pmode, then extend it to DImode if necessary.
14568 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14569 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
14570 constants in FPU-enabled SHmedia, let them be loaded from memory.
14571 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14572 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
14573 Adjust whitespace in assembly output templates.
14574 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14575 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
14576 mode of if_then_else.
14577 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
14578 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
14579 sh.h.
14580 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
14581 Joern Rennecke <amylaar@redhat.com>
14582 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
14583 (SUBTARGET_CPP_PTR_SPEC): New.
14584 (SUBTARGET_CPP_SPEC): Remove.
14585 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14586 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14587 Fix typo in previous checkin.
14588 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
14589 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
14590 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
14591 Alexandre Oliva <aoliva@redhat.com>
14592 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
14593 what single FP register can hold for SHmedia target.
14594 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14595 Alexandre Oliva <aoliva@redhat.com>
14596 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14597 Do not split into SUBREG.
14598 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
14599 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
14600 and added new functions as specified in SH5 ABI r9.
14601 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
14602 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
14603 8-byte boundary.
14604 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
14605 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
14606 gen_consttable_4 and gen_consttable_8. Emit multiple labels
14607 and consttable_window_ends.
14608 2001-06-03 Graham Stott <grahams@redhat,com>
14609 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
14610 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
14611 * config/sh/sh.c (print_operand): Handle floating-point pair,
14612 vector and matrix registers.
14613 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
14614 vector modes into account.
14615 * config/sh/sh.md (movv2sf): Split move between registers into
14616 movdf.
14617 (movv4sf, movv16sf): Introduce insns that get split only after
14618 reload.
14619 * config/sh/shmedia.h: Fix Copyright dates.
14620 * config/sh/ushmedia.h: Likewise. Move loop counter
14621 declarations into conditionals that uses them.
14622 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
14623 loop boundary.
14624 * config/sh/sshmedia.h: Fix Copyright dates.
14625 (sh_media_PUTCFG): Fix constraints.
14626 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
14627 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
14628 ptrmemfunc_vbit_in_delta for SH5.
14629 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
14630 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
14631 * invoke.texi: Likewise.
14632 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14633 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
14634 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
14635 GCC_pop_shmedia_regs_nofpu): New global symbols.
14636 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
14637 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
14638 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
14639 compact function with nonlocal labels.
14640 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
14641 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
14642 (initial_elimination_offset): Account for their stack space.
14643 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
14644 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
14645 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
14646 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
14647 least one of the operands to be a register.
14648 (movv2sf): Likewise. Renamed to movv2sf_i.
14649 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
14650 prepare_move_operands() before emitting SHmedia insns.
14651 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
14652 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
14653 Don't save nor initialize r12. Don't mis-align the stack.
14654 Pad the code with a nop.
14655 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
14656 stack.
14657 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
14658 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
14659 [__SHMEDIA__]: Implement.
14660 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
14661 * config/sh/sh.md: Set latency of `pt' closer to reality.
14662 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
14663 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
14664 Set move, load and store type attributes.
14665 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
14666 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
14667 profiling.
14668 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
14669 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
14670 * config/sh/sh.c (sh_media_register_for_return): New function.
14671 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
14672 branch-target register.
14673 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
14674 * config/sh/sh.md (return_media_i): Use any call-clobbered
14675 branch-target register.
14676 (return_media): If r18 wasn't copied in the prologue, copy it
14677 here.
14678 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
14679 Clear class FP0_REGS.
14680 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
14681 from elf.h.
14682 2001-03-08 DJ Delorie <dj@redhat.com>
14683 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
14684 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
14685 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
14686 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
14687 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
14688 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
14689 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
14690 return value correctly for call_cookie.
14691 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
14692 * config/sh/crt1.asm (start): Modified so as to call
14693 ___setup_argv_and_call_main.
14694 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
14695 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
14696 SHmedia mode.
14697 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
14698 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
14699 (STRIP_NAME_ENCODING): Use it.
14700 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
14701 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
14702 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
14703 prepare_scc_operands().
14704 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
14705 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
14706 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
14707 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
14708 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
14709 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
14710 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
14711 used in shcompact_incoming_args.
14712 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
14713 change.
14714 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
14715 mode.
14716 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
14717 Adjust accordingly.
14718 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
14719 Simplify. Adjust. Add sanity check.
14720 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
14721 FPU_SINGLE_BIT.
14722 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
14723 TARGET_SHCOMPACT.
14724 (udivsi3, divsi3): Use them.
14725 (force_mode_for_call): New insn.
14726 (call, call_value, sibcall_value): Emit it before SHcompact
14727 calls.
14728 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
14729 * config/sh/sh.md (call, call_value, sibcall): Make sure the
14730 call cookie is non-NULL before taking its value.
14731 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
14732 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
14733 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
14734 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
14735 block.
14736 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
14737 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
14738 temporary for stack adjusts. Use MACL and MACH to pass
14739 arguments to shcompact_incoming_args.
14740 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
14741 clobber r1.
14742 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
14743 (nested_trampoline): Load static chain address into r1.
14744 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
14745 2001-01-07 Alexandre Oliva <aoliva@redhat.com
14746 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
14747 fp_arith_reg_operand().
14748 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
14749 * config/sh/sh.md (casesi): Sign-extend the first two operands,
14750 and use signed compares for them.
14751 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
14752 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
14753 ones properly aligned.
14754 (find_barrier): Account for extra alignment needed for 8-byte wide
14755 constants.
14756 (machine_dependent_reorg): Require a label for the second 4-byte
14757 constant after an 8-byte one.
14758 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
14759 change.
14760 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
14761 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
14762 last_float when switching float modes.
14763 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
14764 auto-increment for general-purpose registers.
14765 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
14766 result.
14767 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
14768 for stack adjust.
14769 * config/sh/sh.c (sh_builtin_saveregs): Support using all
14770 registers for varargs.
14771 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
14772 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
14773 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
14774 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
14775 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
14776 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
14777 call_cookie accordingly.
14778 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
14779 (SHCOMPACT_BYREF): Likewise.
14780 (SHCOMPACT_FORCE_ON_STACK): New macro.
14781 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
14782 (sh_builtin_saveregs): Likewise.
14783 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14784 shcompact_incoming_args): Use new shift values. Support
14785 sequences of consecutive and non-consecutive pushes/pops.
14786 * config/sh/sh.md (return): Don't explicitly use PR_REG.
14787 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
14788 * config/sh/sh.h (TEXT_SECTION): Define.
14789 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
14790 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
14791 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
14792 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
14793 return values on FPU-enabled SHmedia.
14794 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
14795 FPU-enabled SHmedia.
14796 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
14797 value is returned in a non-FP reg and is not returned by
14798 reference.
14799 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
14800 jump_ind.
14801 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
14802 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
14803 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
14804 quad-aligned to be passed by callee-copy reference.
14805 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
14806 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
14807 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
14808 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
14809 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
14810 copying low-numbered FP regs to r7 and r8.
14811 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
14812 FP regs to general-purpose regs only if the copy was passed on the
14813 stack.
14814 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
14815 copying FP reg to r9.
14816 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
14817 copy FP regs to general-purpose regs only in outgoing calls.
14818 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
14819 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
14820 HOST_WIDE_INT.
14821 * config/sh/sh.h (struct sh_args): Document all fields.
14822 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
14823 passed partially on the stack should not consider making
14824 sibcalls.
14825 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
14826 stack_regs only for incoming calls. When passing FP args,
14827 make sure there are FP regs available before modifying
14828 call_cookie.
14829 (SHCOMPACT_BYREF): Pass double args in general-purpose
14830 registers by reference.
14831 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
14832 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
14833 attempt to generate sibcalls if the caller got any arguments
14834 by reference.
14835 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
14836 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
14837 to 8-byte boundaries.
14838 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
14839 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
14840 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
14841 stored in the stack.
14842 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
14843 for the offsets to have the ISA bit set.
14844 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
14845 invocation. Use beq instead of bgt to mark end of sequence of
14846 loads.
14847 (shcompact_incoming_args): Fix store of r2. Use beq instead of
14848 bgt to mark end of sequence of stores.
14849 * config/sh/sh.c (arith_operand): Don't check whether
14850 CONST_OK_FOR_J for now.
14851 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
14852 instead of long for conversion.
14853 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
14854 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
14855 before passing it to fprintf.
14856 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
14857 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
14858 Call set_fpscr before reading/writing SR.
14859 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
14860 Call set_fpscr.
14861 * config/sh/lib1funcs.asm: Add `.align 2' directives before
14862 SHmedia code.
14863 (FMOVD_WORKS): Define on SH5 with FPU.
14864 (set_fpscr): Define on SH5. Remove separate _fpscr_values
14865 setting.
14866 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
14867 _fpscr_values.
14868 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
14869 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
14870 address.
14871 (ia_main_table): Ditto.
14872 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
14873 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14874 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
14875 the definitions from sh.h.
14876 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
14877 TARGET_SH5.
14878 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
14879 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
14880 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14881 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
14882 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
14883 Increment LABEL_NUSES.
14884
14885 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
14886 TARGET_SH5.
14887 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
14888 defined.
14889 * config/sh/elf.h (SIZE_TYPE): Likewise.
14890 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14891 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14892 shcompact_incoming_args): Load switch table addresses using
14893 datalabel.
14894 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
14895 (NO_BUILTIN_SIZE_TYPE): Define.
14896 (SIZE_TYPE): Don't define.
14897 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
14898 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
14899 definition of __SH5__=32 for -m5-compact-nofpu.
14900 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
14901 ADDR_DIFF_VEC.
14902 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
14903 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
14904 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
14905 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
14906 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
14907 (INSN_LENGTH_ALIGNMENT): Likewise.
14908 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14909 * config/sh/sh.md (call, call_value, sibcall): Simplify
14910 copying of non-branch-target register.
14911 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14912 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
14913 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
14914 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14915 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
14916 floating-point values as structs.
14917 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
14918 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
14919 general-purpose register.
14920 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
14921 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
14922 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
14923 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
14924 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
14925 (ENCODE_SECTION_INFO): Enclose variables and constants in
14926 DATALABEL unspecs.
14927 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
14928 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
14929 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
14930 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
14931 only for LABEL_REFs. For SYMBOL_REFs, prepend
14932 SH_DATALABEL_ENCODING to the symbol name.
14933 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
14934 convert_mode().
14935 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
14936 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
14937 UNSPEC_DATALABEL.
14938 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
14939 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
14940 (DATALABEL_REF_P): Don't require CONST.
14941 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
14942 REL label.
14943 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
14944 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
14945 right.
14946 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
14947 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
14948 Use shallow_copy_rtx and PUT_MODE to change the mode of
14949 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
14950 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
14951 on SHmedia using GENERAL_REGs.
14952 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
14953 bltu_media_i): Fix reversion of conditions.
14954 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
14955 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
14956 * config/sh/sh.c (output_far_jump): Save r13 in macl.
14957 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
14958 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
14959 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
14960 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
14961 (GCC_nested_trampoline): Likewise.
14962 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
14963 * config/sh/sh.c (gen_datalabel_ref): Define.
14964 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
14965 (INITIALIZE_TRAMPOLINE): Likewise.
14966 (TRAMPOLINE_ADJUST_ADDRESS): Define.
14967 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
14968 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
14969 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
14970 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
14971 (ic_invalidate): Adjust for SH5.
14972 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
14973 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
14974 _nested_trampoline.
14975 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
14976 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
14977 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
14978 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
14979 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
14980 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
14981 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
14982 * config/sh/sh.c (target_reg_operand): Match only target-branch
14983 registers and pseudos that aren't virtual registers.
14984 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
14985 Copy operands that don't match target_reg_operand to pseudos.
14986 (call_media, call_value_media, sibcall_media): Use
14987 target_reg_operand instead of target_operand.
14988 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
14989 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
14990 * config/sh/sh.c (target_reg_operand): Match hardware registers
14991 other than branch-target registers.
14992 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
14993 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
14994 (fpscr_values) [SH5 == 32]: Define.
14995 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
14996 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
14997 Handle function addresses coming in SUBREGs.
14998 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
14999 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15000 shcompact_return_trampoline): Use datalabel where appropriate.
15001 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
15002 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
15003 general-purpose register to copy one branch-target register to
15004 another.
15005 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
15006 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
15007 SYMBOL_REFs with VOIDmode.
15008 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15009 bltu_media_i): New insns.
15010 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
15011 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
15012 (INIT_CUMULATIVE_ARGS): Likewise.
15013 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
15014 * machmode.def (V16SFmode): New mode.
15015 * c-common.c (type_for_mode): Support V2SF and V16SF.
15016 * tree.c (build_common_tree_nodes_2): Likewise.
15017 * tree.h (tree_index): Likewise.
15018 * calls.c (emit_call_1): Take args_so_far. Adjust all
15019 callers. Introduce CALL_POPS_ARGS.
15020 * tm.texi (CALL_POPS_ARGS): Document.
15021 * config/sh/crt1.asm: Implement in SHmedia mode.
15022 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
15023 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
15024 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
15025 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
15026 Implement divsi and udivsi in SHmedia mode. Introduce
15027 SHcompact trampolines.
15028 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
15029 only in SHmedia64.
15030 (regno_reg_class): Rewrite.
15031 (fp_reg_names): Remove.
15032 (sh_register_names, sh_additional_register_names): New.
15033 (print_operand): Added `u'. Support SUBREGs in addresses.
15034 Add parentheses around shifted CONSTs.
15035 (output_file_start): Output .mode and .abi directives.
15036 (shiftcosts, addsubcosts, multcosts): Adjust.
15037 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
15038 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
15039 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
15040 bytes, not registers. Take into account the need for the
15041 SHcompact incoming args trampoline. Adjust all callers.
15042 (sh_expand_prologue): Take stack_regs into account. Call
15043 incoming args trampoline. Keep stack aligned as per SH5 ABI.
15044 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
15045 stack aligned as per SH5 ABI.
15046 (sh_builtin_saveregs): Support SH5 ABI.
15047 (sh_build_va_list, sh_va_start): Likewise.
15048 (initial_elimination_offset): Take alignment into account.
15049 Compute location of PR according to the SH5 stack frame.
15050 (arith_reg_operand): Reject branch-target registers.
15051 (shmedia_6bit_operand): New.
15052 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
15053 (target_reg_operand): Match DImode only. Accept SUBREGs.
15054 (target_operand): New.
15055 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
15056 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
15057 SIBCALL_REGS for SHmedia.
15058 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
15059 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
15060 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
15061 (TARGET_SWITCHES): New SH5 flags.
15062 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
15063 VALID_REGISTER_P to disable unsupported registers.
15064 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
15065 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
15066 (FUNCTION_ARG_PADDING): Define.
15067 (FASTEST_ALIGNMENT): Adjust.
15068 (SH_REGISTER_NAMES_INITIALIZER): New.
15069 (sh_register_names): Declare.
15070 (DEBUG_REGISTER_NAMES): Define.
15071 (REGISTER_NAMES): Define based on sh_register_names.
15072 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
15073 (sh_additional_register_names): Declare.
15074 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
15075 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
15076 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
15077 (REGISTER_NATURAL_MODE): Define.
15078 (FIRST_PSEUDO_REGISTER): Adjust.
15079 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
15080 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
15081 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
15082 (VECTOR_MODE_SUPPORTED_P): Define.
15083 (REG_CLASS_CONTENTS): Adjust.
15084 (SMALL_REGISTER_CLASSES): Adjust.
15085 (REG_ALLOC_ORDER): Adjust.
15086 (INDEX_REG_CLASS): Adjust.
15087 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
15088 (CONST_OK_FOR_LETTER_P): Adjust.
15089 (PREFERRED_RELOAD_CLASS): Adjust.
15090 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
15091 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
15092 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
15093 (FIRST_FP_PARM_REG): Adjust.
15094 (CALL_POPS_ARGS): Define.
15095 (FUNCTION_ARG_REGNO_P): Adjust.
15096 (struct sh_args): New fields.
15097 (GET_SH_ARG_CLASS): Adjust.
15098 (INIT_CUMULATIVE_ARGS): Adjust.
15099 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
15100 (FUNCTION_ARG_ADVANCE): Adjust.
15101 (FUNCTION_ARG): Adjust.
15102 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
15103 (FUNCTION_ARG_CALLEE_COPIES): Define.
15104 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
15105 (STRICT_ARGUMENT_NAMING): Define.
15106 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
15107 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
15108 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
15109 (SETUP_INCOMING_VARARGS): Adjust.
15110 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
15111 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
15112 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
15113 (SUBREG_OK_FOR_INDEX_P): Adjust.
15114 (EXTRA_CONSTRAINT_S): Update.
15115 (EXTRA_CONSTRAINT_T): New.
15116 (EXTRA_CONSTRAINT): Adjust.
15117 (GO_IF_LEGITIMATE_INDEX): Adjust.
15118 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
15119 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
15120 (MOVE_MAX): Adjust.
15121 (MAX_MOVE_MAX): Define.
15122 (Pmode): Adjust.
15123 (CONST_COSTS): Adjust.
15124 (REGISTER_MOVE_COST): Adjust.
15125 (BRANCH_COST): Adjust.
15126 (TEXT_SECTION_ASM_OP): Adjust.
15127 (DBX_REGISTER_NUMBER): Adjust.
15128 (ASM_OUTPUT_DOUBLE_INT): New.
15129 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
15130 (PREDICATE_CODES): Adjust.
15131 (PROMOTE_MODE): Adjust.
15132 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
15133 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
15134 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
15135 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
15136 (DR0_REG, DR2_REG, DR4_REG): Renumber.
15137 (TR0_REG, TR1_REG, TR2_REG): New.
15138 (XD0_REG): Renumber.
15139 (UNSPEC_COMPACT_ARGS): New.
15140 (type): Added pt and ptabs.
15141 (length): Default to 4 on SHmedia. Default pt length to 12
15142 and 20 on SHmedia32 and SHmedia64, respectively.
15143 (pt): New function unit.
15144 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
15145 Add whitespace between operands of SHmedia instructions.
15146 (movdicc): Fix.
15147 (adddi3_media, addsi3_media): Adjust constraints.
15148 (subsi3) [SHmedia]: Force operand 1 into a register.
15149 (udivsi3_i1_media, udivsi3_i4_media): New.
15150 (udivsi3): Support SHmedia.
15151 (divsi3_i1_media, divsi3_i4_media): New.
15152 (divsi3): Support SHmedia.
15153 (anddi3, iordi3, xordi3): Adjust constraints.
15154 (zero_extendhidi2, zero_extendqidi2): New.
15155 (extendsidi2, extendhidi2, extendqidi2): New.
15156 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
15157 (pop_e, pop_fpul, pop_4): Likewise.
15158 (movsi_media): Support FP and BT registers.
15159 (movsi_media_nofpu): New. Adjust splits to DImode.
15160 (lduw, ldub): Renamed to zero_extend* above.
15161 (movqi_media): Fix typo.
15162 (movdi_media): Support FP and BT registers.
15163 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
15164 (movdi_const_32bit): New.
15165 (shori_media): Require immediate operand. Use `u' for output.
15166 (movdf_media, movsf_media): Simplified.
15167 (movdf_media_nofpu, movsf_media_nofpu): New.
15168 (movdf, movsf): Adjust
15169 (movv2sf, movv2sf, movv16sf): New.
15170 (beq_media, beq_media_i): Adjust constraints. Don't use
15171 scratch BT register.
15172 (bne_media, bne_media_i): Likewise.
15173 (bgt_media, bgt_media_i): Likewise.
15174 (bge_media, bge_media_i): Likewise.
15175 (bgtu_media, bgtu_media_i): Likewise.
15176 (bgeu_media, bgeu_media_i): Likewise.
15177 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
15178 bunordered): Emit jump insn. Force operands to registers when
15179 needed.
15180 (jump_media, jump): Simplify.
15181 (call_compact, call_compact_rettramp): New.
15182 (call_value_compact, call_value_compact_rettramp): New.
15183 (call_media, call_value_media): Simplify.
15184 (sibcall_compact, sibcall_media): New.
15185 (call, call_value): Adjust for SHmedia and SHcompact.
15186 (sibcall, sibcall_value, untyped_call): Likewise.
15187 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
15188 (indirect_jump): Adjust for SHmedia.
15189 (casesi_jump_media): New.
15190 (nop): Re-enable for SHmedia.
15191 (call_site): Restrict to SH1.
15192 (casesi): Adjust for SHmedia.
15193 (casesi_shift_media, casesi_load_media): New.
15194 (return): Explicitly use PR register. Call return trampoline
15195 on SHcompact.
15196 (return_i): Explicitly use PR register.
15197 (shcompact_return_tramp, shcompact_return_tramp_i): New.
15198 (return_media): Adjust.
15199 (shcompact_incoming_args): New.
15200 (epilogue): Adjust.
15201 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15202 (movstrsi): Disable on SH5.
15203 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
15204 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
15205 (subsf3, subsf3_media): Likewise.
15206 (mulsf3, mulsf3_media, mac_media): Likewise.
15207 (divsf3, divsf3_media): Likewise.
15208 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
15209 (floatsisf2, fux_truncsfsi2): Likewise.
15210 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
15211 constraints.
15212 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
15213 (cmpunsf_media, cmpsf): Likewise.
15214 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
15215 (abssf2, abssf2_media): Likewise.
15216 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
15217 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
15218 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
15219 (floatsidf2, fix_truncdfsi2): Likewise.
15220 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
15221 constraints.
15222 (cmpeqdf_media, cmpgtdf_media): Likewise.
15223 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
15224 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
15225 (absdf2, absdf2_media): Likewise.
15226 (extendsfdf2, extendsfdf2_media): Likewise.
15227 (truncsfdf2, truncsfdf2_media): Likewise.
15228 * config/sh/sh64.h: New file.
15229 * config/sh/t-sh64: New file.
15230 * config/sh/shmedia.h: New file.
15231 * config/sh/ushmedia.h: New file.
15232 * config/sh/sshmedia.h: New file.
15233 * configure.in: Added sh64-*-elf.
15234 * configure: Rebuilt.
15235 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
15236 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
15237 (reg_class_from_letter): Use `b' for TARGET_REGS.
15238 (print_operand): Support `%M', `%m', `AND' and
15239 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
15240 (andcosts): Adjust for SHmedia.
15241 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
15242 Likewise.
15243 (target_reg_operand): New function.
15244 * config/sh/sh-protos.h (target_reg_operand): Declare.
15245 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
15246 FP registers on SH5.
15247 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
15248 on SH4.
15249 (TARGET_REGISTER_P): New macro.
15250 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
15251 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
15252 (EXTRA_CONSTRAINT_S): New macro.
15253 (EXTRA_CONSTRAINT): Adjust.
15254 (FLOAT_TYPE_SIZE): Define to 32.
15255 (Pmode): DImode on SHmedia.
15256 (CONST_COSTS): Adjust for SHmedia literals.
15257 (PREDICATE_CODES): Added target_reg_operand.
15258 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
15259 * config/sh/sh.md: Remove all attrs from SHmedia insns.
15260 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
15261 (cmpdi): Accept SHmedia.
15262 (movdicc_false, movdicc_true): New insns.
15263 (movdicc): New expand.
15264 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
15265 no_new_pseudos.
15266 (addsi3_media): Match `S' constraint.
15267 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
15268 (negdi2): Expand for SHmedia.
15269 (one_cmpldi2): New expand.
15270 (zero_extendsidi2): Change from expand to insn.
15271 (extendsidi2): Add constraints.
15272 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
15273 LD/ST address. Fix SI immediate loading split.
15274 (movhi_media, movqi_media, lduw, ldub): New insns.
15275 (movhi, movqi): Accept SHmedia.
15276 (shori_media, movdi_media): Relax input constraints. Split
15277 symbolic constants.
15278 (movdf_media, movsf_media): New insn. New split to movdi.
15279 (movdf, movsf): Match on SHmedia.
15280 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
15281 bgeu_media): New insns and splits. New insns with `_i' suffix.
15282 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
15283 (bunordered): New expand.
15284 (jump_compact): Renamed from `jump'.
15285 (jump_media): New insn.
15286 (jump): New expand.
15287 (call_media, call_value_media): New insns.
15288 (call, call_value): Adjust.
15289 (indirect_jump_compact): Renamed from `indirect_jump'.
15290 (indirect_jump_media): New insn.
15291 (indirect_jump): New expand.
15292 (untyped_call, return): Accept SHmedia.
15293 (return_media): New insn.
15294 (prologue, epilogue, blockage): Accept SHmedia.
15295 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15296 (sunordered): New expand.
15297 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
15298 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
15299 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
15300 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
15301 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
15302 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
15303 abssf2_media): New insns.
15304 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
15305 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
15306 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
15307 floatdidf2, floatsidf2_media, fix_truncdfdi2,
15308 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
15309 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
15310 absdf2_media): New insns.
15311 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
15312 (extendsfdf2_media, truncdfsf2_media): New insns.
15313 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
15314 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
15315 * config/sh/sh.h (CONST_OK_FOR_J): Document.
15316 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
15317 * config/sh/sh.md (adddi3): New expand.
15318 (adddi3_media, adddi3z_media): New insns.
15319 (adddi3_compact): Renamed from adddi3.
15320 (addsi3_media): Use add.l r63 to add constant zero.
15321 (subdi3): New expand.
15322 (subdi3_media): New insn.
15323 (subdi3_compact): Renamed from subdi3.
15324 (mulsidi3): New expand.
15325 (mulsidi3_media): New insn.
15326 (mulsidi3_compact): Renamed from mulsidi3.
15327 (umulsidi3): New expand.
15328 (umulsidi3_media): New insn.
15329 (umulsidi3_compact): Renamed from umulsidi3.
15330 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
15331 (ashlsi3, ashrsi3, lshrsi3): Use them.
15332 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
15333 (ashldi3, ashrdi3, lshrdi3): Use them.
15334 (zero_extendsidi2): New expand.
15335 (extendsidi2): New insn.
15336 (movsi_media): New insn. Split to movdi to load constants.
15337 (movsi): Enable for shmedia.
15338 (movdi_media): New insn. Use shori_media to load wide constants.
15339 (short_media): New insn.
15340 (movdi): Enable for shmedia.
15341 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
15342 * config/sh/sh.h (CPP_SPEC): Added `m5'.
15343 (SUBTARGET_CPP_SPEC): Added `!m5'.
15344 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
15345 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
15346 to all other SH variants.
15347 (TARGET_DEFAULT): Set to SH1_BIT.
15348 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
15349 (BITS_PER_WORD): Raise to 64 on shmedia.
15350 (MAX_BITS_PER_WORD): Change to 64.
15351 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
15352 (INT_TYPE_SIZE): Keep as 32.
15353 (UNITS_PER_WORD): Raise to 8 on shmedia.
15354 (MIN_UNITS_PER_WORD): Keep as 4.
15355 (POINTER_SIZE): Raise to 64 on shmedia.
15356 (CONST_OK_FOR_J): New macro.
15357 (CONST_OK_FOR_LETTER_P): Use it.
15358 (processor_type): Add PROCESSOR_SH5.
15359 * config/sh/sh.md: Conditionalize all expands, insns and
15360 splits to TARGET_SH1.
15361 (cpu): Added sh5.
15362 (addsi3_compact): Renamed from...
15363 (addsi3): Now an expand.
15364 (addsi3_media, subsi3_media): New insns.
15365 (subsi3): Don't negate constants with SHmedia.
15366
15367 * hooks.c: New file.
15368 * hooks.h: New file.
15369 * Makefile.in (HOOKS_H): New.
15370 (TARGET_DEF_H): Added $(HOOKS_H).
15371 (OBJS): Added hooks.o.
15372 (cfgcleanup.o, bb-reorder.o): Added target.h.
15373 (hooks.o): Added dependencies.
15374 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
15375 (TARGET_INITIALIZER): this.
15376 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
15377 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
15378 * bb-reorder.c: Include target.h.
15379 (reorder_basic_blocks): Skip if cannot modify jumps.
15380 * cfgcleanup.c: Include target.h.
15381 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
15382
15383 2002-02-08 Chris Demetriou <cgd@broadcom.com>
15384
15385 * config/mips/mips.md (casesi_internal, casesi_internal_di):
15386 Protect jump delay slot instructions with .set noreorder and
15387 .set nomacro.
15388
15389 2002-02-08 Chris Demetriou <cgd@broadcom.com>
15390
15391 * config/mips/mips.md (casesi_internal_di): Calculate
15392 the index into the target offset table correctly.
15393
15394 2002-02-08 Richard Henderson <rth@redhat.com>
15395
15396 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
15397 * final.c (output_addr_const): Accept and discard SUBREG.
15398 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
15399 mark them unknown instead.
15400 (simplify_subtraction): Handle RTX_UNKNOWN.
15401 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
15402
15403 2002-02-08 David Edelsohn <edelsohn@gnu.org>
15404
15405 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
15406
15407 2002-02-08 Richard Henderson <rth@redhat.com>
15408
15409 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
15410
15411 2002-02-08 Andreas Jaeger <aj@suse.de>
15412
15413 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
15414 * config/i386/t-linux64: New file.
15415
15416 2002-02-08 Jakub Jelinek <jakub@redhat.com>
15417
15418 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
15419 * c-parse.in (compstmt): Clear last_expr_type.
15420
15421 2002-02-07 Richard Henderson <rth@redhat.com>
15422
15423 * loop.c (strength_reduce): Sink final_value when not
15424 eliminating a biv.
15425
15426 2002-02-07 David O'Brien <obrien@FreeBSD.org>
15427
15428 * config/sparc/freebsd.h: Fix mismatched spec {.
15429
15430 2002-02-07 Richard Henderson <rth@redhat.com>
15431
15432 * cfgrtl.c: Include recog.h and insn-config.h.
15433 (keep_with_call_p): Fix general_operand invocation.
15434 * Makefile.in (cfgrtl.o): Update dependencies.
15435
15436 2002-02-07 Kazu Hirata <kazu@hxi.com>
15437
15438 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
15439 comment. Accept HImode only if TARGET_H8300.
15440
15441 2002-02-07 Eric Christopher <echristo@redhat.com>
15442
15443 * config/mips/crtn.asm: Cleanup #ifdefs.
15444
15445 2002-02-07 Eric Christopher <echristo@redhat.com>
15446
15447 * config/mips/crti.asm: Add changes for mips16. mips16 uses
15448 register 7 as RA instead of $31.
15449 * config/mips/crtn.asm: Ditto.
15450 * config/mips/mips.c (mips_move_2words): Add case for
15451 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
15452 (compute_frame_size): Fix typo.
15453 (save_restore_insns): Ditto. Make documentation about using
15454 register $7 as return register more precise.
15455 (mips_expand_epilogue): Fix comment. Add code to work around not
15456 being able to add to the stack pointer directly.
15457 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
15458 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
15459 epilogue.
15460
15461 2002-02-07 Tom Rix <trix@redhat.com>
15462
15463 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
15464 immediates in ldu and stdu DS opcode field.
15465 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
15466 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
15467 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
15468
15469 2002-02-07 Jeff Sturm <jsturm@one-point.com>
15470
15471 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
15472 offset for stack bias.
15473
15474 2002-02-07 H.J. Lu <hjl@gnu.org>
15475
15476 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
15477
15478 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
15479
15480 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
15481
15482 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
15483
15484 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
15485 * i386.c (x86_order_regs_for_local_alloc): New global function.
15486 * i386.h (REG_ALLOC_ORDER): CLeanup.
15487 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
15488
15489 2002-02-07 Richard Henderson <rth@redhat.com>
15490
15491 PR optimization/2463
15492 * alias.c (find_base_value): Recall base values for fixed hard regs.
15493 * loop.c (loop_regs_update): Don't use single_set on non-insns.
15494
15495 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
15496
15497 * config/mips/mips.md (define_delay) [mips16]: Adjust required
15498 length.
15499
15500 2002-02-06 Richard Henderson <rth@redhat.com>
15501
15502 PR c/5609
15503 * stmt.c (resolve_operand_name_1): Take more care with mixed
15504 named and unnamed operands.
15505
15506 2002-02-06 Janis Johnson <janis187@us.ibm.com>
15507 Jan Hubicka <jh@suse.cz>
15508
15509 * loop.c (remove_constant_addition): Avoid clobbering a shared
15510 CONST expression.
15511
15512 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15513
15514 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
15515 * config/s390/t-linux64: New file.
15516 * config/s390/libgcc-glibc.ver: New file.
15517
15518 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15519
15520 * config/s390/linux64.h: Delete file.
15521 * config/s390/s390x.h: New file.
15522 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
15523 as target header file.
15524 * config/s390/linux.h (TARGET_VERSION): Define depending on
15525 DEFAULT_TARGET_64BIT.
15526 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
15527 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
15528 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
15529 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
15530 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
15531 (EXTRA_SPEC): New define.
15532 * config/s390/s390.h (TARGET_VERSION): Define depending on
15533 DEFAULT_TARGET_64BIT.
15534 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
15535
15536 2002-02-06 Jason Merrill <jason@redhat.com>
15537
15538 * c-decl.c (finish_function): Warn about a non-void function with
15539 no return statement and no abnormal exit.
15540 (current_function_returns_abnormally): New variable.
15541 (start_function): Clear it.
15542 (struct c_language_function): Add returns_abnormally.
15543 (push_c_function_context): Save it.
15544 (pop_c_function_context): Restore it.
15545 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
15546 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
15547 an explicit return type.
15548 * c-tree.h: Declare current_function_returns_abnormally.
15549 (C_FUNCTION_IMPLICIT_INT): New macro.
15550 * c-typeck.c (build_function_call): Set it.
15551 (c_expand_return): Set current_function_returns_value even if the
15552 value is erroneous.
15553
15554 2002-02-06 Jakub Jelinek <jakub@redhat.com>
15555
15556 PR c/5420:
15557 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
15558 unsafe for reevaluation.
15559
15560 2002-02-06 Jakub Jelinek <jakub@redhat.com>
15561
15562 PR c/5482:
15563 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
15564 EXPR_STMT, but COMPOUND_STMT, recurse into it.
15565
15566 2002-02-06 Richard Henderson <rth@redhat.com>
15567
15568 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
15569 be a general_operand. Dest for function value must be a pseudo.
15570
15571 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
15572
15573 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
15574 as SYMBOL_REFs from the constant pool.
15575
15576 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
15577
15578 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
15579 passed by invisible reference.
15580
15581 2002-02-05 Richard Henderson <rth@redhat.com>
15582
15583 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
15584
15585 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
15586
15587 Implement using "base addresses" in insn operands as default.
15588 * config/mmix/mmix.c (mmix_conditional_register_usage): if
15589 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
15590 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
15591 used to read the rtx value.
15592 (mmix_target_asm_function_epilogue): Fix spacing.
15593 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
15594 (mmix_legitimate_address): Ditto.
15595 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
15596 should be loaded with a GETA insn. Don't allocate needless extra
15597 char for nul termination and fix misleading comment.
15598 (mmix_print_operand_address): Handle constants if
15599 TARGET_BASE_ADDRESSES.
15600 (mmix_output_register_setting): Use base addressing if
15601 TARGET_BASE_ADDRESSES and the number of insns is 3.
15602 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
15603 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
15604 to use R as constraint, add LDA to match s.
15605 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
15606 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
15607 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
15608 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
15609 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
15610 order with other fixed registers.
15611 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
15612 other parameter/call-clobbered registers.
15613 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
15614 -mbase-addresses, -mno-base-addresses.
15615 (MMIX Options): Ditto.
15616
15617 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
15618
15619 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
15620
15621 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
15622
15623 * config/rs6000/altivec.h: Change elem to _S_elem.
15624
15625 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15626
15627 * config/netbsd.h (WCHAR_TYPE): Define.
15628 (WCHAR_TYPE_SIZE): Ditto.
15629 (WINT_TYPE): Ditto.
15630 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
15631 (WCHAR_UNSIGNED): Ditto.
15632 (WCHAR_TYPE_SIZE): Ditto.
15633 (WINT_TYPE): Ditto.
15634 * config/arm/netbsd.h: Likewise.
15635 * config/i386/netbsd-elf.h: Likewise.
15636 * config/i386/netbsd.h: Likewise.
15637 * config/m68k/netbsd-elf.h: Likewise.
15638 * config/m68k/netbsd.h: Likewise.
15639 * config/ns32k/netbsd.h: Likewise.
15640 * config/sparc/netbsd.h: Likewise.
15641 * config/vax/netbsd.: Likewise.
15642
15643 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
15644
15645 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
15646 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
15647 (TARGET_INITIALIZER): this.
15648 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
15649 (BITFIELD_NBYTES_LIMITED): Markup fix.
15650 * tree.h (default_ms_bitfield_layout_p): Declare.
15651 (record_layout_info): Added prev_field.
15652 * tree.c (default_ms_bitfield_layout_p): New fn.
15653 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
15654 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
15655 * stor-layout.c: Include target.h.
15656 (start_record_layout): Initialize prev_field.
15657 (place_field): Handle MS bit-field layout, and disregard
15658 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
15659 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
15660 * Makefile.in (stor-layout.o): Adjust dependencies.
15661
15662 2002-02-05 Jason Merrill <jason@redhat.com>
15663
15664 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
15665
15666 2002-02-05 Andreas Jaeger <aj@suse.de>
15667
15668 * crtstuff.c: Fix comments.
15669
15670 2002-02-05 Richard Henderson <rth@redhat.com>
15671
15672 PR fortran/3393
15673 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
15674 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
15675
15676 PR fortran/3392
15677 * config/mips/mips.c (function_arg): Handle TImode.
15678 (function_arg_advance): Likewise.
15679
15680 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15681
15682 * config/rs6000/altivec.h (vec_step_help): Rename to
15683 __vec_step_help.
15684
15685 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15686
15687 * config/rs6000/altivec.h: Fix typos.
15688
15689 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15690
15691 * config/arm/netbsd.h: Correct a comment.
15692
15693 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15694
15695 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
15696 building void typed builtins.
15697
15698 * config/rs6000/altivec.h (vec_ld*): Fix typos.
15699 (vec_step): Implement for C++.
15700
15701 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15702
15703 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
15704
15705 2002-02-04 Richard Henderson <rth@redhat.com>
15706
15707 * combine.c (nonzero_bits): Re-introduce special case for
15708 sp/fp/ap wrt REGNO_POINTER_ALIGN.
15709
15710 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15711
15712 * doc/extend.texi: Warn about unsupported usage of altivec
15713 builtins.
15714
15715 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
15716 (altivec_predicate_*): New.
15717
15718 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
15719 Add C++ version of vec_*() functions.
15720
15721 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
15722 (bdesc_2arg): Remove altivec predicates.
15723 (altivec_expand_builtin): Handle predicates.
15724 (altivec_init_builtins): Handle predicates.
15725 (altivec_expand_predicate_builtin): New.
15726
15727 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15728
15729 * pa.c (DO_FRAME_NOTES): Move forward.
15730 (store_reg): Revise handling of frame notes.
15731 (load_reg): Likewise.
15732 (set_reg_plus_d): Likewise.
15733 (hppa_expand_prologue): Likewise.
15734 (hppa_expand_epilogue): Likewise.
15735
15736 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15737
15738 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
15739
15740 2002-02-04 Jakub Jelinek <jakub@redhat.com>
15741
15742 PR c/4475, c++/3780:
15743 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
15744 * c-common.h (SWITCH_TYPE): Define.
15745 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
15746 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
15747 Rename spareness variable to sparseness.
15748 (expand_end_case_type): Renamed from expand_end_case, use orig_type
15749 if non-NULL instead of TREE_TYPE (orig_index).
15750 * tree.h (expand_end_case_type): Renamed from expand_end_case.
15751 (expand_end_case): Define using expand_end_case_type.
15752 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
15753 to expand_end_case_type.
15754 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
15755
15756 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15757
15758 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
15759 (BIGGEST_ALIGNMENT): Change to 128.
15760
15761 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15762
15763 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
15764
15765 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15766
15767 * pa.md (call_internal_reg_64bit): Remove unused variable.
15768
15769 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
15770
15771 * config/arm/arm.h (machine_function): Add uses_anonymous_args
15772 field.
15773 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
15774 * config/arm/arm.c (current_function_anonymous_args): Delete,
15775 replace uses with cfun->machine->uses_anonymous_args.
15776 (arm_reorg): Do not reset uses_anonymous_args.
15777
15778 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
15779 any geenral register.
15780
15781 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
15782
15783 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
15784 the entry block.
15785
15786 2002-02-04 Richard Henderson <rth@redhat.com>
15787
15788 * combine.c (force_to_mode): Remove STACK_BIAS code.
15789 (nonzero_bits): Likewise. Replace sp/fp special case with
15790 REGNO_POINTER_ALIGN.
15791
15792 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
15793 (HARD_FRAME_POINTER_REGNUM): New.
15794 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
15795 (FIXED_REGS, CALL_USED_REGS): Update.
15796 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
15797 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
15798 (HARD_REGNO_NREGS): Update for SFP.
15799 (STACK_POINTER_OFFSET): Include bias here ...
15800 (FIRST_PARM_OFFSET): ... not here.
15801 (STACK_BIAS): Remove.
15802 (INIT_EXPANDERS): New.
15803 (STARTING_FRAME_OFFSET): Do not include bias.
15804 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
15805 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
15806 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
15807 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
15808 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
15809 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
15810 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
15811 (MUST_SAVE_REGISTER): Likewise.
15812 (sparc_flat_function_prologue): Likewise.
15813 (sparc_flat_function_epilogue): Likewise.
15814 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
15815 (sparc_init_modes): SFP is GENERAL_REGS.
15816 (sparc_builtin_saveregs): SFP does not have bias applied.
15817
15818 2002-02-04 Richard Henderson <rth@redhat.com>
15819
15820 * config/alpha/alpha.c (current_function_is_thunk): Don't check
15821 current_function_is_thunk.
15822 (alpha_sa_mask): Distinguish between current_function_is_thunk
15823 called from ASM_OUTPUT_MI_THUNK and not.
15824 (alpha_does_function_need_gp): Thunks always need gp.
15825 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15826 (alpha_output_mi_thunk_osf): New.
15827 * config/alpha/alpha-protos.h: Update.
15828 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
15829
15830 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
15831
15832 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
15833 function types, not when they're taken away.
15834
15835 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
15836
15837 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
15838 CODE_LABEL and jump table when replacing a table jump with a
15839 simple jump.
15840
15841 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15842
15843 * config/s390/s390-protos.h (legitimize_la_operand,
15844 s390_secondary_input_reload_class, s390_plus_operand,
15845 s390_expand_plus_operand): Add prototypes.
15846
15847 config/s390/s390.c (s390_secondary_input_reload_class,
15848 s390_plus_operand, s390_expand_plus_operand): New functions.
15849
15850 (struct s390_address): New member 'pointer'.
15851 (s390_decompose_address): Compute it.
15852 (legitimate_la_operand_p): Use it.
15853 (legitimize_la_operand): New function.
15854 (movti, movdi, movdf splitters): Call it.
15855
15856 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
15857 (PREDICATE_CODES): Add s390_plus_operand.
15858
15859 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
15860 (la_ccclobber): Allow GENERAL_REGS as output operand.
15861
15862 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
15863 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
15864 (*la_64, *la_31, reload_indi, reload_insi): ... these.
15865
15866 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15867
15868 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
15869 register names for regular asm () construct.
15870
15871 2002-02-04 Jakub Jelinek <jakub@redhat.com>
15872
15873 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
15874 registers.
15875
15876 2002-02-04 Jakub Jelinek <jakub@redhat.com>
15877
15878 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
15879 pat for recog.
15880
15881 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
15882
15883 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
15884 constant pool to be identical by string address and index.
15885
15886 2002-02-04 Anthony Green <green@redhat.com>
15887
15888 * output.h (SECTION_OVERRIDE): Define.
15889 * varasm.c (named_section): Obey SECTION_OVERRIDE.
15890
15891 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
15892
15893 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
15894 by existing arm*-*-netbsd* (a.out) target.
15895 (ns32k-*-netbsdelf*): Likewise.
15896 (sparc-*-netbsdelf*): Likewise.
15897 (vax-*-netbsdelf*): Likewise.
15898
15899 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
15900
15901 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
15902 headers and libobjc headers.
15903
15904 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
15905
15906 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
15907 (_mingw.h): Remove duplicate include.
15908
15909 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
15910
15911 * config.gcc: Set cpu_type to m68k for 68010, as well.
15912 (m68010-*-netbsdelf*): New...
15913 (m68k*-*-netbsdelf*): ...targets.
15914 * config/m68k/netbsd-elf.h: New file.
15915
15916 2002-02-02 Kazu Hirata <kazu@hxi.com>
15917
15918 * config/h8300/h8300.c (hand_list): Move inside function_arg.
15919
15920 2002-02-02 Kazu Hirata <kazu@hxi.com>
15921
15922 * config/h8300/h8300.c (h8_push_ops): Move inside
15923 h8300_init_once.
15924 (h8_pop_ops): Likewise.
15925 (h8_move_ops): Likewise.
15926
15927 2002-02-02 Kazu Hirata <kazu@hxi.com>
15928
15929 * config/h8300/h8300.c (os_task): Make it static.
15930 (monitor): Likewise.
15931 (pragma_saveall): Likewise.
15932
15933 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
15934
15935 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
15936 constant is a valid sign-extension for Pmode.
15937
15938 2002-02-02 Kazu Hirata <kazu@hxi.com>
15939
15940 * config/h8300/h8300.c: Fix formatting.
15941
15942 2002-02-02 Kazu Hirata <kazu@hxi.com>
15943
15944 * config/h8300/h8300.md: Fix formatting.
15945
15946 2002-02-02 Kazu Hirata <kazu@hxi.com>
15947
15948 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
15949 predicates of operands[1]. Split the patterns for each
15950 processor variant.
15951
15952 2002-02-02 Kazu Hirata <kazu@hxi.com>
15953
15954 * config/h8300/h8300.md (xor patterns): Tighten the predicates
15955 of operands[1] to register_operand.
15956
15957 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
15958
15959 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
15960 * cpphash.c (_cpp_init_hashtable): Similarly.
15961 * cppinit.c (cpp_create_reader): Default the signed_char flag.
15962 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
15963 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
15964 (cpp_handle_option): Handle the new options.
15965 * cpplex.c (cpp_interpret_charconst): Use new flag.
15966 * cpplib.h (struct cpp_options): New member signed_char.
15967 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
15968 (cpp_options): Handle -fsigned-char and -funsigned-char.
15969 (static_specs): Remove signed_char_spec.
15970 (do_spec1): Don't handle %c.
15971 * system.h: Poison SIGNED_CHAR_SPEC.
15972 * tradcif.y (yylex): Use flag_signed_char.
15973 * tradcpp.h (flag_signed_char): New.
15974 * tradcpp.c (flag_signed_char): New.
15975 (main): Handle new command-line options.
15976 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
15977 config:
15978 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
15979 * avr/avr.h: Remove old comments.
15980 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
15981 (CC1_SPEC): Pass -fsigned-char if -mic*.
15982 (SIGNED_CHAR_SPEC): Remove.
15983 doc:
15984 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
15985
15986 2002-02-01 Eric Christopher <echristo@redhat.com>
15987
15988 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
15989 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
15990 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
15991 (ASM_OUTPUT_REG_POP): Ditto.
15992
15993 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
15994
15995 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
15996 patch.
15997
15998 2002-02-02 Jakub Jelinek <jakub@redhat.com>
15999
16000 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
16001
16002 2002-02-02 Jakub Jelinek <jakub@redhat.com>
16003
16004 PR c/5304:
16005 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
16006 unconditionally.
16007
16008 2002-02-01 Janis Johnson <janis187@us.ibm.com>
16009
16010 * cfganal.c: Include tm_p.h.
16011 (keep_with_call_p): Fix the test that determines if a register holds
16012 the return value of a call.
16013
16014 2002-02-01 DJ Delorie <dj@redhat.com>
16015
16016 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
16017 we are given conflicting registers, switch to the other one we
16018 had allocated for us.
16019 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
16020 as TImode so we know when the "other" register is available.
16021
16022 2002-02-01 David O'Brien <obrien@FreeBSD.org>
16023
16024 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
16025 sparc/sparc_bi.h.
16026
16027 2002-02-01 Janis Johnson <janis187@us.ibm.com>
16028
16029 * cfganal.c (keep_with_call_p): New function.
16030 (flow_call_edges_add): Prevent splitting a block between a call and
16031 a single-set instruction that should be kept in the same block.
16032
16033 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
16034
16035 * doc/install.texi (avr): Update outdated URL.
16036
16037 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
16038
16039 * config/stormy16/stormy16.md (pushqi): New.
16040 (popqi): New.
16041 (pushhi): New.
16042 (pophi): New.
16043 (movhi): Remove stack operands.
16044 (movqi): Likewise.
16045 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
16046 nonimmediate_nonstack_operand.
16047 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
16048 New.
16049 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
16050 New.
16051
16052 2002-01-31 Jason Merrill <jason@redhat.com>
16053
16054 * Makefile.in (c-parse.c): Handle .output file.
16055 * objc/Make-lang.in (objc-parse.c): Likewise.
16056
16057 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
16058
16059 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
16060 the -me[lb] option is given. Don't output the default flag
16061 twice.
16062
16063 2002-01-31 Zack Weinberg <zack@codesourcery.com>
16064
16065 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
16066 the primary source file; this has not been done yet.
16067 * c-decl.c (c_expand_body): Reset input_filename from
16068 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
16069
16070 2002-01-31 Kazu Hirata <kazu@hxi.com>
16071
16072 * rtlanal.c (subreg_regno_offset): Do not use
16073 SUBREG_REGNO_OFFSET.
16074 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
16075 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
16076
16077 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16078
16079 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
16080 version rather than GNATS version in --version output.
16081
16082 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
16083
16084 * ifcvt.c (noce_process_if_block): Make a copy of the destination
16085 when copying back from a temporary.
16086
16087 2002-01-30 Richard Henderson <rth@redhat.com>
16088
16089 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
16090 and new_dest are the same.
16091
16092 2002-01-30 Richard Henderson <rth@redhat.com>
16093
16094 PR opt/5076
16095 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
16096 * rtl.c (note_insn_name): Update.
16097 * emit-rtl.c (remove_unnecessary_notes): Kill it.
16098 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
16099 to perform loop rotation.
16100 (expand_exit_loop_top_cond): New.
16101 * tree.h (expand_exit_loop_top_cond): Declare it.
16102 * c-semantics.c (genrtl_while_stmt): Use it.
16103 (genrtl_for_stmt): Likewise.
16104
16105 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
16106
16107 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
16108 arguments to 64-bit boundaries on 64-bit ABIs.
16109
16110 2002-01-30 Steve Ellcey <sje@cup.hp.com>
16111
16112 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
16113
16114 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16115
16116 * c-decl.c (grokdeclarator): Handle type being a typedef for an
16117 invalid type.
16118
16119 2002-01-30 David O'Brien <obrien@FreeBSD.org>
16120
16121 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
16122 * config/sparc/sparc_bi.h: Remove file.
16123 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
16124
16125 2002-01-30 Richard Henderson <rth@redhat.com>
16126
16127 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
16128
16129 2002-01-30 Zack Weinberg <zack@codesourcery.com>
16130
16131 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
16132
16133 2002-01-30 Jason Merrill <jason@redhat.com>
16134
16135 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
16136 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
16137 (reg_save): Use DW_CFA_offset_extended_sf instead.
16138
16139 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
16140
16141 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16142
16143 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
16144 in cselib_lookup.
16145
16146 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
16147
16148 * rs6000.md ("*call_value_local32"): Remove constraints.
16149 ("*call_value_local64"): Same.
16150 ("*call_value_indirect_nonlocal_aix32"): Same.
16151 ("*call_value_nonlocal_aix32"): Same.
16152 ("*call_value_indirect_nonlocal_aix64"): Same.
16153 ("*call_value_nonlocal_aix64"): Same.
16154 ("*call_value_nonlocal_sysv"): Same.
16155
16156 2002-01-29 Richard Henderson <rth@redhat.com>
16157
16158 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
16159
16160 2002-01-29 Richard Henderson <rth@redhat.com>
16161
16162 * expr.c (force_operand): Ignore flag_pic for detecting pic
16163 address loads.
16164 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
16165 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
16166 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
16167 instead of open-coded loop.
16168 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
16169 be fixed when in use.
16170
16171 2002-01-29 Richard Henderson <rth@redhat.com>
16172
16173 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
16174 * sched-rgn.c (propagate_deps): Update them.
16175 * sched-deps.c (sched_analyze_insn): Update them. Flush the
16176 clobbers list when either gets too long.
16177
16178 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16179
16180 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
16181 and INDEX_REGS the same as GENERAL_REGS.
16182 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
16183
16184 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16185
16186 * tree.c (build_nonstandard_integer_type): Correct prototype.
16187
16188 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
16189
16190 * config/s390/s390.md (movstrsico, movstrdix_64,
16191 movstrsix_31): Remove, replace by ...
16192 (movstrdi_short, movstrsi_short, movstrdi_long,
16193 movstrsi_long): ... these. New.
16194 (movstrdi, movstrsi): Adapt.
16195
16196 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
16197 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
16198 Remove unnecessary CC clobber.
16199 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
16200 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
16201
16202 (divmoddi4): Don't partially initialize TImode register.
16203
16204 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
16205
16206 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
16207
16208 2002-01-29 Richard Henderson <rth@redhat.com>
16209
16210 * flow.c (print_rtl_and_abort): Remove.
16211 (print_rtl_and_abort_fcn): Remove.
16212 (verify_local_live_at_start): Use dump_bb instead.
16213 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
16214 (verify_wide_reg_1): Return 2 on mode test failure.
16215
16216 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16217
16218 PR c/3325, c/3326, c/2511, c/3347
16219 * c-decl.c (enum_decl_context): Remove BITFIELD.
16220 (grokdeclarator): Take bitfield width as an input.
16221 Ensure bitfields are given the correct type. Perform
16222 bitfield width validation with build_bitfield_integer_type
16223 rather than waiting for finish_struct.
16224 (grok_typename, grok_typename_in_parm_context, start_decl,
16225 push_parmdecl, grokfield, start_function): Update calls to
16226 grokdeclarator.
16227 (build_bitfield_integer_type): New function.
16228 (finish_struct): Move bitfield validation to grokdeclarator
16229 and build_bitfield_integer_type.
16230 * tree.c (build_nonstandard_integer_type): New function.
16231 * tree.h (build_nonstandard_integer_type): New prototype.
16232 objc:
16233 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
16234
16235 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16236
16237 PR other/1502:
16238 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
16239 don't ignore unrecognized -W* options.
16240 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
16241 * cpplib.h (cpp_handle_option): Adjust prototype.
16242 * c-decl.c (c_decode_options): Pass 0 as last argument to
16243 cpp_handle_option.
16244
16245 PR c/2896:
16246 * gcc.c (cpp_unique_options): Split from cpp_options.
16247 (cpp_options): Source cpp_unique_options.
16248 (default_compilers): Use cpp_unique_options instead of cpp_options
16249 when used together with cc1_options.
16250 (static_specs): Add cpp_unique_options.
16251 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
16252 when used together with cc1_options.
16253
16254 2002-01-29 Kazu Hirata <kazu@hxi.com>
16255
16256 * config/h8300/h8300-protos.h: Update the prototype of
16257 output_a_shift.
16258 * config/h8300/h8300.c (output_a_shift): Remove an unused
16259 argument 'insn'. Remove redundant code.
16260 * config/h8300/h8300.md: Adust to the new prototype of
16261 output_a_shift.
16262
16263 2002-01-29 Kazu Hirata <kazu@hxi.com>
16264
16265 * config/h8300/h8300-protos.h: Update the prototypes of
16266 emit_a_rotate and expand_a_rotate.
16267 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
16268 first argument to 'enum rtx_code'.
16269 (expand_a_rotate): Likewise.
16270
16271 2002-01-28 Kazu Hirata <kazu@hxi.com>
16272
16273 * config/h8300/h8300-protos.h: Update the prototype of
16274 output_simode_bld.
16275 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
16276 'log2'.
16277 * config/h8300/h8300.md: Adjust to the new prototype.
16278
16279 2002-01-28 Kazu Hirata <kazu@hxi.com>
16280
16281 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
16282 redundant code.
16283
16284 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
16285
16286 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
16287 is a fixed register before returning pic_offset_table_rtx.
16288 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
16289 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
16290
16291 2002-01-28 Jason Merrill <jason@redhat.com>
16292
16293 * dwarf2.h: Sync with src version.
16294
16295 2002-01-28 Paul Koning <pkoning@equallogic.com>
16296
16297 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
16298 BT_FN_VOID_PTR_VAR.
16299 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
16300 * doc/extend.texi (__builtin_prefetch): Update documentation:
16301 first argument is now const void ptr.
16302
16303 2002-01-28 Kazu Hirata <kazu@hxi.com>
16304
16305 * config/h8300/h8300-protos.h: Remove an unused prototype.
16306
16307 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
16308
16309 * toplev.c (lang_independent_init): Round up identifier size.
16310
16311 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
16312
16313 * config.gcc: Revert previous change.
16314
16315 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
16316
16317 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
16318
16319 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
16320
16321 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
16322 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
16323 other non-elf netbsd config frags.
16324 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
16325 collect2 will does that.
16326 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
16327 shared-lib frobbing will work.
16328
16329 2002-01-28 Kazu Hirata <kazu@hxi.com>
16330
16331 * config/h8300/h8300.h: Fix formatting.
16332 * config/h8300/h8300.md: Likewise.
16333
16334 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
16335
16336 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
16337 the old, removed AAA_standards fix.
16338 * fixinc/fixincl.x: Rebuilt.
16339
16340 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
16341
16342 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
16343 atexit call in crtbegin, hooked in after call to frame_dummy;
16344 register EH before registering __fini__start.
16345
16346 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
16347
16348 * config/rs6000/altivec.h: Remove spurious semicolons.
16349
16350 2002-01-27 Kazu Hirata <kazu@hxi.com>
16351
16352 * config/h8300/h8300.md: Replace dead bit extraction patterns
16353 with ones that work.
16354
16355 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16356
16357 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
16358 if not STRICT_ALIGNMENT.
16359 * rtl.h (MEM_ALIGN): Likewise.
16360
16361 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
16362
16363 * doc/invoke.texi (-fdump-translation-unit): Revert this
16364 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
16365
16366 2002-01-27 Kazu Hirata <kazu@hxi.com>
16367
16368 * config/h8300/h8300.md (define_constants): New.
16369 (anonymous patterns) Use defined constants appropriately.
16370
16371 2002-01-27 Kazu Hirata <kazu@hxi.com>
16372
16373 * config/h8300/h8300.c (function_arg): Remove redundant code.
16374
16375 2002-01-26 Richard Henderson <rth@redhat.com>
16376
16377 * sched-deps.c (reg_pending_uses_head): New.
16378 (reg_pending_barrier): Rename from reg_pending_sets_all.
16379 (find_insn_list): Don't mark inline.
16380 (find_insn_mem_list): Remove.
16381 (add_dependence_list, add_dependence_list_and_free): New.
16382 (flush_pending_lists): Replace only_write param with separate
16383 for_read and for_write parameters. Update all callers. Use
16384 add_dependence_list_and_free.
16385 (sched_analyze_1): Do not add reg dependencies here; just set
16386 the pending bits. Use add_dependence_list.
16387 (sched_analyze_2): Likewise.
16388 (sched_analyze_insn): Replace schedule_barrier_found with
16389 reg_pending_barrier. Add all dependencies for pending reg
16390 uses, sets, and clobbers.
16391 (sched_analyze): Don't add reg dependencies for calls, just
16392 set pending bits. Use regs_invalidated_by_call. Treat
16393 sched_before_next_call as a normal list, not a fake insn.
16394 (init_deps): No funny init for sched_before_next_call.
16395 (free_deps): Free pending mems lists. Don't zero reg_last.
16396 (init_deps_global): Init reg_pending_uses.
16397 (finish_deps_global): Free it.
16398 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
16399 (find_insn_mem_list): Remove.
16400 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
16401 (propagate_deps): Use them. Zero temp mem lists.
16402
16403 2002-01-26 Richard Henderson <rth@redhat.com>
16404
16405 * Makefile.in (CRTSTUFF_CFLAGS): New.
16406 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
16407 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
16408 crtstuff.c instead of alpha assembly version.
16409 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
16410 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
16411 not FORCE_{INIT,FINI}_SECTION_ALIGN.
16412 (__do_global_dtors_aux): Mark used.
16413 (frame_dummy, __do_global_ctors_aux): Mark used.
16414 (fini_dummy, init_dummy): Remove.
16415
16416 * config/alpha/crtbegin.asm: Remove file.
16417 * config/alpha/crtend.asm: Remove file.
16418 * config/alpha/t-crtbe: Remove file.
16419 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
16420 (LINK_EH_SPEC): New.
16421
16422 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
16423 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
16424 calling constructors.
16425 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
16426
16427 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
16428 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
16429 CRT_END_INIT_DUMMY hack.
16430 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
16431 FORCE_{INIT,FINI}_SECTION_ALIGN.
16432
16433 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
16434 FORCE_{INIT,FINI}_SECTION_ALIGN.
16435
16436 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
16437 invocation sequence.
16438 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
16439
16440 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
16441 (FORCE_CODE_SECTION_ALIGN): New.
16442
16443 2002-01-26 Richard Henderson <rth@redhat.com>
16444
16445 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
16446
16447 2002-01-26 Richard Henderson <rth@redhat.com>
16448
16449 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
16450 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
16451
16452 2002-01-26 Kazu Hirata <kazu@hxi.com>
16453
16454 * config/h8300/h8300.md: Remove bit extraction patterns that
16455 cannot be triggered.
16456 Restrict each bit extraction pattern to a variant on which the
16457 pattern is tested.
16458
16459 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
16460
16461 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
16462
16463 2002-01-26 Kazu Hirata <kazu@hxi.com>
16464
16465 * config/h8300/h8300.md: Remove bit test patterns that cannot
16466 be triggered.
16467 Restrict each bit test pattern to a variant on which the
16468 pattern is tested.
16469
16470 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16471
16472 * builtins.c (expand_builtin_strncat): Remove redundant check for
16473 INTEGER_CST.
16474
16475 2002-01-25 David O'Brien <obrien@FreeBSD.org>
16476
16477 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
16478 default setting.
16479 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
16480 existing setting.
16481
16482 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
16483
16484 * dbxout.c (dbxout_init): Use assemble_name rather than just
16485 stripping off the first character.
16486 (dbxout_source_file): Likewise.
16487
16488 2002-01-25 DJ Delorie <dj@redhat.com>
16489
16490 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
16491 using rtx_equal_p, not by comparing pointers.
16492
16493 2002-01-25 Steve Ellcey <sje@cup.hp.com>
16494
16495 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
16496 for PIC_OFFSET_TABLE_REGNUM.
16497 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
16498
16499 2002-01-25 David O'Brien <obrien@FreeBSD.org>
16500
16501 * config.gcc (x86_64-*-freebsd*): New target.
16502 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
16503 value.
16504 (i[34567]86-*-freebsd*): Don't include svr4.h.
16505 * config/i386/freebsd64.h: New file.
16506
16507 2002-01-25 Douglas B Rupp <rupp@gnat.com>
16508
16509 * config/alpha/x-vms (version): Make static.
16510
16511 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
16512 in previous checkin.
16513
16514 * Makefile.in (install-headers-cp): New target.
16515 * config.gcc (alpha-dec-*vms*): Install headers with
16516 install-headers-cp
16517
16518 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
16519
16520 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
16521 avoid it's copies.
16522
16523 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16524
16525 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
16526 of compare_tree_int.
16527 (expand_builtin_strncat): Likewise.
16528 * c-decl.c (finish_struct): Use tree_low_cst.
16529 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
16530 * tree.c (compare_tree_int): Likewise.
16531
16532 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
16533
16534 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
16535 adjustments even if they are implemented by more than two insns.
16536
16537 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
16538
16539 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
16540 * df.h (struct ref): Kill B.
16541 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
16542
16543 * basic-block.h (PROP_EQUAL_NOTES): New flag.
16544 * flow.c (propagate_one_insn): Use it.
16545 (mark_used_regs): Handle NIL.
16546
16547 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
16548
16549 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
16550 to help folding.
16551
16552 2002-01-25 David Edelsohn <edelsohn@gnu.org>
16553
16554 * rs6000.md (prefetch): Make address V4SI mode so that the address
16555 is restricted to legitimate form for instruction.
16556
16557 2002-01-25 Bob Wilson <bob.wilson@acm.org>
16558
16559 * doc/install.texi (xtensa-*-elf): New target.
16560 (xtensa-*-linux*): New target.
16561 * doc/contrib.texi: Add myself.
16562
16563 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
16564
16565 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
16566 purpose register to hold an SImode (or smaller) value.
16567
16568 2002-01-25 Jakub Jelinek <jakub@redhat.com>
16569
16570 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
16571 registry only.
16572 * crtstuff.c: Likewise.
16573
16574 2002-01-25 Kazu Hirata <kazu@hxi.com>
16575
16576 * config/h8300/h8300.md (negation patterns): Tighten
16577 predicates to register_operand.
16578
16579 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
16580
16581 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
16582 mode, not Pmode.
16583
16584 * builtins.c (expand_builtin_prefetch): Same.
16585
16586 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16587
16588 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
16589 modes.
16590
16591 2002-01-24 Kazu Hirata <kazu@hxi.com>
16592
16593 * config/h8300/h8300.c (print_operand): Remove support for
16594 operand character 'A'.
16595 * config/h8300/h8300.md (three anonymous patterns): Replace
16596 operand character 'A' with either 'T' or 'S'.
16597
16598 2002-01-24 Kazu Hirata <kazu@hxi.com>
16599
16600 * config/h8300/h8300.c (print_operand): Remove support for
16601 operand character 'U'.
16602
16603 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
16604
16605 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
16606
16607 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
16608
16609 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
16610 values to be assigned to the stack pointer.
16611
16612 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
16613
16614 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
16615 to const_double needs to be done right for big-endian systems.
16616
16617 2002-01-24 Jason Merrill <jason@redhat.com>
16618
16619 PR c++/2432
16620 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
16621 to can_throw_internal.
16622
16623 2002-01-23 Richard Henderson <rth@redhat.com>
16624
16625 * fold-const.c (fold): Change UINT_MAX test to check vs precision
16626 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
16627
16628 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16629
16630 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
16631 (symGOT2reg): Use them, then set as GOT value as unchanging.
16632 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
16633 as a temporary, if possible.
16634 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
16635 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
16636
16637 2002-01-23 Kazu Hirata <kazu@hxi.com>
16638
16639 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
16640 accept to accept 0x80 as operands[2].
16641
16642 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16643
16644 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
16645
16646 2002-01-23 Richard Henderson <rth@redhat.com>
16647
16648 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
16649
16650 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
16651
16652 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
16653 (parmlist_or_identifiers_1): Verify that only a parmlist follows
16654 an attribute.
16655
16656 2002-01-23 Richard Henderson <rth@redhat.com>
16657
16658 * expr.c (move_by_pieces_1): Extend size before negation.
16659
16660 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
16661 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
16662 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
16663 * config/m68k/t-m68kelf: Likewise.
16664
16665 2002-01-23 Bob Wilson <bob.wilson@acm.org>
16666
16667 * config/xtensa/elf.h: New file.
16668 * config/xtensa/lib1funcs.asm: New file.
16669 * config/xtensa/lib2funcs.S: New file.
16670 * config/xtensa/linux.h: New file.
16671 * config/xtensa/t-xtensa: New file.
16672 * config/xtensa/xtensa-config.h: New file.
16673 * config/xtensa/xtensa-protos.h: New file.
16674 * config/xtensa/xtensa.c: New file.
16675 * config/xtensa/xtensa.h: New file.
16676 * config/xtensa/xtensa.md: New file.
16677 * config.gcc (xtensa-*-elf*): New target.
16678 (xtensa-*-linux*): New target.
16679 * cse.c (canon_hash): Compare rtx pointers instead of register
16680 numbers. This is required for the Xtensa port.
16681 * integrate.c (copy_insn_list): Handle case where the static
16682 chain is in memory and the memory address has to be copied to
16683 a register.
16684 * doc/invoke.texi (Option Summary): Add Xtensa options.
16685 (Xtensa Options): New node.
16686 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
16687
16688 2002-01-23 Zack Weinberg <zack@codesourcery.com>
16689
16690 * diagnostic.c (internal_error): Do ICE suppression only
16691 when ENABLE_CHECKING is not defined.
16692
16693 * c-typeck.c (require_complete_type): Return error_mark_node
16694 if type is error_mark_node.
16695
16696 2002-01-23 Janis Johnson <janis187@us.ibm.com>
16697
16698 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
16699 -Os and issue a warning.
16700
16701 2002-01-23 Zack Weinberg <zack@codesourcery.com>
16702
16703 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
16704 current (lack of) need for host configuration by hand.
16705
16706 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
16707 references. Documentation of some target macros moved from
16708 hostconfig.texi to tm.texi.
16709
16710 2002-01-23 Will Cohen <wcohen@redhat.com>
16711
16712 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
16713 defined.
16714
16715 2002-01-23 Kazu Hirata <kazu@hxi.com>
16716
16717 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
16718 operand[3].
16719
16720 2002-01-23 Jason Merrill <jason@redhat.com>
16721
16722 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
16723
16724 * function.c (assign_parms): Don't put args of inline functions
16725 into registers when not optimizing.
16726
16727 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
16728
16729 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
16730 (prologue_use): New pattern.
16731 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
16732 preference to gen_rtx_USE.
16733 (thumb_expand_prologue): Use gen_prologue_use in preference to
16734 gen_rtx_USE.
16735 (thumb_expand_epilogue): Use gen_prologue_use in preference to
16736 gen_rtx_USE.
16737
16738 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
16739
16740 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
16741
16742 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
16743
16744 PR c/3504
16745 * doc/extend.texi: Correct documentation of __alignof__.
16746
16747 2002-01-22 Zack Weinberg <zack@codesourcery.com>
16748
16749 * params.h: Rename arguments of DEFPARAM so that it will be
16750 recognized as a translation keyword.
16751
16752 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
16753
16754 * extend.texi: Document altivec functions.
16755 Fix N-bit adjectives in X86 builtin documentation.
16756
16757 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
16758
16759 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
16760 auto_inc_dec values.
16761
16762 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
16763
16764 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
16765 after backslash.
16766 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
16767
16768 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
16769
16770 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
16771
16772 2002-01-22 Richard Henderson <rth@redhat.com>
16773
16774 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
16775 copy_insn not copy_rtx.
16776
16777 2002-01-23 Alan Modra <amodra@bigpond.net.au>
16778
16779 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
16780 "nonzero" as that might add "1" bits. Ensure "constop" is
16781 properly sign extened.
16782 (force_to_mode): Tweak for sign extended constop.
16783
16784 2002-01-22 Richard Henderson <rth@redhat.com>
16785
16786 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
16787 for_each_rtx instead of assuming we're already looking at the MEM.
16788 (split_small_symbolic_mem_operand): Likewise.
16789 * config/alpha/alpha.h (PREDICATE_CODES): Update.
16790 * config/alpha/alpha.md (small symbolic memory splitters): Update.
16791
16792 2002-01-22 Richard Henderson <rth@redhat.com>
16793
16794 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
16795 sequence number for the literal.
16796 (divmoddi_internal_er): Likewise.
16797
16798 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
16799
16800 PR java/4972
16801 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
16802 in LIBICONV variable.
16803 * configure: Regenerated.
16804
16805 2002-01-22 Krister Walfridsson <cato@df.lth.se>
16806
16807 * dependence.c (build_def_use): Remove array_idx.
16808
16809 * dwarfout.c (last_filename): Remove.
16810 (output_compile_unit_die): Remove last_filename.
16811
16812 2002-01-22 Roger Sayle <roger@eyesopen.com>
16813 Richard Henderson <rth@redhat.com>
16814
16815 PR opt/3640
16816 * fold-const.c (fold): Optimize unsigned comparisons against
16817 UINT_MAX (and similar unsigned constants).
16818
16819 2002-01-22 Janis Johnson <janis187@us.ibm.com>
16820
16821 * Makefile.in (loop.o): Depend on OPTABS_H.
16822 * loop.c (emit_prefetch_instructions): Check the prefetch operand
16823 against the predicate.
16824
16825 PR target/5379
16826 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
16827 for the address operand.
16828
16829 2002-01-22 Richard Henderson <rth@redhat.com>
16830
16831 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
16832
16833 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
16834
16835 PR other/5450
16836 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
16837 preprocessor flags.
16838
16839 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
16840
16841 * config.gcc (x86_64-*-netbsd*): New target.
16842 * config/i386/netbsd64.h: New file.
16843
16844 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
16845
16846 * regrename.c (kill_value): Fix typo.
16847
16848 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
16849
16850 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
16851
16852 * config/rs6000/rs6000.h: Same.
16853
16854 * function.c (instantiate_virtual_regs): Remove
16855 STARTING_FRAME_PHASE.
16856 (assign_stack_local_1): Same.
16857 Calculate frame phase.
16858
16859 2002-01-22 Nick Clifton <nickc@redhat.com>
16860
16861 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
16862 variable declaration to outer scope in order to simplify
16863 future extensions.
16864 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
16865 arm_hard_regno_mode_ok.
16866 * config/arm/arm-protos.h: Add a prototype for
16867 arm_hard_regno_mode_ok.
16868 * config/arm/arm.c (soft_df_operand): Remove now redundant
16869 check for DImode values using IP_REGNUM.
16870 (nonimmediate_soft_df_operand): Remove now redundant check for
16871 DImode values using IP_REGNUM.
16872 (arm_hard_regno_mode_ok): New function. New check: make sure
16873 that DImode values are not stored in IP_REGNUM.
16874
16875 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
16876 note with a USE.
16877 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
16878
16879 2002-01-22 Jason Merrill <jason@redhat.com>
16880
16881 * c-semantics.c (genrtl_compound_stmt): Only check nesting
16882 consistency if this COMPOUND_STMT is scoped.
16883
16884 2002-01-22 Kazu Hirata <kazu@hxi.com>
16885
16886 * predict.c: Fix formatting.
16887 * print-tree.c: Likewise.
16888 * protoize.c: Likewise.
16889 * real.h: Likewise.
16890 * rtl.h: Likewise.
16891 * sbitmap.h: Likewise.
16892 * scan.c: Likewise.
16893 * sched-deps.c: Likewise.
16894 * sched-vis.c: Likewise.
16895 * sdbout.c: Likewise.
16896 * sibcall.c: Likewise.
16897 * ssa.c: Likewise.
16898 * ssa-ccp.c: Likewise.
16899 * ssa-dce.c: Likewise.
16900 * stmt.c: Likewise.
16901 * stor-layout.c: Likewise.
16902 * system.h: Likewise.
16903
16904 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16905
16906 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
16907 if fits in bounds of base type.
16908
16909 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
16910 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
16911 (add_bound_info, default): If can't find a context, make a
16912 SAVE_EXPR.
16913 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
16914
16915 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
16916
16917 * c-typeck.c (parser_build_binary_op): If result from
16918 build_binary_op is ERROR_MARK just return error_mark_node without
16919 further processing.
16920
16921 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
16922
16923 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
16924 Split a.out-specific bits into...
16925 * config/netbsd-aout.h: ...this.
16926 * config/netbsd-elf.h: New file.
16927 * config/alpha/netbsd-elf.h: Remove.
16928 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
16929 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
16930 (STARTFILE_SPEC): Remove redundant definition.
16931 (ENDFILE_SPEC): Likewise.
16932 (LINK_SPEC): Likewise.
16933 (CPP_SPEC): Likewise.
16934 (ASM_SPEC): Likewise.
16935 (LIB_SPEC): Likewise.
16936 (SWITCH_TAKES_ARG): Likewise.
16937 (TARGET_MEM_FUNCTIONS): Likewise.
16938 (CPP_PREDEFINES): Redefine.
16939 (ASM_FINAL_SPEC): Remove redefinition.
16940 (ASM_COMMENT_START): Redefine.
16941 (FUNCTION_PROFILER): Define.
16942 (TARGET_VERSION): Redefine.
16943 Comment and formatting cleanup.
16944 * config/i386/netbsd.h: Include <netbsd-aout.h>.
16945 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
16946 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
16947 big- or little-endian.
16948 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
16949 * config.gcc (*-*-netbsd*): Add definitions common to all
16950 NetBSD configs.
16951 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
16952 gnu_ld definitions. Add netbsd-elf.h to and remove
16953 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
16954 tmake_file, and don't lose previous tmake_file contents.
16955 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
16956 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
16957 gnu_ld definitions. Add netbsd-elf.h to tm_file.
16958 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
16959 (mipsel-*-netbsd*): Rename this to...
16960 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
16961 mips/little.h to tm_file for mips*el-*.
16962 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
16963 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
16964 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
16965
16966 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
16967
16968 * pa-protos.h (reg_before_reload_operand): New function prototype.
16969 * pa.c (reg_before_reload_operand): New function implementation.
16970 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
16971 contraints to "*m".
16972
16973 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16974
16975 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
16976
16977 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
16978
16979 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
16980 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
16981 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
16982 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
16983 (ENDFILE_SPEC): Undefine.
16984 (STARTFILE_SPEC): Redefine for PA.
16985
16986 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16987
16988 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
16989
16990 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
16991
16992 * config.gcc: Add entries to supported PowerPC --with-cpu
16993 types.
16994
16995 2002-01-21 Jakub Jelinek <jakub@redhat.com>
16996
16997 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
16998 true for 64-bit mode only SSE registers in 32-bit mode.
16999
17000 2002-01-21 Kazu Hirata <kazu@hxi.com>
17001
17002 * unwind-dw2.c: Fix formatting.
17003 * unwind-dw2-fde.c: Likewise.
17004 * unwind-dw2-fde.h: Likewise.
17005 * unwind-pe.h: Likewise.
17006 * varasm.c: Likewise.
17007 * varray.h: Likewise.
17008
17009 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
17010
17011 Remove workaround for register stack overwrite bug in mmix.
17012 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
17013 support for TARGET_REG_STACK_FILL_BUG.
17014 * config/mmix/mmix.h: Remove member has_call_without_parameters.
17015 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
17016 Delete.
17017 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
17018 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
17019 -mno-reg-stack-fill-bug-workaround.
17020 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
17021 machine member has_call_without_parameters.
17022 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
17023 -mreg-stack-fill-bug-workaround and
17024 -mno-reg-stack-fill-bug-workaround.
17025 (MMIX Options): Ditto.
17026
17027 2002-01-21 Kazu Hirata <kazu@hxi.com>
17028
17029 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
17030 as appropriate.
17031 Remove redundant code.
17032
17033 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
17034
17035 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
17036 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17037 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17038 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
17039 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
17040 out target macro definitions and non-target-specific comments
17041 mostly taken from old versions of the manual.
17042
17043 2002-01-20 Kazu Hirata <kazu@hxi.com>
17044
17045 * config/h8300/h8300.h: Fix comment formatting.
17046 * config/ia64/aix.h: Likewise.
17047 * config/ia64/ia64-protos.h: Likewise.
17048 * config/ia64/ia64.c: Likewise.
17049 * config/ia64/ia64.h: Likewise.
17050 * config/ia64/ia64intrin.h: Likewise.
17051 * config/ia64/linux.h: Likewise.
17052 * config/ia64/unwind-aix.c: Likewise.
17053 * config/ia64/unwind-ia64.c: Likewise.
17054
17055 2002-01-20 Kazu Hirata <kazu@hxi.com>
17056
17057 * config/h8300/h8300.c: Revise comments about shift code.
17058
17059 2002-01-20 Kazu Hirata <kazu@hxi.com>
17060
17061 * config/h8300/h8300.c (function_arg): Update a comment.
17062
17063 2002-01-20 Kazu Hirata <kazu@hxi.com>
17064
17065 * config/h8300/h8300.md: Update the comments at the beginning
17066 of the file.
17067
17068 2002-01-20 Kazu Hirata <kazu@hxi.com>
17069
17070 * config/i370/i370.c: Fix comment formatting.
17071 * config/i370/i370.h: Likewise.
17072 * config/i370/i370.md: Likewise.
17073 * config/i370/linux.h: Likewise.
17074
17075 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17076
17077 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
17078
17079 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
17080 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
17081 in incomplete case.
17082
17083 2002-01-20 Graham Stott <grahams@redhat.com>
17084
17085 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
17086
17087 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
17088
17089 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
17090
17091 2002-01-19 Tom Rix <trix@redhat.com>
17092
17093 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
17094
17095 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
17096
17097 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
17098
17099 * function.c (assign_stack_local_1): Adjust x_frame_offset with
17100 STARTING_FRAME_PHASE.
17101 (STARTING_FRAME_PHASE): New.
17102 (instantiate_virtual_regs): Check saneness of
17103 STARTING_FRAME_PHASE.
17104
17105 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
17106
17107 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
17108
17109 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
17110
17111 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
17112
17113 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
17114 be used for bootstrapping GCC 3.0.
17115
17116 2002-01-18 Kazu Hirata <kazu@hxi.com>
17117
17118 * config/h8300/h8300.md: Fix an insn length.
17119
17120 2002-01-18 Kazu Hirata <kazu@hxi.com>
17121
17122 * bitmap.h: Fix comment formatting.
17123 * combine.c: Likewise.
17124 * cppfiles.c: Likewise.
17125 * c-pragma.h: Likewise.
17126 * c-typeck.c: Likewise.
17127 * df.c: Likewise.
17128 * dwarf2out.c: Likewise.
17129 * function.c: Likewise.
17130 * gcc.c: Likewise.
17131 * genattrtab.c: Likewise.
17132 * gthr-win32.h: Likewise.
17133 * haifa-sched.c: Likewise.
17134 * predict.c: Likewise.
17135 * rtlanal.c: Likewise.
17136 * rtl.h: Likewise.
17137 * unwind-dw2-fde.h: Likewise.
17138 * unwind-pe.h: Likewise.
17139 * vmsdbgout.c: Likewise.
17140
17141 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17142
17143 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
17144 if type_required and passed decl.
17145
17146 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
17147
17148 * config.gcc (cpu_type): Include altivec.h in powerpc
17149 extra_headers.
17150 Same for darwin.
17151
17152 * config/rs6000/altivec.h: New.
17153
17154 2002-01-17 David Edelsohn <edelsohn@gnu.org>
17155
17156 * doc/install.texi (*-ibm-aix*): Update assembler and exception
17157 handling information.
17158 * doc/trouble.texi (Interoperation): Add libstdc++ information
17159 for AIX.
17160 (Misunderstandings): Add template instantiation and static template
17161 member information for AIX.
17162
17163 2002-01-17 Jason Merrill <jason@redhat.com>
17164
17165 * dbxout.c (dbxout_type): Support const and volatile.
17166
17167 * except.c (add_partial_entry): Remove backwards compatibility code.
17168 (end_protect_partials): Likewise.
17169
17170 2002-01-17 Jakub Jelinek <jakub@redhat.com>
17171
17172 * config/ia64/ia64.md (prologue_use): New.
17173 * config/ia64/ia64.c (ia64_expand_prologue): Use
17174 gen_prologue_use instead of gen_rtx_USE.
17175 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
17176 as CODE_FOR_pred_rel_mutex.
17177 (ia64_sched_reorder2): Likewise.
17178
17179 2002-01-16 Eric Christopher <echristo@redhat.com>
17180
17181 * config/mips/r3900.h: Reformat.
17182 (SUBTARGET_CPP_SIZE_SPEC): Remove.
17183 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
17184 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
17185 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
17186 * config/mips/t-elf: Remove mips3 multilib.
17187
17188 2002-01-16 H.J. Lu <hjl@gnu.org>
17189
17190 * config/mips/linux.h: Include "mips/abi64.h".
17191
17192 2002-01-16 H.J. Lu <hjl@gnu.org>
17193
17194 * config/mips/t-linux: New.
17195
17196 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
17197
17198 * config/mips/linux.h: Don't include "gofast.h".
17199 (INIT_SUBTARGET_OPTABS): Removed.
17200
17201 2002-01-16 Kazu Hirata <kazu@hxi.com>
17202
17203 * config/h8300/h8300-protos.h: Replace emit_a_shift with
17204 output_a_shift.
17205 * config/h8300/h8300.c: Likewise.
17206 * config/h8300/h8300.md: Likewise.
17207
17208 2002-01-16 Kazu Hirata <kazu@hxi.com>
17209
17210 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
17211 spaces after an opcode name.
17212 (pushqi1_h8300hs): Likewise.
17213 (pushhi1_h8300hs): Likewise.
17214
17215 2002-01-16 Kazu Hirata <kazu@hxi.com>
17216
17217 * doc/extend.texi: Replace "option" with "attribute"
17218 appropriately.
17219
17220 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17221
17222 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
17223 (and:DI () (const_int -8)).
17224 (split_small_symbolic_mem_operand): Split
17225 (mem (and:DI () (const_int -8)).
17226
17227 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17228
17229 PR target/5309:
17230 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
17231 same way as TYPE_IMUL.
17232 (ultrasparc_sched_reorder): Likewise.
17233 * config/sparc/sparc.md (type): Add comment to update
17234 ultrasparc_sched_reorder when making changes.
17235
17236 2002-01-16 Kazu Hirata <kazu@hxi.com>
17237
17238 * doc/invoke.texi: Change the dump file name of block
17239 reordering pass from 28.bbro to 29.bbro.
17240 Mention -dk option.
17241
17242 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
17243
17244 * i386.md (minsf splitter): Fix pasto.
17245
17246 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17247
17248 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
17249 to frame pointer initialisation instruction.
17250 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
17251 initialisation instruction.
17252 (soft_df_operand): Do not accept the IP register.
17253 (nonimmediate_soft_df_operand): Do not accept the IP register.
17254
17255 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17256
17257 PR target/5357:
17258 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
17259 MASK_V8 being both set.
17260
17261 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
17262
17263 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
17264 insn for GOT register; add REG_MAYBE_DEAD notes instead.
17265 config/s390/s390.md (call, call_value): Add GOT register to
17266 CALL_INSN_FUNCTION_USAGE where needed.
17267 (call_exp, call_value_exp): New.
17268
17269 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17270
17271 * config/arm/arm.c: General formatting tidy up.
17272
17273 2002-01-16 Graham Stott <grahams@redhat.com>
17274
17275 * calls.c (try_to_integrate): Use "(size_t)" intermediate
17276 cast and when casting an integer literal to "rtx" pointer.
17277 (expand_call): Likewise.
17278 * flow.c (try_pre_increment): Likewise.
17279 (find_use_as_address): Likewise.
17280 * integrate.c (expand_iline_function): Likewise.
17281 * regmove.c (try_auto_increment): Likewise.
17282
17283 2002-01-16 Graham Stott <grahams@redhat.com>
17284
17285 * sched-rgn.c (passed): Use sbitmap_free.
17286 (header): Likewise.
17287 (inner): Likewise.
17288 (in_queue): Likewise.
17289 (in_stack): Likewise.
17290
17291 2002-01-15 Eric Christopher <echristo@redhat.com>
17292
17293 * flow.c (propagate_one_insn): Change to use fatal_insn.
17294
17295 2002-01-15 Kazu Hirata <kazu@hxi.com>
17296
17297 * expmed.c (extract_fixed_bit_field): Remove unused code.
17298 * system.h: Poison SLOW_ZERO_EXTEND.
17299 * doc/tm.texi: Remove.
17300 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
17301 * config/arm/arm.h: Likewise.
17302 * config/avr/avr.h: Likewise.
17303 * config/clipper/clipper.h: Likewise.
17304 * config/convex/convex.h: Likewise.
17305 * config/d30v/d30v.h: Likewise.
17306 * config/dsp16xx/dsp16xx.h: Likewise.
17307 * config/elxsi/elxsi.h: Likewise.
17308 * config/fr30/fr30.h: Likewise.
17309 * config/h8300/h8300.h: Likewise.
17310 * config/i370/i370.h: Likewise.
17311 * config/i386/i386.h: Likewise.
17312 * config/m68k/m68k.h: Likewise.
17313 * config/mips/mips.h: Likewise.
17314 * config/ns32k/ns32k.h: Likewise.
17315 * config/pdp11/pdp11.h: Likewise.
17316 * config/pj/pj.h: Likewise.
17317 * config/s390/s390.h: Likewise.
17318 * config/sh/sh.h: Likewise.
17319 * config/stormy16/stormy16.h: Likewise.
17320 * config/v850/v850.h: Likewise.
17321 * config/vax/vax.h: Likewise.
17322 * config/we32k/we32k.h: Likewise.
17323
17324 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
17325
17326 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
17327 (altivec_lvsl): Change constraint to b.
17328 (altivec_lvsr): Same.
17329 (altivec_lvebx): Same.
17330 (altivec_lvehx): Same.
17331 (altivec_lvewx): Same.
17332 (altivec_lvxl): Same.
17333 (altivec_lvx): Same.
17334 (altivec_stvx): Add parallel.
17335 (altivec_stvxl): Same.
17336 (altivec_stvehx): Same.
17337 (altivec_stvebx): Same.
17338 (altivec_stvebx): Same.
17339
17340 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
17341
17342 * config.gcc: Change altivec.h to altivec-defs.h.
17343
17344 * config/rs6000/altivec.h: Delete.
17345
17346 * config/rs6000/altivec-defs.h: Add.
17347
17348 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
17349
17350 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
17351 and UMOD modes.
17352
17353 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
17354 less than or equal to eight bytes.
17355
17356 * vax.md (andsi3): Remove constraints and change SET destination
17357 operand type to nonimmediate_operand.
17358 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
17359 when it is a CONST_INT.
17360
17361 2002-01-15 Jason Merrill <jason@redhat.com>
17362
17363 * c-common.def (FILE_STMT): New code.
17364 * c-common.c (statement_code_p): It's a statement.
17365 * c-common.h (stmt_tree_s): Add x_last_filename.
17366 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
17367 (last_expr_filename): New macro.
17368 * c-semantics.c (begin_stmt_tree): Initialize it.
17369 (add_stmt): If the filename changed, also insert a
17370 FILE_STMT.
17371 (expand_stmt): Handle seeing one.
17372
17373 2002-01-15 Eric Christopher <echristo@redhat.com>
17374
17375 * flow.c (propagate_one_insn): Add error message and print out
17376 insn for debugging.
17377
17378 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17379
17380 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
17381 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
17382 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
17383 TRAMPOLINE_ALIGNMENT.
17384 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
17385 to be in bits.
17386 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
17387 PCC_BITFIELD_TYPE_MATTERS.
17388 * config/interix.h (STDC_VALUE): Remove. Use
17389 STDC_0_IN_SYSTEM_HEADERS.
17390 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
17391 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
17392 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
17393
17394 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
17395
17396 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
17397 not work on this platform currently.
17398
17399 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17400
17401 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
17402 readonly_warning in _().
17403
17404 2002-01-15 Douglas B Rupp <rupp@gnat.com>
17405
17406 * gcc.c (delete_if_ordinary): Backout previous change.
17407
17408 2002-01-15 Kazu Hirata <kazu@hxi.com>
17409
17410 * config/h8300/h8300.c (print_operand): Remove support for
17411 unused operand characters.
17412
17413 * read-rtl.c: Fix formatting.
17414 * real.c: Likewise.
17415 * recog.c: Likewise.
17416 * regclass.c: Likewise.
17417 * regmove.c: Likewise.
17418 * reg-stack.c: Likewise.
17419 * reload1.c: Likewise.
17420 * rtlanal.c: Likewise.
17421
17422 2002-01-15 Kazu Hirata <kazu@hxi.com>
17423
17424 * config/i386/i386.c: Fix formatting.
17425
17426 2002-01-15 Jakub Jelinek <jakub@redhat.com>
17427
17428 * c-typeck.c (process_init_element): Don't save_expr
17429 COMPOUND_LITERAL_EXPR if just its initializer will be used.
17430
17431 2002-01-15 David Edelsohn <edelsohn@gnu.org>
17432
17433 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
17434 emit optional traceback table if optimize_size or TARGET_ELF.
17435 * config/rs6000/rs6000.md (prefetch): New.
17436
17437 2002-01-15 Andreas Jaeger <aj@suse.de>
17438
17439 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
17440
17441 2002-01-15 Kazu Hirata <kazu@hxi.com>
17442
17443 * mips-tfile.c: Fix formatting.
17444
17445 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
17446
17447 * unroll.c (final_reg_note_copy): Fix previous commit.
17448
17449 2002-01-14 Kazu Hirata <kazu@hxi.com>
17450
17451 * config/h8300/h8300-protos.h: Remove the prototype for
17452 eq_operator.
17453 * config/h8300/h8300.c (eq_operator): Remove.
17454
17455 2002-01-14 Richard Henderson <rth@redhat.com>
17456
17457 * config/i386/i386.md (prefetch): Tidy.
17458 (prefetch_3dnow): Fix locality operand.
17459
17460 2002-01-14 Richard Henderson <rth@redhat.com>
17461
17462 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
17463 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
17464
17465 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
17466
17467 * reload1.c (reload_combine): Pass reg_sum replacement through
17468 copy_rtx in loop performing multiple changes.
17469
17470 2002-01-14 Jakub Jelinek <jakub@redhat.com>
17471
17472 * except.c (remove_unreachable_regions): New.
17473 (free_eh_status): Clear exception_handler_labels.
17474 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
17475 (find_exception_handler_labels): Don't add the same label more than
17476 once.
17477 (remove_exception_handler_label): Don't die if
17478 find_exception_handler_labels hasn't been called for the current
17479 function yet.
17480
17481 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
17482
17483 * toplev.c (rest_of_compilation): Rebuild jump labels after
17484 gcse.
17485
17486 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
17487
17488 * doc/extend.texi: Move documentation of X86 built-in functions
17489 here.
17490 * doc/invoke.texi: From here.
17491 * doc/sourcebuild.texi: Document location of documentation for
17492 machine built-in functions.
17493
17494 2002-01-13 Christopher Faylor <cgf@redhat.com>
17495
17496 * cppfiles.c (TEST_THRESHOLD): New macro.
17497 (SHOULD_MMAP): Ditto.
17498 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
17499 be used.
17500
17501 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
17502
17503 * unroll.c (final_reg_note_copy): Properly handle
17504 REG_LABEL
17505 (unroll_loops): Fix LOOP_CONDITION heuristics.
17506
17507 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
17508
17509 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
17510 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
17511
17512 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
17513
17514 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
17515 threaded loop.
17516
17517 2002-01-14 Tom Rix <trix@redhat.com>
17518
17519 * config/rs6000/rs6000.md: Fix typo with sradi.
17520
17521 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
17522
17523 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
17524 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
17525 (clrstrdi, clrstrsi): Adapt callers.
17526
17527 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
17528
17529 (movti splitter): Never use register 0 as base register.
17530
17531 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
17532
17533 * combine.c (simplify_shift_const): Always generate new rtx
17534 for shift expression instead of reusing given expression.
17535
17536 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17537
17538 * config/alpha/alpha.c (alpha_expand_mov): Don't call
17539 alpha_legitimize_address unless mode is Pmode.
17540
17541 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
17542
17543 * doc/md.texi (Modifiers): Document the '*' constraint for the
17544 user.
17545
17546 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
17547 * doc/extend.texi (Function Attributes): 'interrupt' is valid
17548 for xstormy16 too.
17549
17550 2002-01-13 Richard Henderson <rth@redhat.com>
17551
17552 * reload.c (find_reloads): Use a hard reg destination as reload reg
17553 for an input reload of the source.
17554
17555 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17556
17557 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
17558 more generic.
17559
17560 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
17561
17562 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17563 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17564
17565 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
17566
17567 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17568
17569 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
17570
17571 2002-01-12 Tom Rix <trix@redhat.com>
17572
17573 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
17574 TARGET_POWERPC64.
17575
17576 2002-01-12 Richard Henderson <rth@redhat.com>
17577
17578 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
17579
17580 * doc/invoke.texi: Update Alpha options.
17581
17582 * doc/invoke.texi: Update i386 built-in function lists.
17583
17584 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
17585
17586 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
17587 referencing outside.
17588
17589 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17590
17591 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
17592 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
17593 offsets, and change line folding.
17594 * optabs.c (expand_binop): Remove warnings.
17595 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
17596
17597 2002-01-12 Graham Stott <grahams@redhat.com>
17598
17599 * attribs.c (handle_deprecated_attribute): constify WHAT.
17600 * diagnostic.c (warn_deprecated_use): Add braces, fixes
17601 dangling else warning and constify WHAT.
17602 * except.h (struct function, struct inline_remap): Move
17603 struct tag forward defs before all prototypes.
17604 (duplicate_eh_regions): Whitespace.
17605
17606 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
17607
17608 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17609 MODE_BASE_REG_CLASS.
17610 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
17611
17612 2002-01-12 Richard Henderson <rth@redhat.com>
17613
17614 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
17615 (ix86_expand_vector_move): New.
17616 (bdesc_2arg): Remove andps, andnps, orps, xorps.
17617 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
17618 Remove old prefetch builtins. Special case the logicals removed above.
17619 (ix86_expand_builtin): Likewise.
17620 (safe_vector_operand): Use V4SFmode, not TImode.
17621 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
17622 (ix86_expand_timode_binop_builtin): New.
17623 * config/i386/i386-protos.h: Update.
17624 * config/i386/i386.h (enum ix86_builtins): Update.
17625 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
17626 Use ix86_expand_vector_move in vector move expanders.
17627 (movti_internal, movti_rex64): Add xorps alternative.
17628 (sse_clrv4sf): Rename and adjust from sse_clrti.
17629 (prefetch): Don't work so hard.
17630 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
17631 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
17632 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
17633
17634 2002-01-11 Richard Henderson <rth@redhat.com>
17635
17636 * config/i386/mmintrin.h: New file.
17637 * config/i386/xmmintrin.h: New file.
17638 * config.gcc (i?86-*-*): Add extra_headers.
17639 * simplify-rtx.c (simplify_unary_operation): Handle saturating
17640 truncation codes.
17641 (simplify_binary_operation): Handle saturating arithmetic codes.
17642 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
17643 not the lowpart subreg.
17644 (ix86_expand_builtin): Return a TImode dummy register instead of 0
17645 on error.
17646 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
17647
17648 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17649
17650 * conflict.c (conflict_graph_compute): Free regsets when finished.
17651 * ssa.c (compute_coalesced_reg_partition): Likewise.
17652
17653 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17654
17655 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
17656 every where we allocate a register.
17657
17658 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17659
17660 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
17661 * lcm.c (compute_earliest, compute_farthest): Likewise.
17662
17663 2002-01-11 Janis Johnson <janis187@us.ibm.com>
17664
17665 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
17666
17667 2002-01-11 Janis Johnson <janis187@us.ibm.com>
17668
17669 * doc/rtl.texi (Insns): Fix 2 typos.
17670
17671 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
17672
17673 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
17674 options. Use @table @gcctabopt for MMIX options. Add index
17675 entries for MMIX options. Start new paragraph with first
17676 heading of the machine-dependent options.
17677
17678 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
17679
17680 PR other/5299
17681 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
17682 * combine.c (force_to_mode): Same.
17683 * reload1.c (clear_reload_reg_in_use): Same.
17684
17685 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
17686
17687 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
17688 and 'subtargets'.
17689
17690 2002-01-11 Andreas Jaeger <aj@suse.de>,
17691 Brad Lucier <lucier@math.purdue.edu>
17692
17693 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
17694 mcpu.
17695
17696 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
17697
17698 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
17699 Protect with IN_LIBGCC.
17700 (LINK_EH_SPEC): Add required trailing space.
17701
17702 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
17703
17704 * c-tree.h: Move function declarations so that they are listed
17705 under the filename which contains them.
17706 (check_identifier, finish_decl_top_level,
17707 lookup_name_current_level_global, shadow_record_fields): Remove.
17708
17709 2002-01-11 Andreas Jaeger <aj@suse.de>
17710
17711 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
17712 march.
17713
17714 2002-01-10 Richard Henderson <rth@redhat.com>
17715
17716 * config/alpha/alpha.c (print_operand): Add 'J'.
17717 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
17718 new operand with the sequence number for the lituse. When splitting
17719 the insns, use gen_movdi_er_high_g and generate a sequence number.
17720 (gen_movdi_er_high_g): Print the sequence number if non-zero.
17721
17722 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
17723
17724 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
17725 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
17726 stvxl.
17727 (altivec_expand_builtin): Same.
17728 (altivec_expand_stv_builtin): New.
17729
17730 * config/rs6000/rs6000.h (rs6000_builtins): Same.
17731
17732 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
17733 ("altivec_lvehx"): New.
17734 ("altivec_lvewx"): New.
17735 ("altivec_lvxl"): New.
17736 ("altivec_lvx"): New.
17737 ("altivec_stvx"): New.
17738 ("altivec_stvebx"): New.
17739 ("altivec_stvehx"): New.
17740 ("altivec_stvewx"): New.
17741 ("altivec_stvxl"): New.
17742
17743 2002-01-10 Richard Henderson <rth@redhat.com>
17744
17745 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
17746 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
17747 care not to delete instructions twice.
17748
17749 2002-01-10 Zack Weinberg <zack@codesourcery.com>
17750
17751 * toplev.c: Don't declare environ (it's not used anywhere).
17752 * configure.in: Don't check for declaration of environ.
17753 * config/i386/xm-mingw32.h: Don't #define environ.
17754 * config.in, configure: Regenerate.
17755
17756 2002-01-10 Zack Weinberg <zack@codesourcery.com>
17757
17758 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
17759 * configure: Regenerate.
17760
17761 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
17762 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
17763 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
17764 alpha/xm-vms.h.
17765 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
17766 LIMITS_H_TEST here, not in m68k/x-next.
17767 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
17768 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
17769
17770 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
17771 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
17772 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
17773
17774 * config/i386/x-djgpp: Renamed i386/t-djgpp.
17775 * config/m88k/x-dolph: Renamed m88k/t-dolph.
17776 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
17777 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
17778 replacement of quadlib.asm with quadlib.c.
17779
17780 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
17781 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
17782 config/rs6000/xm-beos.h: Delete file.
17783
17784 * config.gcc: Update to match above changes.
17785
17786 2002-01-10 Kazu Hirata <kazu@hxi.com>
17787
17788 * config/h8300/h8300.h: Fix comment typos.
17789 * config/h8300/h8300.md: Likewise.
17790 * config/h8300/lib1funcs.asm: Likewise.
17791
17792 2002-01-10 Dale Johannesen <dalej@apple.com>
17793
17794 PR optimization/5269
17795 * unroll.c (precondition_loop_p): Make *increment be the correct
17796 sign when n_iterations known, to avoid confusing caller.
17797
17798 2002-01-10 Kazu Hirata <kazu@hxi.com>
17799
17800 * doc/extend.texi (deprecated): Fix a typo.
17801
17802 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
17803
17804 * basic-block.h (update_br_prob_note): Declare.
17805 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
17806 (try_forward_edges): Care negative frequencies and update note.
17807 (outgoing_edges_match): Tweek conditional merging heuristics.
17808 (try_crossjump_to_edge): use update_br_prob_note.
17809 * cfglayout.c (fixup_reorder_chain): Likewise.
17810 * cfrtl.c (update_br_prob_note): New.
17811 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
17812
17813 * i386.c (ix86_decompose_address): Return -1 if address contains
17814 shift.
17815 (legitimate_address_p): Require ix86_decompose_address to return 1.
17816
17817 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
17818 (cprop_insn): Likewise.
17819
17820 2002-01-10 Kazu Hirata <kazu@hxi.com>
17821
17822 * toplev.c: Fix formatting.
17823 * tree.c: Likewise.
17824 * tree-dump.c: Likewise.
17825 * unroll.c: Likewise.
17826 * unwind-dw2.c: Likewise.
17827 * unwind-dw2-fde.c: Likewise.
17828 * unwind-dw2-fde-glibc.c: Likewise.
17829 * unwind-sjlj.c: Likewise.
17830
17831 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
17832
17833 * doc/invoke.texi: Document PDP-11 options.
17834
17835 2002-01-10 Kazu Hirata <kazu@hxi.com>
17836
17837 * config/h8300/h8300.h: Fix formatting.
17838
17839 2002-01-10 Ira Ruben <ira@apple.com>
17840
17841 Add __attribute__ ((deprecated)).
17842 * extend.texi: Document __attribute__ ((deprecated)).
17843 * invoke.texi: Document -Wno-deprecated-declarations.
17844 * testsuite/g++.dg/other/deprecated.C: New C++ test.
17845 * testsuite/gcc.dg/deprecated.c: New C test.
17846 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
17847 (c_common_attribute_table): Add "deprecated" entry.
17848 (handle_deprecated_attribute): New function.
17849 * c-decl.c (deprecated_states): New enum.
17850 deprecated_state: State of "deprecated" handling.
17851 (start_decl): Set deprecated_state based on attributes.
17852 (grokdeclarator): Test for deprecated uses, propagate attribute.
17853 * c-typeck.c (build_component_ref): Test for deprecated fields.
17854 (build_external_ref): Test for deprecated primaries.
17855 * diagnostic.c (warn_deprecated_use) New function to issue
17856 warnings about __attribute__ ((depricated)) references.
17857 * flags.h (warn_deprecated_decl): Extern declared for
17858 -W[no-]deprecated-declarations option.
17859 * print-tree.c (print_node): Show deprecated flag status.
17860 * toplev.c (warn_deprecated_decl): Defined.
17861 (W_options): Added "deprecated-declaration".
17862 * toplev.h (warn_deprecated_use): Extern declared.
17863 * tree.h (struct tree_common): Define deprecated_flag.
17864 (TREE_DEPRECATED): New macro to access flag.
17865 * cp/call.c (build_call): Test for deprecated calls.
17866 * cp/class.c (add_implicitly_declared_members): Set global
17867 flag to tell grokdeclarator to not issue deprecated warnings.
17868 * cp/cp-tree.h: Add extern for adding_implicit_members.
17869 * cp/decl.c (deprecated_states): New enum.
17870 (start_decl): Set deprecated_state based on attributes.
17871 (grokdeclarator): Test for deprecated uses, propagate attribute.
17872 * cp/lex.c (do_identifier): Test for deprecated primaries.
17873 * cp/typeck.c (build_component_ref): Test for deprecated fields.
17874
17875 2002-01-10 Ira Ruben <ira@apple.com>
17876
17877 Fix to assign attributes to inline member functions.
17878 * cp/decl.c (start_method): Handle attrlist.
17879
17880 2002-01-10 Kazu Hirata <kazu@hxi.com>
17881
17882 * combine.c (expand_field_assignment): Use subreg_lsb().
17883
17884 2002-01-10 David Edelsohn <edelsohn@gnu.org>
17885
17886 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
17887 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
17888 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
17889 Recurse for any operand of AND as long as constant is non-zero.
17890
17891 2002-01-10 Kazu Hirata <kazu@hxi.com>
17892
17893 * config/h8300/h8300.md: Remove constraints from expanders.
17894
17895 2002-01-10 Kazu Hirata <kazu@hxi.com>
17896
17897 * varasm.c: Fix formatting.
17898 * varray.c: Likewise.
17899 * vmsdbgout.c: Likewise.
17900 * xcoffout.c: Likewise.
17901
17902 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
17903
17904 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
17905 update edge probabilities to match.
17906
17907 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
17908
17909 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
17910 dependencies.
17911 * doc/languages.texi, doc/sourcebuild.texi: New files.
17912 * doc/configfiles.texi: Make a subsubsection. Update.
17913 * doc/configterms.texi: Add @node. Remove warning that this isn't
17914 instructions for building GCC.
17915 * doc/makefile.texi: Make a subsection.
17916 * doc/gccint.texi: Update.
17917
17918 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
17919
17920 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
17921
17922 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
17923
17924 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
17925
17926 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
17927
17928 * optabs.c (expand_fix): Look for wider integer modes first.
17929
17930 * i386.md (mov?f): Avoid the fake const double trick for medium
17931 memory model.
17932 (min?f*/max?f*): Prohibit memory operands for i387 variant.
17933 (fop_df_4): Disable for SSE compilation.
17934
17935 2002-01-10 Graham Stott <grahams@redhat.com>
17936
17937 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
17938 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
17939
17940 2002-01-10 Richard Henderson <rth@redhat.com>
17941
17942 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
17943
17944 2002-01-10 Richard Henderson <rth@redhat.com>
17945
17946 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
17947 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
17948
17949 2002-01-10 Kazu Hirata <kazu@hxi.com>
17950
17951 * combine.c (can_combine_p): Fix a comment typo.
17952
17953 2002-01-09 Zack Weinberg <zack@codesourcery.com>
17954
17955 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
17956 empty list correctly. Change loop index $t to $f for
17957 consistency with rest of Makefile.
17958
17959 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
17960
17961 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
17962 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
17963
17964 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
17965 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
17966 (altivec_init_builtins): Same.
17967 (altivec_expand_unop_builtin): Return NULL_RTX on error.
17968 (altivec_expand_binop_builtin): Same.
17969 (altivec_expand_ternop_builtin): Same.
17970 (bdesc_dst): New.
17971
17972 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
17973 ("altivec_vctuxs"): Fix typo.
17974 ("altivec_vnmsubfp"): Same.
17975 ("altivec_dssall"): New.
17976 ("altivec_mfvscr"): New.
17977 ("altivec_dss"): New.
17978 ("altivec_lvsl"): New.
17979 ("altivec_lvsr"): New.
17980 ("altivec_dstt"): New.
17981 ("altivec_dstst"): New.
17982 ("altivec_dststt"): New.
17983 ("altivec_dst"): New.
17984
17985 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
17986 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
17987
17988 2002-01-09 Richard Henderson <rth@redhat.com>
17989
17990 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
17991
17992 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
17993
17994 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
17995 function.
17996 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
17997 prototype.
17998 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
17999
18000 2002-01-09 Kazu Hirata <kazu@hxi.com>
18001
18002 * read-rtl.c: Fix formatting.
18003 * real.c: Likewise.
18004 * regclass.c: Likewise.
18005 * regrename.c: Likewise.
18006 * reg-stack.c: Likewise.
18007 * reload1.c: Likewise.
18008 * reload.c: Likewise.
18009 * rtl.c: Likewise.
18010
18011 2002-01-09 Kazu Hirata <kazu@hxi.com>
18012
18013 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
18014 to extract items in the expr_list chain.
18015
18016 2002-01-09 Richard Henderson <rth@redhat.com>
18017
18018 * config/vax/vax.c (vax_rtx_cost): Never abort.
18019
18020 * config/vax/vax.h (REAL_ARITHMETIC): Define.
18021
18022 2002-01-09 Jan Hubicka <jh@suse.cz>
18023
18024 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
18025
18026 2002-01-09 Richard Henderson <rth@redhat.com>
18027
18028 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
18029 Unify code from various alternatives.
18030
18031 2002-01-09 Richard Henderson <rth@redhat.com>
18032
18033 * regrename.c (copy_value): Ignore the copy if the source register
18034 is present in the value chain with a narrower mode.
18035
18036 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18037
18038 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
18039 for the c4x target. Also improve layout.
18040
18041 2002-01-09 Richard Henderson <rth@redhat.com>
18042
18043 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
18044 * config/m32r/m32r.md (and ior xor splitters): Swap operands
18045 to match insn patterns.
18046
18047 2002-01-09 Richard Henderson <rth@redhat.com>
18048
18049 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
18050 (copyprop_hardreg_forward_1): Likewise.
18051
18052 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
18053
18054 * pa.md (decrement_and_branch_until_zero): Change predicate for
18055 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
18056
18057 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18058
18059 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
18060 gets undefined. For Darwin.
18061
18062 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18063
18064 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
18065
18066 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18067
18068 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
18069
18070 2002-01-08 Richard Henderson <rth@redhat.com>
18071
18072 * regrename.c (copy_value): Ignore overlapping copies.
18073
18074 2002-01-08 Richard Henderson <rth@redhat.com>
18075
18076 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
18077 as needed to avoid shared structure.
18078
18079 2002-01-08 Kazu Hirata <kazu@hxi.com>
18080
18081 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
18082 H8/300H and H8/S.
18083
18084 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18085
18086 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
18087 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
18088 documentation of obsolete macros.
18089 * system.h: Poison these macros.
18090 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
18091 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
18092 config/c4x/c4x.h, config/clipper/clipper.h,
18093 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
18094 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
18095 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
18096 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
18097 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
18098 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
18099 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18100 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
18101 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
18102 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18103 config/sparc/sparc.h, config/stormy16/stormy16.h,
18104 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
18105 definitions and commented out definitions of obsolete macros.
18106 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
18107 of MAX_INT_TYPE_SIZE.
18108
18109 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18110
18111 * config/s390/s390.c (s390_preferred_reload_class): Never
18112 return ADDR_REGS if it isn't a subset of the given class.
18113 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
18114 FP_REGS, but all superclasses as well.
18115
18116 * config/s390/s390.c (s390_function_profiler): Fix thinko.
18117
18118 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
18119 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
18120 must not be a const_int.
18121
18122 2002-01-08 Richard Henderson <rth@redhat.com>
18123
18124 * Makefile.in (toplev.o): Depend on options.h.
18125 (gcc.o): Depend on specs.h.
18126
18127 2002-01-08 Jakub Jelinek <jakub@redhat.com>
18128
18129 * expr.c (store_expr): Convert VOIDmode constants back to target's
18130 mode.
18131
18132 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18133
18134 * doc/invoke.texi: Markup gcc as @command. Refer to
18135 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
18136 of http://gcc.gnu.org/thanks.html.
18137
18138 2002-01-08 Dale Johannesen <dalej@apple.com>
18139
18140 * config/rs6000/rs6000.md: Add missing int register
18141 target case to movdf_low.
18142
18143 2002-01-08 Zack Weinberg <zack@codesourcery.com>
18144
18145 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
18146 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
18147 (cppinit.o): Depend on except.h.
18148 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
18149 s-specs): New rules.
18150
18151 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
18152 Don't create specs.h/options.h/gencheck.h here. Remove
18153 unnecessary variable settings from last argument of AC_OUTPUT.
18154 * config.in, configure: Regenerate.
18155 * intl.c: Hardcode package name as "gcc".
18156
18157 * cppinit.c: Include except.h.
18158 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
18159 appropriate.
18160 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
18161 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
18162 (!)USING_SJLJ_EXCEPTIONS.
18163 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
18164
18165 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18166
18167 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
18168 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
18169 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
18170 documentation of obsolete macros.
18171 * system.h: Poison these macros.
18172 * config/d30v/d30v.h, config/ns32k/encore.h,
18173 config/stormy16/stormy16.h: Remove definitions and commented out
18174 definitions of obsolete macros.
18175
18176 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
18177
18178 * objc/objc-act.c (handle_class_ref): Mark the declaration of
18179 %sobjc_class_ref_%s as used - to prevent unwanted compiler
18180 warnings.
18181
18182 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18183
18184 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
18185 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
18186 to insn adjusting stack/frame pointer.
18187 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
18188 accept operands that cause the insn to be non-splittable.
18189
18190 2002-01-08 Graham Stott <grahams@redhat.com>
18191
18192 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
18193 (C_TYPE_FIELDS_VOLATILE): Likewise.
18194 (C_TYPE_BEING_DEFINED): Likewise.
18195 (C_IS_RESERVED_WORD): Likewise.
18196 (C_TYPE_VARIABLE_SIZE): Likewise.
18197 (C_DECL_VARIABLE_SIZE): Likewise.
18198 (C_MISSING_PROTOTYPE_WARNED): Likewise.
18199 (C_SET_EXP_ORIGINAL_CODE): Likewise.
18200 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
18201 parenthesis.
18202 (C_DECL_ANTICIPATED): Likewise.
18203 (c_build_type_variant): Add parenthesis.
18204
18205 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18206
18207 * gcc.c (option_map): Remove --version.
18208 (process_command): Handle -fversion following the GNU Coding
18209 Standards. Partially addresses PR other/704.
18210
18211 2002-01-08 Graham Stott <grahams@redhat.com>
18212
18213 * combine.c (combine_instructions): Fix typo.
18214
18215 2002-01-08 Graham Stott <grahams@redhat.com>
18216
18217 * debug.h: Use "tree" and "rtx" throughout.
18218
18219 * debug.c: Likewise.
18220
18221 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
18222
18223 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
18224 constant pool, use the pool's version of the symbol instead.
18225
18226 2002-01-07 Richard Henderson <rth@redhat.com>
18227
18228 * regrename.c (find_oldest_value_reg): Ignore the value chain if
18229 the original register was copied in a mode with a fewer number of
18230 hard registers than the desired mode.
18231 (copyprop_hardreg_forward_1): Likewise.
18232 (debug_value_data): Fix loop test.
18233 * toplev.c (parse_options_and_default_flags): Reenable
18234 -fcprop-registers at -O1.
18235
18236 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18237
18238 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
18239 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
18240
18241 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
18242 predicates.
18243
18244 * config/rs6000/rs6000.md: Add altivec predicate patterns.
18245
18246 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
18247
18248 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
18249 (pa_output_function_prologue): Output local label at the beginning of
18250 the prologue when profiling.
18251 (hppa_profile_hook): Use the local label rather than the function label.
18252 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
18253
18254 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18255
18256 * config/rs6000/rs6000.c (print_operand): Remove extra space.
18257 (altivec_expand_unop_builtin): Fix thinko.
18258 (altivec_expand_binop_builtin): Same.
18259 (altivec_expand_ternop_builtin): Same.
18260 (altivec_expand_builtin): Same.
18261
18262 2002-01-07 Richard Henderson <rth@redhat.com>
18263
18264 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
18265
18266 2002-01-07 Jason Merrill <jason@redhat.com>
18267
18268 * unwind-dw2.c (execute_cfa_program): Use < again.
18269
18270 2002-01-07 Jakub Jelinek <jakub@redhat.com>
18271
18272 * predict.c (combine_predictions_for_insn): Avoid division by zero.
18273
18274 2002-01-07 Jakub Jelinek <jakub@redhat.com>
18275
18276 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
18277 Don't allow -1 - x -> ~x simplifications in the first pass.
18278
18279 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18280
18281 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
18282 arguments.
18283 (altivec_expand_binop_builtin): Same.
18284 (altivec_expand_unop_builtin): Same.
18285 (print_operand): Fix typo.
18286 (bdesc_1arg): Add vupk* variants.
18287
18288 * rs6000.h (rs6000_builtins): Add vupk* enums.
18289
18290 * rs6000.md: Add altivec_vupk* variants.
18291
18292 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
18293
18294 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
18295 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
18296 and last update dates.
18297
18298 2002-01-07 Janis Johnson <janis187@us.ibm.com>
18299
18300 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
18301
18302 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
18303
18304 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
18305 * config/avr/avr.h (CPP_SPEC): Likewise.
18306 (LINK_SPEC): Likewise.
18307 (CRT_BINUTILS_SPECS): Likewise.
18308 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
18309 * doc/invoke.texi (AVR Options): Document them.
18310
18311 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
18312
18313 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
18314 LABEL_NUSES.
18315
18316 2002-01-07 Graham Stott <grahams@redhat.com>
18317
18318 * config/i386/i386.h: Update copyright date.
18319 (HALF_PIC_PTR): Add parenthesis.
18320 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
18321 (CONSTANT_ALIGNMENT): Add parenthesis.
18322 (DATA_ALIGNMENT): Likewise.
18323 (LOCAL_ALIGNMENT): Likewise.
18324 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
18325 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
18326 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
18327 (HARD_REGNO_NREGS): Add paranethesis.
18328 (VALID_SSE_REG_MODE): Whitespace.
18329 (VALID_MMX_REG_MODE): Whitespace.
18330 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
18331 (ix86_hard_regno_mode_ok): Add parenthesis.
18332 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
18333 (RETURN_IN_MEMORY): Whitespace.
18334 (N_REG_CLASSES): Add parenthesis.
18335 (INTEGER_CLASS_P): Add parenthesis and wrap.
18336 (FLOAT_CLASS_P): Likewise.
18337 (SSE_CLASS_P): Likewise.
18338 (MMX_CLASS_P): Likewise.
18339 (MAYBE_INTEGER_CLASS_P): Likewise.
18340 (MAYBE_FLOAT_CLASS_P): Likewise.
18341 (MAYBE_SSE_CLASS_P): Likewise.
18342 (MAYBE_MMX_CLASS_P): Likewise.
18343 (Q_CLASS_P): Likewise.
18344 (GENERAL_REGNO_P): Uppercase macro parameter.
18345 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
18346 (FP_REGNO_P): Likewise.
18347 (ANY_FP_REGNO_P): Uppercase macro parameter.
18348 (SSE_REGNO_P): Likewise.
18349 (SSE_REGNO): Likewise.
18350 (SSE_REG_P): Likewise.
18351 (SSE_FLOAT_MODE_P): Likewise.
18352 (MMX_REGNO_P): Likewise.
18353 (MMX_REG_P):Likewise.
18354 (STACK_REG_P): Likewise.
18355 (NON_STACK_REG_P): Likewise.
18356 (STACK_TOP_P): Likewise.
18357 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
18358 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
18359 (SECONDARY_MEMORY_NEEDED): Likewise.
18360 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
18361 (MD_ASM_CLOBBERS): Whitespace and wrap.
18362 (MUST_PASS_IN_STACK): Whitespace and wrap.
18363 (RETURN_POPS_ARGS): Add parenthesis.
18364 (INIT_CUMULATIVE_ARGS): Likewise.
18365 (FUNCTION_ARG): Likewise.
18366 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
18367 (SETUP_INCOMING_VARARGS): Likewise.
18368 (BUILD_VA_LIST_TYPE): Add parenthesis.
18369 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
18370 parenthsis.
18371 (EXPAND_BUILTIN_VA_ARG): Likewise.
18372 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
18373 (INITIALIZE_TRAMPOLINE): Add parenthesis.
18374 (INITIAL_ELIMINATION_OFFSET): Likewise.
18375 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
18376 (REGNO_OK_FOR_BASE_P): Likewise.
18377 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
18378 (REGNO_OK_FOR_DIREG_P): Likewise.
18379 (REG_OK_FOR_INDEX_P): Whitespace.
18380 (REG_OK_FOR_BASE_P): Whitespace.
18381 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
18382 parenthesis.
18383 (FIND_BASE_TERM): Fix typo.
18384 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
18385 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
18386 (SYMBOLIC_CONST; Whitespace.
18387 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
18388 (ENCODE_SECTION_INFO): Whitespace.
18389 (FINALIZE_PIC): Remove do { ... } while (0).
18390 (PROMOTE_MODE): Wrap in do { ... } while (0).
18391 (CONST_COSTS): Whitespace.
18392 (RTX_COSTS): Add paramethesis, whitespace and wrap.
18393 (REGISTER_MOVE_COST): Add parenthesis.
18394 (MEMORY_MOVE_COST): Likewise.
18395 (EXTRA_CC_MODES): Whitespace.
18396 (SELECT_CC_MODE): Add parenthesis and whitespace.
18397 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
18398 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
18399 (ASM_OUTPUT_LABEL): Add paramethesis.
18400 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
18401 (ASM_OUTPUT_REG_POP): Likewise.
18402 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
18403 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
18404
18405 * config/i386/i386.c: Update copyright.
18406 (CHECK_STACK_LIMIT): Add parenthesis.
18407 (AT_BP): Uppercase macro parameter.
18408 (x86_64_int_parameter_registers): Constify.
18409 (x86_64_int_return_registers): Likewise.
18410 (ix86_compare_op0): Use rtx.
18411 (construct_container): Constify INTREG parameter.
18412 (function_arg): Use rtx.
18413
18414 * diagnostic.h: Update copyright date.
18415 (output_buffer_state): Add parenthesis.
18416 (output_buffer_format_args): Likewise.
18417
18418 * combine.c (combine_instructions): Replace XEXP (links, 0)
18419 with link.
18420
18421 2002-01-06 H.J. Lu <hjl@gnu.org>
18422
18423 * cfgcleanup.c (thread_jump): Fix 2 typos.
18424
18425 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
18426
18427 * config.gcc: Add support for --enable-altivec.
18428
18429 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18430
18431 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
18432
18433 2002-01-06 Jakub Jelinek <jakub@redhat.com>
18434
18435 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
18436 __objc_class_name_*.
18437
18438 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18439
18440 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
18441
18442 2002-01-06 Richard Henderson <rth@redhat.com>
18443
18444 * reorg.c (emit_delay_sequence): Remove death notes, not merely
18445 nop them out. Increment label reference count for REG_LABEL.
18446 (fill_slots_from_thread): Frob label reference count around
18447 delete_related_insns.
18448
18449 2002-01-05 Richard Henderson <rth@redhat.com>
18450
18451 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
18452 jump threading.
18453
18454 2002-01-05 Richard Henderson <rth@redhat.com>
18455
18456 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
18457 * integrate.c (output_inline_function): Likewise.
18458 * toplev.c (rest_of_compilation): Do it here instead. Move call
18459 to remove_unnecessary_notes after emitting abstract instance.
18460 Force an emitted nested function to have its parent emited as well.
18461 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
18462 for null.
18463 (rtl_for_decl_location): Do not look at reload data structures
18464 before reload has run.
18465
18466 2002-01-05 Kazu Hirata <kazu@hxi.com>
18467
18468 * cse.c: Fix formatting.
18469 * dwarf2asm.c: Likewise.
18470 * dwarf2out.c: Likewise.
18471 * explow.c: Likewise.
18472 * expmed.c: Likewise.
18473 * function.c: Likewise.
18474 * gcov.c: Likewise.
18475 * gencheck.c: Likewise.
18476 * genrecog.c: Likewise.
18477 * ggc-common.c: Likewise.
18478 * ggc-page.c: Likewise.
18479 * global.c: Likewise.
18480
18481 2002-01-05 Kazu Hirata <kazu@hxi.com>
18482
18483 * combine.c: Fix formatting.
18484
18485 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
18486
18487 PR middle-end/1557
18488 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
18489
18490 2002-01-05 David Edelsohn <edelsohn@gnu.org>
18491
18492 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
18493 as 1 for __powerpc64__ as well.
18494
18495 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
18496
18497 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
18498 return it.
18499
18500 2002-01-05 Daniel Berlin <dan@dberlin.org>
18501
18502 * lcm.c: Revert change, due to performance regression it causes on
18503 SPEC because it's slightly more conservative (sigh, I hate
18504 edge-based LCM).
18505
18506 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
18507
18508 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
18509
18510 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
18511
18512 * doc/cppinternals.texi: Update.
18513
18514 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
18515
18516 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
18517 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
18518 negatives.
18519 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
18520 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
18521 kludge for pre-october-14th mmix versions to handle new-found bug
18522 with PUSHJ/PUSHGO and the register stack.
18523 * config/mmix/mmix.h (struct machine_function): Rename member
18524 has_call_value_without_parameters to has_call_without_parameters.
18525 All referers changed.
18526 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
18527 TARGET_MASK_BRANCH_PREDICT): New macros.
18528 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
18529 -mno-reg-stack-fill-bug-workaround.
18530 * config/mmix/mmix.md ("call"): Set struct machine member
18531 has_call_without_parameters.
18532
18533 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
18534
18535 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
18536
18537 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
18538
18539 * cfgcleanup.c: Include tm_p.h
18540 (mark_effect): Fix handling of hard register; fix handling of SET
18541
18542 2002-01-04 Kazu Hirata <kazu@hxi.com>
18543
18544 * config/h8300/h8300.md (anonymous patterns): Check that
18545 operands are registers before using REGNO on them.
18546
18547 2002-01-03 Roland McGrath <roland@frob.com>
18548
18549 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
18550
18551 2002-01-04 Jakub Jelinek <jakub@redhat.com>
18552
18553 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
18554 * c-common.h (genrtl_expr_stmt_value): Likewise.
18555 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
18556 (expand_expr_stmt_value): Add maybe_last argument.
18557 Don't warn about statement with no effect if it is the last statement
18558 in expression statement.
18559 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
18560 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
18561 expand_expr_stmt_value.
18562 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
18563 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
18564 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
18565 as maybe_last to expand_expr_stmt_value.
18566
18567 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
18568
18569 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
18570 be passed in, do not build it.
18571 (c_begin_if_stmt): New function.
18572 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18573 * c-common.h (c_expand_start_cond): Update prototype.
18574 (c_begin_if_stmt): Prototype new function.
18575 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18576 * c-parse.in (if_prefix): Use c_begin_if_stmt,
18577 c_begin_while_stmt and c_finish_while_stmt_cond.
18578
18579 2002-01-04 William Cohen <wcohen@redhat.com>
18580
18581 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
18582 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18583 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18584 * config/pa/som.h (ASM_FILE_START): Likewise.
18585
18586 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
18587
18588 * lcm.c: Include df.h.
18589 Add available_transfer_function prototype.
18590 (compute_available): Rework to use iterative dataflow framework.
18591 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
18592 with bb_info in df.h
18593 (available_transfer_function): New function.
18594
18595 * Makefile.in (lcm.o): add df.h to dependencies.
18596
18597 2002-01-04 Richard Henderson <rth@redhat.com>
18598
18599 * config/alpha/alpha.c (some_operand): Accept HIGH.
18600 (input_operand): Likewise; accept simple references to globals.
18601 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
18602 (alpha_const_double_ok_for_letter_p): Likewise.
18603 (alpha_extra_constraint): Likewise.
18604 (alpha_preferred_reload_class): Likewise. Do not force
18605 symbolic constants to memory.
18606 (alpha_legitimate_address_p): Accept simple references
18607 to small_symbolic_operand.
18608 (alpha_legitimize_address): New arg scratch. Be prepared to be
18609 called when no_new_pseudos. Emit simple symbolic references.
18610 Split integers into low, high, and rest.
18611 (alpha_expand_mov): Use alpha_legitimize_address.
18612 (some_small_symbolic_mem_operand): New.
18613 (split_small_symbolic_mem_operand): New.
18614 * config/alpha/alpha-protos.h: Update.
18615 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
18616 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
18617 (EXTRA_CONSTRAINT): Likewise.
18618 (PREFERRED_RELOAD_CLASS): Likewise.
18619 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
18620 (PREDICATE_CODES): Update.
18621 * config/alpha/alpha.md: New post-reload splitters to convert
18622 simplfied symbolic operands to the form that references $29.
18623 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
18624 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
18625
18626 2002-01-03 Richard Henderson <rth@redhat.com>
18627
18628 * local-alloc.c (function_invariant_p): Update commentary.
18629
18630 2002-01-04 H.J. Lu <hjl@gnu.org>
18631
18632 * toplev.c (rest_of_compilation): Fix a typo when calling
18633 cleanup_cfg.
18634
18635 2002-01-03 Kazu Hirata <kazu@hxi.com>
18636
18637 * c-common.c: Fix formatting.
18638 * diagnostic.c: Likewise.
18639 * doloop.c: Likewise.
18640 * dwarf2out.c: Likewise.
18641
18642 2002-01-03 Kazu Hirata <kazu@hxi.com>
18643
18644 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
18645 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
18646
18647 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18648
18649 * cpperror.c: Update comments and copyright.
18650 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
18651 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
18652
18653 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
18654
18655 * collect2.c (main): Use strcmp when testing for "-shared".
18656
18657 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18658
18659 * cppmacro.c: Don't include intl.h. Update comments.
18660 (new_number_token): Allocate enough buffer for 64-bit unsigned
18661 integers; update prototype.
18662 * cppmain.c: Update comments.
18663
18664 2002-01-03 William Cohen <wcohen@redhat.com>
18665
18666 * function.h (struct function): Add profile.
18667 (current_function_profile): New.
18668 doc/extend.texi: Update documentation.
18669 * final.c (final_start_function): Use current_function_profile
18670 instead of profile_flag.
18671 (profile_after_prologue): Likewise.
18672 * function.c (expand_function_start): Likewise.
18673 (expand_function_start): Likewise.
18674 * config/alpha/alpha.c (direct_call_operand):
18675 (alpha_does_function_need_gp): Likewise.
18676 (alpha_expand_prologue): Likewise.
18677 * config/arm/arm.c (arm_expand_prologue): Likewise.
18678 thumb_expand_prologue: Likewise.
18679 * config/d30v/d30v.c (d30v_stack_info): Likewise.
18680 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
18681 (fr30_expand_prologue): Likewise.
18682 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
18683 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
18684 * config/i386/i386.h (FINALIZE_PIC): Likewise.
18685 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
18686 * config/i960/i960.c (i960_output_function_prologue): Likewise.
18687 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
18688 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
18689 (m32r_expand_prologue): Likewise.
18690 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
18691 (m88k_expand_prologue): Likewise.
18692 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
18693 * config/mips/mips.c (compute_frame_size): Likewise.
18694 (mips_expand_prologue): Likewise.
18695 (mips_can_use_return_insn): Likewise.
18696 * config/pa/elf.h (ASM_FILE_START): Likewise.
18697 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18698 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18699 * config/pa/som.h (ASM_FILE_START): Likewise.
18700 * config/romp/romp.c (romp_using_r14): Likewise.
18701 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
18702 (rs6000_stack_info): Likewise.
18703 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18704 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
18705 * config/v850/v850.c (compute_register_save_size): Likewise.
18706
18707 2002-01-03 Jakub Jelinek <jakub@redhat.com>
18708
18709 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
18710 gen_lowpart_common fails, use gen_lowpart_SUBREG.
18711
18712 2002-01-03 Turly O'Connor <turly@apple.com>
18713
18714 * darwin.c (machopic_output_possible_stub_label): Don't generate
18715 stub routines for pseudo-stubs which we've just defined.
18716
18717 2002-01-03 Kazu Hirata <kazu@hxi.com>
18718
18719 * builtins.c: Fix formatting.
18720 * c-typeck.c: Likewise.
18721 * combine.c: Likewise.
18722 * expr.c: Likewise.
18723 * loop.c: Likewise.
18724
18725 2002-01-03 Andreas Schwab <schwab@suse.de>
18726
18727 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
18728 and return true if _cpp_push_next_buffer pushed a new include
18729 file.
18730 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
18731 _cpp_pop_file_buffer did not push a new file.
18732 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
18733
18734 2002-01-02 Eric Christopher <echristo@redhat.com>
18735
18736 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
18737 FIND_REG_INC_NOTE call. Update copyright.
18738 * loop.c (canonicalize_condition): Ditto.
18739 * reorg.c (delete_scheduled_jump): Ditto.
18740
18741 2002-01-03 Kazu Hirata <kazu@hxi.com>
18742
18743 * gcse.c: Fix formatting.
18744
18745 2002-01-03 Graham Stott <grahams@redhat.com>
18746
18747 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
18748 forward defs for struct tags rtx_def, union_tree, rtvec_def
18749 also output corresponding typedefs for rtx, tree, and rtvec.
18750
18751 * system.h: Move forward defs for struct tags rtx_def, union_tree,
18752 rtvec_def along with corresponding typedefs for rtx, tree, and
18753 rtvec to config.h, hconfig.h, tconfig.h.
18754
18755 2002-01-03 Graham Stott <grahams@redhat.com>
18756
18757 * tree.h: Update copyright date.
18758 (IS_EXPR_CODE_CLASS): Add parenthesis.
18759 (TREE_SET_CODE): Add whitespace.
18760 (TREE_CHECK): Add parenthesis.
18761 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
18762 (CST_OR_CONSTRUCTOR_CHECK):
18763 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
18764 (TREE_SYMBOL_REFERENCED): Whitespace.
18765 (INT_CST_LT): Likewise.
18766 (INT_CST_LT_UNSIGNED): Likewise.
18767 (tree_real_cst): Unwrap comment.
18768 (tree_string): Likewise.
18769 (tree_complex): Likewise.
18770 (IDENTIFIER_POINTER): correct cast.
18771 (SAVE_EXPR_CONTEXT): Whitespace.
18772 (EXPR_WFL_FILENAME_NODE): Likewise.
18773 (EXPR_WFL_FILENAME): Remove parenthesis.
18774 (DECL_ORIGIN): Add parenthesis.
18775 (DECL_FROM_INLINE): Use NULL_TREE.
18776 (build_int_2): Whitespace.
18777 (build_type_variant): Add parenthesis.
18778
18779 * gcc/jcf-parse.c: Update copyright date.
18780 (yyparse): Constify resource_filename.
18781
18782 2002-01-03 Graham Stott <grahams@redhat.com>
18783
18784 * rtl.h: Update copyright date.
18785 (RTL_CHECK1): Wrap long line.
18786 (RTL_CHECK2): Likewise.
18787 (RTL_CHECKC1): Wrap long line and whitespace.
18788 (RTL_CHECKC2): Likewise.
18789 (XWINT): Whitespace.
18790 (XINT): Likewise.
18791 (XSTR): Likewise.
18792 (XEXP): Likewise.
18793 (XVEC): Likewise.
18794 (XMODE): Likewise.
18795 (XBITMAP): Likewise.
18796 (XTREE): Likewise.
18797 (XBBDEF): Likewise.
18798 (XTMPL): Likewise.
18799 (X0WINT): Likewise.
18800 (X0INT):Likewise.
18801 (X0UINT): Likewise.
18802 (X0STR): Likewise.
18803 (X0EXP): Likewise.
18804 (X0VEC): Likewise.
18805 (X0MODE): Likewise.
18806 (X0BITMAP): Likewise.
18807 (X0TREE): Likewise.
18808 (X0BBDEF): Likewise.
18809 (X0ADVFLAGS): Likewise.
18810 (X0CSELIB): Likewise.
18811 (X0MEMATTR): Likewise.
18812 (XCWINT): Likewise.
18813 (XCINT): Likewise.
18814 (XCUINT): Likewise.
18815 (XCSTR): Likewise.
18816 (XCEXP): Likewise.
18817 (XCVEC): Likewise.
18818 (XCMODE): Likewise.
18819 (XCBITMAP): Likewise.
18820 (XCTREE): Likewise.
18821 (XCBBDEF): Likewise.
18822 (XCADVFLAGS): Likewise.
18823 (XCCSELIB): Likewise.
18824 (XC2EXP): Likewise.
18825 (INSN_UID): Likewise.
18826 (PREV_INSN): Likewise.
18827 (PATTERN): Likewise.
18828 (INSN_CODE): Likewise.
18829 (PUT_REG_NOTE_KIND): Likewise.
18830 (CODE_LABEL_NUMBER): Likewise.
18831 (NOTE_SOURCE_FILE): Likewise.
18832 (NOTE_BLOCK): Likewise.
18833 (NOTE_EH_HANDLER): Likewise.
18834 (NOTE_RANGE_INFO): Likewise.
18835 (NOTE_LIVE_INFO): Likewise.
18836 (NOTE_BASIC_BLOCK): Likewise.
18837 (NOTE_EXPECTED_VALUE): Likewise.
18838 (NOTE_LINE_NUMBER): Likewise.
18839 (LABEL_NAME): Likewise.
18840 (LABEL_NUSES): Likewise.
18841 (LABEL_ALTERNATE_NAME): Likewise.
18842 (ADDRESSOF_DECL): Likewise.
18843 (JUMP_LABEL): Likewise.
18844 (LABEL_NEXTREF): Likewise.
18845 (REGNO): Likewise.
18846 (ORIGINAL_REGNO: Likewise.
18847 (HARD_REGISTER_NUM_P): Add parenthesis.
18848 (SUBREG_REG): Whitespace.
18849 (SUBREG_BYTE): Likewise.
18850 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
18851 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
18852 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
18853 (ASM_OPERANDS_INPUT_VEC): Likewise.
18854 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
18855 (ASM_OPERANDS_INPUT): Likewise.
18856 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
18857 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
18858 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
18859 (ASM_OPERANDS_INPUT_MODE): Likewise.
18860 (ASM_OPERANDS_SOURCE_FILE): Likewise.
18861 (ASM_OPERANDS_SOURCE_LINE): Likewise.
18862 (MEM_SET_IN_STRUCT_P): Minor reformat.
18863 (TRAP_CONDITION): Whitespace.
18864 (TRAP_CODE): Likewise.
18865 (COND_EXEC_TEST): Likewise.
18866 (COND_EXEC_CODE): Likewise.
18867 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
18868 (PHI_NODE_P): Add parenthesis.
18869 (plus_constant): Whitespace and add parenthesis.
18870
18871 2002-01-03 Kazu Hirata <kazu@hxi.com>
18872
18873 * config/avr/avr.c: Fix comment typos.
18874 * config/c4x/c4x.md: Likewise.
18875 * config/dsp16xx/dsp16xx.h: Likewise.
18876 * config/dsp16xx/dsp16xx.md: Likewise.
18877 * config/i386/i386.md: Likewise.
18878 * config/ia64/ia64.c: Likewise.
18879 * config/m32r/m32r.h: Likewise.
18880 * config/m68hc11/m68hc11.md: Likewise.
18881 * config/mmix/mmix.c: Likewise.
18882 * config/mn10200/mn10200.c: Likewise.
18883 * config/romp/romp.c: Likewise.
18884 * config/sh/sh.c: Likewise.
18885 * config/stormy16/stormy16.c: Likewise.
18886 * config/stormy16/stormy16.h: Likewise.
18887 * config/stormy16/stormy16.md: Likewise.
18888
18889 2002-01-03 Graham Stott <grahams@redhat.com>
18890
18891 * loop.h: Update copyright date.
18892 (LOOP_MOVABLES): Fix typo.
18893 (LOOP_REGS): Likewise.
18894 (LOOP_IVS): Likewise.
18895
18896 2002-01-03 Graham Stott <grahams@redhat.com>
18897
18898 * cppinit.c: Update copyright date.
18899 Don't include output.h
18900 * Makefile.in: Update copyright date.
18901 Update dependency.
18902
18903 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
18904
18905 PR c/5226
18906 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
18907 (-pthread) Add to RS/6000 options.
18908
18909 2002-01-02 Kazu Hirata <kazu@hxi.com>
18910
18911 * except.c: Fix comment typos.
18912 * loop.c: Likewise.
18913 * varasm.c: Likewise.
18914 * doc/tm.texi: Fix a typo.
18915
18916 2002-01-02 Jakub Jelinek <jakub@redhat.com>
18917
18918 * c-typeck.c (output_init_element): Allow initializing static storage
18919 duration objects with compound literals.
18920
18921 2002-01-02 Richard Henderson <rth@redhat.com>
18922
18923 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
18924 after abusing it.
18925
18926 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18927
18928 * gcc.c (default_compilers): Const-ify.
18929 * mips-tdump.c (stab_names): Likewise.
18930 * mips-tfile.c (map_coff_types, map_coff_storage,
18931 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
18932 pseudo_ops_t, pseudo_ops): Likewise.
18933 * protoize.c (default_include): Likewise
18934
18935 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
18936 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
18937 Add array size in declaration.
18938 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
18939 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
18940 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
18941 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
18942 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
18943 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
18944 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
18945 emtens, make_nan): Const-ify.
18946 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
18947 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
18948
18949 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
18950
18951 * config.gcc (ia64-*-*): Set extra_headers.
18952 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
18953 * config/alpha/t-osf: Remove.
18954 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
18955
18956 2002-01-02 David Edelsohn <edelsohn@gnu.org>
18957
18958 * config/rs6000/t-aix43: Revert previous change.
18959
18960 2002-01-02 Jason Merrill <jason@redhat.com>
18961
18962 * c-decl.c (c_expand_body): Call outlining_inline_function when
18963 emitting an inline function out of line.
18964
18965 2002-01-02 Richard Henderson <rth@redhat.com>
18966
18967 * dwarf2out.c (limbo_die_node): Add created_for member.
18968 (new_die): New argument created_for. Update all callers.
18969 (mark_limbo_die_list): New.
18970 (dwarf2out_init): Register limbo_die_list as a root.
18971 (dwarf2out_finish): Force insert limbo dies into their function
18972 context.
18973
18974 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
18975
18976 PR c++/5089
18977 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
18978
18979 2002-01-02 Kazu Hirata <kazu@hxi.com>
18980
18981 * config/h8300/fixunssfsi.c: Update copyright.
18982 Fix comment typos.
18983 Fix formatting.
18984 * config/h8300/h8300.c: Update copyright.
18985 Eliminate warnings.
18986
18987 2002-01-02 Kazu Hirata <kazu@hxi.com>
18988
18989 * config/romp/romp.c: Fix comment formatting.
18990 * config/romp/romp.h: Likewise.
18991 * config/romp/romp.md: Likewise.
18992 * config/s390/s390.c: Likewise.
18993 * config/stormy16/stormy16.c: Likewise.
18994 * config/stormy16/stormy16.h: Likewise.
18995
18996 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
18997
18998 * c-common.h (genrtl_expr_stmt_value): Declare.
18999 * c-semantics.c (genrtl_goto_stmt): Redirect to...
19000 (genrtl_goto_stmt_value): ... this new function. Pass new
19001 argument down to expand_expr_stmt_value, taking
19002 TREE_ADDRESSABLE into account.
19003 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
19004 STMT_EXPR as addressable, i.e., one whose result we want.
19005 * expr.c (expand_expr): Don't save expression statement value
19006 of labeled_blocks or loop_exprs.
19007 * stmt.c (expand_expr_stmt): Redirect to...
19008 (expand_expr_stmt_value): ... this new function. Use new
19009 argument to tell whether to save expression value.
19010 (expand_end_stmt_expr): Reset last_expr_type and
19011 last_expr_value if we don't have either.
19012 * tree-inline.c (declare_return_variable): Mark its use
19013 statement as addressable.
19014 * tree.h: Document new use of TREE_ADDRESSABLE.
19015 (expand_expr_stmt_value): Declare.
19016
19017 2002-01-01 Tom Rix <trix@redhat.com>
19018
19019 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
19020 rs6000_emit_allocate_stack.
19021
19022 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
19023
19024 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
19025 ${srcdir}/ginclude/ to every entry in extra_headers.
19026 * configure: Regenerate.
19027 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
19028 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
19029 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
19030 * ginclude/proto.h: Rename to config/convex/proto.h.
19031
19032 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19033
19034 * attribs.c (handle_vector_size_attribute): Use host_integerp
19035 and tree_int_cst; remove warnings.
19036 * caller-save.c (insert_restore): Add cast to get rid of warning.
19037 (insert_save): Likewise.
19038 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
19039 * regmove.c (find_matches): Add temporary var to kill a warning.
19040
19041 2002-01-01 Douglas B Rupp <rupp@gnat.com>
19042
19043 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
19044 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
19045 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
19046 (vms-dwarf2eh.o): Add Makefile rule.
19047 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
19048 * config/alpha/vms-dwarf2eh.asm: New file.
19049
19050 * gcc.c (delete_if_ordinary): Delete all versions.
19051
19052 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
19053
19054 * config/mmix/mmix.md: Update FIXME to not mention
19055 define_constants.
19056 (MMIX_rJ_REGNUM): New define_constants constant.
19057 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
19058 "*movdicc_real"): Adjust contraints formatting.
19059 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
19060 for branch prediction.
19061 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
19062 output template.
19063 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
19064 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
19065 number. Delete related FIXMEs.
19066 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
19067 from number to MMIX_rJ_REGNUM.
19068 (TARGET_MASK_BRANCH_PREDICT): New.
19069 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
19070 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
19071 value. Add -mbranch-predict and -mno-branch-predict.
19072 (TARGET_VERSION): Drop date.
19073 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
19074 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
19075 for finding out global symbols.
19076 (mmix_asm_output_labelref): Revert condition for global symbol.
19077 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
19078 (mmix_print_operand_punct_valid_p): A '+' is valid.
19079
19080 See ChangeLog.6 for earlier changes.