]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
configure.in: Add --enable-__cxa_atexit.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
4bafaa6f
L
12002-06-07 H.J. Lu (hjl@gnu.org)
2
3 * configure.in: Add --enable-__cxa_atexit.
4 * configure: Regenerated.
5 * config.in: Likewise.
6
7 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
8 not defined.
9
caef5b46
GDR
102002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
11
12 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
13
ac64a17c
JT
142002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
15
16 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
17
97459791
JM
182002-06-07 Jason Merrill <jason@redhat.com>
19
20 * cppexp.c (num_equality_op): Use a temporary variable to work
21 around gcc 3.0.4 bug.
22
4b1d52c7
GDR
232002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
24
25 * diagnostic.c (diagnostic_build_prefix): Tidy.
26
c70f6ed3
NB
272002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
28
29 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
30 scan_parameters, save_replacement_text, replacement_length): New.
31 (scan_out_logical_line): Take a macro and save parameters if
32 non-NULL.
33 (_cpp_logical_line_trad): Update.
34 (_cpp_create_trad_definition): Update to handle function-like
35 macros.
36 * cpplex.c (new_buff): Update.
37 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
38 * cpphash.h: ...here.
39 (CPP_ALIGN2, _cpp_save_parameter): New.
40 * cppmacro.c (save_parameter): Rename, export.
41 (parse_params): Update.
42
aec2ac46
AJ
432002-06-07 Andreas Jaeger <aj@suse.de>
44
45 * config/mmix/mmix.c: Remove extra broken prototype for
46 mmix_init_machine_status.
47
9f313342
GK
482002-06-06 Geoffrey Keating <geoffk@redhat.com>
49
50 * gengtype.c: Add comments before all the routines.
51
3fa1b448
JT
522002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
53
54 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
55 from and add t-sh64 to ${tmake_file}.
56 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
57 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
58 * config/sh/t-netbsd-sh5-32: Remove.
59 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
60 MULTILIB_ENDIAN.
61 (MULTILIB_DIRNAMES): Define.
62
0d682900
JH
63Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
64
65 * i386.md (and promoting splitters): Disable QI to SImode promoting
66 when doing so changes immediate to be 32bit.
67
68 * rtl.h (emit_*_scope): Declare.
69 * emit-rtl.c (emit_*_scope): New global functions.
70 (try_split): Copy scope.
71 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
72 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
73 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
74 noce_process_if_block, find_cond_trap): Copy scopes.
75 * recog.c (peephole2_optimize): likewise.
76
c991649c
JL
772002-06-06 Jeffrey Law <law@redhat.com>
78
79 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
80
8a5d66c4
R
81Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
82
83 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
84
d7f8491b
RO
852002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
86
87 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
88 ($(docdir)/gccinstall.info): New target.
89 (info): Depend on it.
90 (gccinstall.dvi): New target.
91 (dvi): Depend on it.
92 * doc/.cvsignore: Ignore new info files.
93 * doc/install.texi (@setfilename): Reflect new info filename.
94
eaeb7de8
R
95Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
96
97 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
98 on an UNSPEC.
99
0c7aeb88
NP
100Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
101
102 PR objc/6834
103 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
104 c_common_get_alias_set.
aec2ac46 105 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
0c7aeb88 106
2a496e8b
JDA
1072002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
108
109 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
110 functions.
111 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
112 * avr/avr.c (avr_output_function_epilogue): Use above to determine
113 function size.
114 * pa/pa.c (pa_output_function_prologue): Likewise.
115
2ff581c3
DM
1162002-06-05 David S. Miller <davem@redhat.com>
117
118 * integrate.c (subst_constants): Handle 'B' RTL format.
119
b2e2d0cc
EC
1202002-06-05 Eric Christopher <echristo@redhat.com>
121
122 * varasm.c (make_decl_rtl): Fix comment for removed
123 halfpic.c.
124
0f81faf6
EC
1252002-06-05 Eric Christopher <echristo@redhat.com>
126
127 * Makefile.in: Remove missed halfpic bits.
128
33005162
EC
1292002-06-05 Eric Christopher <echristo@redhat.com>
130
131 * toplev.c: Remove half-pic.
132 * config/mips/mips.c: Ditto.
133 * config/mips/mips.h: Ditto. Remove unused defines.
134 * config/mips/openbsd.h: Update comment to reflect above.
135 * config/mips/mips.md: Remove half-pic constraints.
136 * halfpic.h: Delete.
137 * halfpic.c: Ditto.
138
80081028
JL
1392002-06-05 Jeffrey Law <law@redhat.com>
140
141 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
142 rejects (mem (lo_sum (reg) (unspec))), but will allow
33005162 143 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
80081028 144
cbc69f84
NB
1452002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
146
147 * cpphash.h (_cpp_create_definition): Update prototype.
148 (_cpp_push_text_context, _cpp_create_trad_definition): New.
149 ( cpp_lex_identifier_trad): New.
150 (_cpp_set_trad_context): New.
151 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
152 * cpplib.c (SEEN_EOL): Update.
153 (lex_macro_node): Update for -traditional.
154 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
155 * cppmacro.c (_cpp_create_definition): Split into
156 create_iso_definition() and _cpp_create_trad_definition().
157 (warn_of_redefinition): Update prototype; handle traditional
158 macros.
159 (_cpp_push_text_context): New.
160 * cpptrad.c (skip_whitespace, push_replacement_text): New.
161 (lex_identifier): Call ht_lookup with correct start.
162 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
163 _cpp_set_trad_context): New.
164 (scan_out_logical_line): Update to handle changing contexts.
165
dbf87f32
R
166Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
167
168 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
169 (shl*-*-elf*): Add.
170 * config/sh/t-be (MULTILIB_ENDIAN): Set.
171 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
172 * t-sh (MULTILIB_ENDIAN): Set.
173 (MULTILIB_OPTIONS): Use it.
174 * t-sh64 (MULTILIB_OPTIONS): Likewise.
175 (MULTILIB_DIRNAMES): Likewise.
176
47b69537
GDR
1772002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
178
179 * toplev.h (report_error_function): Remove.
180
181 * diagnostic.h (location_t): New datatype.
182 (text_info): Likewise.
183 (diagnostic_info): Likewise.
184 (output_prefix): New macro.
185 (diagnostic_last_function_changed): Likewise.
186 (diagnostic_set_last_function): Likewise.
187 (diagnostic_last_module_changed): Likewise.
188 (diagnostic_set_last_module): Likewise.
189 (report_diagnostic): Now macro.
190 (diagnostic_set_info): Declare.
191
192 * diagnostic.c (report_problematic_module): Rename to
33005162 193 diagnostic_repor_current_module.
47b69537
GDR
194 (set_diagnostic_context): Remove.
195 (count_error): Rename to diagnostic_error_count.
196 (error_function_changed): Remove.
197 (record_last_error_function): Likewise.
198 (error_module_changed): Likewise.
199 (record_last_error_module): Likewise.
200 (context_as_prefix): Rename to diagnostic_build_prefix.
201 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
202 (diagnostic_set_info): New function.
203
204 * objc/objc-act.c: #include diagnostic.h
205 (error_with_ivar): Adjust call to count_error.
206 (warn_with_method): Likewise.
207 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
208
540eaea8
BW
2092002-06-05 Bob Wilson <bob.wilson@acm.org>
210
211 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
212 lang_hooks.types.make_type instead of make_node; set up
213 __va_list_tag type decl.
214 (xtensa_builtin_saveregs): Remove broken use of
215 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
216 for saved registers; add varargs alias set.
217
f23a084d
NB
2182002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
219
220config:
221 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
222 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
223 CPP_PREDEFINES and part of CPP_SPEC.
224 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
225 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
226
3fe3a596
JH
227Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
228
229 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
230
1fd9ba59
AM
2312002-06-05 Alan Modra <amodra@bigpond.net.au>
232
233 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
234
cea554e0
ZW
2352002-06-04 Zack Weinberg <zack@codesourcery.com>
236
237 * gengtype-yacc.y: Make sure all rules end with a semicolon.
238
07232638
BW
2392002-06-04 Bob Wilson <bob.wilson@acm.org>
240
241 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
242 typo in function prototype and include "ggc.h" header.
243
c4b50f1a
RH
2442002-06-04 Richard Henderson <rth@redhat.com>
245
246 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
247 (print_operand) ['U']: Likewise.
248 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
249 (alpha_expand_unaligned_store_words): Likewise.
250 (alpha_expand_builtin_vector_binop): Fix typo.
251 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
252 umulh, and cix insns.
253 (one_arg_builtins): Add cix builtins.
254 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
255 (alpha_expand_builtin): Fix typo in arity.
256 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
257 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
258 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
259 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
260 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
261 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
262 builtin_ctlz, builtin_ctpop): New.
263 * doc/extend.texi (Alpha Built-in Functions): Update.
264
aaab35ae
GK
2652002-06-04 Geoffrey Keating <geoffk@redhat.com>
266
afb0f770
GK
267 * gengtype.c (write_gc_root): Don't unnecessarily prevent
268 global variable-length arrays being roots.
269
aaab35ae
GK
270 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
271 * configure.in (config_gtfiles): New variable.
272 (all_gtfiles): Initialise from config_gtfiles.
273 * configure: Regenerate.
274
1ba7b414
NB
2752002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
276
277config/i386:
278 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
279 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
280 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
281 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
282 win32.h (CPP_SPEC): Remove cpp_cpu.
283 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
284 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
285
135ca7b2
JJ
2862002-06-04 Janis Johnson <janis187@us.ibm.com>
287
288 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
289
85d69216
JL
2902002-06-04 Jeff Law <law@redhat.com.
291 David Edelsohn <edelsohn@gnu.org>
292 Michael Matz <matz@kde.org>
293
294 * sched-int.h (struct deps): New field libcall_block_tail_insn.
295 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
296 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
297 is set, then mark the current insn as being part of a libcall
298 scheduling group.
299 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
300
301 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
302 insns against the issue rate.
303
63f4a88e
JH
304Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
305
306 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
307 * final.c (final_scan_insn): Likewise.
308 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
309 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
310 * haifa-sched.c (unlink_other_notes): Likeewise.
311 (reemit_notes): Likewise.
312 * print-rtl.c (print_rtx): Likewise.
313 * sched-deps (sched-analyze): Likewise.
314 * rtl.c (note_insn_name): Likewise.
315 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
316 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
317 (RANGE_*): Kill.
318
a5d1f75b
JT
3192002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
320
321 * varasm.c (mark_constants): Handle RTX format 'B'.
322
82eda77e
NB
3232002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
324
325 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
326 (struct cpp_context): Add traditional fields.
327 * cppmacro.c (paste_all_tokens, push_ptoken_context,
328 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
329 * cpptrad.c (skip_comment, lex_identifier,
330 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
331
589005ff
KH
3322002-06-04 Kazu Hirata <kazu@cs.umass.edu>
333
334 * gbl-ctors.h: Fix formatting.
335 * gcc.c: Likewise.
336 * gccspec.c: Likewise.
337 * gcov.c: Likewise.
338 * gcov-io.h: Likewise.
339 * gcse.c: Likewise.
340 * ggc-common.c: Likewise.
341 * ggc.h: Likewise.
342 * ggc-page.c: Likewise.
343 * ggc-simple.c: Likewise.
344 * global.c: Likewise.
345 * graph.h: Likewise.
346 * gthr-dce.h: Likewise.
347 * gthr.h: Likewise.
348 * gthr-posix.h: Likewise.
349 * gthr-rtems.h: Likewise.
350 * gthr-solaris.h: Likewise.
351 * gthr-win32.h: Likewise.
352
e2500fed
GK
3532002-06-03 Geoffrey Keating <geoffk@redhat.com>
354
355 Merge from pch-branch:
33005162 356
e2500fed
GK
357 * gengtype.h (UNION_OR_STRUCT_P): New macro.
358 * gengtype.c (write_gc_structure_fields): Use it.
359 (write_gc_root): Use it here too.
360
361 * gengtype.c (write_gc_structure_fields): Assume that lengths
362 of typenames fit into an 'int'; don't pass a size_t to "%d" in
363 printf.
364 (write_gc_marker_routine_for_structure): Likewise.
365 (write_gc_types): Likewise.
366 (write_gc_root): Likewise.
367
368 * varray.h (VARRAY_CLEAR): New.
369 (varray_clear): Prototype.
370 * varray.c (varray_clear): New.
371 * cselib.c (reg_values_old): New.
372 (used_regs_old): New.
373 (cselib_init): Use cached varrays if available to avoid
374 generating large amounts of garbage.
375 (cselib_finish): Don't throw away old varrays.
376
377 * final.c (insn_addresses_): Move out of ifdef.
378
379 * varray.c (uses_ggc): Make more varray kinds GCable.
380 * varray.h (union varray_data_tag): Let gengtype see
381 fields 'generic' and 'te'.
382 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
383 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
384 (reg_to_stack): Don't call VARRAY_FREE.
385 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
386 (insn_addresses_): Use gengtype to mark.
387 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
388 pointers; handle generic pointers in unused union fields.
389 (get_output_file_with_visibility): Include cselib.h,
390 insn-addr.h in gtype-desc.c.
391 * function.c (prologue): Use gengtype to mark.
392 (epilogue): Likewise.
393 (sibcall_epilogue): Likewise.
394 * dependence.c: Include gt-dependence.h, ggc.h.
395 (struct def_use): Use gengtype to mark.
396 (struct loop): Likewise.
397 (struct induction): Likewise.
398 (struct dependence): Likewise.
399 (def_use_chain): Likewise.
400 (dep_chain): Likewise.
401 (loop_chain): Likewise.
402 (induction_chain): Likewise.
403 (init_dependence_analysis): Don't free anything, just clear pointers.
404 (build_def_use): Use GGC to allocate def_use.
405 (add_loop): Use GGC to allocate loop.
406 (find_induction_variable): Use GGC to allocate induction.
407 (check_node_dependence): Use GGC to allocate induction, dependence.
408 (dump_node_dependence): Don't free varrays.
409 (end_dependence_analysis): Likewise.
410 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
411 (struct elt_loc_list): Likewise.
412 (struct elt_list): Likewise.
413 * cselib.c: Don't include obstack.h.
414 (hash_table): Use gengtype to mark.
415 (reg_values): Use gengtype to mark.
416 (used_regs): Use gengtype to mark.
417 (cselib_obstack): Delete.
418 (cselib_startobj): Delete.
419 (empty_vals): Mark as deletable.
420 (empty_elt_lists): Mark as deletable.
421 (empty_elt_loc_lists): Mark as deletable.
422 (new_elt_list): Use GGC to allocate struct elt_list.
423 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
424 (clear_table): Don't delete obstack; don't unnecessarily clear
425 deletable variables.
426 (new_cselib_val): Use GGC to allocate struct cselib_val.
427 (cselib_init): Don't set up obstacks. Use GGC to allocate
428 hash table.
429 (cselib_finish): Just clear variables, don't free anything.
430 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
431 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
432 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
433 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
434 (gt-reg-stack.h): New rule.
435 (gt-dependence.h): New rule.
436 (gtype-desc.o): Add cselib.h, insn-addr.h.
437
438 * varray.c: Use only necessary headers.
439 (element_size): New.
440 (uses_ggc): New.
441 (varray_init): Take type, not size. Use GGC if appropriate.
442 (varray_grow): Update for change to struct varray_head_tag.
443 Use GGC if appropriate.
444 * varray.h (struct const_equiv_data): Use gengtype.
445 (enum varray_data_enum): New.
446 (union varray_data_tag): Use gengtype.
447 (struct varray_head_tag): Use gengtype. Replace size field with
448 enum varray_data_enum.
449 (varray_init): Update prototype.
450 (VARRAY_SCHED_INIT): Delete.
451 (VARRAY_*_INIT): Update for change to varray_init.
452 (VARRAY_SCHED): Delete.
453 (VARRAY_PUSH_SCHED): Delete.
454 (VARRAY_TOP_SCHED): Delete.
455 * tree.h: Update for change to length specifier.
456 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
457 (clone_body): Likewise.
458 * ssa.h (ssa_definition): Use gengtype to mark.
459 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
460 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
461 * rtl.h (struct rtvec_def): Update for change to length specifier.
462 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
463 (struct initial_value_struct): Update for change to length specifier.
464 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
465 (ggc_add_tree_varray_root): Delete prototype.
466 (ggc_mark_rtx_varray): Delete prototype.
467 (ggc_mark_tree_varray): Delete prototype.
468 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
469 (ggc_add_tree_varray_root): Delete.
470 (ggc_mark_rtx_varray): Delete.
471 (ggc_mark_tree_varray): Delete.
472 (ggc_mark_rtx_varray_ptr): Delete.
473 (ggc_mark_tree_varray_ptr): Delete.
474 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
475 (create_varray): Delete prototype.
476 * gengtype.c (varrays): Delete.
477 (create_varray): Delete.
478 (adjust_field_type): Detect array of string pointers.
479 (process_gc_options): Remove code to handle varray_type option.
480 (set_gc_used_type): Remove TYPE_VARRAY case.
481 (output_escaped_param): New.
482 (write_gc_structure_fields): Use output_escaped_param on all
483 parameters. Handle 'skip' with 'use_param' option. Handle
484 arrays of strings. Remove TYPE_VARRAY handling.
485 (write_gc_roots): Use boolean to detect 'length' option.
486 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
487 (struct_fields): Call adjust_field_type on array fields.
488 (type): Remove VARRAY_TYPE case.
489 (type_option): Likewise.
490 * gengtype-lex.l: Don't consider varray_type a keyword.
491 * function.h: Update for change to length specifier.
492 (free_eh_status): Delete prototype.
493 * function.c (free_after_compilation): Don't call free_eh_status.
494 (reorder_blocks): Don't use VARRAY_FREE.
495 * except.c (struct eh_status): Update for change to length specifier.
496 remove varray_type specifier.
497 (free_eh_status): Delete.
498 * dwarf2out.c: Include gt-dwarf2out.h.
499 (used_rtx_varray): Use gengtype to mark, move
500 outside ifdefs.
501 (incomplete_types): Likewise.
502 (decl_scope_table): Likewise.
33005162 503 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
e2500fed
GK
504 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
505 * c-tree.h (struct lang_type): Update for change to length specifier.
506 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
507 * c-objc-common.c: Include gt-c-objc-common.h.
508 (deferred_fns): Mark for gengtype.
509 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
510 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
511 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
512 (gtype-desc.o): Update dependencies.
513 (dwarf2out.o): Add gt-dwarf2out.h.
514 (varray.o): Update dependencies.
515 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
516 (gt-c-objc-common.h): New rule.
517 (gt-dwarf2out.h): New rule.
518 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
519
520 * doc/gty.texi (GTY Options): Correct spelling.
521 (GGC Roots): Likewise.
522 * Makefile.in (TEXI_CPP_FILES): New.
523 (TEXI_GCC_FILES): New.
524 (TEXI_GCCINT_FILES): New.
525 (TEXI_CPPINT_FILES): New.
526 ($(docdir)/cpp.info): Use new macros.
527 ($(docdir)/gcc.info): Likewise.
528 ($(docdir)/gccint.info): Likewise.
529 ($(docdir)/cppinternals.info): Likewise.
530 (cpp.dvi): Likewise.
531 (gcc.dvi): Likewise.
532 (gccint.dvi): Likewise.
533 (cppinternals.dvi): Likewise.
534
535 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
536 * doc/gccint.texi (Top): Include gty.texi.
537 * doc/gty.texi: New file.
538
539 * bitmap.c: Include ggc.h, gt-bitmap.h.
540 (bitmap_ggc_free): New.
541 (bitmap_elem_to_freelist): New.
542 (bitmap_element_free): Use bitmap_elem_to_freelist.
543 (bitmap_element_allocate): Allow use of GGC.
544 (bitmap_clear): Use bitmap_elem_to_freelist.
545 (bitmap_copy): Update for change to bitmap_element_allocate.
546 (bitmap_set_bit): Likewise.
547 (bitmap_operation): Update for changes elsewhere.
548 (bitmap_initialize): Allow to create bitmaps that will use GGC.
549 * bitmap.h (struct bitmap_element_def): Use gengtype.
550 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
551 (bitmap_initialize): Add extra parameter.
552 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
553 (BITMAP_ALLOCA): Delete.
554 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
555 (BITMAP_GGC_ALLOC): New.
556 * Makefile.in (gtype-desc.o): Add bitmap.h.
557 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
558 (GTFILES): Add bitmap.c.
559 (gt-bitmap.h): New rule.
560 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
561 * basic-block.h: Update for changes to bitmap_initialize.
562 * except.c (exception_handler_label_map): Move into...
563 (struct eh_status): Here.
564 (struct eh_region): Make 'aka' GCable.
565 (free_eh_status): Don't need to specially handle
566 exception_handler_label_map.
567 (add_ehl_entry): Update for changes to exception_handler_label_map.
568 (find_exception_handler_labels): Likewise.
569 (remove_exception_handler_label): Likewise.
570 (maybe_remove_eh_handler): Likewise.
571 (for_each_eh_label): Likewise.
572 (remove_eh_handler): Allocate 'aka' using GGC.
573 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
574 to list of includes.
575
576 * gengtype.c (write_gc_marker_routine_for_structure): Name
33005162 577 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
e2500fed
GK
578 (write_gc_types): Arrange for the tests with NULL to be inlined.
579 (write_gc_roots): Update uses of procedure pointers.
580 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
581
582 * Makefile.in (explow.o): Add dependency on gt-explow.h.
583 (sdbout.o): Add dependency on gt-sdbout.h.
584
585 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
586 (mem_attrs_htab): Likewise.
587 (init_emit_once): Don't call ggc_add_deletable_htab.
588 * fold-const.c (size_htab): Use gengtype to clear unused entries.
589 (size_int_type_wide): Don't call ggc_add_deletable_htab.
590 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
591 parameters, use them, change callers.
592 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
593 (write_gc_roots): Handle 'if_marked' option.
594 (main): Don't need to call set_gc_used_type any more.
595 * ggc.h (ggc_htab_marked_p): Delete.
596 (ggc_htab_mark): Delete.
597 (struct ggc_cache_tab): New.
598 (gt_ggc_cache_rtab): New declaration.
599 * ggc-common.c (struct d_htab_root): Delete.
600 (d_htab_roots): Delete.
601 (ggc_add_deletable_htab): Delete.
602 (ggc_htab_delete): Handle new htab-deleting mechanism.
603 (ggc_mark_roots): Use new htab-deleting mechanism.
604 * tree.c (type_hash_table): Use gengtype to clear unused entries.
605 Make static.
606 (init_obstacks): Don't call ggc_add_deletable_htab.
607
608 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
609 (struct hashed_entry): Likewise.
610 (nst_method_hash_list): Likewise.
611 (cls_method_hash_list): Likewise.
612 (HASH_ALLOC_LIST_SIZE): Delete.
613 (ATTR_ALLOC_LIST_SIZE): Delete.
614 * objc/objc-act.c (hash_init): Use ggc to allocate
615 nst_method_hash_list, cls_method_hash_list.
616 (hash_enter): Use ggc to allocate; allocate one entry at a time.
617 (hash_add_attr): Likewise.
618 (ggc_mark_hash_table): Delete.
619 (objc_act_parse_init): Delete.
620 (objc_init): Delete reference to objc_act_parse_init.
621 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
622 obstack.h. Replace references to 'struct hash_table' with htab_t.
623 (struct symbol_hash_entry): Replace hash header with key field.
624 (struct file_hash_entry): Replace hash header with key field.
625 (struct demangled_hash_entry): Replace hash header with key field.
626 (hash_string_eq): New.
627 (hash_string_hash): New.
628 (symbol_hash_newfunc): Delete.
629 (symbol_hash_lookup): Modify to use htab_t.
630 (file_hash_newfunc): Delete.
631 (file_hash_lookup): Modify to use htab_t.
632 (demangled_hash_newfunc): Delete.
633 (demangled_hash_lookup): Modify to use htab_t.
634 (tlink_init): Modify to use htab_t.
635 * hash.h: Delete.
636 * hash.c: Delete.
637 * ggc.h: Delete forward structure declarations.
638 Delete prototypes for deleted functions.
639 * ggc-common.c: Don't include hash.h.
640 (ggc_add_tree_hash_table_root): Delete.
641 (ggc_mark_tree_hash_table_entry): Delete.
642 (ggc_mark_tree_hash_table): Delete.
643 (ggc_mark_tree_hash_table_ptr): Delete.
644 * gengtype.c (write_gc_structure_fields): Allow param_is option.
645 (write_gc_marker_routine_for_structure): Use visibility of
646 the parameter if there is one.
647 * function.c: Replace hash.h with hashtab.h. Replace references
648 to 'struct hash_table *' with htab_t.
649 (struct insns_for_mem_entry): Include a plain key.
650 (fixup_var_refs_insns_with_hash): Update to use htab_t.
651 (insns_for_mem_newfunc): Delete.
652 (insns_for_mem_hash): Update to use htab_t.
653 (insns_for_mem_comp): Likewise.
654 (insns_for_mem_walk): Likewise.
655 * c-lang.c: Include ggc.h.
656 * Makefile.in (OBJS): Remove hash.o.
657 (c-lang.o): Add GGC_H.
658 (COLLECT2_OBJS): Remove hash.o.
659 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
660 (ggc-common.o): Remove hash.h.
661 (function.o): Remove hash.h, add HASHTAB_H.
662 (genautomata.o): Remove hash.h, add HASHTAB_H.
663
664 * varasm.c (mark_const_str_htab_1): Delete.
665 (mark_const_str_htab): Delete.
666 (const_str_htab_del): Delete.
667 (const_str_htab): Use gengtype to mark.
668 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
669 allocate them.
670 * tree.c (mark_tree_hashtable_entry): Delete.
671 (mark_tree_hashtable): Delete.
672 * tree.h (mark_tree_hashtable): Delete prototype.
673 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
674 (ggc_mark): Likewise.
675 (ggc_calloc): New.
676 (htab_create_ggc): New.
677 * ggc-common.c (ggc_calloc): New.
678 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
679 (struct type): Add param_struct structure.
680 * gengtype.c (param_structs): New.
681 (adjust_field_type): Handle param_is option.
682 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
683 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
684 (write_gc_structure_fields): Add new PARAM parameter. Update
685 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
686 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
687 Use it to generate function name. Update callers.
688 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
689 Process them.
690 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
691 option.
692 (main): Define PTR as pointer-to-scalar. Don't specially
693 mark deferred_string or ehl_map_entry.
694 * gengtype-yacc.y (PARAM_IS): Add new token.
695 (externstatic): Use adjust_field_type.
696 (type_option): Add PARAM_IS.
697 * gengtype-lex.l: Add rule for typedef of function pointers.
698 Add rule for PARAM_IS.
699 (IWORD): Add size_t.
700 * except.c (exception_handler_label_map): Use gengtype to mark.
701 (type_to_runtime_map): Likewise.
702 (mark_ehl_map_entry): Delete.
703 (mark_ehl_map): Delete.
704 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
705 (t2r_mark_1): Delete.
706 (t2r_mark): Delete.
707 * Makefile.in (gtype-desc.o): Correct dependencies.
708 (GTFILES): Add hashtab.h.
709 (genautomata.o): Actually uses hashtab.h.
710
711 * Makefile.in (stringpool.o): Add $(GGC_H).
712 (dwarf2asm.o): Likewise.
713 (GTFILES): Add hashtable.h.
714 * c-common.h (struct c_common_identifier): Use gengtype.
715 * c-decl.h (c_mark_tree): Delete.
716 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
717 * c-tree.h (struct lang_identifier): Use gengtype.
718 (union lang_tree_node): New.
719 (c_mark_tree): Delete prototype.
33005162 720 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
e2500fed
GK
721 dwarf2_debug_hooks.
722 * gengtype-lex.l (IWORD): Allow 'bool'.
723 (ptr_alias): Match.
724 * gengtype-yacc.y (ALIAS): New token.
725 (type_option): New rule.
726 (option): Use type_option.
727 * gengtype.c (process_gc_options): New.
728 (set_gc_used_type): Use it.
729 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
730 Add new variable 't' to hold the type of the field being processed.
731 Add more error checking. Use UNION_P when looking at 'desc' option.
732 Handle language-specific structures containing other
733 language-specific structures.
734 (write_gc_types): Handle 'ptr_alias' option.
735 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
736 * ggc-common.c (ggc_pending_trees): Delete.
737 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
738 (ggc_mark_trees): Delete.
739 (gt_ggc_m_tree_node): Delete.
740 * ggc.h (ggc_pending_trees): Delete.
741 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
742 * hashtable.h (ht_identifier): Use gengtype.
743 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
744 * langhooks.h (struct lang_hooks): Delete mark_tree.
745 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
746 anyway.
747 * system.h: Poison LANG_HOOKS_MARK_TREE.
748 * tree.c (tree_node_structure): New.
749 * tree.h (struct tree_common): Use gengtype.
750 (struct tree_int_cst): Likewise.
751 (struct tree_real_cst): Likewise.
752 (struct tree_string): Likewise.
753 (struct tree_complex): Likewise.
754 (struct tree_vector): Likewise.
755 (struct tree_identifier): Likewise.
756 (struct tree_list): Likewise.
757 (struct tree_vec): Likewise.
758 (struct tree_exp): Likewise.
759 (struct tree_block): Likewise.
760 (struct tree_type): Likewise.
761 (struct tree_decl): Likewise.
762 (enum tree_structure_enum): New.
763 (union tree_node): Use gengtype, with an alias.
764 (tree_node_structure): Prototype.
765 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
766
767 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
768 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
769 to LANG_HOOKS_FUNCTION_FINAL.
770 * Makefile.in (GTFILES): Add bitmap.h.
771 * except.c (struct eh_region): Mark field 'aka' to be skipped.
772
773 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
774 (alpha_init_machine_status): Give proper type.
775 * Makefile.in (c-lang.o): Depend on gtype-c.h.
776 (optabs.o): Depend on gt-optabs.h.
777 (GTFILES): Add optabs.o.
778 (gt-optabs.h): Add rule.
779 * optabs.c: Include gt-optabs.h.
780
781 * gengtype.c (set_gc_used_type): Correct some errors in last change.
782 (write_gc_structure_fields): If a field which should be NULL is
783 not, abort.
784 * c-pragma.c: Move struct align_stack and variable alignment_stack
785 out from the ifdef.
786
787 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
788 * config/xtensa/xtensa.c: Include gt-cris.h.
789 (struct machine_function): Use gengtype to mark.
790 * config/mmix/mmix.h (struct machine_function): Use gengtype
791 to mark.
792 * config/cris/t-cris: Add dependencies for gt-cris.h.
793 * config/cris/cris.c: Include gt-cris.h.
794 (struct machine_function): Use gengtype to mark.
795 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
796 to mark.
797 * doc/tm.texi (Per-Function Data): Delete references to
798 mark_machine_status.
799 * config/ia64/ia64.c (ia64_override_options): Don't set
800 mark_machine_status.
801 * config/i386/i386.c (override_options): Likewise.
802 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
803 * config/arm/arm.c (arm_init_expanders): Likewise.
804 * config/alpha/alpha.c (override_options): Likewise.
33005162 805 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
e2500fed
GK
806 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
807 (write_gc_structure_fields): Don't handle 'really' option.
808 Handle 'maybe_null' option.
809 (write_gc_types): Handle 'maybe_null' option.
810 * function.h (struct function): Don't use "really".
811 (mark_machine_status): Delete declaration.
812 (mark_lang_status): Delete declaration.
813 (gt_ggc_mr_machine_function): Delete prototype.
814 (gt_ggc_mr_language_function): Delete prototype.
815 * function.c (mark_machine_status): Delete.
816 (mark_lang_status): Delete.
817 (gt_ggc_mr_machine_function): Delete.
818 (gt_ggc_mr_language_function): Delete.
819 * c-tree.h (mark_c_function_context): Delete prototype.
820 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
821 * c-decl.c (struct language_function): Rename from struct
822 c_language_function. Update uses. Use gengtype to mark.
823 (mark_c_function_context): Delete.
824 * c-common.h (struct c_language_function): Rename from struct
825 language_function.
826 (mark_stmt_tree): Delete prototype.
827 (c_mark_lang_decl): Delete prototype.
828 (mark_c_language_function): Delete prototype.
829 * c-common.c (mark_stmt_tree): Delete.
830 (c_mark_lang_decl): Delete.
831 (mark_c_language_function): Delete.
832
833 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
834 (lang_bitmap): New typedef. Use where appropriate.
835 (struct type): Add gc_used field, lang_struct field.
836 (UNION_P): New macro.
837 (new_structure): New prototype.
838 (find_structure): Remove 'pos' parameter. Change all callers.
839 * gengtype-lex.l: Update for changes to find_structure.
840 * gengtype-yacc.y (typedef_struct): Use new_structure.
841 (yacc_ids): Suppress warning.
842 (type): Use new_structure.
843 * gengtype.c (string_type): Update for changes to struct type.
844 (find_structure): Just find a structure, don't worry about
845 creating one.
846 (new_structure): New.
847 (note_yacc_type): Use new_structure.
848 (set_gc_used_type): New.
849 (set_gc_used): New.
850 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
851 (write_gc_types): Handle TYPE_LANG_STRUCT.
852 (write_gc_marker_routine_for_structure): New.
853 (main): Call set_gc_used. Add some calls to set_gc_used_type
854 for places where GCC doesn't use gengtype properly yet.
855 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
856 (gt_ggc_m_tree_node): Likewise.
857
858 * varasm.c (copy_constant): Call expand_constant if we hit
859 something we can't recognise.
860
861 * ggc-common.c (ggc_mark_rtvec_children): Delete.
862 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
863 (lang_mark_false_label_stack): Delete.
864 * rtl.h (struct rtvec_def): Use gengtype to mark.
865 * ggc.h (ggc_mark_rtvec): Delete.
866 (gt_ggc_m_rtvec_def): Delete.
867 (ggc_mark_nonnull_tree): Delete.
868 (ggc_mark_rtvec_children): Delete prototype.
869 (lang_mark_false_label_stack): Delete declaration.
870
871 * gengtype.h (note_yacc_type): Add prototype.
872 * gengtype.c (note_yacc_type): New function.
873 * gengtype-lex.l: Add lexer support for yacc files.
874 * gengtype-yacc.y (start): Extract union from yacc files.
875 (yacc_union): New rule.
876 (yacc_typematch): New rule.
877 (yacc_ids): New rule.
878 (enum_items): Tweak for efficiency.
879 (optionseq): Likewise.
880
881 * c-common.h (struct language_function): Use gengtype.
882 (struct c_lang_decl): Likewise.
883 * c-tree.h (struct lang_decl): Likewise.
884 (struct lang_type): Likewise.
885 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
886 tree language substructures.
887
888 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
889 ggc_mark_tree.
890 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
891
892 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
893
894 * stmt.c (struct nesting): Add discriminator. Use gengtype to
895 mark. Remove 'data.block.cleanup_ptr' field.
896 (struct stmt_status): Use usual technique to mark struct nesting.
897 (gt_ggc_mr_nesting_cond): Delete.
898 (gt_ggc_mr_nesting_loop): Delete.
899 (gt_ggc_mr_nesting_block): Delete.
900 (gt_ggc_mr_nesting_case_stmt): Delete.
901 (expand_start_cond): Set discriminator.
902 (expand_start_loop): Likewise.
903 (expand_start_null_loop): Likewise.
904 (expand_start_bindings_and_block): Set discriminator. Don't set
905 deleted fields.
906 (expand_decl_cleanup): Replace 'cleanup_ptr' with
907 &thisblock->data.block.cleanups.
908 (expand_start_case): Set discriminator.
909 (expand_start_case_dummy): Set discriminator.
910
911 * ggc-callbacks.c: Remove.
912
913 * gengtype.h (struct type): Add 'u.s.bitmap' field.
914 (find_structure): Add 'pos' parameter.
915 * gengtype-lex.l: Update callers to find_structure.
916 * gengtype-yacc.y: Likewise.
917 * gengtype.c (find_structure): Allow for structures to be defined
918 in multiple language backends.
919 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
920 (counter): Rename to gc_counter.
921 (write_gc_structure_fields): Fail when writing out fields for
922 an incomplete structure. Ignore arrays of scalars. Handle
923 'tree_vec' special.
924 (write_gc_types): Reset counter for each procedure written.
925
926 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
927 (free_case_nodes): Delete.
928 (expand_end_case_type): Delete call to free_case_nodes.
929
930 * Makefile.in (cselib.o): Include gt-<filename>.h.
931 (gcse.o): Likewise.
932 (profile.o): Likewise.
933 (alias.o): Likewise.
934 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
935 alphabetize backend files.
936 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
937 * alias.c: Use gengtype for roots.
938 * c-common.h (struct stmt_tree_s): Use gengtype.
939 * c-decl.c: Use gengtype for roots.
940 * cselib.c: Use gengtype for roots.
941 * expr.c: Use gengtype for roots.
942 * fold-const.c: Use gengtype for roots.
943 * gcse.c: Use gengtype for roots.
944 * gengtype-lex.l: Handle typedefs of function types.
945 Allow for empty array bounds.
946 Allow processing to stop on initialisers.
947 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
948 (semiequal): New rule.
949 * gengtype.c (create_file): Tidy output files.
950 (get_output_file_with_visibility): Fix paren warning. Fix bug
951 involving multiple input files mapping to one output file.
952 (write_gc_structure_fields): Skip arrays of scalars.
953 (write_gc_types): Tidy output files.
954 (write_gc_root): New function.
955 (write_gc_roots): Fix bugs, add support for roots that are
956 structures.
957 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
958 (ggc_mark_tree_ptr): Delete.
959 (ggc_add_rtx_root): Delete.
960 (ggc_add_tree_root): Delete.
961 (ggc_del_root): Delete.
962 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
963 allocate struct initial_value_struct.
964 * profile.c: Use gengtype for roots.
965 * sdbout.c: Use gengtype for roots.
966 * varasm.c (mark_weak_decls): Delete unused prototype.
967 (mark_const_hash_entry): Delete unused function.
968 * config/darwin-protos.h: Use gengtype for roots.
969 (machopic_add_gc_roots): Delete.
970 * config/arm/arm.c: Use gengtype for roots.
971 * config/arm/arm.h: Use gengtype for roots.
972 * config/c4x/c4x-protos.h: Use gengtype for roots.
973 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
974 * config/d30v/d30v-protos.h: Use gengtype for roots.
975 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
976 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
977 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
978 * config/ia64/ia64-protos.h: Use gengtype for roots.
979 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
980 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
981 * config/m68hc11/m68hc11.c (z_reg): Make global.
982 (z_reg_qi): Make global.
983 (m68hc11_add_gc_roots): Delete.
984 * config/mcore/mcore-protos.h: Use gengtype for roots.
985 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
986 * config/mips/mips.c (mips_add_gc_roots): Delete.
987 * config/mips/mips.h: Use gengtype for roots.
988 * config/mmix/mmix.c (override_options): Use gengtype for roots.
989 * config/mmix/mmix.h: Use gengtype for roots.
990 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
991 * config/mn10200/mn10200.h: Use gengtype for roots.
992 * config/pa/pa.c: Use gengtype for roots, marking.
993 (struct deferred_plabel): Use GGC, gengtype.
994 (pa_add_gc_roots): Delete.
995 (mark_deferred_plabels): Delete.
996 * config/pj/pj-protos.h: Use gengtype for roots.
997 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
998 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
999 machopic_add_gc_roots.
1000 * config/rs6000/rs6000.h: Use gengtype for roots.
1001 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
1002 (gt-darwin.h): Add rule.
1003 * config/sh/sh.c: Use gengtype for roots.
1004 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
1005 (gt-sh.h): Add rule.
1006 * config/sparc/sparc.c: Use gengtype for roots.
1007 (sparc_add_gc_roots): Delete.
1008 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
1009 (mark_ultrasparc_pipeline_state): Delete.
1010 * config/sparc/sparc.h: Use gengtype for roots.
1011
1012 * Makefile.in (c-parse.o): Update dependencies.
1013 (c-common.o): Likewise.
1014 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
1015 Add dependencies for the files they generate.
1016 * c-common.c: Replace ggc_add_* uses with GTY annotations.
1017 * c-common.h: Likewise.
1018 * c-decl.c: Likewise.
1019 (gt_ggc_mp_binding_level): Delete.
1020 * c-lang.c: Include gtype-c.h.
1021 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
1022 gt-c-parse.h.
1023 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
1024 (gt_ggc_mp_align_stack): Delete.
1025 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
1026 * function.c: Replace ggc_add_* uses with GTY annotations.
1027 (gt_ggc_mp_function): Delete.
1028 * function.h: Replace ggc_add_* uses with GTY annotations.
1029 * gengtype.c (lang_names): New.
1030 (NUM_BASE_FILES): New.
1031 (open_base_files): Create language base files.
1032 (startswith): New.
1033 (get_file_basename): New.
1034 (get_base_file_bitmap): New.
1035 (get_output_file_with_visibility): Rename from get_output_file.
1036 Add more mappings for various C/Objc filenames.
1037 (finish_root_table): New.
1038 (write_gc_roots): Handle dependencies and scoping properly.
1039 * gengtype.h: Add prototypes for new functions.
1040 * ggc-common.c (struct deletable_root): Delete.
1041 (deletables): Delete.
1042 (ggc_add_deletable_root): Delete.
1043 (ggc_mark_roots): No need to deal with deleted functionality.
1044 * ggc.h (ggc_add_deletable_root): Delete prototype.
1045 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
1046 (gtype-objc.h): Add rule to create.
1047 * objc/config-lang.in (gtfiles): New.
1048 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
1049 ggc_add_* with GTY markers. Include gtype-objc.h.
1050 (ggc_mark_imp_list): Delete.
1051 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
1052 * objc/objc-lang.c: Random Whitespace Change.
1053
1054 * except.h (exception_handler_labels): Delete.
1055 (get_exception_handler_labels): New.
1056 * except.c (exception_handler_labels): Delete.
1057 (struct eh_status): Add exception_handler_labels field.
1058 (doing_eh): Don't add exception_handler_labels as root.
1059 (free_eh_status): Don't need to free exception_handler_labels.
1060 (get_exception_handler_labels): New.
1061 (find_exception_handler_labels): Update for move of
1062 exception_handler_labels.
1063 (remove_exception_handler_label): Likewise.
1064 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
1065 * jump.c (rebuild_jump_labels): Likewise.
1066 * loop.c (find_and_verify_loops): Likewise.
1067 * sched-rgn.c (is_cfg_nonregular): Likewise.
1068
1069 * gengtype.c (write_gc_structure_fields): Handle variable-length
1070 TYPE_ARRAYs.
1071
1072 * varasm.c (struct weak_syms): Use GGC, gengtype.
1073 (mark_weak_decls): Delete.
1074 (weak_decls): Likewise.
1075 (add_weak): Likewise.
1076 (remove_from_pending_weak_list): Likewise.
1077 (init_varasm_once): Likewise.
1078
1079 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
1080 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
1081 stor-layout.c, regclass.c, and lists.c.
1082 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
1083 gt-regclass.h and gt-lists.h on s-gtype.
1084 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
1085 * except.c: Use gengtype for roots.
1086 * explow.c: Use gengtype for roots. Include gt-explow.h.
1087 * expr.h (init_stor_layout_once): Delete prototype.
1088 * function.c: Use gengtype for roots.
1089 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
1090 * gengtype-yacc.y (start): Can also be an externstatic.
1091 (externstatic): New production.
1092 (struct_fields): Correct array bounds inversion for 2-d arrays.
1093 * gengtype.c (variables): New variable.
1094 (note_variable): New function.
1095 (get_output_file): Include libfuncs.h into gtype-desc.c.
1096 (get_output_file_name): New function.
1097 (write_gc_structure_fields): Suppress warnings.
1098 (write_gc_types): Make static.
1099 (put_mangled_filename): New function.
1100 (write_gc_roots): New function.
1101 (main): Call write_gc_roots.
1102 * gengtype.h (note_variable): Prototype.
1103 (get_output_file_name): Prototype.
1104 (write_gc_types): Delete prototype.
1105 * ggc.h: Clean up unnecessary structure predefinitions.
1106 (struct ggc_root_tab): Define.
1107 (gt_ggc_m_rtx_def): Make function, not macro.
1108 (gt_ggc_m_tree_node): Likewise.
1109 * libfuncs.h: Use gengtype for roots.
1110 * lists.c: Use gengtype for roots. Include gt-lists.h.
1111 (init_EXPR_INSN_LIST_cache): Delete.
1112 * optabs.c: Use gengtype for roots.
1113 (gt_ggc_mp_optab): Delete.
1114 * optabs.h: Use gengtype for roots.
1115 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
1116 * rtl.h: Use gengtype for roots.
1117 (init_EXPR_INSN_LIST_cache): Delete prototype.
1118 * stor-layout.c: Use gengtype for roots.
1119 Include gt-stor-layout.h.
1120 (init_stor_layout_once): Delete.
1121 * toplev.c: Use gengtype for roots. Delete calls to deleted
1122 routines.
1123 * tree.c: Use gengtype for roots.
1124 * tree.h: Use gengtype for roots.
1125 * varasm.c: Use gengtype for roots.
33005162 1126
e2500fed
GK
1127 * Makefile.in (GTFILES): Add @all_gtfiles@.
1128 * configure: Regenerate.
1129 * configure.in: Construct all_gtfiles from the gtfiles definitions
1130 in config-lang.in.
1131 * gengtype-yacc.y (type): Warn about duplicate structure names.
1132 * gengtype.c (get_output_file): Handle .c files in language
1133 subdirectories.
1134
1135 * Makefile.in (GTFILES): Run gengtype on all the config files
1136 and on the target .c file.
1137 * except.c (mark_eh_region): Delete.
1138 (init_eh_for_function): Use GGC on struct eh_status.
1139 (mark_eh_status): Delete.
1140 (free_eh_status): Use GGC.
1141 (expand_eh_region_start): Use GGC to
1142 (collect_eh_region_array): Allocate last_region_number using GGC.
1143 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
1144 (remove_eh_handler): Let GGC free struct eh_region.
1145 (add_call_site): Use GGC to reallocate call_site_record array.
1146 * function.c (init_machine_status): Update calling sequence.
1147 (mark_machine_status): Likewise.
1148 (mark_lang_status): Likewise.
1149 (prepare_function_start): Update init_machine_status call.
1150 (mark_function_status): Delete.
1151 (maybe_mark_struct_function): Delete.
1152 (ggc_mark_struct_function): Delete.
1153 (gt_ggc_mp_function): New.
1154 (gt_ggc_mr_machine_function): New.
1155 (gt_ggc_mr_language_function): New.
1156 (init_function_once): Use canonical names.
1157 * function.h (struct function): Use gengtype.
1158 (init_machine_status): Return the structure.
1159 (mark_machine_status): Take a 'void *'.
1160 (mark_lang_status): Likewise.
1161 * ggc-common.c (ggc_mark_trees): Use canonical name for
1162 ggc_mark_struct_function.
1163 * tree.h (ggc_mark_struct_function): Delete prototype.
1164 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
1165 (alpha_init_machine_status): Likewise.
1166 (override_options): Use canonical name for alpha_mark_machine_status.
1167 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
1168 * config/arm/arm.h (struct machine_function): Use gengtype.
1169 * config/arm/arm.c (arm_mark_machine_status): Delete.
1170 (arm_init_machine_status): Update calling sequence.
1171 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
33005162 1172 * config/cris/cris.c (cris_init_machine_status): Update
e2500fed
GK
1173 calling sequence.
1174 * config/d30v/d30v.h (struct machine_function): Use gengtype.
33005162 1175 * config/d30v/d30v.c (d30v_init_machine_status): Update
e2500fed
GK
1176 calling sequence.
1177 (d30v_mark_machine_status): Delete.
1178 * config/i386/i386.c: Include gt-i386.h.
1179 (struct machine_function): Use gengtype.
1180 (ix86_init_machine_status): Update calling sequence.
1181 (ix86_mark_machine_status): Delete.
1182 (override_options): Use canonical namke for ix86_mark_machine_status.
1183 * config/ia64/ia64.h (struct machine_function): Use gengtype.
33005162 1184 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
e2500fed
GK
1185 sequence.
1186 (ia64_mark_machine_status): Delete.
33005162 1187 (ia64_override_options): Use canonical name for
e2500fed 1188 ia64_mark_machine_status.
33005162 1189 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
e2500fed
GK
1190 sequence.
1191 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
1192 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1193 * gengtype.c (get_output_file): Fix warning.
1194 (main): Add prototype to suppress warning.
1195 * tree.c: Remove tree_hash_mark prototype.
1196
1197 * tree.h (init_stmt): Delete prototype.
1198 * toplev.c (lang_independent_init): Don't call init_stmt.
1199 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
1200 (stmt_obstack): Delete.
1201 (POPSTACK): No need to free 'struct nesting'.
1202 (gt_ggc_mr_nesting_cond): Use canonical names.
1203 (gt_ggc_mr_nesting_loop): Use canonical names.
1204 (gt_ggc_mr_nesting_block): Use canonical names.
1205 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
1206 (mark_stmt_status): Delete.
1207 (init_stmt): Delete.
1208 (clear_last_expr): Clear both last_expr_type and last_expr_value.
1209 Use it everywhere that last_expr_type was cleared.
1210 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
1211 (zap_lists): Delete.
1212 * ggc.h (ggc_add_deletable_root): Prototype.
1213 (mark_stmt_status): Remove prototype.
1214 * ggc-common.c (ggc_add_deletable_root): New.
1215 (ggc_mark_roots): Handle deletable roots.
1216 * function.c (ggc_mark_struct_function): Use canonical name
1217 for mark_stmt_status.
1218 * emit-rtl.c (free_sequence_stack): New.
1219 (start_sequence): Use a freelist for sequences.
1220 (end_sequence): Likewise.
1221 (init_emit_once): Add free_sequence_stack as a deleteable root.
1222 * c-pragma.c Include gt-c-pragma.h.
1223 (struct align_stack): Use gengtype.
1224 (push_alignment): Use GGC for struct align_stack.
1225 (mark_align_stack): Delete.
1226 (gt_ggc_mp_align_stack): New.
1227 (init_pragma): Use canonical name for mark_align_stack.
1228 * c-decl.c: Include gt-c-decl.h.
1229 (struct binding_level): Use gengtype.
1230 (make_binding_level): Use GGC; handle the freelist here.
1231 (pop_binding_level): New.
1232 (pushlevel): Move code into make_binding_level.
1233 (push_label_level): Likewise.
1234 (poplevel): Move code into pop_binding_level.
1235 (pop_label_level): Likewise.
1236 (mark_binding_level): Delete.
1237 (gt_ggc_mp_binding_level): New.
1238 (c_init_decl_processing): Use canonical name for mark_binding_level.
1239 Add free_binding_level as deletable root.
1240 (mark_c_function_context): Use canonical name for mark_binding_level.
1241 * Makefile.in (c-decl.o): Add gt-c-decl.h.
1242 (c-pragma.o): Add gt-c-pragma.h.
1243 (GTFILES): Add c-decl.c and c-pragma.c.
1244 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
1245
1246 * tree.c (struct type_hash): Use gengtype.
1247 (init_obstacks): Use canonical name for type_hash_mark.
1248 (type_hash_mark): Delete.
1249 Include gt-tree.h.
1250 * rtl.h (struct mem_attrs): Use gengtype.
1251 * optabs.h (struct optab): Use gengtype.
1252 * optabs.c (expand_binop): Squish signed/unsigned warning.
1253 (mark_optab): Make local, use canonical name, use autogenerated
1254 marker procedure.
1255 (init_optabs): Use canonical name for mark_optab.
1256 (new_optab): Use GGC to allocate optabs.
1257 * ggc.h: Delete mark_optab prototype.
1258 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
1259 mem_attrs marker procedure.
1260 * gengtype.c (get_output_file): Include headers in gtype-desc.c
1261 explicitly rather than deducing them from file names.
1262 (write_gc_structure_fields): Handle arrays of structures.
1263 (main): Return non-zero exit code if errors occur during output.
1264 * emit-rtl.c (mem_attrs_mark): Delete.
1265 (init_emit_once): Use canonical name for mem_attrs marker procedure.
1266 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
1267 (tree.o): Depend on gt-tree.h.
1268 (GTFILES): Add rtl.h, optabs.h, tree.c.
1269 (gt-tree.h): Add it to s-gtype rule.
1270
1271 * .cvsignore: Ignore gengtype flex/bison generated files.
1272 * Makefile.in (GGC_H): Add gtype-desc.h.
1273 (OBJS): Add gtype-desc.o.
1274 (GEN): Add gengtype.
1275 (STAGESTUFF): Add gengtype.
1276 (varasm.o): Add gt-varasm.h.
1277 (stmt.o): Add gt-stmt.h.
1278 (except.o): Add gt-except.h.
1279 (integrate.o): Add gt-integrate.h.
1280 (GTFILES): New.
1281 Add new rules for new files.
1282 * configure: Regenerate.
1283 * configure.in: Correct defaults.h paths.
1284 * emit-rtl.c (mark_sequence_stack): Delete.
1285 (mark_emit_status): Delete.
1286 (start_sequence): Allocate sequence structures using GGC.
1287 (end_sequence): Allocate sequence structures using GGC.
1288 * except.c: Use gengtype for various structures. Include
1289 gt-except.h.
1290 * expr.c (mark_expr_status): Delete.
1291 * function.c: Use gengtype for various structures. Include
1292 gt-function.h.
1293 (mark_function_status): Use standard gt_ggc names for marker functions.
1294 (ggc_mark_struct_function): Likewise.
1295 * function.h: Use gengtype for various structures.
1296 * gengtype-lex.l: New file.
1297 * gengtype-yacc.y: New file.
1298 * gengtype.c: New file.
1299 * gengtype.h: New file.
1300 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
1301 the standard names. Remove some now-unnecessary prototypes.
1302 * integrate.c: Use gengtype for various structures. Include
1303 gt-integrate.h.
1304 (mark_hard_reg_initial_vals): Delete.
1305 * integrate.h (mark_hard_reg_initial_vals): Delete.
1306 * stmt.c: Use gengtype for various structures. Include
1307 gt-stmt.h.
1308 (mark_case_node): Delete.
1309 (mark_goto_fixup): Delete.
1310 (mark_stmt_status): Use standard gt_ggc names for marker functions.
1311 * system.h: Define GTY to empty. In flex/bison files,
1312 don't poison malloc or realloc, instead just define them to
1313 xmalloc and xrealloc.
1314 * varasm.c: Use gengtype for various structures. Include
1315 gt-varasm.h. Use standard gt_ggc names for marker functions.
1316 (mark_pool_constant): Delete.
1317 (mark_varasm_status): Delete.
1318 (decode_rtx_const): #if 0 out non-typesafe hack.
1319
1320 * function.h (free_lang_status): Mark as obsolete.
1321 * function.c (free_lang_status): Mark as obsolete.
1322 * c-decl.c (push_c_function_context): Use GC to allocate and free
1323 struct language_function.
1324 (pop_c_function_context): Likewise.
1325 * c-common.c (mark_c_language_function): Mark struct
1326 language_function.
1327
1328 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
1329 Document that the machine_function structures must be allocated
1330 using GC. Update mark_machine_status documentation.
1331 * function.h: Don't declare free_machine_status.
33005162 1332 * function.c (free_machine_status): Don't define.
e2500fed
GK
1333 (free_after_compilation): Don't call free_machine_status.
1334 (ggc_mark_struct_function): Mark f->machine. Call
1335 mark_machine_status only on non-NULL pointers.
1336 * system.h: Poison free_machine_status.
1337 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
1338 struct machine_function.
1339 (xtensa_free_machine_status): Delete.
1340 (override_options): Don't set free_machine_status.
1341 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1342 free_machine_status.
1343 (rs6000_init_machine_status): Use GC on struct machine_function.
1344 (rs6000_free_machine_status): Delete.
1345 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
1346 machine_function.
1347 (ia64_mark_machine_status): Likewise.
1348 (ia64_free_machine_status): Delete.
1349 (ia64_override_options): Don't set free_machine_status.
1350 * config/i386/i386.c (override_options): Don't set
1351 free_machine_status.
1352 (ix86_init_machine_status): Use GC on struct machine_function.
1353 (ix86_mark_machine_status): Likewise.
1354 (ix86_free_machine_status): Delete.
1355 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
1356 machine_function.
1357 (d30v_mark_machine_status): Likewise.
1358 (d30v_free_machine_status): Delete.
1359 (d30v_init_expanders): Don't set free_machine_status.
1360 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
1361 machine_function.
1362 (arm_init_machine_status): Likewise.
1363 (arm_free_machine_status): Delete.
1364 (arm_init_expanders): Don't set free_machine_status.
1365 * config/alpha/alpha.c (override_options): Don't set
1366 free_machine_status.
1367 (alpha_init_machine_status): Use GC on struct machine_function.
1368 (alpha_mark_machine_status): Likewise.
1369 (alpha_free_machine_status): Delete.
1370
1371 * varasm.c (compare_constant): Fix typo.
1372
1373 * varasm.c: Don't include obstack.h.
1374 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
1375 (struct rtx_const): Give substructures names, improve formatting.
1376 (struct constant_descriptor): Delete.
1377 (struct constant_descriptor_tree): New, based on constant_descriptor.
1378 (const_hash_table): Is a hash table of trees.
1379 (mark_const_hash_entry): Is used for hashes of trees. Mark
1380 constant_descriptor_tree structure.
1381 (mark_const_str_htab_1): Mark deferred_string structure.
1382 (compare_constant): Rewrite to compare trees.
1383 (compare_constant_1): Delete.
1384 (record_constant): Delete.
1385 (record_constant_1): Delete.
1386 (output_constant_def): Use struct constant_descriptor_tree.
1387 Don't duplicate trees twice.
1388 (struct constant_descriptor_rtx): New.
1389 (struct pool_constant): Used for rtx constants.
1390 (init_varasm_status): Update for change to struct varasm_status.
1391 (mark_varasm_status): Likewise.
1392 (free_varasm_status): Delete.
1393 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
1394 (record_constant_rtx): Likewise.
1395 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
1396 (force_const_mem): Likewise.
1397 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
1398 * function.c (free_after_compilation): Don't use free_varasm_status.
1399 * function.h: Don't prototype free_varasm_status.
1400
1401 * ggc-common.c (ggc_realloc): Handle X being NULL.
1402
1403 * ggc-common.c (ggc_realloc): New function.
1404 * ggc.h: Prototype it.
1405 * emit-rtl.c (free_emit_status): Delete.
1406 (init_emit): Allocate emit subarrays using GC.
1407 (gen_reg_rtx): Reallocate subarrays using GC.
1408 (init_emit): Use GC to allocate 'struct emit_status' and its
1409 subarrays.
1410 (mark_emit_status): Mark structure and its subarrays.
1411 * stmt.c (free_stmt_status): Delete.
1412 * expr.c (free_expr_status): Delete.
1413 * function.h: Remove prototypes for deleted functions.
1414 * function.c (free_after_compilation): Don't use deleted functions.
1415 Don't call free() on x_parm_reg_stack_loc.
1416 (free_after_parsing): Don't use free_stmt_status.
1417 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
1418 (mark_function_status): Mark x_parm_reg_stack_loc.
1419
1420 * varasm.c (init_varasm_status): Use GC to allocate
1421 'struct varasm_status' and its fields x_const_rtx_hash_table
1422 and x_const_rtx_sym_hash_table.
1423 (mark_varasm_status): Mark them.
1424 (free_varasm_status): Use GC to free them.
1425 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
1426 (mark_expr_status): Mark the structure itself.
1427 (free_expr_status): Use GC to free the structure.
1428 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
1429 (mark_stmt_status): Mark the 'struct stmt_status' itself.
1430 (init_stmt_for_function): Allocate the structure for GC.
1431
1432 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
1433 (equate_type_number_to_die): Likewise.
1434 * tree.h (TYPE_SYMTAB_DIE): New macro.
1435 (struct die_struct): Predeclare.
1436 (struct tree_type): Add field symtab.die. Add a tag
1437 to the union type of field symtab.
1438
1439 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
1440 'struct rtvec_def *', not 'struct rtvec_def'.
1441
1442 * function.h (original_arg_vector): Make a real rtvec.
1443 * function.c (ggc_mark_struct_function): Adjust.
1444 * integrate.c (expand_inline_function): Adjust.
1445
b655555e
JT
14462002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1447
1448 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
1449 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
1450 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
1451 (TARGET_VERSION_CPU): Define according to the
1452 default target.
1453 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
1454 TARGET_VERSION_CPU.
1455 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
1456 if TARGET_SHMEDIA64.
1457 (LINK_DEFAULT_CPU_EMUL): Define according to the
1458 default target.
1459 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
1460 (SUBTARGET_LINK_SPEC): Define.
1461 (LINK_SPEC): Use SH_LINK_SPEC.
1462 (ASM_SPEC): Remove.
1463 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1464 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
1465 and TARGET_SHMEDIA64 which abort, for now.
1466 * config/sh/t-netbsd-sh5: New file.
1467 * config/sh/t-netbsd-sh5-32: New file.
1468 * config/sh/t-netbsd-sh5-64: New file.
1469
6d8fd7bb
RH
14702002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1471 Richard Henderson <rth@redhat.com>
1472
1473 * config/alpha/alpha.c (reg_or_const_int_operand): New.
1474 (some_operand, input_operand): Accept CONST_VECTOR.
1475 (alpha_extra_constraint): Add 'W'.
1476 (alpha_expand_zap_mask): New.
1477 (alpha_expand_builtin_vector_binop): New.
1478 (enum alpha_builtin): New.
1479 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
1480 (alpha_init_builtins, alpha_expand_builtin): New.
1481 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
1482 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
1483 (PREDICATE_CODES): Update.
1484 * config/alpha/alpha-protos.h: Update.
1485 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
1486 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
1487 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
1488 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
1489 (movv2si, movv2si_fix, movv2si_nofix): New.
1490 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
1491 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
1492 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
1493 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
1494 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
1495 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
1496 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
1497 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
1498 builtin_unpkbw, unpkbw): New.
1499 * doc/extend.texi (Alpha Built-in Functions): New.
1500
618939de
RH
15012002-06-03 Richard Henderson <rth@redhat.com>
1502
1503 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
1504 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
1505
73db7137
RH
15062002-06-03 Richard Henderson <rth@redhat.com>
1507
6933647a
RH
1508 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
1509
73db7137
RH
1510 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
1511 (const0_operand): New.
1512 (reg_or_fp0_operand, fp0_operand): Remove.
1513 * config/alpha/alpha.h (PREDICATE_CODES): Update.
1514 * config/alpha/alpha-protos.h: Update.
1515 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
1516 and fp0_operand with reg_or_0_operand and const0_operand.
1517
a6f7c915
DN
15182002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1519
1520 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
1521
b2f02503
RS
15222002-06-03 Roger Sayle <roger@eyesopen.com>
1523
1524 * gcse.c (cprop_jump): Use single_set to get the pattern
1525 from the setcc argument.
1526
4fcc2065
GDR
15272002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
1528
33005162 1529 * diagnostic.h (diagnostic_count): Move from output_buffer to
4fcc2065
GDR
1530 diagnostic_context.
1531 (diagnostic_kind_count): Adjust definition.
1532
5204d665
JH
1533Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
1534
1535 * except.c (except.c): Do not rebuild CFG.
1536 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
1537 optimization.
1538
0478a14c
JH
1539Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1540
1541 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
1542 * toplev.c: Include cfglahout.h
1543 * Makefile.in (toplev.c): Add dependnecy.
1544
30efe578
NB
15452002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
1546
1547 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
1548 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
1549 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
1550
a782515b
JT
15512002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1552
1553 * config/ns32k/netbsd.h: Update copyright years.
1554 (TARGET_OS_CPP_BUILTINS): Define.
1555 (CPP_PREDEFINES): Remove.
1556 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
1557 (TARGET_CPU_CPP_BUILTINS): Define.
1558
0fb7aeda
KH
15592002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1560
589005ff 1561 * emit-rtl.c: Fix formatting.
0fb7aeda
KH
1562 * errors.h: Likewise.
1563 * except.c: Likewise.
1564 * explow.c: Likewise.
1565 * expmed.c: Likewise.
1566 * expr.c: Likewise.
1567 * expr.h: Likewise.
1568
1c8ec18b
KH
15692002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1570
1571 * config/h8300/elf.h: Fix formatting.
1572 * config/h8300/rtems.h: Likewise.
1573
86cb04f6
JT
15742002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1575
1576 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1577
5d83269d
TT
15782002-06-02 Tom Tromey <tromey@redhat.com>
1579
1580 * fixinc/fixincl.x: Rebuilt.
1581 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
1582
62f6a494
NB
15832002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1584
1585config/i370:
1586 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
1587 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
1588 * mvs.h: Similarly.
1589 * oe.h: Similarly.
1590
0acb0203
JH
1591Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1592
1593 * final.c (final): Allow notes to not have computed addresses;
1594 kill no longer needed STACK_REGS ifdef.
1595
ada8d98a
RH
15962002-06-02 Richard Henderson <rth@redhat.com>
1597
1598 * gcse.c (bypass_conditional_jumps): Fix typo last change.
1599
ba4f7968
JH
1600Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1601
ada8d98a
RH
1602 * loop.c (emit_prefetch_instructions): Properly place the address
1603 computation.
ba4f7968
JH
1604
1605Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1606
1607 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
1608 (set_block_for_insn): Turn into macro.
1609 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
1610 * cfglayout.c (insn_scopes): Kill.
1611 (scope_to_insns_initialize): Do not use insn_scopes.
1612 (scope_to_insns_finalize): Likewise.
1613 (duplicate_insn_chain): Likewise.
1614 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
1615 * cfgrtl.c (basic_block_for_insn): Kill.
1616 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
1617 (create_basic_block_structure): Use reorder_insns.
1618 (compute_bb_for_insn): Do not use basic_block_for_insn.
1619 (merge_blocks_nomove): Likewise.
1620 (update_bb_for_insn): Likewise.
1621 (verify_flow_info): Likewise.
1622 (set_block_for_insn): Kill.
1623 * combine.c (try_combine): Update gen_rtx_INSN call.
1624 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
1625 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
1626 scopes and BBs.
1627 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
1628 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
1629 Clear BB.
1630 (emit_insns_after): Simplify.
1631 (emit_copy_of_insn_after): Copy scope.
1632 * final.c (final_start_function): Lower scopes.
1633 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
1634 * integrate.c (copy_insn_list): Cope scopes.
1635 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
1636 * loop.c (loop_optimize): Do not care block notes.
1637 * print-rtl.c (print_rtx): Print BB.
1638 * recog.c (apply_change_group): Simplify.
1639 * rtl.c (copy_rtx): Handle 'B'.
1640 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
1641 * rtl.h (Field accessors): Update indexes.
1642 * sched-ebb.c (schedule_ebbs): Do not lower notes.
1643 * sched-rgn.c (schedule_insns): Likewise.
1644 * toplev.c (rest_of_compilation): Lower notes.
1645 * unroll.c (unroll_loop): Do not care scoping notes.
1646 (copy_loop_body): Copy scopes.
1647
537fc532
NB
16482002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1649
1650config/h8300:
1651 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1652 SUBTARGET_SPEC.
1653 * rtems.h: Similarly.
1654 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
1655 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
1656 (TARGET_CPU_CPP_BUILTINS): Use.
1657
ab780373
RH
16582002-06-02 Richard Henderson <rth@redhat.com>
1659
1660 * alias.c: Include target.h.
1661 (mark_constant_function): Use targetm.binds_local_p instead
1662 of checking TREE_PUBLIC ourselves.
1663 * Makefile.in (alias.o): Add TARGET_H.
1664
b9305c66
NB
16652002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1666
1667 * c-lex.c: Update copyright and file description.
1668
0ac3e0c4
NB
16692002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1670
1671 * config/fr30/fr30.h: Update to new CPP macros.
1672
be3a1d46
NB
16732002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1674
1675 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
1676
ceeedfc1 16772002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
a8fd5963 1678 Zack Weinberg <zack@codesourcery.com>
ceeedfc1
NB
1679
1680 * c-common.c (c_common_init): Override cpplib's default
1681 warn_long_long setting.
1682 * c-lex.c (lex_number): Replace with interpret_integer,
1683 interpret_float, narrowest_unsigned_type and
1684 narrowest_signed_type, taking advantage of the new
1685 cpplib functionality.
1686 * cpperror.c (_cpp_begin_message): If a warning is turned
1687 into an error, avoid printing "warning:".
1688 * cppexp.c (cpp_num_sign_extend): New.
1689 * cppinit.c: Update comment.
1690 * cpplib.h (cpp_num_sign_extend): New.
1691 * tree.h: Update comment.
1692
27e511e0
GDR
16932002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1694
1695 * diagnostic.h (struct diagnostic_context): Add new member
33005162 1696 internal_error.
27e511e0
GDR
1697 (internal_error_function): Remove declaration.
1698 * diagnostic.c (internal_error_function): Remove definition..
1699 (internal_error): Adjust use.
1700
818b6b7f
RH
17012002-06-02 Richard Henderson <rth@redhat.com>
1702
1703 * rtl.h (CC0_P): New.
1704 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
1705 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
1706 (bypass_block): Save old dest block for dump text.
1707 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
1708 Allow only true SET insns, not single_set.
1709
167143a0
GDR
17102002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1711
1712 * diagnostic.c (diagnostic_finish): Rename to output_flush.
1713 (clear_disgnostic_info): Rename to output_clear_data. Use false
1714 instead of 0 for boolean value.
1715 Adjust function call throughout.
1716
eae4bc56
JH
1717Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
1718
1719 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
1720 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
1721
9eb404a0
NB
17222002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1723
1724 * d30v.h (CPP_PREDEFINES): Replace with
1725 (TARGET_CPU_CPP_BUILTINS): New.
1726
53e8b0b8
RS
17272002-06-02 Roger Sayle <roger@eyesopen.com>
1728
1729 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
1730
92e34b67
JH
1731Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
1732
1733 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
1734
e7e9d242
RH
17352002-06-02 Richard Henderson <rth@redhat.com>
1736
1737 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
1738
9af145ae
MM
17392002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1740
1741 Support for C++ constructors/destructors.
1742 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
1743 instead of looping if main() returns.
1744 (asm_file_start): Output global symbols that cause .data and .bss
1745 initialization code to be linked in, unconditionally for now.
1746 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
1747 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
1748 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1749 (LIBSTDCXX): New.
1750 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
1751 (__tablejump__): New.
1752 (__do_copy_data, __do_clear_bss): New.
1753 (__do_global_ctors, __do_global_dtors): New.
1754 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
1755 _ctors, _dtors.
1756
0d66ad57
NB
17572002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1758
1759 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
1760 (CPP_SPEC, CPP_PREDEFINES): Kill.
1761 * c4x/rtems.h (CPP_PREDEFINES): Kill.
1762 (TARGET_OS_CPP_BUILTINS): New.
1763
5c856b23
JH
1764Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
1765
1766 * Makefile.in (tracer.o): New.
1767 * params.def (TRACER_*): New options.
1768 * rtl.h (tracer): Declare.
1769 * timevar.def (TV_TRACER): New.
1770 * toplev.c (dump_file_index): Add DFI_tracer.
1771 (dump_file_info): Add tracer.
1772 (flag_tracer): New.
1773 (lang_indepdenent_options): Add tracer.
1774 (rest_of_compilation): Call tracer.
1775 * tracer.c: New file.
1776 * invoke.texi (-ftracer): Document.
1777 (--param tracer-*): Document.
1778
e2405951
DB
17792002-06-01 Daniel Berlin <dberlin@dberlin.org>
1780
1781 * tree-inline.c (expand_call_inline): Make the statement
33005162 1782 expression we generate have a COMPOUND_STMT.
e2405951 1783
0e3f0221
RS
17842002-06-01 Roger Sayle <roger@eyesopen.com>
1785
1786 * gcse.c (cprop_cc0_jump): Function deleted.
1787 (cprop_jump): Take an additional argument which is the possibly
1788 NULL cc setting insn immediately before the conditional jump.
1789 When a MODE_CC set is present, substitute it into the JUMP_INSN
1790 before attempting the constant propagation.
1791 (cprop_insn): Recognize cc setters followed by conditional jumps
1792 as a special case. Use cprop_jump instead of cprop_cc0_jump.
1793 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
1794 (find_bypass_set): New function based upon find_avail_set used by
1795 cprop, but finds constant expressions available at the end of
1796 basic blocks.
1797 (bypass_block): New function. Given a basic block that begins
1798 with a conditional jump and multiple incoming edges, perform
1799 the jump bypass optimization.
1800 (bypass_conditional_jumps): New function. Call bypass_block with
1801 each suitable basic block in the CFG using a simple single pass.
1802
378393da
RS
18032002-06-01 Roger Sayle <roger@eyesopen.com>
1804
1805 * tree.c (real_minus_onep): New function to test for -1.0.
1806 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
1807
01c58f26
RS
18082002-06-01 Roger Sayle <roger@eyesopen.com>
1809
1810 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
1811 and "!p && !q" into "(p|q) == 0" under suitable conditions.
1812
91b12472
AJ
18132002-06-01 Andreas Jaeger <aj@suse.de>
1814
1815 * cppexp.c (cpp_classify_number): Cast precission to int for
1816 correct printf format.
1817
01e9ae86
MM
18182002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
1819
1820 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
1821 expected, but don't really exist: atmega83, atmega85, attiny10.
1822 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
1823 emulations for all devices.
1824 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
1825 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
1826
be1e06df
KH
18272002-06-01 Kazu Hirata <kazu@cs.umass.edu>
1828
1829 * config/h8300/h8300-protos.h: Add a prototype for
1830 h8300_shift_needs_scratch_p.
1831 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
1832 * config/h8300/h8300.h (OK_FOR_R): New.
1833 (OK_FOR_S): Likewise.
1834 (OK_FOR_T): Likewise.
1835 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
1836 * config/h8300/h8300.md (anonymous shift patterns): Use
1837 constraints R, S, and T.
1838
2ecfd709
ZD
1839Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1840
1841 * basic-block.h (struct basic_block_def): New field loop_father.
1842 (BB_VISITED): New flag.
1843 (struct loop): New field pred, removed field shared.
1844 (struct loops): New field parray.
1845 (LOOP_EXITS_DOMS): Removed.
1846 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
1847 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
1848 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
1849 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
1850 verify_loop_structure): Declare.
1851 * cfg.c (entry_exit_blocks): Initialize loop_father field.
1852 * cfganal.c (dfs_enumerate_from): New function.
1853 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
1854 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1855 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
1856 flow_loop_dump, flow_loops_dump, flow_loops_free,
1857 flow_loop_tree_node_add, flow_loop_level_compute,
1858 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
1859 flow_loop_outside_edge_p): Modified for new infrastructure.
1860 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
1861 redirect_edge_with_latch_update, flow_loop_free): New static functions.
1862 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
1863 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
1864 find_common_loop, verify_loop_structure, loop_latch_edge,
1865 loop_preheader_edge): New functions.
1866 (flow_loops_cfg_dump): Do not show dominators, as this information
1867 does not remain up to date long.
1868 (flow_loops_find): Store results in new format.
1869 * predict.c (propagate_freq, estimate_probability,
1870 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
1871 infrastructure.
1872
d9763749 18732002-06-01 Alan Lehotsky <apl@alum.mit.edu>
91b12472 1874
d9763749
AL
1875 * except.c (nothrow_function_p): Walk epilogue delay list
1876 checking the insn, not the chain for potential throws.
91b12472 1877
1e730c5c
ZW
18782002-05-31 Zack Weinberg <zack@codesourcery.com>
1879
1880 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
1881 (install): Refer to install-cpp directly.
1882 (uninstall-cpp): Folded into uninstall rule.
1883 * configure.in: Delete all code relating to --disable-cpp.
1884 * configure: Regenerate.
1885 * config/t-install-cpp: Delete.
1886
6f9b006d
RH
18872002-05-31 Richard Henderson <rth@redhat.com>
1888
1889 * configure.in (HAVE_AS_TLS): Add alpha tests.
1890 * configure: Rebuild.
1891 * config/alpha/alpha.c (TARGET_AS_TLS): New.
1892 (alpha_tls_size, alpha_tls_size_string): New.
1893 (overide_options): Set it. Always install machine_status hooks.
1894 (input_operand): Accept got tls predicates.
1895 (local_symbol_p): Merge into ...
1896 (local_symbolic_operand): ... here. Reject tls symbols.
1897 (global_symbolic_operand): Likewise.
1898 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
1899 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
1900 (tp16_symbolic_operand, tp32_symbolic_operand): New.
1901 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
1902 (alpha_encode_section_info): Handle TLS symbols.
1903 (alpha_strip_name_encoding): Likewise.
1904 (alpha_legitimate_address_p): Likewise.
1905 (alpha_legitimize_address): Likewise.
1906 (alpha_expand_mov): Early exit to avoid nop moves.
1907 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
1908 (alpha_init_machine_status, alpha_mark_machine_status,
1909 alpha_free_machine_status): Always define.
1910 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
1911 (print_operand, print_operand_address): Add TLS relocs.
1912 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
1913 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
1914 (TARGET_SWITCHES): Add -mtls-kernel.
1915 (alpha_tls_size, alpha_tls_size_string): New.
1916 (TARGET_OPTIONS): Add -mtls-size=.
1917 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
1918 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
1919 (ASM_OUTPUT_LABELREF): Skip %.
1920 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
1921 (PREDICATE_CODES): Update.
1922 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
1923 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
1924 UNSPEC_TP, UNSPECV_SET_TP): New.
1925 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
1926 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
1927 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
1928 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
1929 (call_value_osf_2_er): Accept anything as op4.
1930 * config/alpha/alpha-protos.h: Update.
1931 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
1932
39e5db1a
ZW
19332002-05-31 Zack Weinberg <zack@codesourcery.com>
1934
1935 * cppinit.c (append_include_chain): Always pay attention to
1936 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
1937 marker on argument.
1938
41077ce4
KH
19392002-05-31 Kazu Hirata <kazu@cs.umass.edu>
1940
1941 * target.h: Fix formatting.
1942 * timevar.h: Likewise.
1943 * tlink.c: Likewise.
1944 * toplev.c: Likewise.
1945 * toplev.h: Likewise.
1946 * tree.c: Likewise.
1947 * tree-dump.h: Likewise.
1948 * tree.h: Likewise.
1949 * tree-inline.h: Likewise.
1950 * unroll.c: Likewise.
1951 * unwind-dw2.c: Likewise.
1952 * unwind-dw2-fde.c: Likewise.
1953 * unwind-dw2-fde-glibc.c: Likewise.
1954 * unwind-dw2-fde.h: Likewise.
1955 * unwind.h: Likewise.
1956 * unwind-sjlj.c: Likewise.
1957 * varasm.c: Likewise.
1958 * varray.h: Likewise.
1959 * vmsdbg.h: Likewise.
1960 * vmsdbgout.c: Likewise.
1961 * xcoffout.h: Likewise.
1962
b2e426a0
IS
19632002-05-31 Igor Shevlyakov <igor@microunity.com>
1964
1e730c5c 1965 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
b2e426a0
IS
1966 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
1967
8b968bd1
MW
19682002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
1969
1970 * gcc.c (cpp_unique_options): Remove "-d" options.
1971 (cpp_debug_options): New spec string.
1972 (default_compilers): Use it.
1973 * objc/lang-specs.h: Likewise.
1974
5c35940c
NN
19752002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
1976
1e730c5c 1977 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
5c35940c
NN
1978 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
1979 * gcc/mklibgcc.in: Likewise.
1980 * gcc/config/arc/t-arc: Likewise.
1981 * gcc/configure.in: Likewise.
1982 * gcc/configure: Regenerate.
1983
8b496ceb
SS
19842002-05-31 Stan Shebs <shebs@apple.com>
1985 Turly O'Connor <turly@apple.com>
1986
1987 * c-decl.c (struct binding_level): Change int field n_incomplete
1988 to tree list incomplete_list.
1989 (clear_binding_level): Init field with NULL.
1990 (pushdecl): Add incomplete type to list.
1991 (mark_binding_level): Mark the incomplete list.
1992 (finish_struct): Scan the incomplete list for types instead
1993 of all decls in the current binding level.
1994
4722213d
JDA
19952002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
1996
1997 * pa.c (output_millicode_call): Add missing '%' characters.
1998 (output_call): Likewise.
1999
1086fcb1
DE
20002002-05-31 David Edelsohn <edelsohn@gnu.org>
2001
2002 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
2003 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2004
afdfb380 20052002-05-31 Alan Lehotsky <apl@alum.mit.edu>
91b12472 2006
afdfb380
AL
2007 * varasm.c (mark_constant_pool): Walk epilogue delay list
2008 checking the insn, not the chain for potential constants.
1e730c5c 2009
f2df45f6
R
2010Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
2011
2012 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
2013
91ea38f9
JH
2014Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
2015
2016 * i386.c (classify_argument): Properly handle base types.
2017
2018 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
2019 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
2020 registers.
2021
10d1bb36
JH
2022Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2023
2024 * gcse.c (gcse_emit_move_after): New.
2025 (pre_delete, hoist_store): Use it.
2026
2027 * reload1.c (emit_input_reload_insns): Use constrain_operands
2028 instead of constraint_accepts_reg_p to verify optimization.
2029 (constraint_accepts_reg_p): Kill
2030
2031 * reload1.c (reload_cse_delete_noop_set): Kill.
2032 (reload_cse_simplify): use delte_insn_and_edges.
2033
8a72fb76
ZD
20342002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2035
2036 * cfgloop.c (flow_loops_find): Initialize first and last fields
2037 correctly.
2038
a9da2e5b
NB
20392002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
2040
2041 * c-common.c (builtin_define_std): Correct logic.
2042
6248c4dd
JDA
20432002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2044
2045 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
2046 (output_call): Likewise.
2047
d499455b
JDA
20482002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2049
2050 * pa.c: Move output.h include after tree.h include.
2051 (pa_asm_output_mi_thunk): Constify identifier lab.
2052
2eb2901a
JT
20532002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2054
2055 * config/ns32k/ns32k.h: Define named constants for the
2056 bits in target_flags and use them.
2057 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
2058
806bf413
JDA
20592002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2060
2061 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
2062 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
2063 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
2064 default scheduling model.
2065 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
2066 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
2067 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
2068 * doc/install.texi (hppa*-*-*): Document default scheduling.
2069
6d8d2bbc
JDA
20702002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2071
2072 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
2073
c8eb9785
JT
20742002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2075
2076 * config.gcc (ns32k-*-netbsd*): Set tm_file to
2077 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
2078 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
2079 netbsd.h, or netbsd-aout.h.
2080
6e2e5b6a
JT
20812002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2082
2083 * longlong.h (count_trailing_zeros): Add missing \, and clean up
2084 whitespace in __ns32000__ case.
2085
00182e1e
AH
20862002-05-31 Aldy Hernandez <aldyh@redhat.com>
2087
1e730c5c
ZW
2088 * expr.c (expand_expr): Output partially zeroed out vectors with
2089 output_constant_def.
00182e1e 2090
b4eb03fe
JT
20912002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2092
2093 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
2094 (sh-*-netbsdelf*)
2095 (shl*-*-netbsdelf*): New targets.
2096 * config/sh/netbsd-elf.h: New file.
8fd0df91 2097 * config/sh/t-netbsd: New file.
b4eb03fe 2098
261376e7
RH
20992002-05-30 Richard Henderson <rth@redhat.com>
2100 Eric Botcazou <ebotcazou@multimania.com>
2101
2102 PR optimization/6822
2103 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
2104 to unsigned int for op1 comparisons. Use gen_int_mode.
2105
ce60bf25
EB
21062002-05-30 Eric Botcazou <ebotcazou@multimania.com>
2107
2108 * expmed.c (const_mult_add_overflow_p): New.
2109 * expr.h: Declare it.
2110 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
2111 Don't eliminate the biv if the giv has a constant multiplier and
2112 the rhs argument of the comparison does satisfy the predicate.
2113 Use expand_mult_add to compute the replacement constant.
2114
d18b1ed8
OS
21152002-05-30 Osku Salerma <osku@iki.fi>
2116
2117 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
2118 (c_common_get_alias_set): Handle it.
2119 * doc/extend.texi: Document it.
2120
a7943381
RH
21212002-05-30 Richard Henderson <rth@redhat.com>
2122
2123 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2124 * toplev.c (process_options): Don't check it.
2125 * doc/tm.texi: Don't document it.
2126 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
2127 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2128 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
2129 frame pointer optimization if current_function_profile.
2130
e11e816e
KH
21312002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2132
2133 * langhooks.c: Fix formatting.
2134 * langhooks.h: Likewise.
2135 * lcm.c: Likewise.
2136 * libgcc2.c: Likewise.
2137 * lists.c: Likewise.
2138 * local-alloc.c: Likewise.
2139 * loop.c: Likewise.
2140 * loop.h: Likewise.
2141
21422002-05-30 Marc Espie <espie@openbsd.org>
2143
2144 * config.gcc (sparc64-*-openbsd*): New.
2145 * config/sparc/openbsd1-64.h: New.
2146 * config/sparc/openbsd64.h: New.
91f0fcee 2147
d35dfca9
JL
21482002-05-30 Jeff Law <law@redhat.com>
2149
2150 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
2151 a dead insn with a REG_RETVAL note when the entire libcall is not
2152 dead and remove the associated REG_LIBCALL note at the same time.
2153
81b40b72
R
2154Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2155
2156 * lcm.c (output.h): #include.
2157 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
2158 as an ordinary block.
2159 (optimize_mode_switching): Don't pretend that the exit block is
2160 an ordinary block, or handle sucessors of entry block specially.
2161 Instead, split edges from entry block and to exit block, and
2162 put a computing definition on the thus gained post-entry-block,
2163 and a need on the pre-exit-block.
2164
c8ea9a0f
JH
2165Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2166
2167 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
2168 * rtl.texi: Document 'B'
2169
348f0869
JT
21702002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2171
2172 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
2173 at run-time.
2174 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
2175
9a171fcd
AH
21762002-05-30 Aldy Hernandez <aldyh@redhat.com>
2177
1e730c5c
ZW
2178 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2179 const0_rtx instead of NULL_RTX when in error.
2180 (altivec_expand_abs_builtin): Same.
2181 (rs6000_expand_binop_builtin): Same.
2182 (altivec_expand_predicate_builtin): Same.
2183 (altivec_expand_stv_builtin): Same.
2184 (rs6000_expand_ternop_builtin): Same.
2185 (altivec_expand_builtin): Same.
9a171fcd 2186
62a35e60
DM
21872002-05-29 David S. Miller <davem@redhat.com>
2188
2189 * rtl.h (clear_emit_caches): Delete.
2190 * integrate.c (output_inline_function): Don't call it.
2191 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
2192 (clear_emit_caches): Delete definition.
2193 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
2194
cbc39da8
HPN
21952002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
2196
2197 * config/mmix/mmix.c: Include real.h.
2198 (mmix_constant_address_p): Remove redundant test before switch.
2199
50efa737
JT
22002002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2201
2202 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
2203 only if not already defined.
2204
2e760b15
KH
22052002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2206
2207 * config/h8300/h8300-protos.h: Remove prototypes for
2208 ok_for_bclr and small_power_of_two.
2209 * config/h8300/h8300.c (small_power_of_two): Remove.
2210 (ok_for_blcr): Likewise.
2211 (fix_bit_operand): Make WHAT deal with an integer instead of a
2212 constraint character.
2213 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
2214 (CONST_OK_FOR_P): Likewise.
2215 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
2216 CONST_OK_FOR_P any more.
2217 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
2218 of fix_bit_operand.
2219 (iorqi3): Likewise.
2220 (xorqi3): Likewise.
2221
e1c293ae
JT
22222002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2223
2224 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2225 (CPP_PREDEFINES): Make sure this is undefined.
2226 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
2227 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
2228 or -U__MIPSEB__ before defining one or the other. Instead,
2229 use %(subtarget_endian_default) if neither -EB nor -EL are
2230 specified.
2231 (SUBTARGET_EXTRA_SPECS): Define.
2232 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
2233 %(netbsd_cpp_spec).
2234
fde6d81f
HPN
22352002-05-29 Hans-Peter Nilsson <hp@axis.com>
2236
2237 * doc/md.texi (Patterns): Note pattern condition pitfall
2238 for unnamed insn.
2239
92898235
AH
22402002-05-29 Aldy Hernandez <aldyh@redhat.com>
2241
1e730c5c
ZW
2242 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
2243 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
2244 ternary operations from here...
2245 (rs6000_expand_builtin): ...to here.
2246 New argument expandedp.
2247 Change all instances of altivec_expand_binop_builtin to
2248 rs6000_expand_binop_builtin.
2249 (altivec_expand_unop_builtin): Rename to
2250 rs6000_expand_unop_builtin.
2251 (altivec_expand_binop_builtin): Rename to
2252 rs6000_expand_binop_builtin.
2253 (altivec_expand_ternop_builtin): Rename to
2254 rs6000_expand_ternop_builtin.
92898235 2255
67adf6a9
RH
22562002-05-29 Richard Henderson <rth@redhat.com>
2257
2258 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
2259 (TARGET_BI_ARCH): Likewise.
2260 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
2261 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
2262 (TARGET_64BIT_DEFAULT): Default to 0.
2263 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
2264
145aacc2
RH
22652002-05-29 Richard Henderson <rth@redhat.com>
2266
2267 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
2268 (get_pc_thunk_name): New.
2269 (output_set_got): Use it.
2270 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
2271 into linkonce sections.
2272
a5b49bbc
JT
22732002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2274
2275 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2276 (CPP_PREDEFINES): Make sure this is undefined.
2277 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
2278 (CPP_SUBTARGET_SPEC): Don't provide different versions for
2279 default-32 and default-64. Just always use %(netbsd_cpp_spec).
2280 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
2281 cpp_subtarget_spec64. Add netbsd_cpp_spec.
2282 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2283 (CPP_PREDEFINES): Make sure this is undefined.
2284 (SUBTARGET_EXTRA_SPECS): Define.
2285 (CPP_SPEC): Use %(netbsd_cpp_spec).
2286
54374491
JL
22872002-05-29 Jeff Law <law@redhat.com>
2288
ae02eae8
JL
2289 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
2290
b862c2aa
JL
2291 * flow.c (propagate_one_insn): Do not remove a dead insn if it
2292 contains a REG_RETVAL note.
2293
d10791ba
JL
2294 * haifa-sched (sched_analyze): Remove another useless clearing
2295 of SCHED_GROUP_P I missed yesterday.
2296
54374491
JL
2297 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
2298 * pa.c (pa_asm_output_mi_thunk): New function.
2299 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
2300
92c392e6
NB
23012002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2302 Marek Michalkiewicz <marekm@amelek.gda.pl>
2303
2304 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
2305 (avr_asm_only_p): Make non-static.
2306 (enum avr_arch): Remove.
2307 (avr_arch_types): New.
2308 (avr_mcu_types): Update.
2309 (avr_override_options): Use avr_arch_types table instead of switch.
2310 * avr.h (CPP_PREDEFINES): Die.
2311 (avr_base_arch_macro, avr_extra_arch_macro): New.
2312 (TARGET_CPU_CPP_BUILTINS): New.
2313 (CPP_SPEC, EXTRA_SPECS): Simplify.
2314 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
2315 CPP_AVR5_SPEC): Die.
2316
4528173e
JT
23172002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2318
2319 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2320 NETBSD_OS_CPP_BUILTINS_AOUT.
2321 (SUBTARGET_EXTRA_SPECS): Define.
2322 (CPP_SPEC): Use %(netbsd_cpp_spec).
2323
bd09bdeb
RH
23242002-05-29 Richard Henderson <rth@redhat.com>
2325
2326 * config/i386/i386.c (ix86_output_function_epilogue): New.
2327 (TARGET_ASM_FUNCTION_EPILOGUE): New.
2328 (pic_label_name): Remove.
2329 (pic_labels_used): New.
2330 (ix86_asm_file_end): Emit one pc load stub for each register used.
2331 (output_set_got): Generate deep pc load to any register.
2332 (ix86_select_alt_pic_regnum): New.
2333 (ix86_save_reg): Don't save pic register if we can find a valid
2334 call-clobbered replacement.
2335 (ix86_expand_prologue): If we found a valid replacement, renumber
2336 pic_offset_table_rtx.
2337 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
2338 pic_offset_table_rtx after reload.
2339 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
2340 * config/i386/i386.md (set_got): Make insn, not expander.
2341 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
2342
002ff5bc
RH
23432002-05-29 Richard Henderson <rth@redhat.com>
2344
2345 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
2346 alignment for alloca.
2347
edfe8595
RH
23482002-05-29 Richard Henderson <rth@redhat.com>
2349
2350 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
2351 (print_operand_address): Only add rip for symbolic addresses
2352 for which we do not have another relocation type.
2353
cd7714ee
JT
23542002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2355
2356 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2357 (EXTRA_SPECS): Add netbsd_cpp_spec.
2358 (CPP_SPEC): Use %(netbsd_cpp_spec).
2359 (CPP_PREDEFINES): Remove.
2360 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2361 (EXTRA_SPECS): Define.
2362 (CPP_SPEC): Use %(netbsd_cpp_spec).
2363 (CPP_PREDEFINES): Remove.
2364
8dc901de
NB
23652002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2366
2367 PR preprocessor/6844
2368 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
2369 NUL.
2370
2274b31a
EC
23712002-05-29 Eric Christopher <echristo@redhat.com>
2372
2373 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
2374 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
2375
5c7666c1
NC
23762002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
2377
2378 * config/fr30/fr30.md: Remove previous restriction on splits.
2379 Enforce conformance through gen_lowpart and cont_int_operand.
1e730c5c 2380 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
5c7666c1
NC
2381 as the assembler does not support ".bss".
2382
45beef47
JT
23832002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2384
2385 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2386 (CPP_PREDEFINES): Remove.
2387 (SUBTARGET_EXTRA_SPECS): Define.
2388 (CPP_SPEC): Use %(netbsd_cpp_spec).
2389 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2390 (CPP_PREDEFINES): Remove.
2391 (SUBTARGET_EXTRA_SPECS): Define.
2392 (CPP_SPEC): Use %(netbsd_cpp_spec).
2393 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
2394 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
2395 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
2396 Add netbsd_cpp_spec.
2397 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
2398
cd7ab83f
NB
23992002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2400 Zack Weinberg <zack@codesourcery.com>
2401
2402 * cppexp.c (cpp_num): Move to cpplib.h.
2403 (CPP_ERROR): Remove.
2404 (interpret_float_suffix, interpret_int_suffix): New.
2405 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
2406 (cpp_classify_number, cpp_interpret_integer): New.
2407 (interpret_number): Remove.
2408 (eval_token): Update to use new routines.
2409 * cpphash.h (cpp_num_part): Move to cpplib.h.
2410 * cppinit.c (cpp_post_options): Set warn_long_long.
2411 * cpplib.h (struct cpp_options): Add warn_long_long.
2412 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
2413 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
2414 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
2415 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
2416 cpp_interpret_integer): New.
2417
61a8515c
JS
24182002-05-29 Joel Sherrill <joel@OARcorp.com>
2419
2420 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
2421
53a428b5
JT
24222002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2423
2424 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2274b31a
EC
2425 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
2426 (CPP_SUBTARGET_SPEC): Define.
2427 (SUBTARGET_EXTRA_SPECS): Define.
53a428b5
JT
2428 (CPP_SPEC): Remove.
2429
45b1f7c7
CL
24302002-05-29 Chris Lattner <sabre@nondot.org>
2431
1e730c5c
ZW
2432 * ssa.c (rename_insn_1): Rename uses of undefined registers to
2433 prevent confusion if/when the register is defined.
45b1f7c7 2434
049746c2
HPN
24352002-05-29 Hans-Peter Nilsson <hp@axis.com>
2436
2437 PR target/6838
2438 * config/cris/cris.md: Fix typos and thinkos in comments.
2439 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
2440 second alternative.
2441 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
2442 ("*mov_sideqi_mem"): Similar, but for operand 3.
2443 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
2444 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
2445 Remove spurious mode specifier on operand 2.
2446
4d4d89e2
KH
24472002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2448
2449 * config/h8300/h8300-protos.h: Remove the prototype for
2450 o_operand.
2451 Add prototypes for single_one_operand and single_zero_operand.
2452 * config/h8300/h8300.c (o_operand): Remove.
2453 (single_one_operand): New.
2454 (single_zero_operand): Likewise.
2455 (print_operand): For 'V' operand, and the operand with 0xff.
2456 For 'V' and 'W' operands, do not and the bit position with 7.
2457 * config/h8300/h8300.md (various anonymous patterns): Replace
2458 use of exact_log2 with single_one_operand/single_zero_operand.
2459
abd6ddec
UW
24602002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2461
2462 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2463
da06d85a
UW
24642002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2465
2466 * config/s390/s390.c (legitimate_pic_operand_p): Do not
2467 accept symbolic LARL operands.
2274b31a 2468 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
da06d85a 2469 epilogue insns.
2274b31a 2470
f8766020
HP
24712002-05-29 Hartmut Penner <hpenner@de.ibm.com>
2472
2473 * config/s390/s390.md (cmpstr_64/31): Mark whole
2274b31a 2474 input registers as used.
f8766020 2475
66edd3b4
RH
24762002-05-28 Richard Henderson <rth@redhat.com>
2477
2478 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
2479 not current_function_uses_pic_offset_table and
2480 current_function_uses_const_pool; examine current_function_profile.
2481 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
2482 input to blockage if needed.
2483 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
2484 (legitimize_pic_address): Likewise. Set regs_ever_live for
2485 pic_offset_table_rtx when invoked during reload.
2486 * config/i386/i386.h (FINALIZE_PIC): Remove.
2487 * config/i386/i386.md (tablejump): Reformat. Do not set
2488 current_function_uses_pic_offset_table.
2489 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
2490 (blockage): Accept anything as operand 0.
2491
52f4fff6
JT
24922002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2493
2494 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
2495 common CPP built-ins for all NetBSD a.out targets.
2496 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
2497 common CPP built-ins for all NetBSD ELF targets.
2498 * config/netbsd.h: Add missing notice.
2499 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
2500 for all NetBSD targets.
2501 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
2502 for all NetBSD targets using an LP64 code model.
2503 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
2504 NetBSD targets.
2505
e0e577a2
RH
25062002-05-28 Richard Henderson <rth@redhat.com>
2507
2508 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
2509 update if UPDATE_LIFE_LOCAL.
2510
25112002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
62526ec3
TM
2512
2513 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
2514
f1a58d92 2515Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1e730c5c 2516 Jason R. Thorpe <thorpej@wasabisystems.com>
f1a58d92
R
2517
2518 config/sh reorganization to factor out endianness and coff:
2519
2520 * config/sh/little.h: New file.
1e730c5c
ZW
2521 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
2522 defined, define to 0 to select big-endian.
f1a58d92 2523 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
1e730c5c
ZW
2524 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2525 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2526 * config/sh/t-be: New file.
2527 * config/sh/t-le: New file.
f1a58d92
R
2528
2529 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
2530 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
2531 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
2532 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
2533 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2534 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2535 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
2536 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
2537 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
2538 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
2539 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
2540 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
2541 (LINK_SPEC): Define to SH_LINK_SPEC.
2542 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
2543 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
2544 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2545 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
2546 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
2547 * config/sh/coff.h: New file.
2548 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
2549 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2550 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
2551 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
2552 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
2553 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
2554 (PTRDIFF_TYPE): Likewise.
2555 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
2556 (CPP_PREDEFINES): Don't define.
2557 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2558 (LINK_SPEC): Define to SH_LINK_SPEC.
2559 (LINK_EMUL_PREFIX): Redefine.
2560 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
2561 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
2562 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
2563 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
2564 (TARGET_OS_CPP_BUILTINS): Define.
2565 (TARGET_DEFAULT): Redefine.
2566 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2567 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
2568 (LINK_SPEC): Don't redefine.
2569 (LINK_DEFAULT_CPU_EMUL): Redefine.
2570 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2571 * sh.c (sh_asm_named_section): Don't declare / define.
2572 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
2573 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
2574 (sh64-*-elf* tm_file): Likewise.
2575 (sh-*-rtemself* tm_file): Likewise.
2576 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
2577 (sh-*-linux* tmake_file): Add sh/t-le.
2578 (sh-*-rtems* tm_file): Add sh/coff.h
2579 (sh-*-* tm_file): Likewise.
2580
2581Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2582
2583 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
2584 CONSTANT_POOL_ADDRESS_P.
2585
2586 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
2587
d10791ba 25882002-05-28 David Edelsohn <edelsohn@gnu.org>
33a3dfc4
DE
2589 Jeff Law <law@redhat.com>
2590
64de6c0a
DE
2591 * optabs.c (expand_binop): Fix nwords sign warnings.
2592 generate pseudo for add_optab.
2593
33a3dfc4
DE
2594 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
2595 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
2596
972957ba 25972002-05-28 Marc Espie <espie@openbsd.org>
33a3dfc4 2598
2274b31a 2599 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
972957ba
ME
2600 inherited from gas.h.
2601 (ASM_QUAD): Undef. OpenBSD does not support it.
2602
cc92b8ab
DS
26032002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
2604
2605 * doc/install.texi (binaries): Change mingw binaries
2606 link to www.mingw.org.
2607
f8088d55
ZD
26082002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2609
2610 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
2611
0b7ae565
RH
26122002-05-28 Richard Henderson <rth@redhat.com>
2613
2614 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
2615 bottom alignment for leaf functions.
2616
16069d69
ZW
26172002-05-28 Zack Weinberg <zack@codesourcery.com>
2618
2619 * config/pa/milli32.S, config/pa/lib1funcs.asm,
2620 config/sparc/sol2-g1.asm: Delete unused files.
2621
04653686
RH
26222002-05-28 Richard Henderson <rth@redhat.com>
2623
2624 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
2625
f3ea5f6a
RH
2626 * flow.c (calculate_global_regs_live): Rename call_used to
2627 invalidated_by_call. Initialize from regs_invalidated_by_call
2628 instead of call_used_regs.
2629
923c7cdf
RH
2630 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
2631 DECL_EXTERNAL.
2632
11ad4784
ZW
26332002-05-28 Zack Weinberg <zack@codesourcery.com>
2634
8abbd76a
ZW
2635 * tree.h: Don't include real.h.
2636 Forward-declare struct realvaluetype.
11ad4784
ZW
2637 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
2638 contain it.
2639 (TREE_REAL_CST_PTR): New accessor.
2640 (TREE_REAL_CST): Update.
2641 * real.h: Include machmode.h.
2274b31a 2642 (realvaluetype): Make it struct realvaluetype, not a typedef.
11ad4784
ZW
2643 (build_real): Prototype here.
2644
2645 * tree.c: Include real.h.
2274b31a
EC
2646 (build_real): Allocate the REAL_VALUE_TYPE as a separate
2647 object in GC memory, set TREE_REAL_CST_PTR to point to it.
11ad4784
ZW
2648 (build_real_from_int_cst): Use build_real.
2649 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
2650 REAL_CST.
2651
2652 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
2653 fold-const.c, print-tree.c, real.c: Include real.h.
2654 * Makefile.in: Update dependency lists.
2655
bf77398c
ZD
26562002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2657
2658 * basic-block.h (last_basic_block): Declare.
2659 (expunge_block_nocompact): Declaration removed.
2660 (compact_blocks): Declare.
2661 * cfg.c (last_basic_block): New variable.
2662 (expunge_block_nocompact): Removed.
2663 (expunge_block): Do not compact basic blocks.
2664 (compact_blocks): New.
2665 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
2666 longer change.
2667 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
2668 last_basic_block.
2669 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
2670 real positions of blocks.
2671 (delete_unreachable_blocks): Simplified -- quadratic behavior now
2672 cannot occur.
2673 (cleanup_cfg): Compact blocks.
2674 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
2675 basic_block_info varray.
2676 (flow_delete_block): Comment update.
2677 (back_edge_of_syntactic_loop_p): Modify position check code.
2678 (verify_flow_info): Update checking.
2679 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
2680 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2681 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
2682 indices no longer change.
2683 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
2684 last_basic_block.
2685 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
2686 * profile.c (branch_prob): Compact blocks.
2687 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
2688 last_basic_block.
2689
ae12a094
KH
26902002-05-28 Kazu Hirata <kazu@cs.umass.edu>
2691
2692 * config/h8300/h8300.md (two anonymous patterns): New.
2693
c6172f14
DM
26942002-05-28 David S. Miller <davem@redhat.com>
2695
2696 * config/sparc/sparc.md (cpu): Tidy.
2697 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
2698 'trap'.
2699 (in_call_delay): Delete reference to 'return' type.
2700 (eligible_for_return_delay, in_return_delay, define_delay
2701 referencing those): Delete.
2702 (rest of file): Use new type attributes as appropriate.
2703 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
2704 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
2705 * config/sparc/ultra1_2.md (us1_single): New reservation.
2706 (us1_ialuX): Likewise.
2707 * config/sparc/ultra3.md (us3_single): Likewise.
2708 (us3_ialuX): Likewise.
2709 (us3_imul, us3_idiv): Tweak.
2274b31a 2710
34a6c2ec
RH
27112002-05-28 Richard Henderson <rth@redhat.com>
2712
2713 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
2714 STRING_CST.
2715
9c075570
RH
27162002-05-28 Richard Henderson <rth@redhat.com>
2717
2718 * config.gcc: Obsolete mn10200.
2719
359b0bec
NB
27202002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
2721
2722 * cppexp.c (interpret_number): Optimize for single-digit
2723 and less-than-half-precision cases.
2724 (num_trim, num_positive, num_div_op): Cast constants.
2725
4075db8f
BT
27262002-05-27 Bo Thorsen <bo@suse.de>
2727
2728 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
2729 3.1 branch. The file was made by Jakub Jelinek.
2730 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
2731 support so multilib doesn't break. And don't define this at all
2732 when -Dinhibit_libc is used.
2733 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
2734 * config/i386/t-linux64: Implement full multilib support. Patch
2735 originally done by Andreas Jaeger and Jakub Jelinek.
2736
39f2f3c8
RS
27372002-05-27 Roger Sayle <roger@eyesopen.com>
2738
2739 * c-common.c: Add support for __attribute__((nothrow)) to specify
2740 that a function cannot throw an exception (using TREE_NOTHROW).
2741 (handle_nothrow_attribute): New function to process this attribute.
2742
2743 * doc/extend.texi: Document the new nothrow function attribute.
2744
d51b0053
L
27452002-05-27 H.J. Lu (hjl@gnu.org)
2746
2747 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
2748 (num_positive): Likewise.
2749 (num_div_op): Likewise.
2750
630363b4
NB
27512002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2752
2753 * c-common.c (c_common_init): Always use intmax_t.
2754
d94cde01
NB
27552002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2756
2757 * c-common.c (c_common_init): Use intmax_t for now.
2758
57f851a3
AH
27592002-05-24 Andrew Haley <aph@redhat.com>
2760
2761 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
2762 if T is a boolean type.
2763
d55bc081
ZD
27642002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2765
2766 * basic-block.h (last_basic_block): Defined as synonym for
2767 n_basic_blocks.
2768 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
2769 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2770 flow_dfs_compute_reverse_init): Replaced relevant occurences of
2771 n_basic_blocks with last_basic_block.
2772 * cfgbuild.c (make_edges): Likewise.
2773 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
2774 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
2775 * combine.c (combine_instructions): Likewise.
2776 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
2777 iterative_dataflow_bitmap): Likewise.
2778 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2779 calc_idoms, idoms_to_doms): Likewise.
2780 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
2781 Likewise.
2782 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
2783 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
2784 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
2785 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
2786 delete_null_pointer_checks, compute_code_hoist_vbeinout,
2787 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2788 compute_store_table, build_store_vectors): Likewise.
2789 * haifa-sched.c (sched_init): Likewise.
2790 * ifcvt.c (if_convert): Likewise.
2791 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
2792 pre_edge_lcm, compute_available, compute_nearerout,
2793 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
2794 Likewise.
2795 * predict.c (estimate_probability, process_note_prediction,
2796 note_prediction_to_br_prob): Likewise.
2797 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
2798 * recog.c (split_all_insns, peephole2_optimize): Likewise.
2799 * regrename.c (copyprop_hardreg_forward): Likewise.
2800 * resource.c (init_resource_info): Likewise.
2801 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
2802 init_regions, schedule_insns): Likewise.
2803 * ssa-ccp.c (ssa_const_prop): Likewise.
2804 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2805 * ssa.c (compute_dominance_frontiers,
2806 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
2807
2808 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
2809 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
2810 sizes consistently.
2811
71d2c5bd
JH
2812Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
2813
2814 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
2815 new.
2816 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
2817 hoist_insn_after, hoist_insn_to_edge): New.
2818
5149f070
JH
2819Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
2820
2821 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
2822 (PROP_FINAL): Include.
2823 * flow.c (life_analysis, update_life_info,
2824 init_propagate_block_info, mark_set_1, mark_used_rgs):
2825 Support SCAN_DEAD_STORE.
2826
c9220e3a
NB
28272002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2828
2829 * c-common.c (c_common_init): Set CPP arithmetic precision.
2830 * cppexp.c (cpp_num_part): Move typedef ...
2831 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
2832 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
2833 (sanity_checks): Update.
2834
e34a3d31
GK
28352002-05-26 Geoffrey Keating <geoffk@redhat.com>
2836
2837 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
2838 (mkheaders): New rule.
2839 (install-mkheaders): New rule.
2840 * configure.in (all_outputs): Add mkheaders.
2841 * configure: Regenerate.
2842 * mkheaders.in: New file.
2843
9059e33c
JJ
28442002-05-26 Jakub Jelinek <jakub@redhat.com>
2845
2846 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
2847
291cc0fe
AJ
28482002-05-26 Andreas Jaeger <aj@suse.de>
2849
2850 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
2851
91318908
NB
28522002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
2853
2854 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
2855 right_shift): Remove.
2856 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
2857 HIGH_PART): New.
2858 (struct op): Use cpp_num.
2859 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
2860 num_part_mul, num_unary_op, num_binary_op, num_negate,
2861 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
2862 num_div_op, num_lshift, num_rshift, append_digit): New.
2863 (interpret_number, parse_defined, eval_token, reduce): Update
2864 for two-integer arithmetic.
2865 (binary_handler): New typedef.
2866 (optab): Update.
2867 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
2868 (_cpp_parse_expr, reduce): Update to handle two-integers.
2869 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
2870
331ca350
MM
28712002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
2872
2873 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
2874 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
2875 branch insn into account, do not assume 1.
2876 (avr_out_sbxx_branch): New function. Optimize cases of skipping
2877 over single word insn. Handle upper half of I/O space too.
2878 * config/avr/avr.md (*sbrx_branch): Use it.
2879 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
2880 (*sbix_branch, *sbix_branch_bit7): Likewise.
2881 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
2882 Use RTL peepholes to optimize register operand sign tests.
2883
bcb6a2be
MM
28842002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
2885
2886 * config/avr/avr.c (avr_asm_only_p): New variable.
2887 (avr_override_options): Set it here if AVR1.
2888 (asm_file_start): Test it here, report an error if set.
2889
ca7fd9cd
KH
28902002-05-26 Kazu Hirata <kazu@cs.umass.edu>
2891
2892 * alias.c: Fix formatting.
2893 * attribs.c: Likewise.
2894 * bb-reorder.c: Likewise.
2895 * bitmap.c: Likewise.
2896 * bitmap.h: Likewise.
2897 * builtins.c: Likewise.
2898
a65dc37d
JH
2899Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
2900
2901 * reload.c (find_valid_class): Accept new argument DEST,
2902 choose class accordingly.
2903 (push_reload): Update callers.
2904
9b89393b
AJ
29052002-05-26 Andreas Jaeger <aj@suse.de>
2906
2907 * combine.c (combine_instructions): Do not indent #if for
2908 traditional C.
2909
b53bb376
RH
29102002-05-25 Richard Henderson <rth@redhat.com>
2911
2912 * c-pragma.c (apply_pragma_weak): Convert value identifier to
2913 string for decl_attributes.
2914 (handle_pragma_weak): Call assemble_alias if we're modifying
2915 an existing decl.
2916
e133041b
RH
29172002-05-25 Richard Henderson <rth@redhat.com>
2918
2919 PR target/6788
2920 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
2921 using rtl instead of fprintf.
2922 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
2923 * config/sparc/sparc-protos.h: Update.
2924
81a75f0f
NB
29252002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
2926
2927 * Makefile.in (C_COMMON_H): Fix.
2928 Update other targets.
2929 * c-common.c: Don't include c-lex.h.
2930 (builtin_define_with_value): Make static and prototype.
2931 (builtin_define_std): Move from c-lex.h.
2932 * c-common.h (init_c_lex): Move from c-lex.h.
2933 * c-decl.c: Don't include c-lex.h.
2934 (make_pointer_declarator): Move from c-parse.in.
2935 * c-lex.c: Don't include c-lex.h.
2936 * c-lex.h: Remove.
2937 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
2938 (make_pointer_declarator): Move to c-decl.c.
2939 * c-pragma.c: Don't include c-lex.h.
2940 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
2941 * c-tree.h (make_pointer_declarator): New.
2942doc:
2943 * passes.texi, tm.texi: Update.
2944objc:
2945 * Make-lang.in: Update and correct.
2946 * objc-act.c: Don't include c-lex.h or cpplib.h.
2947treelang:
2948 * treetree.c: Don't include c-lex.h.
2949config:
2950 * darwin-c.c: Don't include c-lex.h.
2951 * c4x/c4x-c.c: Don't include c-lex.h.
2952 * c4x/t-c4x: Update.
2953 * i370/i370-c.c: Don't include c-lex.h.
2954 * i370/t-i370: Update.
2955 * i960/i960-c.c: Don't include c-lex.h.
2956 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
2957 * i960/t-960bare: Update.
2958 * i960/t-vxworks: Update.
2959 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
2960 * rs6000/t-darwin: Update.
2961 * rs6000/t-rs6000-c-rule: Update.
2962 * v850/v850-c.c: Don't include c-lex.h.
2963 * v850/v850.c: Don't include c-lex.h or cpplib.h.
2964
2965
04d2be8e
KH
29662002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2967
2968 * tree.def: Fix typos.
2969 * doc/install.texi: Likewise.
2970
7b6e506e
RH
29712002-05-25 Richard Henderson <rth@redhat.com>
2972
2973 * configure.in (HAVE_AS_TLS): Add ia64 test.
2974 * configure: Rebuild.
2975 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
2976 (override_options): Set it.
2977 (TARGET_HAVE_TLS): New.
2978 (sdata_symbolic_operand): Look for 's'.
2979 (tls_symbolic_operand): New.
2980 (ia64_expand_load_address): Abort for tls symbols.
2981 (gen_tls_get_addr): New.
2982 (gen_thread_pointer): New.
2983 (ia64_expand_move): Split out from movdi. Handle tls symbols.
2984 (rtx_needs_barrier): Add new unspecs.
2985 (ia64_encode_section_info): Handle tls symbols.
2986 (ia64_strip_name_encoding): Strip two encoding chars.
2987 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
2988 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
2989 (TARGET_OPTIONS): Add tls-size.
2990 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
2991 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
2992 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
2993 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
2994 (movsf, movdf): Likewise.
2995 (movdi_symbolic): Use match_scratch. Don't split if we won't
2996 have a scratch availiable.
2997 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
2998 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
2999 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
3000 * config/ia64/ia64-protos.h: Update.
3001 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
3002 sdata_symbolic_operand.
3003 (ASM_OUTPUT_LABELREF): Strip two characters.
3004
8c1d52a3
KH
30052002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3006
3007 * combine.c (simplify_set): Remove an unnecessary subreg.
3008
b47cae3d
MM
30092002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
3010
3011 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
3012
3013 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
3014
ce9e3a6d
GDR
30152002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3016
3017 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
3018
fb2c6841
RS
30192002-05-25 Roger Sayle <roger@eyesopen.com>
3020
3021 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
3022 (cond (compare x y) 0) into the equivalent (cond x y).
3023
da7ac8f1
GDR
30242002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3025
3026 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
3027
c7bdf0a6
ZW
30282002-05-24 Zack Weinberg <zack@codesourcery.com>
3029
3030 * config.gcc: Remove all stanzas for previously obsoleted
3031 systems. Where necessary, add explicit error stanzas to
3032 prevent removed systems from being misidentified as something
3033 else. Begin a fresh obsoletions list, with the systems that
3034 were reprieved last round.
3035 * doc/install.texi: Remove all mention of dead targets.
3036 * fixinc/mkfixinc.sh: Likewise.
3037
3038 * config/arm/arm.h: Bit 31 of target_flags is no longer
3039 reserved.
3040
3041 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
3042 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
3043 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
3044 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
3045 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
3046 config/alpha/osf12.h, config/alpha/osf2or3.h,
3047 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
3048 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
3049 config/clipper/clipper-protos.h, config/clipper/clipper.c,
3050 config/clipper/clipper.h, config/clipper/clipper.md,
3051 config/clipper/clix.h, config/convex/convex-protos.h,
3052 config/convex/convex.c, config/convex/convex.h,
3053 config/convex/convex.md, config/convex/fixinc.convex,
3054 config/convex/proto.h, config/elxsi/elxsi-protos.h,
3055 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
3056 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
3057 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
3058 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
3059 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
3060 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
3061 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
3062 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
3063 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
3064 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
3065 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
3066 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
3067 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
3068 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
3069 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
3070 config/m68k/altos3068.h, config/m68k/apollo68.h,
3071 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
3072 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
3073 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
3074 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
3075 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
3076 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
3077 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
3078 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
3079 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
3080 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
3081 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
3082 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
3083 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
3084 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
3085 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
3086 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
3087 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
3088 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
3089 config/mips/dec-osf1.h, config/mips/elflorion.h,
3090 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
3091 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
3092 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
3093 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
3094 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
3095 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
3096 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
3097 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
3098 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
3099 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
3100 config/ns32k/sequent.h, config/ns32k/tek6000.h,
3101 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
3102 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
3103 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
3104 config/sparc/rtems.h, config/we32k/we32k-protos.h,
3105 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
3106 Delete file.
3107
755ac5d4
RH
31082002-05-24 Richard Henderson <rth@redhat.com>
3109
3110 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
3111 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
3112 * config/i386/i386.c (tls_model_chars): Add leading space.
3113 (tls_symbolic_operand): Don't bias by 1.
3114 (legitimize_address): Don't unbias by 1.
3115
c429f12e
TM
31162002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3117
3118 * lcm.c (optimize_mode_switching): Change bb used as indices
3119 to bb->index.
3120
8beda321
RH
31212002-05-24 Richard Henderson <rth@redhat.com>
3122
3123 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
3124 of update_life_info_in_dirty_blocks.
3125
90442291
JJ
31262002-05-24 Jakub Jelinek <jakub@redhat.com>
3127
3128 PR other/6782
3129 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
3130
3620711b
NB
31312002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
3132
3133 PR preprocessor/6780
3134 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
3135
2f8d482e
JB
31362002-05-24 Jim Blandy <jimb@redhat.com>
3137
3138 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
3139 entry with a type code of zero, marking the end of the compilation
3140 unit's macro info.
3141
95bfe95f
RH
31422002-05-24 Richard Henderson <rth@redhat.com>
3143
c7bdf0a6
ZW
3144 * varasm.c (asm_output_bss): Always output one byte.
3145 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
95bfe95f 3146
7efda054
BM
31472002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3148
3149 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
3150 namespace.
3151
8a951190
AJ
31522002-05-24 Andreas Jaeger <aj@suse.de>
3153
3154 * ggc-page.c (alloc_page): Cast variables of type size_t to
3155 unsigned long, adjust printf format string.
3156 (ggc_alloc): Likewise.
3157 (ggc_print_statistics): Likewise.
3158 (ggc_print_statistics): Correct printf format string for SCALE to
3159 use unsigned long.
3160
f29e2ec0
DS
31612002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
3162
3163 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
3164
211a0cbe 31652002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
c7bdf0a6 3166 Zack Weinberg <zack@codesourcery.com>
211a0cbe
GDR
3167
3168 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
3169 quoted strings.
3170 * dwarf2out.c (lookup_filename): Properly quote filename in .file
8a951190 3171 directive in assembly file.
211a0cbe
GDR
3172 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3173 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3174 * config/pj/pj.h (ASM_FILE_START): Likewise.
3175 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
3176 * config/avr/avr.c (asm_file_end): Likewise.
3177 * toplev.c (output_quoted_string): Handle possibly signed plain
8a951190 3178 char.
211a0cbe
GDR
3179 * toplev.h (output_clean_symbol_name): Declare
3180 * toplev.c (output_clean_symbol_name): Define.
3181 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
3182 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
3183
2f0552b6
AM
31842002-05-24 Alan Modra <amodra@bigpond.net.au>
3185
3186 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
3187
b326b2c1
VM
31882002-05-23 Vladimir Makarov <vmakarov@redhat.com>
3189
3190 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
3191 of size of unsigned.
3192
f996902d
RH
31932002-05-23 Richard Henderson <rth@redhat.com>
3194
3195 * configure.in (HAVE_AS_TLS): New test.
3196 * config.in, configure: Rebuild.
3197 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
3198 (ix86_tls_dialect_string, ix86_tls_dialect): New.
3199 (override_options): Set it.
3200 (tls_model_chars, tls_symbolic_operand): New.
3201 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
3202 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
3203 (local_exec_symbolic_operand): New.
3204 (get_pic_label_name): Merge into output_set_got.
3205 (ix86_asm_file_end): Emit pic_label_name if defined.
3206 (legitimate_constant_p, constant_address_p): New.
3207 (legitimate_pic_operand_p): New.
3208 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
3209 (legitimate_address_p): Likewise.
3210 (ix86_encode_section_info): Rename from i386_; handle tls decls.
3211 (ix86_strip_name_encoding): New.
3212 (get_thread_pointer): New.
3213 (legitimize_address): Handle tls symbols.
3214 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
3215 Remove UNSPEC_PLT.
3216 (struct machine_function): Add some_ld_name.
3217 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
3218 (print_operand) [&]: Use it. Handle UNSPEC_TP.
3219 (output_addr_const_extra): New.
3220 (maybe_get_pool_constant): New.
3221 (ix86_split_to_parts): Use it.
3222 (ix86_expand_move): Handle tls symbols.
3223 (ix86_tls_get_addr): New.
3224 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
3225 (TARGET_OPTIONS): Add tls-dialect.
3226 (CONSTANT_ADDRESS_P): Use new out-of-line function.
3227 (LEGITIMATE_CONSTANT_P): Likewise.
3228 (LEGITIMATE_PIC_OPERAND_P): Likewise.
3229 (TARGET_STRIP_NAME_ENCODING): New.
3230 (ASM_OUTPUT_LABELREF): New.
3231 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3232 (OUTPUT_ADDR_CONST_EXTRA): New.
3233 (PREDICATE_CODES): Update.
3234 (ix86_tls_dialect, ix86_tls_dialect_string): New.
3235 * config/i386/i386.md: Regroup and renumber unspec constants.
3236 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
3237 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
3238 (tls_global_dynamic, tls_local_dynamic_base): New.
3239 (tls_local_dynamic_once): New.
3240 * config/i386/i386-protos.h: Update.
3241
821e35ba
RH
32422002-05-23 Richard Henderson <rth@redhat.com>
3243
3244 * genemit.c (gen_insn): Print file:lineno comment before function.
3245 (main): likewise.
3246 * gensupport.c (struct queue_elem): Add filename member.
3247 (queue_pattern): Initialize it; update all callers.
3248 (process_include): Don't free filename.
3249 (read_md_rtx): Set read_rtx_filename.
3250
0f1ffa23 32512002-05-23 Hans Boehm <Hans_Boehm@hp.com>
821e35ba
RH
3252
3253 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
0f1ffa23 3254
8e9fadc3
RH
32552002-05-23 Richard Henderson <rth@redhat.com>
3256
3257 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
3258
244c2241
RH
32592002-05-23 Richard Henderson <rth@redhat.com>
3260
3261 * doc/extend.texi (C++98 Thread-Local Edits): Update with
3262 commentary from Mark.
3263
e0082a72
ZD
32642002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3265
3266 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
3267 Use FOR_EACH_BB macros to iterate over basic block chain.
3268 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
3269 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
3270 Likewise.
3271 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
3272 find_unreachable_blocks, create_edge_list, verify_edge_list,
3273 remove_fake_edges, add_noreturn_fake_exit_edges,
3274 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
3275 Likewise.
3276 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3277 find_sub_basic_blocks): Likewise.
3278 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
3279 Likewise.
3280 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
3281 Likewise.
3282 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
3283 Likewise.
3284 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
3285 commit_edge_insertions, commit_edge_insertions_watch_calls,
3286 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
3287 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
3288 * conflict.c (conflict_graph_compute): Likewise.
3289 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3290 df_modified_p, df_refs_unlink, df_dump): Likewise.
3291 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
3292 * final.c (compute_alignments): Likewise.
3293 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
3294 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
3295 count_or_remove_death_notes): Likewise.
3296 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
3297 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
3298 classic_gcse, compute_transp, cprop, compute_pre_data,
3299 compute_transpout, invalidate_nonnull_info,
3300 delete_null_pointer_checks_1, delete_null_pointer_checks,
3301 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
3302 compute_store_table, build_store_vectors, store_motion): Likewise.
3303 * global.c (global_conflicts, mark_elimination): Likewise.
3304 * graph.c (print_rtl_graph_with_bb): Likewise.
3305 * haifa-sched.c (sched_init): Likewise.
3306 * ifcvt.c (if_convert): Likewise.
3307 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3308 compute_available, compute_nearerout, compute_rev_insert_delete,
3309 optimize_mode_switching): Likewise.
3310 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
3311 * predict.c (estimate_probability, note_prediction_to_br_prob,
3312 propagate_freq, counts_to_freqs, expensive_function_p,
3313 estimate_bb_frequencies): Likewise.
3314 * profile.c (instrument_edges, get_exec_counts,
3315 compute_branch_probabilities, compute_checksum, branch_prob,
3316 find_spanning_tree): Likewise.
3317 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3318 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
3319 Likewise.
3320 * regclass.c (scan_one_insn, regclass): Likewise.
3321 * regmove.c (mark_flags_life_zones, regmove_optimize,
3322 record_stack_memrefs): Likewise.
3323 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
3324 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
3325 * resource.c (find_basic_block): Likewise.
3326 * sched-ebb.c (schedule_ebbs): Likewise.
3327 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
3328 find_single_block_region, find_rgns, schedule_insns)
3329 * sibcall.c (optimize_sibling_and_tail_recursive_call)
3330 * ssa-ccp.c (optimize_unexecutable_edges,
3331 ssa_ccp_df_delete_unreachable_insns): Likewise.
3332 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3333 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
3334 rename_block, convert_to_ssa, compute_conservative_reg_partition,
3335 compute_coalesced_reg_partition, rename_equivalent_regs,
3336 convert_from_ssa): Likewise.
3337 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
3338 process_for_unwind_directive): Likewise.
3339
3340 * df.c (FOR_ALL_BBS): Removed.
3341 * gcse.c (struct null_pointer_info): Type of current_block field
3342 changed.
3343 (struct reg_avail_info): Type of last_bb field changed.
3344 * config/ia64/ia64.c (block_num): Removed.
3345 (need_copy_state): Type changed.
3346 (last_block): New.
3347
17645b15
NB
33482002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3349
3350 * cppinit.c (mark_named_operators): Split out from init_builtins.
3351 (cpp_finish_options): Call it from here instead.
3352
79ed7328
JT
33532002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3354
3355 * builtin-attrs.def: Update copyright years.
3356 (ATTR_NONNULL): New attribute identifier.
3357 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
3358 attribute tree lists.
3359 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
3360 format operand.
3361 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
3362 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
3363 attribute lists. Chain the appropriate nonnull attribute.
3364 * c-format.c (check_format_arg): Remove null format string
3365 warning.
3366 * testsuite/gcc.dg/format/null-1.c: New test.
3367
7d600178
RO
33682002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3369
3370 * Makefile.in (ADAC): Define.
3371 (SYSLIBS): Define.
3372 (.SUFFIXES): Move before language makefile fragments.
3373 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
3374
5ff225fc
MM
33752002-05-23 Mark Mitchell <mark@codesourcery.com>
3376
3377 * varasm.c (make_decl_rtl): Don't allow weak variables to be
3378 placed in common.
3379
0f72964f
JH
3380Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3381
3382 * cfg.c (dump_flow_info): Print results of
3383 maybe_hot/probably_never_executed predicates.
3384 * toplev.c (open_dump_file): Print function frequency.
3385
c863f8c2
DM
33862002-05-23 David S. Miller <davem@redhat.com>
3387
3388 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
3389 regsets.
3390
b34c7881
JT
33912002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3392
3393 * c-common.c (warn_nonnull): Declare.
3394 (c_common_attribute_table): Add "nonnull" attribute.
3395 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
3396 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
3397 check_function_arguments_recurse): New functions.
3398 * c-common.h (warn_nonnull): Declare extern.
3399 (check_function_arguments, check_function_arguments_recurse): New
3400 prototypes.
3401 * c-decl.c (c_decode_option): Add -Wnonnull option.
3402 * c-format.c (set_Wformat): Set warn_nonnull if enabling
3403 format checking.
3404 (format_check_context): New structure.
3405 (check_format_info_recurse): Remove recursion and rename to...
3406 (check_format_arg): ...this. Update comment.
3407 (check_format_info): Use check_function_arguments_recurse.
3408 * c-typeck.c (build_function_call): Call check_function_arguments
3409 instead of check_function_format.
3410 * doc/extend.texi: Document "nonnull" attribute.
3411 * doc/invoke.texi: Docuemnt -Wnonnull option.
3412 * testsuite/gcc.dg/nonnull-1.c: New test.
3413 * testsuite/gcc.dg/nonnull-2.c: New test.
3414
95479831
DM
34152002-05-23 David S. Miller <davem@redhat.com>
3416
3417 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
3418 * cfgcleanup.c (cleanup_cfg): If it is set do not
3419 attempt to delete trivially dead insns.
3420 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
3421 * toplev.c (rest_of_compilation): Document non-trivial aspect
3422 the RTL before optimize_save_area_alloca is run.
3423
a97d1398
NB
34242002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3425
3426 * c-lex.c (indent_level): Remove.
3427 (cb_file_change, c_lex): Remove indent level handling.
3428 * c-lex.h (indent_level): Remove.
3429 * input.h (struct file_stack): Remove indent_level.
3430 * toplev.c (push_srcloc): Remove indent_level handling.
3431
66b408f2
JJ
34322002-05-23 Jakub Jelinek <jakub@redhat.com>
3433
3434 PR target/6753
3435 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
3436 of x in constraints for clarity.
3437 (sse_mov?fcc split): abort if op2 == op3.
3438 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
3439 sse_movsfcc_const0_4): Add earlyclobber.
3440 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
3441 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
3442 Use Y instead of x in constraints.
3443
5bf0ebab
RH
34442002-05-23 Richard Henderson <rth@redhat.com>
3445
9217ef40
RH
3446 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
3447 (C++98 Thread-Local Edits): New subsection.
3448
5bf0ebab
RH
3449 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
3450 (ix86_arch): Set type to enum processor_type.
3451
8a951190 3452 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5bf0ebab
RH
3453 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
3454
4832c9e1
JJ
34552002-05-23 Jakub Jelinek <jakub@redhat.com>
3456
3457 * configure.in: Fix as version test for binutils 2.12.1 releases
3458 (without dates).
3459 * configure: Rebuilt.
3460
c8c03509
RH
34612002-05-23 Richard Henderson <rth@redhat.com>
3462
3463 * config/i386/i386.c (get_pic_label_name): New.
3464 (load_pic_register): Remove.
3465 (output_set_got): New.
3466 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
3467 * config/i386/i386.md (UNSPEC_SET_GOT): New.
3468 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
3469 (prologue_set_got, prologue_get_pc): Remove.
3470 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
3471 (builtin_setjmp_receiver): Use gen_set_got.
3472 * config/i386/i386-protos.h: Update.
3473
d51f3632
JH
3474Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
3475
3476 * gcse.c (hash_expr): Do not use alias set for hashing.
3477
b0a93386
KB
34782002-05-22 Kevin Buettner <kevinb@redhat.com>
3479
3480 * dbxout.c (dbxout_class_name_qualifiers): New function.
3481 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
3482
bdee42b1
NB
34832002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3484
3485 * cpperror.c (_cpp_begin_message): No special casing
3486 of CPP_FATAL_LIMIT.
3487 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
3488 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
3489 * cpplib.c (do_include_common): Use DL_ERROR.
3490 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
3491 (DL_ICE): Renumber.
3492 * fix-header.c (read_scan_file): Update.
3493
0e07aff3
RH
34942002-05-22 Richard Henderson <rth@redhat.com>
3495
3496 * config/i386/i386.c (ix86_expand_call): New function, extracted
3497 from md call patterns. Add pic_offset_table_rtx to
3498 CALL_INSN_FUNCTION_USAGE when needed.
3499 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
3500 (call_value_pop, call_value, untyped_call): Likewise.
3501 (call_exp, call_value_exp): Remove.
3502 * config/i386/i386-protos.h: Update.
3503
6f001fdf
RH
35042002-05-22 Richard Henderson <rth@redhat.com>
3505
3506 * varasm.c (default_section_type_flags): Check for VAR_DECL
3507 before using DECL_THREAD_LOCAL.
3508
cbaaba19
DE
35092002-05-22 David Edelsohn <edelsohn@gnu.org>
3510
3511 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
3512 (STARTFILE_SPEC): Delete PE crt0.o.
3513 * config/rs6000/aix51.h: Same.
3514 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
3515 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
3516 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
3517 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
3518 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
3519
c711ba8e
RH
35202002-05-22 Richard Henderson <rth@redhat.com>
3521
3522 * varasm.c (default_section_type_flags): Handle tls data and
3523 default sections.
3524 (default_unique_section): Handle tls sections.
3525
343f59d9
AM
35262002-05-23 Alan Modra <amodra@bigpond.net.au>
3527
3528 * configure.in (CROSS): Define NATIVE_CROSS.
3529 * configure: Regenerate.
3530 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
3531 (startfile_prefix_spec): New var.
3532 (static_specs): Add startfile_prefix_spec.
3533 (do_spec_2): Split out from..
3534 (do_spec): ..here.
3535 (main): Process startfile_prefix_spec.
3536 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
3537 dynamic linker.
3538 (STARTFILE_PREFIX_SPEC): Define.
3539 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
c7bdf0a6 3540 absolute paths.
343f59d9 3541
df383483
KH
35422002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3543
3544 * cpperror.c: Fix formatting.
3545 * cppexp.c: Likewise.
3546 * cppfiles.c: Likewise.
3547 * cpphash.c: Likewise.
3548 * cpphash.h: Likewise.
3549 * cppinit.c: Likewise.
3550 * cpplex.c: Likewise.
3551 * cpplib.c: Likewise.
3552 * cppmacro.c: Likewise.
3553 * cppmain.c: Likewise.
3554 * cppspec.c: Likewise.
3555
2dd36f90
JJ
35562002-05-22 Jakub Jelinek <jakub@redhat.com>
3557
3558 * combine.c (force_to_mode): Use gen_int_mode.
3559 Don't clear CONST_INT bits outside of mode.
3560
8dc02d7f
RH
35612002-05-22 Richard Henderson <rth@redhat.com>
3562
3563 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
3564 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3565
45f79783
JJ
35662002-05-22 Jakub Jelinek <jakub@redhat.com>
3567
3568 PR c/6643
3569 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
3570 if DECL_SIZE_UNIT is INTEGER_CST.
3571
19f71cd7
RH
35722002-05-22 Richard Henderson <rth@redhat.com>
3573
3574 * flow.c (life_analysis): Delete broken reg_label check.
3575
d5bcfcce
RH
35762002-05-22 Richard Henderson <rth@redhat.com>
3577
3578 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
3579 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3580
985d311b 3581Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5ff94354
R
3582
3583 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
3584 (embed-bb.c): New rule.
985d311b 3585 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5ff94354
R
3586 * config/sh/embed_bb.c: Delete.
3587
985d311b
R
3588Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
3589
3590 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
3591
f6d45746
KH
35922002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3593
3594 * config/h8300/h8300.md (*andorqi3): New.
3595
e5f3b786
NB
35962002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
3597
3598 PR preprocessor/6517
3599 * Makefile.in: Update.
3600 * c-common.c (c_common_post_options): Add preprocessor
3601 errors to the error count.
3602 * c-lang.c (c_post_options): Kill.
3603 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3604 * hooks.h: Add header guards.
3605 * langhooks-def.h: Include hooks.h.
3606 (LANG_HOOKS_POST_OPTIONS): Update.
3607 * langhooks.h (struct lang_hooks): Update post_options.
3608 * toplev.c (parse_options_and_default_flags): Update.
3609objc:
3610 * objc-lang.c (objc_post_options): Kill.
3611 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3612
4c526be3
BK
36132002-05-21 Bruce Korb <bkorb@gnu.org>
3614
3615 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
021c1f34
BK
3616 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
3617 * fixinc/fixincl.x: regen.
4c526be3 3618
f87c27b4
KH
36192002-05-21 Kazu Hirata <kazu@cs.umass.edu>
3620
3621 * cfgbuild.c: Fix formatting.
3622 * cfg.c: Likewise.
3623 * cfgcleanup.c: Likewise.
3624 * cfglayout.c: Likewise.
3625 * cfgloop.c: Likewise.
3626 * cfgrtl.c: Likewise.
3627
3d78f2e9
RH
36282002-05-21 Richard Henderson <rth@redhat.com>
3629
3630 * c-common.h (enum rid): Add RID_THREAD.
3631 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
3632 (grokdeclarator): Grok __thread.
3633 * c-parse.in (reswords): Add __thread.
3634 (rid_to_yy): Add RID_THREAD.
3635
3636 * tree.h (DECL_THREAD_LOCAL): New.
3637 (struct tree_decl): Add thread_local_flag.
3638 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
3639 * tree.c (staticp): TLS variables are not static.
3640
3641 * target-def.h (TARGET_HAVE_TLS): New.
3642 * target.h (have_tls): New.
3643 * output.h (SECTION_TLS): New.
3644 * varasm.c (assemble_variable): TLS variables can't be common for now.
3645 (default_section_type_flags): Handle .tdata and .tbss.
3646 (default_elf_asm_named_section): Handle SECTION_TLS.
3647 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
3648
3649 * flags.h (flag_tls_default): Declare.
3650 * toplev.c (flag_tls_default): Define.
3651 (display_help): Display help for it.
3652 (decode_f_option): Set it.
3653
3654 * doc/extend.texi (Thread-Local): New node describing language-level
3655 thread-local storage.
3656 * doc/invoke.texi (-ftls-model): Document.
3657
3658 * fixinc/inclhack.def (thread_keyword): New.
3659 * fixinc/fixincl.x: Rebuild.
3660
a151daf0
JL
36612002-05-21 Jeffrey A Law <law@redhat.com>
3662
8a951190 3663 * optabs.c (expand_binop): For double-word integer multiplies,
c7539aa0
JL
3664 do not compute intermediate results into something that is
3665 not a register (such as a SUBREG or MEM).
3666
a151daf0
JL
3667 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
3668 (ix86_sched_reorder): Make sure to initialize scheduling
3669 data even when there's only one insn in the ready queue.
3670
96b1f73b
VM
36712002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3672
3673 * genautomata.c (reserv_sets_hash_value): Fix a typo.
3674
dceb2b75
VM
36752002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3676
3677 * genautomata.c (reserv_sets_hash_value): Define hash_value as
3678 set_el_t. Transform the hash value into unsigned.
3679 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
3680 (transform_3): Add code to process `(A,B)+(D,E)'.
3681
159d5964
NY
36822002-05-21 NIIBE Yutaka <gniibe@m17n.org>
3683
3684 * reload1.c (do_output_reload): Run delete_output_reload
3685 only if optimizing.
3686
cf5124f6
RS
36872002-05-21 Roger Sayle <roger@eyesopen.com>
3688
3689 PR middle-end/6600
3690 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
3691 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
3692 (can_store_by_pieces): ... and here to limit the largest mode used.
3693 Add a comment to document this function.
3694
380e6ade
RH
36952002-05-21 Richard Henderson <rth@redhat.com>
3696
3697 * flow.c (life_analysis): Fix test for deleted label.
3698
1f95326c
NB
36992002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
3700
3701 * doc/tm.texi: Fix typo.
3702
2a1dc0d8
ZW
37032002-05-21 Zack Weinberg <zack@codesourcery.com>
3704
3705 * c-common.c (c_common_init): Set options->unsigned_char from
3706 flag_signed_char.
3707 (cb_register_builtins): Define __STRICT_ANSI__ and
3708 __CHAR_UNSIGNED__ here...
3709 * cppinit.c (init_builtins): Not here.
3710 (cpp_create_reader): unsigned_char option defaults to 0, not
3711 !DEFAULT_SIGNED_CHAR.
3712 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
3713 and -funsigned-char.
3714
3715 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
3716 * cpphash.c (_cpp_init_hashtable): Don't set it.
3717 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
3718 directly. Clarify comment.
3719
d29146f2 37202002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2a1dc0d8 3721
f5eb2fc8
ZD
3722 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
3723 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
3724 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
3725 BASIC_BLOCK (n_basic_blocks - 1).
d29146f2 3726 * cfganal.c (can_fallthru, flow_call_edges_add,
f5eb2fc8 3727 flow_preorder_transversal_compute): Too.
d29146f2 3728 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
f5eb2fc8
ZD
3729 find_sub_basic_blocks): Too.
3730 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
d29146f2 3731 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
f5eb2fc8
ZD
3732 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
3733 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
d29146f2
ZD
3734 * combine.c (this_basic_block): Type changed to basic_block.
3735 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
3736 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
f5eb2fc8
ZD
3737 get_last_value, distribute_notes, distribute_links): Too.
3738 * final.c (compute_alignments): Too.
3739 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
3740 * function.c (thread_prologue_and_epilogue_insns): Too.
3741 * gcse.c (compute_code_hoist_vbeinout): Too.
3742 * global.c (build_insn_chain): Too.
3743 * ifcvt.c (find_if_block, find_cond_trap): Too.
3744 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
3745 * regmove.c (regmove_optimize): Too.
3746 * resource.c (find_basic_block): Too.
3747 * sched-ebb.c (schedule_ebbs): Too.
3748 * ssa-dce.c (find_control_dependence, find_pdom): Too.
d29146f2 3749
68bd6dd6
AJ
37502002-05-21 Andreas Jaeger <aj@suse.de>
3751
3752 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
3753
35a76aac
RH
37542002-05-21 Richard Henderson <rth@redhat.com>
3755
3756 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
3757 unspec names, not numbers.
3758
2870428f
JM
37592002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
3760
3761 * doc/sourcebuild.texi: Mention snapshot-README and
3762 snapshot-index.html as needing updating for new front ends.
3763
b0ad77d5
KG
37642002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3765
3766 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
3767 disabling checking, and avoid multiple evaluation of RTX.
3768
279be7c8
RE
37692002-05-21 Richard Earnshaw <rearnsha@arm.com>
3770
3771 * bitmap.c (bitmap_find_bit): Return early if we have the correct
3772 element cached.
3773
193a563a
JH
3774Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3775
3776 * profile.c (gen_edge_profiler): Set alias set before the memory is
3777 used.
3778
31825e57
DM
37792002-05-20 David S. Miller <davem@redhat.com>
3780
3781 * cselib.c (max_value_regs): New.
3782 (cselib_lookup, cselib_invalidate_regno): Initialize it when
3783 adding new entries to the REG_VALUES table and we are dealing with
3784 a hard register.
3785 (clear_table): Initialize it.
3786 (cselib_invalidate_regno): Use it to determine which hard
3787 registers to scan when mode is not VOIDmode.
3788
68bd6dd6 37892002-05-20 Duraid Madina <duraid@fl.net.au>
29d83d60
DM
3790
3791 * tradcpp.c (fixup_newlines): Use old-style function header.
3792
e0a09fda
KW
37932002-05-20 Krister Walfridsson <cato@df.lth.se>
3794
3795 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
3796
e0c13c70
L
37972002-05-20 H.J. Lu (hjl@gnu.org)
3798
3799 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
3800
3801 * config/mips/mips.h (DFMODE_NAN): Defined.
3802 (SFMODE_NAN): Likewise.
3803
4c11675d 38042002-05-20 Dale Johannesen <dalej@apple.com>
e0c13c70 3805
2a1dc0d8
ZW
3806 * combine.c (cant_combine_insn_p): Back out my
3807 previous patch.
4c11675d 3808
6a4d6760
KH
38092002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3810
3811 * params.c: Fix formatting.
3812 * params.h: Likewise.
3813 * predict.c: Likewise.
3814 * prefix.c: Likewise.
3815 * print-rtl.c: Likewise.
3816 * print-tree.c: Likewise.
3817 * profile.c: Likewise.
3818
5715ca64
L
38192002-05-20 H.J. Lu (hjl@gnu.org)
3820
3821 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
3822
00b89f01
NC
38232002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
3824
3825 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
3826 switches straight on to the assembler, do not abbreviate them.
3827 * config/arm/elf.h (ASM_SPEC): As above.
3828 * config/arm/semi.h (ASM_SPEC): As above.
3829 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
3830 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
3831 -mcpu=xscale on to the assembler by default.
3832 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
3833
1441374b
RH
38342002-05-20 Richard Henderson <rth@redhat.com>
3835
3836 * cse.c (canon_hash): Reorder do_not_record test. Always
3837 allow pic_offset_table_rtx.
3838
c0fe508e
TM
38392002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
3840
3841 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
3842 (expand_binop): Ditto (3 times).
3843
f362c762
MM
38442002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
3845
3846 * Makefile.in (distclean): Remove QMTest stuff.
3847 (QMTEST_PATH): New variable.
3848 (QMTESTFLAGS): Likewise.
3849 (QMTESTRUNFLAGS): Likewise.
3850 (QMTEST): Likewise.
3851 (QMTEST_GPP_TESTS): Likewise.
3852 (QMTEST_DIR): Likewise.
3853 (QMTEST_DIR/context): New target.
3854 (qmtest-g++): Likeise.
3855 (qmtest-gui): Likewise.
3856 (QMTEST_DIR/gpp-expected.qmr): Likewise.
3857
16861f33
AH
38582002-05-19 Aldy Hernandez <aldyh@redhat.com>
3859
2a1dc0d8
ZW
3860 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
3861 an altivec register if TARGET_ALTIVEC.
16861f33 3862
2a1dc0d8
ZW
3863 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
3864 to ALTIVEC_VECTOR_MODE.
3865 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
3866 (rs6000_va_arg): Vectors may go in registers if they are not
3867 altivec vectors.
16861f33 3868
23459e15
KH
38692002-05-19 Kazu Hirata <kazu@cs.umass.edu>
3870
3871 * protoize.c: Fix formatting.
3872
174cc7d1
RH
38732002-05-19 Richard Henderson <rth@redhat.com>
3874
3875 * gensupport.c (init_include_reader): Merge into ...
3876 (process_include): ... here. Simplify composite path creation.
3877 Plug memory leaks. Fix file/line number tracking. Do not
3878 process_define_cond_exec. Return void.
3879 (process_rtx): Don't check process_include return value.
3880
918ed612
ZD
38812002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3882
3883 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
3884 fields.
3885 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3886 traversing basic block chain.
3887 (create_basic_block_structure, create_basic_block): Declaration changed.
3888 (link_block, unlink_block): Declare.
3889 * cfg.c (entry_exit_blocks): Initialize new fields.
3890 (link_block, unlink_block): New.
3891 (expunge_block_nocompact): Unlink basic block.
3892 (dump_flow_info): Print prev_bb/next_bb fields.
3893 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
3894 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
3895 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
3896 * cfgrtl.c (create_basic_block_structure, create_basic_block,
3897 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
3898 (verify_flow_info): Check that list agrees with numbering.
3899
e0322d5c
NB
39002002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
3901
3902 * c-common.c (preprocessing_asm): New macro.
3903 * c-lex.h (builtin_define, builtin_assert): Use pfile.
3904doc:
3905 * tm.texi: Update.
3906config/alpha:
3907 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
3908 (CPP_SPEC): Simplify.
3909 (TARGET_CPU_CPP_BUILTINS): Update.
3910 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
3911 (CPP_SPEC): Simplify.
3912 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
3913 (TARGET_OS_CPP_BUILTINS): Update.
3914 * osf.h (CPP_XFLOAT_SPEC): Kill.
3915 (TARGET_OS_CPP_BUILTINS): Update.
3916 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
3917 * osf5.h (CPP_XFLOAT_SPEC): Kill.
3918 * vms.h (CPP_SUBTARGET_SPEC): Kill.
3919 (TARGET_OS_CPP_BUILTINS): Update.
3920
121f5c2c
RH
39212002-05-19 Richard Henderson <rth@redhat.com>
3922
3923 * varasm.c (default_binds_local_p): Fix typo.
3924
651c5ed9
MM
39252002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
3926
3927 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
3928 CONST_INT operand to the correct mode after adding 1 to it.
3929
bce0deb2
MM
39302002-05-19 Mark Mitchell <mark@codesourcery.com>
3931
3932 * config.gcc (powerpc-wrs-windiss*): New target.
3933
4aa74a4f
FS
39342002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3935
3936 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
3937 (ashrdi3): Use it.
3938
a15135c9
MM
39392002-05-18 Mark Mitchell <mark@codesourcery.com>
3940
3941 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
3942 alphasort.
3943 * config.in: Regenerated.
3944 * configure: Regenerated.
3945
47754fd5
RH
39462002-05-19 Richard Henderson <rth@redhat.com>
3947
3948 * target-def.h (TARGET_BINDS_LOCAL_P): New.
3949 * target.h (struct gcc_target): Move boolean fields to the end.
3950 Add binds_local_p.
3951 * varasm.c (default_binds_local_p): New.
3952 * output.h: Declare it.
3953
3954 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
3955 * config/cris/cris.c (cris_encode_section_info): Likewise.
3956 * config/i386/i386.c (i386_encode_section_info): Likewise.
3957 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
3958 * config/sh/sh.c (sh_encode_section_info): Likewise.
3959
3960 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
3961 (TARGET_BINDS_LOCAL_P): New.
3962
fc881338
RH
39632002-05-19 Richard Henderson <rth@redhat.com>
3964
3965 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
3966 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
3967 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
3968
3969 * toplev.c (display_help): Kill -a -ax help.
3970
68bd6dd6 3971 * config/1750a/1750a.h, config/alpha/alpha.h,
fc881338
RH
3972 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
3973 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
3974 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
3975 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
3976
3977 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
3978 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
3979
3980 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
3981 (ix86_output_function_block_profiler): Kill.
3982 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
3983 (m68hc11_function_block_profiler): Kill.
3984 * config/m68hc11/m68hc11-protos.h: Update.
3985 * config/m88k/m88k.c (output_block_profiler): Kill.
3986 (output_function_block_profiler): Kill.
3987 * config/m88k/m88k-protos.h: Update.
3988
772c5265
RH
39892002-05-19 Richard Henderson <rth@redhat.com>
3990
3991 * system.h (STRIP_NAME_ENCODING): Poison it.
3992 * output.h (STRIP_NAME_ENCODING): Remove.
3993 (default_strip_name_encoding): Declare.
3994 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
3995 * target.h (strip_name_encoding): New.
3996 * varasm.c (default_strip_name_encoding): New.
3997
3998 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
3999 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
4000 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
4001 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
4002 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
4003 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
4004 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
4005 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
4006 config/v850/v850.h: Use the hook, not the macro.
4007
4008 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4009 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
4010 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
4011 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
4012 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
4013 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
68bd6dd6 4014 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
772c5265
RH
4015 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
4016 config/v850/v850.c, config/v850/v850.h:
4017 Move STRIP_NAME_ENCODING to out-of-line function and add
4018 TARGET_STRIP_NAME_ENCODING.
4019
4020 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
4021 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
4022 with TARGET_STRIP_NAME_ENCODING referencing existing function;
4023 make function static.
4024
4025 * xcoffout.c: Include target.h
4026 * Makefile.in (xcoffout.o): Update.
4027
4028 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
4029 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
4030 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
4031 reloc argument unused.
4032 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
4033
4034 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
4035 STRIP_NAME_ENCODING docs.
4036
8f9eb495
AJ
40372002-05-19 Andreas Jaeger <aj@suse.de>
4038
4039 * gengenrtl.c: Add prototype for excluded_rtx.
4040
4041 * real.h: Add prototype for exact_real_truncate.
4042
fb49053f
RH
40432002-05-18 Richard Henderson <rth@redhat.com>
4044
4045 * system.h (ENCODE_SECTION_INFO): Poison it.
4046 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
4047 * target.h (encode_section_info): New.
4048 * varasm.c (make_decl_rtl, output_constant_def): Use it.
4049 * hooks.c (hook_tree_int_void): New.
4050 * hooks.h: Declare it.
4051
4052 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4053 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
4054 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
4055 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
4056 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
4057 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
4058 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4059 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
4060 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4061 config/mcore/mcore-protos.h, config/mcore/mcore.c,
4062 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
4063 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
4064 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
4065 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
4066 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
4067 referencing existing function. Make function static.
4068
4069 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8f9eb495 4070 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
fb49053f
RH
4071 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4072 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
4073 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8f9eb495 4074 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
fb49053f
RH
4075 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
4076 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
4077 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
4078 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8f9eb495 4079 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
fb49053f
RH
4080 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
4081 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
4082 Move ENCODE_SECTION_INFO to out-of-line function and add
4083 TARGET_ENCODE_SECTION_INFO.
4084
4085 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
4086 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4087
4088 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
4089 from SUBTARGET_*
4090 (switch_to_section): Replace in_rdata case with in_readonly_data.
4091
4092 * config/h8300/h8300.c (h8300_encode_label): Make static.
4093 * config/h8300/h8300-protos.h: Update.
4094
4095 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
4096 from rs6000_encode_section_info; make static.
4097 (rs6000_xcoff_encode_section_info): New.
4098
4099 * config/v850/v850.c (v850_encode_data_area): Make static.
4100 * config/v850/v850-protos.h: Update.
4101
4102 * config/vax/vax.c: Include flags.h.
4103 (vms_select_section): Fix typo.
4104
4105 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
4106 ENCODE_SECTION_INFO docs.
4107
9fe08fd0
RH
41082002-05-18 Richard Henderson <rth@redhat.com>
4109
4110 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
4111 REGISTER_TARGET_PRAGMAS.
4112 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
4113
410b770f
RH
4114 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
4115
b64a1b53
RH
41162002-05-18 Richard Henderson <rth@redhat.com>
4117
4118 * system.h (SELECT_RTX_SECTION): Poison.
4119 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
4120 * target.h (select_rtx_section): New.
4121 * varasm.c (output_constant_pool): Use it.
4122 (default_select_rtx_section, default_elf_select_rtx_section): New.
4123 * output.h: Declare them.
4124
4125 * config/darwin.h (SELECT_RTX_SECTION): Move ...
4126 * config/darwin.c (machopic_select_rtx_section): ... here.
4127 * config/darwin-protos.h: Update.
4128
4129 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
4130 * config/nextstep.c (machopic_select_rtx_section): ... here.
4131 (nextstep_select_section): Rename variable to avoid macro clash.
4132 * config/nextstep-protos.h: Update.
4133
4134 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
4135 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
4136 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8f9eb495 4137 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
b64a1b53
RH
4138 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
4139 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8f9eb495 4140 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
b64a1b53
RH
4141 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
4142 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
4143 (SELECT_RTX_SECTION): Remove.
4144
4145 * config/darwin.h, config/elfos.h, config/nextstep.h,
4146 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
4147 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
4148 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
4149 config/sparc/lynx.h, config/xtensa/xtensa.c
4150 (TARGET_ASM_SELECT_RTX_SECTION): New.
4151
4152 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
4153 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
4154 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
4155 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
4156 (ia64_aix_select_rtx_section): New.
4157 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
4158 redefining.
4159 * config/mips/mips.c (mips_select_rtx_section): Make static.
8f9eb495 4160 Support ELF SHF_MERGE features.
b64a1b53
RH
4161 * config/mips/mips-protos.h: Update.
4162 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
4163 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
4164 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
4165 make static, fall back to default_elf_select_rtx_section.
4166 * config/rs6000/rs6000-protos.h: Update.
4167 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
4168 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
4169 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
4170 * config/romp/romp.c (romp_select_rtx_section): New.
4171 * config/s390/s390.c (s390_select_rtx_section): New.
4172 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
4173 declarations before target macro definition.
4174 (xtensa_emit_call): Use static buffer.
4175 (xtensa_select_rtx_section): New.
4176 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
4177 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
4178 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
4179
4180 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
4181 SELECT_RTX_SECTION docs.
4182
4183Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5f90a099
JH
4184
4185 * i386.md (movsi/movdi): Fix template.
4186 (sse2 patterns): Set attributes consistently.
4187
4188 * i386.md (pushqi2, ashrqi_*): Fix constraint.
4189
6835a09c
TM
41902002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
4191
4192 * optabs.c (complex_part_zero_p): New.
4193 * (expand_cmplxdiv_straight): Use it.
4194 * (expand_cmplxdiv_wide): Ditto.
4195 * (expand_binop): Ditto.
4196
d48bc59a
RH
41972002-05-18 Richard Henderson <rth@redhat.com>
4198
4199 * final.c (HAVE_READONLY_DATA_SECTION): New.
4200 (shorten_branches): Use it instead of ifdefs.
4201 * varasm.c (enum in_section): Add in_readonly_data.
4202 (text_section, data_section): Tidy.
4203 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
4204
4205 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
4206 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
4207 (READONLY_DATA_SECTION): Don't undef.
4208
4209 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
4210 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
4211 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
4212
4213 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
4214 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
4215 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
4216 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
4217
4218 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
4219 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
4220 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4221 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
4222 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
4223 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
4224 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
4225 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
4226 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
4227
4228 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
4229 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
4230 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
4231 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
4232 config/pa/pa64-hpux.h, config/sparc/litecoff.h
4233 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4234
4235 * config/elfos.h, config/netware.h, config/svr3.h,
4236 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4237 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4238 config/h8300/h8300.h, config/i386/i386-interix.h,
4239 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4240 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
4241
4242 * config/elfos.h, config/netware.h, config/svr3.h,
4243 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4244 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
4245 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4246 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
4247
4248 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
4249 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
4250 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
4251 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
4252 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
4253 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
4254 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
4255 config/rs6000/sysv4.h, config/v850/v850.h
4256 (EXTRA_SECTIONS): Remove in_const/in_rdata.
4257 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
4258
4259 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
4260 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
4261 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
4262 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
4263 * config/alpha/alpha.c (alpha_start_function): Likewise.
4264 (alpha_write_linkage): Likewise.
4265 * config/m32r/m32r.c (m32r_select_section): Likewise.
4266 * config/m88k/m88k.c (m88k_select_section): Likewise.
4267 * config/mips/mips.c (mips_select_rtx_section): Likewise.
4268 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
4269 (rs6000_elf_select_section): Likewise.
4270 * config/v850/v850.c (v850_select_section): Likewise.
4271
4272 * config/1750a/1750a.h, config/i860/sysv3.h
4273 (READONLY_DATA_SECTION_ASM_OP): New.
4274 READONLY_DATA_SECTION_ASM_OP.
4275 * config/i386/interix.c, config/i386/winnt.c
4276 (i386_pe_unique_section): Always use .rdata prefix.
4277 * config/pa/som.h (readonly_data): Always switch to read-only section.
4278 (READONLY_DATA_SECTION): Predicate on flag_pic.
4279 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
4280 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
4281 (READONLY_DATA_SECTION): Update.
4282
e964a556
JT
42832002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
4284
4285 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8f9eb495 4286 is used without -Wformat.
e964a556
JT
4287 * c-common.h (warn_format_zero_length): Declare extern.
4288 * c-decl.c (warn_options): Add "format-zero-length".
4289 * c-format.c (warn_format_zero_length): Declare.
4290 (set_Wformat): Set warn_format_zero_length for -Wformat.
4291 (check_format_info): Only warn about zero-length formats if
4292 warn_format_zero_length is true. Include the format type
4293 name in the warning message.
4294 * doc/invoke.texi: Document -Wformat-zero-length.
4295 * testsuite/gcc.dg/format/zero-length-1.c: New test.
4296
d92b4486
KH
42972002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4298
4299 * timevar.c: Fix formatting.
4300 * tlink.c: Likewise.
4301 * toplev.c: Likewise.
4302 * tree-dump.c: Likewise.
4303 * tree-inline.c: Likewise.
4304
43612ffb
NB
43052002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4306
4307 * cppinit.c (cpp_post_options): If preprocessed, turn off
4308 traditional. If traditional, turn off column numbers.
4309 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
4310 * cpptrad.c (handle_newline): Update line_base.
4311 (skip_comment): Handle -Wcomment.
4312
f24a153a
ZW
43132002-05-17 Zack Weinberg <zack@codesourcery.com>
4314
4315 * cppinit.c (struct builtin): Remove unused fields.
4316 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
4317 (operator_array): New - was second half of builtin_array.
4318 (init_builtins): Simplify loop over builtin_array/operator_array.
4319
12403335
NB
43202002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4321
4322 * defaults.h (UNIQUE_SECTION): Remove.
4323 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
4324
1f8c3c5b
RH
43252002-05-17 Richard Henderson <rth@redhat.com>
4326
4327 * expr.c (init_expr_once): Don't use start/end_sequence.
4328 Use rtx_alloc instead of emit_insn.
4329 * toplev.c (lang_dependent_init): Run init_expr_once here ...
4330 (lang_independent_init): ... not here.
4331
4664f4c4
JT
43322002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4333
4334 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
4335
93febe68
MM
43362002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
4337
4338 * config/avr/avr.c (avr_regs_to_save): New function. Also check
4339 for fixed registers, possibly used for global register variables.
4340 (initial_elimination_offset, avr_output_function_prologue,
4341 avr_output_function_epilogue): Move common code to avr_regs_to_save.
4342
004cb263
NB
43432002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4344
4345 * Makefile.in: Update for cpptrad.c.
4346 * cpphash.h (struct cpp_buffer): New members for buffer
4347 overlays.
4348 (struct cpp_reader): New members for traditional output.
4349 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
4350 * cppinit.c (cpp_create_reader): Set trad_line.
4351 (cpp_destroy): Free trad_out_base if used.
4352 (cpp_read_main_file): Overlay an empty buffer if traditional.
4353 (cpp_finish_options): Don't do builtins.
4354 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
4355 (cpp_handle_option): Handle it.
4356 * cpplex.c (continue_after_nul): New.
4357 (_cpp_lex_direct): Use handle_nul.
4358 * cpplib.h (struct cpp_options): New traditional option.
4359 * cpptrad.c: New file.
4360
bdcae02b
NB
43612002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4362
4363 * c-common.c (c_common_init_options): Use C89 for Objective-C,
4364 and set the options flag.
4365 * cppinit.c (lang_flags): Remove objc.
4366 (lang_defaults): Remove OBJC and OBJCXX.
4367 (set_lang): Update.
4368 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
4369 (cpp_handle_option): Remove -+ and -lang-objc++.
4370 For ObjC, just set a flag.
4371 (print_help): Update.
4372 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
4373
0fca60ab
RO
43742002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4375
4376 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
4377 bootstrap with -mips3.
4378
dd3f0101
KH
43792002-05-17 Kazu Hirata <kazu@cs.umass.edu>
4380
4381 * final.c: Fix formatting.
4382 * fix-header.c: Likewise.
4383 * flow.c: Likewise.
4384 * fold-const.c: Likewise.
4385 * function.c: Likewise.
4386
5ca9299f
DM
43872002-05-17 David S. Miller <davem@redhat.com>
4388
4389 PR c/6689, PR optimization/6615
4390 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
4391 and make it a pointer to rtx. Update comments.
4392 (update_equiv_regs): When scanning for equivalences, record
4393 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
4394 it while making the equiv replacements.
4395
508bc172
RO
43962002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4397
4398 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
4399
5cd983a6
KK
44002002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
4401
4402 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
4403 when encoding visibility into SYMBOL_REF_FLAG.
4404
ce0f3925
RS
44052002-05-17 Richard Sandiford <rsandifo@redhat.com>
4406
4407 * expr.c (force_operand): Fix reversed move.
4408
06809951
GP
44092002-05-17 Kurt Wall <kwall@kurtwerks.com>
4410
4411 * doc/install.texi (Testing): Mention two common DejaGnu warnings
4412 that can be ignored.
4413
44142002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4415
4416 * doc/install.texi (Final install): Recommend to install into a
4417 "clean" target directory.
4418
1d5d7a21
RH
44192002-05-17 Richard Henderson <rth@redhat.com>
4420
4421 * config/ia64/ia64.md: Use braced strings instead of quoted strings
4422 for code blocks. Tidy whitespace.
4423
ae46c4e0
RH
44242002-05-17 Richard Henderson <rth@redhat.com>
4425
4426 * hooks.c (hook_tree_bool_false): New.
4427 * hooks.h: Declare it.
4428 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
4429 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
4430 * target.h (select_section, unique_section): New.
4431 (in_small_data_p): New.
4432 * varasm.c (resolve_unique_section): Use hooks instead of macros.
4433 (variable_section, output_constant_def_contents): Likewise.
4434 (default_select_section, default_unique_section): New.
4435 (categorize_decl_for_section, default_elf_select_section): New.
4436 * output.h: Declare them.
4437
4438 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
4439 (TARGET_ASM_SELECT_SECTION): New.
4440 (SELECT_SECTION): Move ...
4441 * config/darwin.c (machopic_select_section): ... here.
4442 * config/darwin-protos.h: Update.
4443
4444 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
4445 (SELECT_SECTION): Move ...
4446 * config/nextstep.c (nextstep_select_section): ... here.
4447 * config/nextstep-protos.h: Update.
4448
4449 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
4450 (TARGET_ASM_SELECT_SECTION): New.
4451 * config/svr3.h (SELECT_SECTION): Remove.
4452
4453 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
4454 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
4455 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
4456 (alpha_encode_section_info): Use it.
4457 * config/alpha/alpha-protos.h: Update.
4458 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
4459 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4460 (TARGET_ASM_SELECT_SECTION): New.
4461 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
4462
4463 * config/arm/pe.h (UNIQUE_SECTION): Remove.
4464 (TARGET_ASM_UNIQUE_SECTION): New.
4465
4466 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
4467 (avr_unique_section): Rename from unique_section; make static.
4468 * config/avr/avr-protos.h: Update.
4469 * config/avr/avr.h (UNIQUE_SECTION): Remove.
4470
4471 * config/c4x/c4x.h (SELECT_SECTION): Remove.
4472
4473 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
4474 (TARGET_ASM_UNIQUE_SECTION): New.
4475 * config/i386/i386-interix.h: Likewise.
4476 * config/i386/win32.h: Likewise.
4477 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
4478 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
4479 * config/i386/sco5.h (SELECT_SECTION): Remove.
4480 (TARGET_ASM_SELECT_SECTION): New.
4481 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
4482
4483 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
4484 instead of SELECT_SECTION.
4485 * config/m68k/dpx2.h: Likewise.
4486 * config/rs6000/lynx.h: Likewise.
4487
4488 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4489 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4490 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
4491 (ia64_in_small_data_p): New.
4492 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
4493 (ia64_aix_select_section, ia64_aix_unique_section): New.
4494 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
4495 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4496
4497 * config/m32r/m32r.h (SELECT_SECTION): Remove.
4498 (TARGET_ASM_SELECT_SECTION): New.
4499 * config/m32r/m32r.c (m32r_select_section): Take align argument.
4500 * config/m32r/m32r-protos.h: Update.
4501
4502 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
4503 (SELECT_SECTION): Move ...
4504 * config/m88k/m88k.c (m88k_select_section): ... here.
4505
4506 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
4507 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
4508 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
4509 (mcore_unique_section): Make static.
4510 * config/mcore/mcore-protos.h: Update.
4511
4512 * config/mips/elf.h (UNIQUE_SECTION): Remove.
4513 (TARGET_ASM_UNIQUE_SECTION): New.
4514 * config/mips/elf64.h: Likewise.
4515 * config/mips/iris6gld.h: Likewise.
4516 * config/mips/linux.h: Likewise.
4517 * config/mips/mips-protos.h: Update.
4518 * config/mips/mips.c (mips_select_section): Add align argument.
4519 * config/mips/mips.h (SELECT_SECTION): Remove.
4520 (TARGET_ASM_SELECT_SECTION): New.
4521
4522 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4523 * config/mmix/mmix.c (mmix_select_section): Remove.
4524 (mmix_unique_section): Remove.
4525 * config/mmix/mmix-protos.h: Update.
4526
4527 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
4528 (SELECT_SECTION): Move ...
4529 * config/pa/pa.c (pa_select_section): ... here.
4530 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
4531
4532 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
4533 from rs6000_select_section and make static.
4534 (rs6000_elf_unique_section): Similarly.
4535 (rs6000_xcoff_select_section): From xcoff.h.
4536 (rs6000_xcoff_unique_section): Likewise.
4537 * config/rs6000/rs6000-protos.h: Update.
4538 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4539 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4540 * config/rs6000/xcoff.h: Likewise.
4541
4542 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
4543 (SELECT_SECTION): Move ...
4544 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
4545
4546 * config/v850/v850.h (SELECT_SECTION): Move ...
4547 * config/v850/v850.c (v850_select_section): ... here.
4548 (TARGET_ASM_SELECT_SECTION): New.
4549
4550 * config/vax/vms.h (SELECT_SECTION): Move ...
4551 * config/vax/vax.c (vms_select_section): ... here.
4552 (TARGET_ASM_SELECT_SECTION): New.
4553
4554 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
4555 for the target hooks.
4556
eaeb23a7
NC
45572002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
4558
4559 * config/arm/arm.c (emit_multi_reg_push): Do not set
4560 RTX_FRAME_RELATED_P on the SEQUENCE.
4561
a00fe19f
RH
45622002-05-16 Richard Henderson <rth@redhat.com>
4563
4564 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
4565 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
4566
5ccff482
RH
45672002-05-16 Richard Henderson <rth@redhat.com>
4568
4569 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
4570
068d7739
RH
4571 * config/ia64/ia64.c (saveable_obstack): Do not declare.
4572
0b17ab2f
RH
45732002-05-16 Richard Henderson <rth@redhat.com>
4574
4575 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
4576 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
4577 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
4578 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
4579 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
4580 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
4581 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
4582 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
4583 Revert "Basic block renumbering removal", and two followup patches.
4584
8ae86b3c
JT
45852002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4586
4587 * lcm.c (optimize_mode_switching): Revert previous change.
4588
4e9f27af
ZD
45892002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4590
4591 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
4592 with only extant block numbers.
4593
3cdc1dbc
JT
45942002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4595
4596 * lcm.c (optimize_mode_switching): Fix typo.
4597
fbfb3b09
ZD
45982002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4599
4600 * flow.c (calculate_global_regs_live): Queue blocks in program order.
4601
b4b0fb02
RO
46022002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4603
4604 * doc/install.texi (Configuration): Document PWDCMD.
4605
63b827c5
DJ
46062002-05-16 Dale Johannesen <dalej@apple.com>
4607
4608 * combine.c (cant_combine_insn_p): Reenable combinations
4609 involving hard regs unless CLASS_LIKELY_SPILLED_P.
4610
748d29c1
NB
46112002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4612
4613 * c-common.c (cb_register_builtins): Handle more built-ins
4614 here rather than in gcc.c specs.
4615 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
4616 (cpp_options): Pass -O flags even when only preprocessing.
4617 * toplev.c (set_fast_math_flags): New prototype.
4618 (fast_math_flags_set_p): New.
4619 (set_no_fast_math_flags): Remove.
4620 (decode_f_option): Update.
4621 * toplev.h (set_fast_math_flags): Update.
4622 (fast_math_flags_set_p): New.
4623 (set_no_fast_math_flags): Remove.
4624config:
4625 * c4x/c4x.c (c4x_override_options): Update.
4626
5279d739
ZW
46272002-05-16 Zack Weinberg <zack@codesourcery.com>
4628
4629 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
4630 Default-define here.
4631 (builtin_define_with_value): Can now wrap the expansion in
4632 quotation marks if such is wanted.
a00fe19f 4633 (cb_register_builtins): Update calls to builtin_define_with_value.
5279d739
ZW
4634 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
4635 here.
4636 (c_common_init): Set options->stdc_0_in_system_headers.
4637 * c-lex.h: Update prototype of builtin_define_with_value.
4638 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
4639 and REGISTER_PREFIX.
4640
4641 * cppinit.c (VERS, ULP, C, X): Kill.
4642 (builtin_array): Remove entries for __VERSION__,
4643 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
4644 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
4645 a constant.
4646 (init_builtins): Kill off a bunch of now-dead code.
4647 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
4648 -fno-leading-underscore.
4649 (cpp_handle_option): Remove code to set user_label_prefix.
4650 (cpp_post_options): Likewise.
4651
4652 * cpplib.h (struct cpp_options): Remove user_label_prefix.
4653 (stdc_0_in_system_headers): New.
4654 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
4655 stdc_0_in_system_headers) too to decide the value of __STDC__.
4656
4657 * tradcpp.c (user_label_prefix): Kill.
a00fe19f 4658 (main): Remove code handling -f(no-)leading-underscore.
5279d739
ZW
4659 (initialize_builtins): Don't define __REGISTER_PREFIX__
4660 or __USER_LABEL_PREFIX__.
4661 (install_value): Wrap compound statement in dummy loop so the
4662 macro works properly in an if statement.
4663
4664
62e6ca55
JJ
46652002-05-16 Janis Johnson <janis187@us.ibm.com>
4666
4667 * loop.h (struct loop_info): Add member has_prefetch.
4668 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
4669 (prescan_loop): Initialize has_prefetch.
4670 (struct prefetch_info): Change prefetch_in_loop and
4671 prefetch_before_loop from bit fields to ints.
4672 (emit_prefetch_instructions): Several small fixes.
4673 (check_dbra_loop): Don't reverse loop that uses prefetch.
4674
1e6347d8
RO
46752002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4676
4677 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
4678 * configure.in: Likewise.
4679 * fixinc/check.tpl: Likewise.
4680 * fixinc/fixinc.dgux: Likewise.
4681 * fixinc/fixinc.svr4: Likewise.
4682 * fixinc/fixinc.winnt: Likewise.
4683 * fixinc/fixincl.sh: Likewise.
4684 * fixproto: Likewise.
4685 * configure: Regenerate.
4686
355e4ec4
ZD
46872002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4688
4689 Basic block renumbering removal:
4690 * basic_block.h (struct basic_block_def): Renamed index to sindex,
4691 added prev_bb and next_bb fields.
4692 (n_basic_blocks): Renamed to num_basic_blocks.
4693 (last_basic_block): New, index of last basic block.
4694 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4695 traversing basic block chain.
4696 (BLOCK_NUM): index -> sindex.
4697 (create_basic_block_structure, create_basic_block): Declaration changed.
4698 (debug_num2bb): Declare.
4699 (expunge_block_nocompact): Declaration removed.
4700 (link_block, unlink_block, compact_blocks): Declare.
4701 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
4702 * cfg.c (entry_exit_blocks): Initialize new fields.
4703 (clear_edges, alloc_block, expunge_block, cached_make_edge,
4704 redirect_edge_pred, dump_flow_info, dump_edge_info,
4705 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
4706 free_aux_for_edges): Modified.
4707 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
4708 (expunge_block_nocompact): Removed.
4709 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
4710 find_unreachable_blocks, create_edge_list, print_edge_list,
4711 verify_edge_list, flow_edge_list_print, remove_fake_successors,
4712 remove_fake_edges, flow_reverse_top_sort_order_compute,
4713 flow_depth_first_order_compute, flow_preorder_transversal_compute,
4714 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
4715 flow_dfs_compute_reverse_execute): Modified.
4716 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
4717 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
4718 Modified.
4719 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
4720 merge_blocks_move_predecessor_nojumps,
4721 merge_blocks_move_successor_nojumps, merge_blocks,
4722 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
4723 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
4724 * cfglayout.c (skip_insns_after_block, label_for_bb,
4725 record_effective_endpoints, scope_to_insns_finalize,
4726 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
4727 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
4728 cfg_layout_duplicate_bb): Modified.
4729 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
4730 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4731 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
4732 flow_loops_find, flow_loop_outside_edge_p): Modified.
4733 * cfgrtl.c (create_basic_block_structure, create_basic_block,
4734 flow_delete_block, compute_bb_for_insn, split_block,
4735 try_redirect_by_replacing_jump, redirect_edge_and_branch,
4736 force_nonfallthru_and_redirect, tidy_fallthru_edge,
4737 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
4738 commit_edge_insertions, commit_edge_insertions_watch_calls,
4739 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
4740 purge_all_dead_edges): Modified.
4741 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
4742 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4743 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
4744 Modified.
4745 * conflict.c (conflict_graph_compute): Modified.
4746 * df.c (FOR_ALL_BBS): Removed.
4747 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4748 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
4749 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
4750 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
4751 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
4752 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
4753 * final.c (compute_alignments, final_scan_insn): Modified.
4754 * flow.c (verify_local_live_at_start, update_life_info,
4755 update_life_info_in_dirty_blocks, free_basic_block_vars,
4756 delete_noop_moves, calculate_global_regs_live,
4757 initialize_uninitialized_subregs, allocate_bb_life_data,
4758 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
4759 mark_used_reg, count_or_remove_death_notes): Modified.
4760 * function.c (thread_prologue_and_epilogue_insns): Modified.
4761 * gcse.c (struct null_pointer_info): Change typo of current_block
4762 to basic_block.
4763 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
4764 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
4765 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
4766 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
4767 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
4768 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
4769 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
4770 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
4771 pre_delete, one_pre_gcse_pass, compute_transpout,
4772 invalidate_nonnull_info, delete_null_pointer_checks_1,
4773 free_code_hoist_mem, compute_code_hoist_vbeinout,
4774 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
4775 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
4776 compute_store_table, build_store_vectors, insert_insn_start_bb,
4777 insert_store, replace_store_insn, free_store_memory, store_motion):
4778 Modified.
4779 * global.c (global_alloc, global_conflicts, mark_elimination,
4780 build_insn_chain): Modified.
4781 * graph.c (print_rtl_graph_with_bb): Modified.
4782 * haifa-sched.c (sched_init): Modified.
4783 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4784 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
4785 if_convert): Modified.
4786 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
4787 compute_insert_delete, pre_edge_lcm, compute_available,
4788 compute_farthest, compute_nearerout, compute_rev_insert_delete,
4789 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
4790 Modified.
4791 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
4792 * loop.c (loop_dump_aux): Modified.
4793 * predict.c (combine_predictions_for_insn, estimate_probability,
4794 last_basic_block_p, process_note_prediction, process_note_predictions,
4795 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
4796 expensive_function_p, estimate_bb_frequencies,
4797 compute_function_frequency): Modified.
4798 * print-rtl.c (print_rtx): Modified.
4799 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
4800 get_exec_counts, compute_branch_probabilities, compute_checksum,
4801 branch_prob, find_spanning_tree): Modified.
4802 * recog.c (split_all_insns, peephole2_optimize): Modified.
4803 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
4804 convert_regs_1, convert_regs_2, convert_regs): Modified.
4805 * regclass.c (scan_one_insn, regclass): Modified.
4806 * regmove.c (mark_flags_life_zones, regmove_optimize,
4807 combine_stack_adjustments): Modified.
4808 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
4809 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
4810 * reorg.c (dbr_schedule): Modified.
4811 * resource.c (find_basic_block, init_resource_info): Modified.
4812 * sbitmap.c (sbitmap_intersection_of_succs,
4813 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
4814 sbitmap_union_of_preds): Modified.
4815 * sched-deps.c (init_dependency_caches): Modified.
4816 * sched-ebb.c (schedule_ebbs): Modified.
4817 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
4818 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
4819 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
4820 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
4821 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
4822 ssa_const_prop): Modified.
4823 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
4824 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
4825 * ssa.c (remove_phi_alternative, find_evaluations,
4826 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
4827 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
4828 make_regs_equivalent_over_bad_edges,
4829 make_equivalent_phi_alternatives_equival,
4830 compute_conservative_reg_partition,
4831 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
4832 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
4833 Modified.
4834
5a566bed
MM
48352002-05-16 Mark Mitchell <mark@codesourcery.com>
4836
4837 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
4838
48f6efae
NC
48392002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
4840
4841 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
4842 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4843 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
4844 calling CONSTANT_POOL_ADDRESS_P.
4845 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
4846 to decide whether to define __arm__ or __thumb.
355e4ec4 4847 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
48f6efae
NC
4848 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4849
b166fadd
NB
48502002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4851
4852 * config/arc/arc.h (CPP_PREDEFINES): Remove.
4853 (CPP_SPEC): Update.
4854 (TARGET_CPU_CPP_BUILTINS): New.
4855
601328bb
NB
48562002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4857
4858 * cpphash.h (cpp_macro): Move here, and make expansion a union.
4859 * cppmacro.c (cpp_macro): Remove.
4860 (enter_macro_context, replace_args, warn_of_redefinition,
4861 _cpp_create_definition, cpp_macro_definition): Update.
4862
ff48be5c
JM
48632002-05-16 Jason Merrill <jason@redhat.com>
4864
4865 * config/mips/mips.c (mips_output_external): Don't do sdata
4866 optimization for a variable with DECL_COMDAT set.
4867
805c42ba
AH
48682002-05-15 Aldy Hernandez <aldyh@redhat.com>
4869
355e4ec4
ZD
4870 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
4871 Cleanups for accepting modifiers on pointers.
4872 Fix predicate typos.
4873 Allow long pointers as well as int pointers.
805c42ba 4874
34fb9ba5
RH
48752002-05-15 Richard Henderson <rth@redhat.com>
4876
4877 * varasm.c (merge_weak): Remove special case for extern and common.
4878
62e118f5
MH
48792002-05-15 Matt Hiller <hiller@redhat.com>
4880
4881 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
355e4ec4 4882 XFAILing.
62e118f5
MH
4883 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
4884 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
4885 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
4886 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
4887 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
4888 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
4889
fefac463
AH
48902002-05-15 Aldy Hernandez <aldyh@redhat.com>
4891
355e4ec4 4892 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
fefac463 4893
5f004351
AH
48942002-05-15 Aldy Hernandez <aldyh@redhat.com>
4895
355e4ec4
ZD
4896 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
4897 ("altivec_mfvscr"): Read from VSCR.
4898
4899 Add vscr sets for the following insns: altivec_vctuxs,
4900 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
4901 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
4902 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
4903 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
4904 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
4905 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
4906 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
4907 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
4908 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
4909 altivec_vsum2sws, altivec_vsumsws.
4910
4911 * config/rs6000/rs6000.h: Add VSCR fixed register.
4912 (CALL_REALLY_USED_REGISTERS): Add vscr.
4913 (CALL_USED_REGISTERS): Same.
4914 (FIXED_REGISTERS): Same.
4915 (REG_ALLOC_ORDER): Same.
4916 (reg_class): Add VSCR_REGS.
4917 (REG_CLASS_NAMES): Same.
4918 (REG_CLASS_CONTENTS): Same.
4919 (VSCR_REGNO): New.
4920 (REGISTER_NAMES): Add vscr.
4921 (DEBUG_REGISTER_NAMES): Same.
4922 (ADDITIONAL_REGISTER_NAMES): Same.
4923 (FIRST_PSEUDO_REGISTER): Increment.
4924 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5f004351 4925
033afd11
RH
49262002-05-15 Jakub Jelinek <jakub@redhat.com>
4927
4928 * fold-const.c (fold): Fix a typo.
4929
49302002-05-15 Eric Botcazou <ebotcazou@multimania.com>
4931
4932 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
4933 comparison against the highest or lowest integer value before
4934 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
4935 transformation and that of an unsigned comparison against 0
4936 right after.
4937
14285ace
RH
49382002-05-15 Richard Henderson <rth@redhat.com>
4939
4940 * varasm.c (merge_weak): Error for any weakening after definition.
4941 Adjust weakening after use warning to catch more cases.
4942 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
4943 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
4944
194734e9
JH
4945Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
4946
4947 * invoke.texi (-malign-double): Re-add lost warning.
4948
4949 * i386-protos.h (x86_output_mi_thunk): Declare.
4950 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
4951 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
4952
4953 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
4954 when flag_asynchronous_unwind_tables is set.
4955
4956 * flags.h (flag_reorder_functions): Declare.
4957 * function.c (prepare_function_start): Initialize frequnecy.
14285ace 4958 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
194734e9
JH
4959 * Makefile.in (predict.o): Add dependency on target.h and params.h
4960 * defaults.h (HOT_TEXT_SECTION_NAME,
4961 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
4962 * predict.c (choose_function_section): New function.
4963 (estimate_bb_frequencies): Use it.
4964 * toplev.c (flag_reorder_functions): New global variable.
4965 (lang_independent_options): New.
4966 (parse_options_and_default_flags): Set.
4967 * varasm.c (assemble_start_function): Bypass functdion alignment
4968 for never executed functions.
4969 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
4970 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
4971 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
4972 Document.
4973
4974 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
4975
4976 * predict.c: Inlude profile.h
4977 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
4978 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
4979 Use the information about maximal counter in the program.
4980
4981 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
4982
4983 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
4984 probably_never_executed_bb_p): New functions.
4985 * cfgcleanup.c (outgoing_edges_match): Use them.
4986 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
4987 (maybe_hot_bb_p, probably_cold_bb_p,
4988 probably_never_executed_bb_p): New functions.
4989
4990 * function.h (function): Add new field function_frequency.
4991 * predict.c (compute_function_frequency): New function.
4992 (estimate_probability): Call it.
4993
61ad9a34
JJ
49942002-03-09 Jakub Jelinek <jakub@redhat.com>
4995
4996 PR optimization/5172, optimization/5200
4997 * gcse.c (gcse_main): Disable store_motion.
4998
a11eba95
ZW
49992002-05-14 Zack Weinberg <zack@codesourcery.com>
5000
5001 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
5002 (c_common_nodes_and_builtins): Use it.
5003 (builtin_define_with_value): New function.
5004 (cb_register_builtins): Define __SIZE_TYPE__,
5005 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
5006 using builtin_define_with_value. Use consistent notation when
5007 defining __GXX_WEAK__.
5008 (WCHAR_TYPE_SIZE): Don't redefine.
5009 (combine_strings): Don't use WCHAR_TYPE_SIZE.
5010
5011 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
5012 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
5013 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
5014 * tradcpp.c (initialize_builtins): Likewise.
5015 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
5016
5017 * c-lex.h (builtin_define_with_value): Prototype.
5018 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
5019 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
5020 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
5021
5022 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5023 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
5024 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
5025 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
5026 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
5027 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
5028 config/sparc/sol2-bi.h, config/sparc/sparc.h:
5029 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
5030 to __SIZE_TYPE__ etc from all spec strings. When this makes
5031 extra specs empty, delete them.
5032
1c31ecf6
JDA
50332002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
5034
5035 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
5036 for PA8000 or generating dwarf2 call frame information.
5037 (output_call): Remove DO_FRAME_NOTES check from return pointer
5038 optimization.
5039 (following_call): Return 0 when scheduling for PA8000 or generating
5040 dwarf2 call frame information. Revise comment.
5041
ac9cfada
NB
50422002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5043
5044config/alpha:
5045 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
5046 and __IEEE_FP_INEXACT as appropriate.
5047 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
5048 (CPP_SPEC): Remove ieee defines.
5049 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
5050
9b690711
RH
50512002-05-14 Richard Henderson <rth@redhat.com>
5052
5053 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
5054 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
5055
e6471be6
NB
50562002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5057
e6471be6
NB
5058 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
5059 (CPP_SPEC): Update.
5060 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
5061 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
5062 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
5063 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
5064 (EXTRA_SPECS): Update.
5065 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5066 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
5067 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
5068 define TARGET_OS_CPP_BUILTINS if necessary.
5069
e5f5feea
NB
50702002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5071
5072 * gcc.c (cpp_options): Must pass -m* and -f* options
5073 to the front end even when only preprocessing.
5074 (cc1_options): Remove redundant -lang-c.
5075 * tradcpp.c (main): Ignore -m options.
5076objc:
5077 * lang-specs.h: Similarly.
5078
317638a8
VM
50792002-05-14 Vladimir Makarov <vmakarov@redhat.com>
5080
5081 * genautomata.c (transform_3): Add code for transformation
5082 `(A,B,...)+C -> A+C,B,...'.
5083
4d604303
JH
5084Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
5085
5086 * final.c (end_final): Do not output profile_arcs constructor, when
5087 no functions are instrumented.
5088
b18b06ed
JH
5089Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
5090
5091 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
5092
a12f97f0
GP
50932002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5094
5095 * doc/install.texi: Remove special markup originally required for
5096 HTML generation with texi2html.
5097
c1ae3eb4
AS
50982002-05-14 Andreas Schwab <schwab@suse.de>
5099
5100 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
5101 SELECT_SECTION.
5102 (UNIQUE_SECTION): Define to get small data correctly.
1b18fc2c
AS
5103
5104 * varasm.c (resolve_unique_section): Add third parameter
5105 flag_function_or_data_sections and use it instead of
5106 flag_function_sections.
5107 (assemble_start_function): Pass flag_function_sections.
5108 (asm_emit_uninitialised): Pass flag_data_sections.
5109 (assemble_variable): Likewise.
5110
8ee41eaf
RH
51112002-05-14 Richard Henderson <rth@redhat.com>
5112
5113 * config/i386/i386.md: Use define_constants for unspec numbers.
5114 * config/i386/i386.c: Likewise.
5115
e6471be6
NB
51162002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5117
5118 * doc/contrib.texi: Update my entry.
5119
c297b764
MM
51202002-05-13 Mark Mitchell <mark@codesourcery.com>
5121
5122 * fixinc/inclhack.def (winidss_valist): Limit applicability.
5123 * fixinc/fixincl.x: Regenerated.
5124 * fixinc/tests/base/math.h: Update.
5125 * fixinc/tests/base/testing.h: Likewise.
5126
0b42c8f8
ZW
51272002-05-13 Zack Weinberg <zack@codesourcery.com>
5128
5129 * genattr.c (gen_attr): Don't emit a comma after the last
5130 enumerator.
5131
546c093e
RH
51322002-05-13 Richard Henderson <rth@redhat.com>
5133
5134 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
5135 by non-local gotos.
5136 * recog.c (peephole2_optimize): Likewise.
5137
85be8c2d
AP
51382002-05-13 Andris Pavenis <pavenis@lanet.lv>
5139
5140 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
5141 input to O_BINARY.
5142
765b8f90
JL
51432002-05-13 Jeffrey A Law (law@redhat.com)
5144
fe4b3c79
JL
5145 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
5146 Update prototype and callers.
5147 (propagate_one_insn): Stack pointer adjustments kill MEMs on
5148 the mem_set_list which reference the stack pointer, as do
5149 calls to constant functions as they may clobber outgoing
5150 argument space.
5151
16133d00
JL
5152 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
5153
765b8f90
JL
5154 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5155 (ia32_multipass_dfa_lookahead): New function.
5156
63826d5b
NB
51572002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5158
5159 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
5160 (translate_options): Remove 'V'.
5161 (process_command): Similarly.
5162doc:
5163 * invoke.texi: Remove documentation of 'V'.
5164
dcb41ced
UW
51652002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5166
5167 * config/s390/linux.h: Revert 2002-04-22 changes.
5168
8dfea428
SM
51692002-05-13 Scott Marks <SMarks@mobile-mind.com>
5170
5171 * config/fr30/fr30.md: Only allow splits of immediate loads
5172 if the destination is a register.
5173
12a41c22
NB
51742002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5175
5176 * Makefile.in (c-common.o, cppinit.o): Update.
5177 * c-common.c: Include except.h.
5178 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
5179 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
5180 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
5181 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
5182 CPP_PREDEFINES): Handle here.
5183config:
5184 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
5185 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
5186 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
5187 TARGET_OS_CPP_BUILTINS.
5188 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
5189 (CPP_SPEC, EXTRA_SPECS): Update.
5190 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
5191 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
5192 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
5193 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
5194 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
5195doc:
5196 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
5197 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
5198
5692c7bc
ZW
51992002-05-12 Zack Weinberg <zack@codesourcery.com>
5200
5201 * emit-rtl.c (global_rtl): Update comment.
5202 (const_double_htab, const_double_htab_hash,
5203 const_double_htab_hash, lookup_const_double): New.
5204 (const_int_htab_hash, const_int_htab_eq): Remove const
5205 qualifiers, which cause tons of warnings with RTL checking on.
5206 (gen_rtx_CONST_DOUBLE): Deleted.
5207 (const_double_from_real_value): New function - bears some
5208 resemblance to the former immed_real_const_1.
5209 (immed_double_const): Moved here from varasm.c and
5210 simplified.
5211 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
5212 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
5213 (gen_rtx): Use immed_double_const.
5214 (init_emit_once): Initialize the const_double_htab. Use
5215 REAL_VALUE_FROM_INT where possible. Can now use
5216 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
5217 * varasm.c (struct varasm_status): Remove x_const_double_chain.
5218 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
5219 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
5220 (init_varasm_status, mark_varasm_status): Don't touch
5221 x_const_double_chain.
5222
5223 * output.h: Delete prototype for clear_const_double_mem.
5224 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
5225 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
5226 const_double_from_real_value, not immed_real_const_1, and use
5227 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
5228 CONST_DOUBLE_ATOF.
5229 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
5230 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
5231 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
5232 (gen_rtx_REG): Second arg is unsigned.
5233
5234 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
5235 (excluded_rtx): New, return true for CONST_DOUBLE.
5236 (genmacro): Write nothing for excluded codes.
5237 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
5238 * expr.c (expand_expr): Likewise.
5239 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
5240 CONST_DOUBLE_CHAIN.
5241 * toplev.c (rest_of_compilation): Don't call
5242 clear_const_double_mem.
5243
5244 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
5245 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
5246 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
5247 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
5248 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
5249 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
5250 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
5251 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
5252
31397a7b
KG
52532002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5254
5255 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
5256
1b70d38a
TT
52572002-05-12 Tom Tromey <tromey@redhat.com>
5258
5259 * tree.h (copy_node): Don't mention TREE_PERMANENT.
5260
9a5834ae
ZW
52612002-05-12 Zack Weinberg <zack@codesourcery.com>
5262
5263 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
5264 (scan_comma_elt): New function. Accepts whitespace in comma lists.
5265 * gensupport.h: Prototype new routines.
5266 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
5267 use of printf.
5268 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
5269 (next_comma_elt): Use scan_comma_elt.
5270
5271 * config/i386/i386.md: Use new attribute notation to break up
5272 long lines in define_attr forms.
5273
51286de6
RH
52742002-05-12 Richard Henderson <rth@redhat.com>
5275
5276 * expr.c (compress_float_constant): New.
5277 (emit_move_insn): Use it.
5278 (float_extend_from_mem): New.
5279 (init_expr_once): Initialize it.
5280 * real.c (exact_real_truncate): New.
5281
5282 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
5283 dropped into memory; penalize for size.
5284 (RTX_COSTS): FLOAT_EXTEND is free.
5285 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
5286 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
5287
6412341e
RH
52882002-05-12 Richard Henderson <rth@redhat.com>
5289
5290 * profile.h (profile_info): Add missing extern to declaration.
5291 * profile.c (profile_info): Define it.
5292
12877f09
JDA
52932002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5294
5295 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
5296 used for DImode and TImode.
5297
387f9e32
NB
52982002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
5299
5300 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
5301 fake a newline.
5302
e1a0f69c
ZW
53032002-05-11 Zack Weinberg <zack@codesourcery.com>
5304
5305 * config/rs6000/rs6000.c (rs6000_default_long_calls,
5306 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
5307 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
5308 (rs6000_override_options): Handle -m(no-)longcall.
5309 (init_cumulative_args, output_mi_thunk): Check for both
5310 longcall and shortcall attributes on the function.
5311 (rs6000_attribute_table): Add "shortcall".
5312 (rs6000_handle_longcall_attribute): Update comment.
5313 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
5314 altivec_expand_ternop_builtin): Add default clauses to switches
5315 to silence warnings.
5316
5317 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
5318 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
5319 (TARGET_OPTIONS): Add longcall and no-longcall.
5320
5321 * config/rs6000/rs6000.md (call_nonlocal_sysv,
5322 call_value_nonlocal_sysv): Split by alternatives. One pair
5323 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
5324 the call cookie. The other pair accepts only LR/CTR and has
5325 no restriction.
5326
5327 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
5328 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
5329 tmake_file.
5330 * config/rs6000/rs6000-c.c: New file.
5331 * config/rs6000/t-rs6000-c-rule: New file.
5332 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
5333 Prototype rs6000_pragma_longcall.
5334
5335 * doc/extend.texi: Document shortcall attribute.
5336 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
5337
9c64026d
JDA
53382002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5339
5340 * reorg.c (dbr_schedule): Remove unnecessary test.
5341
6c81a490
JH
5342Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5343
5344 * i386.md (testsi to testqi spliters): New.
5345
5346 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
5347
5348 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
5349
5350 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
5351
5352 * basic-block.h: New flag EDGE_CAN_FALLTHRU
5353 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
5354 that can be made fallthru.
5355
5356 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
5357
5358 * cfglayout.c (cleanup_unconditional_jumps): New static function.
5359 (cfg_layout_initialize): Use it.
4c476cf3 5360
e4447d94
MM
53612002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
5362
5363 * config/avr/avr.c (avr_mcu_types): Update supported devices.
5364 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5365 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5366
3a538a66
KH
53672002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5368
5369 * dbxout.c: Fix formatting.
5370 * dependence.c: Likewise.
5371 * df.c: Likewise.
5372 * diagnostic.c: Likewise.
5373 * doloop.c: Likewise.
5374 * dominance.c: Likewise.
5375 * doschk.c: Likewise.
5376 * dwarf2asm.c: Likewise.
5377 * dwarf2out.c: Likewise.
5378 * dwarfout.c: Likewise.
5379
2292e8fc
RH
53802002-05-10 Richard Henderson <rth@redhat.com>
5381
5382 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
5383 Convert integers constants as needed. Replace "nwords" field with
5384 "sizeof_bb".
5385 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
5386 * function.h: Fix typo in comment.
5387 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
5388
dbfb1116
RS
53892002-05-10 Roger Sayle <roger@eyesopen.com>
5390
5391 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
5392 into the equivalent (signed char)c > 0.
5393
79a497cd
JJ
53942002-05-10 Janis Johnson <janis187@us.ibm.com>
5395
5396 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
5397 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
5398 (struct prefetch_info): Fix spelling of member bytes_accessed.
5399 (emit_prefetch_instructions): Make dump messages more regular;
5400 restructure code to add more dump messages; use new macros for
5401 heuristics. (There are no code generation changes in any of this).
5402
6c45cb0d
DM
54032002-05-10 David S. Miller <davem@redhat.com>
5404
7440af14
DM
5405 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
5406 (struct rtx_def): Update unchanging flag comment.
5407 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
5408 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
5409 to be handled to INSN too.
5410 (dbr_schedule): Likewise.
5411 * resource.c (next_insn_no_annul): Likewise.
5412
6c45cb0d
DM
5413 * cse.c (rtx_cost): Remove multiplication by power of 2 special
5414 casing.
5415
29f21e4f
GP
54162002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5417
5418 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
5419 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
5420 (possibly) work around broken /bin/sh.
5421
e4ba88da
RO
54222002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5423
5424 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
5425 . as N64/N32 libgcc_s.so subdirs.
5426
4f4778ee
DM
54272002-05-10 David S. Miller <davem@redhat.com>
5428
5429 * config/sparc/sparc.md: Use define_constants for unspec numbers.
cf40ea15
DM
5430
5431 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
5432 more accurately.
5433 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
5434 comment.
5435 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
5436 * doc/rtl.texi: Document these macros more accurately.
5437 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
5438 JUMP_INSNs and CALL_INSNs.
5439 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
5440 or INSN_FROM_TARGET_P if the code is appropriate.
5441
1a499b92
MM
54422002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
5443
5444 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
5445 before using SYMBOL_REF_FLAG (addr).
5446
5447 * config/avr/avr-protos.h (avr_io_address_p): Declare.
5448 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
5449 Make non-static. Update all callers.
5450 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
5451 New insns to clear/set/test a single bit in I/O address space.
5452
65212b66
KG
54532002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5454
5455 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
5456
3df89291
NB
54572002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5458
5459 * Makefile.in: Update.
5460 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
5461 builtin_define_std): New.
5462 (c_common_init): Register CPP builtins callback.
5463 * c-common.h (flag_iso, flag_undef): New.
5464 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
5465 * c-lex.c: Don't include target.h.
5466 (cb_register_builtins): Move to c-common.c.
5467 (init_c_lex): Don't register hook here.
5468 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
5469 (cpp_define, cpp_assert): Remove.
5470 * gcc.c (cc1_options): Pass -undef to front end.
5471 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
5472 (TARGET_INITIALIZER): Update.
5473 * target.h (struct cpp_reader): Don't predeclare.
5474 (struct gcc_target): Remove cpp builtin hook.
5475 * tree.c (default_register_cpp_builtins): Remove.
5476doc:
5477 * tm.texi: Update.
5478
32fa4565
NB
54792002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5480
5481 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
5482
23357c55
RO
54832002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5484
5485 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
5486 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
5487
5aa26af0
JJ
54882002-05-09 Jakub Jelinek <jakub@redhat.com>
5489
5490 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
5491 * config/sparc/libgcc-sparc-glibc.ver: New file.
5492 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5493 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
5494
2937267b
JJ
54952002-05-09 Jakub Jelinek <jakub@redhat.com>
5496
5497 PR target/6429
5498 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
5499 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
5500 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
5501 base multilibs.
5502 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
5503 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5504 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5505 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5506
086c0f96
RH
55072002-05-09 Richard Henderson <rth@redhat.com>
5508
5509 * config/ia64/ia64.md: Use define_constants for unspec numbers.
5510 * config/ia64/ia64.c: Likewise.
5511
a8b4881f
RS
55122002-05-09 Richard Sandiford <rsandifo@redhat.com>
5513
5514 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
5515 (save_restore_insns): Likewise.
5516 (mips_expand_prologue, mips_expand_epilogue): Update callers.
5517 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
5518
243e5500 5519Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
890d52e8 5520
af2728a4
JL
5521 * athlon.md, k6.md, pentium.md, ppro.md): New files.
5522 * i386.md: Move scheduling information into new files.
5523
890d52e8
JL
5524 * i386.md (type attribute): Add "rotate" for rotate insns.
5525 (rotate insns): Set type to "rotate".
5526 (various attributes and function units): Treat rotate like shift.
5527 (pent_pair attribute): Only rotates by one bit position are
5528 pairable.
5529 (sbb insns): Explicitly set pent_pair attribute on a couple
5530 that were missing it.
5531
f78ec36a
R
5532Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
5533
5534 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
5535 make sure that buffer starts on odd word address.
5536 (sh_va_arg): Skip odd fp registers when reading a double precision
5537 value.
5538
ff431459
NB
55392002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5540
5541 * tree.h (preserve_data, object_permanent_p, type_precision):
5542 Remove.
5543
c3bf3e6e
NB
55442002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5545
5546 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
5547 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
5548doc:
5549 * cpp.texi: Update for removal of obsolete features.
5550
02263a8a
JH
5551Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
5552 Jeffrey A Law (law@redhat.com)
5553
5554 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
5555 the DFA interface for Pentium processors.
5556 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
5557 (attr_pent_pair, ix86_pent_find_pair): Remove.
5558 (ix86_sched_reorder_pentium): Remove.
5559 (ix86_sched_reorder): Remove reordering for Pentium.
5560 * i386.md (Pentium scheduling): Rewrite using DFA description.
5561
3e638a90
JH
5562Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
5563
5564 * cfganal.c (can_fallthru): Fix fast path.
5565 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
5566 with edges to the next block.
5567
b7c9bf28
JH
5568Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
5569 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
5570
5571 * final.c (end_final): Use C trees to output data structures for profiling.
5572
5573 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5692c7bc
ZW
5574 (profile.o): New dependency profile.h
5575 (final.o): New dependency profile.h
5576 * profile.h: New file. New global structure profile_info.
5577 * final.h (count_edges_instrumented_now): Declare.
5578 (current_function_cfg_checksum): Declare.
5579 (function_list): New structure.
5580 (functions_head, functions_tail): New static variables.
5581 (end_final): Emits more data, removed some -ax stuff.
5582 (final): Stores function names and chcksums.
5583 * gcov-io.h (__write_gcov_string): New function.
5584 (__read_gcov_string): New function.
5585 * gcov.c (read_profile): New function.
5586 (create_program_flow_graph): Uses read_profile instead of reading
b7c9bf28 5587 da_file.
5692c7bc
ZW
5588 (read_files): Removed da_file checking, it's done by read_profile now.
5589 * libgcc2.c (bb_function_info): New structure.
5590 (bb): New field in structure, removed some -ax stuff.
5591 (__bb_exit_func): Changed structure of da_file.
5592 * profile.c (count_edges_instrumented_now): New global variable.
5593 (current_function_cfg_checksum): New global variable.
5594 (max_counter_in_program): New global variable.
5595 (get_exec_counts): New function.
5596 (compute_checksum): New function.
5597 (instrument_edges): Sets count_edges_instrumented_now.
5598 (compute_branch_probabilities): Uses get_exec_counts instead of
b7c9bf28 5599 reading da_file.
5692c7bc
ZW
5600 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
5601 (init_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 5602 now.
5692c7bc 5603 (end_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 5604 now.
5692c7bc 5605 * gcov.texi: Updated information about gcov file format.
b7c9bf28 5606
786de7eb
KH
56072002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5608
5609 * sbitmap.c: Fix formatting.
5610 * scan.c: Likewise.
5611 * scan-decls.c: Likewise.
5612 * sched-deps.c: Likewise.
5613 * sched-ebb.c: Likewise.
5614 * sched-rgn.c: Likewise.
5615 * sched-vis.c: Likewise.
5616 * sdbout.c: Likewise.
5617 * sibcall.c: Likewise.
5618 * simplify-rtx.c: Likewise.
5619 * ssa.c: Likewise.
5620 * ssa-ccp.c: Likewise.
5621 * ssa-dce.c: Likewise.
5622 * stmt.c: Likewise.
5623 * stor-layout.c: Likewise.
5624 * stringpool.c: Likewise.
5625
b7764693
DM
56262002-05-09 David S. Miller <davem@redhat.com>
5627
5628 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
5629
4e7d5d27
DM
56302002-05-07 David S. Miller <davem@redhat.com>
5631
5632 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
5633 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
5634 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
5635 library implementation clobbers the output before the inputs
5636 are fully consumed, use stack temporary for the output.
5637
f979570e
JT
56382002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
5639
5640 * config/netbsd.h (CPP_SPEC): Remove.
5641 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
5642 * config/i386/netbsd.h (CPP_SPEC): Define.
5643 * config/ns32k/netbsd.h (CPP_SPEC): Define.
5644 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
5645 * config/sparc/netbsd.h (CPP_SPEC): Define.
5646 * config/vax/netbsd.h (CPP_SPEC): Define.
5647
a6a2274a
KH
56482002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5649
5650 * read-rtl.c: Fix formatting.
5651 * real.c: Likewise.
5652 * recog.c: Likewise.
5653 * regclass.c: Likewise.
5654 * regmove.c: Likewise.
5655 * reg-stack.c: Likewise.
5656 * reload1.c: Likewise.
5657 * reload.c: Likewise.
5658 * resource.c: Likewise.
5659 * rtlanal.c: Likewise.
5660 * rtl.c: Likewise.
5661 * rtl-error.c: Likewise.
5662
461b48d5
JDA
56632002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5664
5665 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
5666 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
5667
95d075ff
BS
56682002-05-08 Bernd Schmidt <bernds@redhat.com>
5669
5670 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
5671 use __SSE2__ macro instead.
5672 * config/i386/xmmintrin.h: Likewise.
5673
2d4cc6a7
JJ
56742002-05-08 Janis Johnson <janis187@us.ibm.com>
5675
5676 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
5677 and use it in all invocations of these macros. Clean up comments.
5678 * rtl.c (rtl_check_failed_flag): Add an argument for the name
5679 of the flag access macro whose check failed.
5680 * doc/rtl.texi (Flags): Document additional flag uses.
5681
3f8ffc7c
RS
56822002-05-08 Robert Spier <rspier@pobox.com>
5683 Neil Booth <neil@daikokuya.demon.co.uk>
5684
5685 PR preprocessor/6521
5686 * cppfiles.c (handle_missing_header): Don't do anything
5687 different for <> includes.
5688doc:
5689 * cppopts.texi: Update documentation for -MG.
5690
b9e2d17b
NB
56912002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
5692
5693 * cpplex.c (cpp_interpret_charconst): Truncate as well as
5694 sign-extend.
5695doc:
5696 * cpp.texi: Clarify multichar charconst valuation.
5697
8d8269fa
MM
56982002-05-08 Mark Mitchell <mark@codesourcery.com>
5699
5700 * doc/invoke.texi: Document -mwindiss option.
5701
29b91443
JM
57022002-05-08 Jason Merrill <jason@redhat.com>
5703
5704 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
5705
5706 * dwarf2out.c (gen_type_die): Abort on broken recursion.
5707
5708 PR c++/6381
5709 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
5710 REAL_CST.
5711
6c76b950
NC
57122002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
5713
5714 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
5715 little-endian multilibs to override arm/thumb multilibs.
a5c76ee6 5716 Do not build hardware floating point multilibs, nor apcs-26
6c76b950
NC
5717 multilibs for the Thumb.
5718
f90bf7ca
MM
57192002-05-08 Mark Mitchell <mark@codesourcery.com>
5720
5721 PR c/6569.
5722 * varasm.c (mark_weak): New function.
5723 (merge_weak): Use it. Do not call declare_weak.
5724 (declare_weak): Use merge_weak.
5725
1e150f2c
JH
5726Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5727
5728 * cse.c (dead_libcall_p): Update counts.
5729 (delete_trivially_dead_insns): Update call of dead_libcall_p.
5730
969d70ca
JH
5731Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5732
5733 * cfglayout.c (function_tail_eff_head): Rename to ...
5734 (function_footer): ... this one.
5735 (unlink_insn_chain): New functions.
5736 (label_for_bb): Only call block_label and emit debug message.
5737 (record_effective_endpoints): Actually unlink the headers and footers.
5738 (fixup_reorder_cahin): Re-insert the unlinked sequences.
5739 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
5740 * cfglayout.h (struct reorder_block_def): New fields footer/header;
5741 remove eff_head/eff_end.
5742 * rtl.h (set_first_insn): Declare.
5743 * emit-rtl.c (set_first_insn): New function.
5744
5745 * cfglayout.c (fixup_reorder_chain): Dump duplicated
5746 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5747 cfg_layout_duplicate_bb): New global function.
5748 (duplicate_insn_chain): New static function.
5749 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5750 cfg_layout_duplicate_bb): Declare.
5751 (struct reorder_block_def): Add "original" field.
5752 * emit-rtl.c (emit_copy_of_insn_after): New function.
5753 * rtl.h (emit_copy_of_insn_after): Declare.
5754
5755 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
5756 (fixup_reorder_chain): properly handle edges to exit block.
5757
5758Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5759 Jan Hubicka <jh@suse.cz>
5760
5761 * basic-block.h (note_prediction_to_br_prob): declare.
5762 * c-semantics.c: Inlucde predit.h
5763 (expand_stmt): predict GOTO_STMT as not taken.
5764 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
5765 (cleanup_cfg): Do not free tail_recursion_list.
5766 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
5767 (flow_delete_block): Kill predictions past end of basic block.
5768 * output.h (delete_unreachable_blocks): Declare.
5769 * predict.c (predicted_by_p, process_note_predictions,
5770 process_note_prediction, last_block_p): New function.
5771 (estimate_probability): Bypass loop on PRED_CONTINUE;
5772 do not handle noreturn heuristics; kill PRED_RETURN; add
5773 PRED_EARLY_RETURN.
5774 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
5775 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
5776 * predict.h (IS_TAKEN): New constant.
5777 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
5778 * rtl.c (NOTE_INSN_PREDICTION): New.
5779 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
5780 New macro.
5781 (insn_note): add NOTE_INSN_PREDICTION.
5782 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
5783 CFG; free tail_recursion_label_list.
5784 * stmt.c: Include predict.h;
5785 (return_prediction): New.
5786 (expand_value_return): Use it.
5787 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
5788
41f8d041
RS
57892002-05-08 Richard Sandiford <rsandifo@redhat.com>
5790
5791 * config/mips/mips.md: Name the unspecs with define_constant.
5792 (*HILO_delay): Rename to 'hilo_delay' (no star).
5793 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
5794 (reload_outdi, reload_outsi): Likewise.
5795
9cabb1d8
KH
57962002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5797
5798 * toplev.c: Fix formatting.
5799
4c76f856
JJ
58002002-05-07 Janis Johnson <janis187@us.ibm.com>
5801
5802 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
5803 * configure.in (ac_rtlflag_checking): New.
5804 * doc/install.texi (--enable-checking): Document RTL flag checking.
5805
44a147ad
NB
58062002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
5807
5808 * c-common.c (c_common_init): Set options->unsigned_wchar.
5809 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
5810 group target dependencies.
5811 (init_builtins, cpp_handle_option): Update.
5812 * cpplex.c (cpp_interpret_charconst): Update.
5813 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
5814 signed_char to unsigned_char, group target dependencies.
5815 * defaults.h (WCHAR_UNSIGNED): Remove.
5816 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
5817config:
5818 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
5819 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
5820 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
5821 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
5822 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
5823doc:
5824 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
5825
cace4f93
MM
58262002-05-07 Mark Mitchell <mark@codesourcery.com>
5827
5828 * fixinc/inclhack.def (windiss_math1): New fix.
5829 (windiss_math2): Likewise.
5830 (windiss_valist): Likewise.
5831 * fixinc/fixincl.x: Regenerated.
5832
e2ff6cee
AJ
58332002-05-07 Andreas Jaeger <aj@suse.de>
5834
5835 * genautomata.c (output_internal_min_issue_delay_func): Add
5836 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
5837 (output_internal_trans_func): Likewise.
5838
bdad4be5
JL
5839Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
5840
5841 * pa.c (hppa_profile_hook): Use force_reg to get the address
5842 of the profile hook into an appropriate pseudo register.
5843
a1ffecd9
MM
58442002-05-07 Mark Mitchell <mark@codesourcery.com>
5845
5846 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
5847 (LINK_START_SPEC): Handle it.
5848 (LINK_OS_SPEC): Likewise.
5849 (CPP_SPEC): Likewise.
5850 (STARTFILE_SPEC): Likewise.
5851 (LIB_SPEC): Likewise.
5852 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
5853 all platforms.
5854 (CRTSAVRES_DEFAULT_SPEC): New macro.
5855 (LIB_WINDISS_SPEC): New macro.
5856 (CPP_OS_WINDISS_SPEC): Likewise.
5857 (STARTFILE_WINDISS_SPEC): Likewise.
5858 (ENDFILE_WINDISS_SPEC): Likewise.
5859 (LINK_START_WINDISS_SPEC): Likewise.
5860 (LINK_OS_WINDISS_SPEC): Likewise.
5861 * config/rs6000/windiss.h: New file.
e2ff6cee 5862
df966bff
AH
58632002-05-07 Aldy Hernandez <aldyh@redhat.com>
5864
a5c76ee6 5865 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
df966bff 5866
db84f1bd
DM
58672002-05-06 David S. Miller <davem@redhat.com>
5868
5869 * config/sparc/sparc.md (shift insns): Do not mask off
5870 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
5871 take care of it.
5872
818c0c94
RH
58732002-05-06 Richard Henderson <rth@redhat.com>
5874
5875 PR c++/6212
5876 * expr.c (highest_pow2_factor_for_type): New.
5877 (expand_assignment): Use it.
5878
61e0b50f
AH
58792002-05-06 Aldy Hernandez <aldyh@redhat.com>
5880
818c0c94
RH
5881 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
5882 unspec_volatile.
5883 ("altivec_mfvscr"): Same.
61e0b50f 5884
5a63e069
JJ
58852002-05-06 Janis Johnson <janis187@us.ibm.com>
5886
5887 * rtl.h (struct rtx_def): Update comments.
5888 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
5889 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
5890 RTL_FLAG_CHECK macros with list of expected RTL codes.
5891 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
5892 (rtl_check_failed_flag): New.
5893 * reload1.c (reload): Use REG macro before changing rtx to MEM.
5894 (reload_cse_noop_set_p): Check rtx code before using access macro.
5895 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
5896 before using access macro.
5897
4afe3952
JJ
58982002-05-06 Janis Johnson <janis187@us.ibm.com>
5899
5900 * doc/rtl.texi (Flags): Update to reflect current usage.
5901
1f77b5da
RS
59022002-05-06 Roger Sayle <roger@eyesopen.com>
5903
5904 PR opt/3995
5905 * fold-const.c (sign_bit_p): New function.
5906 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
818c0c94 5907 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1f77b5da
RS
5908 Reapply fold when converting (A & C) == C into (A & C) != 0.
5909 (fold_binary_op_with_conditional_arg): Fix typo in comment.
5910
a5a49440
NB
59112002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
5912
5913 * c-common.c (warn_multichar): New.
5914 (c_common_init): Set CPP's warn_multichar.
5915 * c-common.h (warn_multichar): New.
5916 * c-decl.c (warn_multichar): Remove.
5917 * c-lex.c (lex_charconst): Update.
5918 * c-tree.h (warn_multichar): Remove.
5919 * cppexp.c (eval_token): Sign-extend charconst value.
5920 * cppinit.c (cpp_create_reader): Set warn_multichar.
5921 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
5922 each character. Update prototype. Sign-extend the result.
5923 * cpplib.h: Fix conditions.
5924 (struct cpp_options): Add new warning flag.
5925 (cpp_interpret_charconst): Update prototype.
5926doc:
5927 * cpp.texi: Update documentation.
5928
83e0be55
VM
59292002-05-06 Vladimir Makarov <vmakarov@redhat.com>
5930
5931 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
5932 Fix typo in usage of allof instead of unit.
5933
688ec718
RH
59342002-05-06 Richard Henderson <rth@redhat.com>
5935
5936 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
5937 and any jump or call for IN.
5938
f6536266
BS
59392002-05-06 Bernd Schmidt <bernds@redhat.com>
5940
e2ff6cee 5941 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
f6536266
BS
5942 -msse2.
5943 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
e2ff6cee 5944
0316d49b
RS
59452002-05-06 Roger Sayle <roger@eyesopen.com>
5946
5947 * fold-const.c (lshift-double): Cast the high word to an unsigned
5948 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
5949 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
5950 avoid compiler warning. (fold): Remove redundant code from
5951 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
5952
5d50fab3
JL
59532002-05-06 Jeff Law <law@redhat.com>
5954
5955 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
5956 * pa.c (pa_adjust_cost): Remove all true dependency cost
5957 adjustments. Also remove support for non-DFA scheduling.
5958 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
5959 to adjust true dependency costs. Update various comments.
5960 (7100lc, 7200, 7300 scheduling): Simplify by combining the
5961 FP ALU & MPY units into a single unit.
5962
a17a104c
CM
59632002-05-06 Catherine Moore <clm@redhat.com>
5964
5965 * config/v850/v850.c (compute_register_save_size): Make sure
818c0c94 5966 to count all of the registers that will be saved.
a17a104c 5967
7799175f
JH
5968Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5969
5970 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
5971
0ac941a0
DM
59722002-05-06 David S. Miller <davem@redhat.com>
5973
5974 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
5975 allow result to overlap input operands in memory.
5976
95ff5d3f
NB
59772002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
5978
5979doc:
5980 * cpp.texi: Update multichar charconst docs.
5981
639e8b0c
NB
59822002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
5983
5984 * cpplex.c (cpp_interpret_charconst): Sign-extend each
5985 character. Don't ignore excess characters. Treat
5986 multicharacter character constants as signed.
5987 (cpp_parse_escape): Clarify diagnostic.
5988
84ea5bc1
JJ
59892002-05-05 Jakub Jelinek <jakub@redhat.com>
5990
5991 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
5992 use add instead of shift.
5993 (ashldi3_sp64): Likewise.
5994 (ashlsi3_const1, ashldi3_const1): Remove.
5995 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
5996 * config/sparc/sparc.c (const1_operand): New.
5997
40cd22f2
JT
59982002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
5999
6000 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
6001
cac01076
JJ
60022002-05-05 Jakub Jelinek <jakub@redhat.com>
6003
6004 PR target/6561
6005 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
6006
98791e3a
RH
60072002-05-05 Richard Henderson <rth@redhat.com>
6008
6009 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
6010 memory latency adjustments.
6011 (alpha_variable_issue): Remove.
6012 (alpha_use_dfa_pipeline_interface): New.
6013 (alpha_multipass_dfa_lookahead): New.
6014 * config/alpha/alpha.md: Remove define_function_unit scheduling;
6015 include new dfa scheduling.
6016 (attr type): Add none.
6017 (blockage): Use it.
6018 * config/alpha/ev4.md: New.
6019 * config/alpha/ev5.md: New.
6020 * config/alpha/ev6.md: New.
6021
309527ce
DM
60222002-05-05 David S. Miller <davem@redhat.com>
6023
6024 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
6025
68252e27
KH
60262002-05-05 Kazu Hirata <kazu@cs.umass.edu>
6027
6028 * cse.c: Fix formatting.
6029 * emit-rtl.c: Likewise.
6030
30cc9d00
VM
60312002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6032
6033 * genautomata.c (initiate_states): Add additional guard to
6034 initialize `units_array'.
6035
deb09eff
VM
60362002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6037
6038 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
6039 process_unit_to_form_the_same_automaton_unit_lists,
6040 form_the_same_automaton_unit_lists
6041 check_unit_distributions_to_automata): New prototypes and
6042 functions.
6043 (check_automata): Rename it into `check_automata_insn_issues'.
6044 (unit_decl): New fields `the_same_automaton_unit' and
6045 `the_same_automaton_message_reported_p'.
6046 (unit_decl_t): New typedef.
6047 (the_same_automaton_lists): New gloval variable.
6048 (unit_regexp, unit_set_el, units_array, units_cmp,
6049 output_get_cpu_unit_code_func): Use the typedef.
6050 (evaluate_max_reserv_cycles): Increment
6051 `description->max_insn_reserv_cycles'.
6052 (initiate_states): Don't increment `max_cycles_num'.
6053 (transform_insn_regexps): Move code around transformation of
6054 regexps from `generate'.
6055 (generate): Remove call of `transform_insn_regexps'.
6056 (expand_automata): Call `transform_insn_regexps' and
6057 `check_unit_distributions_to_automata'. Check errors before
6058 `generate'.
6059
6060 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
6061 automaton `ultrasparc3_1'.
e2ff6cee 6062
2443d4e1
NB
60632002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
6064
6065 * c-common.c (c_common_init): Set up CPP arithmetic.
6066 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
6067 something reasonable for the host.
6068 (sanity_checks): Add checks.
6069 (cpp_read_main_file): Call sanity_checks() from here...
6070 (cpp_post_options): ... not here.
6071 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
6072 * cpplib.h (struct cpp_options): New member int_precision.
6073
791a949f
FS
60742002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6075
6076 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
6077
091fb516
DM
60782002-05-04 David S. Miller <davem@redhat.com>
6079
f60ebeb7
DM
6080 * config/sparc/linux.h, config/sparc/linux64.h
6081 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
6082
214c6394
DM
6083 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
6084 more RTX codes.
6085 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
6086
091fb516
DM
6087 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
6088 of SETs.
6089
f2fdc802
TJ
60902002-05-05 Tim Josling <tej@melbpc.org.au>
6091
e2ff6cee 6092 * treelang; New directory for new sample language treelang.
f2fdc802 6093
3d90d290
NB
60942002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6095
6096 * Makefile.in (c-lex.o): Update.
6097 * c-lex.c: Include target.h.
6098 (cb_register_builtins): New.
6099 (init_c_lex): Set builtins callback.
6100 * c-lex.h (cpp_define, cpp_assert): New prototypes.
6101 * cppinit.c (init_builtins): Use callback, including for
6102 GXX_WEAK.
6103 * cpplib.h (struct cpp_callbacks): New member.
6104 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
6105 (TARGET_INITIALIZER): Update.
6106 * target.h (struct gcc_target): New hook.
6107 * tree.c (default_register_cpp_builtins): New.
6108 * tree.h (default_register_cpp_builtins): New.
6109doc:
6110 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
6111
625458d0
NB
61122002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6113
6114 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
6115 (cpp_post_options): Move sanity checks to...
6116 (sanity_checks): New.
6117 * cpplex.c (maybe_read_ucs): Fix prototype.
6118 (parse_string, cpp_parse_escape): Cast for %c format specifier.
6119 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
6120 if necessary.
6121
916b60b7
BS
61222002-05-04 Bernd Schmidt <bernds@redhat.com>
6123
6124 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
6125 builtins. Use V2DI patterns instead of TI for logical operations.
6126 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
6127 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
6128 (ix86_expand_builtins): Change the pattern used for movntdq.
6129 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
6130 sse2_nandv2di3): New patterns.
6131 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
6132 on operands.
6133 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
6134 (cvtdq2pd): Correct mode on operand 1.
6135 (sse2_umulsidi3): Describe without unspec.
6136 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
6137 machine modes.
6138 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
6139 (ashlv2di3): Likewise, from sse2_ashlv2di3.
6140 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
6141 ashlv4si3, ashlv2di3): Use SImode for shift count.
6142 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
6143 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
6144 New patterns.
6145 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
6146 New typedefs.
6147 (__m128i, __m128d): New macros.
6148 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
6149 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
6150 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
6151 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
6152 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
e2ff6cee 6153 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
916b60b7
BS
6154 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
6155 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
e2ff6cee 6156 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
916b60b7
BS
6157 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
6158 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
6159 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
6160 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
6161 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
6162 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
6163 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
6164 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
6165 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
6166 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
6167 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
6168 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
6169 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6170 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
6171 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6172 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
6173 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
6174 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
6175 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
6176 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
6177 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
6178 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
6179 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6180 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
6181 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
6182 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
6183 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
6184 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
6185 functions.
e2ff6cee 6186 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
916b60b7
BS
6187 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
6188
c26fbbca
KH
61892002-05-04 Kazu Hirata <kazu@cs.umass.edu>
6190
6191 * dwarf2out.c: Fix formatting.
6192 * varasm.c: Likewise.
6193
0387639b
DE
61942002-05-04 David Edelsohn <edelsohn@gnu.org>
6195
6196 PR c/6543
6197 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
6198 clobber and use result as temporary value.
6199
8a28dbcc
JH
6200Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6201
6202 * expr.c (force_operand): Use expand_simple_* to handle more
6203 cases.
6204
4268e8bb
NB
62052002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6206
6207 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
6208 and sign-extension.
6209 (lex_charconst): Update for change in prototype of
6210 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
6211 appropriately.
6212 * cpphash.h (BITS_PER_CPPCHAR_T): New.
6213 * cppinit.c (cpp_create_reader): Initialize them for no
6214 change in semantics.
6215 (cpp_post_options): Add sanity checks.
6216 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
6217 and truncation issues. Calculate in type cppchar_t.
6218 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
6219 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
6220 run-time dependent precision correctly. Return whether the
6221 result is signed or not.
6222 * cpplib.c (dequote_string): Use cppchar_t; update.
6223 * cpplib.h (cppchar_signed_t): New.
6224 struct cpp_options): New precision members.
6225 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
ae1a07e0 6226 * cppexp.c (eval_token): Update.
4268e8bb 6227
af54350e
DM
62282002-05-03 David S. Miller <davem@redhat.com>
6229
2ce04b6b
DM
6230 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
6231 * config/sparc/sparc.c (sparc_rtx_costs): New function
6232 implementing RTX_COSTS and CONST_COSTS.
6233 * config/sparc/sparc.h (CONST_COSTS): Delete.
6234 (RTX_COSTS_CASES): Define.
6235 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
6236 the work.
6237
a1d9bd0c
DM
6238 * config/sparc/sparc.md (DFA schedulers): Split out...
6239 * config/sparc/cypress.md, config/sparc/hypersparc.md,
6240 config/sparc/sparclet.md, config/sparc/supersparc.md,
6241 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
6242
e87bb82e
DM
6243 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
6244 checks on it, always defined for Sparc.
6245
af54350e
DM
6246 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
6247 Tweak, and add more detailed comments.
6248
935bfb44
ZW
62492002-05-03 Zack Weinberg <zack@codesourcery.com>
6250
6251 * Re-apply patch accidentally reverted with
6252 DFA scheduler merge: remove all rules and variables to slurp
6253 source files out of libiberty and rebuild them with HOST_CC.
6254 ($(HOST_PREFIX_1)varray.o): New rule.
6255 (genattrtab rule): Word wrap.
6256
fa7a0712
JT
62572002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6258
6259 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
6260 (CPP_SUBTARGET_SPEC): Define.
6261 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
6262 cpp_subtarget specs.
6263 (CPP_SPEC): Redefine to include %(cpp_subtarget).
6264
14c93978
DM
62652002-05-03 David S. Miller <davem@redhat.com>
6266
6267 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
6268 * target.h (struct gcc_target): Delete cycle_display member.
6269
14d118d6
DM
6270 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
6271 (rtx_needs_barrier): Delete reference to cycle_display unspec.
6272 (ia64_sched_reorder2): Mention need for cycle display handling
6273 once such notes exist.
935bfb44 6274
b3ae1ccd
RH
62752002-05-03 Richard Henderson <rth@redhat.com>
6276
6277 * real.c (etoasc): Strip most trailing zeros for clarity.
6278 * sched-vis.c: Include real.h.
6279 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
6280 * Makefile.in (sched-vis.o): Add real.h.
6281
8f39865a
DM
62822002-05-03 David S. Miller <davem@redhat.com>
6283
6284 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
6285 no longer needed.
6286
b44140e7
AH
62872002-05-03 Aldy Hernandez <aldyh@redhat.com>
6288
935bfb44
ZW
6289 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
6290 when we get an out of range literal.
6291 (altivec_expand_ternop_builtin): Same.
6292 (altivec_expand_unop_builtin): Same.
6293 (altivec_expand_builtin): Same, for dss.
6294 (altivec_expand_builtin): Use trees instead of rtl when
6295 determining literal argument validity.
b44140e7 6296
aaaed752
DM
62972002-05-03 David S. Miller <davem@redhat.com>
6298
6299 Delete cycle display scheduling hook.
6300 * config/ia64/ia64.c (ia64_cycle_display,
6301 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
6302 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
6303 and use emit_insn_before instead of ia64_emit_insn_before.
6304 * config/ia64/ia64.md (unspec usage): Delete cycle display.
6305 (cycle_display): Delete insn pattern.
6306 * config/sparc/sparc.md (unspec usage): Delete cycle display.
6307 (cycle_display): Delete insn pattern.
6308 * config/sparc/sparc.c (sparc_cycle_display,
6309 TARGET_SCHED_CYCLE_DISPLAY): Delete.
6310 * doc/md.texi (cycle_display): Don't mention.
6311 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
935bfb44 6312
b37c2614
RH
63132002-05-03 Richard Henderson <rth@redhat.com>
6314
6315 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
6316 * recog.h: Declare them.
6317
6318 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
6319 * config/sparc/sparc.md: Use store_data_bypass_p instead.
6320 * config/sparc/sparc-protos.h: Update.
935bfb44 6321
e1c1132e
JT
63222002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6323
6324 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
6325 -D__arch64__. Add -D_LP64.
6326 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
6327 from sparc.h.
6328 (CPP_ARCH64_SPEC): Likewise.
6329 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
6330 (NO_BUILTIN_SIZE_TYPE): Undef.
6331
0b2fb0d7
VM
63322002-05-03 Vladimir Makarov <vmakarov@redhat.com>
6333
6334 * genautomata.c (min_issue_delay_pass_states): Change return type
6335 in the prototype.
6336 (min_issue_delay_pass_states): Change the algorithm.
6337 (min_issue_delay): Set up min_insn_issue_delay for the state.
6338 (output_min_issue_delay_table): Interchange the nested loops and
6339 and initiate min_insn_issue_delay for states.
935bfb44 6340
3d4ce12a
JH
6341Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
6342
6343 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
6344 jump is simplejump.
6345
6346Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
37ad04a5
JH
6347
6348 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
6349 sequence.
6350
b5482208
RH
63512002-05-03 Richard Henderson <rth@redhat.com>
6352
6353 PR opt/6534
6354 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6355 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6356 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
6357 code before JUMP, not EARLIEST.
6358
5a3085c5
JM
63592002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
6360
6361 * c-format.c (check_format_info_main): Don't check for presence of
6362 parameter for * width until after operand number has been read,
6363 and only check for it if format parameters are available.
6364 Fixes PR c/6547.
6365
40039424
JT
63662002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6367
6368 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
6369 (LINK_SPEC): Undef before defining.
6370
8157303b
JJ
63712002-05-03 Jakub Jelinek <jakub@redhat.com>
6372
6373 PR preprocessor/6489
6374 * tradcpp.c (fixup_newlines): New.
6375 (main, finclude): Use it.
6376
66319f5c
RS
63772002-05-03 Richard Sandiford <rsandifo@redhat.com>
6378
6379 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
6380 * config/mips/mips.c (mips_unique_section): Strip encoding from
6381 decl name.
6382
ce8076ad
JJ
63832002-05-03 Jakub Jelinek <jakub@redhat.com>
6384
6385 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
6386 mode.
6387
975c6e4e
RO
63882002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6389
6390 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
6391 (Specific): Removed buildstats references.
6392 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
6393 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
6394 Accomodate Solaris versions beyond 8.
6395 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
6396 (Specific, *-*-solaris2.8): Removed, obsolete.
6397
d70e94ec
JJ
63982002-05-03 Jakub Jelinek <jakub@redhat.com>
6399
6400 PR target/6542
6401 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
6402 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
6403 fill leaf_reg_remap with identity.
6404 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
6405
6b148bd9
KH
64062002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6407
6408 * config/h8300/crti.asm: Remove trailing spaces.
6409 * config/h8300/h8300.c: Likewise.
6410 * config/h8300/lib1funcs.asm: Likewise.
6411
609688f3
JM
64122002-05-02 Jason Merrill <jason@redhat.com>
6413
6414 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
6415 * c-decl.c (c_init_decl_processing): Use it.
6416 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
6417 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
6418 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
6419
3b03c671
KH
64202002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6421
6422 * regrename.c: Fix formatting.
6423 * tree.c: Likewise.
6424
3b4961bd
JH
6425Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
6426
6427 * i386.md (attribute memory): Handle compares properly.
6428
19cba4a0
JH
6429Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
6430
3b4961bd 6431 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
19cba4a0
JH
6432 to none.
6433
797a6ac1
KH
64342002-05-02 Kazu Hirata <kazu@cs.umass.edu>
6435
6436 * function.c: Fix formatting.
6437
6d0de005
JH
64382002-05-02 Jan Hubicka <jh@suse.cz>
6439
6440 * haifa-sched.c (schedule_insn): Print table of instructions and
6441 reservations.
6442 (sched_block): Do not print ready list at verbosity level 1.
6443 * sched-vis.c (print_insn): Make global.
6444 * sched-ebb.c (ebb_print_insn): Rename from...
6445 (print_insn): ... this one.
6446 * sched-int.h (print_insn): Declare
6447
0bfb9a69
RH
64482002-05-02 Richard Henderson <rth@redhat.com>
6449
6450 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
6451 emitted by cycle_display.
6452
6b976d99
LR
64532002-05-02 Loren J. Rittle <ljrittle@acm.org>
6454
6455 * doc/install.texi (*-*-freebsd*): Update to latest status.
6456
0a295052
JJ
64572002-05-02 Jakub Jelinek <jakub@redhat.com>
6458
6459 PR target/6540
6460 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
6461 * config/float-sparc.h: Assume 128-bit long double if
6462 __LONG_DOUBLE_128__ is defined.
6463
842d5d6c
VM
64642002-05-02 Vladimir Makarov <vmakarov@redhat.com>
6465
6466 * genattrtab.c (write_function_unit_info): Add a dummy element
6467 when num_units == 0.
6468
3d7a6309
HB
64692002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6470
6471 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
6472 TYPE_MODE (double_type_node) instead of DFmode.
6473
1b6763cf
JH
6474Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
6475
6476 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
6477 jumps post reload.
6478 * toplev.c (rest_of_compilation): Revert Richard's patch.
6479
b303008e
JDA
64802001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
6481
6482 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
6483
6ed7412a
CM
64842002-05-02 Catherine Moore <clm@redhat.com>
6485
6486 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
6487
e0a2f705
KH
64882002-05-02 Kazu Hirata <kazu@hxi.com>
6489
b32d6163 6490 * combine.c: Fix comment typos.
e0a2f705
KH
6491 * expr.c: Likewise.
6492 * genautomata.c: Likewise.
6493 * stmt.c: Likewise.
6494 * tree.h: Likewise.
6495
38e23049
JM
64962002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
6497
6498 * doc/install.texi: State GNAT version requirements.
6499
40f4a97d
NC
65002002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
6501
6502 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
6503 of the frame pointer or arg pointer register which strict register
6504 checking is not enabled.
6505
0d6d6892
AH
65062002-05-02 Aldy Hernandez <aldyh@redhat.com>
6507
b5482208 6508 * gcc.dg/altivec-8.c: New.
0d6d6892 6509
b5482208
RH
6510 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
6511 PRE_INC and PRE_DEC for altivec modes.
0d6d6892 6512
abaa8559
BK
65132002-05-01 Bruce Korb <bkorb@gnu.org>
6514
6515 * fixinc/check.tpl(set-writable): make sure the function exists first
6516 * fixinc/inclhack.def(alpha_assert): fix test_text
6517 * fixinc/tests/base/assert.h: add in missing result
6518
ecab2143
JL
65192002-05-01 Jeff Law <law@redhat.com>
6520
6521 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
6522 'T' constraint.
6523
ea619b46
JB
65242002-05-01 Joel Brobecker <brobecker@gnat.com>
6525
6526 * dbxout.c (dbxout_type): Emit size information for range types,
6527 as well, but only when using GDB extensions.
6528
c72931a6
RH
65292002-05-01 Richard Henderson <rth@redhat.com>
6530
6531 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
6532 target-independent gnu binutils date test.
6533
2150ad33
RH
65342002-05-01 Richard Henderson <rth@redhat.com>
6535
6536 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
6537 info before expunging the block.
6538
1651cc96
JJ
65392002-05-01 Jakub Jelinek <jakub@redhat.com>
6540
6541 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
6542 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
6543 -M -or -MM is in effect.
6544
8998d5bf
ZW
65452002-05-01 Zack Weinberg <zack@codesourcery.com>
6546
6547 * config.gcc: Correct test of --enable-obsolete. Obsolete all
6548 A29k configurations.
6549 * doc/install.texi: Update to match.
6550
a81eed10
FS
65512002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6552
6553 PR bootstrap/6514
6554 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
6555 for duplicates. Always loop over whole list.
6556
8d53318f
RK
6557Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6558
6559 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
6560
4109b118
JS
65612002-05-01 Joel Sherrill <joel@OARcorp.com>
6562
6563 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
6564 support routines.
6565
c4a9c570
JS
65662002-05-01 Joel Sherrill <joel@OARcorp.com>
6567
6568 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
6569
ea112fc4
DE
65702002-05-01 David Edelsohn <edelsohn@gnu.org>
6571
6572 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
6573 (nabs_nopower): Same.
6574 (floatdisf2): New pattern.
6575 (absdi2): Convert to define_insn_and_split.
6576 (nabsdi2): Same.
6577 (trunctfsf2): Same.
6578 (floatditf2): Same.
6579 (floatsitf2): Same.
6580 (fix_trunctfdi2): Same.
6581 (fix_trunctfsi2): Same.
6582
dda78254
JM
65832002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
6584
6585 * doc/install.texi: Update Texinfo version requirement
6586 documentation.
6587
26aeede4
JJ
65882002-05-01 Jakub Jelinek <jakub@redhat.com>
6589
6590 PR target/6512, PR target/5628
6591 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
6592 when memory is not aligned.
6593 (movdf_insn_v9only_vis): Likewise.
6594 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
6595 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
6596 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
6597
9b7bc465
AH
65982002-05-01 Aldy Hernandez <aldyh@redhat.com>
6599
8998d5bf 6600 * gcc.dg/altivec-7.c: New.
9b7bc465 6601
8998d5bf 6602 * config/rs6000/altivec.h: Cleanup.
9b7bc465 6603
08b57fb3
AH
66042002-04-30 Aldy Hernandez <aldyh@redhat.com>
6605
8998d5bf
ZW
6606 * doc/invoke.texi (Option Summary): Add -mvrsave=.
6607 (RS/6000 and PowerPC Options): Document -mvrsave=.
08b57fb3 6608
8998d5bf
ZW
6609 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
6610 (rs6000_altivec_vrsave_string): Same.
6611 (rs6000_override_options): Call rs6000_parse_vrsave_option.
6612 (rs6000_parse_vrsave_option): New.
6613 (rs6000_stack_info): Only generate vrsave instructions when
6614 TARGET_ALTIVEC_VRSAVE.
08b57fb3 6615
8998d5bf
ZW
6616 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
6617 (rs6000_altivec_vrsave_string): Define extern.
6618 (rs6000_altivec_vrsave): Same.
6619 (TARGET_ALTIVEC_VRSAVE): New.
08b57fb3 6620
8e8c38cd
RH
66212002-04-30 Richard Henderson <rth@redhat.com>
6622
6623 PR opt/6516
6624 * toplev.c (rest_of_compilation): Don't run cross-jump before
6625 bb-reorder.
6626
4be9e9cb
TR
66272002-04-30 Tom Rix <trix@redhat.com>
6628
8998d5bf 6629 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4be9e9cb
TR
6630 check which_alternative.
6631
1eeeb6a4
KH
66322002-04-30 Kazu Hirata <kazu@hxi.com>
6633
6634 * cpplex.c: Fix comment formatting.
6635 * function.c: Likewise.
6636 * integrate.c: Likewise.
6637 * regrename.c: Likewise.
6638 * sibcall.c: Likewise.
6639 * simplify-rtx.c: Likewise.
6640 * tree-inline.c: Likewise.
6641
ed9d6ff9
JDA
66422002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6643
6644 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
6645 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
6646 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
6647 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
6648 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
6649 * pa/x-ada: New file. Define ADA_CFLAGS.
6650
1f2641b6
HPN
66512002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
6652
6653 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
6654 from MMIX_LAST_REGISTER_FILE_REGNUM.
6655 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
6656 (struct machine_function): New member highest_saved_stack_register
6657 previously static variable in mmix.c.
6658 (MACHINE_DEPENDENT_REORG): Define.
6659 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
6660 (MMIX_OUTPUT_REGNO): New.
6661 (mmix_target_asm_function_prologue): Move calculation of last used
6662 saved-stack-register into...
6663 (mmix_machine_dependent_reorg): New function. Update to also handle
6664 !TARGET_ABI_GNU.
6665 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
6666 register names, simplify somewhat by new variable regno.
6667 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
6668 register.
6669 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
6670 emitting register names.
6671 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
6672 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
6673 Remove fixed FIXME.
6674 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
6675 Declare.
6676
6677 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
6678
73985940
RH
66792002-04-30 Richard Henderson <rth@redhat.com>
6680
6681 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
6682 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
6683 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
6684 emit_tfmode_cvt): New.
6685 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
6686 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
6687 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
6688 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
6689 * config/sparc/sparc-protos.h: Update.
6690
2b46bc67
JJ
66912002-04-30 Janis Johnson <janis187@us.ibm.com>
6692
6693 * install.texi (Final install): Add to the list of info to include
6694 in a report of a successful bootstrap, and add link to 3.1 list.
6695
3d34cd91
JH
6696Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
6697
6698 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
6699 (mode): Add vector modes
6700 (i387): Kill attribute.
6701 (unit): New attribute.
6702 (length_immediate): Grok new types.
6703 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
6704 (modrm): Use "unit".
6705 (memory): Handle MMX/SSE properly.
6706 (scheduling descriptions): Kill uses of fop1.
6707 (sse, mmx, fp patterns): Set type and mode properly.
6708
243e5500 6709Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
3193c415 6710
30482eb0
JL
6711 * pa.c (override_options): Default to PA8000 scheduling.
6712 * doc/invoke.texi (HP-PA options): Mention newly added 7300
6713 scheduling parameter.
6714
3193c415
JL
6715 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
6716 handling of double precision multiplies.
6717
6718 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
6719 fpdiv and fpsqrt instructions.
6720 (7200 & 7300 scheduling): Fix typo in handling of
6721 store-load and store-store penalties.
6722
c0a34cb7
GP
67232002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6724
6725 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
6726 mips. Add two missing commas.
6727
8bce0628
PC
67282002-04-30 Paolo Carlini <pcarlini@unitus.it>
6729
6730 * doc/contrib.texi (Contributors): Update Paolo Carlini's
6731 and Benjamin Kosnik's entries.
6732
84643cbf
DM
67332002-04-29 David S. Miller <davem@redhat.com>
6734
6735 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
6736 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
6737 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
6738 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6739
da6886f6
FS
67402002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6741
6742 * combine.c (find_split_point): Use gen_int_mode.
6743
fae15c93
VM
67442002-04-29 Vladimir Makarov <vmakarov@redhat.com>
6745
6746 Merging code from dfa-branch:
8998d5bf 6747
fae15c93
VM
6748 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
6749
6750 * genautomata.c (output_reserv_sets): Fix typo.
6751
6752 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
6753
6754 * genautomata.c (output_reserv_sets): Remove
6755 next_cycle_output_flag.
6756
6757 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
6758
8998d5bf
ZW
6759 * sched-rgn.c (init_ready_list): Make the DFA code handle
6760 USE/CLOBBER insns in the same way as the traditional
6761 scheduler.
6762 (new_ready): Similarly..
fae15c93
VM
6763
6764 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
6765
6766 * haifa-sched.c (schedule_block): Change the DFA state only after
6767 issuing insn.
6768
6769 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
6770
6771 * pa.c (hppa_use_dfa_pipeline_interface): New function.
6772 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6773 (override_options): Add PA7300 scheduling support.
6774 (pa_adjust_cost): Update various comments. Properly
6775 handle anti and output dependencies when using the
6776 DFA scheduler.
6777 (pa_issue_rate): Add PA7300 scheduling support.
6778 (pa_can_combine_p): Call extract_insn before calling
6779 constrain_operands (taken from mainline tree).
6780 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
6781 * pa.md (cpu attr): Add 7300. Rewrite pipeline
6782 descriptions using DFA descriptions. Add PA7300
6783 scheduling support.
6784
6785 2002-03-30 David S. Miller <davem@redhat.com>
6786
6787 Add UltraSPARC-III DFA scheduling support.
6788 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
6789 Update FP conditional move on register insn patterns to use it, as
6790 appropriate.
6791 (define_attr cpu): Add ultrasparc3.
6792 (define_attr us3load_type): New, update integer load patterns to
6793 set it, as appropriate.
6794 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
6795 (rest): Add UltraSPARC3 scheduling description.
6796 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
6797 (PROCESSOR_ULTRASPARC3): New.
6798 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
6799 ({ASM,CPP}_CPU_SPEC): Likewise.
6800 (REGISTER_MOVE_COST): Likewise.
6801 (RTX_COSTS): Likewise.
6802 * config/sparc/sparc.c (sparc_override_options,
6803 sparc_initialize_trampoline, sparc64_initialize_trampoline,
6804 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
6805 sparc_issue_rate): Likewise.
6806 * config/sparc/sol2.h: Likewise.
6807 * config/sparc/sol2-sld-64.h: Likewise.
6808 * config/sparc/linux64.h: Likewise.
8998d5bf 6809
fae15c93
VM
6810 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
6811
6812 * doc/md.texi: Add comments about usage the latency time for the
6813 different dependencies and about case when two or more conditions
6814 in different define_insn_reservations returns TRUE for an insn.
6815
6816 * doc/md.texi: Add reference for automaton based pipeline
6817 description.
8998d5bf 6818
fae15c93
VM
6819 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
6820
6821 * doc/passes.texi: Add missed information about genattrtab.
6822
6823 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
6824
6825 * genautomata.c (output_automata_list_transition_code): Check
6826 automata_list on NULL.
6827
6828 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
6829
6830 * genautomata.c (output_insn_code_cases,
6831 output_automata_list_min_issue_delay_code,
6832 output_automata_list_transition_code,
6833 output_automata_list_state_alts_code): Comment the functions.
6834
6835 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
6836
6837 * genautomata.c (automata_list_el_t): New typedef.
6838 (get_free_automata_list_el,free_automata_list_el,
6839 free_automata_list, automata_list_hash, automata_list_eq_p,
6840 initiate_automata_lists, automata_list_start, automata_list_add,
6841 automata_list_finish, finish_automata_lists,
6842 output_insn_code_cases, output_automata_list_min_issue_delay_code,
6843 output_automata_list_transition_code,
6844 output_automata_list_state_alts_code, add_automaton_state,
6845 form_important_insn_automata_lists): New functions and prototypes.
6846 (insn_reserv_decl): Add members important_automata_list and
6847 processed_p.
6848 (ainsn): Add members important_p.
6849 (automata_list_el): New structure.
6850 (first_free_automata_list_el, current_automata_list,
6851 automata_list_table): New global variables.
6852 (create_ainsns): Initiate member important_p.
6853 (output_internal_min_issue_delay_func): Generate the switch and
6854 call output_insn_code_cases.
6855 (output_internal_trans_func, output_internal_state_alts_func):
6856 Ditto.
6857 (generate): Call initiate_automata_lists.
6858 (automaton_states): New global variable.
6859 (expand_automata): Call form_important_insn_automata_lists.
6860 (write_automata): Call finish_automata_lists.
8998d5bf 6861
fae15c93
VM
6862 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
6863
6864 * genautomata.c (add_excls, add_presence_absence): Check that
8998d5bf 6865 cpu units in the sets belong the same automaton.
fae15c93
VM
6866
6867 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
6868 about that cpu units in the sets belong the same automaton.
6869
6870 * doc/md.texi: Ditto.
8998d5bf 6871
2799d721
VM
6872 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
6873 Nitin Gupta <niting@noida.hcltech.com>
8998d5bf 6874
fae15c93
VM
6875 * config/sh/sh.c (sh_use_dfa_interface): New function.
6876
6877 (sh_issue_rate): New Function.
6878 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
6879 TARGET_SCHED_ISSUE_RATE: define.
6880
6881 * config/sh/sh.md: Add DFA based pipeline description for SH4.
6882
8998d5bf
ZW
6883 (define_attr insn_class): New attribute used for DFA
6884 scheduling.
fae15c93
VM
6885 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
6886 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
6887 cmpeqdi_t): Likewise.
6888
6889 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8998d5bf 6890 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
fae15c93
VM
6891 ex_group.
6892 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8998d5bf 6893
fae15c93
VM
6894 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
6895
6896 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
6897 break.
6898
6899 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
6900
6901 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
6902 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
6903 necessary.
6904 (output_dfa_start_func): Initiate new variable insn_codes_length,
6905 (write_automata): Output definition of the new variable.
8998d5bf 6906
fae15c93
VM
6907 2001-10-02 David S. Miller <davem@redhat.com>
6908
6909 * haifa-sched.c (advance_one_cycle): New function.
6910 (schedule_block): Use it.
6911 (queue_to_ready): Use it, and also make sure to advance the DFA
6912 state on all stall cycles, not just those where insn_queue links
6913 are found.
6914
6915 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
6916
6917 * haifa-sched.c (max_issue): Remove last_p argument. Only return
6918 non-zero if the highest-priority instruction could be scheduled.
6919 (choose_ready): Remove last argument from max_issue call.
6920
6921 2001-09-28 David S. Miller <davem@redhat.com>
6922
6923 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
6924 ultrasparc and 3 for other multi-issue sparcs.
6925
6926 2001-09-27 David S. Miller <davem@redhat.com>
6927
6928 * config/sparc/sparc.md (cycle_display): New pattern.
6929 * config/sparc/sparc.c (sparc_cycle_display): New.
6930 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
6931
6932 2001-09-25 David S. Miller <davem@redhat.com>
6933
6934 Convert all of Sparc scheduling to DFA
6935 * config/sparc/sparc.md: Kill all define_function_unit
6936 directives and replace with DFA equivalent.
6937 * config/sparc/sparc.c (ultrasparc_adjust_cost,
6938 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
6939 ultra_fpmode_conflict_exists, ultra_find_type,
6940 ultra_build_types_avail, ultra_flush_pipeline,
6941 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
6942 ultrasparc_variable_issue, ultrasparc_sched_init,
6943 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
6944 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
6945 ultra_cur_hist, ultra_cycles_elapsed): Kill.
6946 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
6947 ultrasparc_store_bypass_p): New.
6948 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
6949 Declare.
6950
6951 2001-09-24 David S. Miller <davem@redhat.com>
6952
6953 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
6954 ready->vec[foo] not ready[foo].
6955
6956 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
6957
6958 * doc/md.texi: Correct examples for define_insn_reservations
6959 `mult' and `div'.
6960
6961 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
6962
6963 * genautomata.c (create_automata): Print message about creation of
6964 each automaton.
6965 (generate): Remove printing meease about creation of
6966 automata.
6967
6968 2001-09-05 David S. Miller <davem@redhat.com>
6969
6970 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
6971 * config/sparc/linux64.h: Likewise.
6972
6973 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
6974
6975 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
6976 schedule_block, sched_init, sched_finish): Add missed calls of
6977 use_dfa_pipeline_interface.
6978
6979 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
6980 Ditto.
6981
6982 * sched-vis.c (get_visual_tbl_length): Ditto.
8998d5bf 6983
fae15c93
VM
6984 2001-08-27 Richard Henderson <rth@redhat.com>
6985
6986 * genattr.c (main): Emit state_t even when not doing scheduling.
6987
6988 2001-08-27 Richard Henderson <rth@redhat.com>
6989
6990 * genautomata.c (expand_automata): Always create a description.
6991
6992 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
6993
8998d5bf 6994 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
fae15c93
VM
6995 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
6996 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
6997 RTL constructions.
6998
6999 * genattr.c (main): New variable num_insn_reservations. Increase
7000 it if there is DEFINE_INSN_RESERVATION. Output automaton based
7001 pipeline hazard recognizer interface.
7002
7003 * genattrtab.h: New file.
7004
7005 * genattrtab.c: Include genattrtab.h.
7006 (attr_printf, check_attr_test, make_internal_attr,
7007 make_numeric_value): Move protypes into genattrtab.h. Define them
7008 as external.
7009 (num_dfa_decls): New global variable.
7010 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
7011 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
7012 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
7013 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
7014
7015 * genautomata.c: New file.
7016
7017 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
7018
8998d5bf 7019 * sched-int.h: (curr_state): Add the external definition for
fae15c93
VM
7020 automaton pipeline interface.
7021 (haifa_insn_data): Add comments for members blockage and units.
7022
7023 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7024 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7025 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7026 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7027 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7028 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7029 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
7030 macros.
7031 (TARGET_SCHED): Use the new macros.
7032
7033 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
7034 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
7035 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
7036 dfa_bubble): New members in gcc_target.sched.
7037
8998d5bf 7038 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
fae15c93
VM
7039 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
7040 (insn_queue): Redefine it as pointer to array.
7041 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
7042 INSN_QUEUE_SIZE.
7043 (max_insn_queue_index_macro_value): New variable.
7044 (curr_state, dfa_state_size, ready_try): New varaibles for
7045 automaton interface.
7046 (ready_element, ready_remove, max_issue): New function prototypes
7047 for automaton interface.
7048 (choose_ready): New function prototype.
7049 (insn_unit, blockage_range): Add comments.
7050 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
7051 FUNCTION_UNITS_SIZE == 0.
7052 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
7053 actual_hazard, potential_hazard): Add comments.
7054 (insn_cost): Use cost -1 as undefined value. Remove
7055 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
7056 pipeline interface.
7057 (ready_element, ready_remove): New functions for automaton
7058 interface.
7059 (schedule_insn): Add new code for automaton pipeline interface.
7060 (queue_to_ready): Add new code for automaton pipeline interface.
7061 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
7062 (debug_ready_list): Print newline when the queue is empty.
7063 (max_issue): New function for automaton pipeline interface.
7064 (choose_ready): New function.
7065 (schedule_block): Add new code for automaton pipeline interface.
7066 Print ready list before scheduling each insn.
7067 (sched_init): Add new code for automaton pipeline interface.
7068 Initiate insn cost by -1.
7069 (sched_finish): Free the current automaton state and finalize
7070 automaton pipeline interface.
7071
7072 * sched-rgn.c: Include target.h.
7073 (init_ready_list, new_ready, debug_dependencies): Add new code for
7074 automaton pipeline interface.
7075
7076 * sched-vis.c: Include target.h.
7077 (get_visual_tbl_length): Add code for automaton interface.
7078 (target_units, print_block_visualization): Add comments.
7079
8998d5bf 7080 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
fae15c93
VM
7081 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
7082 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
7083 (getruntime.o, genautomata.o): New entries.
7084 (genattrtab.o): Add new dependency file genattrtab.h.
7085 (genattrtab): Add new dependencies. Link it with `libm.a'.
7086 (getruntime.o, hashtab.o): New entries for canadian cross.
7087
7088 * doc/md.texi: Description of automaton based model.
7089
7090 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
7091 Add comments.
7092 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7093 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7094 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7095 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7096 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7097 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7098 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
7099 hook descriptions.
7100 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
7101 MAX_DFA_ISSUE_RATE): New macro descriptions.
7102
7103 * doc/contrib.texi: Add dfa based scheduler contribution.
7104
7105 * doc/gcc.texi: Add more information about genattrtab.
7106
a2ff290c
RK
7107Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7108
7109 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
7110 adjust_address_nv call.
7111
f97903cc
JJ
71122002-04-29 Janis Johnson <janis187@us.ibm.com>
7113
7114 * doc/install.texi (Testing): Provide additional information, and
7115 a stronger encouragement, for running the testsuites.
7116
f41a6bf1
DD
71172002-04-29 DJ Delorie <dj@redhat.com>
7118
7119 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
7120 given in upper case.
7121
d8af0868
RO
71222002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7123
7124 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
7125 Solaris 2 <widec.h> if missing.
7126 * fixinc/fixincl.x: Regenerate.
7127 * fixinc/tests/base/widec.h: New file.
7128
1034407f
NC
71292002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
7130
7131 * toplev.c (f_options): Add "profile" switch so that
7132 -fno-profile can be used to disable -p.
7133
fbe5eb6d
BS
71342002-04-29 Bernd Schmidt <bernds@redhat.com>
7135
7136 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
7137 UV2DImode.
7138 * tree.c (build_common_tree_nodes_2): Likewise.
7139 * tree.h (enum tree_index): Likewise.
7140 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
7141
7142 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
7143 entries.
7144 (init_mmx_sse_builtins): Initialize SSE2 builtins.
7145 (ix86_expand_builtin): Add support for SSE2 builtins.
7146 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
7147 (VALID_SSE_REG_MODE): Use it.
7148 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
7149 (enum ix86_builtins): Add SSE2 builtins.
7150 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
7151 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
7152 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
7153 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
7154 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
7155 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
7156 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
7157 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
7158 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
7159 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
7160 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
7161 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
7162 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
7163 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
7164 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
7165 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
7166 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
7167 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
7168 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
7169 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
7170 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
7171 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
7172 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
7173 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
7174 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
7175 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
7176 lfence_insn): New patterns.
7177 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
7178 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
7179
44aefada
JH
7180Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
7181
7182 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
7183
d5482cdc
GP
71842002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7185
7186 * doc/contrib.texi (Contributors): Add Paolo Carlini and
7187 Janis Johnson.
7188 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
7189 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
7190 and CPU instead of cpu.
7191
2c4b77f3
JH
7192Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7193
7194 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
7195 variables.
7196 (lang_independent_options): Add -fif-conversion, -fif-conversion2
7197 (rest_of_compilation): Do if conversion only when asked for.
7198 (parse_options_and_default_flags): Set new variables to 1 for -O1
7199 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
7200
3de72741
JH
7201Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7202
7203 * i386.c (dbx64_register_map): Fix typo.
7204
8aa18a7d
JH
7205Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
7206
7207 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
7208 real_one_half, real_bb_freq_max): New static variables.
7209 (debug_profile_bbauxs): Kill.
7210 (process_note_predictions): Kill unused variable.
7211 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
7212 volatile double.
7213 (propagate_freq): Use REAL_ARITHMETICS.
7214 (estimate_bb_frequencies): Likevise; init new static variables.
7215 * Makefile.in (predict.o): Add dependency on real.h
7216
1bbad4c6
DM
72172002-04-28 David S. Miller <davem@redhat.com>
7218
7219 PR target/6500
7220 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
7221 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
7222 several {reads,writes} instead.
7223 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
7224 Define.
7225
3ef3f384
DM
72262002-04-27 David S. Miller <davem@redhat.com>
7227
7228 PR target/6494
7229 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
7230 of the stack bias.
7231
7232 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
7233 including signal.h and sys/ucontext.h, not needed.
7234
ec493bcb
HPN
72352002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
7236
7237 * varasm.c (output_constant_def): Correct test for not calling
7238 ENCODE_SECTION_INFO for INTEGER_CST.
7239
60284a59
NB
72402002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
7241
7242 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
7243 keep most cases as function eval_token.
7244 (eval_token): New function.
7245 (_cpp_parse_expr): Read token here for improved diagnostics.
7246 Don't use op_as_text. Detect bad ':' here.
7247 (reduce): Don't detect bad ':' here.
7248 (op_as_text): Remove.
7249 * cpphash.h (_cpp_test_assertion): Change prototype.
7250 * cpplib.c (_cpp_test_assertion): Change prototype.
7251
349a4b40
RH
72522002-04-28 Richard Henderson <rth@redhat.com>
7253
7254 PR c/5154
8998d5bf 7255 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
349a4b40
RH
7256 (ggc_mark_rtx_children): New.
7257
7a03f82f
JJ
72582002-04-28 Jakub Jelinek <jakub@redhat.com>
7259
7260 PR target/6496
7261 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
7262 after call peepholes for UltraSPARC.
7263 (call + jump 64-bit peepholes): Remove.
7264
80103f96
FS
72652002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7266
7267 PR c/6497
7268 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
7269 result as temporary value.
7270
06990986
JJ
72712002-04-28 Jakub Jelinek <jakub@redhat.com>
7272
7273 PR c++/6396
7274 * toplev.c (rest_of_compilation): Only run regrename and copy
7275 propagation if optimizing.
7276
a20fd5ac
JJ
72772002-04-28 Jakub Jelinek <jakub@redhat.com>
7278
7279 PR optimization/6475
7280 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
7281 register of REGNO_DECL (i).
7282 * Makefile.in (reload1.o): Add $(TREE_H).
7283
87ed109f
NB
72842002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
7285
7286 * cppexp.c (lex): Update to use state.skip_eval.
7287 (struct op): Remove prio and flags members.
7288 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
7289 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
7290 (LEFT_ASSOC): New macro.
7291 (optab): New table of operator priorities and flags.
7292 (SHIFT): Update.
7293 (_cpp_parse_expr): Clean up logic. Return bool. Use a
7294 malloc-ed parser stack.
7295 (reduce): New; reduce the operator stack.
7296 (_cpp_expand_op_stack): Expand the operator stack as necessary.
7297 * cpphash.h (struct op): Predeclare.
7298 (struct cpp_reader): New members op_stack, op_limit.
7299 (struct lexer_state): New member skip_eval.
7300 (_cpp_parse_expr): Update.
7301 (_cpp_expand_op_stack): New.
7302 * cpplib.c (do_if): Update.
7303 * cppinit.c (cpp_create_reader): Create op stack.
7304 (cpp_destroy): And destroy it.
7305 * cpplib.h (CPP_LAST_CPP_OP): Correct.
7306 (TTYPE_TABLE): Correct.
7307
45806a3f
FS
73082002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7309
7310 PR c/6343
7311 * c-decl.c (duplicate_decls): Call merge_weak.
7312 * c-pragma.c (apply_pragma_weak): Warn about misuse.
7313 * output.h (merge_weak): Prototype merge_weak.
7314 * varasm.c (merge_weak): New function.
7315 (declare_weak): Make sure we don't give an error on VAR_DECLs.
7316 Mark RTL with SYMBOL_REF_WEAK.
7317
a6227154
KG
73182002-04-27 Kurt Garloff <garloff@suse.de>
7319
7320 * tree-inline.c (inlinable_function_p): Improve heuristics
7321 by using a smoother function to cut down allowable inlinable size.
7322 * param.def: Add parameters max-inline-insns-single,
7323 max-inline-slope, min-inline-insns that determine the exact
7324 shape of the above function.
7325 * param.h: Likewise.
7326
94a50397
RH
73272002-04-26 Richard Henderson <rth@redhat.com>
7328
7329 * c-parse.in (malloced_yyss, malloced_yyvs): New.
7330 (yyoverflow): Re-add. Set them.
7331 (free_parser_stacks): New.
7332 * c-common.h: Declare it.
7333 * c-lex.c (c_common_parse_file): Call it.
7334
9c0a0632
RH
73352002-04-26 Richard Henderson <rth@redhat.com>
7336
7337 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
7338 for fallthru search.
7339
b875d2ee
EC
73402002-04-26 Eric Christopher <echristo@redhat.com>
7341
7342 PR optimization/3700
7343 * config/mips/mips.c (mips_issue_rate): Define. New function.
7344 (TARGET_SCHED_ISSUE_RATE): Use.
7345
1db828df
DM
73462002-04-25 David S. Miller <davem@redhat.com>
7347
7348 PR target/6422
7349 * reorg.c (optimize_skip): Do not allow exception causing
7350 instructions to be considered for delay slots.
7351 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
7352 (relax_delay_slots): Do not try to consider exception causing
7353 instructions as redundant.
7354
ae5d234e
RH
73552002-04-26 Richard Henderson <rth@redhat.com>
7356
7357 PR c/5225
7358 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
7359
7d793e9b
MM
73602002-04-26 Mark Mitchell <mark@codesourcery.com>
7361
7362 PR bootstrap/6445
7363 * config/i386/i386.md (untyped_call): Return the value in a float
7364 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
7365 TARGET_80387.
7366
b13ab42c
AO
73672002-04-26 Alexandre Oliva <aoliva@redhat.com>
7368
7369 * tree.c (tree_int_cst_lt): Compare constants whose types differ
7370 in unsigned-ness correctly.
7371
5e56f909
JDA
73722002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7373
7374 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
7375 portable runtime model.
7376
bde3c0c0
RH
73772002-04-26 Richard Henderson <rth@redhat.com>
7378
a6227154 7379 * c-parse.in (yyoverflow): Revert.
bde3c0c0 7380
5276df18
DE
73812002-04-26 David Edelsohn <edelsohn@gnu.org>
7382 Richard Henderson <rth@redhat.com>
7383
7384 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
7385 result as temporary value.
7386
b84a3874
RH
73872002-04-26 Richard Henderson <rth@redhat.com>
7388
7389 PR c/3581
7390 * c-common.c (fix_string_type): Split out of ...
7391 (combine_strings): ... here. Take a varray, not a tree list.
7392 (c_expand_builtin_printf): Use fix_string_type.
7393 * c-common.h: Update decls.
7394 * c-parse.in (string): Remove. Update all uses to use STRING
7395 instead, and not call combine_strings.
7396 (yylexstring): New.
7397 (_yylex): Use it.
7398 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
7399 (build_asm_stmt): Likewise.
7400 * objc/objc-act.c (my_build_string): Use fix_string_type.
7401 (build_objc_string_object): Build varray for combine_strings.
7402
d8ae8cd4
BT
74032002-04-26 Bo Thorsen <bo@suse.co.uk>
7404
7405 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
7406 x86-64.
7407
f8b954fc
NB
74082002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
7409
7410 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
7411 (HAVE_NO_R_OPERAND): Remove.
7412 (HAVE_VALUE): Remove.
7413 (op_to_prio): Update.
7414 (UNARY): Don't alter flags.
7415 (_cpp_parse_expr): want_value used to indicate whether
7416 a number or unary operator is expected next. Distinguish
7417 unary and binary +/-.
7418 (op_as_text): Update for unary operators.
7419
6052bef0
RH
74202002-04-25 Richard Henderson <rth@redhat.com>
7421
7422 PR c/2161
7423 * c-parse.in (yyoverflow): New.
7424
5c5b2283
RH
74252002-04-25 Richard Henderson <rth@redhat.com>
7426
7427 PR c/2098
7428 * c-common.c (shorten_compare): Simplfy conditions leading to
7429 the generation of a warning.
7430
28ce94d4
RH
74312002-04-25 Richard Henderson <rth@redhat.com>
7432
7433 PR c/2035
7434 * expmed.c (extract_bit_field): Fall through to generic code rather
7435 than aborting on subreg special case.
7436
6bfd0c63
DM
74372002-04-25 David S. Miller <davem@redhat.com>
7438
7439 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
7440 for DECL being NULL.
7441
7a430e3b
SC
74422002-04-25 Steve Christiansen <smc@us.ibm.com>
7443
7444 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
7445
45c42d7d
EB
74462002-04-25 Eric Botcazou <ebotcazou@multimania.com>
7447
7448 * c-decl.c (grokdeclarator): Remove outdated ??? note
7449 on invalid declaration of flexible array members.
7450
eb7715a4
RH
74512002-04-25 Richard Henderson <rth@redhat.com>
7452
7453 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
7454
cf5ee720
UW
74552002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7456
7457 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
7458 needed by the compiler, even if they are used as global regs.
7459
d604bca3
MH
74602002-04-25 Matt Hiller <hiller@redhat.com>
7461
7462 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
7463 functions.
7464 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
7465 of the corresponding functions.
7466 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
7467 New prototypes.
b875d2ee 7468
d604bca3
MH
74692002-04-25 Matt Hiller <hiller@redhat.com>
7470
7471 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
7472
7473 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
7474 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
7475 registers, adjust comment accordingly.
7476 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
7477 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
7478 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
7479 for coprocessor registers.
7480 (ADDITIONAL_REGISTER_NAMES): Include
7481 ALL_COP_ADDITIONAL_REGISTER_NAMES.
b875d2ee 7482
d604bca3
MH
7483 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
7484 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
7485 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
7486 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
7487 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
7488
7489 (mips_char_to_class): Adjust comment to include coprocessor
7490 constraint letters.
7491
7492 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
7493 New functions.
7494 (mips_reg_names, mips_regno_to_class): Include coprocessor
7495 information.
7496 (mips_sw_reg_names): Ditto, make non-static.
7497 (mips_move_1word): Handle moves to and from coprocessor registers.
7498 (mips_move_2words): Handle moves to and from coprocessor
7499 registers.
7500 (mips_class_max_nregs, mips_register_move_cost): Handle
7501 coprocessor register classes.
7502 (override_options): Initialize mips_char_to_class and
7503 mips_hard_regno_mode_ok properly for coprocessor registers.
7504
7505 * config/mips/mips.md (movdi_internal, movdi_internal2,
7506 movsi_internal1, movsi_internal2): Add constraint-sets for
7507 coprocessor registers.
7508 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
7509 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
7510 isn't mips.
7511 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
7512 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
7513 isn't mips.
7514 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
7515 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
7516 isn't mips.
7517 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
7518 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
7519 isn't mips.
b875d2ee 7520
d604bca3
MH
7521 * doc/tm.texi: Document feature.
7522
b9a26d09
NB
75232002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7524
7525 * integrate.c (function_attribute_inlinable_p): Simplify.
7526 Check the table pointer is not NULL.
7527
ab5973b7
SB
75282002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
7529
7530 * doc/c-tree.texi: Fix typo in introduction.
7531
ff45c01e
NB
75322002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7533
7534 * c-common.h (c_common_parse_file): Update.
7535 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7536 * c-lex.c (YYDEBUG): Get from c-lex.h.
7537 (c_common_parse_file): Update.
7538 * c-lex.h (YYDEBUG, yydebug): New.
7539 * c-parse.in (YYDEBUG): Get from c-lex.h.
7540 (c_set_yydebug): Remove.
7541 * c-tree.h (c_set_yydebug): Remove.
7542 * langhooks-def.h (lhd_do_nothing_i): New.
7543 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
7544 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
7545 * langhooks.c (lhd_do_nothing_i): New.
7546 (lhd_set_yydebug): Remove.
7547 * langhooks.h (struct lang_hooks): Update.
7548 * toplev.c (set_yydebug): New.
7549 (compile_file): Update call to parse_file hook.
7550 (decode_d_option): Update.
7551objc:
7552 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7553
fcae219a
R
7554Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
7555
7556 * loop.c (load_mems): Don't change the interface of called functions.
7557
7558 * calls.c (expand_call): Take current_function_pretend_args_size
7559 into account when setting argblock for sibcalls.
7560
d0fea45a
MH
75612002-04-24 Matt Hiller <hiller@redhat.com>
7562
7563 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
7564 * c-lex.c: Ditto.
7565
7566 * cpplex.c (skip_line_comment): Process comment one multibyte
7567 character at a time rather than one char at a time, if
7568 appropriate.
7569 (parse_string): Process string one multibyte character at a time
7570 rather than one char at a time, if appropriate.
7571 * c-lex.c (lex_string): Lex and copy multibyte strings
7572 appropriately.
7573 * cpplib.h (cppchar_t): Change to unsigned.
7574
2d1b5436
RH
75752002-04-24 Richard Henderson <rth@redhat.com>
7576
7577 PR c/3467
7578 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
7579 for c99.
7580
5e039e6b
R
7581Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
7582
7583 * sh.c (sh_va_arg): If argument was passed by reference,
7584 dereference the pointer.
309d8365
R
7585
7586 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
51214775
R
7587
7588 * sh.md (divsi3_i4_media): Use match_operand for input values
7589 rather than hard registers.
7590 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7591 unnecessarily through hard registers. Keep copies of pseudo
7592 registers outside of the libcall sequence.
7593
7594 * sh.md (casesi_shift_media): Add modes.
b700634a
R
7595
7596 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
7597 values in memory.
7598
349ae713
NB
75992002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
7600
7601 * attribs.c (c_common_attribute_table): Move table and handlers
7602 to c-common.c.
7603 (format_attribute_table, lang_attribute_table,
7604 lang_attribute_common): Remove.
7605 (init_attributes): Replace NULL pointers with pointers to the
7606 empty table.
7607 (handle_packed_attribute, handle_nocommon_attribute,
7608 handle_common_attribute, handle_noreturn_attribute,
7609 handle_noinline_attribute, handle_always_inline_attribute,
7610 handle_used_attribute, handle_unused_attribute,
7611 handle_const_attribute, handle_transparent_union_attribute,
7612 handle_constructor_attribute, handle_destructor_attribute,
7613 handle_mode_attribute, handle_section_attribute,
7614 handle_aligned_attribute, handle_weak_attribute,
7615 handle_alias_attribute, handle_visibility_attribute,
7616 handle_no_instrument_function_attribute, handle_malloc_attribute,
7617 handle_no_limit_stack_attribute, handle_pure_attribute,
7618 handle_deprecated_attribute, handle_vector_size_attribute,
7619 vector_size_helper): Move to c-common.c.
7620 * c-common.c (c_common_attribute_table,
7621 handle_packed_attribute, handle_nocommon_attribute,
7622 handle_common_attribute, handle_noreturn_attribute,
7623 handle_noinline_attribute, handle_always_inline_attribute,
7624 handle_used_attribute, handle_unused_attribute,
7625 handle_const_attribute, handle_transparent_union_attribute,
7626 handle_constructor_attribute, handle_destructor_attribute,
7627 handle_mode_attribute, handle_section_attribute,
7628 handle_aligned_attribute, handle_weak_attribute,
7629 handle_alias_attribute, handle_visibility_attribute,
7630 handle_no_instrument_function_attribute, handle_malloc_attribute,
7631 handle_no_limit_stack_attribute, handle_pure_attribute,
7632 handle_deprecated_attribute, handle_vector_size_attribute,
7633 vector_size_helper): Move from attribs.c.
7634 * c-common.h (c_common_attribute_table,
7635 c_common_format_attribute_table): New.
7636 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7637 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7638 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
7639 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
7640 (LANG_HOOKS_INITIALIZER): Update.
7641 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
7642 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
7643 * target.h: Update comment.
7644 * tree.c (default_target_attribute_table): Remove.
7645 * tree.h (default_target_attribute_table, format_attribute_table,
7646 lang_attribute_table, lang_attribute_common): Remove.
7647objc:
7648 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7649 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7650
84f0ace0
JM
76512002-04-24 Jason Merrill <jason@redhat.com>
7652
7653 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
7654 * dwarf2out.c (dwarf_attr_name): Support it.
7655 (gen_array_type_die): Emit it.
7656 (lookup_type_die): No special handling for VECTOR_TYPE.
7657 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
7658
120eaf28
RH
76592002-04-24 Richard Henderson <rth@redhat.com>
7660
7661 * config/mips/mips.md (movdi_usd): Renumber.
7662
e732178c
DM
76632002-04-24 David S. Miller <davem@redhat.com>
7664
7665 PR target/6420
7666 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
7667 32-bit Sparc and current_function_returns_struct is true.
7668
e879eb2f
JH
7669Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
7670
7671 * loop.c (canonicalize_condition): Use gen_int_mode.
7672
4287a893
AH
76732002-04-24 Aldy Hernandez <aldyh@redhat.com>
7674
7675 * config/rs6000/altivec.h: Cleanup file. Add non individual
7676 variants.
7677 (vec_vaddubm): New.
7678 (vec_vadduhm): New.
7679 (vec_vadduwm): New.
7680 (vec_vaddfp): New.
7681 (vec_vaddcuw): New.
7682 (vec_vaddubs): New.
7683 (vec_vaddsbs): New.
7684 (vec_vadduhs): New.
7685 (vec_vadduws): New.
7686 (vec_vaddsws): New.
7687 (vec_vand): New.
7688 (vec_vandc): New.
7689 (vec_vavgub): New.
7690 (vec_vavgsb): New.
7691 (vec_vavguh): New.
7692 (vec_vavgsh): New.
7693 (vec_vavguw): New.
7694 (vec_vavgsw): New.
7695 (vec_vrfip): New.
7696 (vec_vcmpbfp): New.
7697 (vec_vcmpequb): New.
7698 (vec_vcmpequh): New.
7699 (vec_vcmpequw): New.
7700 (vec_vcmpeqfp): New.
7701 (vec_vcmpgefp): New.
7702 (vec_vcmpgtub): New.
7703 (vec_vcmpgtsb): New.
7704 (vec_vcmpgtuh): New.
7705 (vec_vcmpgtsh): New.
7706 (vec_vcmpgtuw): New.
7707 (vec_vcmpgtsw): New.
7708 (vec_vcmpgtfp): New.
7709 (vec_vcmpgefp): New.
7710 (vec_vcfux): New.
7711 (vec_vcfsx): New.
7712 (vec_vctsxs): New.
7713 (vec_vctuxs): New.
7714 (vec_vexptefp): New.
7715 (vec_vrfim): New.
7716 (vec_lvx): New.
7717 (vec_lvebx): New.
7718 (vec_lvehx): New.
7719 (vec_lde): Add vector float variant.
7720 (vec_lvewx): New.
7721 (vec_lvxl): New.
7722 (vec_vlogefp): New.
7723 (vec_vmaddfp): New.
7724 (vec_vmhaddshs): New.
7725 (vec_vmaxub): New.
7726 (vec_vmaxsb): New.
7727 (vec_vmaxuh): New.
7728 (vec_vmaxsh): New.
7729 (vec_vmaxuw): New.
7730 (vec_vmaxsw): New.
7731 (vec_vmaxsw): New.
7732 (vec_vmaxfp): New.
7733 (vec_vmrghb): New.
7734 (vec_vmrghh): New.
7735 (vec_vmrghw): New.
7736 (vec_vmrglb): New.
7737 (vec_vmrglh): New.
7738 (vec_vmrglw): New.
7739 (vec_vminub): New.
7740 (vec_vminsb): New.
7741 (vec_vminuh): New.
7742 (vec_vminsh): New.
7743 (vec_vminuw): New.
7744 (vec_vminsw): New.
7745 (vec_vminfp): New.
7746 (vec_vmladduhm): New.
7747 (vec_vmhraddshs): New.
7748 (vec_msumubm): New.
7749 (vec_vmsummbm): New.
7750 (vec_vmsumuhm): New.
7751 (vec_vmsumshm): New.
7752 (vec_vmsumuhs): New.
7753 (vec_vmsumshs): New.
7754 (vec_vmuleub): New.
7755 (vec_vmulesb): New.
7756 (vec_vmuleuh): New.
7757 (vec_vmulesh): New.
7758 (vec_vmuloub): New.
7759 (vec_mulosb): New.
7760 (vec_vmulouh): New.
7761 (vec_vmulosh): New.
7762 (vec_vnmsubfp): New.
7763 (vec_vnor): New.
7764 (vec_vor): New.
7765 (vec_vpkuhum): New.
7766 (vec_vpkuwum): New.
7767 (vec_vpkpx): New.
7768 (vec_vpkuhus): New.
7769 (vec_vpkshss): New.
7770 (vec_vpkuwus): New.
7771 (vec_vpkswss): New.
7772 (vec_vpkshus): New.
7773 (vec_vpkswus): New.
7774 (vec_vperm): New.
7775 (vec_vrefp): New.
7776 (vec_vrlb): New.
7777 (vec_vrlh): New.
7778 (vec_vrlw): New.
7779 (vec_vrfin): New.
7780 (vec_vrsqrtefp): New.
7781 (vec_vsel): New.
7782 (vec_vslb): New.
7783 (vec_vslh): New.
7784 (vec_vslw): New.
7785 (vec_vsldoi): New.
7786 (vec_vsl): New.
7787 (vec_vslo): New.
7788 (vec_vspltb): New.
7789 (vec_vsplth): New.
7790 (vec_vspltw): New.
7791 (vec_vspltisb): New.
7792 (vec_vspltish): New.
7793 (vec_vspltisw): New.
7794 (vec_vsrb): New.
7795 (vec_vsrh): New.
7796 (vec_vsrw): New.
7797 (vec_vsrab): New.
7798 (vec_vsrah): New.
7799 (vec_vsraw): New.
7800 (vec_vsr): New.
7801 (vec_vsro): New.
7802 (vec_stvx): New.
7803 (vec_stvebx): New.
7804 (vec_stvehx): New.
7805 (vec_stvewx): New.
7806 (vec_stvxl): New.
7807 (vec_vsububm): New.
7808 (vec_vsubuhm): New.
7809 (vec_vsubuwm): New.
7810 (vec_vsubfp): New.
7811 (vec_vsubcuw): New.
7812 (vec_vsububs): New.
7813 (vec_vsubsbs): New.
7814 (vec_vsubuhs): New.
7815 (vec_vsubshs): New.
7816 (vec_vsubuws): New.
7817 (vec_vsubsws): New.
7818 (vec_vsum4ubs): New.
7819 (vec_vsum4sbs): New.
7820 (vec_vsum4shs): New.
7821 (vec_vsum2sws): New.
7822 (vec_vsumsws): New.
7823 (vec_vrfiz): New.
7824 (vec_vupkhsb): New.
7825 (vec_vupkhpx): New.
7826 (vec_vupkhsh): New.
7827 (vec_vupklsb): New.
7828 (vec_vupklpx): New.
7829 (vec_vupklsh): New.
7830 (vec_vxor): New.
7831
cff27795
EB
78322002-04-23 Eric Botcazou <ebotcazou@multimania.com>
7833
7834 PR c/5430
7835 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
7836 added literals from substracted literals.
7837 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
7838 (fold) [associate]: Preserve MINUS_EXPR if needed.
7839
952bca84
ZW
78402002-04-23 Zack Weinberg <zack@codesourcery.com>
7841
7842 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
7843 are obsoleted.
7844
50cb2154
TT
78452002-04-23 Tom Tromey <tromey@redhat.com>
7846
7847 * gcc.c: Added --resource. For PR java/6314.
7848
271f61fb
DB
78492002-04-23 David O'Brien <obrien@FreeBSD.org>
7850
9566d1e9 7851 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
271f61fb
DB
7852 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
7853 these libraries.
7854
bdabbc80
DB
78552002-04-23 David O'Brien <obrien@FreeBSD.org>
7856
7857 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
7858
74411039
JH
7859Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
7860
7861 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
7862 workaround.
7863 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
7864 (ix86_expand_clrstr): Fix typo.
7865 * loop.c (gen_load_of_final_value): New.
7866 (loop_givs_rescan, strength_reduce, check_dbra_loop):
7867 Use it.
7868
1a887f86
RS
78692002-04-23 Roger Sayle <roger@eyesopen.com>
7870
7871 * builtins.c (builtin_memset_gen_str): New function.
7872 (expand_builtin_memset): Optimize the case of constant length, but
7873 unknown value.
7874
8d3441e0
AH
78752002-04-23 Aldy Hernandez <aldyh@redhat.com>
7876
cff27795
EB
7877 * config/rs6000/altivec.h (vec_step): Remove extraneous
7878 parentheses.
7879 (vec_ctu): Cast return.
8d3441e0 7880
f6f315fe
AM
78812002-04-23 Alan Modra <amodra@bigpond.net.au>
7882
7883 PR target/6413
7884 * function.h: (struct function): Add profile_label_no field.
7885 (current_function_profile_label_no): Define.
7886 * function.c: (profile_label_no): New static var.
7887 (expand_function_start): Increment it, and copy to
7888 current_function_profile_label_no.
7889 * output.h (profile_label_no): Delete.
7890 * final.c (profile_label_no): Delete.
7891 (profile_function): Use current_function_profile_label_no.
7892 (final_end_function): Don't increment profile_label_no here.
7893 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
7894 profile_label_no with current_function_profile_label_no.
7895 * config/pa/pa.c (current_function_number): Delete.
7896 (pa_output_function_prologue): Don't output profile label here.
7897 (hppa_profile_hook): Use label_no param rather than
7898 current_function_number.
7899 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
7900 * config/pa/pa.h: .. here.
7901 (FUNCTION_PROFILER): Output profile label here.
7902
d239cdc0
EC
79032002-04-22 Eric Christopher <echristo@redhat.com>
7904
7905 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
7906 patch of 2002-04-09 due to binutils issues.
7907 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
7908
04428ad4
AH
79092002-04-22 Aldy Hernandez <aldyh@redhat.com>
7910
cff27795
EB
7911 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
7912 constraint to 'o' for m=r and r=m alternatives.
7913 ("*movv8hi_internal1"): Same.
7914 ("*movv16qi_internal1"): Same.
7915 ("*movv4sf_internal1"): Same.
04428ad4 7916
2adc7f12
JJ
79172002-04-22 Janis Johnson <janis187@us.ibm.com>
7918
7919 * rtl.h (RTX_FLAG): New macro.
7920 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
7921 * final.c (alter_subreg): Use macro to access rtx flag.
7922 * integrate.c (copy_rtx_and_substitute): Use new access macro.
7923 * print-rtl.c (print_rtx): Use new access macro.
7924
7925 * cse.c (insert): Check rtx code before accessing flag.
7926
7927 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
7928 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
7929 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
7930 convert_const_symbol_ref, make_canonical, make_alternative_compare,
7931 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
7932 simplify_test_exp, optimize_attrs, simplify_by_exploding,
7933 find_and_mark_used_attributes, unmark_used_attributes,
7934 add_values_to_cover, simplify_with_current_value,
7935 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
7936 copy_rtx_unchanging, main): Use new access macros.
7937
b7c89afe
TR
79382002-04-22 Tom Rix <trix@redhat.com>
7939
7940 * expmed.c (init_expmed): Generate shifted constant once.
7941
9340544b
ZW
79422002-04-22 Zack Weinberg <zack@codesourcery.com>
7943
7944 * c-lex.c (lex_charconst): Call convert to get constant in
7945 proper type; don't just smash the type field.
7946 Fixes PR c/6300.
7947
7948 * config.gcc: Add list of obsolete configurations. Disallow
7949 building these without --enable-obsolete.
7950 * doc/install.texi: Document --enable-obsolete and obsoletion
7951 policy. Mention obsoletion of individual targets in
7952 appropriate places.
7953
f942d7a5
RH
79542002-04-22 Richard Henderson <rth@redhat.com>
7955
7956 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
7957
79582002-04-22 Mark Mitchell <mark@codesourcery.com>
8ed8f731
MM
7959
7960 PR f/6138.
7961 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
7962 (walk_fixup_memory_subreg): Likewise.
7963 (fixup_var_refs_insn): Adjust accordingly.
7964 (fixup_var_refs_1): Likewise.
7965
232b0b45
UW
79662002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
7967
7968 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
7969 LIBPATH_ARCH64_SPEC): Define.
7970 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
7971 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
7972 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
7973 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
7974
1b61552b
JS
79752002-04-22 Joel Sherrill <joel@OARcorp.com>
7976
7977 * gthr-rtems.h: Correct prototypes to remove warnings.
7978
0fe854a7
RH
79792002-04-22 Richard Henderson <rth@redhat.com>
7980
7981 PR c/6344
7982 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
7983
7984 * gcse.c (free_insn_expr_list_list): New.
7985 (clear_modify_mem_tables): Use it. Fix bit set usage.
7986 (canon_list_insert): Use EXPR_LISTs for expressions.
7987 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
7988
af0d16cd
NB
79892002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
7990
7991 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
7992 file change and include code to _cpp_pop_buffer.
7993 * cpphash.h (struct pending_option): Predeclare.
7994 (struct cpp_reader): New member next_include_file.
7995 (_cpp_pop_file_buffer): Update.
7996 (_cpp_push_next_buffer): Update, rename.
7997 * cppinit.c (cpp_destroy): Free include chain and pending here.
7998 (cpp_finish_options): Simplify.
7999 (_cpp_push_next_buffer): Rename and clean up.
8000 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
8001 Clarify.
8002 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
8003
0d918572
AH
80042002-04-22 Aldy Hernandez <aldyh@redhat.com>
8005
0fe854a7
RH
8006 * config/rs6000/altivec.h (vec_xor): Add variant for both args
8007 being vector signed int.
8008 (vec_andc): Same.
8009 (vec_xor): Add variant for both args being vector signed char.
8010 Remove redundant variant.
8011 (vec_andc): Same.
0d918572 8012
77e2c290
DM
80132002-04-21 David S. Miller <davem@redhat.com>
8014
8015 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
8016 compare mode in output RTL.
8017
ee2ca2a2
DE
80182002-04-22 David Edelsohn <edelsohn@gnu.org>
8019
8020 * config/rs6000/rs6000.c (rs6000_override_options): Correct
8021 style and formatting of previous patch.
8022
894bdff6
AM
80232002-04-22 Alan Modra <amodra@bigpond.net.au>
8024
8025 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
8026 flag_pic for ABI_AIX.
8027
562a5c27
NB
80282002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8029
8030 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
8031 * cppfiles.c (read_include_file): Similarly.
8032 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
8033 uxstrdup ustrchr, ufputs): Similarly.
8034 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
8035 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
8036 cpp_ideq, parse_identifier, parse_number): Similarly.
8037 * cpplib.c (struct directive, dequote_string, D, run_directive,
8038 cpp_push_buffer): Similarly.
8039 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
8040 _cpp_create_definition, check_trad_stringification,
8041 cpp_macro_definition): Similarly.
8042
9ac3b1be
NB
80432002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8044
8045 * cppmacro.c (funlike_invocation_p): Don't step back
8046 over CPP_EOF.
8047
9dda4cc8
DE
80482002-04-21 David Edelsohn <edelsohn@gnu.org>
8049
8050 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
8051 labelno.
8052
20764052
JM
80532002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
8054
8055 * doc/invoke.texi: Remove Chill references.
8056 * doc/gcc.texi: Update last modified date.
8057
26b29884
KH
80582002-04-20 Kazu Hirata <kazu@hxi.com>
8059
8060 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
8061 push and pop. Replace add.l with add.w.
8062
59184677
TM
80632002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8064
8065 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
8066 multiply instructions for H8/300H case.
8067
b1113e0a
TM
80682002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8069
8070 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
8071 Bum three instructions from each routine.
8072
b03e38e1
NB
80732002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
8074
8075 * Makefile.in: Update.
8076 * decl.c (push_c_function_context, pop_c_function_context,
8077 mark_c_function_context): Rename for consistency.
8078 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
8079 * c-tree.h (push_c_function_context, pop_c_function_context,
8080 mark_c_function_context): Rename for consistency.
8081 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8082 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8083 * function.c (init_lang_status, save_lang_status,
8084 restore_lang_status, mark_lang_status, free_lang_status):
8085 Move to langhooks.h.
8086 (push_function_context_to, pop_function_context_from,
8087 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
8088 Update.
8089 * function.h (init_lang_status, save_lang_status,
8090 restore_lang_status, mark_lang_status, free_lang_status):
8091 Move to langhooks.h.
8092 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
8093 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
8094 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
8095 LANG_HOOKS_FUNCTION_INITIALIZER): New.
8096 (LANG_HOOKS_INITIALIZER): Update.
8097 (lhd_do_nothing_f): New.
8098 * langhooks.h (struct lang_hooks_for_functions): New.
8099 (struct lang_hooks): New hooks.
8100 * langhooks.c (lhd_do_nothing_f): New.
8101objc:
8102 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8103 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8104
db430d26
DM
81052002-04-19 David S. Miller <davem@redhat.com>
8106
8107 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
8108 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
8109
0f2a3457
JJ
81102002-04-19 Jakub Jelinek <jakub@redhat.com>
8111
8112 PR optimization/3756
8113 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
8114 x = ((int) y < 0) ? cst1 : cst2.
8115
ce5e43d0
JJ
81162002-04-19 Jakub Jelinek <jakub@redhat.com>
8117
8118 PR c/6358
8119 * function.c: Reapply patch for c/6358.
8120 (expand_function_end): Copy decl_rtl's mode, not
8121 current_function_return_rtx mode.
8122
81232002-04-19 Joel Sherrill <joel@OARcorp.com>
9eb83f6c
JS
8124
8125 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
8126 targets.
8127
40e7f8ea
TT
81282002-04-19 Tom Tromey <tromey@redhat.com>
8129
8130 * doc/install.texi (Specific): Update status of Solaris 2.8.
8131 For PR libgcj/6158.
8132
62a12b27
AS
81332002-04-19 Andreas Schwab <schwab@suse.de>
8134
8135 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
8136 (PUT_REAL): Restore old definition.
8137
1405141b
DN
81382002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
8139 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8140
8141 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
8142 binutils 2.11.2 and higher generate smaller binaries than Sun's
8143 native tools.
8144
303a3927
MM
81452002-04-19 Mark Mitchell <mark@codesourcery.com>
8146
8147 PR c++/6352
8148 * toplev.c (rest_of_compilation): Do not defer functions for which
8149 TREE_SYMBOL_REFERENCED has already been set.
8150
de80110b
JH
8151Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
8152
8153 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
8154 alternative.
8155
ab393bf1
NB
81562002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
8157
8158 * builtins.c: Include langhooks.h.
8159 (lang_type_promotes_to): Remove.
8160 (expand_builtin_va_arg): Use new hook.
8161 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
8162 (simple_type_promotes_to): Move to c-typeck.c.
8163 * c-common.h (simple_type_promotes_to): Remove.
8164 * c-decl.c (duplicate_decls, grokdeclarator): Update.
8165 * c-format.c: Include langhooks.h.
8166 (check_format_types): Update.
8167 * c-tree.h (c_type_promotes_to): New.
8168 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
8169 (type_lists_compatible_p): Update.
8170 * langhooks-def.h (lhd_type_promotes_to): New.
8171 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
8172 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8173 * langhooks.c (lhd_type_promotes_to): New.
8174 * langhooks.h (struct lang_hooks_for_types): New hook.
8175 * tree.h (lang_type_promotes_to): Remove.
8176objc:
8177 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
8178
0cd3301b
RH
81792002-04-18 Richard Henderson <rth@redhat.com>
8180
58533fa2 8181 * function.c: Revert patch for c/6358.
0cd3301b
RH
8182
81832002-04-18 Richard Henderson <rth@redhat.com>
8184
58533fa2
RH
8185 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
8186 blocks. Handle multiple references to the TRAP block. Handle
8187 non-adjacent THEN and OTHER blocks.
0cd3301b 8188
58533fa2
RH
81892002-04-18 Richard Henderson <rth@redhat.com>
8190
8191 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
8192 crash with no type for by-mode libcalls.
8193
8194 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
0cd3301b 8195
57174693
BW
81962002-04-18 Bob Wilson <bob.wilson@acm.org>
8197
8198 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
8199 __xtensa_nonlocal_goto): Use a syscall instructions to flush
8200 the register windows.
8201
46468cd9
ZW
82022002-04-18 Zack Weinberg <zack@codesourcery.com>
8203
8204 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
8205 appropriate. Document need for extended precision even when
8206 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
8207 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
8208 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
8209 instead of relying on later syntax error when REAL_WIDTH > 5.
8210 * real.c: Define NE based only on whether or not we have a
8211 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
8212 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
8213 define GET_REAL and PUT_REAL as simple memcpy operations; no
8214 need to byteswap or round.
8215 Use #error instead of #ifdef-ing out the entire file, for
8216 prompt error detection.
8217
8218 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
8219
2f82dbf8
DM
82202002-04-18 David S. Miller <davem@redhat.com>
8221
8222 * config/sparc/sparc.h (BRANCH_COST): Define.
8223
8224 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
8225 does it.
8226
566576e7
HPN
82272002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
8228
8229 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
8230 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
8231 propagate_block calls after relaxation loop using new variable
8232 stabilized_prop_flags.
8233
51dcde6f
RH
82342002-04-18 Richard Henderson <rth@redhat.com>
8235
8236 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
8237 (ia64_va_arg): Expect variable sized types by reference.
8238 * config/ia64/ia64-protos.h: Update.
46468cd9 8239 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
51dcde6f
RH
8240 ia64_function_arg_pass_by_reference.
8241
26406018
RH
82422002-04-18 Richard Henderson <rth@redhat.com>
8243
46468cd9
ZW
8244 * ifcvt.c: Include except.h.
8245 (block_has_only_trap): Break out from find_cond_trap.
8246 (find_cond_trap): Use it. Always delete the trap block.
8247 (merge_if_block): Allow then block null. Be less simplistic about
8248 what insns can end a block.
8249 * Makefile.in (ifcvt.o): Depend on except.h.
96b453dc 8250
26406018
RH
8251 * config/ia64/ia64.md (trap, conditional_trap): New.
8252
a3acf46d
JJ
82532002-04-18 Jakub Jelinek <jakub@redhat.com>
8254
8255 PR c/6358
8256 * function.c (assign_parms): Assign hard current_function_return_rtx
8257 register here...
8258 (expand_function_end): ...not here.
8259
7a228918
NB
82602002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
8261
8262 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8263 * c-tree.h (c_incomplete_type_error): New.
8264 * c-typeck.c (require_complete_type, build_component_ref): Update.
8265 (incomplete_type_error): Rename.
8266 * langhooks-def.h (lhd_incomplete_type_error): New.
8267 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
8268 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8269 * langhooks.c (lhd_incomplete_type_error): New.
8270 * langhooks.h (struct lang_hooks_for_types): New hook.
8271 * tree.c (size_in_bytes): Use new hook.
8272 * tree.h (incomplete_type_error): Remove.
8273objc:
8274 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8275
f18664c1
ZW
82762002-04-18 Zack Weinberg <zack@codesourcery.com>
8277
8278 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
8279 TARGET_FLOAT_FORMAT blocks.
8280
8ecab453
GP
82812002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8282
8283 * doc/install.texi (Downloading the source): Do not mention Chill
8284 any longer, but mention Ada.
8285 (Configuration): Do not mention Chill any longer.
8286
528d8489
HPN
82872002-04-18 Hans-Peter Nilsson <hp@axis.com>
8288
8289 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
8290
91da27c5
JH
8291Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
8292
8293 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
8294 in last patch.
8295
a32db605
JJ
82962002-04-18 Jakub Jelinek <jakub@redhat.com>
8297
8298 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
8299 instead of unsigned_type.
8300
5a28d8cc
JH
8301Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
8302
8303 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
8304 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
8305 later.
8306
3d980b9f
BS
83072002-04-18 Bernd Schmidt <bernds@redhat.com>
8308
8309 * attribs.c (vector_type_node_list): New static variable.
8310 (handle_vector_size_attribute): Use it to avoid generating a
8311 new type node each time we are called.
8312
2e676d78
BS
8313 * combine.c (subst): Avoid trying to make a vector mode subreg of
8314 an integer constant.
8315 (gen_lowpart_for_combine): Likewise.
46468cd9 8316
58c2956c
RS
83172002-04-18 Roger Sayle <roger@eyesopen.com>
8318 Jakub Jelinek <jakub@redhat.com>
8319
8320 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
8321 for integer constant c (if x has unsigned type or sign bit is not
8322 set in c). This folds the zero/sign extension into the bit-wise and
8323 operation.
8324
692efa8e
JJ
83252002-04-18 Jakub Jelinek <jakub@redhat.com>
8326
8327 PR middle-end/6205
8328 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
8329 otherwise xorps.
8330
1372d4ce
NY
83312002-04-17 NIIBE Yutaka <gniibe@m17n.org>
8332
8333 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
8334
169ce44d
NC
83352002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
8336
8337 * gcc.c (read_specs): Detect and fail if an attempt is made to
8338 rename a spec string to an already existing string.
8339
b30d2115
UW
83402002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8341
8342 * config/s390/s390.c (legitimize_pic_address): Do not generate
8343 illegal address constant without CONST.
8344
d6964c30
KG
83452002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8346
8347 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
8348 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8349
7c82a1ed
UW
83502002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8351
8352 PR optimization/6305
8353 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
8354 to make sure previous reloads are taken into account. Generate
8355 better code if one operand is an in-range immediate constant.
8356
58db9d1a
AH
83572002-04-16 Andrew Haley <aph@cambridge.redhat.com>
8358
8359 * doc/install.texi (Building): libgcj requires GNU make.
8360
2a732575
JJ
83612002-04-17 Jakub Jelinek <jakub@redhat.com>
8362
8363 PR bootstrap/6315
8364 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
8365 even if hard quad and register is not floating.
8366 (movtf reg<-mem split): Disallow splitting if hard quad and
8367 register is floating.
8368 (movtf mem<-reg split): Likewise.
8369 * config/sparc/sparc.c (fp_register_operand): New predicate.
8370 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
8371
75a65e46
ZW
83722002-04-17 Zack Weinberg <zack@codesourcery.com>
8373
8374 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
8375 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
8376 (unprotoize.o): Ditto. Build from protoize.c. Define
8377 UNPROTOIZE on command line.
8378 * protoize.c: Include cppdefault.h. Delete include_defaults.
8379 (in_system_include_dir): Use cpp_include_defaults (defined in
8380 cppdefault.o).
8381 * unprotoize.c: Delete file.
8382
650f0e97
AH
83832002-04-17 Aldy Hernandez <aldyh@redhat.com>
8384
46468cd9
ZW
8385 * config/rs6000/altivec.h (vec_ld): Add array variants.
8386 (vec_lde): Same.
8387 (vec_ldl): Same.
650f0e97 8388
71a0ab0c 83892002-04-17 Alan Matsuoka <alanm@redhat.com>
46468cd9 8390 Aldy Hernandez <aldyh@redhat.com>
71a0ab0c 8391
46468cd9
ZW
8392 * config/rs6000/altivec.h: Define __ALTIVEC__.
8393 (bool): New.
8394 (__pixel): New.
8395 (pixel): New.
8396 (vec_cfux): New.
8397 (vec_vmaddfp): New.
8398 (vec_vsldoi): New.
8399 Add parentheses to all macro arguments.
71a0ab0c 8400
ff2c46ac
RH
84012002-04-16 Richard Henderson <rth@redhat.com>
8402
8403 PR c++/6320
8404 * except.c (remove_eh_handler): Insert inner regions at beginning
8405 of sibling chain. Refactor expressions.
8406
f1ba94dd
RH
84072002-04-16 Richard Henderson <rth@redhat.com>
8408
f0871dfe
RH
8409 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
8410 * config/sparc/sol2-gas-bi.h: New file.
8411 * config.gcc (sparc*-solaris): Add it as needed.
8412 * configure.in (AS_SPARC64_FLAG): Remove check.
8413 * config.in, configure: Regenerate.
8414
8415 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
8416
84172002-04-16 Richard Henderson <rth@redhat.com>
8418
8419 * config/mips/mips.c (override_options): Don't override N32 for
8420 a 64-bit ISA.
409d3c60 8421
f1ba94dd
RH
8422 PR 6202
8423 * config/mips/mips.md (can_delay): Split out of existing define_delays.
8424 (HILO_delay): Set can_delay false.
8425
178c3eff
DJ
84262002-04-16 Dale Johannesen <dalej@apple.com>
8427
8428 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
8429 instruction addresses.
8430 (rs6000_output_function_epilogue): Likewise.
8431
7d6f6369
PC
84322002-04-16 Paolo Carlini <pcarlini@unitus.it>
8433
8434 * c-parse.in (poplevel, compstmt_start,
8435 compstmt_primary_start): Add ending ';', in accordance
8436 with POSIX.
8437
8947df0c
RH
84382002-04-16 Richard Henderson <rth@redhat.com>
8439
8440 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
8441 Adjust tm_file order to get TARGET_DEFAULT set properly.
8442 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
8443 * doc/install.texi (sparc-solaris): Update.
8444
3148ad6d
DJ
84452002-04-16 Dale Johannesen <dalej@apple.com>
8446
8447 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
8448 comparison operands do not match each other or if modes of
8449 conditions do not match result.
8450
014cb9b6 84512002-04-16 Hartmut Penner <hpenner@de.ibm.com>
562a69be 8452
014cb9b6
HP
8453 PR target/6305
8454 * config/s390/s390.md (mulsidi3): Set both subregs of the
46468cd9 8455 multiword register.
562a69be 8456
014cb9b6 84572002-04-16 Aldy Hernandez <aldyh@redhat.com>
4c8c0dec 8458
8947df0c 8459 * config/rs6000/altivec.h (vec_addc): Type check.
4c8c0dec 8460
a9772b60
JJ
84612002-04-16 Jakub Jelinek <jakub@redhat.com>
8462
8463 PR middle-end/6279
8464 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
8465
8466 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
8467
861829ed
RH
84682002-04-15 Richard Henderson <rth@redhat.com>
8469
8470 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
8471 call_really_used_regs too.
8472
bcf2fe9c
RH
84732002-04-15 Richard Henderson <rth@redhat.com>
8474
8475 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
8476
629111c7
DM
84772002-04-15 David S. Miller <davem@redhat.com>
8478
8479 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
8480 as being CLOBBERed.
8481
98ef3137
JJ
84822002-04-16 Jakub Jelinek <jakub@redhat.com>
8483
8484 PR c/6290
8485 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
8486 CONST_VECTOR is { 0, ... 0 }.
8487
0aa911c5
LR
84882002-04-15 Loren J. Rittle <ljrittle@acm.org>
8489
8490 * doc/install.texi (Installing GCC: Configuration): Clarify
8491 the only supported ways to configure gcc.
8492
83248d49 84932002-04-15 Roland McGrath <roland@frob.com>
46468cd9 8494
83248d49
RM
8495 * config.gcc (alpha*-*-gnu*): New target configuration.
8496 * config/alpha/gnu.h: New file for it.
8497 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
8498
b2123dc0
MM
84992002-04-16 Mark Mitchell <mark@codesourcery.com>
8500
8501 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
8502 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
8503 * tree.h (expand_start_stmt_expr): Update prototype.
8504 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
8505 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
8506 on the STMT_EXPR created for the inline function.
46468cd9 8507
8fe2d853
RH
85082002-04-15 Richard Henderson <rth@redhat.com>
8509
8510 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
8511 config/i386/linux-aout.h, config/i386/linux-oldld.h,
8512 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
8513 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
8514 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
8515 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
8516 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
8517 Define __gnu_linux__, not gnu_linux.
8518 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
8519
07cdae91
MM
85202002-04-15 Mark Mitchell <mark@codesourcery.com>
8521
8522 Remove Chill front end.
8523 * gcc.c (default_compilers): Remove Chill entries.
8524 * ch: Remove directory.
8525 * doc/frontends.texi: Remove information about Chill.
8526 * doc/sourcebuild.texi: Likewise.
8527 * doc/standards.texi: Likewise.
8528
41823c5e
DR
85292002-04-15 Douglas B Rupp <rupp@gnat.com>
8530
8531 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
8532 (LONGLONG_STANDALONE): Define.
8533
eb29ddb6
DM
85342002-04-15 David S. Miller <davem@redhat.com>
8535
8536 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
8537 Call emit_library_call with LCT_NORMAL.
8538 (sparc_initialize_trampoline): Use LCT_foo instead of
8539 magic constant in emit_library_call invocations.
8540 (sparc64_initialize_trampoline): Likewise.
8541 (sparc_profile_hook): Likewise.
8542 * config/sparc/sparc.md: Likewise.
8543
8544 * config/sparc/sparc.c (sparc_extra_constraint_check):
8545 Fix type of argument 'c'.
8546 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
8547 Likewise.
8548
bd6bec6b
GDR
85492002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
8550
8551 * diagnostic.h (output_buffer_state): Redefine.
8552 (output_format_decoder): New macro.
8553 (output_prefixing_rule): Likewise.
8554 (output_line_cutoff): Likewise.
8555 (diagnostic_format_decoder): Adjust.
8556 (diagnostic_prefixing_rule): Likewise.
8557 (diagnostic_line_cutoff): Likewise.
8558 (diagnostic_state): Likewise.
8559 (diagnostic_kind_count): Likewise.
8560 (diagnostic_buffer): Now a macro.
8561
8562 * diagnostic.c (diagnostic_buffer): Remove definition.
8563 (output_is_line_wrapping): Adjust.
8564 (set_real_maximum_length): Likewise.
8565 (output_set_maximum_length): Likewise.
8566 (init_output_buffer): Likewise.
8567 (lhd_print_error_function): Likewise.
8568 (output_do_verbatim): Likewise.
8569
ebef4e8c
NB
85702002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
8571
8572 * cpperror.c (print_location): Don't print include chain
8573 if line == 0.
8574 (cpp_begin_message): Update to use DL_ macros.
8575 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8576 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8577 cpp_notice, cpp_notice_from_errno): Remove.
8578 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8579 level.
8580 (cpp_errno): New.
8581 * cppexp.c (CPP_ICE): Remove.
8582 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
8583 lex, integer_overflow, _cpp_parse_expr): Update.
8584 * cppfiles.c (read_include_file, find_include_file,
8585 handle_missing_header, _cpp_read_file, remap_filename): Update.
8586 * cpphash.h (enum error_type): Remove.
8587 (_cpp_begin_message): Update.
8588 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
8589 cpp_handle_option, cpp_post_options): Update.
8590 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
8591 skip_whitespace, parse_identifier, parse_slow, parse_string,
8592 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
8593 cpp_interpret_charconst): Update.
8594 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
8595 lex_macro_node, do_undef, glue_header_name, parse_include,
8596 do_include_common, read_flag, do_line, do_linemarker, do_ident,
8597 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
8598 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
8599 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
8600 _cpp_pop_buffer, do_diagnostic): Update.
8601 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
8602 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
8603 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8604 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8605 cpp_notice, cpp_notice_from_errno): Remove.
8606 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8607 level.
8608 (cpp_errno): New.
8609 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
8610 collect_args, enter_macro_context, save_parameter, parse_params,
8611 _cpp_create_definition, check_trad_stringification,
8612 cpp_macro_definition): Update.
8613 * cppmain.c (cpp_preprocess_file): Update.
8614 * fix-header.c (read_scan_file): Update.
8615
c19a3859
AS
86162002-04-14 Andreas Schwab <schwab@suse.de>
8617
8618 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
8619
10fdbed6
JD
86202002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8621
8622 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
8623
77660a9a
MM
86242002-04-13 Mark Mitchell <mark@codesourcery.com>
8625
8626 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
8627 not gnu_hurd.
8628
e0ff1ded
HPN
86292002-04-13 Hans-Peter Nilsson <hp@axis.com>
8630
8631 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
8632
2341c7ea
JS
86332002-04-13 Joel Sherrill <joel@OARcorp.com>
8634
8635 * config/sparc/t-elf: Enable v8 multilibs. Impacts
8636 sparc-elf and sparc-rtems targets.
8637
d29350c0
MM
86382002-04-13 Mark Mitchell <mark@codesourcery.com>
8639
8640 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
8641 defined, and __gnu_hurd__ wherever __GNU__ is defined.
8642 * arm/linux-elf.h: Likewise.
8643 * cris/aout.h: Likewise.
8644 * cris/linux.h: Likewise.
8645 * i370/linux.h: Likewise.
8646 * i386/gnu.h: Likewise.
8647 * i386/linux-aout.h: Likewise.
8648 * i386/linux-oldld.h: Likewise.
8649 * i386/linux.h: Likewise.
8650 * i386/linux64.h: Likewise.
8651 * ia64/linux.h: Likewise.
8652 * m68k/linux-aout.h: Likewise.
8653 * m68k/linux.h: Likewise.
8654 * mips/linux.h: Likewise.
8655 * pa/pa-linux.h: Likewise.
8656 * pj/linux.h: Likewise.
8657 * rs6000/sysv4.h: Likewise.
8658 * s390/linux.h: Likewise.
8659 * sh/linux.h: Likewise.
8660 * sparc/linux-aout.h: Likewise.
8661 * sparc/linux.h: Likewise.
8662 * sparc/linux64.h: Likewise.
8663 * xtensa/linux.h: Likewise.
8664
fc552851
RS
86652002-04-13 Richard Sandiford <rsandifo@redhat.com>
8666
8667 * stmt.c (check_unique_operand_names): Expect operand names to
8668 be strings rather than identifiers. Use simple_cst_equal to
8669 compare them.
8670 (resolve_operand_name_1): Make same identifier to string change here.
8671 * c-parse.in (asm_operand): Convert a named operand into a string.
8672 * cp/parse.y (asm_operand): Likewise.
8673
1d405c5e
AS
86742002-04-13 Andreas Schwab <schwab@suse.de>
8675
8676 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
8677
c740732f
MM
86782002-04-12 Mark Mitchell <mark@codesourcery.com>
8679
8680 Revert these changes:
8681
8682 2002-04-06 Mark Mitchell <mark@codesourcery.com>
8683
8684 PR c++/5571
8685 * stor-layout.c (layout_decl): Reset the RTL for the decl.
8686
3fc602a0
RH
86872002-04-12 Richard Henderson <rth@redhat.com>
8688
8689 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
8690 (sparc*-*-solaris): Clean up header files.
8691 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
8692 and plan on generating 64-bit code.
8693 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
8694 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
8695 * config/sparc/sol2-sld-64.h: Rename ...
8696 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
8697 for AS_SPARC64_FLAG not defined.
8698 * config/sparc/sol2-gld-bi.h: New.
8699 * config/sparc/sol2-sld.h: Remove.
8700 * config/sparc/sol26-sld.h: New.
8701 * config/sparc/sol2.h: Tidy comments.
8702 * doc/install.texi: Document sparc-solaris configury changes.
8703
2f15e255
RH
87042002-04-12 Richard Henderson <rth@redhat.com>
8705
8706 * recog.c (offsettable_address_p): Match the logic in adjust_address.
8707
8708 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
8709 in 64-bit mode only. Use only for 32-bit or MEDLOW.
8710
cc8475cb
RO
87112002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8712
8713 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
8714
6f133a4a
JL
8715Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
8716
ef1b8858 8717 * pa.c (pa_can_combine_p): Call extract_insn before calling
6f133a4a
JL
8718 constrain_operands.
8719
1329e600
DR
87202002-04-12 Douglas B Rupp <rupp@gnat.com>
8721
8722 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
8723 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
8724 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2d424b9f 8725 (CPP_PREDEFINES): Handle __declspec.
1329e600
DR
8726 * config/i386/t-interix (USER_H): Remove.
8727
0339d239
DD
87282002-04-12 DJ Delorie <dj@redhat.com>
8729
8730 * integrate.c (compare_blocks): Make comparisons safe for when
8731 sizeof(int) < sizeof(char *).
8732 (find_block): Likewise.
8733
cc4d5fec
JH
87342002-04-12 Jan Hubicka <jh@suse.cz>
8735 David Edelsohn <edelsohn@gnu.org>
8736
8737 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
8738 registers.
8739 (symbol_ref_operand): New.
8740 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
8741 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
8742
93215a1b
AS
87432002-04-12 Andreas Schwab <schwab@suse.de>
8744
8745 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
8746 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
8747 overrides the definition in config/svr4.h.
46468cd9 8748
1d80248e
EN
87492002-04-12 Eric Norum <eric.norum@usask.ca>
8750
8751 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
8752 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
8753 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
8754 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
8755 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
8756 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
8757 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
8758 definitions to config/rtems.h and make the targets more similar.
8759
fa1591cb
RK
8760Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8761
fa06ab5c
RK
8762 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
8763 POINTERS_EXTEND_UNSIGNED.
8764 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
8765 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
8766
fa1591cb
RK
8767 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
8768 not specified.
8769
12e85a0e
R
8770Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
8771
8772 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
8773 depends on TARGET_SHMEDIA, not TARGET_SH5.
8774
1ab3e58a
HPN
87752002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
8776
8777 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
8778 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
8779
18778292
R
8780Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
8781
8782 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
8783 no r0 clobber.
8784
9002507c
AS
87852002-04-12 Andreas Schwab <schwab@suse.de>
8786
8787 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
8788
9be40833
RH
87892002-04-12 Richard Henderson <rth@redhat.com>
8790
8791 PR bootstrap/4191
8792 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
8793
8794 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
8795 modes spanning multiple hard regs.
46468cd9 8796
9be40833
RH
8797 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
8798
3d9268b6
JDA
87992002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8800
8801 * pa.c (pa_output_function_prologue): Don't accumulate the total
8802 number of code bytes when using TARGET_64BIT, or gas, SOM and not
8803 the portable runtime.
8804 (output_deferred_plabels): Handle 64bit plabels.
8805 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
8806 generating pic code using the GAS assembler for object formats that
8807 are not SOM (ie., ELF32 and ELF64).
8808 (output_millicode_call): Check attribute type if attribute length is 28.
8809 Likewise use $PIC_pcrel$0. Only call get_attr_length and
8810 dbr_sequence_length once.
8811 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
8812 dbr_sequence_length once.
8813 * pa.h (TARGET_SOM): Define if not defined.
8814 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
8815 with GAS and not SOM.
8816 (jump, call_internal_reg, call_value_internal_reg): Likewise.
8817 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
8818
d360fd18
DB
88192002-04-11 David O'Brien <obrien@FreeBSD.org>
8820
8821 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
8822 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
8823 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
8824 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
8825 elfos.h and dbxelf.h values are fine now.
8826 * config/i386/freebsd.h, config/alpha/freebsd.h
8827 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
8828
5b8fcab6
DB
88292002-04-11 David O'Brien <obrien@FreeBSD.org>
8830
8831 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
8832 or set Acpu or Amachine. Reformat.
8833 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8834 define.
8835 (LINK_SPEC): Do not need to undef.
8836 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
8837 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
8838 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8839 define.
8840 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
8841 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
8842 (LINK_SPEC): Do not need to undef.
8843 (DONT_USE_BUILTIN_SETJMP): Do not define.
8844 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
8845 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
8846 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
8847 Remove trailing spaces.
8848 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
8849 __ELF__, or set Acpu or Amachine. Reformat.
8850 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8851 define.
8852
fee42cc1
DB
88532002-04-11 David O'Brien <obrien@FreeBSD.org>
8854
8855 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
8856 all other *-*-freebsd* targets.
8857
77a403e4
RH
88582002-04-11 Richard Henderson <rth@redhat.com>
8859
8860 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
8861
cf0005c6
DB
88622002-04-11 David O'Brien <obrien@FreeBSD.org>
8863
8864 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
8865 Include {cpu}/{cpu}.h thru tm_file.
8866 (alpha*-*-linux*ecoff): Remove target.
8867 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
8868 (LINK_SPEC): Remove, is not OS independent.
8869 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
8870 (LINK_SPEC): Do not need to #undef any longer.
8871 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
8872 any longer.
8873 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
8874 __ELF__.
8875 (LINK_SPEC): Moved here from alpha/elf.h.
8876 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
8877 SUB_CPP_PREDEFINES.
8878 * config/alpha/linux-ecoff.h: Remove.
8879 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
8880 (CPP_SPEC): Define _POSIX_SOURCE as needed.
8881 (CPP_SUBTARGET_SPEC): Do not define.
8882 (LINK_SPEC): Do not need to #undef any longer.
8883 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
8884 * config/alpha/vms.h: Likewise.
8885
9be40833 88862002-04-11 Richard Sandiford <rsandifo@redhat.com>
7825d1cf
RS
8887
8888 * doc/extend.texi: Remove old claim that typedefs cannot have
8889 an alignment attribute.
8890
010f87c4
JJ
88912002-04-11 Jakub Jelinek <jakub@redhat.com>
8892
8893 PR optimization/6177
8894 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
8895 bitpos is 0 and bitsize CONCAT size.
8896
578fc63d
JJ
88972002-04-11 Jakub Jelinek <jakub@redhat.com>
8898
8899 PR c/6223
8900 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
8901
bf9b85ce
DB
89022002-04-10 David O'Brien <obrien@FreeBSD.org>
8903
8904 * config/alpha/freebsd.h: Minor reformatting.
8905 (CPP_SPEC): Define ELF and add cpp_subtarget.
8906 (ASM_SPEC): No longer needed.
8907
7425707d
RH
89082002-04-11 Richard Henderson <rth@redhat.com>
8909
8910 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
8911 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
8912 (dimode mem/zero splitter): New.
8913
1a05e874
HPN
89142002-04-11 Hans-Peter Nilsson <hp@axis.com>
8915
8916 * config/cris/cris.c (cris_override_options): Tweak error message
8917 for PIC not implemented.
8918
8919 * config/cris/cris.h: Tweak comments related to parameter-passing.
8920
8921 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
8922
6f3d0447
RH
89232002-04-10 Richard Henderson <rth@redhat.com>
8924
8925 * except.c (add_ehl_entry): Allow duplicates after landing pad
8926 creation.
8927
174bf2b1
DE
89282002-04-10 David Edelsohn <edelsohn@gnu.org>
8929
8930 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
8931
03f10472
TM
89322002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
8933
8934 * c-decl.c (c_init_decl_processing): Move generation of
8935 decls for g77_integer_type_node and friends from here ...
8936 * c-common.c (c_common_nodes_and_builtins): ... to here.
8937
2f460a0a
UW
89382002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
8939
8940 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
8941 is only used as frame pointer when frame_pointer_needed is true.
8942
0be5cf85
RE
89432002-04-10 Richard Earnshaw <rearnsha@arm.com>
8944
8945 PR target/817
8946 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
8947 for the fact that the pool entry uses two words.
8948 (movdf_hard_insn): Similarly. Also, ADR instruction can span
8949 1k bytes.
8950 (movdf_soft_insn): Similarly.
8951 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
8952 for the fact that the pool entry uses three words.
8953
bf6d4777
RS
89542002-04-10 Richard Sandiford <rsandifo@redhat.com>
8955
8956 * config/mips/mips.c (mips_va_arg): When using the struct version
8957 of the EABI va_list, allow arguments in the register save area to
8958 take up less room than a stack argument.
8959
c2e9dc85
RH
89602002-04-10 Richard Henderson <rth@redhat.com>
8961
8962 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
8963 if EXPAND_INITIALIZER.
8964
bc8e8e97
RH
89652002-04-09 Richard Henderson <rth@redhat.com>
8966
8967 * config/alpha/alpha.md (movdi_er_maybe_g): New.
8968 * config/alpha/alpha.c (alpha_expand_mov): Use it.
8969
a6a063b8
AM
89702002-04-10 Alan Modra <amodra@bigpond.net.au>
8971
8972 PR optimization/6233
8973 * rtlanal.c (pure_call_p): New function.
8974 * rtl.h (pure_call_p): Declare.
8975 * loop.c (prescan_loop): Use it to set has_nonconst_call.
8976 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
8977
7b2e1077
EC
89782002-04-09 Eric Christopher <echristo@redhat.com>
8979
8980 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
8981 information to .comm directive.
8982
d8a50944
RH
89832002-04-09 Richard Henderson <rth@redhat.com>
8984
8985 PR c/5078
8986 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
8987
6a58eee9
RH
89882002-04-09 Richard Henderson <rth@redhat.com>
8989
8990 * basic-block.h (flow_delete_block_noexpunge): Declare.
8991 (expunge_block_nocompact): Declare.
8992 * cfg.c (expunge_block_nocompact): Split out from ...
8993 (expunge_block): ... here.
8994 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
8995 (flow_delete_block_noexpunge): Split out from ...
8996 (flow_delete_block): ... here.
8997 * cfgcleanup.c (delete_unreachable_blocks): Compact while
8998 removing dead blocks.
8999 * except.c (exception_handler_labels): Remove.
9000 (exception_handler_label_map): New.
9001 (struct eh_region): Add aka member.
9002 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
9003 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
9004 (for_each_eh_label, for_each_eh_label_1): New.
9005 (init_eh): Register exception_handler_label_map.
9006 (free_eh_status): Use free_region.
9007 (find_exception_handler_labels): Use the map, not the list.
9008 (remove_exception_handler_label): Likewise.
9009 (maybe_remove_eh_handler): Likewise.
9010 (remove_eh_handler): Use the region aka bitmap.
9011 * except.h (exception_handler_labels): Remove.
9012 (for_each_eh_label): Declare.
9013 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
9014 * loop.c (invalidate_loops_containing_label): New.
9015 (find_and_verify_loops): Use it. Use for_each_eh_label.
9016 * sched-rgn.c (is_cfg_nonregular): Use
9017 current_function_has_exception_handlers.
9018
b47374fa
RH
90192002-04-09 Richard Henderson <rth@redhat.com>
9020
9021 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
9022 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
9023 Do not return changed status.
9024 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
9025 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
9026 New functions that do return changed status.
9027 * sbitmap.h: Update decls.
9028 * gcse.c, lcm.c: Use _cg functions as needed.
9029
1951818c
R
9030Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
9031
9032 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
9033 (sh64-*-elf*, sh-*-rtemself*): Likewise.
9034 * config/sh/embed_bb.c: New file.
9035 * config/sh/embed-elf.h: New file.
9036 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
9037 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
9038 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9039 __PTRDIFF_TYPE__ .
9040 (SUBTARGET_CPP_PTR_SPEC): Don't define.
9041 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
9042 Add subtarget_asm_endian_spec.
9043 (ASM_SPEC): Use subtarget_asm_endian_spec.
9044 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
9045 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
9046 (WCHAR_UNSIGNED): Define.
9047 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
9048 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9049 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
9050 Fix value.
9051 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
9052 (sh_adjust_cost): Likewise.
9053 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9054 __PTRDIFF_TYPE__ .
9055 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
9056 (WCHAR_TYPE_SIZE): Likewise.
9057 (ASM_SPEC): Use subtarget_asm_endian_spec.
9058 (SH_ELF_WCHAR_TYPE): #undef/ #define.
9059 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
9060 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
9061 (MAX_WCHAR_TYPE_SIZE): Don't #define .
9062 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
9063 (USER_LABEL_PREFIX): Don't #undef /#define .
9064 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9065 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
9066 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
9067 (ASM_SPEC): Likewise.
9068 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
9069 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
9070 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
9071 (LIB2FUNCS_EXTRA): Define.
9072 * t-sh64 (LIB2FUNCS_EXTRA): Define.
9073 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
9074 (LIB1ASMFUNCS_CACHE): Define.
9075 (LIB2FUNCS_EXTRA): Redefine empty.
9076
34295799
RH
90772002-04-08 Richard Henderson <rth@redhat.com>
9078
9079 * reorg.c (get_branch_condition): Use reversed_comparison_code.
9080
e8766a39
SC
90812002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9082
9083 * config/m68hc11/larith.asm (__map_data_section): Fix condition
9084 and optimize for size.
9085 (__do_global_ctors): Fix pointer comparison.
9086 (__do_global_dtors): Likewise.
9087
f451b552
DM
90882002-04-09 David S. Miller <davem@redhat.com>
9089
9090 * config/sparc/sparc.c (sparc_extra_constraint_check): New
9091 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
9092 allow reloading pseudos.
9093 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
9094 * config/sparc/sparc-protos.h: Declare it.
9095
9096 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
9097 unsigned comparison warning.
9098 (output_restore_regs): Mark leaf_function as unused.
9099
1ce7f3c2
RK
9100Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9101
9102 * expr.c (is_aligning_offset): New function.
9103 (expand_expr, case COMPONENT_EXPR): Call it.
9104
7a31a340
DM
91052002-04-08 David S. Miller <davem@redhat.com>
9106
9107 PR target/6082
9108 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
9109
9110 Make init_priority work on Sparc when using GNU ld.
9111 * config/sparc/linux.h, config/sparc/linux64.h,
9112 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
9113 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
9114 * config/sparc/sol2-gld.h: New file to do the same.
9115 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
9116 sparc/sol2-gld.h to tm_file.
9117
9118 PR optimization/4328
9119 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
9120 * doc/md.texi: Document it.
9121 * config/sparc/sparc.md (movdi_insn_sp64_novis,
9122 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
9123 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
9124 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
9125 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
9126
11579f33
AJ
91272002-04-08 Andreas Jaeger <aj@suse.de>
9128
9129 * stmt.c (expand_asm_operands): Revert last patch from Richard
9130 Henderson.
9131
b57215d9
GP
91322002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9133
9134 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
9135 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
9136
91372002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9138
9139 * doc/contrib.texi (Contributors): Add David O'Brien.
9140
534d0cc0
AM
91412002-04-08 Alan Modra <amodra@bigpond.net.au>
9142
9143 * configure.in (auto-build.h): Use target_alias and build_alias
9144 when running configure.
9145 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
9146 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
9147 * configure: Regenerate.
9148
19fe522a
DM
91492002-04-07 David S. Miller <davem@redhat.com>
9150
9151 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
9152
bf2d0b8e
JDA
91532002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9154
9155 PR 5933
9156 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
9157 generating 32-bit pic code.
9158
477cdac7
JT
91592002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
9160
9161 * cppinit.c (cpp_create_reader): Initialize
9162 discard_comments_in_macro_exp.
9163 (COMMAND_LINE_OPTIONS): Add "-CC" option.
9164 (cpp_handle_option): Handle "-CC" option.
9165 * cpplex.c (save_comment): If saving a C++ comment in
9166 a directive, convert it to a C comment.
9167 (_cpp_lex_direct): Pass second comment start character to
9168 save_comment to indicate comment type.
9169 * cpplib.c (_cpp_handle_directive): If processing
9170 a "#define" directive and discard_comments_in_macro_exp
9171 is false, re-enable saving of comments.
9172 (lex_macro_node): If discard_comments_in_macro_exp is false,
9173 discard any comments before the macro identifier.
9174 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
9175 member.
9176 * cppmacro.c (cpp_get_token): If expanding a macro while
9177 processing a directive, discard any comments we might encounter.
9178 (parse_params): If discard_comments_in_macro_exp is false,
9179 ignore comments in the macro parameter list.
9180 * gcc.c (cpp_unique_options): Add "-CC" option.
9181 (option_map): Map "--comments-in-macros" to "-CC".
9182 * doc/cppopts.texi: Document "-CC" option.
9183 * f/lang-specs.h: Add "-CC" option.
9184 * testsuite/gcc.dg/cpp/maccom1.c: New test.
9185 * testsuite/gcc.dg/cpp/maccom2.c: New test.
9186 * testsuite/gcc.dg/cpp/maccom3.c: New test.
9187 * testsuite/gcc.dg/cpp/maccom4.c: New test.
9188 * testsuite/gcc.dg/cpp/maccom5.c: New test.
9189 * testsuite/gcc.dg/cpp/maccom6.c: New test.
9190
f1526122
JDA
91912002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
9192
9193 PR middle-end/6180
9194 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
9195
b1896e61
MM
91962002-04-06 Mark Mitchell <mark@codesourcery.com>
9197
0154eaa8
MM
9198 PR c++/5571
9199 * stor-layout.c (layout_decl): Reset the RTL for the decl.
9200
b1896e61
MM
9201 PR opt/5120
9202 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
9203 RTX_UNCHANGING_P for the functions arguments when a tail call
9204 is made.
9205
b0148884
JM
92062002-04-06 Jason Merrill <jason@redhat.com>
9207
9208 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
9209 (parse_options_and_default_flags): Set them appropriately.
9210 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
9211
392fc5b0
HPN
92122002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
9213
9214 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
9215 here.
9216
9217 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
9218 semicolon.
9219
9220 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
9221 types come in by-reference. Fix typo in comment.
9222
2d69e3cb
DM
92232002-04-05 David S. Miller <davem@redhat.com>
9224
9225 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
9226 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
9227 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
9228 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
9229
92302002-04-05 David S. Miller <davem@redhat.com>
9231
9232 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
9233 are not going to emit return instructions, emit at least a nop
9234 for the sake of sane backtraces.
9235
5f9fb0e3
RH
92362002-04-05 Richard Henderson <rth@redhat.com>
9237
9238 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
9239
49f37a0d
JJ
92402002-04-05 Jakub Jeilnek <jakub@redhat.com>
9241
9242 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
9243
974a3101
AO
92442002-04-05 Alexandre Oliva <aoliva@redhat.com>
9245
9246 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
9247 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9248 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
9249
2e04a694
AS
92502002-04-05 Andreas Schwab <schwab@suse.de>
9251
a40179bd 9252 * c-convert.c: Include c-common.h.
2e04a694
AS
9253 * Makefile.in (c-convert.o): Updated.
9254
1f785b7c
JJ
92552002-04-05 Jakub Jelinek <jakub@redhat.com>
9256
9257 * mklibgcc.in: Use separate libgcc.map for each multilib.
9258 * Makefile.in (distclean): Don't remove libgcc.map here.
9259
4d2fb38b
JJ
92602002-04-05 Jakub Jelinek <jakub@redhat.com>
9261
9262 * Makefile.in (s-mlib): Handle --disable-multilib by separate
9263 genmultilib invocation.
9264
bb63e5a0
RS
92652002-04-04 Richard Sandiford <rsandifo@redhat.com>
9266
9267 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
9268 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
9269 to num_gprs for symmetry.
9270 * config/mips/mips.c: Adjust accordingly.
9271
8ab80eaa
NB
92722002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
9273
9274 * c-common.c (truthvalue_conversion): Rename, update.
9275 * c-common.h (c_common_truthvalue_conversion): New.
9276 * c-convert.c (convert): Update.
9277 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9278 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
9279 * c-typeck.c (build_binary_op, build_unary_op,
9280 build_conditional_expr): Update.
9281 * fold-const.c (constant_boolean_node, fold): Use langhook.
9282 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
9283 * langhooks.h (struct lang_hooks): New hook.
9284 * stmt.c (expand_decl_cleanup): Use langhook.
9285 * tree.h (truthvalue_conversion): Remove.
9286objc:
9287 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9288
a2e9374a
AM
92892002-04-05 Alan Modra <amodra@bigpond.net.au>
9290
9291 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
9292 Add rules to make null object file.
9293
64d08263
JB
92942002-04-04 Jim Blandy <jimb@redhat.com>
9295
9296 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
9297 macro formal parameter names.
9298
aa7634dd
DM
92992002-04-04 David S. Miller <davem@redhat.com>
9300
9301 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
9302
ecc114f7
RH
93032002-04-04 Richard Henderson <rth@redhat.com>
9304
9305 PR middle-end/5099
9306 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
9307 Support copies into and out of memory. Don't accept allows_reg
9308 and allows_mem as gospel.
9309
c4484b8f
RH
93102002-04-04 Richard Henderson <rth@redhat.com>
9311
9312 PR opt/6165
9313 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
9314 (write_dependence_p): Likewise.
9315
39002160
RH
93162002-04-04 Richard Henderson <rth@redhat.com>
9317
9318 * predict.c (estimate_bb_frequencies): Do frequency calculation
9319 with a volatile temporary.
9320
f53ebe71
UW
93212002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
9322
9323 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
9324
15e0ecab
JJ
93252002-04-04 Jakub Jelinek <jakub@redhat.com>
9326
9327 PR c++/6119
9328 * final.c (final_start_function): Don't bump profile_label_no here...
9329 (final_end_function): ...but here.
9330
ffd386b0
JJ
93312002-04-04 Jakub Jelinek <jakub@redhat.com>
9332
9333 * config/sparc/sparc.md (pic): New attribute.
9334 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
9335 into stack slots.
9336 (split after do_builtin_setjmp_setup): New.
9337
8b156b3e
JJ
93382002-04-04 Jakub Jelinek <jakub@redhat.com>
9339
9340 PR fortran/6106
9341 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
9342 change.
9343
014c0998
JJ
93442002-04-04 Jakub Jelinek <jakub@redhat.com>
9345
9346 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
9347 UNITS_PER_WORD for zero sized aggregates.
9348
4d8611d9
DM
93492002-04-03 David S. Miller <davem@redhat.com>
9350
9351 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
9352 one-character spec for this, just use %(link_gcc_c_sequence).
9353
b03ad99d
DM
93542002-04-03 David S. Miller <davem@redhat.com>
9355
9356 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
9357 handling.
9358
823fbbce
JDA
93592002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9360
9361 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
9362 (DWARF_FRAME_RETURN_COLUMN): Move.
9363 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9364 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
9365 * pa.c (except.h, predict.h): Include.
9366 (FRP): Delete.
9367 (store_reg_modify, set_reg_plus_d): Revise prototypes.
9368 (output_ascii): Add cast.
9369 (store_reg_modify): Revise to add frame notes.
9370 (set_reg_plus_d): Likewise.
9371 (compute_frame_size): Include space for eh data registers in frame if
9372 the current function calls eh_return.
9373 (hppa_expand_prologue): Ensure register %r2 is saved if the current
9374 function calls eh_return. Save eh data registers if the current
9375 function calls eh_return. Fix code to add frame notes. Emit
9376 blockage to prevent insns with frame notes being scheduled in the
9377 delay slot of calls.
9378 (hppa_expand_epilogue): Restore eh data registers and do final stack
9379 adjustment if the current function calls eh_return. Don't add frame
9380 notes.
9381 (output_call): Revise for change in length of call insn. Don't do
9382 return pointer adjustment for an unconditional jump in the delay slot
9383 of a call when using frame notes.
9384 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
9385 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
9386 (ARG_POINTER_CFA_OFFSET): Define.
9387 * pa.md (return_external_pic): New pattern.
9388 (prologue): Correct formatting. Use return_external_pic if current
9389 function calls eh_return.
9390 (call_internal_symref, call_value_internal_symref,
9391 sibcall_internal_symref, sibcall_value_internal_symref): Change default
9392 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
9393 respectively.
9394 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
9395
9396 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
9397 list of targets to check using "nop" insn.
9398 * configure: Rebuilt.
9399
4078e224
AM
94002002-04-04 Alan Modra <amodra@bigpond.net.au>
9401
9402 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
9403
bbd7687d
DM
94042002-04-03 David S. Miller <davem@redhat.com>
9405
9406 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
9407 library sequence passed to the linker.
9408 (LINK_COMMAND_SPEC): Use it.
9409 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
9410 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
9411 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9412
659e5a7a
JM
94132002-04-03 Jason Merrill <jason@redhat.com>
9414
9415 * except.c (struct eh_status): Remove protect_list.
9416 (begin_protect_partials, end_protect_partials): Remove.
9417 (add_partial_entry): Remove.
9418 * except.h: Remove prototypes.
9419
9420 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
9421 expand_decl_cleanup_eh.
9422
9423 PR c++/5636
9424 * tree.h (CLEANUP_EH_ONLY): New macro.
9425 * stmt.c (expand_decl_cleanup_eh): New fn.
9426 (expand_cleanups): Check CLEANUP_EH_ONLY.
9427 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
9428 Use expand_decl_cleanup_eh.
9429 (expand_stmt): Adjust.
9430 * c-common.h: Adjust prototype.
9431
053d3344
HPN
94322002-04-04 Hans-Peter Nilsson <hp@axis.com>
9433
9434 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
9435 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
9436 (cris_target_asm_function_epilogue): Ditto.
9437 (cris_initial_frame_pointer_offset): Ditto.
9438 (cris_simple_epilogue): Ditto.
9439 (cris_expand_builtin_va_arg): Variable-size types come in
9440 by-reference.
9441
61ab5260
DM
94422002-04-03 David S. Miller <davem@redhat.com>
9443
9444 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
9445 little-endian.
9446 (set_fast_math): Correct 'fsr' type.
9447
ef4f94ac
RH
94482002-04-03 Richard Henderson <rth@redhat.com>
9449
36c2272c 9450 PR opt/3569
ef4f94ac
RH
9451 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
9452 * toplev.c (check_global_declarations): Use it.
9453 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
9454 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9455 (LANG_HOOKS_DECLS): Add it.
9456 * langhooks.c (lhd_warn_unused_global_decl): New.
9457 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9458 * c-objc-common.c (c_warn_unused_global_decl): New.
9459 * c-tree.h (c_warn_unused_global_decl): Declare.
9460 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9461
599bba86
NB
94622002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
9463
9464 * langhooks-def.h (lhd_set_decl_assembler_name,
9465 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
9466 (LANG_HOOKS_INITIALIZER): Update.
9467 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
9468 * langhooks.h (struct lang_hooks): New hook.
9469 * tree.c (set_decl_assembler_name): Move to langhooks.c.
9470 (lang_set_decl_assembler_name): Remove.
9471 (init_obstacks): Don't set hook.
9472 (decl_assembler_name): New function.
9473 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
9474 (decl_assembler_name): New.
9475 (lang_set_decl_assembler_name): Remove.
9476
cf7b8b0d
JJ
94772002-04-03 Jakub Jelinek <jakub@redhat.com>
9478
9479 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
9480 works properly with .hidden symbols.
9481 * configure: Rebuilt.
9482 * config.in: Rebuilt.
9483 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9484 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
9485 properly with .hidden symbols.
9486
faf6db38
JJ
94872002-04-03 Jakub Jelinek <jakub@redhat.com>
9488
9489 PR middle-end/6102
9490 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
9491 USE argument.
9492
68c17f30
RH
94932002-04-03 Richard Henderson <rth@redhat.com>
9494
9495 PR opt/4120
9496 * sched-rgn.c (sets_likely_spilled): New.
9497 (sets_likely_spilled_1): New.
9498 (add_branch_dependences): Use it.
9499
6584b4aa
RH
95002002-04-02 Richard Henderson <rth@redhat.com>
9501
9502 PR opt/4311
9503 * loop.h (LOOP_FIRST_PASS): New.
9504 * loop.c (strength_reduce): Mind it when deciding to unroll.
9505 * toplev.c (rest_of_compilation): Set it.
9506
0acf409f
DM
95072002-04-02 David S. Miller <davem@redhat.com>
9508
9509 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
9510 mems_ok_for_ldd_peep when the order of the loads being examined
9511 is reversed.
9512 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
9513 existing comment to increase comprehension of this situation.
9514
85654444
ZW
95152002-04-02 Zack Weinberg <zack@codesourcery.com>
9516
9517 * config/sh/sh.md: Don't use union real_extract.
9518
543828ca
RH
95192002-04-02 Richard Henderson <rth@redhat.com>
9520
9521 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
9522
39ed301b
DB
95232002-04-02 David O'Brien <obrien@FreeBSD.org>
9524
9525 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
9526 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
9527 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
9528 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
9529 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
9530 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
9531 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
9532 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
9533 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
9534 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
9535 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
9536 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
9537 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
9538 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
9539 Include as many configury headers via tm_file as possible. This
9540 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
9541 * config/openbsd-oldgas.h: New file.
9542 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
9543 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
9544 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
9545 config/i386/i386-coff.h, config/i386/i386-interix.h,
9546 config/i386/iscdbx.h, config/i386/linux-aout.h,
9547 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
9548 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
9549 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
9550 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
9551 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
9552 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
9553 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
9554 config/i386/vxi386.h: Do not directly include configury headers.
9555 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
9556 Directly include configury headers that are no longer automatically
9557 included by the above headers.
9558 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
9559 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
9560 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
9561 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
9562 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
9563 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
9564 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
9565 (TARGET_VERSION): Define.
9566 * config/i386/beos-elf.h, config/i386/freebsd.h,
9567 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
9568 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
9569 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
9570 config/i386/sco5.h, config/i386/sysv4.h
9571 (TARGET_VERSION): Do not need to protect.
9572 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
9573 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
9574 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
9575 config/i386/i386-interix.h, config/i386/linux-aout.h,
9576 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
9577 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
9578 (YES_UNDERSCORES): Do not define - not needed.
9579 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
9580 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9581 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
9582 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
9583 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9584 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
9585 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
9586 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
9587
9432c136
EB
95882002-04-02 Eric Botcazou <ebotcazou@multimania.com>
9589 Richard Henderson <rth@redhat.com>
9590
9591 PR c/5484
9592 * function.c (assign_temp): Accept either type or decl argument.
9593 Detect variables whose size is too large to fit into an integer.
9594 * stmt.c (expand_decl): Pass the decl, not the type.
9595
058b1275
DB
95962002-04-02 David O'Brien <obrien@FreeBSD.org>
9597
9598 * protoize.c: Match include directory usage with cppdefault.c.
9599
5add6d1a 96002002-04-03 Jeffrey A Law (law@redhat.com)
9be40833 9601 Hans-Peter Nilsson <hp@bitrange.com>
5add6d1a
JL
9602
9603 * combine.c (simplify_comparison): Avoid narrowing a comparison
9604 with a paradoxical subreg when doing so would drop signficant bits.
9605
1e533e4b
SE
96062002-04-02 Steve Ellcey <sje@cup.hp.com>
9607
9608 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
9609 if POINTERS_EXTEND_UNSIGNED is defined.
9610
7a145e92
RH
96112002-04-02 Richard Henderson <rth@redhat.com>
9612
9613 PR opt/3967
9614 * local-alloc.c (contains_replace_regs): LO_SUM may contain
9615 replace regs.
9616
3a079822
RH
96172002-04-02 Richard Henderson <rth@redhat.com>
9618
9619 * doc/standards.texi: Document required freestanding libc entry points.
9620
c94ccb87
AM
96212002-04-02 Alan Modra <amodra@bigpond.net.au>
9622
9623 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
9624 associated splitter. Remove MQ constraint.
9625 (ctrdi_internal4): Correct CCmode clobber.
9626
fe660a1a
JDA
96272002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
9628
9629 * milli64.S ($$dyncall): New function.
9630 * t-linux (LIB1ASMFUNCS): Revise module list.
9631 (LIB1ASMSRC): Use pa/milli64.S.
9632
eadc0202
RH
96332002-04-02 Richard Henderson <rth@redhat.com>
9634
9635 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
9636 rename solaris_sys_varargs_h.
9637
a1471322
RK
9638Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9639
9640 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
9641 the same mode as its component.
9642
c8b94768
RH
96432002-04-02 Richard Henderson <rth@redhat.com>
9644
9645 PR opt/190
9646 * final.c (this_is_asm_operands): Export.
9647 * output.h (this_is_asm_operands): Declare.
9648 * config/i386/i386.c (print_operand): Error odd asm operands.
9649
161eb4fc
RH
96502002-04-02 Richard Henderson <rth@redhat.com>
9651
9652 PR opt/420
9653 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
9654
b88a94c6
RH
96552002-04-01 Richard Henderson <rth@redhat.com>
9656
9657 PR target/1538
9658 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
9659 * fixinc/fixincl.x: Rebuild.
9660
72e32876
RH
96612002-04-01 Richard Henderson <rth@redhat.com>
9662
9663 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
9664 (atomic_alloc, atomic_free): New.
9665 (SIZE, MASK_FOR, PTR_IN): New.
9666 (emergency_reg_state, emergency_reg_state_free): New.
9667 (emergency_labeled_state, emergency_labeled_state_free): New.
9668 (reg_state_alloced, labeled_state_alloced): New.
9669 (alloc_reg_state, free_reg_state): New.
9670 (alloc_label_state, free_label_state, free_label_states): New.
9671 (push, pop, dup_state_stack, free_state_stack): Use them.
9672 (desc_label_state): Likewise.
9673 (uw_frame_state_for): Free label states and state stack.
9674 (uw_update_reg_address): Eliminate warnings.
9675
84d76074
VM
96762002-04-01 Vladimir Makarov <vmakarov@redhat.com>
9677
9678 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9be40833 9679 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
84d76074 9680
dffd7eb6
NB
96812002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9682
9683 * c-decl.c (grokdeclarator): Update.
9684 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9685 * c-tree.h (c_mark_addressable): New.
9686 * c-typeck.c (default_function_array_conversion, build_unary_op,
9687 build_array_ref, convert_for_assignment): Update.
9688 (mark_addressable): Rename.
9689 * calls.c (try_to_integrate, expand_call): Use langhook.
9690 * expr.c (expand_expr): Use langhook.
9691 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
9692 * langhooks.h (struct lang_hooks): New hook.
9693 * stmt.c (expand_asm_operands): Use langhook.
9694 * tree.h (mark_addressable): Remove.
9695objc:
9696 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9697
544ef5b5
BW
96982002-04-01 Bob Wilson <bob.wilson@acm.org>
9699
9be40833
RH
9700 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
9701 in previous change.
544ef5b5 9702
bcf88f9b
BW
97032002-04-01 Bob Wilson <bob.wilson@acm.org>
9704
9705 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
9706 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
9707
ceef8ce4
NB
97082002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9709
9710 * c-common.c (unsigned_conversion_warning, convert_and_check,
9711 unsigned_type, signed_type, shorten_compare,
9712 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
9713 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
9714 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
9715 New.
9716 * c-decl.c (grokdeclarator): Update.
9717 * c-format.c (check_format_types): Update.
9718 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9719 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9720 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
9721 * convert.c (convert_to_integer): Use new hooks.
9722 * expmed.c (make_tree): Use new hooks.
9723 * expr.c (store_expr): Use new hooks.
9724 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
9725 all_ones_mask_p, unextend, fold): Use new hooks.
9726 * langhooks.h (struct lang_hooks_for_types): New hooks.
9727 * tree.h (signed_or_unsigned_type, signed_type,
9728 unsigned_type): Remove.
9729objc:
9730 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9731 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9732
1d9ad0e0
RH
97332002-03-31 Richard Henderson <rth@redhat.com>
9734
9735 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
9736 (desc_frgr_mem): Fix reference to f16-f31.
9737
d544bc39
KG
97382002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9739
9740 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
9741 RTVEC_ELT): Const-ify.
d8750784
KG
9742 * varray.h (VARRAY_CHECK): Const-ify.
9743 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
9744 ggc_mark_rtvec, ggc_mark): Const-ify.
d544bc39 9745
b18101c7
NB
97462002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9747
9748 * diagnostic.c: Include langhooks-def.h.
9749 * Makefile.in (diagnostic.o): Update.
9750
48a7a235
NB
97512002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
9752
9753 * c-common.c (c_unsafe_for_reeval): Rename.
9754 * c-common.h (c_unsafe_for_reeval): Rename.
9755 * c-decl.c (finish_incomplete_decl): Rename.
9756 (c_init_decl_processing): Don't set langhook.
9757 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9758 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9759 * c-objc-common.c (c_objc_common_init): Don't set langhook.
9760 * c-tree.h (finish_incomplete_decl): Rename.
9761 * langhooks-def.h (lhd_unsafe_for_reeval): New.
9762 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
9763 (LANG_HOOKS_INITIALIZER): Update.
9764 * langhooks.c (lhd_unsafe_For_reeval): New.
9765 * langhooks.h (struct langhooks): New hooks.
9766 * toplev.c (incomplete_decl_finalize_hook): Remove.
9767 (wrapup_global_declarations): Update.
9768 * tree.c (lang_unsafe_for_reeval): Remove.
9769 (unsafe_for_reeval): Update.
9770 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
9771 Remove.
9772objc:
9773 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9774 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9775
7cb32822
NB
97762002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
9777
9778 * diagnostic.c (print_error_function): Remove.
9779 (default_print_error_function): Rename.
9780 (report_error_function): Update.
9781 * diagnostic.h (print_error_function): Remove.
9782 (default_print_error_function): Remove.
9783 * langhooks-def.h (struct diagnostic_context): Predeclare.
9784 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
9785 (LANG_HOOKS_INITIALIZER): Update.
9786 * langhooks.h (struct diagnostic context): Predeclare.
9787 (struct lang_hooks): New hook.
9788
1db02437
FS
97892002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9790
9791 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
9792 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
9793 !flag_pic.
9794 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
9795 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
9796 of PIC_OFFSET_TABLE_REGNUM thruout.
9797 * config/rs6000/rs6000.md: Likewise.
9798 * config/rs6000/darwin.h: Likewise.
9799
3bf1e984
RK
9800Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9801
9802 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
9803 unsigned HOST_WIDE_INT, not unsigned int.
9804
0864c526
JJ
98052002-03-31 Jakub Jelinek <jakub@redhat.com>
9806
9807 PR middle-end/6096, middle-end/6098, middle-end/6099
9808 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
9809 CODE_LABELs.
9810 (fill_slots_from_thread): Likewise.
9811
105b2084
JJ
98122002-03-31 Jakub Jelinek <jakub@redhat.com>
9813
9814 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
9815 floating fields in float regs.
9816 (function_arg_record_value_2): Likewise.
9817
db08fddf
HPN
98182002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
9819
9820 * config/mmix/mmix.md (define_constants): Remove misleading
9821 FIXME. Add MMIX_fp_rO_OFFSET.
9822 ("nonlocal_goto_receiver"): Don't have stack-frame address of
9823 saved rO as part of the pattern. Remove FIXME.
9824 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
9825 here, at output-time.
9826
4f31cce8
JJ
98272002-03-31 Jakub Jelinek <jakub@redhat.com>
9828
9829 PR middle-end/6100
9830 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
9831 REG_BR_PRED.
9832 (output_v9branch): Likewise.
9833
ba2b7435
AO
98342002-03-31 Alexandre Oliva <aoliva@redhat.com>
9835
9836 * gcc.c: Revert previous patch for now.
9837 * config/i386/djgpp.h: Likewise.
9838
aa66aa5f 98392002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8f840f57
HPN
9840
9841 * config/mmix/crti.asm (_init): Register _fini with atexit.
9842 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
9843
41ba8a20
RH
98442002-03-31 Richard Henderson <rth@redhat.com>
9845
9846 PR target/3997
9847 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
9848 (ASM_OUTPUT_DEF_FROM_DECLS): New.
9849
adc186ef
RH
98502002-03-31 Richard Henderson <rth@redhat.com>
9851
9852 * libgcc2.c (__bb_exit_func): Make static.
9853
9be40833 9854 * config/alpha/alpha.md (trap): New.
a7648399 9855
9602f5a0
RH
98562002-03-31 Richard Henderson <rth@redhat.com>
9857
9858 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
9859 promoted argument types; build trap.
9860 (expand_builtin_trap): New.
9861 (expand_builtin): Use it.
9862 * stmt.c (expand_nl_goto_receivers): Likewise.
9863 * expr.h (expand_builtin_trap): Declare.
9864 * libfuncs.h (LTI_abort, abort_libfunc): New.
9865 * optabs.c (init_optabs): Init abort_libfunc.
9866
1a0a7539
AO
98672002-03-31 Alexandre Oliva <aoliva@redhat.com>
9868
9869 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
9870 (LINK_COMMAND_SPEC): ... from here.
7b2e1077 9871 (init_gcc_specs): Duplicate it here too, omitting
1a0a7539
AO
9872 shared_name in the second copy.
9873 (init_spec): Test for duplicate
9874 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
9875
b5de1a27
DM
98762002-03-30 David S. Miller <davem@redhat.com>
9877
9878 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9879 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
9880
78414d74 98812002-03-30 Roger Sayle <roger@eyesopen.com>
9be40833 9882 Richard Henderson <rth@redhat.com>
78414d74 9883
9be40833
RH
9884 * regmove.c (combine_stack_adjustments_for_block): Avoid
9885 emitting a stack adjustment of zero bytes. Let delete_insn
9886 update bb->head.
78414d74 9887
33074e5f
RH
98882002-03-30 Richard Henderson <rth@redhat.com>
9889
9890 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
9891 (sparc_emitting_epilogue): New.
9892 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
9893 * config/sparc/sparc-protos.h: Update.
9894 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
9895 (TARGET_SWITCHES): Update.
9896 * config/sparc/sparc.md (return): Remove.
9897 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
9898 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
9899 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
9900 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
9901 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
9902 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
9903 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
9904 Remove MASK_EPILOGUE.
9905 * doc/invoke.texi: Update.
9906
606cc056
DB
99072002-03-30 Daniel Berlin <dan@dberlin.org>
9908
9909 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
9910 CPP will start the file for us.
7b2e1077 9911
bdbe5b8d
RH
99122002-03-30 Richard Henderson <rth@redhat.com>
9913
9914 PR target/5446
9915 * config/ia64/ia64.c (group_barrier_needed_p): Special case
9916 prologue_allocate_stack.
9917 (ia64_single_set): Use insn codes for recognition of special
9918 cases, not rtl matching.
9919 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
9920
4ab95d82
JH
9921Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
9922
9923 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
9924
89a8b315
RH
99252002-03-30 Richard Henderson <rth@redhat.com>
9926
9927 PR target/6032
9928 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
9929 or -fomit-frame-pointer with profiling.
9930 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9931 (FUNCTION_PROFILER): Do nothing.
9932 (PROFILE_HOOK): New.
9933 * config/sparc/sparc.c (sparc_override_options): Don't check
9934 code models for profiling.
9935 (sparc_function_profiler): Remove.
9936 (sparc_profile_hook): New.
9937 * config/sparc/sparc-protos.h: Update.
9938
30984c57
JJ
99392002-03-30 Jakub Jelinek <jakub@redhat.com>
9940
9941 PR optimization/6086
9942 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
9943 of SUBREG of volatile MEM or because the MEM was mode dependent,
9944 return CLOBBER instead of unmodified SUBREG.
9945
1540f9eb
JH
9946Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
9947
89a8b315
RH
9948 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
9949 when not optimizing.
1540f9eb
JH
9950
9951 * toplev.c (rest_of_compilation): Cann mark_constant_function
9952 only when optimizing.
9953
89a8b315
RH
9954 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
9955 are NULL.
1540f9eb
JH
9956
9957 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
9958 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
9959 (try_optimize_cfg): clear all AUX fields.
9960
9961 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
9962 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
9963 (ix86_address_cost): Be prepared for SUBREGed registers.
9964 (legitimate_address_p): Accept SUBREGed registers.
9965
70d95bac
RH
99662002-03-29 Richard Henderson <rth@redhat.com>
9967
9968 PR target/5672
9969 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
9970
d3294cd9
FS
99712002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9972
9973 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
9974 for aggregate and TFmode types.
9975
a106c875
HPN
99762002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
9977
9978 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
9979
7d7a5d6f
RH
99802002-03-29 Richard Henderson <rth@redhat.com>
9981
6e2d670b 9982 PR target/5886
7d7a5d6f
RH
9983 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
9984 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
9985
30c99a84
RH
99862002-03-29 Richard Henderson <rth@redhat.com>
9987
6e2d670b 9988 PR target/6041
30c99a84
RH
9989 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
9990 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
9991 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
9992 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
9993 conditional.
9994 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
9995
02a566dc
DJ
99962002-03-29 Dale Johannesen <dalej@apple.com>
9997
9998 * loop.c (combine_movables): Do allow combination of pseudos.
9999
bc3a44db
LR
100002002-03-29 Loren J. Rittle <ljrittle@acm.org>
10001
10002 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
10003 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
10004 No functional change except ...
10005 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
10006 * doc/install.texi (*-*-freebsd*): Document port configuration.
10007
b0c48229
NB
100082002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10009
10010 * Makefile.in (convert.o, calls.o, expmed.o): Update.
10011 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
10012 Use new hooks.
10013 * builtin-types.def (BT_PTRMODE): Update.
10014 * c-common.c (type_for_size): Rename c_common_type_for_size.
10015 (type_for_mode): Similarly.
10016 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
10017 Use new hook.
10018 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
10019 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
10020 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
10021 Redefine.
10022 * c-typeck.c (common_type, comptypes, default_conversion):
10023 Use new hooks.
10024 * calls.c: Include langhooks.h.
10025 (emit_library_call_value_1): Use new hooks. Avoid redundant
10026 calls.
10027 * convert.c: Include langhooks.h
10028 (convert_to_pointer, convert_to_integer): Use new hooks.
10029 * except.c (init_eh): Similarly.
10030 * expmed.c: Include langhooks.h.
10031 (expand_mult_add): Use new hooks.
10032 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
10033 try_casesi): Similarly.
10034 * fold-const.c (optimize_bit_field_compare, make_range,
10035 decode_field_reference, fold_truthop, fold): Similarly.
10036 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
10037 put_var_into_stack): Similarly.
10038 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
10039 LANG_HOOKS_TYPE_FOR_SIZE): New.
10040 (LANG_HOOKS_TYPES_INITIALIZER): Update.
10041 * langhooks.h (lang_hooks_for_types): New hooks.
10042 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
10043 * tree.c (get_unwidened, get_narrower): Similarly.
10044 * tree.h (type_for_mode, type_for_size): Remove.
10045 * varasm.c (force_const_mem): Use new hooks.
10046 * utils2.c (nonbinary_modular_operation): Update.
10047objc:
10048 * objc-act.c (handle_impent): Update.
10049 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
10050 Redefine.
10051
e206a74f
SE
100522002-03-29 Steve Ellcey <sje@cup.hp.com>
10053
10054 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
10055 * config/ia64/ia64.c (basereg_operand): New.
10056 * config/ia64/ia64-protos.h (basereg_operand): Declare.
10057 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
10058
7d9b6378
HPN
100592002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10060
10061 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
10062 unwind information when frame_pointer_needed.
10063 (mmix_assemble_integer): Tweak wording in comment.
10064
f1e639b1
NB
100652002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10066
10067 * Makefile.in (except.o): Update.
10068 * except.c: Include langhooks.h.
10069 (init_eh): Use langhook.
10070 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
10071 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
10072 (LANG_HOOKS_INITIALIZER): Update.
10073 * langhooks.h (lang_hooks_for_types): New.
10074 (struct lang_hooks): Add it.
10075 * tree.c (make_lang_type_fn, make_lang_type): Remove.
10076 * tree.h (make_lang_type_fn, make_lang_type): Remove.
10077config:
10078 * alpha/alpha.c: Include langhooks.h.
10079 (alpha_build_va_list): Use langhook.
10080 * d30v/d30v.c: Include langhooks.h.
10081 (d30v_build_va_list): Use langhook.
10082 * i386/i386.c: Include langhooks.h.
10083 (ix86_build_va_list): Use langhook.
10084 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
10085 * s390/s390.c: Include langhooks.h.
10086 (s390_build_va_list): Use langhook.
10087 * stormy16/stormy16.c: Include langhooks.h.
10088 (stormy16_build_va_list): Use langhook.
10089
f17f9332
JJ
100902002-03-29 Jakub Jelinek <jakub@redhat.com>
10091
10092 PR c++/5964
10093 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
10094 attributes.
10095 (length): Compute variable length for branches/calls/jumps here.
10096 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
10097 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
10098 define branch_type attribute.
10099 (divsi3_sp32): Maximum length is 6 not 7.
10100 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
10101 call_address_untyped_struct_value_sp32,
10102 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
10103 * config/sparc/sparc.c (empty_delay_slot): New function.
10104 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
10105 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
10106
0a0440c9
JJ
101072002-03-29 Jakub Jelinek <jakub@redhat.com>
10108
10109 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
10110 nonzero_bits if not needed.
10111 (nonzero_bits) [XOR]: Likewise.
10112 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
10113 reg_last_set_mode and mode are both MODE_INT, but not equal.
10114 (record_value_for_reg): Compute reg_last_set_nonzero_bits
10115 in nonzero_bits_mode for MODE_INT modes.
10116
c9045f47
RH
101172002-03-28 Richard Henderson <rth@redhat.com>
10118
10119 PR target/5715
10120 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
10121 to GAS. Correct drift between alternatives.
10122
f8ed1958
RH
101232002-03-28 Richard Henderson <rth@redhat.com>
10124
10125 PR target/6087
10126 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
10127
54e20385
LR
101282002-03-28 Alexandre Oliva <aoliva@redhat.com>
10129
10130 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
10131 emulation to the linker.
10132
101332002-03-28 Loren J. Rittle <ljrittle@acm.org>
10134
10135 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
10136 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10137
8bc52806
JL
10138Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
10139
10140 * combine.c (simplify_and_const_int): Make sure to apply mask
10141 when force_to_mode returns a constant integer. PR3311.
10142
279dccc5
JDA
101432002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10144
10145 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
10146
62aaa62c
GP
101472002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10148
10149 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
10150 and Objective-C Dialect Options.
10151
b8de5050
RH
101522002-03-28 Richard Henderson <rth@redhat.com>
10153
10154 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
10155 comparison should be done vs !=0 not >0 return code. Tidy cases.
10156
619708cc
RH
101572002-03-28 Richard Henderson <rth@redhat.com>
10158
10159 * c-decl.c (finish_function): New arg can_defer_p. Pass it
10160 on to c_expand_body.
10161 * c-tree.h (finish_function): Update decl.
10162 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
10163
b1d874d7
JH
10164Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
10165
10166 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
10167
f5eb5fd0
JH
10168Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
10169
10170 * rtlanal.c: Include flags.h
10171 (may_trap_p): Do not mark FP operations if trapping
10172 if !flag_trapping_math
10173 * Makefile.in (rtlanal.o): Add dependency on flag.h
10174 * ifcvt.c (noce_operand_ok): Avoid the lameness.
10175
81b4c798
ZW
101762002-03-27 Zack Weinberg <zack@codesourcery.com>
10177
10178 * mips.md: Use dconst1, not 1.0, as first argument of
10179 REAL_VALUE_LDEXP. Don't use union real_extract.
10180
55a2ea2a
AM
101812002-03-28 Alan Modra <amodra@bigpond.net.au>
10182
10183 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
10184 rather than $target. Heed program_prefix and
10185 program_transform_name. Search for gas in cross-compiler case too.
10186 "test -x" rather than "test -f".
10187 (gcc_cv_ld): Likewise.
10188 (gcc_cv_nm): Heed program_prefix and program_transform_name.
10189 (gcc_cv_objdump): Likewise.
10190 * configure: Regenerate.
10191
7ffb4fd2
NB
101922002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10193
10194 * Makefile.in (attribs.o): Update.
10195 * attribs.c: Include langhooks.h.
10196 (decl_attributes): Use langhook.
10197 * c-decl.c (insert_default_attributes): Rename.
10198 * c-tree.h (c_insert_default_attributes): New.
10199 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
10200 (LANG_HOOKS_INITIALIZER): Update.
10201 * langhooks.h (struct lang_hooks): New hook.
10202 * tree.h (insert_default_attributes): Remove.
10203objc:
10204 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
10205
e4dbaed5
AS
102062002-03-27 Andreas Schwab <schwab@suse.de>
10207
10208 * config/i386/i386.c (classify_argument): Also check for
10209 QUAL_UNION_TYPE.
10210
18b467f1
RO
102112002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10212
10213 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
10214 any more.
10215
d337d653
JH
10216Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
10217
10218 * i960.md (ret): Set PC.
10219 (nonlocal_goto): Fix expander.
10220 * builtins.c (epxand_builin_longjmp): Check that we've emitted
10221 some jump or call.
10222
218aa620
JH
10223Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
10224
10225 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
10226 of libcall regions.
10227
e27a4eaf
ZD
10228Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10229
10230 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
10231 assigning to BLOCK_FOR_INSN directly.
10232
8a12f34c
JH
10233Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
10234
10235 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
10236
c9d892a8
NB
102372002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10238
10239 * c-common.c (c_expand_expr): Fix prototype.
10240 * c-common.h (c_expand_expr): Always declare, update.
10241 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10242 * c-objc-common.c (c_objc_common_init): No global hook.
10243 * expr.c (expand_expr): Use langhook.
10244 * expr.h (enum expand_modifier): Conditionally declare.
10245 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
10246 (LANG_HOOKS_INITIALIZER): Update.
10247 * langhooks.c (lhd_expand_expr): New.
10248 * langhooks.h (struct lang_hooks): New hook.
10249 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
10250 (lang_independent_init): Don't default hook.
10251objc:
10252 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10253
6dad5a56
RH
102542002-03-27 Richard Henderson <rth@redhat.com>
10255
10256 PR target/6054
10257 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
10258 TARGET_CONST_GP. Simplify conditions.
10259
59f96879
RH
102602002-03-27 Richard Henderson <rth@redhat.com>
10261
10262 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10263 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
10264 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
10265
f3f1190d
DS
102662002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
10267
10268 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
10269 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
10270 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
10271 Remove unnecessary masks.
10272 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
10273 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
10274 -mwindows, -mdll switches and their negations.
10275
31c816cf
NB
102762002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10277
10278 * gcc-common.c (lang_mark_false_label_stack): Remove.
10279 * ggc.h (lang_mark_false_label_stack): Similarly.
10280
7b2e1077 102812002-03-26 Vladimir Makarov <vmakarov@redhat.com>
aee8f532
VM
10282
10283 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
10284
10285 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
10286 or __rtems_ is defined.
10287
1ef9531b
RH
102882002-03-26 Richard Henderson <rth@redhat.com>
10289
10290 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
10291 if a non-trivial load was emitted.
10292 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
10293 in high+extra+low case.
10294
300d4093
RH
102952002-03-26 Richard Henderson <rth@redhat.com>
10296
10297 * config.gcc (sparc*-solaris): Use float_format=sparc.
10298
b3689904
RH
102992002-03-26 Richard Henderson <rth@redhat.com>
10300
10301 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10302 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
10303 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
10304 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
10305 (WINT_TYPE_SIZE): Fix at 32.
10306
1eefb6c1
RH
103072002-03-26 Richard Henderson <rth@redhat.com>
10308
10309 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
10310 until after eh landing pad generation.
10311 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
10312 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
10313
361ea006
RH
103142002-03-26 Richard Henderson <rth@redhat.com>
10315
10316 * expr.h (ADD_PARM_SIZE): One more convert for INC.
10317
1de38a88
PE
103182002-03-26 Phil Edwards <pme@gcc.gnu.org>
10319
10320 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
10321 and warning switches.
10322 (cc1_options): Likewise.
10323
d7e60e95 103242002-03-26 Hans Boehm <Hans_Boehm@hp.com>
361ea006 10325
d7e60e95
HB
10326 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
10327 Restore more of the signal context. Set no_reg_stack_frame.
10328 * config/ia64/unwind-ia64.c (unw_state_record):
10329 Add no_reg_stack_frame, comments.
10330 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
10331 (uw_update_context): Adjust bsp when unwinding from leaf,
10332 but not signal frame.
10333
7032923b
DE
103342002-03-26 David Edelsohn <edelsohn@gnu.org>
10335
10336 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
10337
8be56275
BW
103382002-03-26 Bob Wilson <bob.wilson@acm.org>
10339
10340 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
10341
56fbb855
RE
103422002-03-26 Richard Earnshaw <rearnsha@arm.com>
10343
10344 PR target/5621
10345 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
10346 "Add a pool_range attribute", which was lost during the ARM/Thumb
10347 merge.
10348
3437320b
BW
103492002-03-26 Bob Wilson <bob.wilson@acm.org>
10350
10351 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
10352 a register into the MAC16 accumulator.
10353
173028e5
AC
103542002-03-26 Andrew Cagney <ac131313@redhat.com>
10355
10356 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
10357 (Warning Options): Document -Wswitch-enum.
10358 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
10359 -Wswitch.
10360 (warn_switch_enum): Define variables.
10361 * flags.h (warn_switch_enum): Declare variables.
10362 * stmt.c (expand_end_case_type): When warn_switch_enum /
10363 -Wswitch-enum, perform switch checks.
10364 Fix PR c/5044.
7b2e1077 10365
e14365a7
RE
103662002-03-26 Richard Earnshaw <rearnsha@arm.com>
10367
10368 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
10369 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
10370 (reload_muladdsi_compare0_scratch): Delete.
10371
46fc709d
LR
103722002-03-26 Loren J. Rittle <ljrittle@acm.org>
10373
10374 * doc/install.texi (*-*-freebsd*): Update.
10375
f36dea3c
RH
103762002-03-26 Richard Henderson <rth@redhat.com>
10377
8e5fe23f
RH
10378 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
10379 (SUB_PARM_SIZE): Cast DEC to ssizetype.
10380
10381 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
10382 types from the normal argument frame.
10383
f36dea3c
RH
10384 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
10385 variable sized objects by reference.
10386 (sparc_va_arg): Receive them by reference too.
10387
1447dc69
HP
103882002-03-26 Hartmut Penner <hpenner@de.ibm.com>
10389
10390 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7b2e1077 10391 code to not restoring global registers.
1447dc69 10392
4f0ade92
NB
103932002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
10394
10395 * Makefile.in (ggc-common.o): Update.
10396 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
10397 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10398 * c-tree.h (c_mark_tree): New.
10399 * ggc-common.c: Include langhooks.h.
10400 (gcc_mark_trees): Use new langhook.
10401 * ggc-callbacks.c: Delete file.
10402 * ggc.h (lang_mark_tree): Remove.
10403 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
10404 (LANG_HOOKS_INITIALIZER): Update.
10405 * langhooks.h (struct lang_hooks): New hook.
10406objc:
10407 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10408
caba570b
ZW
104092002-03-25 Zack Weinberg <zack@codesourcery.com>
10410
10411 * doc/cpp.texi: Exclude entire Top node from printed manual.
10412 Move option index after directive index. Insert page breaks
10413 before GFDL and concept index. Index environment variables
10414 with command line options.
10415 * doc/cppenv.texi: Use @vtable for environment variable list.
10416 Add paragraph explaining semantics of empty elements in path
10417 variables. Exclude a cross-reference to Fishkill from the
10418 manpage. Remove an unnecessary cross-reference of the entry
10419 right above the referer. Don't use @anchor in text that goes
10420 into manpage.
10421 * doc/cppopts.texi: Cross-reference the environment variables
10422 section, not the specific environment variable, for consistency.
10423
6b2e80b7
RH
104242002-03-25 Richard Henderson <rth@redhat.com>
10425
10426 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
10427 anywhere in the block. Don't refer to insns that have been
10428 removed from the chain. Iterate backward through the new insns.
10429 Don't refer to edges that have been removed.
10430
67e469d7
AM
104312002-03-26 Alan Modra <amodra@bigpond.net.au>
10432
10433 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
10434 test for overflow of constant.
10435
f2356393
RE
104362002-03-25 Richard Earnshaw <rearnsha@arm.com>
10437
10438 PR target/2623
10439 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
10440 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
10441 these patterns on arm_archv4.
10442
355426ab
DS
104432002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
10444
10445 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
10446 int".
10447
15e5ad76
ZW
104482002-03-25 Zack Weinberg <zack@codesourcery.com>
10449
10450 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
10451 float_handled, float_handler, float_signal, set_float_handler,
10452 and do_float_handler. Set handler for SIGFPE to crash_signal.
10453 * toplev.h: Don't prototype do_float_handler.
10454
10455 * c-lex.c: Fold parse_float into lex_number. Make warning
10456 about portability of hex float constants more informative, and
10457 don't issue it on top of a syntax error.
10458 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
10459 their callers.
10460 * real.h: Define REAL_VALUE_ABS here...
10461 * simplify-rtx.c: ... not here. Fold check_fold_consts,
10462 simplify_unary_real, simplify_binary_real, and
10463 simplify_binary_is2orm1 into their callers.
10464 * tree.c: Fold build_real_from_int_cst_1 into caller.
10465
10466 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
10467
10468 * tsystem.h: Include float.h here...
10469 * libgcc2.c: ... not here.
10470
56ae9405
NC
104712002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
10472
10473 Fixes for: PR bootstrap/3591, target/5676
10474 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
10475 defined. Do not disable exceptions or rtti.
10476 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
10477 mcore.h. Disable exceptions and rtti, since they are not
10478 supported by EPOC.
10479
c88770e9
NB
104802002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
10481
10482 * c-decl.c (maybe_build_cleanup): Remove.
10483 * expr.c (expand_expr): Use langhook.
10484 * langhooks-def.h (lhd_return_null_tree,
10485 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
10486 (LANGHOOKS_INITIALIZER): Update.
10487 * langhooks.c (lhd_return_null_tree): New.
10488 * langhooks.h (struct lang_hooks): New hook.
10489 * tree-inline.c (initialize_inlined_parameters): Use langhook.
10490 * tree.h (maybe_build_cleanup): Remove.
10491
2ed1f154
JJ
104922002-03-25 Jakub Jelinek <jakub@redhat.com>
10493
10494 * regrename.c (build_def_use): Move recog_memoized
10495 before extract_insn.
10496
6ddae612
JJ
104972002-03-25 Jakub Jelinek <jakub@redhat.com>
10498
10499 PR target/6043
10500 * expr.c (emit_group_store): Handle storing into CONCAT.
10501
ea475b23
JJ
105022002-03-25 Jakub Jelinek <jakub@redhat.com>
10503
10504 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
10505 corresponding MATCH_DUP.
10506
e7d482b9
RH
105072002-03-24 Richard Henderson <rth@redhat.com>
10508
cd39fc13
RH
10509 * unroll.c (unroll_loop): Zero label_map.
10510
e7d482b9
RH
10511 * gcse.c: Include except.h.
10512 * Makefile.in (gcse.o): Update.
10513
1bd6476f
RH
105142002-03-24 Richard Henderson <rth@redhat.com>
10515
10516 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
10517 Do resolve_unique_section before shared data clause.
10518
2e6c150a
RH
105192002-03-24 Richard Henderson <rth@redhat.com>
10520
10521 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
10522
b29afcf8
RH
105232002-03-24 Richard Henderson <rth@redhat.com>
10524
15e5ad76 10525 * recog.c (peephole2_optimize): Split blocks when EH insns are
b29afcf8
RH
10526 generated in the middle of a block. Do global life update if
10527 zapped EH edges.
10528
05ed1296
RH
105292002-03-24 Richard Henderson <rth@redhat.com>
10530
10531 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
10532
3ddbb8a9
NB
105332002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10534
10535 preprocessor/3951
15e5ad76 10536 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3ddbb8a9
NB
10537 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
10538 (init_dependency_output): Don't make no_output decision here.
10539
740b77b6
AC
105402002-03-24 Andrew Cagney <ac131313@redhat.com>
10541
10542 * stmt.c (check_for_full_enumeration_handling): Remove tests of
10543 warn_switch. Update description.
10544 (expand_end_case_type): Call check_for_full_enumeration_handling
10545 when warn_switch.
10546
7590cfd0
SC
105472002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10548
10549 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
10550 (m68hc11_split_move): Call it to see if the source and destination
10551 operands use the same direction auto inc/dec mode, otherwise make the
c61f581f 10552 source an offsetable memory operand and generate an add.
7590cfd0 10553
2e3d3481
SC
105542002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10555
10556 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
10557 register for operand 2.
10558 ("*subsi3_zero_extendqi"): Likewise.
10559 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
10560 bits so that it is compatible with a pop.
10561 ("*andhi3_gen"): Likewise.
10562 ("xorhi3"): Likewise.
10563
2784528c
NB
105642002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10565
10566 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
10567 -pedantic here...
10568 (cpp_post_options): ... not here.
10569
aaf93206
NB
105702002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10571 Aldy Hernandez <aldyh@redhat.com>
10572
10573 Removal of separate preprocessor cpp0.
10574
10575 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
10576 cpp0, install-common): Update.
10577 * c-common.c (flag_preprocess_only): New.
10578 (c_common_init): Preprocess for -E.
10579 * c-common.h (flag_preprocess_only): New.
10580 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
10581 * c-objc-common.c (c_init_decl_processing): Exit quickly
10582 for NULL return from c_common_init.
10583 * cpplib.h (cpp_preprocess_file): New.
10584 * cppmain.c (main, general_init, pfile, progname): Remove.
10585 (do_preprocessing): Rename cpp_preprocess_file, don't call
10586 cpp_finish. Don't close stdout here.
10587 (setup_callbacks): Update prototype.
10588 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
10589 Update.
10590 * tradcpp.c (main): Ignore -quiet.
10591objc:
10592 * lang-specs.h (default_compilers): Preprocess with cc1obj.
10593
c6e6f5c1
RH
105942002-03-24 Richard Henderson <rth@redhat.com>
10595
10596 PR optimization/5742
10597 * machmode.def: Add inner mode field to complex modes.
10598 * config/mips/mips.c (mips_function_value): Always define. Add
10599 new argument to handle libcalls.
10600 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
10601 (FUNCTION_VALUE): Likewise.
10602 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
10603 * config/mips/mips-protos.h: Update.
10604
d88e57d1
RH
106052002-03-23 Richard Henderson <rth@redhat.com>
10606
10607 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
10608 * config/sparc/sparc-protos.h: Update.
10609 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
10610
6dfaf9ba
RH
106112002-03-23 Richard Henderson <rth@redhat.com>
10612
10613 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
10614 _start or _init begins the text segment.
10615
0c769cf8
DE
106162002-03-23 David Edelsohn <edelsohn@gnu.org>
10617
10618 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
10619 not HOST_WIDEST_INT.
10620 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
10621
64e92a26
RE
106222002-03-23 Richard Earnshaw <rearnsha@arm.com>
10623
10624 PR java/5489
10625 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
10626 operand argument to output_return_instruction.
15e5ad76 10627 * arm.c (arm_print_operand, case 'd'): If the operand is
64e92a26
RE
10628 const_true_rtx then just return.
10629 (arm_print_operand, case 'D'): If the operand is const_true_rtx
10630 then abort.
10631
d6961341
AC
106322002-03-23 Andrew Cagney <ac131313@redhat.com>
10633
10634 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
10635 (Warning Options): Document -Wswitch-default.
10636 * toplev.c (W_options): Add -Wswitch-default. Update comment on
10637 -Wswitch.
10638 (warn_switch_default): Define variable.
10639 (warn_switch): Update comment.
10640 * flags.h (warn_switch_default): Declare variable.
10641 (warn_switch): Update comment.
10642 * stmt.c (expand_end_case): Check for and, when
10643 warn_switch_no_default, warn of a missing default case.
15e5ad76 10644
d4c5ac1f
AM
106452002-03-23 Alan Modra <amodra@bigpond.net.au>
10646
bbaa9790
AM
10647 * real.h (N): Special case 128 bit doubles.
10648
d4c5ac1f
AM
10649 * combine.c (simplify_comparison): When widening modes, ignore
10650 sign extension on CONST_INTs.
10651
84bf8c2c
BW
106522002-03-22 Bob Wilson <bob.wilson@acm.org>
10653
10654 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
10655 passed to adjust_address. Fix comment formatting.
10656
10657
b216cd4a
ZW
106582002-03-22 Zack Weinberg <zack@codesourcery.com>
10659
10660 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
10661 Always make REAL_VALUE_TYPE a struct containing an array of
10662 HOST_WIDE_INT, not a double. Tidy up the code deciding how
10663 big it is. Don't declare or use union real_extract.
10664
10665 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
10666 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
10667 (print_operand), config/arm/arm.c (output_move_double),
10668 config/arm/arm.md (consttable_4, consttable_8),
10669 config/romp/romp.c (output_fpops), config/s390/s390.h
10670 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
10671 (xtensa_output_literal): Don't use union real_extract.
10672
10673 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
10674 (sfmode_constant_to_ulong), config/ns32k/merlin.h
10675 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
10676 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
10677 (PRINT_OPERAND): Don't use local version of union
10678 real_extract.
10679
10680 * config/convex/convex.c (check_float_value), config/vax/vax.c
10681 (vax_float_literal), config/m88k/m88k.md (divdf3),
10682 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
10683 config/pdp11/pdp11.c (output_move_quad): Don't do host
10684 arithmetic on target floating point quantities.
10685
10686 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
10687 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
10688
10689 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
10690 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
10691
10692 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
10693 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
10694 INFINITY.
10695 * print-rtl.c (print_rtx): Disable code which needs
10696 floating-point emulator.
10697 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
10698 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
10699 depending on HOST_FLOAT_FORMAT to be defined properly.
10700
10701 * config/1750a/1750a.c (get_double, float_label): Delete.
10702 (print_operand): Delete huge commented-out chunk. Use
10703 REAL_VALUE_TO_DECIMAL.
10704 * config/1750a/1750a-protos.h: Delete prototypes of deleted
10705 functions.
10706 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
10707 IEEE_FLOAT_FORMAT.
10708 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
10709 Use REAL_VALUE_TO_DECIMAL as ELF version does.
10710 * config/m88k/m88k.c (real_power_of_2_operand,
10711 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
10712 real_extract out of the union; run the input through
10713 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
10714 from that into the union.
10715 * config/pdp11/pdp11.c (output_move_double): Rearrange
10716 parentheses to make automatic indenter happy.
10717
10718 * doc/tm.texi (Cross-compilation): Rename node to "Floating
10719 Point" and rewrite to describe current situation. Also adjust
10720 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
10721 match code.
10722 * doc/rtl.texi: Adjust cross reference.
10723
a8cacfd2
BW
107242002-03-22 Bob Wilson <bob.wilson@acm.org>
10725
10726 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
10727 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
10728 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
10729 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
10730 prevent use of sp as a reload register.
10731 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
10732 non_acc_reg_operand.
10733 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
10734 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
10735 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
10736 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
10737
d4e6133f
NB
107382002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
10739
b216cd4a
ZW
10740 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
10741 * cpplex.c (unterminated): Delete.
10742 (parse_string): No string literal may extend over multiple
10743 lines. Suppress the error when preprocessing assembly.
d4e6133f
NB
10744 * cppmain.c (scan_translation_unit): Strings are single-line.
10745
b216cd4a 10746 * doc/cpp.texi: Update to match.
d4e6133f 10747
65e6c005
JJ
107482002-03-22 Jakub Jelinek <jakub@redhat.com>
10749
10750 PR optimization/5854
10751 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
10752 Shut up warnings.
10753 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
10754 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
10755 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
10756 const0 if scratch register was not allocated.
10757 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
10758 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
10759 with GEN_INT (...).
10760 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
10761 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
10762 with GEN_INT (...) everywhere. Remove constraints in define_split
10763 patterns.
10764 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
10765 require scratch register for setting 0 into regs/non-pushable memory.
10766
7f48c9e1
AO
107672002-03-22 Alexandre Oliva <aoliva@redhat.com>
10768
10769 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
10770 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
10771
909de5da
PE
107722002-03-22 Phil Edwards <pme@gcc.gnu.org>
10773
10774 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
10775 * cppinit.c (cpp_create_reader): On by default.
10776 (cpp_handle_option): Handle -W[no-]endif-labels.
10777 (cpp_post_options): Also enable if -pedantic.
10778 * cpplib.c (do_else): Use it.
10779 (do_endif): Likewise.
10780 * doc/cppopts.texi: Document new option.
10781 * doc/invoke.texi: Document new option.
10782
d8bf17f9
LB
107832002-03-22 Lars Brinkhoff <lars@nocrew.org>
10784
10785 * config/i386/i386.c, config/i386/i386.md: Change all occurences
10786 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
10787
70e0ccd0
AO
107882002-03-22 Alexandre Oliva <aoliva@redhat.com>
10789
10790 * flow.c (calculate_global_regs_live): Clear aux fields of
10791 ENTRY and EXIT.
10792
68882f0f
JJ
107932002-03-22 Jakub Jelinek <jakub@redhat.com>
10794
10795 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
10796 REG or MEM subregs, pass rtx * instead of rtx to it.
10797 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
10798 rtx * instead of rtx to alter_subreg.
10799 * config/m32r/m32r.c (gen_split_move_double): Likewise.
10800 * config/pj/pj.c (pj_output_rval): Likewise.
10801
648fe28b
RH
108022002-03-22 Richard Henderson <rth@redhat.com>
10803
10804 PR target/3177
10805 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
10806 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
10807 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
10808 (ia64_expand_prologue): Look at int_regs, not words, for number
10809 of incomming int regs.
10810
e8dcd824
AM
108112002-03-22 Andrew MacLeod <amacleod@redhat.com>
10812
10813 * expr.c (expand_expr): A RESULT_DECL is part of a call.
10814
96327cdc
JH
10815Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
10816
10817 * toplev.c (flag_loop_optimize, flag_crossjumping):
10818 New static variables.
10819 (rest_of_compilation): Conditionalize crossjumping and
10820 loop optimizer.
10821 (parse_options_and_default_flags): Default loop_optimize and
10822 crossjumping.
10823 (lang_independent_options): Add -fcrossjumping and -floop-optimize
10824 * invoke.texi (crossjumping, loop-optimize): Document.
10825
bc185257
RS
108262002-03-22 Richard Sandiford <rsandifo@redhat.com>
10827
10828 * real.c (eiisneg): Move outside #ifdef NANS.
10829
0a2ed1f1
JH
10830Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
10831
10832 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
10833 frequencies match; avoid match on different loop depths.
10834 (try_crossjump_to_bb): Kill tests that no longer brings time
10835 savings.
10836 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
10837 updating code.
10838 (split_edge): Likewise.
10839
10840 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
10841 variable.
10842
10843 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
10844 * cfgrtl.c: Include insn-config.h
10845 (split_block) Dirtify block in presence of conditional execution
10846
4d72536e
RS
108472002-03-22 Richard Sandiford <rsandifo@redhat.com>
10848
10849 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
10850 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
10851 (function_arg): Constify CUMULATIVE_ARGS.
10852 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
10853 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
10854 (UNITS_PER_DOUBLE): New macro.
10855 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
10856 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
10857 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
10858 fp_regs and stack_words.
10859 (EABI_FLOAT_VARARGS_P): New macro.
10860 * config/mips/mips.c (struct mips_arg_info): New.
10861 (mips_arg_info): New function.
10862 (function_arg_advance): Use it. Add adjustment instructions here
10863 rather than in function_arg.
10864 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
10865 for VOIDmode at the beginning of the function.
10866 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
10867 (function_arg_pass_by_reference): Likewise.
10868 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
10869 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
10870 (mips_va_start): Likewise. Use the new stack_words field of
10871 CUMULATIVE_ARGS to set up overflow area. Reformat.
10872 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
10873 doubles and other types, aligning the overflow pointer for non-doubles
10874 too. Remove some code duplication. Replace hard-coded constants.
10875
e6f884cd
RS
108762002-03-22 Richard Sandiford <rsandifo@redhat.com>
10877
10878 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
10879 (CLASS_UNITS): Undefine.
10880 (CLASS_MAX_NREGS): Use FP_INC.
10881 * config/mips/mips.c (compute_frame_size): Likewise.
10882 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
10883
10cf9bde
NB
108842002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
10885
10886 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
10887 prototype, and handle lexing numbers and identifiers.
10888 (parse_identifier): Update to new form of parse_slow.
10889 (parse_number): Fast path only, use parse_slow otherwise.
10890 (_cpp_lex_direct): Update calls to parse_number.
10891
fbc2782e
DD
108922002-03-21 DJ Delorie <dj@redhat.com>
10893
10894 * bb-reorder.c (make_reorder_chain_1): Protect against
10895 when redundant edges are omitted.
10896 * predict.c (dump_prediction): Likewise.
10897
fba39eaf
RH
108982002-03-21 Richard Henderson <rth@redhat.com>
10899
10900 PR target/5996
10901 * fixinc/inclhack.def (solaris_stdio_tag): New.
10902 * fixinc/fixincl.x: Regenerate.
10903
eba80994
EB
109042002-03-21 Eric Botcazou <ebotcazou@multimania.com>
10905
10906 PR c/5597
10907 * c-typeck.c (process_init_element): Flag non-static
10908 initialization of a flexible array member as illegal.
10909
2a78758b
AM
109102002-03-22 Alan Modra <amodra@bigpond.net.au>
10911
10912 * config/rs6000/t-linux64: New.
10913 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
10914 t-ppccomm. Use t-rs6000 and t-linux64.
10915 (powerpc64-*-gnu* <tmake_file>): Likewise.
bac015e7
AM
10916 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
10917 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
10918 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2a78758b 10919
2cb921f4
AH
109202002-03-21 Aldy Hernandez <aldyh@redhat.com>
10921
eba80994
EB
10922 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
10923 flag_really_no_inline instead of optimize == 0.
2cb921f4 10924
eba80994 10925 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2cb921f4 10926
eba80994 10927 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2cb921f4 10928
eba80994 10929 * flags.h (flag_really_no_inline): New.
2cb921f4 10930
659e5a7a 10931 * c-common.c (c_common_post_options): Initialize
eba80994 10932 flag_really_no_inline.
2cb921f4 10933
eba80994 10934 * toplev.c (flag_really_no_inline): New.
2cb921f4 10935
239b8b9d
JJ
109362002-03-21 Jakub Jelinek <jakub@redhat.com>
10937
10938 * config/avr/avr.md (length): Fix length computation for
10939 conditional branches.
10940
43577e6b
NB
109412002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
10942
10943 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
10944 sdbout.o, profile.o): Update.
10945 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
10946 langhook.
10947 * c-common.h (gettags): Move here from tree.h.
10948 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
10949 insert_block, getdecls, kept_level_p, global_bindings_p): New.
10950 * dbxout.c (dbxout_init): Use getdecls langhook.
10951 * expr.c (expand_expr): Use insert_block langhook.
10952 * fold-const.c: Include langhooks.h.
10953 (fold_range_test, fold_binary_op_with_conditional_arg,
10954 fold): Use global_bindings_p langhook.
10955 * integrate.c (expand_inline_function): Use insert_block langhook.
10956 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
10957 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
10958 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
10959 LANG_HOOKS_GETDECLS): New.
10960 (LANG_HOOKS_INITIALIZER): Update.
10961 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
10962 langhook.
10963 * langhooks.h (struct lang_hooks_for_decls): New.
10964 (struct lang_hooks): Update.
10965 * profile.c: Include langhooks.h.
10966 (output_func_start_profiler): Use new langhooks.
10967 * sdbout.c: Include langhooks.h.
10968 (sdbout_init, sdbout_finish): Use getdecls langhook.
10969 * stmt.c: Include langhooks.h.
10970 (expand_fixup, fixup_gotos): Use new langhooks.
10971 * stor-layout.c: Include langhooks.h.
10972 (variable_size): Use global_bindings_p langhook.
10973 * toplev.c (compile_file): Use getdecls langhook.
10974 * tree-inline.c (remap_block): Use insert_block langhook.
10975 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
10976 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
10977
5b19b10c
RH
109782002-03-21 Richard Henderson <rth@redhat.com>
10979
10980 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
10981 constants in .data when -fpic.
10982
e05af335
GP
109832002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10984
10985 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
10986 where appropriate.
10987
60ffc997
TT
109882002-03-21 Tom Tromey <tromey@redhat.com>
10989
10990 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
10991
75897075
RK
10992Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10993
a73afd69 10994 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
46399021 10995
75897075
RK
10996 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
10997
312687cf
EB
109982002-03-21 Eric Botcazou <ebotcazou@multimania.com>
10999 Richard Henderson <rth@redhat.com>
11000
11001 PR c/5354
11002 * c-common.c (c_expand_expr): Preserve result of a statement
11003 expression if needed.
11004
f0e1f482
JJ
110052002-03-21 Jakub Jelinek <jakub@redhat.com>
11006
11007 PR bootstrap/4195
11008 * genrecog.c (maybe_both_true_mode): Remove.
11009 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
11010 * machmode.def (Pmode): Likewise.
11011
c14b9960
JW
11012Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
11013
11014 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
11015 (nonlocal_mentioned_p_1): New function.
11016 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
11017 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
11018 (mark_constant_function): Recognize pure functions.
11019 * rtl.h (global_reg_mentioned_p): New prototype.
11020 * rtlanal.c (global_reg_mentioned_p,
11021 global_reg_mentioned_p_1): New function.
11022
aaa4d130
RO
110232002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11024
11025 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
11026 UNIX assert.h.
11027 * fixinc/fixincl.x: Regenerate.
11028
e5c4bd1b
JM
110292002-03-20 Jason Merrill <jason@redhat.com>
11030
11031 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
11032
852b81bb
MM
110332002-03-20 Michael Meissner <meissner@redhat.com>
11034
11035 * doc/invoke.texi (Optimize Options): Document that -O2 sets
11036 -fstrict-aliasing.
11037
86d8c251
BW
110382002-03-20 Bob Wilson <bob.wilson@acm.org>
11039
11040 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
11041 ".literal_position" directive before the constant pool.
11042
0a39c350
GP
110432002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11044
11045 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
11046 Add Craig Rodrigues.
11047 Add Brad Lucier to testers.
11048
71a83373
JJ
110492002-03-20 Jakub Jelinek <jakub@redhat.com>
11050
11051 PR target/4792
11052 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
11053 to if_then_else.
11054 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
11055 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
11056 instead of insn_extract.
11057
a29b099d
JJ
110582002-03-20 Jakub Jelinek <jakub@redhat.com>
11059
11060 PR bootstrap/4192
71a83373 11061 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
a29b099d
JJ
11062
11063 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
11064 stmt if some case has been output.
11065
048b1c95
JJ
110662002-03-20 Jakub Jelinek <jakub@redhat.com>
11067
11068 PR c/5972
11069 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
11070 movsfcc_1, movdfcc_1): Add %O2.
11071 * config/i386/i386.c (print_operand): Handle %ON.
11072 Print . before float condition codes in Sun as cmov syntax.
11073 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
11074 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
11075 no longer true.
11076
f4864588
PB
110772002-03-20 Philip Blundell <pb@nexus.co.uk>
11078
11079 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
11080 return instruction if PC was popped.
11081
3a307de4
BW
110822002-03-20 Bob Wilson <bob.wilson@acm.org>
11083
11084 * config/xtensa/xtensa.md: Remove unused type attributes.
11085 (adddi_carry, subddi_carry): Change type attribute to "multi".
11086
048b1c95 110872002-03-19 Dale Johannesen <dalej@apple.com>
ed7d44bc
DJ
11088
11089 PR optimization/5999, middle-end/5731
11090 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
11091 multiplications by reciprocals.
11092
7afff7cf
NB
110932002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
11094
11095 * Makefile.in: Update.
11096 * c-common.c: Include langhooks.h.
11097 (inline_forbidden_p): Use new hook.
11098 * diagnostic.c: Include langhooks.h.
11099 (format_with_decl, announce_function,
11100 default_print_error_function): Use new hook.
11101 * dwarf2out.c (dwarf2_name): Use new hook.
11102 * function.c: Include langhooks.h.
11103 (init_function_start): Use new hook.
11104 * langhooks-def.h (lhd_decl_printable_name): New.
11105 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
11106 (LANGHOOKS_INITIALIZER): Update.
11107 * langhooks.c (lhd_decl_printable_name): New.
11108 * langhooks.h (struct lang_hooks): New hook.
11109 * toplev.c (decl_name, decl_printable_name): Remove.
11110 (open_dump_file): Use new hook.
11111 (process_options): Remove old hook.
11112 * tree.h (decl_printable_name): Remove.
11113objc:
11114 * objc-act.c (objc_init): Remove old hook.
11115 (objc_printable_name): Export.
11116 * objc-act.h (objc_printable_name): New.
11117 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11118
f78ce0b7
JB
111192002-03-19 Jim Blandy <jimb@redhat.com>
11120
11121 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
11122 the start_source_file debug hook, not the current line number.
11123
15b5aef3
RH
111242002-03-19 Richard Henderson <rth@redhat.com>
11125
11126 * flow.c (EH_USES): Provide default.
11127 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
11128 * doc/tm.texi (EH_USES): New.
11129
11130 * config/ia64/ia64.c (ia64_eh_uses): New.
11131 * config/ia64/ia64-protos.h: Update.
11132 * config/ia64/ia64.h (EH_USES): New.
11133
02a7a3fd
RH
111342002-03-19 Richard Henderson <rth@redhat.com>
11135
11136 * varasm.c (output_constant_def): Fix stupid typo.
11137
93f82d60
RH
111382002-03-19 Richard Henderson <rth@redhat.com>
11139
2842be05 11140 PR 5879
93f82d60
RH
11141 * except.c (current_function_has_exception_handlers): New.
11142 * except.h: Declare it.
11143 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11144 Combine tests that disable all sibcalls for the function.
11145
ed4fbfa0
OH
111462002-03-19 Olivier Hainque <hainque@act-europe.fr>
11147
11148 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
11149 for INTEGER_CST.
11150
ebf0e888
RH
111512002-03-19 Richard Henderson <rth@redhat.com>
11152
1e82682b 11153 PR 5977, 5991
ebf0e888
RH
11154 * config/ia64/ia64.c: Revert 2002-03-01 patch.
11155 * config/ia64/ia64.h (INIT_EXPANDERS): New.
11156
e37b38d7
JB
111572002-03-19 Jim Blandy <jimb@redhat.com>
11158
11159 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
11160 name, even if the replacement list contains no tokens, as required
11161 by Dwarf.
11162
2a4ea326
JM
111632002-03-19 Jason Merrill <jason@redhat.com>
11164
f9d09ae5
JM
11165 * varasm.c (globalize_decl): Get the name from the RTL, not
11166 DECL_ASSEMBLER_NAME.
11167
2a4ea326
JM
11168 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
11169
99b96edb
BW
111702002-03-19 Bob Wilson <bob.wilson@acm.org>
11171
11172 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
11173 subdi_carry): Define.
11174
3774b567
DE
111752002-03-19 David Edelsohn <edelsohn@gnu.org>
11176
11177 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
11178 about -fpic/-fPIC if extra_warnings set.
11179
21ef78aa
DE
111802002-03-19 David Edelsohn <edelsohn@gnu.org>
11181
11182 * expr.c (expand_expr): Sign-extend CONST_INT generated from
11183 TREE_STRING_POINTER.
0c2fdcdf 11184 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
21ef78aa 11185
91d4b3fd
RK
11186Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11187
11188 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
11189 in favor of SP if FRAME_POINTER_REQUIRED is false.
11190
2496c7bd
LB
111912002-03-19 Lars Brinkhoff <lars@nocrew.org>
11192
11193 * emit-rtl.c (gen_int_mode): New function.
11194 * rtl.h: Prototype for it.
11195 * combine.c (make_extraction, simplify_comparison), expmed.c
11196 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
11197 (convert_modes, store_field), optabs.c (expand_fix),
11198 simplify-rtx.c (neg_const_int, simplify_unary_real),
11199
11200 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
11201 Use it instead of GEN_INT (trunc_int_for_mode (...)).
11202
f735a153
JJ
112032002-03-19 Jakub Jelinek <jakub@redhat.com>
11204
11205 PR c/5656
11206 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11207 convert_parm_for_inlining.
11208 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
11209 Define.
11210 * langhooks-def.h: Likewise.
11211 * objc/objc-lang.c: Likewise.
11212 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
11213 function.
11214 * tree-inline.c (initialize_inlined_parameters):
11215 Call convert_parm_for_inlining lang hook if needed.
11216 * c-typeck.c (c_convert_parm_for_inlining): New function.
11217 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
11218
1929c971
MM
112192002-03-18 Mark Mitchell <mark@codesourcery.com>
11220
b216cd4a 11221 * calls.c (precompute_arguments): Do not assume that temporaries
1929c971
MM
11222 can be destroyed after expanding the argument.
11223 (expand_call): Likewise.
11224
c79ca0ac
EC
112252002-03-15 Eric Christopher <echristo@redhat.com>
11226
11227 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
11228 Fix register preference on last change.
11229 * config/mips/mips.c (mips_return_in_memory): New function.
11230 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
11231 * config/mips/mips-protos.h: Declare.
11232 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
11233 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
11234
07e2e444
AO
112352002-03-18 Alexandre Oliva <aoliva@redhat.com>
11236
1bfbbbcf
AO
11237 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
11238 a register too.
11239 (anddi3, iorsi3): Likewise.
11240
c066429e
AO
11241 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
11242 use %gprel for symbols that are going to be placed in linkonce
11243 sections.
11244
07e2e444
AO
11245 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
11246 RETURN_ADDRESS_POINTER_REGNUM to $ra.
11247 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
11248 not needed. Disregard leaf_function_p().
11249 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
11250 mips16 frame pointer.
11251 * config/mips/mips.md (store ra): Only to small SP offsets.
11252 2001-08-22 Graham Stott <grahams@redhat.com>
11253 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
11254 return a REG rtx for the return address register.
11255
eb8e00ea
BW
112562002-03-18 Bob Wilson <bob.wilson@acm.org>
11257
11258 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
11259 constant-pool addresses as "mode-dependent".
11260 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
11261
cbb92744
JJ
112622002-03-18 Jakub Jelinek <jakub@redhat.com>
11263
11264 PR target/5740
11265 * expr.c (emit_group_load): Use extract_bit_field if
11266 needed for CONCAT arguments.
11267
657d9449
RE
112682002-03-18 Richard Earnshaw <rearnsha@arm.com>
11269
91f3a802 11270 PR target/4863
657d9449
RE
11271 * arm.md (tablejump): Make this a define_expand. For PIC add the
11272 offset to the base of the table.
11273 (thumb_tablejump): Matcher for Thumb tablejump insn.
11274 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
11275 as the difference of two labels.
11276 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11277 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
11278 tables in the code.
11279 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11280 * arm.c (get_jump_table_size): If the table is not in the text
11281 section, return zero.
c79ca0ac 11282
5d5603e2
BS
112832002-03-18 Bernd Schmidt <bernds@redhat.com>
11284
11285 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
11286 of gen_rtx_SUBREG.
11287 (arm_reload_out_hi): Use gen_lowpart instead of
11288 gen_rtx_SUBREG to access QImode components.
11289 * config/arm/arm.md: Disable zero_extend split for QImode
11290 subregs in BIG_ENDIAN mode.
11291 (storehi_bigend): Match use of least significant byte.
11292 (storeinthi): Remove extraneous SUBREG.
66c17b64 11293 Add missing construction of operands[2].
5d5603e2
BS
11294 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
11295 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
11296 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
11297
df15fbc7
AH
112982002-03-18 Aldy Hernandez <aldyh@redhat.com>
11299
2496c7bd
LB
11300 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
11301 any_operand.
df15fbc7 11302
b83b7fa3
RH
113032002-03-17 Richard Henderson <rth@redhat.com>
11304
11305 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
11306 explicitly.
11307
6f7c00fe
HPN
113082002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11309
11310 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
11311 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
11312
155038f2
KG
113132002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11314
720d42fa
KG
11315 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
11316
155038f2
KG
11317 * predict.c (estimate_bb_frequencies): Delete unused variables.
11318
e6542f4e
RH
113192002-03-17 Richard Henderson <rth@redhat.com>
11320
11321 * config/ia64/ia64.c (ia64_attribute_table): Move before
11322 targetm definition. Make static.
11323
52dabb6c
NB
113242002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
11325
11326 * c-common.h (yyparse, c_common_parse_file): New.
11327 * c-lang.c: Include c-common.h.
11328 (LANG_HOOKS_PARSE_FILE): Redefine.
11329 * c-lex.c: Include c-common.h.
11330 (yyparse): Rename c_common_parse_file. Call yyparse.
11331 * c-parse.in (yyparse): Remove macro.
11332 * c-tree.h (yyparse_1): Remove.
11333 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
11334 (LANG_HOOKS_INITIALIZER): Update.
11335 * langhooks.h (struct lang_hoooks): New hook parse_file.
11336 * toplev.c (compile_file): Use parse_file hook.
11337 * tree.h (yyparse): Remove.
e6542f4e 11338 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
52dabb6c 11339
b5ffe606
HPN
113402002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11341
ba82f58b
HPN
11342 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
11343 float_truncate, not fix.
11344 ("*truncdfsf2_real"): Ditto.
11345 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
11346
b5ffe606
HPN
11347 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
11348
c8d1b2b7
AO
113492002-03-16 Alexandre Oliva <aoliva@redhat.com>
11350
cfb773f9
AO
11351 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
11352 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
11353 where appropriate. Make the second reference to
11354 leaf_function_p a function call, as intended. Reindented.
11355
4dffef52
AO
11356 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
11357 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
11358
4f5bd6d7
AO
11359 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
11360 add register to non-constant into sp.
11361
c8d1b2b7
AO
11362 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
11363 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
11364 (mips16_gp_pseudo_rtx): Lose.
11365 (INIT_EXPANDERS): Deleted.
11366 * config/mips/mips.c (mips_init_machine_status): New.
11367 (mips_free_machine_status): New.
11368 (mips_mark_machine_status): New.
11369 (override_options): Set them.
11370 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
11371 (struct machine_function): ... new. Replaced all references.
11372 (mips_add_gc_roots): Don't mark them.
11373 (embedded_pic_fnaddr_reg): New, extracted from...
11374 (embedded_pic_offset): ... here.
11375 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
11376 (movsi): Likewise.
11377
b3124fac
NB
113782002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11379
11380 * cppinit.c: Revert -MD removal.
11381
121449b6
SC
113822002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11383
11384 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
11385 soft registers by default for 68HC12.
11386 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
11387 when compiling with -fomit-frame-pointer.
11388 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
11389 (expand_epilogue): Likewise.
11390 (m68hc11_gen_rotate): Use exg when rotating by 8.
11391
840e2ff1
SC
113922002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11393
11394 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
11395 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
11396 (splits): Remove unused add splits.
11397 ("*addhi3_68hc12"): Tune constraints.
11398 ("addhi_sp"): Try to use X instead of Y in all cases and if the
11399 constant fits in 8-bits and D is dead use abx/aby instructions.
11400 ("*addhi3"): Remove extern declaration of ix_reg.
11401 ("*subsi3"): Optimize and provide new split.
11402 ("subhi3"): Cleanup.
11403 ("*subhi3_sp"): Avoid saving X if we know it is dead.
11404 (arith splits): For 68hc12 save the address register on the stack
11405 and do the arithmetic operation with a pop.
11406
3c9a5efe
SC
114072002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11408
11409 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
11410 allocating QImode in address registers.
11411 ("*movqi_m68hc11"): Likewise.
11412
e41f3392
JH
11413Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
11414
11415 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
11416
576786b0
NB
114172002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11418
11419 * cppinit.c (print_help): Display -MD and -MMD.
11420 Don't display usage string. Update assertion syntax and
11421 typo.
11422 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
11423 (cpp_handle_option): Update.
11424
1ac458d4
CD
114252002-03-15 Chris Demetriou <cgd@broadcom.com>
11426
11427 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
11428 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
11429 and define it so that regardless of target CPU size,
11430 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
11431 of "int" rather than "long."
11432
1fcd592b
RH
114332002-03-15 Richard Henderson <rth@redhat.com>
11434
11435 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
11436 size as a tree.
11437
a0df6910
SC
114382002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11439
11440 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
11441 ("tstqi" split): Avoid using memory for tstqi on address register.
11442 (splits): Remove constraints.
11443 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
11444 ("cmpdf", "cmpsf"): Remove since not used.
11445 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
11446 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
11447
015a2e59
SC
114482002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11449
11450 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
11451 ("neghi2"): Tighten constraints.
11452 ("one_cmplsi2"): Optimize and simplify split.
11453 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
11454
cd28557c
SC
114552002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11456
11457 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
11458 and split of AND operation to clear the upper bits.
11459 ("*logicalsi3_zextqi"): Likewise.
11460 ("*logicallhi3_zexthi_ashift8"): Likewise.
11461 ("*logicalsi3_silshr16"): Likewise.
11462 ("logicalsi3_silshl16"): Likewise.
11463 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
11464
932657df
SC
114652002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11466
11467 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
11468 (m68hc11_indirect_p): New function.
11469 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
11470 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
11471 TARGET_M6812.
11472 (asm_print_register): Likewise.
11473 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
11474 (m68hc11_indirect_p): Declare.
11475 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
11476 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
11477 (TARGET_SWITCHES): New option -mrelax.
11478 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
11479 destination.
11480 ("iorsi3", "xorsi3"): Likewise.
11481 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
11482 ("*andhi3_mem"): New to handle destination in memory with bclr
11483 and a scratch register.
11484 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
11485 ("*andhi3_const"): New when operand2 is constant.
11486 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
11487 ("*andhi3_gen"): Cleanup of the old "andhi3".
11488 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
11489 ("xorqi3"): Update constraints.
11490
fdffea1a
SC
114912002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11492
11493 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
11494 for reg_equiv_memory_loc when the operand is a register that does
11495 not get a hard register (stack location).
11496 (tst_operand): After reload, accept all memory operand.
11497 (symbolic_memory_operand): Fix detection of symbolic references.
11498 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
11499 accept symbols and any constant.
11500
6272bc68
SC
115012002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11502
11503 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
11504 note on the insn that sets the soft frame register.
11505 (must_parenthesize): ix and iy are also reserved names.
11506 (print_operand_address): One more place where parenthesis are required
11507 to avoid confusion with register names.
11508 (m68hc11_gen_movhi): Allow push of stack pointer.
11509 (m68hc11_check_z_replacement): Fix handling of parallel with a
11510 clobber.
11511 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
11512 the replacement register is.
11513 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
11514 and D8_REGS classes.
11515 (MODES_TIEABLE_P): All modes are tieable except QImode.
11516
1d2d9def
SC
115172002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11518
11519 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
11520 (___subdi3): Likewise.
11521 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
11522 (__map_data_section): Optimize 68hc11 case.
11523
a0ccf503
SC
115242002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11525
11526 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
11527 than a shift to avoid adding a register with itself.
11528 (m68hc11_memory_move_cost): Take into account NO_REGS.
11529 (m68hc11_register_move_cost): Update and use memory move cost
11530 for soft registers.
11531 (m68hc11_address_cost): Make cost of valid offset not 0 so that
11532 it gives more opportunities to cse to optimize.
11533 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
11534 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
11535
6e4ae815
MM
115362002-03-15 Mark Mitchell <mark@codesourcery.com>
11537
11538 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
11539 * c-common.def (CLEANUP_STMT): New tree node.
11540 * c-common.h (CLEANUP_DECL): New macro.
11541 (CLEANUP_EXPR): Likewise.
11542 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
11543 * expr.c (expand_expr): Tidy.
11544 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
11545 * tree-inline.c (initialize_inlined_parameters): Clean up
11546 new local variables.
11547
a42519be
JJ
115482002-03-15 Jakub Jelinek <jakub@redhat.com>
11549
11550 PR bootstrap/4128
11551 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
11552 before movrXX only, use reg_overlap_mentioned_p.
11553 Only special case NE if just one insn can be generated.
11554
15409448
JM
115552002-03-15 Jason Merrill <jason@redhat.com>
11556
11557 * varasm.c (assemble_variable): Call resolve_unique_section before
11558 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
11559 of error_mark_node.
11560
3a4edb44
RE
115612002-03-15 Richard Earnshaw <rearnsha@arm.com>
11562
11563 PR target/5170
11564 * arm.md (split pattern for thumb shiftable immediates): Add comment
11565 explaining non-obvious test.
11566
32defa36
RE
115672002-03-15 Richard Earnshaw <rearnsha@arm.com>
11568
11569 PR target/5712
11570 * arm.md (movaddr, movaddr_insn): Delete.
11571
5cc90635
JM
115722002-03-15 Jason Merrill <jason@redhat.com>
11573
11574 * toplev.c (wrapup_global_declarations): Clarify variable handling.
11575 -fkeep-static-consts doesn't apply to comdats.
11576
ecb0eece
RH
115772002-03-14 Richard Henderson <rth@redhat.com>
11578
11579 * c-decl.c: Include c-pragma.h.
11580 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
11581 (finish_function): Tidy.
11582 * c-pragma.c: Include c-common.h.
11583 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
11584 (handle_pragma_weak): Use them.
11585 (init_pragma): Register pending_weaks.
11586 * c-pragma.h (maybe_apply_pragma_weak): Declare.
11587 * print-tree.c (print_node): Print DECL_WEAK.
11588 * varasm.c (mark_weak_decls): Remove.
11589 (remove_from_pending_weak_list): Remove.
11590 (add_weak): Remove.
11591 (asm_emit_uninitialised): Call globalize_decl for weak commons.
11592 (weak_decls): Make a tree_list.
11593 (declare_weak): Cons weak_decls directly.
11594 (globalize_decl): Remove weak_decls elements directly.
11595 (weak_finish): Simplify weak_decls walk. Don't weaken unused
11596 symbols. Don't pretend to handle aliases.
11597 (init_varasm_once): Update weak_decls registry.
11598 * Makefile.in: Update dependencies.
11599
98d2b17e
RH
116002002-03-14 Richard Henderson <rth@redhat.com>
11601
11602 PR target/5312
11603 * config/ia64/ia64.c: Include tm_p.h last.
11604 (gen_nop_type): Remove duplicate definition.
11605 (cycle_end_fill_slots): Set sched_data for second L slot.
11606 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
11607 (nop_cycles_until): Fix typos.
11608
f2f4927e
JJ
116092002-03-15 Jakub Jelinek <jakub@redhat.com>
11610
11611 PR optimization/5891
11612 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
11613
5025a549
DM
116142002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
11615
11616 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
11617 descriptors correctly.
11618
03e9dbc9
MM
116192002-03-14 Michael Meissner <meissner@redhat.com>
11620
11621 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
11622 100, allowing MAX_UNROLLED_INSNS to be overridden.
11623
11624 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
11625 --param.
11626
11627 * unroll.c (params.h): Include.
11628 (MAX_UNROLLED_INSNS): Delete, now in params.h.
11629
11630 * doc/invoke.texi (--param max-unroll-insns): Document.
11631
11632 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
11633
12249385
RE
116342002-03-14 Richard Earnshaw <rearnsha@arm.com>
11635
11636 * arm.md: Fix warnings about constraints in peepholes and splits.
11637
f0cce04a
ZW
116382002-03-14 Zack Weinberg <zack@codesourcery.com>
11639
11640 * cpphash.h (struct lexer_state): Remove line_extension member.
11641 * cpplib.c (dequote_string, do_linemarker): New functions.
11642 (linemarker_dir): New data object.
11643 (DIRECTIVE_TABLE): No longer need to interpret #line in
11644 preprocessed source. Delete obsolete comment about return
11645 values of handlers.
11646 (end_directive, directive_diagnostics, _cpp_handle_directive):
11647 Don't muck with line_extension.
11648 (directive_diagnostics): No need to issue warnings for
11649 linemarkers here.
11650 (_cpp_handle_directive): Issue warnings for linemarkers here,
11651 when appropriate. Dispatch linemarkers to do_linemarker, not
11652 do_line.
11653 (do_line): Code to handle linemarkers split out to do_linemarker.
11654 Convert escape sequences in filename argument, both places.
11655
11656 * cppmacro.c (quote_string): Rename cpp_quote_string and
11657 export. All callers changed.
11658 * cpplib.h (cpp_quote_string): Prototype.
11659 * cppmain.c (print_line): Call cpp_quote_string on to_file
11660 before printing it.
11661
11662 * doc/cpp.texi: Document that escapes are now interpreted in
11663 #line and in linemarkers, and that non-printing characters are
11664 converted to octal escapes when linemarkers are generated.
11665
11666Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
83a49407
JH
11667
11668 * emit-rtl.c (try_split): Use delete_insns.
11669 * recog.c (split_all_insns): Fix terminating condition.
11670
c882c7ac
RE
116712002-03-14 Richard Earnshaw <rearnsha@arm.com>
11672 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
11673
11674 PR target/5828
11675 * arm.c (arm_output_epilogue): Fix floating-point register save
11676 adjustment when using a frame pointer.
11677
3f26edaa
RS
116782002-03-14 Richard Sandiford <rsandifo@redhat.com>
11679
11680 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
11681 * config/mips/mips.c (compute_frame_size): Retrofit them here.
11682 (save_restore_insns, mips_expand_epilogue): And here.
11683 (build_mips16_call_stub): And here.
11684 (mips_function_value): Use the new macros to decide whether a single
11685 or complex float can be returned in floating-point registers. Return
11686 a parallel rtx in the complex case.
11687
1e3881c2
JH
11688Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
11689
11690 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
11691 call after liveness analysis.
11692
11693 * recog.c (split_insn): Use delete_insn_and_edges.
11694
11695 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
11696 instructions to have branch prediction notes.
11697 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
11698
200ef634
GK
116992002-03-14 Geoffrey Keating <geoffk@redhat.com>
11700
11701 * configure.in: Don't pass -Wno-long-long to a ADA compiler
11702 that doesn't support it.
11703 * configure: Regenerate.
11704
0b82d204
JJ
117052002-03-13 Jakub Jelinek <jakub@redhat.com>
11706
11707 PR target/5626
11708 * config/sparc/sparc.md (normal_branch, inverted_branch,
11709 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
11710 inverted_fp_branch): Adjust calls to output_cbranch.
11711 Set length attribute.
11712 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
11713 output_v9branch. Set length attribute.
11714 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
11715 predicates.
11716 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
11717 (output_cbranch): Likewise. Handle far branches.
11718 (output_v9branch): Handle far branches.
11719 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
11720 Adjust prototypes.
11721 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
11722 noov_compare64_op predicates.
11723
7a8de19b
JM
117242002-03-13 Jason Merrill <jason@redhat.com>
11725
11726 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
11727 into the function and constify it.
11728 * gthr-dce.h, gthr-solaris.h: Likewise.
11729
2a55fd42
DE
117302002-03-13 David Edelsohn <edelsohn@gnu.org>
11731
11732 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
11733 * config/rs6000/rs6000.c (rs6000_va_arg): Use
11734 std_expand_builtin_va_arg if not ABI_V4.
11735
19c5b1cf
JM
117362002-03-13 Jason Merrill <jason@redhat.com>
11737
11738 * varasm.c (globalize_decl): New fn.
11739 (assemble_start_function): Use it.
11740 (asm_emit_uninitialized): Use it.
11741 (assemble_alias): Use it.
11742 (assemble_variable): Use it.
11743
2a15f5e1
HPN
117442002-03-13 Hans-Peter Nilsson <hp@axis.com>
11745
11746 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
f0cce04a 11747 2002-03-12 internal visibility change.
2a15f5e1
HPN
11748 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
11749 visibility into SYMBOL_REF_FLAG.
11750
c0a3eeac
UW
117512002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
11752
11753 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
11754 VOIDmode operand. Add compile-time optimization for constant results.
11755
a1652cee
JM
117562002-03-12 Jason Merrill <jason@redhat.com>
11757
11758 * c-typeck.c (convert_for_assignment): Don't allow conversions
11759 between pointers and references. Only allow lvalues to convert to
11760 reference.
11761
c52a375d
HP
117622002-03-13 Hartmut Penner <hpenner@de.ibm.com>
11763
f0cce04a
ZW
11764 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
11765 before prologue, to avoid scheduling problems.
c52a375d 11766
e387e99b
JJ
117672002-03-13 Jakub Jelinek <jakub@redhat.com>
11768
11769 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
11770 (ELIMINABLE_REGS): Add sfp->sp.
11771 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
11772
117732002-03-13 Jakub Jelinek <jakub@redhat.com>
09948ece
JJ
11774
11775 PR optimization/5892
11776 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
11777
4061c1a3
JJ
117782002-03-13 Jakub Jelinek <jakub@redhat.com>
11779
11780 * loop.c (basic_induction_var): Don't call convert_modes if mode
11781 classes are different.
11782
5b43fed1
RH
117832002-03-12 Richard Henderson <rth@redhat.com>
11784
9f53e965
RH
11785 PR optimization/5901
11786 * function.c (reposition_prologue_and_epilogue_notes): Position
11787 the markers after/before the last/first insn not deleted.
11788
117892002-03-12 Richard Henderson <rth@redhat.com>
11790
11791 PR optimization/5878
5b43fed1
RH
11792 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
11793 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
11794 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11795
11796 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
11797 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
11798 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
11799
11800 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
11801 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
11802 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
11803 also. Don't set it if not flag_pic.
11804 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
11805 to be INVALID_REGNUM when not used.
11806
4e9bb42b
AH
118072002-03-13 Aldy Hernandez <aldyh@redhat.com>
11808
5b43fed1
RH
11809 * expmed.c (store_bit_field): Reset alias set for memory.
11810 (extract_bit_field): Same.
4e9bb42b 11811
2f9834e8
KG
118122002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11813
11814 * c-common.c (c_tree_code_type, c_tree_code_length,
11815 c_tree_code_name, add_c_tree_codes): Delete.
11816 * c-common.h (add_c_tree_codes): Delete.
11817 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
11818 Define.
11819 * c-objc-common.c (c_objc_common_init): Don't call
11820 add_c_tree_codes, instead set lang_unsafe_for_reeval.
11821 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
11822 objc_tree_code_name, add_objc_tree_codes): Delete.
11823 (objc_init): Don't call add_objc_tree_codes.
11824 * objc/objc-lang.c (tree_code_type, tree_code_length,
11825 tree_code_name): Define.
11826 * toplev.c (lang_independent_init): Don't set
11827 tree_code_length[IDENTIFIER_NODE].
11828 * tree.c (tree_code_type, tree_code_length, tree_code_name):
11829 Delete definitions, moved to language front-ends.
11830 * tree.def (IDENTIFIER_NODE): Hardwire the length.
11831 * tree.h (tree_code_type, tree_code_length, tree_code_name):
11832 Const-ify.
11833 (tree_code_length): Change type to unsigned char.
11834
36ad2436
RH
118352002-03-12 Richard Henderson <rth@redhat.com>
11836
11837 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
11838 internal visibility change.
11839
0ae02efa
BW
118402002-03-12 Bob Wilson <bob.wilson@acm.org>
11841
11842 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
11843 validize_mem() instead of change_address to avoid clobbering
11844 memory attributes.
11845
35bb2bee
NB
118462002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
11847
11848 * c-lex.h (position_after_whitespace): Remove.
11849
62ae2529
JJ
118502002-03-12 Jakub Jelinek <jakub@redhat.com>
11851
11852 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
11853 (lex_string): Use unsigned char pointers.
11854
6a45951f
UW
118552002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
11856
11857 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
11858 is not a valid memory_operand.
11859
e2fb85da
BW
118602002-03-12 Bob Wilson <bob.wilson@acm.org>
11861
11862 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
11863 * config/xtensa/lib1funcs.asm: Fix copyright to include
11864 special case for libgcc files.
11865 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
11866 (__divsi3): Likewise.
11867 (__umodsi3): Likewise.
11868 (__modsi3): Likewise.
11869 * config/xtensa/lib2funcs.S: Fix copyright to include
11870 special case for libgcc files.
11871
5b8619f8
TR
118722002-03-12 Tom Rix <trix@redhat.com>
11873
11874 * collect2.c (resolve_lib_name): Move outside of
f0cce04a 11875 OBJECT_FORMAT_COFF ifdef.
5b8619f8
TR
11876 (ignore_library): Same.
11877
089c8f97
BW
118782002-03-12 Bob Wilson <bob.wilson@acm.org>
11879
11880 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
11881
958c70ff
BW
118822002-03-12 Bob Wilson <bob.wilson@acm.org>
11883
11884 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
11885 to function_section before writing out the constant pool.
11886
a65c591c
DE
118872002-03-12 David Edelsohn <edelsohn@gnu.org>
11888
11889 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
11890 zero_constant.
11891 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
11892
118932002-03-12 Alan Modra <amodra@bigpond.net.au>
11894
11895 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
11896 (adddi3): Likewise.
11897 (movdf): Likewise.
11898 (movdi): Likewise.
11899 (cmpsi splitter): Likewise.
11900 (modsi3): Fail if <= 0.
11901 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
11902 redundant test when HOST_BITS_PER_WIDE_INT != 32.
11903 (reg_or_sub_cint64_operand): Likewise.
11904 (num_insns_constant_wide): Optimize sign extension.
11905 (rs6000_legitimize_address): Likewise.
11906
17720332
AM
119072002-03-12 Andrew MacLeod <amacleod@redhat.com>
11908
11909 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11910 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11911
cd49f073
AM
119122002-03-12 Andrew MacLeod <amacleod@redhat.com>
11913
11914 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
11915 address calculation.
11916
6a4e49c1
UW
119172002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
11918
11919 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
11920 scratch register to DImode / TImode.
11921 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
11922 register used does not overlap the target.
11923
54b6670a
KG
119242002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11925
11926 * Makefile.in (debug.o): Depend on debug.h.
11927 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
11928 * debug.c (do_nothing_debug_hooks): Likewise.
11929 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
11930 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
11931 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
11932 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
11933 * dwarfout.c (dwarf_debug_hooks): Likewise.
11934 * integrate.c (output_inline_function): Likewise.
11935 * objc/objc-act.c (synth_module_prologue): Likewise.
11936 * sdbout.c (sdb_debug_hooks): Likewise.
11937 * toplev.c (debug_hooks): Likewise.
11938 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11939
2465bf76
KG
119402002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11941
11942 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
11943 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
11944 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
11945 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
11946 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
11947 * defaults.h (POINTER_SIZE): Define.
11948 * doc/tm.texi (POINTER_SIZE): Document default.
11949
53f3e9ca
KG
119502002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11951
11952 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
11953
44d3eb5b
RH
119542002-03-11 Richard Henderson <rth@redhat.com>
11955
11956 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
11957 if rebuild_label_notes_after_reload.
11958
4a085d2e
HPN
119592002-03-12 Hans-Peter Nilsson <hp@axis.com>
11960
11961 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
11962 emit pic register load if "internal" visibility.
11963 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
11964 (cris_expand_builtin_va_arg): Do all computations on trees.
11965
bc204393
RH
119662002-03-11 Richard Henderson <rth@redhat.com>
11967
11968 * rtlanal.c: Include recog.h.
11969 (keep_with_call_p): Fix thinko.
11970 * Makefile.in (rtlanal.o): Update dependencies.
11971
6b8b9d7b
CM
119722002-03-11 Chris Meyer <cmeyer@gatan.com>
11973
11974 * genflags.c (gen_insn): Use IS_VSPACE.
11975 * genoutput.c (output_insn_data): Likewise.
11976 (process_template): Likewise.
11977
6c40858f
RH
119782002-03-11 Richard Henderson <rth@redhat.com>
11979
11980 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
11981
40adaa27
NB
119822002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
11983
11984 * Makefile.in: Update.
6c40858f 11985 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
40adaa27 11986 Update documentation.
6c40858f
RH
11987 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
11988 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
40adaa27 11989
049b03f4
ZW
119902002-03-11 Zack Weinberg <zack@codesourcery.com>
11991
11992 * Makefile.in: Give texi2pod its input file as a command line
11993 argument, not on stdin.
11994
61eece67
DN
119952002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
11996 Daniel Berlin <dan@dberlin.org>
11997
11998 C++ alias analysis improvement.
f0cce04a 11999 * alias.c (record_component_aliases): Record aliases for base
61eece67
DN
12000 classes too.
12001
a65c591c
DE
120022002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
12003
ff080aba
UW
12004 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
12005
1682dbb1
DR
120062002-03-11 Douglas B Rupp <rupp@gnat.com>
12007
fa2d765a
DR
12008 * toplev.c (vms_fopen): Remove, not needed.
12009
6f1fd286
DR
12010 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
12011
b230e057
DR
12012 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
12013
cb9a8e97
DR
12014 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
12015 for FP, already done later.
12016
1682dbb1
DR
12017 * toplev.c (debug_args): Add entry for VMS_DEBUG.
12018 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
12019
3fcaac1d
RS
120202002-03-11 Richard Sandiford <rsandifo@redhat.com>
12021
12022 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
12023 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
12024 LARGEST_EXPONENT_IS_NORMAL for the given mode.
12025 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
12026 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
12027 (ediv, emul, eldexp, esqrt): Likewise.
12028 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
12029 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
12030 (saturate): New function.
12031 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
12032 (make_nan): Use a saturation value instead of a NaN if
12033 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
12034 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
12035 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
12036 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
12037 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
12038 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
12039 !ROUND_TOWARDS_ZERO.
12040 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
12041 (ROUND_TOWARDS_ZERO): Document.
12042
d25558be
AJ
120432002-03-11 Andreas Jaeger <aj@suse.de>
12044
12045 * cfg.c (dump_flow_info): Remove unused variable.
12046
c71f9ae7
HPN
120472002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
12048
12049 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
12050 computations on trees.
12051
561c9153
RH
120522002-03-10 Richard Henderson <rth@redhat.com>
12053
932b4e3e 12054 PR 5693:
561c9153
RH
12055 * reload.c (copy_replacements_1): New.
12056 (copy_replacements): Use it to recurse through the rtx.
12057
26b738be
RH
120582002-03-10 Richard Henderson <rth@redhat.com>
12059
12060 * loop.c (strength_reduce): Compute number of iterations as
12061 unsigned HOST_WIDE_INT.
12062
8d8a083e
RH
120632002-03-10 Richard Henderson <rth@redhat.com>
12064
12065 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
12066 to move away from the end of the block.
12067
32810ba3
NB
120682002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
12069
12070 PR preprocessor/5899
12071 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
d25558be 12072
2b03d201
KG
120732002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12074
f90c544c
KG
12075 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
12076
2b03d201
KG
12077 * attribs.c (decl_attributes): Fix signed/unsigned warning.
12078
3ec1b4cb
HPN
120792002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
12080
12081 * config/mmix/mmix.c: Improve comments.
12082 (mmix_target_asm_function_prologue): Drop variable
12083 empty_stack_frame. Don't allocate unused slot above fp.
12084 (mmix_target_asm_function_epilogue): Mirror prologue changes.
12085 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
12086 brace in first column.
12087 (enum reg_class): Ditto.
12088 (FIRST_PARM_OFFSET): Now 0.
12089 (USER_LABEL_PREFIX): Remove #if 0:d definition.
12090
27e486c5
KG
120912002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12092
12093 * combine.c (make_extraction): Fix error in last change.
12094
0139adca
KG
120952002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12096
12097 * c4x.c (c4x_fp_reglist): Const-ify.
12098 * cris.c (cris_print_operand): Likewise.
12099 * i386.c (ix86_va_arg): Likewise.
12100 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
12101 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
12102 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
12103 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
12104 * mcore.h (regno_reg_class): Likewise.
12105 * mips.c (gen_int_relational): Likewise.
12106 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
12107 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
a4334c36 12108 * pdp11.c (move_costs): Likewise.
0139adca
KG
12109 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
12110 * s390.c (s390_branch_condition_mnemonic, regclass_map):
12111 Likewise.
12112 * s390.h (regclass_map): Likewise.
12113 * sh.c (shift_amounts): Likewise.
a4334c36 12114 * sh.md (rotlsi3): Likewise.
0139adca 12115
889b90a1
GK
121162002-03-09 Geoffrey Keating <geoffk@redhat.com>
12117
12118 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
12119 (ne0+5): Use new clobber to generate proper shift pattern.
12120 Patch by Michael Matz <matz@kde.org>.
12121
2877e0ae
AS
121222002-03-09 Andreas Schwab <schwab@suse.de>
12123
12124 * gcc.c (validate_all_switches): Also handle `%W{...}'.
12125
79b51cd7
GK
121262002-03-09 Geoffrey Keating <geoffk@redhat.com>
12127
12128 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
12129
e0f1be5c
JJ
121302002-03-09 Jakub Jelinek <jakub@redhat.com>
12131
12132 PR middle-end/5877
12133 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
12134 even for non-representable constants.
12135
0a7ec763
RK
12136Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12137
93fe8e92
RK
12138 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
12139 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
12140 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
12141 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
12142 (pop_function_context): Compute MAY_SHARE parameter for
12143 fixup_var_refs.
12144 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
12145 (gen_mem_addressof): Call fixup_var_refs with new parm.
12146
0a7ec763
RK
12147 * combine.c (make_extraction): Don't make extension of CONST_INT.
12148
a85cd407
AO
121492002-03-09 Alexandre Oliva <aoliva@redhat.com>
12150
9445b814
AO
12151 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
12152 in o32 and o64 ABIs.
12153 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
12154 but getting fixed-size structs passed in registers regardless of
12155 padding in o32 and o64 ABIs.
12156
a85cd407
AO
12157 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
12158 offset before loading address of argument passed by transparent
12159 reference.
12160
c51fbe40
JDA
121612002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
12162
12163 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
12164
918e70dd
AO
121652002-03-09 Alexandre Oliva <aoliva@redhat.com>
12166
12167 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
12168 marker such that registers after it are saved.
12169
3070dd00
KG
121702002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12171
12172 * sparc.c (arith_4096_operand): Fix error in last change.
12173
e25d11b0
AO
121742002-03-08 Alexandre Oliva <aoliva@redhat.com>
12175
12176 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
12177 defaults for MEABI.
12178
41daaf0e
AH
121792002-03-08 Aldy Hernandez <aldyh@redhat.com>
12180
5b43fed1
RH
12181 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
12182 vectors.
41daaf0e 12183
fa139b00
AH
121842002-03-08 Aldy Hernandez <aldyh@redhat.com>
12185
5b43fed1 12186 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
fa139b00 12187
c51d95ec
JH
12188Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
12189
12190 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
12191 removed; fix return value.
12192 * combine.c (combine_instructions): Dirtify blocks where we failed to
12193 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
12194 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
12195
3b25fbfe
KG
121962002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12197
12198 * gcse.c (insert_insn_end_bb): Fix typo in last change.
12199
189ae0f4
JH
12200Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
12201
12202 * recog.c (peephole2_optimize): Re-distribute EH edges.
12203
24965e7a
NB
122042002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
12205
12206 * expr.c (expand_expr): Use unsave lang hook.
12207 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
12208 (LANG_HOOKS_INITIALIZER): Update.
12209 * langhooks.h (struct lang_hooks): New hook unsave.
12210 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
12211 (unsave_expr_1): Remove unused lang_unsave_expr_now.
12212 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
12213 (unsave_expr_now): Remove.
12214 * tree.h (unsave_expr_now, lang_unsave,
12215 lang_unsave_expr_now): Remove.
12216 (lhd_unsave): New.
12217
1e4e95d6
AJ
122182002-03-08 Andreas Jaeger <aj@suse.de>
12219
12220 * flow.c (propagate_block_delete_insn): Remove unused variable.
12221
054ef905
KH
122222002-03-08 Kazu Hirata <kazu@hxi.com>
12223
12224 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
12225 insn length for memory load/store.
12226
5304400d 122272002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1e4e95d6 12228
5304400d
CR
12229 * doc/install.texi (--with-libiconv-prefix): Document.
12230
81034129
MB
122312002-03-08 Michael Y. Brukman <myb2@cornell.edu>
12232
12233 * doc/sourcebuild.texi: Fix typo.
12234
71db7d03
JJ
122352002-03-08 Jakub Jelinek <jakub@redhat.com>
12236
12237 PR c/3711
12238 * builtins.c (std_expand_builtin_va_arg): Do all computations on
12239 trees.
12240
127c1ba5
RK
12241Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12242
12243 * rtl.c (copy_most_rtx): Move from here ...
12244 * emit-rtl.c (copy_most_rtx): ... to here.
12245
8a13c092
AO
122462002-03-08 Alexandre Oliva <aoliva@redhat.com>
12247
5faae4f7
AO
12248 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
12249 SUBTARGET_CPP_SIZE_SPEC.
12250 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
12251
8a13c092
AO
12252 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
12253
4ec59de2
MH
122542002-03-07 Matt Hiller <hiller@redhat.com>
12255
12256 * gensupport.c (first_dir_md_include): Renamed from include;
12257 change all references.
12258 (last_dir_md_include): Renamed from last_include; change all
12259 references.
12260 (init_md_reader): Unconditionally initialize base_dir whether or
12261 not filename is a relative path.
12262
12f61e77
AO
122632002-03-07 Alexandre Oliva <aoliva@redhat.com>
12264
95356058
AO
12265 * config/fp-bit.c (_unord_f2): Compile it in even if
12266 US_SOFTWARE_GOFAST is enabled.
12267
12f61e77
AO
12268 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
12269 NULL_RTX. Set all HFmode operations as NULL_RTX.
12270 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
12271 NULL_RTX, try reversing the comparison and the operands.
12272
6d7a1c4c
UW
122732002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12274
12275 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
12276 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
12277 and MATCH_OP_DUP.
12278
66d54344
JH
12279Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
12280
12281 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
12282
068473ec
JH
12283Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12284
12285 * basic-block.h (fixup_abnormal_edges): Declare.
12286 * reload1.c (fixup_abnormal_edges): New function.
12287 * reg-stack.c (convert_regs): Use it.
12288
12289 * gcse.c (insert_insn_end_bb): Handle trapping insns.
12290
12291 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
12292
71925bc0
RS
122932002-03-07 Richard Sandiford <rsandifo@redhat.com>
12294
12295 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
12296 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
12297 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
12298 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
12299 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
12300 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
12301 unless x and y could be infinite.
12302 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
12303 Check that the common type of both arguments is a real, even for
12304 targets without unordered comparisons. Allow an integer argument
12305 to be compared against a real.
12306 (expand_tree_builtin): Use expand_unordered_cmp.
12307 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
12308 * cse.c (fold_rtx): Likewise. Fix indentation.
12309 * fold-const.c (fold_real_zero_addition_p): New.
12310 (fold): Use it, and the new HONOR_... macros.
12311 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
12312 * jump.c (reversed_comparison_code_parts): After searching for
12313 the true comparison mode, use HONOR_NANS to decide whether it
12314 can be safely reversed.
12315 (reverse_condition_maybe_unordered): Remove IEEE check.
12316 * simplify-rtx.c (simplify_binary_operation): Use the new macros
12317 to decide which simplifications are valid. Allow the following
12318 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
12319 and (a - -b) to (a + b).
12320 (simplify_relational_operation): Use HONOR_NANS.
12321 * doc/tm.texi: Document the MODE_HAS_... macros.
12322
145d3bf2
RE
123232002-03-07 Richard Earnshaw <rearnsha@arm.com>
12324
12325 * combine.c (simplify_comparison): If simplifying a logical shift
12326 right and compare with constant, force the comparison to unsigned.
12327
76a773f3
AH
123282002-03-07 Aldy Hernandez <aldyh@redhat.com>
12329
5b43fed1 12330 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
76a773f3 12331
5b43fed1
RH
12332 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
12333 -mabi=no-altivec
12334 (alt_reg_names): Remove % for vrsave.
76a773f3 12335
ab55f58c
RH
123362002-03-06 Richard Henderson <rth@redhat.com>
12337
5ddec02e 12338 PR optimization/5844
ab55f58c
RH
12339 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
12340 if used indicates we've already emitted one copy of an operand.
12341 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
12342 (gen_split): Supply a non-null used.
12343
e16e3291
UW
123442002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12345
5b43fed1 12346 * reload1.c (reload): Unshare all rtl after reload is done.
e16e3291 12347
1e4e95d6 12348 * simplify-rtx.c (simplify_plus_minus): Do not abort,
e16e3291
UW
12349 but simply fail if the expression is too complex to simplify.
12350 (simplify_gen_binary): Handle simplify_plus_minus failures.
12351
2ca6672b
JH
12352Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
12353
12354 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
12355 consistently call delete_trivially_dead_insns after CSE and GCSE;
12356 fix DFI_life dumping; do jump threading after liveness; do crossjumping
12357 after liveness2; update comment in last crossjumping.
12358 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
12359
31d0dd4f
JL
12360Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
12361
d094b0b3
JL
12362 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
12363 after completing fast dead code elimination.
12364
31d0dd4f
JL
12365 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
12366 COMPARE operator.
1e4e95d6 12367
f2b958b1
PE
123682002-03-06 Phil Edwards <pme@gcc.gnu.org>
12369
12370 * version.c: Fix misplaced leading blanks on first line.
12371
a2877a09
JH
12372Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
12373
12374 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
12375
fe477d8b
JH
12376Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
12377
12378 * cfgcleanup.c (mentions_nonequal_regs): New function.
12379 (thread_jump): Use it.
12380 * toplev.c (rest_of_compilation): Run jump threading after
12381 liveness.
12382
2041cde4
JJ
123832002-03-06 Jakub Jelinek <jakub@redhat.com>
12384
12385 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
12386 patch.
12387
82d68d46
JH
12388Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
12389
12390 * predict.c (estimate_bb_frequencies): Do not reload the
12391 frequencies from notes.
12392
3dec4024
JH
12393Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
12394
12395 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
12396 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
12397
12398 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
12399 delete_noop_moves): Return indeger.
12400 * flow.c (ndead): New variable.
12401 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
12402 BB argument; update callers.
12403 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
12404 (life_analysis): Do not call purge_all_dead_edges.
12405 (update_life_info): Return number of deleted insns; print statistics.
12406 (update_life_info_in_dirty_blocks): likewise.
12407 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
12408 return number of insns deleted.
12409
12410 * cse.c: Include timevar.h
12411 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
12412 iterate until stabilizes; print statistics; return number of killed
12413 insns.
12414 * Makefile.in: (cse.o): Add timevar.h dependency
12415 * rtl.h (delete_trivially_dead_insns): New.
12416 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
12417 * toplev.c (rest_of_compilation): Update callers.
12418
12419 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
12420 (try_optimize_cfg): Do not update liveness.
12421 (cleanup-cfg): Loop until try_optimize_cfg and dead code
12422 removal stabilizes; use delete_trivially_dead_insns.
12423
12424 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
12425
c7544dd8
ZW
124262002-03-05 Zack Weinberg <zack@codesourcery.com>
12427
12428 * cppmain.c (setup_callbacks): Disable #pragma and #ident
12429 callbacks when processing assembly language.
12430
50b424a9
JDA
124312002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
12432
12433 * pa.h (ASM_FILE_END): Define.
12434 * som.h (ASM_FILE_END): Delete.
12435
12436 * pa.c (function_arg): Don't pass floats in general registers in
12437 indirect calls if TARGET_ELF32.
12438
6185f217
RH
124392002-03-05 Richard Henderson <rth@redhat.com>
12440
12441 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
12442
3020a4b2
DS
124432002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
12444
12445 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
12446
65649daa
JJ
124472002-03-05 Jakub Jelinek <jakub@redhat.com>
12448
12449 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
12450 -r command line. Don't hide any symbols if not building
12451 shared libgcc.
12452
5a1a3e5e
JH
12453Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
12454
12455 * cfg.c (dump_flow_info): Warn about profile mismatches.
12456 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
12457 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
12458
170c56da
JJ
124592002-03-05 Jakub Jelinek <jakub@redhat.com>
12460
12461 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
12462 wide volatile memory by parts.
12463
6d051694
JJ
124642002-03-05 Jakub Jelinek <jakub@redhat.com>
12465
12466 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
12467 is NULL.
12468
28bcfd4d
RH
124692002-03-05 Richard Henderson <rth@redhat.com>
12470
5b43fed1 12471 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
28bcfd4d 12472
75227a33
GK
124732002-03-04 Geoffrey Keating <geoffk@redhat.com>
12474
12475 * toplev.c (documented_lang_options): Document more
12476 language-specific options.
12477 * doc/invoke.texi (Warning Options): Correct documentation for
12478 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
12479 * c-decl.c (c_decode_option): Use a table to handle warning options.
12480
4f1aac42
HPN
124812002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
12482
12483 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
12484 parameter to mmix_encode_section_info.
12485 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
12486 relocatably. Always produce ELF, not mmo if linking relocatably.
12487 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
12488 first is non-zero, don't add symbol prefix.
12489 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
12490 prototype accordingly.
12491
12345543
KW
124922002-03-04 Krister Walfridsson <cato@df.lth.se>
12493
12494 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
12495
8e97db8f
JM
124962002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
12497
12498 * configure.in: Increase required makeinfo version to 4.1.
12499 * configure: Regenerate.
12500
06487868
GK
125012002-03-04 Geoffrey Keating <geoffk@redhat.com>
12502
12503 * .cvsignore: Remove *.info* and genrtl*; these files are generated
12504 elsewhere now.
12505
cff42170
JM
125062002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
12507
12508 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
12509 * doc/invoke.texi: Fix @math uses.
12510
974a7f56
JH
12511Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12512
12513 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
12514 removal
12515
3b7d0e98
AH
125162002-03-03 Aldy Hernandez <aldyh@redhat.com>
12517
5b43fed1
RH
12518 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
12519 (powerpc-*-eabisimaltivec*): Same.
3b7d0e98 12520
5b43fed1 12521 * config/rs6000/t-ppcendian: New.
3b7d0e98 12522
65f2f288
HB
125232002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12524
12525 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
12526 nonimmediate_src_operand and nonimmediate_lsrc_operand to
12527 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
12528
8ce0a8a5
RH
125292002-03-03 Richard Henderson <rth@redhat.com>
12530
12531 * toplev.c (rest_of_decl_compilation): Revert last two changes.
12532
ba31d94e
ZW
125332002-03-03 Zack Weinberg <zack@codesourcery.com>
12534
12535 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
12536 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
12537 tree.c, config/m68k/m68k.c:
12538 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
12539 REAL_ARITHMETIC blocks unconditional. Delete some further
12540 #ifdef blocks predicated on REAL_ARITHMETIC.
12541 * flags.h, toplev.c: Delete remaining references to
12542 flag_pretend_float.
12543
12544 * doc/invoke.texi: Remove documentation of -fpretend-float.
12545 * doc/tm.texi: Describe the various REAL_* macros as provided by
12546 real.h, not by the target configuration files.
12547
12548 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
12549 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
12550 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12551 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
12552 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
12553 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
12554 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
12555 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
12556 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12557 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
12558 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12559 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12560 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
12561 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
12562 config/xtensa/xtensa.h:
12563 Do not define, undefine, or mention in comments any of
12564 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
12565 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
12566 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
12567 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
12568 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
12569 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
12570 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
12571 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
12572 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
12573
9a571cfd
KG
125742002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12575
e81dd381
KG
12576 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
12577 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
12578 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
12579 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
12580 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
12581 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
12582 Delete.
12583 * defaults.h (BITS_PER_WORD): Define.
ba31d94e 12584 * doc/tm.texi (BITS_PER_WORD): Document default value.
e81dd381 12585
9a571cfd
KG
12586 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
12587 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
12588 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
12589
ca7558fc
KG
125902002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12591
12592 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
12593 lieu of explicit sizeof/sizeof.
12594 * i386.c (override_options, ix86_init_mmx_sse_builtins,
12595 ix86_expand_builtin): Likewise.
12596 * mips.c (mips_add_gc_roots): Likewise.
12597 * mmix.c (mmix_output_condition): Likewise.
12598 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
12599 altivec_init_builtins): Likewise.
12600 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
12601 * cppexp.c (Nsuff, parse_number): Likewise.
12602 * cppinit.c (builtin_array_end): Likewise.
12603 * gcc.c (n_default_compilers, process_command): Likewise.
12604 * genpreds.c (output_predicate_decls): Likewise.
12605 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
12606 * lcm.c (N_ENTITIES): Likewise.
12607 * stor-layout.c (set_sizetype): Likewise.
ba31d94e 12608
41c78c88
RH
126092002-03-03 Richard Henderson <rth@redhat.com>
12610
12611 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
12612 for types or labels.
12613
9e9b71e6
RH
126142002-03-03 Richard Henderson <rth@redhat.com>
12615
12616 * c-decl.c (start_decl): Initialized variables are not common.
12617
c26a6db8
PB
126182002-03-02 Per Bothner <per@bothner.com>
12619
12620 * gcc.c (option_map): Suport new --bootclasspath option.
12621 --CLASSPATH is now just an alias for --classpath.
12622
9e8aab55
RH
126232002-03-02 Richard Henderson <rth@redhat.com>
12624
12625 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
12626 load if "internal" visibility.
12627 * doc/extend.texi: Document visibility meanings.
12628
b3bbd220
RH
126292002-03-02 Richard Henderson <rth@redhat.com>
12630
12631 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
12632 to functions as well.
12633
b14707c3
RH
126342002-03-02 Richard Henderson <rth@redhat.com>
12635
12636 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
12637 (handle_visibility_attribute): Don't call assemble_visibility.
12638 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
12639 without asmspec. Invoke assemble_alias when needed.
12640 * varasm.c (maybe_assemble_visibility): New.
12641 (assemble_start_function, assemble_variable, assemble_alias): Use it.
12642
b2003250
RH
126432002-03-02 Richard Henderson <rth@redhat.com>
12644
12645 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
12646 invoke ENCODE_SECTION_INFO with first call flag.
12647
12648 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
12649 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
ba31d94e 12650 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
b2003250
RH
12651 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
12652 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12653 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12654 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
12655 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
12656 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
12657 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
12658 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12659 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
ba31d94e
ZW
12660 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12661 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
b2003250
RH
12662 config/mcore/mcore-protos.h, config/mcore/mcore.c,
12663 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
12664 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
ba31d94e 12665 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
b2003250
RH
12666 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
12667 config/sh/sh.h, config/sparc/sparc.h,
12668 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
12669 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
12670 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
12671 FIRST argument. As needed, examine it and do nothing.
12672
ba31d94e 12673 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
b2003250
RH
12674 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12675 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
12676
12677 * config/arm/t-pe (pe.o): Add dependencies.
12678
5c60f03d
KG
126792002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12680
12681 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
12682 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
12683 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
12684 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
12685 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
12686 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
12687 * defaults.h (BITS_PER_UNIT): Define.
12688 * doc/tm.texi (BITS_PER_UNIT): Document default value.
12689
86855e8c
KH
126902002-03-02 Kazu Hirata <kazu@hxi.com>
12691
12692 * config/h8300/h8300-protos.h: Add a prototype for
12693 compute_a_shift_length.
12694 * config/h8300/h8300.c (h8300_asm_insn_count): New.
12695 (compute_a_shift_length): Likewise.
12696 (h8300_adjust_insn_length): Do not adjust insn length of shift
12697 insns.
12698 * config/h8300/h8300.md (anonymous shift patterns): Use
12699 compute_a_shift_length.
12700
f6041ed8
RK
12701Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12702
35aa3c1c
RK
12703 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
12704 trunc_int_for_mode.
12705
f6041ed8
RK
12706 * emit-rtl.c (offset_address): Call update_temp_slot_address.
12707
27b41650
KG
127082002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12709
12710 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
12711 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
12712 * flags.h (flag_zero_initialized_in_bss): Declare.
12713 * toplev.c (flag_zero_initialized_in_bss): New flag.
12714 (lang_independent_options): Add flag_zero_initialized_in_bss.
12715 * tree.c (initializer_zerop): New function.
12716 * tree.h (initializer_zerop): Declare.
12717 * varasm.c (assemble_variable): If we can emit bss, put zero
12718 initializers in the bss section.
12719
ca734b39
AM
127202002-03-02 Alan Modra <amodra@bigpond.net.au>
12721
12722 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
12723 like more than one symbol per .weak directive.
12724
49b72306
RH
127252002-03-01 Richard Henderson <rth@redhat.com>
12726
12727 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
12728 adjust argument_pointer by pretend_args_size.
12729 (ia64_va_start): Adjust va_start address by -pretend_args_size.
12730
fbf0fe41
KH
127312002-03-01 Kazu Hirata <kazu@hxi.com>
12732
12733 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
12734
0010687d
JH
12735Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
12736
12737 * toplev.c (rest_of_compilation): Delete dead jumptables before
12738 loop.
12739 * flow.c (delete_dead_jumptables): Make global.
12740 * rtl.h (delete_dead_jumptables): Declare.
12741
9429c84c
DE
127422002-03-01 David Edelsohn <edelsohn@gnu.org>
12743
12744 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
12745 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
0c2fdcdf 12746 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9429c84c 12747
f0b6f9a6
KH
127482002-03-01 Kazu Hirata <kazu@hxi.com>
12749
12750 * config/h8300/h8300-protos.h: Fix formatting.
12751 * config/h8300/h8300.c: Likewise.
12752 * config/h8300/h8300.h: Likewise.
12753
bc8db8a1
KH
127542002-03-01 Kazu Hirata <kazu@hxi.com>
12755
12756 * config/h8300/h8300.c (print_operand): Support 16-bit
12757 constant addresses.
12758 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
12759
32b069d3
RH
127602002-02-28 Richard Henderson <rth@redhat.com>
12761
12762 * expmed.c (store_bit_field): Prevent generation of CONCATs;
12763 pun complex values as integers; use gen_lowpart instead of
12764 gen_rtx_SUBREG.
12765 (extract_bit_field): Likewise.
12766
79c4e63f
AM
127672002-03-01 Alan Modra <amodra@bigpond.net.au>
12768 David Edelsohn <edelsohn@gnu.org>
12769
12770 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
12771 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
12772 (SUPPORTS_WEAK): Likewise.
12773 * output.h (add_weak): Add tree param.
12774 * varasm.c (add_weak): Likewise. Save decl.
12775 (struct weak_syms): Add decl field.
12776 (mark_weak_decls): New function.
12777 (init_varasm_once): ggc_add_root mark_weak_decls.
12778 (assemble_start_function): Use ASM_WEAKEN_DECL.
12779 (assemble_variable): Likewise.
12780 (assemble_alias): Likewise.
12781 (declare_weak): Pass decl to add_weak.
12782 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
12783 (remove_from_pending_weak_list): Declare and define for
12784 ASM_WEAKEN_DECL.
12785 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
12786 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
12787 * defaults.h (SUPPORTS_WEAK): Likewise.
12788 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12789 .weak for code sym. Do emit .size for descriptor sym.
12790 (ASM_DECLARE_FUNCTION_SIZE): Define.
12791 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
12792 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
12793 .lglobl unless TARGET_XCOFF. Formatting fixes.
12794 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12795 .weak for code sym.
12796 (HANDLE_PRAGMA_WEAK): Remove.
12797 (ASM_WEAKEN_LABEL): Remove.
12798 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
12799
6f30f1f1
JM
128002002-03-01 Jason Merrill <jason@redhat.com>
12801
12802 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
12803 (TARGET_EXPR_CLEANUP): New macro.
12804
7879b81e
SE
128052002-02-28 Steve Ellcey <sje@cup.hp.com>
12806
12807 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
12808 to take ptr_extend into account as third type of extension.
12809 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
12810 fields used by SUBREG_PROMOTED_UNSIGNED_P.
12811 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
12812 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
12813 * calls.c (precompute_arguments): Use new macro.
12814 (expand_call): Ditto.
12815 * combine.c (nonzero_bits): Ditto.
12816 (record_promoted_value): Ditto.
12817 * expr.c (store_expr): Ditto.
12818 (expand_expr): Ditto.
12819 * function.c (assign_parms): Ditto.
12820
42d579d8
AO
128212002-02-28 Alexandre Oliva <aoliva@redhat.com>
12822
12823 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
12824 override -shared and -shared-libgcc.
12825
e0054185
DB
128262002-02-28 David O'Brien <obrien@FreeBSD.org>
12827
12828 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
12829 of "ultrasparc".
12830 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
12831 to be broken.
12832
abda4f1c
RH
128332002-02-28 Richard Henderson <rth@redhat.com>
12834
12835 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
12836 4 cycle latency from MM producers.
12837 (ia64_internal_sched_reorder): Likewise with pipeline flush.
12838
c0f08649
JJ
128392002-02-28 Jakub Jelinek <jakub@redhat.com>
12840
12841 * mklibgcc.in: Don't use GNU make extension.
12842
f79f2651
NB
128432002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
12844
12845 * c-parse.in (STATIC): New terminal.
12846 (scspec): New non-terminal. Update productions accordingly.
12847 (program): Remove bogus ifc / end ifc.
12848 (array_declarator): Simplify production using STATIC.
12849
001e3fee
JM
128502002-02-28 Jim Meyering <meyering@lucent.com>
12851
12852 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
12853 \a still means TARGET_BELL.
12854
89076bb3
RH
128552002-02-28 Richard Henderson <rth@redhat.com>
12856
12857 * haifa-sched.c (sched_emit_insn): New.
12858 (schedule_block): Use last_scheduled_insn to track last insn.
12859 * sched-int.h (sched_emit_insn): Prototype.
12860 * config/ia64/ia64.c (last_issued): Remove.
12861 (ia64_variable_issue): Don't set it.
12862 (nop_cycles_until): Use sched_emit_insn.
12863
e3aaacf4
AM
128642002-02-28 Andrew MacLeod <amacleod@redhat.com>
12865
12866 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
12867 extended constants.
12868
7f473594
KH
128692002-02-28 Kazu Hirata <kazu@hxi.com>
12870
12871 * config/h8300/h8300.c: Fix formatting.
12872 * config/h8300/h8300.h: Likewise.
12873
b96c434c
MM
128742002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
12875
12876 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
12877 which may overwrite the high byte of the frame pointer.
12878
9b420a6a
BT
128792002-02-28 Bo Thorsen <bo@suse.de>
12880
12881 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
12882 (STARTFILE_SPEC): Add 64 bit files.
12883 (ENDFILE_SPEC): Likewise.
12884
6f30f1f1 128852002-02-28 Jason Merrill <jason@redhat.com>
46cfb101
JM
12886
12887 * c-decl.c (finish_function): Only warn about missing return
12888 statement with -Wreturn-type.
12889
70da1d03
JH
12890Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
12891
12892 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
12893
12894 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
12895 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
12896
38c1593d
JH
12897Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
12898
12899 * basic-block.h (BB_REACHABLE): Renumber.
12900 (BB_DIRTY, BB_NEW): New flags.
12901 (clear_bb_flags): Declare.
12902 (update_life_info_in_dirty_blocks): Declare.
12903 * cfg.c (clear_bb_flags): New function.
12904 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
12905 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
12906 reorder_insns, emit_insn_after): Mark block as dirty.
12907 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
12908 (update_life_info_in_dirty_blocks): New function.
12909 * recog.c (apply_change_group): Dirtify block.
12910
12911 * cse.c (cse_insn): Reorder emitting of jump insn to keep
12912 cfg consistent.
12913 * gcse.c (delete_null_pointer_checks): Likewise.
12914
12915 * toplev.c (dump_file_index): Move cse2 after bp,
12916 add DFI_null
12917 (dump_file_info): Similary.
12918 (rest_of_compilation): Avoid most of CFG rebuilds;
12919 do first if converision after null pointer checks, do cse2
12920 after branch prediction; avoid full liveness rebuild after
12921 initializing subregs.
12922 * invoke.texi (-d options): Document -du, renumber.
12923
12924 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
12925 (notice_new_block): Do not set BB_UPDATE_LIFE.
12926 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
12927 merge_blocks_move_successor_nojumps, merge_blocks,
12928 try_crossjump_to_edge): Likewise.
12929 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
12930 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
12931 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
12932 (merge_of_block): Do not use life_data_ok.
12933 (find_if_case_1): Do not use SET_UPDATE_LIFE.
12934 (if_convert): Use BB_DIRTY mechanizm to update life.
12935 * lcm.c (optimize_mode_switching): Update
12936 update_life_info_in_dirty_blocks
12937
63e1b1c4
NB
129382002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
12939
12940 * Makefile.in (integrate.o): Update.
12941 * c-decl.c (copy_lang_decl): Rename.
12942 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
12943 * integrate.c: Include langhooks.h.
12944 (copy_decl_for_inlining): Update to use langhook.
12945 * langhooks-def.h (lhd_do_nothing_t,
12946 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
12947 (LANG_HOOKS_INITIALIZER): Update.
12948 * langhooks.c (lhd_do_nothing_t): New.
12949 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
12950 * tree.h (copy_lang_decl): Remove.
12951objc:
12952 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
12953
f472fa29
AM
129542002-02-27 Andrew MacLeod <amacleod@redhat.com>
12955
ba31d94e 12956 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
f472fa29
AM
12957 POST_DEC, and POST_MODIFY.
12958
273cf2e4
ZW
129592002-02-27 Zack Weinberg <zack@codesourcery.com>
12960
12961 * c-typeck.c (digest_init): Remove unused parameter; all
12962 callers changed.
12963
4e07d762
GK
129642002-02-27 Geoffrey Keating <geoffk@redhat.com>
12965
12966 * expmed.c (expand_shift): Correctly test for low part of a
12967 subreg.
12968
6bc627b3
UW
129692002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
12970
12971 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
12972 insn UIDs with insn addresses.
12973
f458d1d5
ZW
129742002-02-27 Zack Weinberg <zack@codesourcery.com>
12975
12976 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
12977 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
12978 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
12979 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
12980 gcc.c, toplev.c: Delete code implementing -traditional mode.
12981
12982 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
12983 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
12984 Document removal of -traditional mode for compilation, and
12985 remove documentation only relevant to that mode.
12986
12987 * config/nextstep.h, config/ptx4.h, config/svr4.h,
12988 config/convex/convex.h, config/d30v/d30v.h,
12989 config/i386/dgux.h, config/i386/osf1elf.h,
12990 config/i386/osfelf.h, config/i386/osfrose.h,
12991 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
12992 config/m68k/hp310.h, config/m88k/dgux.h,
12993 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
12994 config/m88k/m88k.h, config/m88k/openbsd.h,
12995 config/mips/abi64.h, config/mips/osfrose.h,
12996 config/mips/svr4-5.h, config/mips/svr4-t.h,
12997 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
12998 config/stormy16/stormy16.h: Remove all references to
12999 -traditional from target specs. Delete all mention of the
13000 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
13001 delete a couple of commented-out definitions of
13002 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
13003 to -traditional.
13004
13005 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
13006 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
13007
e0b3a8ff
ZW
130082002-02-27 Zack Weinberg <zack@codesourcery.com>
13009
13010 * mklibgcc.in: Don't use \n in a line subject to
13011 interpretation by echo.
13012
5c6a85b7
GS
130132002-02-27 Graham Stott <grahams@redhat.com>
13014
72b05af1
GS
13015 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
13016 Constify NAME.
13017
7d104885
GS
13018 * loop.c (prescan_loop): Handle PARALLEL.
13019
8ed805d2
GS
13020 * unroll.c (loop_iterations): Return 0 if the add_val for
13021 a BIV is REG.
13022
fd478a0a
GS
13023 * final.c (output_operand_lossage): Constify PFX_STR.
13024
5c6a85b7
GS
13025 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
13026
cd98ad03
JH
13027Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
13028
13029 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
13030 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
13031
639ae55b
JH
13032Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
13033
13034 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13035
e808ec9c
NB
130362002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
13037
13038 * cpplex.c (_cpp_lex_token): Handle directives in macro
13039 arguments.
13040 * cpplib.c (_cpp_handle_directive): Save and restore state
13041 if parsing macro args when entering a directive.
13042 * cppmacro.c (collect_args): No need to handle directives
13043 in macro arguments.
13044 (enter_macro_context, replace_args): Use the original macro
13045 definition in case it was redefined whilst collecting arguments.
13046doc:
13047 * cpp.texi: Update.
13048
f585a356
DE
130492002-02-26 David Edelsohn <edelsohn@gnu.org>
13050
13051 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
13052 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
13053 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
13054 method on AIX.
13055 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
13056 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
13057 (load_toc_v4_PIC_2): Same.
13058
130592002-02-26 Alan Modra <amodra@bigpond.net.au>
13060
13061 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
13062
d699058e
RH
130632002-02-26 Richard Henderson <rth@redhat.com>
13064
13065 * config/alpha/alpha.md (ashldi_se): Re-enable.
13066
eadccfbb
RH
130672002-02-26 Richard Henderson <rth@redhat.com>
13068
13069 * config/alpha/alpha.c (alpha_encode_section_info): Examine
13070 MODULE_LOCAL_P; improve commentary.
13071
7080ada1
ZW
130722002-02-26 Zack Weinberg <zack@codesourcery.com>
13073
13074 * doc/cpp.texi: Clarify documentation of relationship between
13075 #line and #include.
13076
b42cff6b
KH
130772002-02-26 Kazu Hirata <kazu@hxi.com>
13078
13079 * config/h8300/h8300-protos.h: Update the prototype for
13080 compute_logical_op_length. Add the prototype for
13081 compute_logical_op_cc.
13082 * config/h8300/h8300.c (compute_logical_op_length): Figure out
13083 code from operands.
13084 (compute_logical_op_cc): New.
13085 * config/h8300/h8300.md: Combine all the logical op patterns
13086 in HImode and SImode. Use compute_logical_op_cc.
13087
831c4e87
KC
130882002-02-26 Kelley Cook <kelleycook@comcast.net>
13089
13090 * config/i386/i386.c (print_operand): Don't append ATT-style
13091 length suffixs to x87 opcodes when in Intel mode.
13092
ff88fe10
RS
130932002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
13094
13095 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
13096 (init_emit_once): Update calls.
13097 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
13098 (init_syntax_once): Prototype.
13099
d4108589
JDA
131002002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
13101
13102 * pa-linux.h (LIB_SPEC): Update definition.
13103 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
13104
e013f3c7
RH
131052002-02-26 Richard Henderson <rth@redhat.com>
13106
13107 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
13108 if we emitted a stop bit.
13109
9e944a16
JJ
131102002-02-26 Jakub Jelinek <jakub@redhat.com>
13111
13112 * configure.in (libgcc_visibility): Substitute.
13113 * configure: Rebuilt.
13114 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
13115 defined symbols .hidden.
13116
47bd70b5
JJ
131172002-02-26 Jakub Jelinek <jakub@redhat.com>
13118
13119 * attribs.c (c_common_attribute_table): Add visibility.
13120 (handle_visibility_attribute): New function.
13121 * varasm.c (assemble_visibility): New function.
13122 * output.h (assemble_visibility): Add prototype.
13123 * tree.h (MODULE_LOCAL_P): Define.
13124 * crtstuff.c (__dso_handle): Use visibility attribute.
13125 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
13126 for MODULE_LOCAL_P symbols too.
13127 * config/ia64/ia64.c (ia64_encode_section_info): Handle
13128 MODULE_LOCAL_P symbols the same way as local symbols.
13129 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
13130 into .sdata/.sbss by the user.
13131 * doc/extend.texi (Function Attributes): Document visibility
13132 attribute.
13133
6d73371a
JJ
131342002-02-26 Jakub Jelinek <jakub@redhat.com>
13135
13136 PR debug/5770
13137 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
13138 STRING_CST initializer spanning the whole variable without
13139 embedded zeros.
13140 If expand_expr returned MEM, don't use it.
13141
06e224f7
AO
131422002-02-26 Alexandre Oliva <aoliva@redhat.com>
13143
13144 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
13145 generate a die for the lexical block.
13146
40367e2d
KH
131472002-02-26 Kazu Hirata <kazu@hxi.com>
13148
13149 * config/h8300/h8300-protos.h: Add a prototype for
13150 compute_logical_op_length.
13151 * config/h8300/h8300.c (compute_logical_op_length): New.
13152 * config/h8300/h8300.md (anonymous logical patterns): Use
13153 compute_logical_op_length for length.
13154
0e98f924
AH
131552002-02-26 Aldy Hernandez <aldyh@redhat.com>
13156
831c4e87
KC
13157 * dwarf2out.c (modified_type_die): Do not call type_main_variant
13158 for vectors.
13159 (gen_type_die): Same.
0e98f924 13160
831c4e87 13161 * attribs.c (handle_vector_size_attribute): Set debug information.
0e98f924 13162
a50cfd52
DE
131632002-02-26 Daniel Egger <degger@fhm.edu>
13164
831c4e87
KC
13165 * config/rs6000/rs6000.md: Swap define_insn attributes to
13166 fix incorrect generation of merge high instructions instead
13167 of merge low.
a50cfd52 13168
b7997284
AH
131692002-02-26 Aldy Hernandez <aldyh@redhat.com>
13170
831c4e87
KC
13171 * c-typeck.c (really_start_incremental_init): Use
13172 bitsize_zero_node for vectors.
b7997284 13173
376aec5d
AH
131742002-02-26 Aldy Hernandez <aldyh@redhat.com>
13175
831c4e87
KC
13176 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
13177 ("*set_vrsave_internal"): Same.
376aec5d 13178
3b40e71b
RH
131792002-02-25 Richard Henderson <rth@redhat.com>
13180
13181 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
13182 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
13183
232b8f52
JJ
131842002-02-25 Jakub Jelinek <jakub@redhat.com>
13185
13186 PR target/5755
13187 * config/i386/i386.c (ix86_return_pops_args): Only pop
13188 fake structure return argument if it was passed on the stack.
13189
67282790
JM
131902002-02-25 Jason Merrill <jason@redhat.com>
13191
13192 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
13193 RESULT_DECL.
13194
5c181756
AO
131952002-02-25 Alexandre Oliva <aoliva@redhat.com>
13196
13197 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
13198 link with shared_name only.
13199 * doc/invoke.texi (Link Options): Document new behavior.
13200
6786d201
AH
132012002-02-25 Aldy Hernandez <aldyh@redhat.com>
13202
831c4e87 13203 * c-typeck.c (push_init_level): Handle vectors.
6786d201 13204
7d6040e8
AO
132052002-02-25 Alexandre Oliva <aoliva@redhat.com>
13206
13207 * config/sparc/sparc.c (const64_high_operand): Zero-extend
13208 operands of SPARC_SETHI_P.
13209 (input_operand): Likewise.
13210 (sparc_emit_set_const32): Likewise.
13211 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
13212 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
13213 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
13214 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
13215 (movdi_insn_sp64_vis): Likewise.
13216 (movdi split, movdf split): Use SETHI32.
13217 * doc/md.texi: Document SPARC constraints L, M and N.
13218
b188f760
AH
132192002-02-25 Aldy Hernandez <aldyh@redhat.com>
13220
831c4e87
KC
13221 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
13222 ("*set_vrsave_internal"): use mfspr for Darwin.
b188f760 13223
831c4e87
KC
13224 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
13225 gen_get_vrsave_internal.
b188f760 13226
8041889f
RK
13227Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13228
13229 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
13230
a47ed310
NB
132312002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
13232
13233 * cpplex.c (cpp_interpret_charconst): Get signedness or
13234 otherwise of wide character constants correct.
13235 * cppexp.c (lex): Get signedness of wide charconsts correct.
13236
cb8f73be
RK
13237Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13238
13239 * optabs.c (widen_operand): Only call convert_modes for
13240 promoted SUBREG if signedness matches.
13241 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
13242
2450e0b8
NB
132432002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13244
13245 * cpplib.c (glue_header_name): Use local buffer to build up
13246 header name.
13247
70b6aaed
NB
132482002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13249
13250 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
13251
6be580c7
KH
132522002-02-23 Kazu Hirata <kazu@hxi.com>
13253
13254 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
13255 H8/300[HS] separately.
13256 * config/h8300/h8300.md: Remove the early clobber constraint
13257 from bit field patterns.
13258
35dad9f1
KH
132592002-02-23 Kazu Hirata <kazu@hxi.com>
13260
13261 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
13262 register_operand.
13263 (mulhisi3): Likewise.
13264 (umulqisi3): Likewise.
13265 (umulhisi3): Likewise.
13266
ab8e2228
NB
132672002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13268
13269 * cppinit.c (output_deps): Correct test for stdout output.
13270 (init_dependency_output): Cure warning.
13271
ac6f8a15
RK
13272Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13273
13274 * expr.c (store_expr): When converting expression to promoted
13275 equivalent type, allow using SUBREG_REG of TARGET as the target
13276 of the expansion of EXP.
13277 * loop.c (basic_induction_var, case SUBREG): Always look inside.
13278 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
13279 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
13280 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
13281 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
13282
f282ffb3
JM
132832002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
13284
13285 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
13286 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
13287 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
13288
44c5edc0
JJ
132892002-02-23 Jakub Jelinek <jakub@redhat.com>
13290
13291 PR optimization/5747
13292 * loop.c (scan_loop): Update reg info if move_movables created new
13293 pseudos.
13294
f98e43c0
DE
132952002-02-23 David Edelsohn <edelsohn@gnu.org>
13296
13297 * gcc.c (init_gcc_spec): Revert last change.
13298
e72247f4
DE
132992002-02-23 David Edelsohn <edelsohn@gnu.org>
13300
13301 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
13302 gpc_reg_operand constraint.
13303
133042002-02-23 Alan Modra <amodra@bigpond.net.au>
13305
13306 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
13307 Simplify comparison of `low'.
13308 (add_operand): Fix formatting.
13309 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
57deb3a1 13310 (mask_operand): Disallow mask to wrap in 64-bit mode.
e72247f4
DE
13311 (rs6000_stack_info): Remove redundant test setting push_p.
13312 (output_toc): Fix formatting.
13313 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
13314 cc_reg_not_cr0_operand constraint.
13315 (booldi3, boolcdi3 splitters): Same.
13316
a5c30531
AH
133172002-02-23 Aldy Hernandez <aldyh@redhat.com>
13318
831c4e87 13319 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
a5c30531 13320
43710f9f
DE
133212002-02-22 David Edelsohn <edelsohn@gnu.org>
13322
13323 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
13324 gcc invoked with -shared-libgcc.
13325
3256b817
JJ
133262002-02-22 Jakub Jelinek <jakub@redhat.com>
13327
13328 PR c++/5748
13329 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
13330 decl if any of elements was TREE_USED.
13331
9e0625a3
AO
133322002-02-22 Alexandre Oliva <aoliva@redhat.com>
13333
13334 * config/sparc/sol2.h: Don't include sys/mman.h.
13335 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
13336 (arith_4096_operand): Don't throw high bits away.
13337 (const64_operand): Take sign extension of CONST_INTs into account.
13338 (const64_high_operand, sparc_emit_set_const32): Likewise.
13339 (GEN_HIGHINT64): Likewise.
13340 (sparc_emit_set_const64_quick1): Likewise.
13341 (const64_is_2insns): Likewise.
13342 (print_operand): Use trunc_int_for_mode for sign extension.
13343 * config/sparc/sparc.h (SMALL_INT32): Likewise.
13344 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
13345 chars. Assume CONST_INT is already properly sign-extended.
13346 (movdi split): Sign-extend each SImode part.
13347 (andsi3 split): Don't mask high bits off, so that result
13348 remains properly sign-extend.
13349 (iorsi3 split): Likewise.
13350 (xorsi3 split): Likewise.
13351
54fec3d5
RS
133522002-02-22 Richard Sandiford <rsandifo@redhat.com>
13353
13354 * fold-const.c (fold): Fix typo in comments.
13355
667ada9b
DN
133562002-02-21 Diego Novillo <dnovillo@redhat.com>
13357
13358 * Makefile.in (langhooks.o): Update dependencies.
13359
29ac78d5
DN
133602002-02-21 Diego Novillo <dnovillo@redhat.com>
13361
13362 * langhooks.c: Include flags.h.
13363
6aa77e6c
AH
133642002-02-21 Aldy Hernandez <aldyh@redhat.com>
13365
13366 * testsuite/gcc.dg/attr-alwaysinline.c: New.
13367
13368 * c-common.c (c_common_post_options): Set inline trees by
13369 default.
13370
13371 * doc/extend.texi (Function Attributes): Document always_inline
13372 attribute.
13373 Update documentation about inlining when not optimizing.
13374
13375 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
13376
13377 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
13378 unless DECL_ALWAYS_INLINE.
13379
13380 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
13381 unless DECL_ALWAYS_INLINE.
13382 (c_disregard_inline_limits): Disregard if always_inline set.
13383
13384 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
13385 Disregard if always_inline set.
13386 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
13387 unless DECL_ALWAYS_INLINE.
13388
13389 * attribs.c (handle_always_inline_attribute): New.
13390 (c_common_attribute_table): Add always_inline.
13391
13392 * config/rs6000/altivec.h: Add prototypes for builtins
13393 requiring the always_inline attribute.
13394
c410d49e
EC
133952002-02-21 Eric Christopher <echristo@redhat.com>
13396
13397 * expmed.c (store_bit_field): Try to simplify the subreg
13398 before generating a new one when when the mode size of
13399 value is less than maxmode.
13400
e3c8ea67
RH
134012002-02-21 Richard Henderson <rth@redhat.com>
13402
13403 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
13404 than gen_rtx_PLUS to form the sum.
13405 * explow.c (force_reg): Rearrange to not allocate new pseudo
13406 when force_operand returns a register.
13407 * expr.c (expand_assignment): Allow offset_rtx expansion to
13408 return a sum. Do not force addresses into registers.
13409 (expand_expr): Likewise.
13410 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
13411 to canonicalize arithmetic that didn't simpify.
13412 (simplify_plus_minus): New argument force; update
13413 all callers. Don't split CONST unless we can do something with it,
13414 and wouldn't lose the constness of the operands.
13415
13416 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
13417 that we generated earlier.
13418
c1a046e5
TT
134192002-02-21 Tom Tromey <tromey@redhat.com>
13420
13421 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13422 (output_line_info): Use constant `1', with a long explanatory
13423 comment.
13424 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
13425
31fbaad4
R
13426Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
13427
13428 * jump.c (redirect_jump): If old label has no UID, don't try to
13429 delete it.
13430
a7f52356
R
13431Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
13432
13433 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
13434 If input is constant, do shifts at compile time.
13435
924fcc4e
JM
134362002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
13437
13438 * doc/extend.texi: Fix some more overfull hboxes.
13439
e5a20888
JJ
134402002-02-21 Jakub Jelinek <jakub@redhat.com>
13441
13442 PR optimization/4994
13443 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
13444 register moves.
13445
134462002-02-21 Jakub Jelinek <jakub@redhat.com>
22273300
JJ
13447
13448 PR c++/4574
13449 * expr.h (expand_and): Add mode argument.
13450 * expmed.c (expand_and): Add mode argument.
13451 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
13452 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
13453 * except.c (expand_builtin_extract_return_addr): Likewise.
13454 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13455 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
13456 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
13457 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
13458 * config/c4x/c4x.md: Use GEN_INT (x) instead of
13459 gen_rtx (CONST_INT, VOIDmode, x).
13460
7133e992
JJ
134612002-02-21 Jakub Jelinek <jakub@redhat.com>
13462
13463 PR c/4697:
13464 * stmt.c (warn_if_unused_value): Move side effects test once more.
13465
e2ec05a6
TG
134662002-02-20 Torbjorn Granlund <tege@swox.com>
13467
13468 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
831c4e87 13469 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
e2ec05a6 13470
9dd791c8
AO
13471Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
13472
13473 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
13474 SUBREG or ZERO_EXTEND.
13475
7ab56274
R
13476Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
13477
13478 * sh.h (current_function_anonymous_args): Remove.
13479 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
13480 of current_function_varargs and current_function_stdarg is set.
13481 * sh.c (sh_expand_prologue): Check current_function_varargs /
13482 current_function_stdarg / TARGET_SH5 instead of
13483 current_function_anonymous_args.
13484
13485 * sh64.h (TARGET_VERSION): Define.
13486
b1765bde
DE
134872002-02-20 David Edelsohn <edelsohn@gnu.org>
13488
13489 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
13490 VRSAVE_REGNO on TARGET_ALTIVEC.
13491
134922002-02-20 Alan Modra <amodra@bigpond.net.au>
13493
13494 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
13495 bits of SImode const_int.
13496 (includes_rshift_p): Likewise.
13497 (print_operand): Call mask_operand and mask64_operand with correct
c410d49e 13498 mode.
b1765bde
DE
13499 (rs6000_output_function_epilogue): Pad traceback table to word.
13500 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
13501 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
13502 mask64_operand with correct mode.
b1765bde
DE
13503 (FUNCTION_ARG_REGNO_P): Correct parentheses.
13504
149d6f9e
JJ
135052002-02-20 Jakub Jelinek <jakub@redhat.com>
13506
13507 PR debug/4461
13508 * varasm.c (get_pool_constant_mark): New.
13509 * rtl.h (get_pool_constant_mark): Add prototype.
13510 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
13511 be represented if it has not been output.
13512
4161da12
AO
135132002-02-20 Alexandre Oliva <aoliva@redhat.com>
13514
13515 * combine.c (do_SUBST): Sanity check substitutions of
13516 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
13517 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
13518 CONST_INT into its operand.
13519 (known_cond): Likewise, for ZERO_EXTEND.
13520 * simplify-rtx.c (simplify_unary_operation): Fix condition to
13521 allow for simplification of wide modes. Reject CONST_INTs in
13522 ZERO_EXTEND when their actual mode is not given.
13523
3704ef74
AO
135242002-02-20 Alexandre Oliva <aoliva@redhat.com>
13525
13526 * c-decl.c (pushdecl): If no global declaration is found for an
13527 extern declaration in block scope, try a limbo one.
13528
7552da58
JJ
135292002-02-20 Jakub Jelinek <jakub@redhat.com>
13530
13531 PR c++/4401
13532 * c-common.c (pointer_int_sum): Moved from...
13533 * c-typeck.c (pointer_int_sum): ...here.
13534 * c-common.h (pointer_int_sum): Add prototype.
13535
00fae85d
JJ
135362002-02-20 Jakub Jelinek <jakub@redhat.com>
13537
13538 PR c++/5713
13539 * c-decl.c (duplicate_decls): Return 0 if issued error about
13540 redeclaration.
13541
4636c87e
JJ
135422002-02-20 Roger Sayle <roger@eyesopen.com>
13543 Jakub Jelinek <jakub@redhat.com>
13544
13545 PR c/4389
13546 * tree.c (host_integerp): Ensure that the constant integer is
13547 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
13548 when pos is zero or non-zero respectively. Clarify comment.
13549 * c-format.c (check_format_info_recurse): Fix host_integerp
13550 usage; the pos argument should be zero when assigning to a
13551 signed HOST_WIDE_INT.
13552
59bef189
RH
135532002-02-20 Richard Henderson <rth@redhat.com>
13554
13555 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
13556 of the operand, rather than assuming TImode.
13557 (ix86_expand_binop_builtin): Cope with commutative patterns
13558 using nonimmediate_operand for both operands.
13559 (ix86_expand_timode_binop_builtin): Likewise.
13560 (ix86_expand_store_builtin): Validate operand 1.
13561 (ix86_expand_unop1_builtin): Likewise.
13562
9338ffe6 135632002-02-20 Philip Blundell <philb@gnu.org>
c410d49e 13564
9338ffe6
PB
13565 PR 5705
13566 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
13567
f322b423
RH
135682002-02-20 Richard Henderson <rth@redhat.com>
13569
13570 PR c/5615
13571 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
13572
d94084f7
TT
135732002-02-20 Tom Tromey <tromey@redhat.com>
13574
13575 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13576 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13577 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13578 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13579 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
13580 unconditionally.
13581
37fa124a
AM
13582Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
13583
13584 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
13585 for (const_int 0) in X not just INTVAL.
13586
6e5bb5ad
JM
135872002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
13588
13589 * doc/extend.texi: Avoid or reduce overfull hboxes.
13590
420e7dfa
DN
135912002-02-20 Diego Novillo <dnovillo@redhat.com>
13592
13593 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
13594 operations if the field does not start at a mode boundary.
13595
1b7a2af6
JS
135962001-02-20 Joel Sherrill <joel@OARcorp.com>
13597
13598 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
13599 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
13600 Also done for -Acpu and -Amachine.
13601
56cd5b95
NB
136022002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
13603
13604 * cppinit.c (init_dependency_output): Take deps output file
13605 from -o if none given with -MF. Suppress normal output.
c410d49e 13606 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
56cd5b95
NB
13607 * doc/cpp.texi, doc/invoke.texi: Update.
13608
042cdf71
ZW
136092002-02-19 Zack Weinberg <zack@codesourcery.com>
13610
13611 * toplev.c (output_quoted_string): Write unprintable
13612 characters with octal escapes.
13613
c1f11548
DE
136142002-02-19 David Edelsohn <edelsohn@gnu.org>
13615
13616 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
13617 really_call_used[VRSAVE_REGNO] if not Altivec.
13618
136192002-02-19 Alan Modra <amodra@bigpond.net.au>
c410d49e 13620
c1f11548
DE
13621 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
13622 MODE_MASK.
13623 (constant_pool_expr_1): Fix formatting.
13624 (rs6000_legitimize_reload_address): Likewise.
13625
c964d90e
RK
13626Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13627
13628 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
13629 now that we have one.
13630
ae34ac46
ZW
136312002-02-19 Zack Weinberg <zack@codesourcery.com>
13632
13633 * tree.h (struct tree_common): Remove aux. Add unused_0 at
13634 end of first block of bitfields (which was only seven bits);
13635 rename dummy to unused_1; remove comment which is no longer true.
13636
293c28ee
GS
136372002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13638
13639 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
13640
7b8781c8
PB
136412002-02-19 Philip Blundell <pb@nexus.co.uk>
13642
0cb6c58d 13643 PR 5399
7b8781c8
PB
13644 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
13645 if generating PIC.
13646
13647 PR 5054
13648 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
13649 arm_is_longcall_p rather than inspecting call-type cookie
13650 directly.
13651 (call_value_insn) [TARGET_THUMB]: Likewise.
13652
5c464583
GS
136532002-02-19 Graham Stott <grahams@redhat.com>
13654
13655 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
13656
71c061e6
DE
136572002-02-19 David Edelsohn <edelsohn@gnu.org>
13658
13659 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
13660 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6d1def5c 13661 (FP_SAVE_INLINE): Delete.
71c061e6
DE
13662
13663 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
13664 * config/rs6000/eabi.asm: Remove ABI save restore routines.
13665 * config/rs6000/t-ppccomm: Build crtsavres.o.
13666 * config/rs6000/crtsavres.asm: New file.
13667
3a7731fd
PB
136682002-02-19 Philip Blundell <philb@gnu.org>
13669
13670 * config/arm/arm.c (use_return_insn): Don't reject interrupt
13671 functions.
13672 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
13673 (output_return_instruction): Allow interrupt functions to return with
13674 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
13675 (arm_expand_prologue): Subtract 4 before stacking LR in an
13676 interrupt function.
13677
14f583b8
PB
136782002-02-19 Philip Blundell <pb@nexus.co.uk>
13679
13680 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
13681 decl, not just FUNCTION_DECL.
13682 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
13683 (arm_assemble_integer): Likewise.
13684 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
13685 marked local.
c410d49e 13686
4cb7482c
MG
136872002-02-19 matthew green <mrg@eterna.com.au>
13688
13689 * config.gcc (sparc-*-netbsdelf*): Enable target.
13690 (sparc64-*-netbsd*): New target.
13691 * config/sparc/netbsd-elf.h: New file.
13692 * config/sparc/t-netbsd64: New file.
13693
2df3a718
GS
136942002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13695
13696 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
13697
77f6c1eb
RS
136982002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
13699
13700 * doc/invoke.texi: explicitly list the style guidelines that
13701 -Weffc++ checks for.
13702
fd973d56
JH
13703Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
13704
13705 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
13706
30518e45
NB
137072002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
13708
13709 PR other/5718
13710 * gcc.c (cpp_unique_options): Treat -o as indicating object file
13711 only if not -E. If -E, pass -o through to the preprocessor.
13712
39ea5704
KH
137132002-02-19 Kazu Hirata <kazu@hxi.com>
13714
13715 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
13716 register number with an appropriate macro.
13717
7355dba7
BM
137182002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
13719
13720 * doc/rtl.texi (Constants): Close @code tag.
13721
91c8aa9e
AH
137222002-02-19 Aldy Hernandez <aldyh@redhat.com>
13723
13724 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
13725 ("mmx_uavgv4hi3"): Same.
13726 ("pmulhrwv4hi3"): Same.
13727
13728 * tree-inline.c (walk_tree): Handle vectors.
13729
13730 * c-common.c (constant_expression_warning): Handle vectors.
13731 (overflow_warning): Same.
13732
13733 * sched-deps.c (sched_analyze_2): Handle vectors.
13734
13735 * rtlanal.c (rtx_unstable_p): Handle vectors.
13736 (rtx_varies_p): Same.
13737 (count_occurrences): Same.
13738 (regs_set_between_p): Same.
13739 (modified_between_p): Same.
13740 (modified_in_p): Same.
13741 (volatile_insn_p): Same.
13742 (volatile_refs_p): Same.
13743 (side_effects_p): Same.
13744 (may_trap_p): Same.
13745 (inequality_comparisons_p): Same.
13746 (replace_regs): Same.
13747 (computed_jump_p_1): Same.
13748
13749 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
13750 argument.
13751 (inner_mode_array): New.
13752 (copy_rtx): Handle vectors.
13753 (copy_most_rtx): Same.
13754 (rtx_equal_p): Same.
13755 (get_mode_alignment): Adjust for vectors.
13756
13757 * resource.c (mark_referenced_resources): Handle vectors.
13758 (mark_set_resources): Same.
13759
13760 * reload1.c (eliminate_regs): Handle vectors.
13761 (elimination_effects): Same.
13762 (scan_paradoxical_subregs): Same.
13763
13764 * reload.c (subst_reg_equivs): Handle vectors.
13765
13766 * regrename.c (scan_rtx): Handle vectors.
13767
13768 * regclass.c (reg_scan_mark_refs): Handle vectors.
13769
13770 * recog.c (find_single_use_1): Handle vectors.
13771
13772 * local-alloc.c (equiv_init_varies_p): Handle vectors.
13773 (contains_replace_regs): Same.
13774 (memref_referenced_p): Same.
13775
13776 * integrate.c (copy_rtx_and_substitute): Handle vectors.
13777 (subst_constants): Same.
13778
13779 * genattrtab.c (attr_copy_rtx): Handle vectors.
13780 (encode_units_mask): Same.
13781 (clear_struct_flag): Same.
13782 (count_sub_rtxs): Same.
13783
13784 * gcse.c (want_to_gcse_p): Handle vectors.
13785 (oprs_unchanged_p): Same.
13786 (hash_expr_1): Same.
13787 (oprs_not_set_p): Same.
13788 (expr_killed_p): Same.
13789 (compute_transp): Same.
13790 (store_ops_ok): Same.
13791
13792 * function.c (purge_addressof_1): Do not allow paradoxical subregs
13793 of vectors.
13794 (fixup_var_refs_1): Same.
13795 (instantiate_virtual_regs_1): Same.
13796
13797 * fold-const.c (operand_equal_p): Handle vectors.
13798 (fold): Same.
13799 (rtl_expr_nonnegative_p): Same.
13800
13801 * flow.c (mark_used_regs): Handle vectors.
13802
13803 * df.c (df_uses_record): Handle vectors.
13804
13805 * cselib.c (cselib_subst_to_values): Handle vectors.
13806 (cselib_mem_conflict_p): Same.
13807 (hash_rtx): Same.
13808
13809 * cse.c (canon_reg): Handle vectors.
13810 (fold_rt): Same.
13811 (cse_process_notes): Same.
13812 (count_reg_usage): Same.
13813 (canon_hash): Same.
13814
13815 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
13816
13817 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
13818
13819 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
13820 (gen_rtx): Handle CONST_VECTOR.
13821 (gen_const_vector_0): New.
13822 (copy_rtx_if_shared): CONST_VECTORs can be shared.
13823 (reset_used_flags): Same.
13824 (copy_insn_1): Same.
13825 (initializer_constant_valid_p): Handle VECTOR_CST.
13826
13827 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
13828
13829 * doc/rtl.texi (Constants): Document const_vector.
13830 (CONST0_RTX): Update for vectors.
13831 (RTL sharing): Same.
13832
13833 * print-tree.c (print_node): Add case for VECTOR_CST.
13834
13835 * tree.h (TREE_VECTOR_CST_ELTS): New.
13836 (struct tree_vector): New.
13837 (union tree_node): Add vector node.
13838 (build_vector): Add prototype.
13839
13840 * tree.def (VECTOR_CST): New.
13841
13842 * tree.c (build_vector): New.
13843
13844 * expmed.c (make_tree): Handle CONST_VECTOR.
13845
13846 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
13847 (CONST_VECTOR_ELT): New.
13848 (CONST_VECTOR_NUNITS): New.
13849
13850 * machmode.h (GET_MODE_INNER): New.
13851 (DEF_MACHMODE): Accept 8th arg.
13852
13853 * machmode.def: Add 8th argument for vector inner mode.
13854 Add inner vector modes for vectors.
13855
13856 * rtl.def (VEC_CONST): Remove.
13857 (CONST_VECTOR): New.
13858
13859 * expr.c (clear_storage): Allow vectors.
13860 (is_zeros_p): Handle VECTOR_CST.
13861
13862 * varasm.c (output_constant_pool): Handle vectors.
13863 (rtx_const): Add veclo and vechi fields.
13864 (kind): Add RTX_VECTOR.
13865 (decode_rtx_const): Add case for vector.
13866
13867 * config/rs6000/rs6000-protos.h: Add zero_constant.
c410d49e 13868
91c8aa9e
AH
13869 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
13870 constants. Force easy vector constants into memory.
13871 (easy_vector_constant): New.
13872 (emit_easy_vector_constant): New.
13873 (rs6000_legitimize_reload_address): Do not generate bad reloads on
13874 darwin.
13875
13876 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
13877 instruction does.
13878 ("altivec_lvxl"): Same.
13879 (altivec_lvebx): Same.
13880 (altivec_lvehx): Same.
13881 (altivec_lvewx): Same.
13882 ("*movv4si_const0"): New.
13883 ("*movv4sf_const0"): New.
13884 ("*movv8hi_const0"): New.
13885 ("*movv16qi_const0"): New.
13886
d4d6d0ce
KH
138872002-02-18 Kazu Hirata <kazu@hxi.com>
13888
13889 * config/h8300/h8300.c (notice_update_cc): Use
13890 cc_status.value2.
13891
4915d3aa
KH
138922002-02-18 Kazu Hirata <kazu@hxi.com>
13893
13894 * config/h8300/h8300.md (divmod patterns): Change the
13895 constraints for operands[1] to register_operand.
13896
82be00ee
KH
138972002-02-18 Kazu Hirata <kazu@hxi.com>
13898
13899 * config/h8300/h8300-protos.h: Remove the prototype for
13900 p_operand.
13901 * config/h8300/h8300.c (p_operand): Remove.
13902 * config/h8300/h8300.md: Replace p_operand with
13903 const_int_operand.
13904
1768c26f
PB
139052002-02-18 Philip Blundell <pb@nexus.co.uk>
13906
13907 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
13908 comment.
13909 (output_return_instruction): Allow use of LDR to unstack
13910 return addresss even for interrupt handlers or when
13911 interworking. If compiling for ARMv5, use interworking-safe
13912 return instructions by default. Remove duplicated code and
13913 lengthy "strcat" sequences.
13914
ccd84f51
FS
139152002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13916
13917 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
13918 (LINK_EH_SPEC): Define.
13919 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
13920
2c153108
UW
139212002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
13922
13923 * config/s390/s390.c (s390_emit_prologue): Do not set the
13924 frame_related flag for call-clobbered registers.
13925
e95d6b23
JH
13926Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
13927
13928 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
13929 (construct_container): Fix handling of SSE operands.
13930 (ix86_expand_builtin): Fix handling of 64bit pointers.
13931 (mmx_maskmovq_rex): New pattern.
13932
c43a12b5
JH
13933Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
13934
13935 * regrename.c (kill_set_value): Handle subregs properly.
13936
aeb85a15
DB
139372002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
13938
13939 * objc/objc-act.c (handle_impent): Remove leading '*'
c410d49e 13940 from objc_class_name.
aeb85a15 13941
a615ca3e
RH
139422002-02-17 Richard Henderson <rth@redhat.com>
13943
13944 * config/alpha/alpha.c (some_small_symbolic_operand,
13945 some_small_symbolic_operand_1, split_small_symbolic_operand,
13946 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
13947 Handle small SYMBOL_REFs anywhere, not just inside memories.
13948 * config/alpha/alpha-protos.h: Update.
13949 * config/alpha/alpha.h (PREDICATE_CODES): Update.
13950 * config/alpha/alpha.md (small symbolic operand splitter): Update.
13951
ddb28441
RM
139522002-02-17 Roland McGrath <roland@frob.com>
13953
13954 * config.gcc (powerpc-*-gnu-gnualtivec*,
13955 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
13956 * config/rs6000/gnu.h: New file.
13957 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
13958 Grok "gnu" in rs6000_abi_name.
13959 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
13960 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
13961 Grok -mcall-gnu analogous to -mcall-linux et al.
13962 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13963 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
13964 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
13965
f6f8ada3
JJ
139662002-02-17 Jakub Jelinek <jakub@redhat.com>
13967
13968 PR c/3444:
13969 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
13970 shortening.
13971
e16b32fc
PT
139722002-02-17 Philipp Thomas <pthomas@suse.de>
13973
13974 * config/cris/cris.h: Undefine STARTFILE_SPEC and
13975 ENDFILE_SPEC before (re)defining them.
13976
f9477efd
KH
139772002-02-17 Kazu Hirata <kazu@hxi.com>
13978
13979 * config/h8300/h8300.c: Fix formatting.
13980 * config/h8300/h8300.h: Likewise.
13981
404ae494
PT
139822002-02-17 Philipp Thomas <pthomas@suse.de>
13983
13984 * doc/tm.texi: Explain why empty strings should not be
13985 marked for translation.
13986
a52453cc
PT
139872002-02-17 Philipp Thomas <pthomas@suse.de>
13988
13989 * final.c (output_operand_lossage): Changed to accept
13990 printf style arguments. Change calls where necessary.
13991 * output.h (output_operand_lossage): Change declaration
13992 accordingly. Update copyright.
13993 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
13994 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
13995 Update copyright date where necessary.
c410d49e 13996
a52453cc
PT
13997 * config/i386/i386.c (print_operand): Likewise. Remove use of
13998 sprintf.
13999
14000 * config/cris/cris.c (cris_operand_lossage): Likewise.
14001 Rename parameter so that exgettext recognizes it as
14002 translatable message.
14003 (LOSE_AND_RETURN): Rename parameter to msgid.
14004
1c11abc4
KH
140052002-02-17 Kazu Hirata <kazu@hxi.com>
14006
14007 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
14008 hard coded register number with an appropriate macro.
14009 (HARD_REGNO_MODE_OK): Likewise.
14010 (ARG_POINTER_REGNUM): Likewise.
14011 (STATIC_CHAIN_REGNUM): Likewise.
14012 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
14013 * config/h8300/h8300.md (define_constants): Define more
14014 register numbers.
14015
a5d17ff3
PT
140162002-02-17 Philipp Thomas <pthomas@suse.de>
14017
14018 * config/i386/i386.h: Don't mark empty strings for translation.
14019
1a7289c4
L
140202002-02-16 H.J. Lu <hjl@gnu.org>
14021
14022 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
14023
afb58288
ZW
140242002-02-16 Zack Weinberg <zack@codesourcery.com>
14025
14026 * cppinit.c (merge_include_chains): Check for brack being
14027 NULL before attempting to merge it with qtail.
14028
d2af4dbd
AC
140292002-02-16 Andrew Cagney <ac131313@redhat.com>
14030
14031 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
14032 DBX_DEBUG.
14033
2e1ed1e3
JDA
140342002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14035
14036 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
14037
604c75b2
JDA
140382002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14039
14040 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
14041 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
14042 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
14043
1a42b072
RK
14044Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14045
7303604f 14046 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1a42b072
RK
14047 now only if !TARGET_FIX.
14048 (*movsi_nt_vms_fix): New pattern.
14049
c2ea1ac6
DR
140502002-02-16 Douglas B Rupp <rupp@gnat.com>
14051
14052 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
14053 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
14054 (alpha_sa_mask, alpha_sa_size): Reflect above change.
14055 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
14056 (alpha_start_function, alpha_expand_epilogue): Likewise.
14057 (unicosmk_gen_dsib): Likewise.
14058
725e58b1
RK
14059Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14060
14061 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
14062
13e58269
UW
140632002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
14064
c410d49e 14065 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
13e58269
UW
14066 check_and_change_labels, s390_final_chunkify): Delete.
14067 (s390_split_branches, s390_chunkify_pool): New functions.
14068 (s390_function_prologue): Call them.
c410d49e 14069
13e58269
UW
14070 * config/s390/s390.h (S390_REL_MAX): Delete.
14071 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
14072
c410d49e 14073 * config/s390/s390.md (cjump, icjump, jump): Fix length
13e58269
UW
14074 attribute calculation.
14075
14076
34d1b01d
DE
140772002-02-15 David Edelsohn <edelsohn@gnu.org>
14078
14079 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
14080 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
14081
be5cc51a
JDA
140822002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14083
14084 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
14085 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
14086 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
14087
ee96ce90
RS
140882002-02-15 Richard Sandiford <rsandifo@redhat.com>
14089
14090 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
14091
05fa709d
RS
140922002-02-15 Richard Sandiford <rsandifo@redhat.com>
14093
14094 * reload.c (find_dummy_reload): Check that an output register
14095 is valid for its mode.
14096
4606272b
AO
140972002-02-14 Alexandre Oliva <aoliva@redhat.com>
14098
9a360704
AO
14099 * combine.c (known_cond): After replacing the REG of a SUBREG, try
14100 to simplify it.
14101
4606272b
AO
14102 * function.c (assign_parms): Demote promoted argument passed by
14103 transparent reference.
14104
e62d89a1
JS
141052001-02-14 Joel Sherrill <joel@OARcorp.com>
14106
14107 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
14108 -Acpu() and -Amachine() to eliminate warnings.
14109
6c4cf695
UW
141102002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
14111
14112 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
14113
037f11ef
KH
141142002-02-14 Kazu Hirata <kazu@hxi.com>
14115
14116 * config/h8300/h8300-protos.h: Update the prototype for
14117 const_costs.
14118 * config/h8300/h8300.c (const_costs): Treat SET as a little
14119 more expensive operation.
14120 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
14121 reference to const_costs.
14122
fdc76b09
HPN
141232002-02-14 Hans-Peter Nilsson <hp@axis.com>
14124
14125 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
14126
d76e6800
JJ
141272002-02-14 Jakub Jelinek <jakub@redhat.com>
14128
14129 PR c/5503:
14130 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
14131 use arguments from newtype.
14132
5ae590d7
EC
141332002-02-13 Eric Christopher <echristo@redhat.com>
14134
14135 * config/mips/mips.c (override_options): Add check for march/mipsX
14136 on the same command line. Fix error message in cpu processing.
14137 Remove architecture and ISA checks.
14138
b8513691
AH
141392002-02-14 Aldy Hernandez <aldyh@redhat.com>
14140
831c4e87 14141 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
b8513691 14142
831c4e87 14143 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
b8513691 14144
78c875e8
AH
141452002-02-14 Aldy Hernandez <aldyh@redhat.com>
14146
831c4e87
KC
14147 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
14148 alternatives.
14149 ("*movv8hi_internal1"): Same.
14150 ("*movv16qi_internal1"): Same.
14151 ("*movv4sf_internal1"): Same.
78c875e8 14152
831c4e87
KC
14153 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
14154 not push_reload for altivec modes.
78c875e8 14155
d76e6800 141562002-02-13 Joel Sherrill <joel@OARcorp.com>
f22b4bc4
JS
14157
14158 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
14159 all RTEMS targets including removal of #includes from config/*/rtems*.h
14160 file and adding them to tm_file setting. Added xm_defines=POSIX to
14161 many targets.
14162 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
14163 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
14164 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
14165 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
14166 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
14167 config/m68k/rtemself.h: Ditto.
14168 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
14169 config/mips/rtems64.h: Ditto.
14170 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
14171 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
14172 Ditto.
14173 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
14174 config/sparc/rtemself.h: Ditto.
14175 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
14176 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
14177 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
14178 more like arm-elf.
14179 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
14180 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
14181 target made more similar to i386-elf.
14182 * config/i386/t-rtems-i386: Added soft float support and multilibs.
14183 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
14184 be similar to config/m68k/t-m68kelf.
14185 * gthr-rtems.h: Encapsulate with extern "C" for C++.
14186
8686336f
JH
14187Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
14188
14189 * regmove.c (kill_value): Handle subregs.
14190
558740bf
JH
14191Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
14192
14193 * i386.md (mul patterns): Allow memory operand to be first;
14194 add expanders where needed; fix constraints.
14195 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
14196 Allow memory operand to be the first.
14197
14198 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
14199 operands.
14200
21117a17
JJ
142012002-02-13 Jakub Jelinek <jakub@redhat.com>
14202
14203 PR c/5681:
14204 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
14205 GET_MODE (x).
14206
ec65b2e3
JJ
142072002-02-13 Jakub Jelinek <jakub@redhat.com>
14208
14209 PR optimization/5547:
14210 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
14211 all valid IA-32 address modes involving non-scaled %ebx and
14212 GOT/GOTOFF as displacement.
14213
ce50cae8
UW
142142002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
14215
14216 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
14217 after emitting ltorg insns.
14218
14219 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
14220 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
14221 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
14222 *abssf2): Fix "op_type" attribute.
14223
09eb789b
DR
142242002-02-13 Douglas B Rupp <rupp@gnat.com>
14225
2dbe67bb
DR
14226 * mkconfig.sh: Avoid using a subshell redirect.
14227 ($output.T): Change to $(output)T.
14228 (ENABLE_NLS): Remove unneeded undef.
14229
ea5b9a1f
DR
14230 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
14231 * config/alpha/x-vms (libsubdir): Define.
14232
3deb00ce
DR
14233 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
14234 register frame procedures. Optimize retrieving context.
14235
09eb789b
DR
14236 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
14237 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
14238 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
14239
1abade85
RK
14240Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14241
14242 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
14243 Make same change as for find_base_value.
14244
c283e63f
KH
142452002-02-13 Kazu Hirata <kazu@hxi.com>
14246
14247 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
14248 of QImode and SImode.
14249
86039100
KH
142502002-02-13 Kazu Hirata <kazu@hxi.com>
14251
14252 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
14253 length computation of movsi.
14254 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
14255
e1429da0
KH
142562002-02-13 Kazu Hirata <kazu@hxi.com>
14257
14258 * config/h8300/h8300.md (subqi3): Tighten the predicate for
14259 operands[2] to register_operand.
14260
aebfea10
JH
14261Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
14262
14263 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
14264
0ec4e2a8
AH
142652002-02-12 Aldy Hernandez <aldyh@redhat.com>
14266
831c4e87
KC
14267 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
14268 for altivec_lvx* and altivec_stvx*.
14269 ("*movv4si_internal"): Add constraint for loading from GPRs.
14270 ("*movv8hi_internal1"): Same.
14271 ("*movv16qi_internal1"): Same.
14272 ("*movv4sf_internal1"): Same.
0ec4e2a8 14273
831c4e87 14274 * config/rs6000/rs6000.c (altivec_register_operand): New.
0ec4e2a8 14275
831c4e87
KC
14276 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14277 altivec_register_operand.
0ec4e2a8 14278
b007569d
HPN
142792002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
14280
14281 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
14282 handle SYMBOL_REF.
14283
e6834654
SS
142842002-02-13 Stan Shebs <shebs@apple.com>
14285
831c4e87
KC
14286 * c-typeck.c (digest_init): Handle vectors.
14287 (really_start_incremental_init): Same.
14288 (pop_init_level): Same.
14289 (process_init_element): Same.
e6834654 14290
831c4e87 14291 * varasm.c (output_constant): Same.
e6834654 14292
831c4e87
KC
14293 * expr.c (clear_storage): Same.
14294 (store_constructor): Same.
e6834654 14295
d9b3eb63
EC
142962002-02-12 Eric Christopher <echristo@redhat.com>
14297
14298 * explow.c (hard_function_value): Add comment explaining
14299 signed/unsigned comparison.
14300
56d44285
JJ
143012002-02-12 Jakub Jelinek <jakub@redhat.com>
14302
14303 * jump.c (never_reached_warning): Add finish argument.
14304 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
14305 real insn after end.
14306 * rtl.h (never_reached_warning): Adjust prototype.
14307 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
14308 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
14309 never_reached_warning.
14310
fc209487
GS
143112002-02-12 Graham Stott <grahams@redhat.com>
14312
14313 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
14314
1e41e866
KH
143152002-02-12 Kazu Hirata <kazu@hxi.com>
14316
14317 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
14318 logical shifts on H8/300.
14319 (shift_alg_si): Improve several shifts on H8/300.
14320 (get_shift_alg): Likewise.
14321
a36a47ad
GS
143222002-02-12 Graham Stott <grahams@redhat.com>
14323
14324 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
14325
0aacc8ed
RK
14326Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14327
14328 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
14329 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
14330
a02ac966
HPN
143312002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
14332
14333 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
14334 non-CONST_INT through default_assemble_integer.
14335 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
14336 <case 8>: Abort for CONST_DOUBLE.
14337
d6e06ddc
JDA
143382002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14339
14340 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
14341 is specified.
14342 * config/pa/pa-linux.h (LIB_SPEC): Delete.
14343 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14344
515342a8
AH
143452002-02-11 Andrew Haley <aph@cambridge.redhat.com>
14346
14347 * config/stormy16/stormy16.md (zero_extendqihi2): New.
14348
cddd8b72
AO
143492002-02-11 Alexandre Oliva <aoliva@redhat.com>
14350
66df7a98
AO
14351 * regrename.c (regrename_optimize): Don't accept a
14352 part-clobbered register if the replaced register is not part
14353 clobbered.
14354
841404cd
AO
14355 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
14356 take padding into account when computing the argument value.
14357
1d1ade42
AO
14358 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
14359
cddd8b72
AO
14360 * combine.c (try_combine): Apply substitutions in
14361 CALL_INSN_FUNCTION_USAGE too.
14362
5c665b88
AH
143632002-02-11 Aldy Hernandez <aldyh@redhat.com>
14364
77f6c1eb
RS
14365 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
14366 __builtin_altivec_abs*.
14367 (bdesc_abs): New.
5c665b88 14368
77f6c1eb
RS
14369 * config/rs6000/rs6000.h (rs6000_builtins): Add
14370 ALTIVEC_BUILTIN_ABS*.
5c665b88 14371
77f6c1eb
RS
14372 * config/rs6000/altivec.h: Use const char for builtins expecting
14373 literals.
14374 (vec_abs): New versions for C and C++.
14375 (vec_abss): Same.
5c665b88 14376
3494f1b4
KH
143772002-02-10 Kazu Hirata <kazu@hxi.com>
14378
14379 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
14380 using Pmode.
14381
72431aef
KH
143822002-02-10 Kazu Hirata <kazu@hxi.com>
14383
14384 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
14385 constant definition from h8300.md.
14386 (FRAME_POINTER_REGNUM): Likewise.
14387 * config/h8300/h8300.md (define_constants): Add FP_REG.
14388
87e4ee91
KH
143892002-02-10 Kazu Hirata <kazu@hxi.com>
14390
14391 * config/h8300/h8300.c (print_operand): Remove redundant code.
14392
9c188705
KH
143932002-02-10 Kazu Hirata <kazu@hxi.com>
14394
14395 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
14396 * config/h8300/h8300.c (byte_reg): Make it static.
14397
fba78abb
RH
143982002-02-10 Richard Henderson <rth@redhat.com>
14399
14400 PR c/5623
14401 * c-typeck.c (incomplete_type_error): Handle flexible array members.
14402
65739e62
RH
144032002-02-10 Richard Henderson <rth@redhat.com>
14404
14405 PR c++/5624
14406 * tree.c (append_random_chars): Don't abort if main_input_filename
14407 does not exist.
14408
247cb9df
HPN
144092002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
14410
14411 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
14412
232bd029
KH
144132002-02-10 Kazu Hirata <kazu@hxi.com>
14414
65739e62 14415 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
232bd029
KH
14416 (pushhi1): Likewise.
14417
276ef573
JDA
144182002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
14419
14420 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
14421 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
14422
617e9ee5
DB
144232002-02-09 David O'Brien <obrien@FreeBSD.org>
14424
14425 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
14426 remove MASK_VIS.
14427 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
14428
6dfa4005
KH
144292002-02-09 Kazu Hirata <kazu@hxi.com>
14430
14431 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
14432 a half of an SImode register on H8/300.
14433
749e7b80
JH
14434Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
14435
14436 * i386.md (movdi_2): Add missing '!'.
14437
ca77d87c
KH
144382002-02-09 Kazu Hirata <kazu@hxi.com>
14439
14440 * config/h8300/h8300.h: Fix formatting. Remove commented-out
14441 definitions.
14442
16c96304
KH
144432002-02-09 Kazu Hirata <kazu@hxi.com>
14444
14445 * config/h8300/h8300.md (length): Correct the distance valid
14446 for the short branch.
14447
a364bc90
KH
144482002-02-09 Kazu Hirata <kazu@hxi.com>
14449
14450 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
14451
e4ec2cac
AO
144522002-02-09 Alexandre Oliva <aoliva@redhat.com>
14453
a138247b
AO
14454 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
14455 registers in SImode.
14456 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
14457 part-clobbered.
14458
2b1fd83f
AO
14459 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
14460 patch.
d9b3eb63 14461
fa5322fa
AO
14462 Contribute sh64-elf.
14463 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14464 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
14465 (sh_cannot_modify_jumps_p): New function.
14466 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
14467 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
14468 (sh_ms_bitfield_layout_p): New function.
14469 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
14470 Zack Weinberg <zack@codesourcery.com>
14471 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
14472 expand_simple_binop instead of expand_binop.
14473 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
14474 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
14475 use of .quad and .uaquad.
14476 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
14477 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
14478 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14479 * config/sh/sh.md (movdi_const, movdi_const_32bit,
14480 movdi_const_16bit): Make sure all CONSTs have modes.
14481 (sym2PIC): Ditto, but by adjusting all callers.
14482 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
14483 if the prologue calls the SHmedia argument decoder or register
14484 saver.
14485 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14486 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
14487 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
14488 (sh_expand_epilogue): Don't emit USE of return target register.
14489 (prepare_move_operands): Legitimize DImode PIC addresses.
14490 (sh_media_register_for_return): Skip tr0, used to initialize the
14491 PIC register.
14492 (sh_expand_prologue): Remove explicit USE of return register.
14493 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
14494 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
14495 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
14496 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
14497 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
14498 EXTRA_CONSTRAINT_T.
14499 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
14500 (MOVI_SHORI_BASE_OPERAND_P): New.
14501 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
14502 (EXTRA_CONSTRAINT_T): Define in terms of them.
14503 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
14504 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
14505 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
14506 alternatives supporting TARGET_REGS.
14507 (UNSPEC_GOTPLT): New constant.
14508 (movdi split): Move incrementing of LABEL_NUSES...
14509 (movdi_const, movdi_const_32bit): Here. Use
14510 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
14511 (movdi_const_16bit): New.
14512 (call, call_value) [flag_pic]: Use GOTPLT.
14513 (call_pop, call_value_pop): New expands.
14514 (call_pop_compact, call_pop_rettramp): New insns.
14515 (call_value_pop_compact, call_value_pop_rettramp): New insns.
14516 (sibcall) [flag_pic]: Use GOT.
14517 (builtint_setjmp_receiver): Remove bogus, unused expand.
14518 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
14519 (*pt, *ptb, ptrel): New insns.
14520 (sym2GOT): Handle DImode GOT.
14521 (sym2GOTPLT, symGOTPLT2reg): New expands.
14522 (sym2PIC): New expand.
14523 (shcompact_return_tramp): Use GOTPLT to return trampoline.
14524 (shcompact_return_tramp_i): Use return register explicitly.
14525 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
14526 disable flag_reorder_blocks.
14527 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14528 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
14529 clobbers, for clarity.
14530 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
14531 restoring of r0 in macl as MAYBE_DEAD.
14532 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
14533 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
14534 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
14535 alter_subreg all over.
14536 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
14537 reload, instead of emitting instructions that would require
14538 reloading.
14539 (casesi_load_media): Add missing modes.
14540 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
14541 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
14542 as used if the argument decoder is called.
14543 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14544 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
14545 Pmode, then extend it to DImode if necessary.
14546 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14547 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
14548 constants in FPU-enabled SHmedia, let them be loaded from memory.
14549 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14550 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
14551 Adjust whitespace in assembly output templates.
14552 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14553 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
14554 mode of if_then_else.
14555 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
14556 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
14557 sh.h.
14558 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
14559 Joern Rennecke <amylaar@redhat.com>
14560 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
14561 (SUBTARGET_CPP_PTR_SPEC): New.
14562 (SUBTARGET_CPP_SPEC): Remove.
14563 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14564 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14565 Fix typo in previous checkin.
14566 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
14567 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
14568 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
14569 Alexandre Oliva <aoliva@redhat.com>
14570 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
14571 what single FP register can hold for SHmedia target.
14572 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14573 Alexandre Oliva <aoliva@redhat.com>
14574 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14575 Do not split into SUBREG.
14576 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
14577 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
14578 and added new functions as specified in SH5 ABI r9.
14579 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
14580 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
14581 8-byte boundary.
14582 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
14583 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
14584 gen_consttable_4 and gen_consttable_8. Emit multiple labels
14585 and consttable_window_ends.
14586 2001-06-03 Graham Stott <grahams@redhat,com>
14587 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
14588 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
14589 * config/sh/sh.c (print_operand): Handle floating-point pair,
14590 vector and matrix registers.
14591 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
14592 vector modes into account.
14593 * config/sh/sh.md (movv2sf): Split move between registers into
14594 movdf.
14595 (movv4sf, movv16sf): Introduce insns that get split only after
14596 reload.
14597 * config/sh/shmedia.h: Fix Copyright dates.
14598 * config/sh/ushmedia.h: Likewise. Move loop counter
14599 declarations into conditionals that uses them.
14600 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
14601 loop boundary.
14602 * config/sh/sshmedia.h: Fix Copyright dates.
14603 (sh_media_PUTCFG): Fix constraints.
14604 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
14605 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
14606 ptrmemfunc_vbit_in_delta for SH5.
14607 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
14608 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
14609 * invoke.texi: Likewise.
14610 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14611 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
14612 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
14613 GCC_pop_shmedia_regs_nofpu): New global symbols.
14614 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
14615 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
14616 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
14617 compact function with nonlocal labels.
14618 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
14619 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
14620 (initial_elimination_offset): Account for their stack space.
14621 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
14622 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
14623 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
14624 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
14625 least one of the operands to be a register.
14626 (movv2sf): Likewise. Renamed to movv2sf_i.
14627 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
14628 prepare_move_operands() before emitting SHmedia insns.
14629 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
14630 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
14631 Don't save nor initialize r12. Don't mis-align the stack.
14632 Pad the code with a nop.
14633 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
14634 stack.
14635 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
14636 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
14637 [__SHMEDIA__]: Implement.
14638 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
14639 * config/sh/sh.md: Set latency of `pt' closer to reality.
14640 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
14641 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
14642 Set move, load and store type attributes.
14643 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
14644 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
14645 profiling.
14646 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
14647 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
14648 * config/sh/sh.c (sh_media_register_for_return): New function.
14649 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
14650 branch-target register.
14651 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
14652 * config/sh/sh.md (return_media_i): Use any call-clobbered
14653 branch-target register.
14654 (return_media): If r18 wasn't copied in the prologue, copy it
14655 here.
14656 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
14657 Clear class FP0_REGS.
14658 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
14659 from elf.h.
14660 2001-03-08 DJ Delorie <dj@redhat.com>
14661 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
14662 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
14663 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
14664 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
14665 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
14666 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
14667 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
14668 return value correctly for call_cookie.
14669 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
14670 * config/sh/crt1.asm (start): Modified so as to call
14671 ___setup_argv_and_call_main.
14672 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
14673 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
14674 SHmedia mode.
14675 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
14676 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
14677 (STRIP_NAME_ENCODING): Use it.
14678 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
14679 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
14680 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
14681 prepare_scc_operands().
14682 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
14683 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
14684 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
14685 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
14686 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
14687 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
14688 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
14689 used in shcompact_incoming_args.
14690 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
14691 change.
14692 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
14693 mode.
14694 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
14695 Adjust accordingly.
14696 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
14697 Simplify. Adjust. Add sanity check.
14698 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
14699 FPU_SINGLE_BIT.
14700 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
14701 TARGET_SHCOMPACT.
14702 (udivsi3, divsi3): Use them.
14703 (force_mode_for_call): New insn.
14704 (call, call_value, sibcall_value): Emit it before SHcompact
14705 calls.
14706 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
14707 * config/sh/sh.md (call, call_value, sibcall): Make sure the
14708 call cookie is non-NULL before taking its value.
14709 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
14710 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
14711 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
14712 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
14713 block.
14714 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
14715 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
14716 temporary for stack adjusts. Use MACL and MACH to pass
14717 arguments to shcompact_incoming_args.
14718 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
14719 clobber r1.
14720 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
14721 (nested_trampoline): Load static chain address into r1.
14722 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
14723 2001-01-07 Alexandre Oliva <aoliva@redhat.com
14724 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
14725 fp_arith_reg_operand().
14726 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
14727 * config/sh/sh.md (casesi): Sign-extend the first two operands,
14728 and use signed compares for them.
14729 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
14730 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
14731 ones properly aligned.
14732 (find_barrier): Account for extra alignment needed for 8-byte wide
14733 constants.
14734 (machine_dependent_reorg): Require a label for the second 4-byte
14735 constant after an 8-byte one.
14736 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
14737 change.
14738 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
14739 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
14740 last_float when switching float modes.
14741 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
14742 auto-increment for general-purpose registers.
14743 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
14744 result.
14745 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
14746 for stack adjust.
14747 * config/sh/sh.c (sh_builtin_saveregs): Support using all
14748 registers for varargs.
14749 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
14750 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
14751 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
14752 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
14753 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
14754 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
14755 call_cookie accordingly.
14756 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
14757 (SHCOMPACT_BYREF): Likewise.
14758 (SHCOMPACT_FORCE_ON_STACK): New macro.
14759 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
14760 (sh_builtin_saveregs): Likewise.
14761 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14762 shcompact_incoming_args): Use new shift values. Support
14763 sequences of consecutive and non-consecutive pushes/pops.
14764 * config/sh/sh.md (return): Don't explicitly use PR_REG.
14765 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
14766 * config/sh/sh.h (TEXT_SECTION): Define.
14767 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
14768 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
14769 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
14770 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
14771 return values on FPU-enabled SHmedia.
14772 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
14773 FPU-enabled SHmedia.
14774 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
14775 value is returned in a non-FP reg and is not returned by
14776 reference.
14777 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
14778 jump_ind.
14779 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
14780 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
14781 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
14782 quad-aligned to be passed by callee-copy reference.
14783 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
14784 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
14785 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
14786 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
14787 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
14788 copying low-numbered FP regs to r7 and r8.
14789 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
14790 FP regs to general-purpose regs only if the copy was passed on the
14791 stack.
14792 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
14793 copying FP reg to r9.
14794 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
14795 copy FP regs to general-purpose regs only in outgoing calls.
14796 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1e4e95d6 14797 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
fa5322fa
AO
14798 HOST_WIDE_INT.
14799 * config/sh/sh.h (struct sh_args): Document all fields.
14800 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
14801 passed partially on the stack should not consider making
14802 sibcalls.
14803 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
14804 stack_regs only for incoming calls. When passing FP args,
14805 make sure there are FP regs available before modifying
14806 call_cookie.
14807 (SHCOMPACT_BYREF): Pass double args in general-purpose
14808 registers by reference.
14809 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
14810 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
14811 attempt to generate sibcalls if the caller got any arguments
14812 by reference.
14813 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
14814 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
14815 to 8-byte boundaries.
14816 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
14817 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
14818 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
14819 stored in the stack.
14820 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
14821 for the offsets to have the ISA bit set.
14822 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
14823 invocation. Use beq instead of bgt to mark end of sequence of
14824 loads.
14825 (shcompact_incoming_args): Fix store of r2. Use beq instead of
14826 bgt to mark end of sequence of stores.
14827 * config/sh/sh.c (arith_operand): Don't check whether
14828 CONST_OK_FOR_J for now.
14829 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
14830 instead of long for conversion.
14831 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
14832 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
14833 before passing it to fprintf.
14834 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
14835 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
14836 Call set_fpscr before reading/writing SR.
14837 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
14838 Call set_fpscr.
14839 * config/sh/lib1funcs.asm: Add `.align 2' directives before
14840 SHmedia code.
14841 (FMOVD_WORKS): Define on SH5 with FPU.
14842 (set_fpscr): Define on SH5. Remove separate _fpscr_values
14843 setting.
14844 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
14845 _fpscr_values.
14846 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
14847 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
14848 address.
14849 (ia_main_table): Ditto.
14850 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
14851 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14852 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
14853 the definitions from sh.h.
14854 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
14855 TARGET_SH5.
14856 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
14857 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
14858 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14859 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
14860 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
14861 Increment LABEL_NUSES.
d9b3eb63 14862
fa5322fa
AO
14863 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
14864 TARGET_SH5.
14865 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
14866 defined.
14867 * config/sh/elf.h (SIZE_TYPE): Likewise.
14868 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14869 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14870 shcompact_incoming_args): Load switch table addresses using
14871 datalabel.
14872 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
14873 (NO_BUILTIN_SIZE_TYPE): Define.
14874 (SIZE_TYPE): Don't define.
14875 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
14876 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
14877 definition of __SH5__=32 for -m5-compact-nofpu.
14878 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
14879 ADDR_DIFF_VEC.
14880 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
14881 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
14882 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
14883 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
14884 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
14885 (INSN_LENGTH_ALIGNMENT): Likewise.
14886 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14887 * config/sh/sh.md (call, call_value, sibcall): Simplify
14888 copying of non-branch-target register.
14889 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1e4e95d6 14890 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
fa5322fa
AO
14891 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
14892 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14893 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
14894 floating-point values as structs.
14895 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
14896 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
14897 general-purpose register.
14898 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
14899 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
14900 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
14901 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
14902 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
14903 (ENCODE_SECTION_INFO): Enclose variables and constants in
14904 DATALABEL unspecs.
14905 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
14906 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
14907 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
14908 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
14909 only for LABEL_REFs. For SYMBOL_REFs, prepend
14910 SH_DATALABEL_ENCODING to the symbol name.
14911 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
14912 convert_mode().
14913 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
14914 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
14915 UNSPEC_DATALABEL.
14916 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
14917 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
14918 (DATALABEL_REF_P): Don't require CONST.
14919 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
14920 REL label.
14921 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
14922 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
14923 right.
14924 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
14925 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
14926 Use shallow_copy_rtx and PUT_MODE to change the mode of
14927 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
14928 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
14929 on SHmedia using GENERAL_REGs.
14930 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
14931 bltu_media_i): Fix reversion of conditions.
14932 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
14933 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
14934 * config/sh/sh.c (output_far_jump): Save r13 in macl.
14935 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
14936 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
14937 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
14938 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
14939 (GCC_nested_trampoline): Likewise.
14940 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
14941 * config/sh/sh.c (gen_datalabel_ref): Define.
14942 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
14943 (INITIALIZE_TRAMPOLINE): Likewise.
14944 (TRAMPOLINE_ADJUST_ADDRESS): Define.
14945 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
14946 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
14947 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
14948 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
14949 (ic_invalidate): Adjust for SH5.
14950 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
14951 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
14952 _nested_trampoline.
14953 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
14954 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
14955 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
14956 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
14957 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
14958 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
14959 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
14960 * config/sh/sh.c (target_reg_operand): Match only target-branch
14961 registers and pseudos that aren't virtual registers.
14962 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
14963 Copy operands that don't match target_reg_operand to pseudos.
14964 (call_media, call_value_media, sibcall_media): Use
14965 target_reg_operand instead of target_operand.
14966 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
d9b3eb63 14967 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
fa5322fa
AO
14968 * config/sh/sh.c (target_reg_operand): Match hardware registers
14969 other than branch-target registers.
14970 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
14971 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
14972 (fpscr_values) [SH5 == 32]: Define.
14973 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
14974 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
14975 Handle function addresses coming in SUBREGs.
14976 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
14977 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14978 shcompact_return_trampoline): Use datalabel where appropriate.
14979 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
14980 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
14981 general-purpose register to copy one branch-target register to
14982 another.
14983 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
14984 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
14985 SYMBOL_REFs with VOIDmode.
14986 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
14987 bltu_media_i): New insns.
14988 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
14989 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
14990 (INIT_CUMULATIVE_ARGS): Likewise.
14991 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
14992 * machmode.def (V16SFmode): New mode.
14993 * c-common.c (type_for_mode): Support V2SF and V16SF.
14994 * tree.c (build_common_tree_nodes_2): Likewise.
14995 * tree.h (tree_index): Likewise.
14996 * calls.c (emit_call_1): Take args_so_far. Adjust all
14997 callers. Introduce CALL_POPS_ARGS.
14998 * tm.texi (CALL_POPS_ARGS): Document.
14999 * config/sh/crt1.asm: Implement in SHmedia mode.
15000 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
15001 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
15002 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
15003 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
15004 Implement divsi and udivsi in SHmedia mode. Introduce
15005 SHcompact trampolines.
15006 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
15007 only in SHmedia64.
15008 (regno_reg_class): Rewrite.
15009 (fp_reg_names): Remove.
15010 (sh_register_names, sh_additional_register_names): New.
15011 (print_operand): Added `u'. Support SUBREGs in addresses.
15012 Add parentheses around shifted CONSTs.
15013 (output_file_start): Output .mode and .abi directives.
15014 (shiftcosts, addsubcosts, multcosts): Adjust.
15015 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
15016 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
15017 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
15018 bytes, not registers. Take into account the need for the
15019 SHcompact incoming args trampoline. Adjust all callers.
15020 (sh_expand_prologue): Take stack_regs into account. Call
15021 incoming args trampoline. Keep stack aligned as per SH5 ABI.
15022 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
15023 stack aligned as per SH5 ABI.
15024 (sh_builtin_saveregs): Support SH5 ABI.
15025 (sh_build_va_list, sh_va_start): Likewise.
15026 (initial_elimination_offset): Take alignment into account.
15027 Compute location of PR according to the SH5 stack frame.
15028 (arith_reg_operand): Reject branch-target registers.
15029 (shmedia_6bit_operand): New.
15030 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
15031 (target_reg_operand): Match DImode only. Accept SUBREGs.
15032 (target_operand): New.
15033 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
15034 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
15035 SIBCALL_REGS for SHmedia.
15036 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
15037 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
15038 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
15039 (TARGET_SWITCHES): New SH5 flags.
15040 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
15041 VALID_REGISTER_P to disable unsupported registers.
15042 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
15043 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
15044 (FUNCTION_ARG_PADDING): Define.
15045 (FASTEST_ALIGNMENT): Adjust.
15046 (SH_REGISTER_NAMES_INITIALIZER): New.
15047 (sh_register_names): Declare.
15048 (DEBUG_REGISTER_NAMES): Define.
15049 (REGISTER_NAMES): Define based on sh_register_names.
15050 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
15051 (sh_additional_register_names): Declare.
15052 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
15053 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
15054 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
15055 (REGISTER_NATURAL_MODE): Define.
15056 (FIRST_PSEUDO_REGISTER): Adjust.
15057 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
15058 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
15059 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
15060 (VECTOR_MODE_SUPPORTED_P): Define.
15061 (REG_CLASS_CONTENTS): Adjust.
15062 (SMALL_REGISTER_CLASSES): Adjust.
15063 (REG_ALLOC_ORDER): Adjust.
15064 (INDEX_REG_CLASS): Adjust.
15065 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
15066 (CONST_OK_FOR_LETTER_P): Adjust.
15067 (PREFERRED_RELOAD_CLASS): Adjust.
15068 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
15069 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
15070 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
15071 (FIRST_FP_PARM_REG): Adjust.
15072 (CALL_POPS_ARGS): Define.
15073 (FUNCTION_ARG_REGNO_P): Adjust.
15074 (struct sh_args): New fields.
15075 (GET_SH_ARG_CLASS): Adjust.
15076 (INIT_CUMULATIVE_ARGS): Adjust.
15077 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
15078 (FUNCTION_ARG_ADVANCE): Adjust.
15079 (FUNCTION_ARG): Adjust.
15080 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
15081 (FUNCTION_ARG_CALLEE_COPIES): Define.
15082 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
15083 (STRICT_ARGUMENT_NAMING): Define.
15084 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
15085 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
15086 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
15087 (SETUP_INCOMING_VARARGS): Adjust.
15088 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
15089 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
15090 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
15091 (SUBREG_OK_FOR_INDEX_P): Adjust.
15092 (EXTRA_CONSTRAINT_S): Update.
15093 (EXTRA_CONSTRAINT_T): New.
15094 (EXTRA_CONSTRAINT): Adjust.
15095 (GO_IF_LEGITIMATE_INDEX): Adjust.
15096 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
15097 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
15098 (MOVE_MAX): Adjust.
15099 (MAX_MOVE_MAX): Define.
15100 (Pmode): Adjust.
15101 (CONST_COSTS): Adjust.
15102 (REGISTER_MOVE_COST): Adjust.
15103 (BRANCH_COST): Adjust.
15104 (TEXT_SECTION_ASM_OP): Adjust.
15105 (DBX_REGISTER_NUMBER): Adjust.
15106 (ASM_OUTPUT_DOUBLE_INT): New.
15107 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
15108 (PREDICATE_CODES): Adjust.
15109 (PROMOTE_MODE): Adjust.
15110 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
15111 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
15112 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
15113 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
15114 (DR0_REG, DR2_REG, DR4_REG): Renumber.
15115 (TR0_REG, TR1_REG, TR2_REG): New.
15116 (XD0_REG): Renumber.
15117 (UNSPEC_COMPACT_ARGS): New.
15118 (type): Added pt and ptabs.
15119 (length): Default to 4 on SHmedia. Default pt length to 12
1e4e95d6 15120 and 20 on SHmedia32 and SHmedia64, respectively.
fa5322fa
AO
15121 (pt): New function unit.
15122 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
15123 Add whitespace between operands of SHmedia instructions.
15124 (movdicc): Fix.
15125 (adddi3_media, addsi3_media): Adjust constraints.
15126 (subsi3) [SHmedia]: Force operand 1 into a register.
15127 (udivsi3_i1_media, udivsi3_i4_media): New.
15128 (udivsi3): Support SHmedia.
15129 (divsi3_i1_media, divsi3_i4_media): New.
15130 (divsi3): Support SHmedia.
15131 (anddi3, iordi3, xordi3): Adjust constraints.
15132 (zero_extendhidi2, zero_extendqidi2): New.
15133 (extendsidi2, extendhidi2, extendqidi2): New.
15134 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
15135 (pop_e, pop_fpul, pop_4): Likewise.
15136 (movsi_media): Support FP and BT registers.
15137 (movsi_media_nofpu): New. Adjust splits to DImode.
15138 (lduw, ldub): Renamed to zero_extend* above.
15139 (movqi_media): Fix typo.
15140 (movdi_media): Support FP and BT registers.
15141 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
15142 (movdi_const_32bit): New.
15143 (shori_media): Require immediate operand. Use `u' for output.
15144 (movdf_media, movsf_media): Simplified.
15145 (movdf_media_nofpu, movsf_media_nofpu): New.
15146 (movdf, movsf): Adjust
15147 (movv2sf, movv2sf, movv16sf): New.
15148 (beq_media, beq_media_i): Adjust constraints. Don't use
15149 scratch BT register.
15150 (bne_media, bne_media_i): Likewise.
15151 (bgt_media, bgt_media_i): Likewise.
15152 (bge_media, bge_media_i): Likewise.
15153 (bgtu_media, bgtu_media_i): Likewise.
15154 (bgeu_media, bgeu_media_i): Likewise.
15155 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
15156 bunordered): Emit jump insn. Force operands to registers when
15157 needed.
15158 (jump_media, jump): Simplify.
15159 (call_compact, call_compact_rettramp): New.
15160 (call_value_compact, call_value_compact_rettramp): New.
15161 (call_media, call_value_media): Simplify.
15162 (sibcall_compact, sibcall_media): New.
15163 (call, call_value): Adjust for SHmedia and SHcompact.
15164 (sibcall, sibcall_value, untyped_call): Likewise.
15165 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
15166 (indirect_jump): Adjust for SHmedia.
15167 (casesi_jump_media): New.
15168 (nop): Re-enable for SHmedia.
15169 (call_site): Restrict to SH1.
15170 (casesi): Adjust for SHmedia.
15171 (casesi_shift_media, casesi_load_media): New.
15172 (return): Explicitly use PR register. Call return trampoline
15173 on SHcompact.
15174 (return_i): Explicitly use PR register.
15175 (shcompact_return_tramp, shcompact_return_tramp_i): New.
15176 (return_media): Adjust.
15177 (shcompact_incoming_args): New.
15178 (epilogue): Adjust.
15179 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15180 (movstrsi): Disable on SH5.
15181 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
15182 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
15183 (subsf3, subsf3_media): Likewise.
15184 (mulsf3, mulsf3_media, mac_media): Likewise.
15185 (divsf3, divsf3_media): Likewise.
15186 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
15187 (floatsisf2, fux_truncsfsi2): Likewise.
15188 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
15189 constraints.
15190 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
15191 (cmpunsf_media, cmpsf): Likewise.
15192 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
15193 (abssf2, abssf2_media): Likewise.
15194 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
15195 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
15196 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
15197 (floatsidf2, fix_truncdfsi2): Likewise.
15198 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
15199 constraints.
15200 (cmpeqdf_media, cmpgtdf_media): Likewise.
15201 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
15202 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
15203 (absdf2, absdf2_media): Likewise.
15204 (extendsfdf2, extendsfdf2_media): Likewise.
15205 (truncsfdf2, truncsfdf2_media): Likewise.
15206 * config/sh/sh64.h: New file.
15207 * config/sh/t-sh64: New file.
15208 * config/sh/shmedia.h: New file.
15209 * config/sh/ushmedia.h: New file.
15210 * config/sh/sshmedia.h: New file.
15211 * configure.in: Added sh64-*-elf.
15212 * configure: Rebuilt.
15213 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
15214 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
15215 (reg_class_from_letter): Use `b' for TARGET_REGS.
15216 (print_operand): Support `%M', `%m', `AND' and
15217 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
15218 (andcosts): Adjust for SHmedia.
15219 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
15220 Likewise.
15221 (target_reg_operand): New function.
15222 * config/sh/sh-protos.h (target_reg_operand): Declare.
15223 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
15224 FP registers on SH5.
15225 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
15226 on SH4.
15227 (TARGET_REGISTER_P): New macro.
15228 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
15229 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
15230 (EXTRA_CONSTRAINT_S): New macro.
15231 (EXTRA_CONSTRAINT): Adjust.
15232 (FLOAT_TYPE_SIZE): Define to 32.
15233 (Pmode): DImode on SHmedia.
15234 (CONST_COSTS): Adjust for SHmedia literals.
15235 (PREDICATE_CODES): Added target_reg_operand.
15236 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
15237 * config/sh/sh.md: Remove all attrs from SHmedia insns.
15238 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
15239 (cmpdi): Accept SHmedia.
15240 (movdicc_false, movdicc_true): New insns.
15241 (movdicc): New expand.
15242 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
15243 no_new_pseudos.
15244 (addsi3_media): Match `S' constraint.
15245 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
15246 (negdi2): Expand for SHmedia.
15247 (one_cmpldi2): New expand.
15248 (zero_extendsidi2): Change from expand to insn.
15249 (extendsidi2): Add constraints.
15250 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
15251 LD/ST address. Fix SI immediate loading split.
15252 (movhi_media, movqi_media, lduw, ldub): New insns.
15253 (movhi, movqi): Accept SHmedia.
15254 (shori_media, movdi_media): Relax input constraints. Split
15255 symbolic constants.
15256 (movdf_media, movsf_media): New insn. New split to movdi.
15257 (movdf, movsf): Match on SHmedia.
15258 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
15259 bgeu_media): New insns and splits. New insns with `_i' suffix.
15260 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
15261 (bunordered): New expand.
15262 (jump_compact): Renamed from `jump'.
15263 (jump_media): New insn.
15264 (jump): New expand.
15265 (call_media, call_value_media): New insns.
15266 (call, call_value): Adjust.
15267 (indirect_jump_compact): Renamed from `indirect_jump'.
15268 (indirect_jump_media): New insn.
15269 (indirect_jump): New expand.
15270 (untyped_call, return): Accept SHmedia.
15271 (return_media): New insn.
15272 (prologue, epilogue, blockage): Accept SHmedia.
15273 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15274 (sunordered): New expand.
15275 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
15276 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
15277 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
15278 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
15279 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
15280 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
15281 abssf2_media): New insns.
15282 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
15283 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
15284 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
15285 floatdidf2, floatsidf2_media, fix_truncdfdi2,
15286 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
15287 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
15288 absdf2_media): New insns.
15289 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
15290 (extendsfdf2_media, truncdfsf2_media): New insns.
15291 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
15292 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
15293 * config/sh/sh.h (CONST_OK_FOR_J): Document.
15294 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
15295 * config/sh/sh.md (adddi3): New expand.
15296 (adddi3_media, adddi3z_media): New insns.
15297 (adddi3_compact): Renamed from adddi3.
15298 (addsi3_media): Use add.l r63 to add constant zero.
15299 (subdi3): New expand.
15300 (subdi3_media): New insn.
15301 (subdi3_compact): Renamed from subdi3.
15302 (mulsidi3): New expand.
15303 (mulsidi3_media): New insn.
15304 (mulsidi3_compact): Renamed from mulsidi3.
15305 (umulsidi3): New expand.
15306 (umulsidi3_media): New insn.
15307 (umulsidi3_compact): Renamed from umulsidi3.
15308 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
15309 (ashlsi3, ashrsi3, lshrsi3): Use them.
15310 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
15311 (ashldi3, ashrdi3, lshrdi3): Use them.
15312 (zero_extendsidi2): New expand.
15313 (extendsidi2): New insn.
15314 (movsi_media): New insn. Split to movdi to load constants.
15315 (movsi): Enable for shmedia.
15316 (movdi_media): New insn. Use shori_media to load wide constants.
15317 (short_media): New insn.
15318 (movdi): Enable for shmedia.
15319 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
15320 * config/sh/sh.h (CPP_SPEC): Added `m5'.
15321 (SUBTARGET_CPP_SPEC): Added `!m5'.
15322 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
15323 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
15324 to all other SH variants.
15325 (TARGET_DEFAULT): Set to SH1_BIT.
15326 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
15327 (BITS_PER_WORD): Raise to 64 on shmedia.
15328 (MAX_BITS_PER_WORD): Change to 64.
15329 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
15330 (INT_TYPE_SIZE): Keep as 32.
15331 (UNITS_PER_WORD): Raise to 8 on shmedia.
15332 (MIN_UNITS_PER_WORD): Keep as 4.
15333 (POINTER_SIZE): Raise to 64 on shmedia.
15334 (CONST_OK_FOR_J): New macro.
15335 (CONST_OK_FOR_LETTER_P): Use it.
15336 (processor_type): Add PROCESSOR_SH5.
15337 * config/sh/sh.md: Conditionalize all expands, insns and
15338 splits to TARGET_SH1.
15339 (cpu): Added sh5.
15340 (addsi3_compact): Renamed from...
15341 (addsi3): Now an expand.
15342 (addsi3_media, subsi3_media): New insns.
15343 (subsi3): Don't negate constants with SHmedia.
15344
e4ec2cac
AO
15345 * hooks.c: New file.
15346 * hooks.h: New file.
15347 * Makefile.in (HOOKS_H): New.
15348 (TARGET_DEF_H): Added $(HOOKS_H).
15349 (OBJS): Added hooks.o.
15350 (cfgcleanup.o, bb-reorder.o): Added target.h.
15351 (hooks.o): Added dependencies.
15352 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
15353 (TARGET_INITIALIZER): this.
15354 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
15355 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
15356 * bb-reorder.c: Include target.h.
15357 (reorder_basic_blocks): Skip if cannot modify jumps.
15358 * cfgcleanup.c: Include target.h.
15359 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
15360
246a46e0
CD
153612002-02-08 Chris Demetriou <cgd@broadcom.com>
15362
831c4e87
KC
15363 * config/mips/mips.md (casesi_internal, casesi_internal_di):
15364 Protect jump delay slot instructions with .set noreorder and
15365 .set nomacro.
246a46e0
CD
15366
153672002-02-08 Chris Demetriou <cgd@broadcom.com>
6a5ea3f4
CD
15368
15369 * config/mips/mips.md (casesi_internal_di): Calculate
15370 the index into the target offset table correctly.
15371
fdf473ae
RH
153722002-02-08 Richard Henderson <rth@redhat.com>
15373
15374 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
15375 * final.c (output_addr_const): Accept and discard SUBREG.
15376 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
15377 mark them unknown instead.
15378 (simplify_subtraction): Handle RTX_UNKNOWN.
15379 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
15380
c50503ac
DE
153812002-02-08 David Edelsohn <edelsohn@gnu.org>
15382
15383 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
15384
3660d217
RH
153852002-02-08 Richard Henderson <rth@redhat.com>
15386
15387 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
15388
56547299
AJ
153892002-02-08 Andreas Jaeger <aj@suse.de>
15390
15391 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
15392 * config/i386/t-linux64: New file.
15393
1cf537c5
JJ
153942002-02-08 Jakub Jelinek <jakub@redhat.com>
15395
15396 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
15397 * c-parse.in (compstmt): Clear last_expr_type.
15398
5c7f5a5f
RH
153992002-02-07 Richard Henderson <rth@redhat.com>
15400
15401 * loop.c (strength_reduce): Sink final_value when not
15402 eliminating a biv.
15403
b1138bf3
DB
154042002-02-07 David O'Brien <obrien@FreeBSD.org>
15405
15406 * config/sparc/freebsd.h: Fix mismatched spec {.
15407
b6878a45
RH
154082002-02-07 Richard Henderson <rth@redhat.com>
15409
15410 * cfgrtl.c: Include recog.h and insn-config.h.
15411 (keep_with_call_p): Fix general_operand invocation.
15412 * Makefile.in (cfgrtl.o): Update dependencies.
15413
ae19f5ef
KH
154142002-02-07 Kazu Hirata <kazu@hxi.com>
15415
15416 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
15417 comment. Accept HImode only if TARGET_H8300.
15418
b137f9fc
EC
154192002-02-07 Eric Christopher <echristo@redhat.com>
15420
15421 * config/mips/crtn.asm: Cleanup #ifdefs.
15422
154232002-02-07 Eric Christopher <echristo@redhat.com>
15424
15425 * config/mips/crti.asm: Add changes for mips16. mips16 uses
15426 register 7 as RA instead of $31.
15427 * config/mips/crtn.asm: Ditto.
15428 * config/mips/mips.c (mips_move_2words): Add case for
15429 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
15430 (compute_frame_size): Fix typo.
15431 (save_restore_insns): Ditto. Make documentation about using
15432 register $7 as return register more precise.
15433 (mips_expand_epilogue): Fix comment. Add code to work around not
15434 being able to add to the stack pointer directly.
15435 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
15436 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
15437 epilogue.
15438
768070a0
TR
154392002-02-07 Tom Rix <trix@redhat.com>
15440
b137f9fc 15441 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
768070a0
TR
15442 immediates in ldu and stdu DS opcode field.
15443 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
15444 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
15445 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
15446
225909c3
JS
154472002-02-07 Jeff Sturm <jsturm@one-point.com>
15448
15449 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
15450 offset for stack bias.
15451
15fae023
L
154522002-02-07 H.J. Lu <hjl@gnu.org>
15453
15454 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
15455
fde5badd
UW
154562002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
15457
15458 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
15459
162f023b
JH
15460Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
15461
15462 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
15463 * i386.c (x86_order_regs_for_local_alloc): New global function.
15464 * i386.h (REG_ALLOC_ORDER): CLeanup.
15465 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
15466
9b462c42
RH
154672002-02-07 Richard Henderson <rth@redhat.com>
15468
85aa876c 15469 PR optimization/2463
9b462c42
RH
15470 * alias.c (find_base_value): Recall base values for fixed hard regs.
15471 * loop.c (loop_regs_update): Don't use single_set on non-insns.
15472
06e455a9
AO
154732002-02-07 Alexandre Oliva <aoliva@redhat.com>
15474
15475 * config/mips/mips.md (define_delay) [mips16]: Adjust required
15476 length.
15477
edd1967d
RH
154782002-02-06 Richard Henderson <rth@redhat.com>
15479
15480 PR c/5609
15481 * stmt.c (resolve_operand_name_1): Take more care with mixed
15482 named and unnamed operands.
15483
a2cd028f
JJ
154842002-02-06 Janis Johnson <janis187@us.ibm.com>
15485 Jan Hubicka <jh@suse.cz>
15486
15487 * loop.c (remove_constant_addition): Avoid clobbering a shared
15488 CONST expression.
15489
e8487c04
UW
154902002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15491
15492 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
15493 * config/s390/t-linux64: New file.
15494 * config/s390/libgcc-glibc.ver: New file.
15495
58d10f89
UW
154962002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15497
15498 * config/s390/linux64.h: Delete file.
15499 * config/s390/s390x.h: New file.
15500 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
15501 as target header file.
15502 * config/s390/linux.h (TARGET_VERSION): Define depending on
15503 DEFAULT_TARGET_64BIT.
15504 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
15505 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
15506 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
15507 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
15508 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
15509 (EXTRA_SPEC): New define.
15510 * config/s390/s390.h (TARGET_VERSION): Define depending on
15511 DEFAULT_TARGET_64BIT.
15512 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
15513
5ce89b2e
JM
155142002-02-06 Jason Merrill <jason@redhat.com>
15515
15516 * c-decl.c (finish_function): Warn about a non-void function with
15517 no return statement and no abnormal exit.
15518 (current_function_returns_abnormally): New variable.
15519 (start_function): Clear it.
15520 (struct c_language_function): Add returns_abnormally.
15521 (push_c_function_context): Save it.
15522 (pop_c_function_context): Restore it.
15523 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
15524 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
15525 an explicit return type.
15526 * c-tree.h: Declare current_function_returns_abnormally.
15527 (C_FUNCTION_IMPLICIT_INT): New macro.
15528 * c-typeck.c (build_function_call): Set it.
15529 (c_expand_return): Set current_function_returns_value even if the
15530 value is erroneous.
15531
caaf2272
JJ
155322002-02-06 Jakub Jelinek <jakub@redhat.com>
15533
15534 PR c/5420:
15535 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
15536 unsafe for reevaluation.
15537
d5129288
JJ
155382002-02-06 Jakub Jelinek <jakub@redhat.com>
15539
15540 PR c/5482:
15541 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
15542 EXPR_STMT, but COMPOUND_STMT, recurse into it.
15543
7fb75099
RH
155442002-02-06 Richard Henderson <rth@redhat.com>
15545
15546 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
15547 be a general_operand. Dest for function value must be a pseudo.
15548
d3a8b6a6
NC
155492002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
15550
15551 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
15552 as SYMBOL_REFs from the constant pool.
15553
3c1299c5
AO
155542002-02-06 Alexandre Oliva <aoliva@redhat.com>
15555
15556 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
15557 passed by invisible reference.
15558
c2c9f6c9
RH
155592002-02-05 Richard Henderson <rth@redhat.com>
15560
15561 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
15562
a824924d
HPN
155632002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
15564
15565 Implement using "base addresses" in insn operands as default.
15566 * config/mmix/mmix.c (mmix_conditional_register_usage): if
15567 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
15568 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
15569 used to read the rtx value.
15570 (mmix_target_asm_function_epilogue): Fix spacing.
15571 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
15572 (mmix_legitimate_address): Ditto.
15573 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
15574 should be loaded with a GETA insn. Don't allocate needless extra
15575 char for nul termination and fix misleading comment.
15576 (mmix_print_operand_address): Handle constants if
15577 TARGET_BASE_ADDRESSES.
15578 (mmix_output_register_setting): Use base addressing if
15579 TARGET_BASE_ADDRESSES and the number of insns is 3.
15580 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
15581 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
15582 to use R as constraint, add LDA to match s.
15583 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
15584 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
15585 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
15586 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
15587 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
15588 order with other fixed registers.
15589 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
15590 other parameter/call-clobbered registers.
15591 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
15592 -mbase-addresses, -mno-base-addresses.
15593 (MMIX Options): Ditto.
15594
73c342b9
JDA
155952002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
15596
15597 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
15598
ef238c58
AH
155992002-02-06 Aldy Hernandez <aldyh@redhat.com>
15600
831c4e87 15601 * config/rs6000/altivec.h: Change elem to _S_elem.
ef238c58 15602
ad08e60e
JT
156032002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15604
15605 * config/netbsd.h (WCHAR_TYPE): Define.
15606 (WCHAR_TYPE_SIZE): Ditto.
15607 (WINT_TYPE): Ditto.
15608 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
15609 (WCHAR_UNSIGNED): Ditto.
15610 (WCHAR_TYPE_SIZE): Ditto.
15611 (WINT_TYPE): Ditto.
15612 * config/arm/netbsd.h: Likewise.
15613 * config/i386/netbsd-elf.h: Likewise.
15614 * config/i386/netbsd.h: Likewise.
15615 * config/m68k/netbsd-elf.h: Likewise.
15616 * config/m68k/netbsd.h: Likewise.
15617 * config/ns32k/netbsd.h: Likewise.
15618 * config/sparc/netbsd.h: Likewise.
15619 * config/vax/netbsd.: Likewise.
15620
f913c102
AO
156212002-02-05 Alexandre Oliva <aoliva@redhat.com>
15622
15623 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
15624 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
15625 (TARGET_INITIALIZER): this.
15626 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
15627 (BITFIELD_NBYTES_LIMITED): Markup fix.
15628 * tree.h (default_ms_bitfield_layout_p): Declare.
15629 (record_layout_info): Added prev_field.
15630 * tree.c (default_ms_bitfield_layout_p): New fn.
15631 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
15632 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
15633 * stor-layout.c: Include target.h.
15634 (start_record_layout): Initialize prev_field.
15635 (place_field): Handle MS bit-field layout, and disregard
15636 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
15637 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
15638 * Makefile.in (stor-layout.o): Adjust dependencies.
15639
c13db5d1
JM
156402002-02-05 Jason Merrill <jason@redhat.com>
15641
c13db5d1
JM
15642 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
15643
4505024e
AJ
156442002-02-05 Andreas Jaeger <aj@suse.de>
15645
15646 * crtstuff.c: Fix comments.
15647
794ad79d
RH
156482002-02-05 Richard Henderson <rth@redhat.com>
15649
2e279a9b
RH
15650 PR fortran/3393
15651 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
15652 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
15653
794ad79d
RH
15654 PR fortran/3392
15655 * config/mips/mips.c (function_arg): Handle TImode.
15656 (function_arg_advance): Likewise.
15657
8f909017
AH
156582002-02-05 Aldy Hernandez <aldyh@redhat.com>
15659
c13db5d1
JM
15660 * config/rs6000/altivec.h (vec_step_help): Rename to
15661 __vec_step_help.
8f909017 15662
66daa9e3
AH
156632002-02-05 Aldy Hernandez <aldyh@redhat.com>
15664
c13db5d1 15665 * config/rs6000/altivec.h: Fix typos.
66daa9e3 15666
2696e97b
JT
156672002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15668
15669 * config/arm/netbsd.h: Correct a comment.
15670
3deb2758
AH
156712002-02-05 Aldy Hernandez <aldyh@redhat.com>
15672
c13db5d1
JM
15673 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
15674 building void typed builtins.
3deb2758 15675
c13db5d1
JM
15676 * config/rs6000/altivec.h (vec_ld*): Fix typos.
15677 (vec_step): Implement for C++.
3deb2758 15678
c13db5d1 15679Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2c79137a
RK
15680
15681 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
15682
ebbb0a63
RH
156832002-02-04 Richard Henderson <rth@redhat.com>
15684
15685 * combine.c (nonzero_bits): Re-introduce special case for
15686 sp/fp/ap wrt REGNO_POINTER_ALIGN.
15687
ae4b4a02
AH
156882002-02-05 Aldy Hernandez <aldyh@redhat.com>
15689
c13db5d1
JM
15690 * doc/extend.texi: Warn about unsupported usage of altivec
15691 builtins.
ae4b4a02 15692
c13db5d1
JM
15693 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
15694 (altivec_predicate_*): New.
ae4b4a02 15695
c13db5d1
JM
15696 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
15697 Add C++ version of vec_*() functions.
ae4b4a02 15698
c13db5d1
JM
15699 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
15700 (bdesc_2arg): Remove altivec predicates.
15701 (altivec_expand_builtin): Handle predicates.
15702 (altivec_init_builtins): Handle predicates.
15703 (altivec_expand_predicate_builtin): New.
ae4b4a02 15704
f6bcf44c
JDA
157052002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15706
15707 * pa.c (DO_FRAME_NOTES): Move forward.
15708 (store_reg): Revise handling of frame notes.
15709 (load_reg): Likewise.
15710 (set_reg_plus_d): Likewise.
15711 (hppa_expand_prologue): Likewise.
15712 (hppa_expand_epilogue): Likewise.
b137f9fc 15713
703b0080
JDA
157142002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15715
15716 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
15717
6f9fdf4d
JJ
157182002-02-04 Jakub Jelinek <jakub@redhat.com>
15719
15720 PR c/4475, c++/3780:
15721 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
15722 * c-common.h (SWITCH_TYPE): Define.
15723 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
15724 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
15725 Rename spareness variable to sparseness.
15726 (expand_end_case_type): Renamed from expand_end_case, use orig_type
15727 if non-NULL instead of TREE_TYPE (orig_index).
15728 * tree.h (expand_end_case_type): Renamed from expand_end_case.
15729 (expand_end_case): Define using expand_end_case_type.
15730 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
15731 to expand_end_case_type.
15732 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
15733
79109502
JDA
157342002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15735
15736 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
15737 (BIGGEST_ALIGNMENT): Change to 128.
15738
e62a5987
JDA
157392002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15740
15741 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
15742
219f24a4
JDA
157432002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15744
15745 * pa.md (call_internal_reg_64bit): Remove unused variable.
15746
3cb66fd7
NC
157472002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
15748
15749 * config/arm/arm.h (machine_function): Add uses_anonymous_args
15750 field.
831c4e87 15751 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3cb66fd7 15752 * config/arm/arm.c (current_function_anonymous_args): Delete,
831c4e87
KC
15753 replace uses with cfun->machine->uses_anonymous_args.
15754 (arm_reorg): Do not reset uses_anonymous_args.
3cb66fd7
NC
15755
15756 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
15757 any geenral register.
b137f9fc 15758
5d5603e2 157592001-02-04 Bernd Schmidt <bernds@redhat.com>s
24c545ff
BS
15760
15761 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
15762 the entry block.
15763
563c12b0
RH
157642002-02-04 Richard Henderson <rth@redhat.com>
15765
15766 * combine.c (force_to_mode): Remove STACK_BIAS code.
15767 (nonzero_bits): Likewise. Replace sp/fp special case with
15768 REGNO_POINTER_ALIGN.
15769
15770 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
15771 (HARD_FRAME_POINTER_REGNUM): New.
15772 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
15773 (FIXED_REGS, CALL_USED_REGS): Update.
15774 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
15775 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
15776 (HARD_REGNO_NREGS): Update for SFP.
15777 (STACK_POINTER_OFFSET): Include bias here ...
15778 (FIRST_PARM_OFFSET): ... not here.
15779 (STACK_BIAS): Remove.
15780 (INIT_EXPANDERS): New.
15781 (STARTING_FRAME_OFFSET): Do not include bias.
15782 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
15783 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
15784 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
15785 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
15786 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
15787 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
15788 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
15789 (MUST_SAVE_REGISTER): Likewise.
15790 (sparc_flat_function_prologue): Likewise.
15791 (sparc_flat_function_epilogue): Likewise.
15792 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
15793 (sparc_init_modes): SFP is GENERAL_REGS.
15794 (sparc_builtin_saveregs): SFP does not have bias applied.
15795
14691f8d
RH
157962002-02-04 Richard Henderson <rth@redhat.com>
15797
15798 * config/alpha/alpha.c (current_function_is_thunk): Don't check
15799 current_function_is_thunk.
15800 (alpha_sa_mask): Distinguish between current_function_is_thunk
15801 called from ASM_OUTPUT_MI_THUNK and not.
15802 (alpha_does_function_need_gp): Thunks always need gp.
15803 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15804 (alpha_output_mi_thunk_osf): New.
15805 * config/alpha/alpha-protos.h: Update.
15806 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
15807
af702de8
RS
158082002-02-04 Richard Sandiford <rsandifo@redhat.com>
15809
15810 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
15811 function types, not when they're taken away.
15812
5b1cacd8
JL
15813Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
15814
15815 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
15816 CODE_LABEL and jump table when replacing a table jump with a
15817 simple jump.
15818
f3e9edff
UW
158192002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15820
15821 * config/s390/s390-protos.h (legitimize_la_operand,
15822 s390_secondary_input_reload_class, s390_plus_operand,
15823 s390_expand_plus_operand): Add prototypes.
15824
15825 config/s390/s390.c (s390_secondary_input_reload_class,
15826 s390_plus_operand, s390_expand_plus_operand): New functions.
15827
15828 (struct s390_address): New member 'pointer'.
15829 (s390_decompose_address): Compute it.
15830 (legitimate_la_operand_p): Use it.
15831 (legitimize_la_operand): New function.
15832 (movti, movdi, movdf splitters): Call it.
15833
15834 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
15835 (PREDICATE_CODES): Add s390_plus_operand.
15836
15837 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
15838 (la_ccclobber): Allow GENERAL_REGS as output operand.
15839
15840 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
15841 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
15842 (*la_64, *la_31, reload_indi, reload_insi): ... these.
15843
3c9a08ec
UW
158442002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15845
15846 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
15847 register names for regular asm () construct.
15848
ac300a45
JJ
158492002-02-04 Jakub Jelinek <jakub@redhat.com>
15850
15851 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
15852 registers.
15853
fa852403
JJ
158542002-02-04 Jakub Jelinek <jakub@redhat.com>
15855
15856 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
15857 pat for recog.
15858
fecaac37
HP
158592002-02-04 Hartmut Penner <hpenner@de.ibm.com>
15860
831c4e87
KC
15861 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
15862 constant pool to be identical by string address and index.
fecaac37 15863
10c45943
AG
158642002-02-04 Anthony Green <green@redhat.com>
15865
15866 * output.h (SECTION_OVERRIDE): Define.
15867 * varasm.c (named_section): Obey SECTION_OVERRIDE.
15868
69474c3c
JT
158692002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
15870
15871 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
15872 by existing arm*-*-netbsd* (a.out) target.
15873 (ns32k-*-netbsdelf*): Likewise.
15874 (sparc-*-netbsdelf*): Likewise.
15875 (vax-*-netbsdelf*): Likewise.
15876
939a46f6 158772002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3b56934f
CF
15878
15879 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
15880 headers and libobjc headers.
15881
158822002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
15883
15884 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
15885 (_mingw.h): Remove duplicate include.
15886
2fd95d71
JT
158872002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
15888
15889 * config.gcc: Set cpu_type to m68k for 68010, as well.
15890 (m68010-*-netbsdelf*): New...
15891 (m68k*-*-netbsdelf*): ...targets.
15892 * config/m68k/netbsd-elf.h: New file.
15893
0ea6f6a0
KH
158942002-02-02 Kazu Hirata <kazu@hxi.com>
15895
15896 * config/h8300/h8300.c (hand_list): Move inside function_arg.
15897
cbf1b2da
KH
158982002-02-02 Kazu Hirata <kazu@hxi.com>
15899
15900 * config/h8300/h8300.c (h8_push_ops): Move inside
15901 h8300_init_once.
15902 (h8_pop_ops): Likewise.
15903 (h8_move_ops): Likewise.
15904
0869f126
KH
159052002-02-02 Kazu Hirata <kazu@hxi.com>
15906
15907 * config/h8300/h8300.c (os_task): Make it static.
15908 (monitor): Likewise.
15909 (pragma_saveall): Likewise.
15910
90e65b70
AO
159112002-02-02 Alexandre Oliva <aoliva@redhat.com>
15912
15913 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
15914 constant is a valid sign-extension for Pmode.
15915
9cbcd983
KH
159162002-02-02 Kazu Hirata <kazu@hxi.com>
15917
15918 * config/h8300/h8300.c: Fix formatting.
15919
7a27efc4
KH
159202002-02-02 Kazu Hirata <kazu@hxi.com>
15921
15922 * config/h8300/h8300.md: Fix formatting.
15923
54175a44
KH
159242002-02-02 Kazu Hirata <kazu@hxi.com>
15925
15926 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
15927 predicates of operands[1]. Split the patterns for each
15928 processor variant.
15929
eceb1755
KH
159302002-02-02 Kazu Hirata <kazu@hxi.com>
15931
15932 * config/h8300/h8300.md (xor patterns): Tighten the predicates
15933 of operands[1] to register_operand.
15934
0fef3fd0
NB
159352002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
15936
15937 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
15938 * cpphash.c (_cpp_init_hashtable): Similarly.
15939 * cppinit.c (cpp_create_reader): Default the signed_char flag.
15940 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
15941 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
15942 (cpp_handle_option): Handle the new options.
15943 * cpplex.c (cpp_interpret_charconst): Use new flag.
15944 * cpplib.h (struct cpp_options): New member signed_char.
15945 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
15946 (cpp_options): Handle -fsigned-char and -funsigned-char.
15947 (static_specs): Remove signed_char_spec.
15948 (do_spec1): Don't handle %c.
15949 * system.h: Poison SIGNED_CHAR_SPEC.
15950 * tradcif.y (yylex): Use flag_signed_char.
15951 * tradcpp.h (flag_signed_char): New.
15952 * tradcpp.c (flag_signed_char): New.
15953 (main): Handle new command-line options.
15954 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
15955config:
15956 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
15957 * avr/avr.h: Remove old comments.
15958 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
15959 (CC1_SPEC): Pass -fsigned-char if -mic*.
15960 (SIGNED_CHAR_SPEC): Remove.
15961doc:
15962 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
15963
0617ed52
EC
159642002-02-01 Eric Christopher <echristo@redhat.com>
15965
15966 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
15967 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
15968 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
15969 (ASM_OUTPUT_REG_POP): Ditto.
15970
dfd48d76
NB
159712002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
15972
15973 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
15974 patch.
15975
4a23409e
JJ
159762002-02-02 Jakub Jelinek <jakub@redhat.com>
15977
15978 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
15979
d3c52658
JJ
159802002-02-02 Jakub Jelinek <jakub@redhat.com>
15981
15982 PR c/5304:
15983 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
15984 unconditionally.
15985
02c5a3bd
JJ
159862002-02-01 Janis Johnson <janis187@us.ibm.com>
15987
15988 * cfganal.c: Include tm_p.h.
15989 (keep_with_call_p): Fix the test that determines if a register holds
15990 the return value of a call.
15991
3968de80
DD
159922002-02-01 DJ Delorie <dj@redhat.com>
15993
15994 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
15995 we are given conflicting registers, switch to the other one we
15996 had allocated for us.
15997 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
15998 as TImode so we know when the "other" register is available.
15999
1338ea6c
DB
160002002-02-01 David O'Brien <obrien@FreeBSD.org>
16001
16002 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
16003 sparc/sparc_bi.h.
16004
f015be23
JJ
160052002-02-01 Janis Johnson <janis187@us.ibm.com>
16006
16007 * cfganal.c (keep_with_call_p): New function.
16008 (flow_call_edges_add): Prevent splitting a block between a call and
16009 a single-set instruction that should be kept in the same block.
16010
63708ffc
CR
160112002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
16012
16013 * doc/install.texi (avr): Update outdated URL.
16014
5ee4950e
AH
160152002-01-30 Andrew Haley <aph@cambridge.redhat.com>
16016
831c4e87
KC
16017 * config/stormy16/stormy16.md (pushqi): New.
16018 (popqi): New.
16019 (pushhi): New.
16020 (pophi): New.
16021 (movhi): Remove stack operands.
16022 (movqi): Likewise.
16023 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
16024 nonimmediate_nonstack_operand.
16025 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
16026 New.
16027 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
16028 New.
5ee4950e 16029
b88c0704
JM
160302002-01-31 Jason Merrill <jason@redhat.com>
16031
16032 * Makefile.in (c-parse.c): Handle .output file.
16033 * objc/Make-lang.in (objc-parse.c): Likewise.
16034
ac282977
AO
160352002-02-01 Alexandre Oliva <aoliva@redhat.com>
16036
16037 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
16038 the -me[lb] option is given. Don't output the default flag
16039 twice.
16040
bebc7e8b
ZW
160412002-01-31 Zack Weinberg <zack@codesourcery.com>
16042
16043 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
16044 the primary source file; this has not been done yet.
16045 * c-decl.c (c_expand_body): Reset input_filename from
16046 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
16047
5809eb5f
KH
160482002-01-31 Kazu Hirata <kazu@hxi.com>
16049
16050 * rtlanal.c (subreg_regno_offset): Do not use
16051 SUBREG_REGNO_OFFSET.
16052 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
16053 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
16054
8512bbd7
JM
160552002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16056
16057 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
16058 version rather than GNATS version in --version output.
16059
74cb3cc8
RS
160602002-01-31 Richard Sandiford <rsandifo@redhat.com>
16061
16062 * ifcvt.c (noce_process_if_block): Make a copy of the destination
16063 when copying back from a temporary.
16064
874b5b14
RH
160652002-01-30 Richard Henderson <rth@redhat.com>
16066
16067 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
16068 and new_dest are the same.
16069
e803a64b
RH
160702002-01-30 Richard Henderson <rth@redhat.com>
16071
89cf7be5 16072 PR opt/5076
e803a64b
RH
16073 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
16074 * rtl.c (note_insn_name): Update.
16075 * emit-rtl.c (remove_unnecessary_notes): Kill it.
16076 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
16077 to perform loop rotation.
16078 (expand_exit_loop_top_cond): New.
16079 * tree.h (expand_exit_loop_top_cond): Declare it.
16080 * c-semantics.c (genrtl_while_stmt): Use it.
16081 (genrtl_for_stmt): Likewise.
16082
0b51254d
AO
160832002-01-30 Alexandre Oliva <aoliva@redhat.com>
16084
16085 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
16086 arguments to 64-bit boundaries on 64-bit ABIs.
16087
71cef493
SE
160882002-01-30 Steve Ellcey <sje@cup.hp.com>
16089
16090 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
16091
6169e5fd
JM
160922002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16093
16094 * c-decl.c (grokdeclarator): Handle type being a typedef for an
16095 invalid type.
16096
86f808dc
DB
160972002-01-30 David O'Brien <obrien@FreeBSD.org>
16098
16099 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
16100 * config/sparc/sparc_bi.h: Remove file.
16101 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
16102
5748ebeb
RH
161032002-01-30 Richard Henderson <rth@redhat.com>
16104
16105 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
16106
20d32cc2
ZW
161072002-01-30 Zack Weinberg <zack@codesourcery.com>
16108
16109 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
16110
b88c0704 161112002-01-30 Jason Merrill <jason@redhat.com>
6bb28965
JM
16112
16113 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
16114 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
16115 (reg_save): Use DW_CFA_offset_extended_sf instead.
16116
16117 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
16118
37060e78
JJ
161192002-01-29 Jakub Jelinek <jakub@redhat.com>
16120
16121 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
16122 in cselib_lookup.
16123
d18dba68
AH
161242002-01-29 Aldy Hernandez <aldyh@redhat.com>
16125
bebc7e8b
ZW
16126 * rs6000.md ("*call_value_local32"): Remove constraints.
16127 ("*call_value_local64"): Same.
16128 ("*call_value_indirect_nonlocal_aix32"): Same.
16129 ("*call_value_nonlocal_aix32"): Same.
16130 ("*call_value_indirect_nonlocal_aix64"): Same.
16131 ("*call_value_nonlocal_aix64"): Same.
16132 ("*call_value_nonlocal_sysv"): Same.
d18dba68 16133
80a8aac6
RH
161342002-01-29 Richard Henderson <rth@redhat.com>
16135
16136 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
16137
12beba6f
RH
161382002-01-29 Richard Henderson <rth@redhat.com>
16139
16140 * expr.c (force_operand): Ignore flag_pic for detecting pic
16141 address loads.
16142 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
16143 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
16144 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
16145 instead of open-coded loop.
16146 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
16147 be fixed when in use.
16148
2583081e
RH
161492002-01-29 Richard Henderson <rth@redhat.com>
16150
16151 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
16152 * sched-rgn.c (propagate_deps): Update them.
16153 * sched-deps.c (sched_analyze_insn): Update them. Flush the
16154 clobbers list when either gets too long.
16155
3b8d200e
JJ
161562002-01-29 Jakub Jelinek <jakub@redhat.com>
16157
16158 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
16159 and INDEX_REGS the same as GENERAL_REGS.
16160 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
16161
2d3115eb
NB
161622002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16163
bebc7e8b 16164 * tree.c (build_nonstandard_integer_type): Correct prototype.
2d3115eb 16165
ecbe845e
UW
161662002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
16167
bebc7e8b 16168 * config/s390/s390.md (movstrsico, movstrdix_64,
ecbe845e 16169 movstrsix_31): Remove, replace by ...
bebc7e8b 16170 (movstrdi_short, movstrsi_short, movstrdi_long,
ecbe845e
UW
16171 movstrsi_long): ... these. New.
16172 (movstrdi, movstrsi): Adapt.
16173
16174 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
bebc7e8b 16175 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
ecbe845e
UW
16176 Remove unnecessary CC clobber.
16177 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
16178 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
16179
16180 (divmoddi4): Don't partially initialize TImode register.
16181
0b32fca5
GK
161822002-01-29 Geoffrey Keating <geoffk@redhat.com>
16183
16184 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
16185
08ef5437
RH
161862002-01-29 Richard Henderson <rth@redhat.com>
16187
16188 * flow.c (print_rtl_and_abort): Remove.
16189 (print_rtl_and_abort_fcn): Remove.
16190 (verify_local_live_at_start): Use dump_bb instead.
16191 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
16192 (verify_wide_reg_1): Return 2 on mode test failure.
16193
8469e54e
NB
161942002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16195
16196 PR c/3325, c/3326, c/2511, c/3347
16197 * c-decl.c (enum_decl_context): Remove BITFIELD.
16198 (grokdeclarator): Take bitfield width as an input.
16199 Ensure bitfields are given the correct type. Perform
16200 bitfield width validation with build_bitfield_integer_type
16201 rather than waiting for finish_struct.
16202 (grok_typename, grok_typename_in_parm_context, start_decl,
16203 push_parmdecl, grokfield, start_function): Update calls to
16204 grokdeclarator.
16205 (build_bitfield_integer_type): New function.
16206 (finish_struct): Move bitfield validation to grokdeclarator
bebc7e8b 16207 and build_bitfield_integer_type.
8469e54e
NB
16208 * tree.c (build_nonstandard_integer_type): New function.
16209 * tree.h (build_nonstandard_integer_type): New prototype.
16210objc:
16211 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
16212
ffdeea47
JJ
162132002-01-29 Jakub Jelinek <jakub@redhat.com>
16214
16215 PR other/1502:
16216 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
16217 don't ignore unrecognized -W* options.
16218 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
16219 * cpplib.h (cpp_handle_option): Adjust prototype.
16220 * c-decl.c (c_decode_options): Pass 0 as last argument to
16221 cpp_handle_option.
16222
16223 PR c/2896:
16224 * gcc.c (cpp_unique_options): Split from cpp_options.
16225 (cpp_options): Source cpp_unique_options.
16226 (default_compilers): Use cpp_unique_options instead of cpp_options
16227 when used together with cc1_options.
16228 (static_specs): Add cpp_unique_options.
16229 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
16230 when used together with cc1_options.
16231
1a275226
KH
162322002-01-29 Kazu Hirata <kazu@hxi.com>
16233
16234 * config/h8300/h8300-protos.h: Update the prototype of
16235 output_a_shift.
16236 * config/h8300/h8300.c (output_a_shift): Remove an unused
16237 argument 'insn'. Remove redundant code.
16238 * config/h8300/h8300.md: Adust to the new prototype of
16239 output_a_shift.
16240
a11d9dfc
KH
162412002-01-29 Kazu Hirata <kazu@hxi.com>
16242
16243 * config/h8300/h8300-protos.h: Update the prototypes of
16244 emit_a_rotate and expand_a_rotate.
16245 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
16246 first argument to 'enum rtx_code'.
16247 (expand_a_rotate): Likewise.
16248
871f73e3
KH
162492002-01-28 Kazu Hirata <kazu@hxi.com>
16250
16251 * config/h8300/h8300-protos.h: Update the prototype of
16252 output_simode_bld.
16253 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
16254 'log2'.
16255 * config/h8300/h8300.md: Adjust to the new prototype.
16256
5fc4b751
KH
162572002-01-28 Kazu Hirata <kazu@hxi.com>
16258
16259 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
16260 redundant code.
16261
2d67bd7b
JDA
162622002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
16263
16264 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
16265 is a fixed register before returning pic_offset_table_rtx.
16266 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
16267 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
16268
5a852b3e
JM
162692002-01-28 Jason Merrill <jason@redhat.com>
16270
6bb28965 16271 * dwarf2.h: Sync with src version.
5a852b3e 16272
3bca17dd
PK
162732002-01-28 Paul Koning <pkoning@equallogic.com>
16274
16275 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
16276 BT_FN_VOID_PTR_VAR.
16277 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
16278 * doc/extend.texi (__builtin_prefetch): Update documentation:
16279 first argument is now const void ptr.
16280
7dc3f8c0
KH
162812002-01-28 Kazu Hirata <kazu@hxi.com>
16282
16283 * config/h8300/h8300-protos.h: Remove an unused prototype.
16284
e83cb5f0
RZ
162852002-01-28 Roman Zippel <zippel@linux-m68k.org>
16286
16287 * toplev.c (lang_independent_init): Round up identifier size.
16288
5721cd84
RE
162892002-01-28 Richard Earnshaw <rearnsha@arm.com>
16290
16291 * config.gcc: Revert previous change.
16292
d534119e
AP
162932002-01-28 Andris Pavenis <pavenis@latnet.lv>
16294
16295 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
16296
5a721dab
RE
162972002-01-28 Richard Earnshaw <rearnsha@arm.com>
16298
16299 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
16300 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
16301 other non-elf netbsd config frags.
16302 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
16303 collect2 will does that.
16304 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
16305 shared-lib frobbing will work.
16306
da1775d6
KH
163072002-01-28 Kazu Hirata <kazu@hxi.com>
16308
16309 * config/h8300/h8300.h: Fix formatting.
16310 * config/h8300/h8300.md: Likewise.
16311
8f2e963b
LR
163122002-01-28 Loren J. Rittle <ljrittle@acm.org>
16313
16314 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
16315 the old, removed AAA_standards fix.
16316 * fixinc/fixincl.x: Rebuilt.
16317
fdae5767
HPN
163182002-01-28 Hans-Peter Nilsson <hp@axis.com>
16319
16320 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
16321 atexit call in crtbegin, hooked in after call to frame_dummy;
16322 register EH before registering __fini__start.
16323
2a2ecb63
AH
163242002-01-28 Aldy Hernandez <aldyh@redhat.com>
16325
16326 * config/rs6000/altivec.h: Remove spurious semicolons.
16327
8ed43adf
KH
163282002-01-27 Kazu Hirata <kazu@hxi.com>
16329
16330 * config/h8300/h8300.md: Replace dead bit extraction patterns
16331 with ones that work.
16332
917afb0c
RK
16333Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16334
16335 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
16336 if not STRICT_ALIGNMENT.
16337 * rtl.h (MEM_ALIGN): Likewise.
16338
f70a54cb
CR
163392002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
16340
16341 * doc/invoke.texi (-fdump-translation-unit): Revert this
16342 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
16343
d8fd4914
KH
163442002-01-27 Kazu Hirata <kazu@hxi.com>
16345
16346 * config/h8300/h8300.md (define_constants): New.
16347 (anonymous patterns) Use defined constants appropriately.
16348
15e0e275
KH
163492002-01-27 Kazu Hirata <kazu@hxi.com>
16350
16351 * config/h8300/h8300.c (function_arg): Remove redundant code.
16352
37a0f8a5
RH
163532002-01-26 Richard Henderson <rth@redhat.com>
16354
16355 * sched-deps.c (reg_pending_uses_head): New.
16356 (reg_pending_barrier): Rename from reg_pending_sets_all.
16357 (find_insn_list): Don't mark inline.
16358 (find_insn_mem_list): Remove.
16359 (add_dependence_list, add_dependence_list_and_free): New.
16360 (flush_pending_lists): Replace only_write param with separate
16361 for_read and for_write parameters. Update all callers. Use
16362 add_dependence_list_and_free.
16363 (sched_analyze_1): Do not add reg dependencies here; just set
16364 the pending bits. Use add_dependence_list.
16365 (sched_analyze_2): Likewise.
16366 (sched_analyze_insn): Replace schedule_barrier_found with
16367 reg_pending_barrier. Add all dependencies for pending reg
16368 uses, sets, and clobbers.
16369 (sched_analyze): Don't add reg dependencies for calls, just
16370 set pending bits. Use regs_invalidated_by_call. Treat
16371 sched_before_next_call as a normal list, not a fake insn.
16372 (init_deps): No funny init for sched_before_next_call.
16373 (free_deps): Free pending mems lists. Don't zero reg_last.
16374 (init_deps_global): Init reg_pending_uses.
16375 (finish_deps_global): Free it.
16376 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
16377 (find_insn_mem_list): Remove.
16378 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
16379 (propagate_deps): Use them. Zero temp mem lists.
16380
cea3bd3e
RH
163812002-01-26 Richard Henderson <rth@redhat.com>
16382
16383 * Makefile.in (CRTSTUFF_CFLAGS): New.
16384 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
16385 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
16386 crtstuff.c instead of alpha assembly version.
16387 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
16388 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
16389 not FORCE_{INIT,FINI}_SECTION_ALIGN.
16390 (__do_global_dtors_aux): Mark used.
16391 (frame_dummy, __do_global_ctors_aux): Mark used.
16392 (fini_dummy, init_dummy): Remove.
16393
16394 * config/alpha/crtbegin.asm: Remove file.
16395 * config/alpha/crtend.asm: Remove file.
16396 * config/alpha/t-crtbe: Remove file.
16397 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
16398 (LINK_EH_SPEC): New.
16399
16400 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
16401 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
16402 calling constructors.
16403 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
16404
16405 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
16406 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
16407 CRT_END_INIT_DUMMY hack.
16408 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
16409 FORCE_{INIT,FINI}_SECTION_ALIGN.
16410
16411 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
16412 FORCE_{INIT,FINI}_SECTION_ALIGN.
16413
16414 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
16415 invocation sequence.
16416 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
16417
16418 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
16419 (FORCE_CODE_SECTION_ALIGN): New.
16420
60ffa0e5
RH
164212002-01-26 Richard Henderson <rth@redhat.com>
16422
16423 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
16424
61334ebe
RH
164252002-01-26 Richard Henderson <rth@redhat.com>
16426
16427 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
16428 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
16429
1d788fb6
KH
164302002-01-26 Kazu Hirata <kazu@hxi.com>
16431
16432 * config/h8300/h8300.md: Remove bit extraction patterns that
16433 cannot be triggered.
16434 Restrict each bit extraction pattern to a variant on which the
16435 pattern is tested.
16436
87611f88
JM
164372002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
16438
16439 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
16440
cd74ec59
KH
164412002-01-26 Kazu Hirata <kazu@hxi.com>
16442
16443 * config/h8300/h8300.md: Remove bit test patterns that cannot
16444 be triggered.
16445 Restrict each bit test pattern to a variant on which the
16446 pattern is tested.
16447
93051e0f
KG
164482002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16449
16450 * builtins.c (expand_builtin_strncat): Remove redundant check for
16451 INTEGER_CST.
16452
216c995f
DB
164532002-01-25 David O'Brien <obrien@FreeBSD.org>
16454
16455 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
16456 default setting.
16457 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
16458 existing setting.
16459
33c7f925
GK
164602002-01-25 Geoffrey Keating <geoffk@redhat.com>
16461
16462 * dbxout.c (dbxout_init): Use assemble_name rather than just
16463 stripping off the first character.
16464 (dbxout_source_file): Likewise.
16465
6cd444b4
DD
164662002-01-25 DJ Delorie <dj@redhat.com>
16467
16468 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
16469 using rtx_equal_p, not by comparing pointers.
16470
751551d5
SE
164712002-01-25 Steve Ellcey <sje@cup.hp.com>
16472
16473 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
16474 for PIC_OFFSET_TABLE_REGNUM.
16475 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
16476
e564e618
DB
164772002-01-25 David O'Brien <obrien@FreeBSD.org>
16478
16479 * config.gcc (x86_64-*-freebsd*): New target.
16480 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
16481 value.
16482 (i[34567]86-*-freebsd*): Don't include svr4.h.
16483 * config/i386/freebsd64.h: New file.
16484
ff3aaf17
DR
164852002-01-25 Douglas B Rupp <rupp@gnat.com>
16486
4857d29d
DR
16487 * config/alpha/x-vms (version): Make static.
16488
16489 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
16490 in previous checkin.
16491
ff3aaf17
DR
16492 * Makefile.in (install-headers-cp): New target.
16493 * config.gcc (alpha-dec-*vms*): Install headers with
16494 install-headers-cp
16495
48d79c43
JH
16496Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
16497
16498 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
16499 avoid it's copies.
16500
995b5904
RK
16501Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16502
16503 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
16504 of compare_tree_int.
16505 (expand_builtin_strncat): Likewise.
16506 * c-decl.c (finish_struct): Use tree_low_cst.
16507 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
16508 * tree.c (compare_tree_int): Likewise.
16509
75eefe3f
UW
165102002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
16511
16512 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
16513 adjustments even if they are implemented by more than two insns.
16514
5a133afd
JH
16515Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
16516
995b5904 16517 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5a133afd
JH
16518 * df.h (struct ref): Kill B.
16519 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
16520
16521 * basic-block.h (PROP_EQUAL_NOTES): New flag.
16522 * flow.c (propagate_one_insn): Use it.
16523 (mark_used_regs): Handle NIL.
16524
ead39bdf 165252002-01-25 Geoffrey Keating <geoffk@redhat.com>
3d8dd3c0
GK
16526
16527 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
16528 to help folding.
16529
01a2ccd0
DE
165302002-01-25 David Edelsohn <edelsohn@gnu.org>
16531
16532 * rs6000.md (prefetch): Make address V4SI mode so that the address
16533 is restricted to legitimate form for instruction.
16534
fd29f6ea
BW
165352002-01-25 Bob Wilson <bob.wilson@acm.org>
16536
16537 * doc/install.texi (xtensa-*-elf): New target.
16538 (xtensa-*-linux*): New target.
16539 * doc/contrib.texi: Add myself.
16540
55492b32
NC
165412002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
16542
16543 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
16544 purpose register to hold an SImode (or smaller) value.
16545
72c7c913
JJ
165462002-01-25 Jakub Jelinek <jakub@redhat.com>
16547
16548 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
16549 registry only.
16550 * crtstuff.c: Likewise.
16551
c4df4ceb
KH
165522002-01-25 Kazu Hirata <kazu@hxi.com>
16553
16554 * config/h8300/h8300.md (negation patterns): Tighten
16555 predicates to register_operand.
16556
70e531f5
AH
165572002-01-24 Aldy Hernandez <aldyh@redhat.com>
16558
3bca17dd
PK
16559 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
16560 mode, not Pmode.
70e531f5 16561
3bca17dd 16562 * builtins.c (expand_builtin_prefetch): Same.
70e531f5 16563
a4f76ef9
AO
165642002-01-24 Alexandre Oliva <aoliva@redhat.com>
16565
16566 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
16567 modes.
16568
9bf25b09
KH
165692002-01-24 Kazu Hirata <kazu@hxi.com>
16570
16571 * config/h8300/h8300.c (print_operand): Remove support for
16572 operand character 'A'.
16573 * config/h8300/h8300.md (three anonymous patterns): Replace
16574 operand character 'A' with either 'T' or 'S'.
16575
974af6a5
KH
165762002-01-24 Kazu Hirata <kazu@hxi.com>
16577
16578 * config/h8300/h8300.c (print_operand): Remove support for
16579 operand character 'U'.
16580
7a5bb7b8
AP
165812002-01-24 Andris Pavenis <pavenis@latnet.lv>
16582
3bca17dd 16583 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7a5bb7b8 16584
92a4639e
NC
165852002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
16586
16587 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
16588 values to be assigned to the stack pointer.
16589
467cb2da
HP
165902002-01-14 Hartmut Penner <hpenner@de.ibm.com>
16591
bebc7e8b 16592 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
467cb2da
HP
16593 to const_double needs to be done right for big-endian systems.
16594
3b6cb920
JM
165952002-01-24 Jason Merrill <jason@redhat.com>
16596
b08dd119 16597 PR c++/2432
3b6cb920
JM
16598 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
16599 to can_throw_internal.
16600
f3077311
RH
166012002-01-23 Richard Henderson <rth@redhat.com>
16602
16603 * fold-const.c (fold): Change UINT_MAX test to check vs precision
16604 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
16605
e1d71275
AO
166062002-01-24 Alexandre Oliva <aoliva@redhat.com>
16607
16608 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
16609 (symGOT2reg): Use them, then set as GOT value as unchanging.
16610 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
16611 as a temporary, if possible.
16612 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
16613 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
16614
dc271dbe
KH
166152002-01-23 Kazu Hirata <kazu@hxi.com>
16616
16617 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
16618 accept to accept 0x80 as operands[2].
16619
1a9017f9
AO
166202002-01-24 Alexandre Oliva <aoliva@redhat.com>
16621
16622 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
16623
6932f033
RH
166242002-01-23 Richard Henderson <rth@redhat.com>
16625
16626 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
16627
709619d9
AH
166282002-01-23 Aldy Hernandez <aldyh@redhat.com>
16629
3bca17dd
PK
16630 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
16631 (parmlist_or_identifiers_1): Verify that only a parmlist follows
16632 an attribute.
709619d9 16633
3d709fd3
RH
166342002-01-23 Richard Henderson <rth@redhat.com>
16635
16636 * expr.c (move_by_pieces_1): Extend size before negation.
16637
88a446c0
RH
16638 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
16639 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
16640 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
16641 * config/m68k/t-m68kelf: Likewise.
16642
03984308
BW
166432002-01-23 Bob Wilson <bob.wilson@acm.org>
16644
16645 * config/xtensa/elf.h: New file.
16646 * config/xtensa/lib1funcs.asm: New file.
16647 * config/xtensa/lib2funcs.S: New file.
16648 * config/xtensa/linux.h: New file.
16649 * config/xtensa/t-xtensa: New file.
16650 * config/xtensa/xtensa-config.h: New file.
16651 * config/xtensa/xtensa-protos.h: New file.
16652 * config/xtensa/xtensa.c: New file.
16653 * config/xtensa/xtensa.h: New file.
16654 * config/xtensa/xtensa.md: New file.
16655 * config.gcc (xtensa-*-elf*): New target.
16656 (xtensa-*-linux*): New target.
16657 * cse.c (canon_hash): Compare rtx pointers instead of register
16658 numbers. This is required for the Xtensa port.
16659 * integrate.c (copy_insn_list): Handle case where the static
16660 chain is in memory and the memory address has to be copied to
16661 a register.
16662 * doc/invoke.texi (Option Summary): Add Xtensa options.
16663 (Xtensa Options): New node.
16664 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
16665
c3d5c3fa
ZW
166662002-01-23 Zack Weinberg <zack@codesourcery.com>
16667
a63bea75
ZW
16668 * diagnostic.c (internal_error): Do ICE suppression only
16669 when ENABLE_CHECKING is not defined.
16670
c3d5c3fa
ZW
16671 * c-typeck.c (require_complete_type): Return error_mark_node
16672 if type is error_mark_node.
16673
1398974c
JJ
166742002-01-23 Janis Johnson <janis187@us.ibm.com>
16675
16676 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
16677 -Os and issue a warning.
16678
807633e5
ZW
166792002-01-23 Zack Weinberg <zack@codesourcery.com>
16680
16681 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
16682 current (lack of) need for host configuration by hand.
16683
16684 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
16685 references. Documentation of some target macros moved from
16686 hostconfig.texi to tm.texi.
16687
cf8002d0
WC
166882002-01-23 Will Cohen <wcohen@redhat.com>
16689
16690 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
16691 defined.
16692
d1e76310
KH
166932002-01-23 Kazu Hirata <kazu@hxi.com>
16694
16695 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
16696 operand[3].
16697
b2115575
JM
166982002-01-23 Jason Merrill <jason@redhat.com>
16699
f893c16e
JM
16700 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
16701
b2115575
JM
16702 * function.c (assign_parms): Don't put args of inline functions
16703 into registers when not optimizing.
16704
6bacc7b0
NC
167052002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
16706
16707 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
16708 (prologue_use): New pattern.
16709 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
16710 preference to gen_rtx_USE.
16711 (thumb_expand_prologue): Use gen_prologue_use in preference to
16712 gen_rtx_USE.
16713 (thumb_expand_epilogue): Use gen_prologue_use in preference to
16714 gen_rtx_USE.
16715
a415f7bc
HPN
167162002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
16717
16718 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
16719
5372b3fb
NB
167202002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
16721
16722 PR c/3504
16723 * doc/extend.texi: Correct documentation of __alignof__.
16724
bd571ffc
ZW
167252002-01-22 Zack Weinberg <zack@codesourcery.com>
16726
16727 * params.h: Rename arguments of DEFPARAM so that it will be
16728 recognized as a translation keyword.
16729
333c8841
AH
167302002-01-22 Aldy Hernandez <aldyh@redhat.com>
16731
bd571ffc
ZW
16732 * extend.texi: Document altivec functions.
16733 Fix N-bit adjectives in X86 builtin documentation.
333c8841 16734
38979c65
AO
167352002-01-22 Alexandre Oliva <aoliva@redhat.com>
16736
16737 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
16738 auto_inc_dec values.
16739
7458a9f0
RE
167402002-01-22 Richard Earnshaw <rearnsha@arm.com>
16741
16742 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
16743 after backslash.
16744 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
16745
129bd0c4
AO
167462002-01-22 Alexandre Oliva <aoliva@redhat.com>
16747
16748 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
16749
8b9b74a9
RH
167502002-01-22 Richard Henderson <rth@redhat.com>
16751
16752 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
16753 copy_insn not copy_rtx.
16754
d0c9db30
AM
167552002-01-23 Alan Modra <amodra@bigpond.net.au>
16756
16757 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
16758 "nonzero" as that might add "1" bits. Ensure "constop" is
16759 properly sign extened.
16760 (force_to_mode): Tweak for sign extended constop.
16761
1e7e480e
RH
167622002-01-22 Richard Henderson <rth@redhat.com>
16763
16764 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
16765 for_each_rtx instead of assuming we're already looking at the MEM.
16766 (split_small_symbolic_mem_operand): Likewise.
16767 * config/alpha/alpha.h (PREDICATE_CODES): Update.
16768 * config/alpha/alpha.md (small symbolic memory splitters): Update.
16769
167702002-01-22 Richard Henderson <rth@redhat.com>
2e271932
RH
16771
16772 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
16773 sequence number for the literal.
16774 (divmoddi_internal_er): Likewise.
16775
b7f2fb96
CR
167762002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
16777
16778 PR java/4972
16779 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
16780 in LIBICONV variable.
16781 * configure: Regenerated.
16782
f66a0046
KW
167832002-01-22 Krister Walfridsson <cato@df.lth.se>
16784
16785 * dependence.c (build_def_use): Remove array_idx.
16786
e3b0efd1
KW
16787 * dwarfout.c (last_filename): Remove.
16788 (output_compile_unit_die): Remove last_filename.
16789
d8086cbb
RS
167902002-01-22 Roger Sayle <roger@eyesopen.com>
16791 Richard Henderson <rth@redhat.com>
16792
16793 PR opt/3640
16794 * fold-const.c (fold): Optimize unsigned comparisons against
16795 UINT_MAX (and similar unsigned constants).
16796
e8d52ba0
JJ
167972002-01-22 Janis Johnson <janis187@us.ibm.com>
16798
d8086cbb 16799 * Makefile.in (loop.o): Depend on OPTABS_H.
1398974c 16800 * loop.c (emit_prefetch_instructions): Check the prefetch operand
d8086cbb 16801 against the predicate.
11303d15 16802
e8d52ba0
JJ
16803 PR target/5379
16804 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
16805 for the address operand.
16806
cc7b420e
RH
168072002-01-22 Richard Henderson <rth@redhat.com>
16808
16809 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
16810
816e265a
CR
168112002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
16812
16813 PR other/5450
cc7b420e
RH
16814 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
16815 preprocessor flags.
816e265a 16816
7c884404
JT
168172002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
16818
16819 * config.gcc (x86_64-*-netbsd*): New target.
16820 * config/i386/netbsd64.h: New file.
16821
2b672c08
AH
168222002-01-22 Aldy Hernandez <aldyh@redhat.com>
16823
d8086cbb 16824 * regrename.c (kill_value): Fix typo.
2b672c08
AH
16825
168262002-01-22 Aldy Hernandez <aldyh@redhat.com>
16827
d8086cbb 16828 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
2b672c08 16829
d8086cbb 16830 * config/rs6000/rs6000.h: Same.
2b672c08 16831
d8086cbb
RS
16832 * function.c (instantiate_virtual_regs): Remove
16833 STARTING_FRAME_PHASE.
16834 (assign_stack_local_1): Same.
16835 Calculate frame phase.
2b672c08 16836
4b02997f
NC
168372002-01-22 Nick Clifton <nickc@redhat.com>
16838
16839 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
16840 variable declaration to outer scope in order to simplify
16841 future extensions.
16842 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
16843 arm_hard_regno_mode_ok.
16844 * config/arm/arm-protos.h: Add a prototype for
16845 arm_hard_regno_mode_ok.
16846 * config/arm/arm.c (soft_df_operand): Remove now redundant
16847 check for DImode values using IP_REGNUM.
16848 (nonimmediate_soft_df_operand): Remove now redundant check for
16849 DImode values using IP_REGNUM.
16850 (arm_hard_regno_mode_ok): New function. New check: make sure
16851 that DImode values are not stored in IP_REGNUM.
c14a3a45
NC
16852
16853 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
16854 note with a USE.
16855 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
16856
8a827ab2
JM
168572002-01-22 Jason Merrill <jason@redhat.com>
16858
16859 * c-semantics.c (genrtl_compound_stmt): Only check nesting
16860 consistency if this COMPOUND_STMT is scoped.
16861
cf403648
KH
168622002-01-22 Kazu Hirata <kazu@hxi.com>
16863
16864 * predict.c: Fix formatting.
16865 * print-tree.c: Likewise.
16866 * protoize.c: Likewise.
16867 * real.h: Likewise.
16868 * rtl.h: Likewise.
16869 * sbitmap.h: Likewise.
16870 * scan.c: Likewise.
16871 * sched-deps.c: Likewise.
16872 * sched-vis.c: Likewise.
16873 * sdbout.c: Likewise.
16874 * sibcall.c: Likewise.
16875 * ssa.c: Likewise.
16876 * ssa-ccp.c: Likewise.
16877 * ssa-dce.c: Likewise.
16878 * stmt.c: Likewise.
16879 * stor-layout.c: Likewise.
16880 * system.h: Likewise.
16881
aea9695c
RK
16882Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16883
a8765ae7
RK
16884 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
16885 if fits in bounds of base type.
16886
aea9695c
RK
16887 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
16888 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
16889 (add_bound_info, default): If can't find a context, make a
16890 SAVE_EXPR.
16891 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
16892
58bf601b
HPN
168932002-01-22 Hans-Peter Nilsson <hp@axis.com>
16894
16895 * c-typeck.c (parser_build_binary_op): If result from
16896 build_binary_op is ERROR_MARK just return error_mark_node without
16897 further processing.
16898
f982f805
JT
168992002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
16900
16901 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
16902 Split a.out-specific bits into...
16903 * config/netbsd-aout.h: ...this.
16904 * config/netbsd-elf.h: New file.
16905 * config/alpha/netbsd-elf.h: Remove.
16906 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
16907 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
bd571ffc 16908 (STARTFILE_SPEC): Remove redundant definition.
f982f805
JT
16909 (ENDFILE_SPEC): Likewise.
16910 (LINK_SPEC): Likewise.
16911 (CPP_SPEC): Likewise.
16912 (ASM_SPEC): Likewise.
16913 (LIB_SPEC): Likewise.
16914 (SWITCH_TAKES_ARG): Likewise.
16915 (TARGET_MEM_FUNCTIONS): Likewise.
16916 (CPP_PREDEFINES): Redefine.
16917 (ASM_FINAL_SPEC): Remove redefinition.
16918 (ASM_COMMENT_START): Redefine.
16919 (FUNCTION_PROFILER): Define.
16920 (TARGET_VERSION): Redefine.
16921 Comment and formatting cleanup.
16922 * config/i386/netbsd.h: Include <netbsd-aout.h>.
16923 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
16924 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
16925 big- or little-endian.
16926 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
16927 * config.gcc (*-*-netbsd*): Add definitions common to all
16928 NetBSD configs.
16929 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
16930 gnu_ld definitions. Add netbsd-elf.h to and remove
16931 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
16932 tmake_file, and don't lose previous tmake_file contents.
16933 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
16934 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
16935 gnu_ld definitions. Add netbsd-elf.h to tm_file.
16936 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
16937 (mipsel-*-netbsd*): Rename this to...
16938 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
16939 mips/little.h to tm_file for mips*el-*.
16940 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
16941 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
16942 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
16943
2e396476
JDA
169442002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
16945
16946 * pa-protos.h (reg_before_reload_operand): New function prototype.
16947 * pa.c (reg_before_reload_operand): New function implementation.
16948 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
16949 contraints to "*m".
16950
3b5708e7
FS
169512002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16952
16953 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
16954
85e79f96
JDA
169552002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
16956
16957 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
16958 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
16959 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
16960 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
16961 (ENDFILE_SPEC): Undefine.
16962 (STARTFILE_SPEC): Redefine for PA.
16963
38abadee
FS
169642002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16965
16966 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
16967
94f1d97c
DJ
169682002-01-21 Daniel Jacobowitz <drow@mvista.com>
16969
16970 * config.gcc: Add entries to supported PowerPC --with-cpu
16971 types.
16972
0333394e
JJ
169732002-01-21 Jakub Jelinek <jakub@redhat.com>
16974
16975 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
16976 true for 64-bit mode only SSE registers in 32-bit mode.
16977
e9d1b155
KH
169782002-01-21 Kazu Hirata <kazu@hxi.com>
16979
16980 * unwind-dw2.c: Fix formatting.
16981 * unwind-dw2-fde.c: Likewise.
16982 * unwind-dw2-fde.h: Likewise.
16983 * unwind-pe.h: Likewise.
16984 * varasm.c: Likewise.
16985 * varray.h: Likewise.
16986
07338cf8
HPN
169872002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
16988
16989 Remove workaround for register stack overwrite bug in mmix.
16990 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
16991 support for TARGET_REG_STACK_FILL_BUG.
16992 * config/mmix/mmix.h: Remove member has_call_without_parameters.
16993 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
16994 Delete.
16995 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
16996 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
16997 -mno-reg-stack-fill-bug-workaround.
16998 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
16999 machine member has_call_without_parameters.
17000 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
17001 -mreg-stack-fill-bug-workaround and
17002 -mno-reg-stack-fill-bug-workaround.
17003 (MMIX Options): Ditto.
17004
7192cbf1
KH
170052002-01-21 Kazu Hirata <kazu@hxi.com>
17006
17007 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
17008 as appropriate.
17009 Remove redundant code.
17010
d1552d7b
JM
170112002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
17012
17013 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
17014 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17015 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17016 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
17017 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
17018 out target macro definitions and non-target-specific comments
17019 mostly taken from old versions of the manual.
17020
ed168e45
KH
170212002-01-20 Kazu Hirata <kazu@hxi.com>
17022
17023 * config/h8300/h8300.h: Fix comment formatting.
17024 * config/ia64/aix.h: Likewise.
17025 * config/ia64/ia64-protos.h: Likewise.
17026 * config/ia64/ia64.c: Likewise.
17027 * config/ia64/ia64.h: Likewise.
17028 * config/ia64/ia64intrin.h: Likewise.
17029 * config/ia64/linux.h: Likewise.
17030 * config/ia64/unwind-aix.c: Likewise.
17031 * config/ia64/unwind-ia64.c: Likewise.
17032
005e3e05
KH
170332002-01-20 Kazu Hirata <kazu@hxi.com>
17034
17035 * config/h8300/h8300.c: Revise comments about shift code.
17036
64bead4c
KH
170372002-01-20 Kazu Hirata <kazu@hxi.com>
17038
17039 * config/h8300/h8300.c (function_arg): Update a comment.
17040
ed863595
KH
170412002-01-20 Kazu Hirata <kazu@hxi.com>
17042
17043 * config/h8300/h8300.md: Update the comments at the beginning
17044 of the file.
17045
5904dc87
KH
170462002-01-20 Kazu Hirata <kazu@hxi.com>
17047
17048 * config/i370/i370.c: Fix comment formatting.
17049 * config/i370/i370.h: Likewise.
17050 * config/i370/i370.md: Likewise.
17051 * config/i370/linux.h: Likewise.
17052
9702143f
RK
17053Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17054
cbafacd1
RK
17055 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
17056
9702143f
RK
17057 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
17058 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
17059 in incomplete case.
17060
6b6996b8
GS
170612002-01-20 Graham Stott <grahams@redhat.com>
17062
17063 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
17064
eab854f6
JDA
170652002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
17066
17067 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
17068
5b029315
TR
170692002-01-19 Tom Rix <trix@redhat.com>
17070
17071 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
17072
1d690052
AH
170732002-01-18 Aldy Hernandez <aldyh@redhat.com>
17074
d8086cbb 17075 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
1d690052 17076
d8086cbb
RS
17077 * function.c (assign_stack_local_1): Adjust x_frame_offset with
17078 STARTING_FRAME_PHASE.
17079 (STARTING_FRAME_PHASE): New.
17080 (instantiate_virtual_regs): Check saneness of
17081 STARTING_FRAME_PHASE.
1d690052 17082
d8086cbb 17083 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
1d690052 17084
4dd8c093
AO
170852002-01-19 Alexandre Oliva <aoliva@redhat.com>
17086
17087 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
17088
6f2a28d7
CR
170892002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
17090
17091 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
17092 be used for bootstrapping GCC 3.0.
17093
8763a465
KH
170942002-01-18 Kazu Hirata <kazu@hxi.com>
17095
17096 * config/h8300/h8300.md: Fix an insn length.
17097
3ef42a0c
KH
170982002-01-18 Kazu Hirata <kazu@hxi.com>
17099
17100 * bitmap.h: Fix comment formatting.
17101 * combine.c: Likewise.
17102 * cppfiles.c: Likewise.
17103 * c-pragma.h: Likewise.
17104 * c-typeck.c: Likewise.
17105 * df.c: Likewise.
17106 * dwarf2out.c: Likewise.
17107 * function.c: Likewise.
17108 * gcc.c: Likewise.
17109 * genattrtab.c: Likewise.
17110 * gthr-win32.h: Likewise.
17111 * haifa-sched.c: Likewise.
17112 * predict.c: Likewise.
17113 * rtlanal.c: Likewise.
17114 * rtl.h: Likewise.
17115 * unwind-dw2-fde.h: Likewise.
17116 * unwind-pe.h: Likewise.
17117 * vmsdbgout.c: Likewise.
17118
dd4dc3cd
RK
17119Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17120
17121 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
17122 if type_required and passed decl.
17123
5fb4cf24
AH
171242002-01-17 Aldy Hernandez <aldyh@redhat.com>
17125
d8086cbb
RS
17126 * config.gcc (cpu_type): Include altivec.h in powerpc
17127 extra_headers.
17128 Same for darwin.
5fb4cf24 17129
d8086cbb 17130 * config/rs6000/altivec.h: New.
5fb4cf24 17131
2705baf5
DE
171322002-01-17 David Edelsohn <edelsohn@gnu.org>
17133
17134 * doc/install.texi (*-ibm-aix*): Update assembler and exception
17135 handling information.
17136 * doc/trouble.texi (Interoperation): Add libstdc++ information
17137 for AIX.
17138 (Misunderstandings): Add template instantiation and static template
17139 member information for AIX.
17140
dbd680e1
JM
171412002-01-17 Jason Merrill <jason@redhat.com>
17142
821adc5e
JM
17143 * dbxout.c (dbxout_type): Support const and volatile.
17144
dbd680e1
JM
17145 * except.c (add_partial_entry): Remove backwards compatibility code.
17146 (end_protect_partials): Likewise.
17147
d0e82870
JJ
171482002-01-17 Jakub Jelinek <jakub@redhat.com>
17149
17150 * config/ia64/ia64.md (prologue_use): New.
17151 * config/ia64/ia64.c (ia64_expand_prologue): Use
17152 gen_prologue_use instead of gen_rtx_USE.
17153 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
17154 as CODE_FOR_pred_rel_mutex.
17155 (ia64_sched_reorder2): Likewise.
17156
f9f45c65
EC
171572002-01-16 Eric Christopher <echristo@redhat.com>
17158
17159 * config/mips/r3900.h: Reformat.
17160 (SUBTARGET_CPP_SIZE_SPEC): Remove.
17161 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
17162 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
17163 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
17164 * config/mips/t-elf: Remove mips3 multilib.
17165
c66c8b0e
L
171662002-01-16 H.J. Lu <hjl@gnu.org>
17167
17168 * config/mips/linux.h: Include "mips/abi64.h".
17169
5f083b72
L
171702002-01-16 H.J. Lu <hjl@gnu.org>
17171
17172 * config/mips/t-linux: New.
17173
17174 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
17175
17176 * config/mips/linux.h: Don't include "gofast.h".
17177 (INIT_SUBTARGET_OPTABS): Removed.
17178
af3c90a6
KH
171792002-01-16 Kazu Hirata <kazu@hxi.com>
17180
17181 * config/h8300/h8300-protos.h: Replace emit_a_shift with
17182 output_a_shift.
17183 * config/h8300/h8300.c: Likewise.
17184 * config/h8300/h8300.md: Likewise.
17185
a1bf0a16
KH
171862002-01-16 Kazu Hirata <kazu@hxi.com>
17187
17188 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
17189 spaces after an opcode name.
17190 (pushqi1_h8300hs): Likewise.
17191 (pushhi1_h8300hs): Likewise.
17192
88ab0d1c
KH
171932002-01-16 Kazu Hirata <kazu@hxi.com>
17194
17195 * doc/extend.texi: Replace "option" with "attribute"
17196 appropriately.
17197
51c561e3
JJ
171982002-01-16 Jakub Jelinek <jakub@redhat.com>
17199
17200 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
17201 (and:DI () (const_int -8)).
17202 (split_small_symbolic_mem_operand): Split
17203 (mem (and:DI () (const_int -8)).
17204
b8c1a6b8
JJ
172052002-01-16 Jakub Jelinek <jakub@redhat.com>
17206
17207 PR target/5309:
d8086cbb 17208 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
b8c1a6b8
JJ
17209 same way as TYPE_IMUL.
17210 (ultrasparc_sched_reorder): Likewise.
17211 * config/sparc/sparc.md (type): Add comment to update
17212 ultrasparc_sched_reorder when making changes.
17213
1e4e4df2
KH
172142002-01-16 Kazu Hirata <kazu@hxi.com>
17215
17216 * doc/invoke.texi: Change the dump file name of block
17217 reordering pass from 28.bbro to 29.bbro.
17218 Mention -dk option.
17219
14d920c0
JH
17220Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
17221
17222 * i386.md (minsf splitter): Fix pasto.
17223
2e99323f
NC
172242002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17225
17226 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
17227 to frame pointer initialisation instruction.
17228 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
17229 initialisation instruction.
ab8081c1
NC
17230 (soft_df_operand): Do not accept the IP register.
17231 (nonimmediate_soft_df_operand): Do not accept the IP register.
2e99323f 17232
c4031a04
JJ
172332002-01-16 Jakub Jelinek <jakub@redhat.com>
17234
17235 PR target/5357:
17236 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
17237 MASK_V8 being both set.
17238
44b8152b
UW
172392002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
17240
17241 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
17242 insn for GOT register; add REG_MAYBE_DEAD notes instead.
17243 config/s390/s390.md (call, call_value): Add GOT register to
17244 CALL_INSN_FUNCTION_USAGE where needed.
17245 (call_exp, call_value_exp): New.
17246
1d6e90ac
NC
172472002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17248
17249 * config/arm/arm.c: General formatting tidy up.
17250
172512002-01-16 Graham Stott <grahams@redhat.com>
60e8b9f0
GS
17252
17253 * calls.c (try_to_integrate): Use "(size_t)" intermediate
17254 cast and when casting an integer literal to "rtx" pointer.
17255 (expand_call): Likewise.
17256 * flow.c (try_pre_increment): Likewise.
17257 (find_use_as_address): Likewise.
17258 * integrate.c (expand_iline_function): Likewise.
17259 * regmove.c (try_auto_increment): Likewise.
17260
1d6e90ac 172612002-01-16 Graham Stott <grahams@redhat.com>
7b25b076
GS
17262
17263 * sched-rgn.c (passed): Use sbitmap_free.
17264 (header): Likewise.
17265 (inner): Likewise.
17266 (in_queue): Likewise.
17267 (in_stack): Likewise.
17268
31fce3c4
EC
172692002-01-15 Eric Christopher <echristo@redhat.com>
17270
17271 * flow.c (propagate_one_insn): Change to use fatal_insn.
17272
c99d986a
KH
172732002-01-15 Kazu Hirata <kazu@hxi.com>
17274
17275 * expmed.c (extract_fixed_bit_field): Remove unused code.
17276 * system.h: Poison SLOW_ZERO_EXTEND.
17277 * doc/tm.texi: Remove.
17278 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
17279 * config/arm/arm.h: Likewise.
17280 * config/avr/avr.h: Likewise.
17281 * config/clipper/clipper.h: Likewise.
17282 * config/convex/convex.h: Likewise.
17283 * config/d30v/d30v.h: Likewise.
17284 * config/dsp16xx/dsp16xx.h: Likewise.
17285 * config/elxsi/elxsi.h: Likewise.
17286 * config/fr30/fr30.h: Likewise.
17287 * config/h8300/h8300.h: Likewise.
17288 * config/i370/i370.h: Likewise.
17289 * config/i386/i386.h: Likewise.
17290 * config/m68k/m68k.h: Likewise.
17291 * config/mips/mips.h: Likewise.
17292 * config/ns32k/ns32k.h: Likewise.
17293 * config/pdp11/pdp11.h: Likewise.
17294 * config/pj/pj.h: Likewise.
17295 * config/s390/s390.h: Likewise.
17296 * config/sh/sh.h: Likewise.
17297 * config/stormy16/stormy16.h: Likewise.
17298 * config/v850/v850.h: Likewise.
17299 * config/vax/vax.h: Likewise.
17300 * config/we32k/we32k.h: Likewise.
17301
acfab996
AH
173022002-01-15 Aldy Hernandez <aldyh@redhat.com>
17303
d8086cbb
RS
17304 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
17305 (altivec_lvsl): Change constraint to b.
17306 (altivec_lvsr): Same.
17307 (altivec_lvebx): Same.
17308 (altivec_lvehx): Same.
17309 (altivec_lvewx): Same.
17310 (altivec_lvxl): Same.
17311 (altivec_lvx): Same.
17312 (altivec_stvx): Add parallel.
17313 (altivec_stvxl): Same.
17314 (altivec_stvehx): Same.
17315 (altivec_stvebx): Same.
17316 (altivec_stvebx): Same.
acfab996 17317
5e505bc9
AH
173182002-01-15 Aldy Hernandez <aldyh@redhat.com>
17319
d8086cbb 17320 * config.gcc: Change altivec.h to altivec-defs.h.
5e505bc9 17321
d8086cbb 17322 * config/rs6000/altivec.h: Delete.
5e505bc9 17323
d8086cbb 17324 * config/rs6000/altivec-defs.h: Add.
5e505bc9 17325
5c41fdfb
JDA
173262002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
17327
17328 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
17329 and UMOD modes.
17330
17331 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
17332 less than or equal to eight bytes.
17333
17334 * vax.md (andsi3): Remove constraints and change SET destination
17335 operand type to nonimmediate_operand.
17336 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
17337 when it is a CONST_INT.
17338
de097a2d
JM
173392002-01-15 Jason Merrill <jason@redhat.com>
17340
17341 * c-common.def (FILE_STMT): New code.
17342 * c-common.c (statement_code_p): It's a statement.
17343 * c-common.h (stmt_tree_s): Add x_last_filename.
17344 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
17345 (last_expr_filename): New macro.
17346 * c-semantics.c (begin_stmt_tree): Initialize it.
17347 (add_stmt): If the filename changed, also insert a
17348 FILE_STMT.
17349 (expand_stmt): Handle seeing one.
17350
4a913dd6
EC
173512002-01-15 Eric Christopher <echristo@redhat.com>
17352
17353 * flow.c (propagate_one_insn): Add error message and print out
17354 insn for debugging.
17355
006946e4
JM
173562002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17357
17358 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
17359 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
17360 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
17361 TRAMPOLINE_ALIGNMENT.
17362 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
17363 to be in bits.
17364 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
17365 PCC_BITFIELD_TYPE_MATTERS.
17366 * config/interix.h (STDC_VALUE): Remove. Use
17367 STDC_0_IN_SYSTEM_HEADERS.
17368 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
17369 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
17370 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
17371
751a1458
CR
173722002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
17373
17374 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
17375 not work on this platform currently.
17376
57771fe8
JM
173772002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17378
17379 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
17380 readonly_warning in _().
17381
0e83ceb1 173822002-01-15 Douglas B Rupp <rupp@gnat.com>
9a52433e 17383
0e83ceb1 17384 * gcc.c (delete_if_ordinary): Backout previous change.
9a52433e 17385
8e2e89f7
KH
173862002-01-15 Kazu Hirata <kazu@hxi.com>
17387
0e83ceb1
DR
17388 * config/h8300/h8300.c (print_operand): Remove support for
17389 unused operand characters.
17390
8e2e89f7
KH
17391 * read-rtl.c: Fix formatting.
17392 * real.c: Likewise.
17393 * recog.c: Likewise.
17394 * regclass.c: Likewise.
17395 * regmove.c: Likewise.
17396 * reg-stack.c: Likewise.
17397 * reload1.c: Likewise.
17398 * rtlanal.c: Likewise.
17399
b531087a
KH
174002002-01-15 Kazu Hirata <kazu@hxi.com>
17401
17402 * config/i386/i386.c: Fix formatting.
17403
7c94ce7f
JJ
174042002-01-15 Jakub Jelinek <jakub@redhat.com>
17405
17406 * c-typeck.c (process_init_element): Don't save_expr
17407 COMPOUND_LITERAL_EXPR if just its initializer will be used.
17408
6041bf2f
DE
174092002-01-15 David Edelsohn <edelsohn@gnu.org>
17410
17411 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
17412 emit optional traceback table if optimize_size or TARGET_ELF.
17413 * config/rs6000/rs6000.md (prefetch): New.
17414
8559c8c0
AJ
174152002-01-15 Andreas Jaeger <aj@suse.de>
17416
17417 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
17418
70f122f2
KH
174192002-01-15 Kazu Hirata <kazu@hxi.com>
17420
17421 * mips-tfile.c: Fix formatting.
17422
6a7b4ca6
JH
17423Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
17424
17425 * unroll.c (final_reg_note_copy): Fix previous commit.
17426
e7afe229
KH
174272002-01-14 Kazu Hirata <kazu@hxi.com>
17428
17429 * config/h8300/h8300-protos.h: Remove the prototype for
17430 eq_operator.
17431 * config/h8300/h8300.c (eq_operator): Remove.
17432
7d378549
RH
174332002-01-14 Richard Henderson <rth@redhat.com>
17434
17435 * config/i386/i386.md (prefetch): Tidy.
17436 (prefetch_3dnow): Fix locality operand.
17437
ab093b81
RH
174382002-01-14 Richard Henderson <rth@redhat.com>
17439
17440 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
17441 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
17442
d300f51f
HPN
174432002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
17444
17445 * reload1.c (reload_combine): Pass reg_sum replacement through
17446 copy_rtx in loop performing multiple changes.
17447
655dd289
JJ
174482002-01-14 Jakub Jelinek <jakub@redhat.com>
17449
17450 * except.c (remove_unreachable_regions): New.
17451 (free_eh_status): Clear exception_handler_labels.
17452 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
17453 (find_exception_handler_labels): Don't add the same label more than
17454 once.
17455 (remove_exception_handler_label): Don't die if
17456 find_exception_handler_labels hasn't been called for the current
17457 function yet.
17458
1fba46a7
JH
17459Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
17460
17461 * toplev.c (rest_of_compilation): Rebuild jump labels after
17462 gcse.
17463
0975678f
JM
174642002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
17465
17466 * doc/extend.texi: Move documentation of X86 built-in functions
17467 here.
17468 * doc/invoke.texi: From here.
17469 * doc/sourcebuild.texi: Document location of documentation for
17470 machine built-in functions.
17471
969815c7
CF
174722002-01-13 Christopher Faylor <cgf@redhat.com>
17473
17474 * cppfiles.c (TEST_THRESHOLD): New macro.
17475 (SHOULD_MMAP): Ditto.
17476 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
17477 be used.
17478
494c950b
JH
17479Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
17480
17481 * unroll.c (final_reg_note_copy): Properly handle
17482 REG_LABEL
17483 (unroll_loops): Fix LOOP_CONDITION heuristics.
17484
69a0611f
GK
174852002-01-14 Geoffrey Keating <geoffk@redhat.com>
17486
17487 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
17488 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
17489
b90e45ae
JH
17490Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
17491
17492 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
17493 threaded loop.
17494
8377288b
TR
174952002-01-14 Tom Rix <trix@redhat.com>
17496
17497 * config/rs6000/rs6000.md: Fix typo with sradi.
17498
9f37ccb1
UW
174992002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
17500
17501 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
17502 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
17503 (clrstrdi, clrstrsi): Adapt callers.
17504
17505 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
17506
8559c8c0 17507 (movti splitter): Never use register 0 as base register.
9f37ccb1 17508
6c2d03d0
HP
175092002-01-14 Hartmut Penner <hpenner@de.ibm.com>
17510
8559c8c0
AJ
17511 * combine.c (simplify_shift_const): Always generate new rtx
17512 for shift expression instead of reusing given expression.
6c2d03d0 17513
d3e98208
RK
17514Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17515
17516 * config/alpha/alpha.c (alpha_expand_mov): Don't call
17517 alpha_legitimize_address unless mode is Pmode.
17518
9f339dde
GK
175192002-01-13 Geoffrey Keating <geoffk@redhat.com>
17520
17521 * doc/md.texi (Modifiers): Document the '*' constraint for the
17522 user.
17523
17524 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
17525 * doc/extend.texi (Function Attributes): 'interrupt' is valid
17526 for xstormy16 too.
17527
02a10130
RH
175282002-01-13 Richard Henderson <rth@redhat.com>
17529
17530 * reload.c (find_reloads): Use a hard reg destination as reload reg
17531 for an input reload of the source.
17532
61d47787
GP
175332002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17534
17535 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
17536 more generic.
17537
f0df8029
DR
17538Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
17539
17540 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17541 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17542
d2a37256
DR
17543 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
17544
a9e8a5ee
RK
17545Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17546
17547 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
17548
bc06712d
TR
175492002-01-12 Tom Rix <trix@redhat.com>
17550
8559c8c0 17551 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
bc06712d
TR
17552 TARGET_POWERPC64.
17553
7cbe9bb7
RH
175542002-01-12 Richard Henderson <rth@redhat.com>
17555
38b29e64
RH
17556 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
17557
58605ba0
RH
17558 * doc/invoke.texi: Update Alpha options.
17559
7cbe9bb7
RH
17560 * doc/invoke.texi: Update i386 built-in function lists.
17561
9d560860
JH
17562Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
17563
17564 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
17565 referencing outside.
17566
bb93b973
RK
17567Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17568
17569 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
17570 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
17571 offsets, and change line folding.
17572 * optabs.c (expand_binop): Remove warnings.
17573 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8559c8c0 17574
f9f6b7df
GS
175752002-01-12 Graham Stott <grahams@redhat.com>
17576
17577 * attribs.c (handle_deprecated_attribute): constify WHAT.
17578 * diagnostic.c (warn_deprecated_use): Add braces, fixes
17579 dangling else warning and constify WHAT.
17580 * except.h (struct function, struct inline_remap): Move
17581 struct tag forward defs before all prototypes.
17582 (duplicate_eh_regions): Whitespace.
17583
4a692617
NC
175842002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
17585
17586 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17587 MODE_BASE_REG_CLASS.
17588 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
17589
e37af218
RH
175902002-01-12 Richard Henderson <rth@redhat.com>
17591
17592 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
17593 (ix86_expand_vector_move): New.
17594 (bdesc_2arg): Remove andps, andnps, orps, xorps.
17595 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
17596 Remove old prefetch builtins. Special case the logicals removed above.
17597 (ix86_expand_builtin): Likewise.
17598 (safe_vector_operand): Use V4SFmode, not TImode.
17599 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
17600 (ix86_expand_timode_binop_builtin): New.
17601 * config/i386/i386-protos.h: Update.
17602 * config/i386/i386.h (enum ix86_builtins): Update.
17603 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
17604 Use ix86_expand_vector_move in vector move expanders.
17605 (movti_internal, movti_rex64): Add xorps alternative.
17606 (sse_clrv4sf): Rename and adjust from sse_clrti.
17607 (prefetch): Don't work so hard.
17608 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
17609 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
17610 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
17611
6f1a6c5b
RH
176122002-01-11 Richard Henderson <rth@redhat.com>
17613
17614 * config/i386/mmintrin.h: New file.
17615 * config/i386/xmmintrin.h: New file.
17616 * config.gcc (i?86-*-*): Add extra_headers.
17617 * simplify-rtx.c (simplify_unary_operation): Handle saturating
17618 truncation codes.
17619 (simplify_binary_operation): Handle saturating arithmetic codes.
17620 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
17621 not the lowpart subreg.
17622 (ix86_expand_builtin): Return a TImode dummy register instead of 0
17623 on error.
17624 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
17625
cdb574d3
MH
176262002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17627
17628 * conflict.c (conflict_graph_compute): Free regsets when finished.
17629 * ssa.c (compute_coalesced_reg_partition): Likewise.
8559c8c0 17630
cf11ac55
HB
176312002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17632
17633 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
17634 every where we allocate a register.
17635
76ac938b
MH
176362002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17637
17638 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
17639 * lcm.c (compute_earliest, compute_farthest): Likewise.
17640
a84b4898
JJ
176412002-01-11 Janis Johnson <janis187@us.ibm.com>
17642
17643 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
17644
aaef1c12
JJ
176452002-01-11 Janis Johnson <janis187@us.ibm.com>
17646
17647 * doc/rtl.texi (Insns): Fix 2 typos.
17648
5d22c1a5
JM
176492002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
17650
17651 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
17652 options. Use @table @gcctabopt for MMIX options. Add index
17653 entries for MMIX options. Start new paragraph with first
17654 heading of the machine-dependent options.
17655
3e92902c
CR
176562002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
17657
17658 PR other/5299
17659 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
17660 * combine.c (force_to_mode): Same.
17661 * reload1.c (clear_reload_reg_in_use): Same.
17662
96ae8197
NC
176632002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
17664
17665 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
17666 and 'subtargets'.
17667
9b780582
AJ
176682002-01-11 Andreas Jaeger <aj@suse.de>,
17669 Brad Lucier <lucier@math.purdue.edu>
17670
17671 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
17672 mcpu.
17673
12300dad
DR
17674Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
17675
17676 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
17677 Protect with IN_LIBGCC.
17678 (LINK_EH_SPEC): Add required trailing space.
17679
27511a9a
NP
17680Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
17681
9b780582 17682 * c-tree.h: Move function declarations so that they are listed
27511a9a
NP
17683 under the filename which contains them.
17684 (check_identifier, finish_decl_top_level,
17685 lookup_name_current_level_global, shadow_record_fields): Remove.
17686
4daeab16
AJ
176872002-01-11 Andreas Jaeger <aj@suse.de>
17688
17689 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
17690 march.
17691
40571d67
RH
176922002-01-10 Richard Henderson <rth@redhat.com>
17693
17694 * config/alpha/alpha.c (print_operand): Add 'J'.
17695 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
17696 new operand with the sequence number for the lituse. When splitting
17697 the insns, use gen_movdi_er_high_g and generate a sequence number.
17698 (gen_movdi_er_high_g): Print the sequence number if non-zero.
17699
6525c0e7
AH
177002002-01-10 Aldy Hernandez <aldyh@redhat.com>
17701
d8086cbb
RS
17702 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
17703 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
17704 stvxl.
17705 (altivec_expand_builtin): Same.
17706 (altivec_expand_stv_builtin): New.
17707
17708 * config/rs6000/rs6000.h (rs6000_builtins): Same.
17709
17710 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
17711 ("altivec_lvehx"): New.
17712 ("altivec_lvewx"): New.
17713 ("altivec_lvxl"): New.
17714 ("altivec_lvx"): New.
17715 ("altivec_stvx"): New.
17716 ("altivec_stvebx"): New.
17717 ("altivec_stvehx"): New.
17718 ("altivec_stvewx"): New.
17719 ("altivec_stvxl"): New.
6525c0e7 17720
cda94cbb
RH
177212002-01-10 Richard Henderson <rth@redhat.com>
17722
17723 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
17724 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
17725 care not to delete instructions twice.
17726
df2c9a44
ZW
177272002-01-10 Zack Weinberg <zack@codesourcery.com>
17728
17729 * toplev.c: Don't declare environ (it's not used anywhere).
17730 * configure.in: Don't check for declaration of environ.
17731 * config/i386/xm-mingw32.h: Don't #define environ.
17732 * config.in, configure: Regenerate.
17733
5dd8a9b1
ZW
177342002-01-10 Zack Weinberg <zack@codesourcery.com>
17735
17736 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
17737 * configure: Regenerate.
17738
17739 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
17740 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
17741 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
17742 alpha/xm-vms.h.
17743 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
17744 LIMITS_H_TEST here, not in m68k/x-next.
17745 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
17746 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
17747
17748 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
17749 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
17750 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
17751
17752 * config/i386/x-djgpp: Renamed i386/t-djgpp.
17753 * config/m88k/x-dolph: Renamed m88k/t-dolph.
17754 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
17755 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
17756 replacement of quadlib.asm with quadlib.c.
17757
17758 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
17759 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
17760 config/rs6000/xm-beos.h: Delete file.
17761
17762 * config.gcc: Update to match above changes.
17763
d10dd44c
KH
177642002-01-10 Kazu Hirata <kazu@hxi.com>
17765
17766 * config/h8300/h8300.h: Fix comment typos.
17767 * config/h8300/h8300.md: Likewise.
17768 * config/h8300/lib1funcs.asm: Likewise.
17769
04894c5a
DJ
177702002-01-10 Dale Johannesen <dalej@apple.com>
17771
17772 PR optimization/5269
17773 * unroll.c (precondition_loop_p): Make *increment be the correct
17774 sign when n_iterations known, to avoid confusing caller.
17775
adc9fe67
KH
177762002-01-10 Kazu Hirata <kazu@hxi.com>
17777
17778 * doc/extend.texi (deprecated): Fix a typo.
17779
b446e5a2
JH
17780Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
17781
17782 * basic-block.h (update_br_prob_note): Declare.
17783 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
17784 (try_forward_edges): Care negative frequencies and update note.
17785 (outgoing_edges_match): Tweek conditional merging heuristics.
17786 (try_crossjump_to_edge): use update_br_prob_note.
17787 * cfglayout.c (fixup_reorder_chain): Likewise.
17788 * cfrtl.c (update_br_prob_note): New.
17789 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
17790
17791 * i386.c (ix86_decompose_address): Return -1 if address contains
17792 shift.
17793 (legitimate_address_p): Require ix86_decompose_address to return 1.
17794
17795 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
17796 (cprop_insn): Likewise.
17797
a01da83b
KH
177982002-01-10 Kazu Hirata <kazu@hxi.com>
17799
17800 * toplev.c: Fix formatting.
17801 * tree.c: Likewise.
17802 * tree-dump.c: Likewise.
17803 * unroll.c: Likewise.
17804 * unwind-dw2.c: Likewise.
17805 * unwind-dw2-fde.c: Likewise.
17806 * unwind-dw2-fde-glibc.c: Likewise.
17807 * unwind-sjlj.c: Likewise.
17808
9f85bca7
JM
178092002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
17810
17811 * doc/invoke.texi: Document PDP-11 options.
17812
f48f56b1
KH
178132002-01-10 Kazu Hirata <kazu@hxi.com>
17814
17815 * config/h8300/h8300.h: Fix formatting.
17816
ead39bdf 178172002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
17818
17819 Add __attribute__ ((deprecated)).
17820 * extend.texi: Document __attribute__ ((deprecated)).
17821 * invoke.texi: Document -Wno-deprecated-declarations.
17822 * testsuite/g++.dg/other/deprecated.C: New C++ test.
17823 * testsuite/gcc.dg/deprecated.c: New C test.
17824 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
17825 (c_common_attribute_table): Add "deprecated" entry.
17826 (handle_deprecated_attribute): New function.
17827 * c-decl.c (deprecated_states): New enum.
17828 deprecated_state: State of "deprecated" handling.
17829 (start_decl): Set deprecated_state based on attributes.
17830 (grokdeclarator): Test for deprecated uses, propagate attribute.
17831 * c-typeck.c (build_component_ref): Test for deprecated fields.
17832 (build_external_ref): Test for deprecated primaries.
17833 * diagnostic.c (warn_deprecated_use) New function to issue
17834 warnings about __attribute__ ((depricated)) references.
17835 * flags.h (warn_deprecated_decl): Extern declared for
17836 -W[no-]deprecated-declarations option.
17837 * print-tree.c (print_node): Show deprecated flag status.
17838 * toplev.c (warn_deprecated_decl): Defined.
17839 (W_options): Added "deprecated-declaration".
17840 * toplev.h (warn_deprecated_use): Extern declared.
17841 * tree.h (struct tree_common): Define deprecated_flag.
17842 (TREE_DEPRECATED): New macro to access flag.
17843 * cp/call.c (build_call): Test for deprecated calls.
17844 * cp/class.c (add_implicitly_declared_members): Set global
17845 flag to tell grokdeclarator to not issue deprecated warnings.
17846 * cp/cp-tree.h: Add extern for adding_implicit_members.
17847 * cp/decl.c (deprecated_states): New enum.
17848 (start_decl): Set deprecated_state based on attributes.
17849 (grokdeclarator): Test for deprecated uses, propagate attribute.
17850 * cp/lex.c (do_identifier): Test for deprecated primaries.
17851 * cp/typeck.c (build_component_ref): Test for deprecated fields.
17852
ead39bdf 178532002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
17854
17855 Fix to assign attributes to inline member functions.
17856 * cp/decl.c (start_method): Handle attrlist.
17857
47073a38
KH
178582002-01-10 Kazu Hirata <kazu@hxi.com>
17859
17860 * combine.c (expand_field_assignment): Use subreg_lsb().
17861
d288e53d
DE
178622002-01-10 David Edelsohn <edelsohn@gnu.org>
17863
17864 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
17865 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
17866 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
17867 Recurse for any operand of AND as long as constant is non-zero.
17868
08a02ffa
KH
178692002-01-10 Kazu Hirata <kazu@hxi.com>
17870
17871 * config/h8300/h8300.md: Remove constraints from expanders.
17872
c203e7fe
KH
178732002-01-10 Kazu Hirata <kazu@hxi.com>
17874
17875 * varasm.c: Fix formatting.
17876 * varray.c: Likewise.
17877 * vmsdbgout.c: Likewise.
17878 * xcoffout.c: Likewise.
17879
bcb3bc6d
JH
17880Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
17881
17882 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
cda94cbb 17883 update edge probabilities to match.
bcb3bc6d 17884
0a553c7e
JM
178852002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
17886
17887 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
17888 dependencies.
17889 * doc/languages.texi, doc/sourcebuild.texi: New files.
17890 * doc/configfiles.texi: Make a subsubsection. Update.
17891 * doc/configterms.texi: Add @node. Remove warning that this isn't
17892 instructions for building GCC.
17893 * doc/makefile.texi: Make a subsection.
17894 * doc/gccint.texi: Update.
17895
adc7fcb8
JH
17896Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
17897
17898 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
17899
5a4dd0b3
NP
17900Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
17901
17902 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
17903
3987b9db
JH
17904Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
17905
17906 * optabs.c (expand_fix): Look for wider integer modes first.
17907
17908 * i386.md (mov?f): Avoid the fake const double trick for medium
17909 memory model.
17910 (min?f*/max?f*): Prohibit memory operands for i387 variant.
17911 (fop_df_4): Disable for SSE compilation.
17912
ceb15948 179132002-01-10 Graham Stott <grahams@redhat.com>
117f9d28
GS
17914
17915 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
cda94cbb 17916 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
117f9d28 17917
e1623399
RH
179182002-01-10 Richard Henderson <rth@redhat.com>
17919
17920 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
17921
c4abb293
RH
179222002-01-10 Richard Henderson <rth@redhat.com>
17923
17924 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
17925 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
17926
d2604ae9
KH
179272002-01-10 Kazu Hirata <kazu@hxi.com>
17928
17929 * combine.c (can_combine_p): Fix a comment typo.
17930
766c7ad1
ZW
179312002-01-09 Zack Weinberg <zack@codesourcery.com>
17932
17933 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
17934 empty list correctly. Change loop index $t to $f for
17935 consistency with rest of Makefile.
17936
95385cbb
AH
179372002-01-08 Aldy Hernandez <aldyh@redhat.com>
17938
17939 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
17940 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
17941
17942 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
17943 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
17944 (altivec_init_builtins): Same.
17945 (altivec_expand_unop_builtin): Return NULL_RTX on error.
17946 (altivec_expand_binop_builtin): Same.
17947 (altivec_expand_ternop_builtin): Same.
17948 (bdesc_dst): New.
17949
17950 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
17951 ("altivec_vctuxs"): Fix typo.
17952 ("altivec_vnmsubfp"): Same.
17953 ("altivec_dssall"): New.
17954 ("altivec_mfvscr"): New.
17955 ("altivec_dss"): New.
17956 ("altivec_lvsl"): New.
17957 ("altivec_lvsr"): New.
17958 ("altivec_dstt"): New.
17959 ("altivec_dstst"): New.
17960 ("altivec_dststt"): New.
17961 ("altivec_dst"): New.
17962
17963 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
17964 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
17965
e4ac76b4
RH
179662002-01-09 Richard Henderson <rth@redhat.com>
17967
17968 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
17969
c893e4a4
HPN
179702002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
17971
17972 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
17973 function.
17974 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
17975 prototype.
7387c700 17976 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
c893e4a4 17977
f4f4d0f8
KH
179782002-01-09 Kazu Hirata <kazu@hxi.com>
17979
17980 * read-rtl.c: Fix formatting.
17981 * real.c: Likewise.
17982 * regclass.c: Likewise.
17983 * regrename.c: Likewise.
17984 * reg-stack.c: Likewise.
17985 * reload1.c: Likewise.
17986 * reload.c: Likewise.
17987 * rtl.c: Likewise.
17988
cc863bea
KH
179892002-01-09 Kazu Hirata <kazu@hxi.com>
17990
17991 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
17992 to extract items in the expr_list chain.
17993
7b4dfe3d
RH
179942002-01-09 Richard Henderson <rth@redhat.com>
17995
17996 * config/vax/vax.c (vax_rtx_cost): Never abort.
17997
1d969638
RH
17998 * config/vax/vax.h (REAL_ARITHMETIC): Define.
17999
7d5ab30e
JH
180002002-01-09 Jan Hubicka <jh@suse.cz>
18001
18002 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
18003
9503f3d1
RH
180042002-01-09 Richard Henderson <rth@redhat.com>
18005
18006 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
18007 Unify code from various alternatives.
18008
42bd17b7
RH
180092002-01-09 Richard Henderson <rth@redhat.com>
18010
18011 * regrename.c (copy_value): Ignore the copy if the source register
18012 is present in the value chain with a narrower mode.
18013
bdca3c33
HB
180142002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18015
cda94cbb
RH
18016 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
18017 for the c4x target. Also improve layout.
bdca3c33 18018
c73a5e94
RH
180192002-01-09 Richard Henderson <rth@redhat.com>
18020
18021 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
18022 * config/m32r/m32r.md (and ior xor splitters): Swap operands
18023 to match insn patterns.
18024
dd0a18c0
RH
180252002-01-09 Richard Henderson <rth@redhat.com>
18026
18027 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
18028 (copyprop_hardreg_forward_1): Likewise.
18029
1fd9ac1e
JDA
180302002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
18031
18032 * pa.md (decrement_and_branch_until_zero): Change predicate for
18033 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
18034
5cb265ec
BM
180352002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18036
18037 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
18038 gets undefined. For Darwin.
18039
fcd8fa8b
HB
180402002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18041
18042 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
18043
bd3ab23a
MH
180442002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18045
18046 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
18047
21e16bd6
RH
180482002-01-08 Richard Henderson <rth@redhat.com>
18049
18050 * regrename.c (copy_value): Ignore overlapping copies.
18051
a5376276
RH
180522002-01-08 Richard Henderson <rth@redhat.com>
18053
18054 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
18055 as needed to avoid shared structure.
18056
18cf8dda
KH
180572002-01-08 Kazu Hirata <kazu@hxi.com>
18058
18059 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
18060 H8/300H and H8/S.
18061
16c484c7
JM
180622002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18063
18064 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
18065 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
18066 documentation of obsolete macros.
18067 * system.h: Poison these macros.
18068 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
18069 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
18070 config/c4x/c4x.h, config/clipper/clipper.h,
18071 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
18072 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
18073 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
18074 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
18075 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
18076 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
18077 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18078 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
18079 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
18080 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18081 config/sparc/sparc.h, config/stormy16/stormy16.h,
18082 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
18083 definitions and commented out definitions of obsolete macros.
18084 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
18085 of MAX_INT_TYPE_SIZE.
18086
14b3e8ef
UW
180872002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18088
18089 * config/s390/s390.c (s390_preferred_reload_class): Never
18090 return ADDR_REGS if it isn't a subset of the given class.
18091 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
18092 FP_REGS, but all superclasses as well.
18093
18094 * config/s390/s390.c (s390_function_profiler): Fix thinko.
18095
18096 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
18097 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
18098 must not be a const_int.
18099
a693284d
RH
181002002-01-08 Richard Henderson <rth@redhat.com>
18101
18102 * Makefile.in (toplev.o): Depend on options.h.
18103 (gcc.o): Depend on specs.h.
18104
b3ca30df
JJ
181052002-01-08 Jakub Jelinek <jakub@redhat.com>
18106
18107 * expr.c (store_expr): Convert VOIDmode constants back to target's
18108 mode.
18109
24dbb440
GP
181102002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18111
18112 * doc/invoke.texi: Markup gcc as @command. Refer to
18113 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
18114 of http://gcc.gnu.org/thanks.html.
18115
234e114c
DJ
181162002-01-08 Dale Johannesen <dalej@apple.com>
18117
18118 * config/rs6000/rs6000.md: Add missing int register
18119 target case to movdf_low.
18120
0d24f4d1
ZW
181212002-01-08 Zack Weinberg <zack@codesourcery.com>
18122
18123 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
18124 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
18125 (cppinit.o): Depend on except.h.
18126 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
18127 s-specs): New rules.
18128
18129 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
18130 Don't create specs.h/options.h/gencheck.h here. Remove
18131 unnecessary variable settings from last argument of AC_OUTPUT.
18132 * config.in, configure: Regenerate.
18133 * intl.c: Hardcode package name as "gcc".
18134
18135 * cppinit.c: Include except.h.
18136 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
18137 appropriate.
18138 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
18139 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
18140 (!)USING_SJLJ_EXCEPTIONS.
18141 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
18142
ed722f66
JM
181432002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18144
18145 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
18146 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
18147 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
18148 documentation of obsolete macros.
18149 * system.h: Poison these macros.
18150 * config/d30v/d30v.h, config/ns32k/encore.h,
18151 config/stormy16/stormy16.h: Remove definitions and commented out
18152 definitions of obsolete macros.
18153
31e5e29a
NP
18154Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
18155
18156 * objc/objc-act.c (handle_class_ref): Mark the declaration of
18157 %sobjc_class_ref_%s as used - to prevent unwanted compiler
18158 warnings.
18159
bc1fa59c
UW
181602002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18161
18162 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
18163 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
18164 to insn adjusting stack/frame pointer.
0d24f4d1 18165 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
bc1fa59c
UW
18166 accept operands that cause the insn to be non-splittable.
18167
a8086abf
GS
181682002-01-08 Graham Stott <grahams@redhat.com>
18169
18170 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
18171 (C_TYPE_FIELDS_VOLATILE): Likewise.
18172 (C_TYPE_BEING_DEFINED): Likewise.
18173 (C_IS_RESERVED_WORD): Likewise.
18174 (C_TYPE_VARIABLE_SIZE): Likewise.
18175 (C_DECL_VARIABLE_SIZE): Likewise.
18176 (C_MISSING_PROTOTYPE_WARNED): Likewise.
18177 (C_SET_EXP_ORIGINAL_CODE): Likewise.
18178 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
18179 parenthesis.
18180 (C_DECL_ANTICIPATED): Likewise.
18181 (c_build_type_variant): Add parenthesis.
18182
3f595aa1
JM
181832002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18184
18185 * gcc.c (option_map): Remove --version.
18186 (process_command): Handle -fversion following the GNU Coding
18187 Standards. Partially addresses PR other/704.
18188
5bc5a8f9
GS
181892002-01-08 Graham Stott <grahams@redhat.com>
18190
18191 * combine.c (combine_instructions): Fix typo.
18192
16ec4ebf
GS
181932002-01-08 Graham Stott <grahams@redhat.com>
18194
18195 * debug.h: Use "tree" and "rtx" throughout.
18196
18197 * debug.c: Likewise.
18198
4b69f385
NC
181992002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
18200
18201 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
18202 constant pool, use the pool's version of the symbol instead.
18203
57d1019b
RH
182042002-01-07 Richard Henderson <rth@redhat.com>
18205
18206 * regrename.c (find_oldest_value_reg): Ignore the value chain if
18207 the original register was copied in a mode with a fewer number of
18208 hard registers than the desired mode.
18209 (copyprop_hardreg_forward_1): Likewise.
18210 (debug_value_data): Fix loop test.
18211 * toplev.c (parse_options_and_default_flags): Reenable
18212 -fcprop-registers at -O1.
18213
182142002-01-07 Aldy Hernandez <aldyh@redhat.com>
fa066a23 18215
0d24f4d1
ZW
18216 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
18217 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
fa066a23 18218
0d24f4d1
ZW
18219 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
18220 predicates.
fa066a23 18221
0d24f4d1 18222 * config/rs6000/rs6000.md: Add altivec predicate patterns.
fa066a23 18223
8f949e7e
JDA
182242002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
18225
18226 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
18227 (pa_output_function_prologue): Output local label at the beginning of
18228 the prologue when profiling.
18229 (hppa_profile_hook): Use the local label rather than the function label.
18230 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
18231
c62f2db5
AH
182322002-01-07 Aldy Hernandez <aldyh@redhat.com>
18233
0d24f4d1
ZW
18234 * config/rs6000/rs6000.c (print_operand): Remove extra space.
18235 (altivec_expand_unop_builtin): Fix thinko.
18236 (altivec_expand_binop_builtin): Same.
18237 (altivec_expand_ternop_builtin): Same.
18238 (altivec_expand_builtin): Same.
c62f2db5 18239
b5235ba7
RH
182402002-01-07 Richard Henderson <rth@redhat.com>
18241
18242 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
18243
7d8ac293
JM
182442002-01-07 Jason Merrill <jason@redhat.com>
18245
18246 * unwind-dw2.c (execute_cfa_program): Use < again.
18247
571a03b8
JJ
182482002-01-07 Jakub Jelinek <jakub@redhat.com>
18249
18250 * predict.c (combine_predictions_for_insn): Avoid division by zero.
18251
2e951384
JJ
182522002-01-07 Jakub Jelinek <jakub@redhat.com>
18253
18254 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
18255 Don't allow -1 - x -> ~x simplifications in the first pass.
18256
20e26713
AH
182572002-01-07 Aldy Hernandez <aldyh@redhat.com>
18258
0d24f4d1
ZW
18259 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
18260 arguments.
18261 (altivec_expand_binop_builtin): Same.
18262 (altivec_expand_unop_builtin): Same.
18263 (print_operand): Fix typo.
18264 (bdesc_1arg): Add vupk* variants.
20e26713 18265
0d24f4d1 18266 * rs6000.h (rs6000_builtins): Add vupk* enums.
20e26713 18267
0d24f4d1 18268 * rs6000.md: Add altivec_vupk* variants.
20e26713 18269
4dd57c18
JM
182702002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
18271
18272 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
18273 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
18274 and last update dates.
18275
0341c5d2
JJ
182762002-01-07 Janis Johnson <janis187@us.ibm.com>
18277
18278 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
18279
c7f3e0b0
MM
182802002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
18281
18282 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
18283 * config/avr/avr.h (CPP_SPEC): Likewise.
18284 (LINK_SPEC): Likewise.
18285 (CRT_BINUTILS_SPECS): Likewise.
18286 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
18287 * doc/invoke.texi (AVR Options): Document them.
18288
6ba4d630
JH
18289Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
18290
18291 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
18292 LABEL_NUSES.
18293
6253d571
GS
182942002-01-07 Graham Stott <grahams@redhat.com>
18295
0d24f4d1
ZW
18296 * config/i386/i386.h: Update copyright date.
18297 (HALF_PIC_PTR): Add parenthesis.
18298 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
18299 (CONSTANT_ALIGNMENT): Add parenthesis.
18300 (DATA_ALIGNMENT): Likewise.
18301 (LOCAL_ALIGNMENT): Likewise.
18302 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
18303 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
18304 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
18305 (HARD_REGNO_NREGS): Add paranethesis.
18306 (VALID_SSE_REG_MODE): Whitespace.
18307 (VALID_MMX_REG_MODE): Whitespace.
18308 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
18309 (ix86_hard_regno_mode_ok): Add parenthesis.
18310 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
18311 (RETURN_IN_MEMORY): Whitespace.
18312 (N_REG_CLASSES): Add parenthesis.
18313 (INTEGER_CLASS_P): Add parenthesis and wrap.
18314 (FLOAT_CLASS_P): Likewise.
18315 (SSE_CLASS_P): Likewise.
18316 (MMX_CLASS_P): Likewise.
18317 (MAYBE_INTEGER_CLASS_P): Likewise.
18318 (MAYBE_FLOAT_CLASS_P): Likewise.
18319 (MAYBE_SSE_CLASS_P): Likewise.
18320 (MAYBE_MMX_CLASS_P): Likewise.
18321 (Q_CLASS_P): Likewise.
18322 (GENERAL_REGNO_P): Uppercase macro parameter.
18323 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
18324 (FP_REGNO_P): Likewise.
18325 (ANY_FP_REGNO_P): Uppercase macro parameter.
18326 (SSE_REGNO_P): Likewise.
18327 (SSE_REGNO): Likewise.
18328 (SSE_REG_P): Likewise.
18329 (SSE_FLOAT_MODE_P): Likewise.
18330 (MMX_REGNO_P): Likewise.
18331 (MMX_REG_P):Likewise.
18332 (STACK_REG_P): Likewise.
18333 (NON_STACK_REG_P): Likewise.
18334 (STACK_TOP_P): Likewise.
18335 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
18336 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
18337 (SECONDARY_MEMORY_NEEDED): Likewise.
18338 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
18339 (MD_ASM_CLOBBERS): Whitespace and wrap.
18340 (MUST_PASS_IN_STACK): Whitespace and wrap.
18341 (RETURN_POPS_ARGS): Add parenthesis.
18342 (INIT_CUMULATIVE_ARGS): Likewise.
18343 (FUNCTION_ARG): Likewise.
18344 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
18345 (SETUP_INCOMING_VARARGS): Likewise.
18346 (BUILD_VA_LIST_TYPE): Add parenthesis.
18347 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
18348 parenthsis.
18349 (EXPAND_BUILTIN_VA_ARG): Likewise.
18350 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
18351 (INITIALIZE_TRAMPOLINE): Add parenthesis.
18352 (INITIAL_ELIMINATION_OFFSET): Likewise.
18353 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
18354 (REGNO_OK_FOR_BASE_P): Likewise.
18355 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
18356 (REGNO_OK_FOR_DIREG_P): Likewise.
18357 (REG_OK_FOR_INDEX_P): Whitespace.
18358 (REG_OK_FOR_BASE_P): Whitespace.
18359 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
18360 parenthesis.
18361 (FIND_BASE_TERM): Fix typo.
18362 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
18363 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
18364 (SYMBOLIC_CONST; Whitespace.
18365 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
18366 (ENCODE_SECTION_INFO): Whitespace.
18367 (FINALIZE_PIC): Remove do { ... } while (0).
18368 (PROMOTE_MODE): Wrap in do { ... } while (0).
18369 (CONST_COSTS): Whitespace.
18370 (RTX_COSTS): Add paramethesis, whitespace and wrap.
18371 (REGISTER_MOVE_COST): Add parenthesis.
18372 (MEMORY_MOVE_COST): Likewise.
18373 (EXTRA_CC_MODES): Whitespace.
18374 (SELECT_CC_MODE): Add parenthesis and whitespace.
18375 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
18376 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
18377 (ASM_OUTPUT_LABEL): Add paramethesis.
18378 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
18379 (ASM_OUTPUT_REG_POP): Likewise.
18380 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
18381 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
d9a5f180 18382
07933f72
GS
18383 * config/i386/i386.c: Update copyright.
18384 (CHECK_STACK_LIMIT): Add parenthesis.
18385 (AT_BP): Uppercase macro parameter.
18386 (x86_64_int_parameter_registers): Constify.
18387 (x86_64_int_return_registers): Likewise.
18388 (ix86_compare_op0): Use rtx.
18389 (construct_container): Constify INTREG parameter.
18390 (function_arg): Use rtx.
18391
0b4d32c9
GS
18392 * diagnostic.h: Update copyright date.
18393 (output_buffer_state): Add parenthesis.
18394 (output_buffer_format_args): Likewise.
18395
6253d571
GS
18396 * combine.c (combine_instructions): Replace XEXP (links, 0)
18397 with link.
18398
68f3f6f1
L
183992002-01-06 H.J. Lu <hjl@gnu.org>
18400
18401 * cfgcleanup.c (thread_jump): Fix 2 typos.
18402
184032002-01-06 Aldy Hernandez <aldyh@redhat.com>
480f7f3a 18404
0d24f4d1 18405 * config.gcc: Add support for --enable-altivec.
480f7f3a 18406
13b8c631
CR
184072002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18408
18409 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
18410
58ad89b1
JJ
184112002-01-06 Jakub Jelinek <jakub@redhat.com>
18412
18413 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
18414 __objc_class_name_*.
18415
e403b4bc
CR
184162002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18417
18418 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
18419
e41c7831
RH
184202002-01-06 Richard Henderson <rth@redhat.com>
18421
18422 * reorg.c (emit_delay_sequence): Remove death notes, not merely
18423 nop them out. Increment label reference count for REG_LABEL.
18424 (fill_slots_from_thread): Frob label reference count around
18425 delete_related_insns.
18426
3b3b1e32
RH
184272002-01-05 Richard Henderson <rth@redhat.com>
18428
18429 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
18430 jump threading.
18431
c28abdf0
RH
184322002-01-05 Richard Henderson <rth@redhat.com>
18433
18434 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
18435 * integrate.c (output_inline_function): Likewise.
18436 * toplev.c (rest_of_compilation): Do it here instead. Move call
18437 to remove_unnecessary_notes after emitting abstract instance.
18438 Force an emitted nested function to have its parent emited as well.
18439 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
18440 for null.
18441 (rtl_for_decl_location): Do not look at reload data structures
18442 before reload has run.
18443
c4f2c499
KH
184442002-01-05 Kazu Hirata <kazu@hxi.com>
18445
18446 * cse.c: Fix formatting.
18447 * dwarf2asm.c: Likewise.
18448 * dwarf2out.c: Likewise.
18449 * explow.c: Likewise.
18450 * expmed.c: Likewise.
18451 * function.c: Likewise.
18452 * gcov.c: Likewise.
18453 * gencheck.c: Likewise.
18454 * genrecog.c: Likewise.
18455 * ggc-common.c: Likewise.
18456 * ggc-page.c: Likewise.
18457 * global.c: Likewise.
18458
cf0d9408
KH
184592002-01-05 Kazu Hirata <kazu@hxi.com>
18460
18461 * combine.c: Fix formatting.
18462
bedca03a
CR
184632002-01-05 Craig Rodrigues <crodrigu@bbn.com>
18464
18465 PR middle-end/1557
18466 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
18467
0134bf2d
DE
184682002-01-05 David Edelsohn <edelsohn@gnu.org>
18469
18470 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
18471 as 1 for __powerpc64__ as well.
18472
18473 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
18474
18475 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
18476 return it.
18477
9ca88d5a
DB
184782002-01-05 Daniel Berlin <dan@dberlin.org>
18479
18480 * lcm.c: Revert change, due to performance regression it causes on
18481 SPEC because it's slightly more conservative (sigh, I hate
18482 edge-based LCM).
0d24f4d1 18483
1c570418
JH
18484Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
18485
18486 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
18487
d83bb9f7
NB
184882002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
18489
18490 * doc/cppinternals.texi: Update.
18491
3e0f61ac
HPN
184922002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
18493
18494 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
18495 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
18496 negatives.
18497 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
18498 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
18499 kludge for pre-october-14th mmix versions to handle new-found bug
18500 with PUSHJ/PUSHGO and the register stack.
18501 * config/mmix/mmix.h (struct machine_function): Rename member
18502 has_call_value_without_parameters to has_call_without_parameters.
18503 All referers changed.
18504 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
18505 TARGET_MASK_BRANCH_PREDICT): New macros.
18506 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
18507 -mno-reg-stack-fill-bug-workaround.
18508 * config/mmix/mmix.md ("call"): Set struct machine member
18509 has_call_without_parameters.
18510
4deaa2f8
JH
18511Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
18512
18513 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
18514
9f16e871
JH
18515Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
18516
18517 * cfgcleanup.c: Include tm_p.h
18518 (mark_effect): Fix handling of hard register; fix handling of SET
18519
96eb1157
KH
185202002-01-04 Kazu Hirata <kazu@hxi.com>
18521
18522 * config/h8300/h8300.md (anonymous patterns): Check that
18523 operands are registers before using REGNO on them.
18524
48180d68
RM
185252002-01-03 Roland McGrath <roland@frob.com>
18526
18527 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
18528
b0832fe1
JJ
185292002-01-04 Jakub Jelinek <jakub@redhat.com>
18530
18531 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
18532 * c-common.h (genrtl_expr_stmt_value): Likewise.
18533 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
18534 (expand_expr_stmt_value): Add maybe_last argument.
18535 Don't warn about statement with no effect if it is the last statement
18536 in expression statement.
18537 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
18538 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
18539 expand_expr_stmt_value.
18540 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
18541 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
18542 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
18543 as maybe_last to expand_expr_stmt_value.
18544
c1e14513
JL
18545Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
18546
0d24f4d1
ZW
18547 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
18548 be passed in, do not build it.
18549 (c_begin_if_stmt): New function.
18550 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18551 * c-common.h (c_expand_start_cond): Update prototype.
18552 (c_begin_if_stmt): Prototype new function.
18553 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18554 * c-parse.in (if_prefix): Use c_begin_if_stmt,
18555 c_begin_while_stmt and c_finish_while_stmt_cond.
c1e14513 18556
b6ec437a
WC
185572002-01-04 William Cohen <wcohen@redhat.com>
18558
18559 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
18560 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18561 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18562 * config/pa/som.h (ASM_FILE_START): Likewise.
18563
ead39bdf 185642002-01-04 Daniel Berlin <dan@cgsoftware.com>
517b711f
DB
18565
18566 * lcm.c: Include df.h.
18567 Add available_transfer_function prototype.
18568 (compute_available): Rework to use iterative dataflow framework.
18569 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
18570 with bb_info in df.h
18571 (available_transfer_function): New function.
18572
18573 * Makefile.in (lcm.o): add df.h to dependencies.
18574
551cc6fd
RH
185752002-01-04 Richard Henderson <rth@redhat.com>
18576
18577 * config/alpha/alpha.c (some_operand): Accept HIGH.
18578 (input_operand): Likewise; accept simple references to globals.
18579 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
18580 (alpha_const_double_ok_for_letter_p): Likewise.
18581 (alpha_extra_constraint): Likewise.
18582 (alpha_preferred_reload_class): Likewise. Do not force
18583 symbolic constants to memory.
18584 (alpha_legitimate_address_p): Accept simple references
18585 to small_symbolic_operand.
18586 (alpha_legitimize_address): New arg scratch. Be prepared to be
18587 called when no_new_pseudos. Emit simple symbolic references.
18588 Split integers into low, high, and rest.
18589 (alpha_expand_mov): Use alpha_legitimize_address.
18590 (some_small_symbolic_mem_operand): New.
18591 (split_small_symbolic_mem_operand): New.
18592 * config/alpha/alpha-protos.h: Update.
18593 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
18594 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
18595 (EXTRA_CONSTRAINT): Likewise.
18596 (PREFERRED_RELOAD_CLASS): Likewise.
18597 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
18598 (PREDICATE_CODES): Update.
18599 * config/alpha/alpha.md: New post-reload splitters to convert
18600 simplfied symbolic operands to the form that references $29.
18601 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
18602 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
18603
1eaea054
RH
186042002-01-03 Richard Henderson <rth@redhat.com>
18605
18606 * local-alloc.c (function_invariant_p): Update commentary.
18607
c4cc12b7
L
186082002-01-04 H.J. Lu <hjl@gnu.org>
18609
18610 * toplev.c (rest_of_compilation): Fix a typo when calling
18611 cleanup_cfg.
18612
173bf5be
KH
186132002-01-03 Kazu Hirata <kazu@hxi.com>
18614
18615 * c-common.c: Fix formatting.
18616 * diagnostic.c: Likewise.
18617 * doloop.c: Likewise.
18618 * dwarf2out.c: Likewise.
18619
187462ac
KH
186202002-01-03 Kazu Hirata <kazu@hxi.com>
18621
18622 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
18623 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
18624
5d8ebbd8
NB
186252002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18626
18627 * cpperror.c: Update comments and copyright.
18628 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
18629 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
18630
518c1311
JDA
186312002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
18632
18633 * collect2.c (main): Use strcmp when testing for "-shared".
18634
d15a58c0
NB
186352002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18636
18637 * cppmacro.c: Don't include intl.h. Update comments.
18638 (new_number_token): Allocate enough buffer for 64-bit unsigned
18639 integers; update prototype.
18640 * cppmain.c: Update comments.
18641
70f4f91c
WC
186422002-01-03 William Cohen <wcohen@redhat.com>
18643
18644 * function.h (struct function): Add profile.
18645 (current_function_profile): New.
18646 doc/extend.texi: Update documentation.
18647 * final.c (final_start_function): Use current_function_profile
18648 instead of profile_flag.
18649 (profile_after_prologue): Likewise.
18650 * function.c (expand_function_start): Likewise.
18651 (expand_function_start): Likewise.
c4cc12b7 18652 * config/alpha/alpha.c (direct_call_operand):
70f4f91c
WC
18653 (alpha_does_function_need_gp): Likewise.
18654 (alpha_expand_prologue): Likewise.
18655 * config/arm/arm.c (arm_expand_prologue): Likewise.
18656 thumb_expand_prologue: Likewise.
18657 * config/d30v/d30v.c (d30v_stack_info): Likewise.
18658 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
18659 (fr30_expand_prologue): Likewise.
18660 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
18661 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
18662 * config/i386/i386.h (FINALIZE_PIC): Likewise.
18663 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
18664 * config/i960/i960.c (i960_output_function_prologue): Likewise.
18665 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
18666 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
18667 (m32r_expand_prologue): Likewise.
18668 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
18669 (m88k_expand_prologue): Likewise.
18670 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
18671 * config/mips/mips.c (compute_frame_size): Likewise.
18672 (mips_expand_prologue): Likewise.
18673 (mips_can_use_return_insn): Likewise.
18674 * config/pa/elf.h (ASM_FILE_START): Likewise.
18675 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18676 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18677 * config/pa/som.h (ASM_FILE_START): Likewise.
18678 * config/romp/romp.c (romp_using_r14): Likewise.
18679 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
18680 (rs6000_stack_info): Likewise.
18681 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2fd17409 18682 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
70f4f91c
WC
18683 * config/v850/v850.c (compute_register_save_size): Likewise.
18684
cb1ac742
JJ
186852002-01-03 Jakub Jelinek <jakub@redhat.com>
18686
18687 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
18688 gen_lowpart_common fails, use gen_lowpart_SUBREG.
18689
61d951df 186902002-01-03 Turly O'Connor <turly@apple.com>
cb1ac742 18691
61d951df
TC
18692 * darwin.c (machopic_output_possible_stub_label): Don't generate
18693 stub routines for pseudo-stubs which we've just defined.
18694
505ddab6
KH
186952002-01-03 Kazu Hirata <kazu@hxi.com>
18696
18697 * builtins.c: Fix formatting.
18698 * c-typeck.c: Likewise.
18699 * combine.c: Likewise.
18700 * expr.c: Likewise.
18701 * loop.c: Likewise.
18702
b7e30d8a
AS
187032002-01-03 Andreas Schwab <schwab@suse.de>
18704
18705 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
18706 and return true if _cpp_push_next_buffer pushed a new include
18707 file.
18708 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
18709 _cpp_pop_file_buffer did not push a new file.
18710 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
18711
ff81832f
EC
187122002-01-02 Eric Christopher <echristo@redhat.com>
18713
18714 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
18715 FIND_REG_INC_NOTE call. Update copyright.
18716 * loop.c (canonicalize_condition): Ditto.
18717 * reorg.c (delete_scheduled_jump): Ditto.
18718
8e42ace1
KH
187192002-01-03 Kazu Hirata <kazu@hxi.com>
18720
18721 * gcse.c: Fix formatting.
18722
fb2bf631
GS
187232002-01-03 Graham Stott <grahams@redhat.com>
18724
18725 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
18726 forward defs for struct tags rtx_def, union_tree, rtvec_def
6253d571 18727 also output corresponding typedefs for rtx, tree, and rtvec.
fb2bf631
GS
18728
18729 * system.h: Move forward defs for struct tags rtx_def, union_tree,
18730 rtvec_def along with corresponding typedefs for rtx, tree, and
6253d571 18731 rtvec to config.h, hconfig.h, tconfig.h.
fb2bf631
GS
18732
187332002-01-03 Graham Stott <grahams@redhat.com>
b9daac31
GS
18734
18735 * tree.h: Update copyright date.
18736 (IS_EXPR_CODE_CLASS): Add parenthesis.
18737 (TREE_SET_CODE): Add whitespace.
18738 (TREE_CHECK): Add parenthesis.
18739 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
18740 (CST_OR_CONSTRUCTOR_CHECK):
18741 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
18742 (TREE_SYMBOL_REFERENCED): Whitespace.
18743 (INT_CST_LT): Likewise.
18744 (INT_CST_LT_UNSIGNED): Likewise.
18745 (tree_real_cst): Unwrap comment.
18746 (tree_string): Likewise.
18747 (tree_complex): Likewise.
18748 (IDENTIFIER_POINTER): correct cast.
18749 (SAVE_EXPR_CONTEXT): Whitespace.
18750 (EXPR_WFL_FILENAME_NODE): Likewise.
18751 (EXPR_WFL_FILENAME): Remove parenthesis.
18752 (DECL_ORIGIN): Add parenthesis.
18753 (DECL_FROM_INLINE): Use NULL_TREE.
18754 (build_int_2): Whitespace.
18755 (build_type_variant): Add parenthesis.
18756
18757 * gcc/jcf-parse.c: Update copyright date.
18758 (yyparse): Constify resource_filename.
18759
f52eda29
GS
187602002-01-03 Graham Stott <grahams@redhat.com>
18761
18762 * rtl.h: Update copyright date.
18763 (RTL_CHECK1): Wrap long line.
18764 (RTL_CHECK2): Likewise.
18765 (RTL_CHECKC1): Wrap long line and whitespace.
18766 (RTL_CHECKC2): Likewise.
18767 (XWINT): Whitespace.
18768 (XINT): Likewise.
18769 (XSTR): Likewise.
18770 (XEXP): Likewise.
18771 (XVEC): Likewise.
18772 (XMODE): Likewise.
18773 (XBITMAP): Likewise.
18774 (XTREE): Likewise.
18775 (XBBDEF): Likewise.
18776 (XTMPL): Likewise.
18777 (X0WINT): Likewise.
18778 (X0INT):Likewise.
18779 (X0UINT): Likewise.
18780 (X0STR): Likewise.
18781 (X0EXP): Likewise.
18782 (X0VEC): Likewise.
18783 (X0MODE): Likewise.
18784 (X0BITMAP): Likewise.
18785 (X0TREE): Likewise.
18786 (X0BBDEF): Likewise.
18787 (X0ADVFLAGS): Likewise.
18788 (X0CSELIB): Likewise.
18789 (X0MEMATTR): Likewise.
18790 (XCWINT): Likewise.
18791 (XCINT): Likewise.
18792 (XCUINT): Likewise.
18793 (XCSTR): Likewise.
18794 (XCEXP): Likewise.
18795 (XCVEC): Likewise.
18796 (XCMODE): Likewise.
18797 (XCBITMAP): Likewise.
18798 (XCTREE): Likewise.
18799 (XCBBDEF): Likewise.
18800 (XCADVFLAGS): Likewise.
18801 (XCCSELIB): Likewise.
18802 (XC2EXP): Likewise.
18803 (INSN_UID): Likewise.
18804 (PREV_INSN): Likewise.
18805 (PATTERN): Likewise.
18806 (INSN_CODE): Likewise.
18807 (PUT_REG_NOTE_KIND): Likewise.
18808 (CODE_LABEL_NUMBER): Likewise.
18809 (NOTE_SOURCE_FILE): Likewise.
18810 (NOTE_BLOCK): Likewise.
18811 (NOTE_EH_HANDLER): Likewise.
18812 (NOTE_RANGE_INFO): Likewise.
18813 (NOTE_LIVE_INFO): Likewise.
18814 (NOTE_BASIC_BLOCK): Likewise.
18815 (NOTE_EXPECTED_VALUE): Likewise.
18816 (NOTE_LINE_NUMBER): Likewise.
18817 (LABEL_NAME): Likewise.
18818 (LABEL_NUSES): Likewise.
18819 (LABEL_ALTERNATE_NAME): Likewise.
18820 (ADDRESSOF_DECL): Likewise.
18821 (JUMP_LABEL): Likewise.
18822 (LABEL_NEXTREF): Likewise.
18823 (REGNO): Likewise.
18824 (ORIGINAL_REGNO: Likewise.
18825 (HARD_REGISTER_NUM_P): Add parenthesis.
18826 (SUBREG_REG): Whitespace.
18827 (SUBREG_BYTE): Likewise.
18828 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
18829 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
18830 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
18831 (ASM_OPERANDS_INPUT_VEC): Likewise.
18832 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
18833 (ASM_OPERANDS_INPUT): Likewise.
18834 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
18835 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
18836 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
18837 (ASM_OPERANDS_INPUT_MODE): Likewise.
18838 (ASM_OPERANDS_SOURCE_FILE): Likewise.
18839 (ASM_OPERANDS_SOURCE_LINE): Likewise.
18840 (MEM_SET_IN_STRUCT_P): Minor reformat.
18841 (TRAP_CONDITION): Whitespace.
18842 (TRAP_CODE): Likewise.
18843 (COND_EXEC_TEST): Likewise.
18844 (COND_EXEC_CODE): Likewise.
18845 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
18846 (PHI_NODE_P): Add parenthesis.
18847 (plus_constant): Whitespace and add parenthesis.
18848
e03f5d43
KH
188492002-01-03 Kazu Hirata <kazu@hxi.com>
18850
18851 * config/avr/avr.c: Fix comment typos.
18852 * config/c4x/c4x.md: Likewise.
18853 * config/dsp16xx/dsp16xx.h: Likewise.
18854 * config/dsp16xx/dsp16xx.md: Likewise.
18855 * config/i386/i386.md: Likewise.
18856 * config/ia64/ia64.c: Likewise.
18857 * config/m32r/m32r.h: Likewise.
18858 * config/m68hc11/m68hc11.md: Likewise.
18859 * config/mmix/mmix.c: Likewise.
18860 * config/mn10200/mn10200.c: Likewise.
18861 * config/romp/romp.c: Likewise.
18862 * config/sh/sh.c: Likewise.
18863 * config/stormy16/stormy16.c: Likewise.
18864 * config/stormy16/stormy16.h: Likewise.
18865 * config/stormy16/stormy16.md: Likewise.
18866
97e300e9
GS
188672002-01-03 Graham Stott <grahams@redhat.com>
18868
18869 * loop.h: Update copyright date.
0d24f4d1
ZW
18870 (LOOP_MOVABLES): Fix typo.
18871 (LOOP_REGS): Likewise.
18872 (LOOP_IVS): Likewise.
ff81832f 18873
745b26b3
GS
188742002-01-03 Graham Stott <grahams@redhat.com>
18875
18876 * cppinit.c: Update copyright date.
18877 Don't include output.h
18878 * Makefile.in: Update copyright date.
18879 Update dependency.
18880
0a379b7a
CR
188812002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
18882
18883 PR c/5226
18884 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
18885 (-pthread) Add to RS/6000 options.
18886
a8154559
KH
188872002-01-02 Kazu Hirata <kazu@hxi.com>
18888
18889 * except.c: Fix comment typos.
18890 * loop.c: Likewise.
18891 * varasm.c: Likewise.
18892 * doc/tm.texi: Fix a typo.
18893
e6ecc89b
JJ
188942002-01-02 Jakub Jelinek <jakub@redhat.com>
18895
18896 * c-typeck.c (output_init_element): Allow initializing static storage
18897 duration objects with compound literals.
18898
d1094b40
RH
188992002-01-02 Richard Henderson <rth@redhat.com>
18900
18901 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
18902 after abusing it.
18903
0c5d8c82
KG
189042002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18905
5e65297b
KG
18906 * gcc.c (default_compilers): Const-ify.
18907 * mips-tdump.c (stab_names): Likewise.
18908 * mips-tfile.c (map_coff_types, map_coff_storage,
18909 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
18910 pseudo_ops_t, pseudo_ops): Likewise.
18911 * protoize.c (default_include): Likewise
18912
0c5d8c82
KG
18913 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
18914 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
18915 Add array size in declaration.
18916 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
18917 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
18918 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
18919 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
18920 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
18921 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
18922 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
18923 emtens, make_nan): Const-ify.
18924 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
18925 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
18926
817e13c4
JM
189272002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
18928
18929 * config.gcc (ia64-*-*): Set extra_headers.
18930 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
18931 * config/alpha/t-osf: Remove.
18932 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
18933
98095e2b
DE
189342002-01-02 David Edelsohn <edelsohn@gnu.org>
18935
18936 * config/rs6000/t-aix43: Revert previous change.
18937
a4200657
JM
189382002-01-02 Jason Merrill <jason@redhat.com>
18939
18940 * c-decl.c (c_expand_body): Call outlining_inline_function when
18941 emitting an inline function out of line.
18942
54ba1f0d
RH
189432002-01-02 Richard Henderson <rth@redhat.com>
18944
18945 * dwarf2out.c (limbo_die_node): Add created_for member.
18946 (new_die): New argument created_for. Update all callers.
18947 (mark_limbo_die_list): New.
18948 (dwarf2out_init): Register limbo_die_list as a root.
18949 (dwarf2out_finish): Force insert limbo dies into their function
18950 context.
18951
323728aa
NS
189522002-01-02 Nathan Sidwell <nathan@codesourcery.com>
18953
18954 PR c++/5089
18955 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
18956
aefc5826
KH
189572002-01-02 Kazu Hirata <kazu@hxi.com>
18958
18959 * config/h8300/fixunssfsi.c: Update copyright.
18960 Fix comment typos.
18961 Fix formatting.
18962 * config/h8300/h8300.c: Update copyright.
18963 Eliminate warnings.
18964
b1c9bc51
KH
189652002-01-02 Kazu Hirata <kazu@hxi.com>
18966
18967 * config/romp/romp.c: Fix comment formatting.
18968 * config/romp/romp.h: Likewise.
18969 * config/romp/romp.md: Likewise.
18970 * config/s390/s390.c: Likewise.
18971 * config/stormy16/stormy16.c: Likewise.
18972 * config/stormy16/stormy16.h: Likewise.
18973
1574ef13
AO
189742002-01-02 Alexandre Oliva <aoliva@redhat.com>
18975
18976 * c-common.h (genrtl_expr_stmt_value): Declare.
18977 * c-semantics.c (genrtl_goto_stmt): Redirect to...
18978 (genrtl_goto_stmt_value): ... this new function. Pass new
18979 argument down to expand_expr_stmt_value, taking
18980 TREE_ADDRESSABLE into account.
18981 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
18982 STMT_EXPR as addressable, i.e., one whose result we want.
18983 * expr.c (expand_expr): Don't save expression statement value
18984 of labeled_blocks or loop_exprs.
18985 * stmt.c (expand_expr_stmt): Redirect to...
18986 (expand_expr_stmt_value): ... this new function. Use new
18987 argument to tell whether to save expression value.
18988 (expand_end_stmt_expr): Reset last_expr_type and
18989 last_expr_value if we don't have either.
18990 * tree-inline.c (declare_return_variable): Mark its use
18991 statement as addressable.
18992 * tree.h: Document new use of TREE_ADDRESSABLE.
18993 (expand_expr_stmt_value): Declare.
18994
252b88f7
TR
189952002-01-01 Tom Rix <trix@redhat.com>
18996
18997 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
18998 rs6000_emit_allocate_stack.
18999
29f7a208
JM
190002002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
19001
19002 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
19003 ${srcdir}/ginclude/ to every entry in extra_headers.
19004 * configure: Regenerate.
19005 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
19006 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
19007 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
19008 * ginclude/proto.h: Rename to config/convex/proto.h.
19009
2cc2d4bb
RK
19010Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19011
19012 * attribs.c (handle_vector_size_attribute): Use host_integerp
19013 and tree_int_cst; remove warnings.
19014 * caller-save.c (insert_restore): Add cast to get rid of warning.
19015 (insert_save): Likewise.
19016 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
19017 * regmove.c (find_matches): Add temporary var to kill a warning.
19018
f01c9bcd
DR
190192002-01-01 Douglas B Rupp <rupp@gnat.com>
19020
16b61764
DR
19021 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
19022 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
19023 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
19024 (vms-dwarf2eh.o): Add Makefile rule.
19025 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
19026 * config/alpha/vms-dwarf2eh.asm: New file.
19027
f01c9bcd
DR
19028 * gcc.c (delete_if_ordinary): Delete all versions.
19029
91312b81
HPN
190302002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
19031
19032 * config/mmix/mmix.md: Update FIXME to not mention
19033 define_constants.
19034 (MMIX_rJ_REGNUM): New define_constants constant.
19035 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
19036 "*movdicc_real"): Adjust contraints formatting.
19037 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
19038 for branch prediction.
19039 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
19040 output template.
19041 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
19042 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
19043 number. Delete related FIXMEs.
19044 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
19045 from number to MMIX_rJ_REGNUM.
19046 (TARGET_MASK_BRANCH_PREDICT): New.
19047 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
19048 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
19049 value. Add -mbranch-predict and -mno-branch-predict.
19050 (TARGET_VERSION): Drop date.
19051 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
19052 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
19053 for finding out global symbols.
19054 (mmix_asm_output_labelref): Revert condition for global symbol.
19055 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
19056 (mmix_print_operand_punct_valid_p): A '+' is valid.
19057
619acae7 19058See ChangeLog.6 for earlier changes.