m68hc11.c (register_indirect_p): For 68HC12 a constant can be a valid address.
[gcc.git] / gcc / ChangeLog
1 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
2
3 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
4 can be a valid address.
5
6 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
7
8 * config/rs6000/rs6000.c: Remove unusued variables from last
9 patch.
10
11 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
12
13 Revert:
14 * config/rs6000/rs6000.c (rs6000_override_options): Move
15 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
16
17 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
18
19 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
20 lvx/stv/dst builtins...
21 (altivec_expand_ld_builtin): ...to here.
22 (altivec_expand_st_builtin): ...here.
23 (altivec_expand_dst_builtin): ...and here (respectively).
24
25 2002-06-28 Bob Wilson <bob.wilson@acm.org>
26
27 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
28
29 2001-06-08 Bernd Schmidt <bernds@redhat.com>
30
31 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
32 subregs.
33 * recog.c (general_operand, register_operand): Disallow them.
34
35 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
36
37 PR preprocessor/7138
38 * cpplib.c (_cpp_handle_directive): Do traditional
39 preparation after setting state.angled_headers.
40 * cpptrad.c (scan_out_logical_line): Fix potential
41 quote bug.
42
43 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
44
45 * config/rs6000/rs6000.c (rs6000_override_options): Move
46 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
47
48 2002-06-27 Bob Wilson <bob.wilson@acm.org>
49
50 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
51 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
52 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
53
54 2002-06-27 Roger Sayle <roger@eyesopen.com>
55
56 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
57 * config/stormy16/stormy16.h: Likewise.
58
59 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
60 with #define.
61
62 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
63
64 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
65 Hitachi entry. Make punctuation more consistent.
66
67 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
68
69 * doc/install.texi: Change ` bit' to `-bit'.
70 * doc/md.texi: Change `-bits' to `-bit'.
71 * doc/tm.texi: Change `-bits' to ` bits'.
72
73 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
74
75 * gcse.c (hoist_code): Rewrite to only get list of dominated
76 blocks once per BB. Also fix reversed test (by removing need for
77 the test at all).
78
79 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
80
81 * cpphash.h (_cpp_set_trad_context): Remove.
82 * cpplib.c (prepare_directive_trad): Do nothing for #define.
83 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
84 * cpptrad.c: Update comments.
85 (_cpp_read_logical_line_trad): Let scan_logical_line handle
86 updating the current context.
87 (scan_logical_line): Update the current context.
88 (_cpp_create_trad_definition): Similarly.
89 (_cpp_set_trad_context): Remove.
90
91 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
92
93 PR preprocessor/7070
94 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
95
96 2002-06-26 Bob Wilson <bob.wilson@acm.org>
97
98 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
99 config/xtensa/xtensa.c (xtensa_return_addr): New function.
100 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
101 config/xtensa/xtensa.md (fix_return_addr): New pattern.
102
103 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
104
105 * mips.c (coprocessor_operand, coprocessor2_operand,
106 symbolic_operand): Move prototypes from here...
107 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
108 symbolic_operand): ...to here.
109
110 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
111
112 * config/sh/crt1.asm: remove _stack label definition
113 and sentinel value.
114
115 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
116
117 * varasm.c: Include real.h before output.h.
118
119 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
120
121 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
122 check for TARGET_ALTIVEC.
123
124 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
125
126 * config.gcc (vax-*-vms*): Make obselete.
127
128 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
129
130 * gcc.c (warn_std): Delete.
131
132 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
133
134 * doc/extend.texi: Fix formatting of last checkin.
135
136 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
137
138 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
139 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
140
141 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
142
143 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
144 discrepancies from motorola's documentation.
145
146 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
147
148 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
149 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
150
151 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
152 produce a 32 bit result before normalization, then normalize with a
153 left shift. Compute approximative error of 2nd reciprocal
154 approximation in 2's complement. Fix mask generation from upper
155 longword of second divide stage result.
156 For large divisor, fix shift count used to truncate first stage
157 divide result; make decision if to adjust upwards based on comparison
158 of higher parts of normalized values.
159 (udivdi): Likewise. Undo normalization of result for large divisor
160 case.
161
162 2002-06-25 David S. Miller <davem@redhat.com>
163
164 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
165
166 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
167
168 * cpplib.c (do_include_common): Revert to correct line number
169 if -traditional.
170 * cpptrad.c (scan_out_logical_line): Treat null directive as
171 white space. Invlidate MI optimization for non-whitespace
172 text outside a directive.
173
174 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
175
176 * Makefile.in (SHELL): Set to @SHELL@.
177 * fixinc/Makefile.in (SHELL): Likewise.
178
179 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
180 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
181 initialization.
182
183 2002-06-24 Jeff Law <law@redhat.com>
184
185 * flow.c (propagate_one_insn): When removing an insn
186 with a REG_LIBCALL note but not the entire libcall sequence,
187 delete the associated REG_RETVAL note.
188
189 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
190
191 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
192 (udivsi3): Likewise. Rewrite SH1 implementation.
193 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
194 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
195 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
196 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
197 (_moddi3): Likewise.
198
199 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
200
201 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
202 arguments into account for stack_regs.
203
204 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
205
206 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
207 in examples.
208
209 2002-06-24 Art Haas <ahaas@neosoft.com>
210
211 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
212 * doc/tm.texi (Frame Layout): Likewise.
213
214 2002-06-20 Steve Ellcey <sje@cup.hp.com>
215 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
216 Set float_format to i128.
217
218 2002-06-24 David S. Miller <davem@redhat.com>
219
220 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
221 32-bit ABI libfuncs to NULL.
222
223 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
224 strings instead of quoted strings for code blocks.
225
226 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
227 optabs if op1 is const0_rtx.
228
229 * Makefile.in (GTFILES): Add basic-block.h
230 * basic-block.h (label_value_list, tail_recursion_label_list):
231 Mark with GTY.
232
233 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
234
235 * cpptrad.c (scan_out_logical_line): Check recursing only when
236 we know we have a macro invocation in the function-like case.
237 Only call _cpp_handle_directive if we know we have a good
238 directive, or we want to reject a bad directive.
239
240 2002-06-24 Alan Modra <amodra@bigpond.net.au>
241
242 * doloop.c (doloop_valid_p): Correct comment.
243 (doloop_modify_runtime <abs_inc != 1>): Simplify.
244 (doloop_modify_runtime <do-while>): Don't emit code when NE.
245
246 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
247
248 * config.gcc: Add support for ip2k.
249
250 2002-06-23 Jan Hubicka <jh@suse.cz>
251 Jeff Law <law@redhat.com>
252
253 * function.h (struct emit_status): Clarify potential contents
254 of regno_reg_rtx array.
255 * integrate.c (copy_rtx_and_substitute): Update comments. Make
256 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
257
258 * reg-stack.c (convert_regs_exit): Push the registers to stack in
259 proper order.
260
261 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
262
263 PR middle-end/6963
264 * function.c (assign_stack_temp_for_type): Do not return
265 the same MEM rtx for multiple uses of a stack slot.
266
267 2002-06-22 David S. Miller <davem@redhat.com>
268
269 PR target/6841 target/6770 target/6719
270 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
271 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
272 GENERAL_OR_EXTRA_FP_REGS.
273
274 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
275
276 * cpptrad.c (struct fun_macro): Add line number.
277 (scan_out_logical_line): Set it, and use it to report unterminated
278 macro invocations.
279
280 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
281
282 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
283 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
284 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
285 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
286 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
287 REGEXP_ONEOF, check_name): Const-ify.
288
289 2002-06-21 Matt Thomas <matt@3am-software.com>
290
291 * config/vax/vax.c (vax_output_function_prologue): Use
292 REGISTER_PREFIX. Fix some indentation.
293 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
294 (VAX_ISTREAM_SYNC): Define.
295 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
296 i-stream sync to the end.
297 (REGISTER_PREFIX): Define as "".
298 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
299
300 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
301
302 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
303 configurations.
304
305 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
306
307 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
308 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
309
310 2002-06-21 Matt Thomas <matt@3am-software.com>
311
312 * config/vax/netbsd.h: Adjust a comment.
313 (TARGET_DEFAULT): Redefine as 0.
314
315 2002-06-21 Richard Henderson <rth@redhat.com>
316
317 * bb-reorder.c (make_reorder_chain_1): Search harder for the
318 vax casesi fallthru edge.
319 * cfglayout.c (cleanup_unconditional_jumps): Use
320 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
321 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
322 block after ADDR_VEC.
323
324 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
325
326 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
327
328 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
329
330 * cpperror.c (cpp_error): For traditional CPP, default to
331 diagnostics on pfile->line.
332 * cpplib.c (prepare_directive_trad): Set line number for
333 diagnostics for #define too.
334 * cpptrad.c (skip_whitespace): Skip comments properly.
335 (_cpp_expansions_different_trad): Initialize quote2.
336
337 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
338
339 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
340 * config/mmix/mmix.h: Ditto.
341 * config/mmix/mmix-protos.h: Ditto.
342 * config/mmix/mmix.c: Ditto. Fix typo in comment.
343 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
344 comment. Comment extra CC modes.
345
346 2002-06-20 Jan Hubicka <jh@suse.cz>
347
348 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
349 (scope_to_insns_finalize): Do not call set_block_levels; handle
350 sequences.
351 (choose_inner_scope): New.
352 * rtl.h (choose_inner_scope): Declare.
353
354 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
355
356 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
357 HOST_WIDE_INT.
358 * pa.c (pa_asm_output_mi_thunk): Likewise.
359 (n_deferred_plabels): Change type to size_t.
360 (output_deferred_plabels, output_call): Use size_t instead of int.
361
362 2002-06-20 Richard Henderson <rth@redhat.com>
363
364 PR target/4041
365 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
366 pattern and adjust constraints for coldfire.
367
368 2002-06-20 Richard Henderson <rth@redhat.com>
369
370 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
371
372 2002-06-20 Chris Demetriou <cgd@broadcom.com>
373
374 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
375
376 2002-06-20 Chris Demetriou <cgd@broadcom.com>
377
378 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
379
380 2002-06-20 Stan Shebs <shebs@apple.com>
381
382 * dominance.c: Include errors.h instead of error.h.
383
384 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
385
386 * cppexp.c (cpp_interpret_integer): Don't force traditional
387 numbers to be unsigned.
388 * cpplib.c (prepare_directive_trad): Set line number for
389 diagnostics.
390 * cpptrad.c (scan_out_logical_line): Continue scanning out
391 at start of buffer.
392 * gcc.c (trad_capable_cpp): Use cc1 always.
393
394 2002-06-20 Jeffrey Law <law@redhat.com>
395
396 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
397 elimination in leaf functions by default yet.
398
399 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
400
401 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
402
403 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
404
405 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
406 multilibs.
407 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
408 Fixes PR other/6836.
409
410 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
411 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
412
413 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
414
415 * basic-block.h: Do not include et-forest.h
416 (dominance_info): Declare as struct dominance-info.
417 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
418 deleting block.
419 * dominance.c (struct dominance_info): Define.
420 (BB_NODE, SET_BB_NODE): New macros.
421 (bb_hash_func, bb_eq_func): Kill.
422 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
423 nearest_common_dominator, dominated_by_p, recount_dominator,
424 add_to_dominance_info, delete_from_dominance_info): update for new
425 representation.
426 (get_dominated_by, redirect_immediate_dominators): Rewrite using
427 enumerate_sons.
428 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
429 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
430 structure.
431
432 * et-forest.h: Update copyright; revamp all function to operate on
433 nodes
434 (et_forest_value): Kill.
435 (et_forest_enumerate_sons, et_forest_node_value): New.
436 * et-forest.c: Update copyright.
437 * et-forest.h: Update copyright; revamp all function to operate on
438 nodes
439 (et_forest_value): Kill.
440 (et_forest_enumerate_sons, et_forest_node_value): New.
441
442 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
443
444 * basic-block.h: Inlude et-forest.h
445 (basic_block_def): Kill dominator.
446 (dominance_info): New type.
447 (loops): Use dominace_info.
448 (dominace handling functions): Take dominace_info as argument
449 instead of bitmaps.
450 (create_preheader): Likewise.
451 * cfg.c (entry_exit_blocks): Kill dominator.
452 (dump_flow_info): Do not dump dominators.
453 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
454 dominators.
455 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
456 (flow_loops_pre_header_scan, make_forwarder_block,
457 canonicale_loop_headers, flow_loops_find): Likewise.
458 * dominance.c: Include error.h
459 (idoms_to_doms): Kill.
460 (bb_hash_func, bb_eq_func): New static functions.
461 (debug_dominace_info): New global function.
462 (calculate_dominance_info): Use new et forest structure.
463 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
464 get_dominated_by, redirect_immediate_dominators,
465 nearest_common_dominator, dominated_by_p, verify_dominators,
466 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
467 delete_from_dominance_info): New global functions.
468 * gcse.c (domnators): CHange to dominance_info.
469 (alloc_hoist_mem): Do not alloc dominators
470 (free_code_hoist_mem): Use free_dominance_info.
471 (compute_code_hoist_data): Use dominance_info.
472 (hoist_code): Likewise.
473 * ifcvt.c (post_dominators): Likewise.
474 (find_if_case_2, if_convert): Likewise.
475 * predict.c (process_note_predictions, process_note_prediction,
476 estimate-probability): Likewise.
477 * sched-rgn.c (find_rgns, init_regions): Likewise.
478 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
479 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
480 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
481 find_evaluations, convert_to_ssa): Likewise.
482 * ssa.h (compute_dominance_frontiers): Likewise.
483
484 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
485
486 * Makefile.in (et-forest.c): Add.
487 * et-forest.c: New file.
488 * at-forest.h: New file.
489
490 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
491
492 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
493 array size calculation.
494 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
495 Likewise.
496
497 * diagnostic.c (diagnostic_kind_text): Const-ify.
498 * gengtype.c (lang_names): Likewise.
499
500 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
501
502 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
503
504 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
505
506 * config/sol2.h: New file.
507 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
508 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
509 (sparc-*-chorusos*): Likewise.
510 (sparc-*-elf*): Likewise.
511 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
512 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
513 (sparc-hal-solaris2*): Likewise.
514 (sparc-*-solaris2*): Likewise.
515 (sparclite-*-elf*): Likewise.
516 (sparc86x-*-elf*): Likewise.
517 (sparc64-*-elf*): Likewise.
518
519 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
520 config/sol2.h.
521 (ASM_SPEC): Override config/sol2.h version for now.
522 Removed obsolete GAS_REJECTS_MINUS_S variant.
523 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
524 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
525 (TARGET_OS_CPP_BUILTINS): Likewise.
526 Assert system=unix.
527 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
528 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
529 config/sol2.h.
530 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
531 (ASM_CPU_SPEC): Define.
532 (SUBTARGET_EXTRA_SPECS): Define.
533
534 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
535 in config/sparc/sol2.h.
536 (ASM_SPEC): Moved to config/sol2.h.
537 (CPP_CPU_SPEC): Simplified.
538 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
539 consistency.
540 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
541 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
542 STARTFILE_ARCH64_SPEC.
543 (STARTFILE_SPEC): Moved to config/sol2.h
544 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
545 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
546 (LINK_ARCH64_SPEC): Simplified.
547 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
548 (LINK_SPEC): Moved to config/sol2.h
549
550 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
551 config/sol2.h.
552 Use BITS_PER_WORD for size.
553 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
554 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
555 (CPP_PREDEFINES): Removed OS-specific part handled by
556 TARGET_OS_CPP_BUILTINS.
557 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
558 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
559 (ASM_SPEC): Moved to config/sol2.h.
560 (PREFERRED_DEBUGGING_TYPE): Likewise.
561 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
562 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
563 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
564 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
565
566 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
567 * config/i386/sol2gas.h: Removed.
568
569 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
570
571 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
572
573 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
574
575 * gcc.c-torture/execute/simd-1.c: New.
576
577 * gcc.dg/simd-1.c: New.
578
579 * doc/extend.texi (Vector Extensions): Document that we can
580 specify simd types not specifically supported by the hardware.
581 Document that simd types can be used as function arguments.
582 Document that signness does make a difference in SIMD types.
583 Misc cleanups and revisions to the vector extensions section.
584
585 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
586 constants.
587
588 * expr.c (vector_mode_valid_p): New.
589
590 * expr.h: Add vector_mode_valid_p.
591
592 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
593
594 * c-common.c (type_for_mode): Always build vector nodes regardless
595 of VECTOR_MODE_SUPPORTED_P.
596 (handle_mode_attribute): Error if we can't emulate a nonexisting
597 vector mode.
598 (handle_vector_size_attribute): Same.
599
600 * optabs.c (expand_binop): Open-code vector operations.
601 (expand_unop): Open-code vector unops.
602 (expand_vector_binop): New.
603 (expand_vector_unop): New.
604
605 * c-typeck.c (build_binary_op): Allow vectors in binops.
606 Allow vectors in conditional operatiors.
607 (build_unary_op): Allow vectors in unary minus.
608
609 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
610 TARGET_ALTIVEC.
611
612 2002-05-20 Richard Henderson <rth@redhat.com>
613
614 * c-common.c (c_common_get_alias_set): Correctly handle characters.
615 Rearrange order of expressions; don't handle vectors here.
616 * alias.c (get_alias_set): Let vectors match their components.
617
618 2002-06-19 Chris Demetriou <cgd@broadcom.com>
619
620 * config/mips/mips.c (mips_emit_prefetch): Use hints which
621 match desired locality.
622
623 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
624
625 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
626 (h8300_insert_attributes): New.
627
628 2002-06-19 Akim Demaille <akim@epita.fr>
629
630 * c-parse.in (initelt: identifier ':' initval): Add an empty
631 action to fix a type clash.
632 (aliasdecl, classdef): Add the missing closing `;'.
633 Whitespace changes.
634 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
635 $$ = $1 type clashes.
636
637 2002-06-19 Eric Christopher <echristo@redhat.com>
638
639 * config/mips/mips.c (symbol_operand): New function.
640 (mips_emit_prefetch): Ditto.
641 * config/mips/mips-protos.h: Define.
642 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
643 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
644 (LEGITIMIZE_ADDRESS): Ditto.
645 * config/mips/mips.md (prefetch, prefetch_si_address,
646 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
647
648 2002-06-19 Eric Christopher <echristo@redhat.com>
649
650 * config/fp-bit.h: Add unordered defines for gofast.
651
652 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
653
654 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
655 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
656 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
657 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
658 checking and without it.
659 (decl_name, decl_mode_check_failed, regexp_name,
660 regexp_mode_check_failed): New functions.
661 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
662 gen_presence_set, gen_absence_set, gen_automaton,
663 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
664 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
665 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
666 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
667 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
668 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
669 (decl_hash, decl_eq_p): Use the macros.
670 (find_decl): Ditto. Set up mode of work_decl.
671 (process_excls, process_presence_absence, process_decls,
672 check_automaton_usage, process_regexp, process_regexp_decls,
673 check_usage, loop_in_regexp, check_loops_in_regexps,
674 process_regexp_cycles, add_advance_cycle_insn_decl,
675 initiate_states, initiate_excl_sets,
676 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
677 transform_2): Use the macros.
678 (transform_3): Ditto. Check mode before making transformations of
679 ALLOF.
680 (regexp_transform_func, transform_insn_regexps,
681 process_unit_to_form_the_same_automaton_unit_lists,
682 form_the_same_automaton_unit_lists_from_regexp,
683 form_the_same_automaton_unit_lists,
684 process_seq_for_forming_states, process_alts_for_forming_states,
685 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
686 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
687 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
688 units_to_automata_heuristic_distr, create_ainsns,
689 units_to_automata_distr, create_automata): Use the macros.
690 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
691 (longest_path_length, min_issue_delay_pass_states,
692 output_dead_lock_vect, output_tables, output_insn_code_cases,
693 output_internal_insn_latency_func, output_print_reservation_func,
694 output_description, output_automaton_units, generate): Use the
695 macros.
696 (make_insn_alts_attr): Ditto. Check case when there are not
697 alternatives in the reservation.
698 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
699 make_bypass_attr, form_important_insn_automata_lists,
700 expand_automata): Use the macros.
701
702 2002-06-20 Tim Josling <tej@melbpc.org.au>
703
704 * Makefile.in: Clean up code to check for misspecified languages
705 in enable-languages.
706
707 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
708
709 * cpptrad.c (_cpp_replacement_text_len): initialize len.
710
711 2002-06-19 Jason Merrill <jason@redhat.com>
712
713 * Makefile.in (unstrap, restrap): New targets.
714 (bootstrap): Mention restrap.
715
716 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
717
718 * except.c (ehl_free): Remove.
719
720 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
721 builtin_define and builtin_define_std.
722
723 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
724
725 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
726 (sCOND): Restrict operand class so that gcc knows how to reload them.
727 (bitfield_set): Merge two unnamed insn's using alternatives.
728 (call_value): Remove constraint on unused uperand.
729 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
730 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
731
732 * longlong.h (count_trailing_zeros): Escape newline and beautify.
733
734 2002-06-19 Mark Mitchell <mark@codesourcery.com>
735
736 * Makefile.in (QMTEST_DIR): Simplify definition.
737
738 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
739
740 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
741 #define.
742
743 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
744
745 * cpphash.h (struct cpp_reader): Make date and time strings.
746 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
747 _cpp_replacement_text_len): New.
748 * cppinit.c (cpp_create_reader): Update.
749 (init_builtins): Register appropriate builtins for -traditional-cpp.
750 * cppmacro.c (new_number_token): Remove.
751 (_cpp_builtin_macro_text): New.
752 (builtin_macro): Use it.
753 (cpp_macro_definition): Update to handle traditional macros.
754 * cppmain.c (cb_line_change): Don't do column positioning for
755 traditional output.
756 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
757 state ls_fun_close.
758 (skip_whitespace): Fix.
759 (maybe_start_funlike): Don't set state.parsing_args.
760 (scan_out_logical_line): Remove duplicate error. Use lex_state
761 rather than state.parsing_args.
762 (push_replacement_text): Handle builtins.
763 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
764
765 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
766 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
767
768 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
769 attribute __always_inline__.
770
771 2002-06-18 Bob Wilson <bob.wilson@acm.org>
772
773 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
774 when generating the call to _mcount.
775 (NO_PROFILE_COUNTERS): Define.
776
777 2002-06-18 Richard Henderson <rth@redhat.com>
778
779 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
780 2002-06-02 change.
781
782 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
783
784 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
785 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
786 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
787 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
788
789 * sh-protos.h (sh_pr_interrupt): Declare.
790 * sh.c (sh_pr_interrupt): New function.
791 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
792 (sh_hard_regno_rename_ok): Likewise.
793 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
794
795 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
796
797 * rtl.def (DEFINE_AUTOMATON): Add description of new options
798 `time' and `v'. Fix incorrect description of option `w'.
799
800 * doc/md.texi: Ditto.
801
802 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
803 (gen_automata_option): Process the new options.
804 (transform_2, transform_3): Initialize some variables.
805 (initiate_automaton_gen): Use the new macros.
806
807 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
808
809 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
810 (mips_set_return_address, mips_restore_gp): Declare.
811 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
812 (current_frame_info): Remove.
813 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
814 * config/mips/mips.c: Remove uses of current_frame_info.
815 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
816 (struct machine_function): Add 'frame' and 'insns_len'.
817 (current_frame_info, zero_frame_info): Remove.
818 (mips_restore_gp, mips_set_return_address): New.
819 (mips_initial_elimination_offset): New.
820 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
821 (eh_return define_split): Use mips_set_return_address.
822
823 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
824
825 * cpplib.c (dtable): Update.
826 (end_directive): Decrement expansion prevention count.
827 Clear state.in_expression.
828 (prepare_directive_trad): Set state.in_expression.
829 Increment expansion prevention count.
830 * cpptrad.c (enum ls): New.
831 (_cpp_overlay_buffer): Set overlaid_buffer.
832 (_cpp_remove_overlay): Use overlaid_buffer.
833 (_cpp_read_logcial_line_trad): Update buffer when it might
834 have changed.
835 (scan_out_logical_line): Handle state transitions for assertions
836 and defined() in #if, and for funlike invocations including the
837 directive case. Handle '<' and '>' as a quote mechanism in
838 #include. Warn about unterminated macro invocations.
839 * cpphash.h (struct lexer_state): New member in_expression.
840 (struct cpp_reader): New member overlaid buffer.
841
842 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
843
844 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
845 __always_inline__.
846
847 2002-06-18 Alan Modra <amodra@bigpond.net.au>
848
849 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
850
851 * doloop.c (doloop_optimize): Extract pattern from insn.
852
853 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
854
855 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
856
857 2002-06-17 Jeff Law <law@redhat.com>
858
859 * libgcc2.c: Do not include symcat.h or machmode.h.
860
861 2002-06-17 Richard Henderson <rth@redhat.com>
862
863 PR target/6922
864 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
865
866 2002-06-17 Tom Tromey <tromey@redhat.com>
867
868 * dwarfout.c: Include function.h.
869
870 2002-06-17 Andreas Schwab <schwab@suse.de>
871
872 * print-rtl.c (print_rtx): Print space before vector, not after.
873 (debug_rtx): Clear sawclose before printing.
874 (debug_rtx_list): Print newline after each list element.
875 (debug_rtx_range): Likewise.
876
877 2002-06-17 Richard Henderson <rth@redhat.com>
878
879 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
880 (current_function_funcdef_no): Similarly.
881 * function.c (funcdef_no): Similarly.
882 (prepare_function_start): Set current_function_funcdef_no.
883 (expand_function_start): Don't set current_function_profile_label_no.
884 * dwarf2out.h (current_funcdef_number): Remove.
885 * dwarf2out.c (current_funcdef_number): Remove. Replace with
886 current_function_funcdef_no throughout.
887 * dwarfout.c, vmsdbgout.c: Similarly.
888 * except.c (sjlj_funcdef_number): Remove.
889 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
890 (output_function_exception_table): Likewise.
891 * final.c (profile_function): Use current_function_funcdef_no
892 instead of current_function_profile_label_no.
893
894 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
895
896 * sched-ebb.c (init_ready_list): Check INSN_P first.
897
898 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
899
900 * sh.md (divsi3): Update way how to find insns in a sequence.
901
902 * reload1.c (merge_assigned_reloads): Don't change reloads
903 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
904 to RELOAD_OTHER when there are conflicting input reloads.
905
906 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
907
908 * function.c (epilogue_done): Correctly build a sequence of insns for
909 a sibcall epilogue.
910
911 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
912
913 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
914 #define.
915
916 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
917
918 2002-06-16 Richard Henderson <rth@redhat.com>
919
920 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
921 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
922
923 2002-06-16 Richard Henderson <rth@redhat.com>
924
925 PR opt/6722
926 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
927
928 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
929
930 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
931 * config/i386/i386-aout.h, config/i386/i386elf.h,
932 config/i386/sysv4.h: Remove CPP_PREDEFINES.
933 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
934 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
935 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
936 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
937 CPP_PREDEFINES and part of CPP_SPEC.
938 * config/i386/sysv4-cpp.h: New.
939
940 2002-06-16 Richard Henderson <rth@redhat.com>
941
942 PR c/7030
943 * dwarf2out.c (modified_type_die): Don't assign the qualified die
944 to the unqualified type.
945
946 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
947
948 * i386-protos.h (x86_field_alignment): Declare.
949 * i386.c (x86_field_alignment): Define.
950 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
951 (BIGGEST_FIELD_ALIGNMENT): Kill.
952
953 2002-06-16 Richard Henderson <rth@redhat.com>
954
955 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
956
957 2002-06-16 Richard Henderson <rth@redhat.com>
958
959 * c-common.c (flag_ms_extensions): Move from c++ front end.
960 * c-common.h (flag_ms_extensions): Declare.
961 * c-decl.c (c_decode_option): Add -fms-extensions.
962 (grokfield): Don't accept anonymous structures in ISO C mode;
963 accept only unnamed anonymous structures in GNU C mode; accept
964 Plan 9 extensions in MS mode.
965 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
966 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
967 (extension): Clear flag_iso.
968 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
969
970 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
971
972 PR target/7042
973 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
974 early if current_function_epilogue_delay_list is non-empty.
975 * config/cris/cris.md ("return"): Add sanity check asserting that
976 current_function_epilogue_delay_list is empty.
977
978 2002-06-16 Jeff Law <law@redhat.com>
979
980 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
981 sharing of hard registers.
982
983 * toplev.c (rest_of_compilation): Remove redundant conditional.
984
985 * toplev.c (rest_of_compilation): Perform a simpler, less costly
986 cleanup of the CFG when not optimizing.
987
988 2002-06-16 Alan Modra <amodra@bigpond.net.au>
989
990 * gcc.c (main): Correct startfile_prefix_spec check.
991
992 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
993
994 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
995 include both darwin.o and rs6000-c.o.
996
997 2002-06-15 Roger Sayle <roger@eyesopen.com>
998
999 * expr.c (compare_from_rtx): Call simplify_relational_operation
1000 on all comparisons, not just those between integer constants,
1001 with the correct (possibly unsigned) comparison code.
1002 (do_compare_rtx_and_jump): Likewise.
1003
1004 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
1005
1006 * Makefile.in (tm_defines): New configuration variable.
1007 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
1008 Pass tm_defines in TM_DEFINES.
1009 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
1010 * config.gcc (tm_defines): New configuration variable.
1011 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
1012 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
1013 * configure.in: Substitute tm_defines.
1014 * configure: Rebuilt.
1015 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
1016 * doc/install.texi: Update.
1017 * pa/pa-700.h: Delete file.
1018 * pa/pa-7100.h: Delete file.
1019
1020 2002-06-15 Roger Sayle <roger@eyesopen.com>
1021
1022 * fold-const.c (comparison_to_compcode): New function to convert
1023 an comparison TREE CODE into a bit-based representation.
1024 (compcode_to_comparison): New function to convert from this bit
1025 based representation back to a comparison TREE CODE.
1026 (fold_truthop): Simplify (x<y) && (x==y) and related composite
1027 comparisons.
1028
1029 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
1030
1031 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
1032
1033 * stor-layout.c (compute_record_mode): Remove check for
1034 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
1035 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
1036 MEMBER_TYPE_FORCES_BLK.
1037
1038 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
1039
1040 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
1041
1042 2002-06-14 Jeff Sturm <jsturm@one-point.com>
1043
1044 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
1045
1046 2002-06-14 Steve Ellcey <sje@cup.hp.com>
1047
1048 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
1049 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
1050 * configure, config.in: Regenerate.
1051
1052 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
1053
1054 * loop.c (check_final_value): Use v->always_executed
1055 instead of v->always_computable.
1056 * unroll.c (final_giv_value): Don't calculate the final
1057 value as a function of the biv if the giv is not computed
1058 for every loop iteration.
1059
1060 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
1061
1062 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
1063
1064 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
1065
1066 PR c/6677
1067 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
1068 the truncation down when the target type is signed.
1069 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
1070 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
1071 the conversion if the target type is a smaller type.
1072
1073 2002-06-14 Richard Henderson <rth@redhat.com>
1074
1075 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
1076 earlier. Re-factor comparisons vs extrema.
1077
1078 2002-06-14 Richard Henderson <rth@redhat.com>
1079
1080 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
1081
1082 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1083
1084 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
1085 * sched-deps.c (add_dependence): Likewise.
1086 (group_leader): Likewise.
1087 * sched-rgn.c (init_ready_list): Likewise.
1088 * doc/rtl.texi: Adjust accordingly.
1089
1090 2002-06-13 Jeffrey Law <law@redhat.com>
1091
1092 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
1093 null pointer checks were eliminated. Update prototype.
1094 (delete_null_pointer_checks): Similarly.
1095 * rtl.h (delete_null_pointer_checks): Update prototype.
1096 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
1097 delete_null_pointer_checks deletes one or more null
1098 pointer checks. Do not run cleanup_cfg before gcse, the
1099 CFG is accurate and optimized at that point..
1100
1101 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
1102 of hard registers.
1103
1104 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1105
1106 * Makefile.in (libgcc.mk): Depend on specs.
1107
1108 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
1109
1110 * sh.md (mulsi3): Update way how to find insns in a sequence.
1111
1112 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
1113
1114 * sh.h: Define HARD_REGNO_RENAME_OK
1115 * sh.c: sh_hard_regno_rename_ok: New. If current function has
1116 interrupt_handler attribute, only registers saved on stack are OK.
1117 * sh-protos.h: Declare sh_hard_regno_rename_ok.
1118
1119 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
1120
1121 * config/sh/sh.md (jump): Emit jump insn.
1122 (call_pcrel): Get pattern of the result of gen_call_site.
1123 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
1124
1125 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
1126
1127 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
1128 * cpptrad.c: Update comments.
1129 (skip_whitespace, copy_comment): Take a new parameter.
1130 (skip_escaped_newlines): Don't duplicate escaped newline test.
1131 (copy_comment): Different location for CUR, decide here how
1132 to copy / replace the comment.
1133 (skip_whitespace): Copy whitespace.
1134 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
1135 (scan_out_logical_line): Let copy comment handle keeping or
1136 replacing comments.
1137 (scan_parameters, _cpp_create_trad_definition): Update.
1138
1139 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
1140
1141 * reload.c (get_secondary_mem,find_reloads_address,
1142 find_reloads_address_1): Pass reference to MEM to find_reloads_address
1143 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
1144
1145 2002-06-13 Jessica Han <jessica@cup.hp.com>
1146
1147 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1148 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1149 * doc/tm.texi: Document them.
1150 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1151 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1152 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
1153 (ASM_OUTPUT_FDESC): Likewise.
1154
1155 2002-06-13 Eric Christopher <echristo@redhat.com>
1156
1157 * diagnostic.c (output_format): Fix thinko.
1158
1159 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
1160
1161 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
1162 (DWARF2_UNWIND_INFO): Define to 0.
1163
1164 * config/sh/sh.c (calc_live_regs): Don't use initial_value
1165 optimization for PR_MEDIA_REG.
1166
1167 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
1168
1169 * cpphash.h (_cpp_lex_identifier_trad): Remove.
1170 * cpplib.c (end_directive): Don't skip, always remove overlay
1171 apart from #define.
1172 (prepare_directive_trad): Handle NULL pfile->directive.
1173 (_cpp_handle_directive): Always call prepare_directive_trad
1174 if traditional.
1175 * cppmain.c (check_multiline_token): Rename account_for_newlines,
1176 generalize inputs.
1177 (scan_translation_unit_trad): Use it.
1178 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
1179 output, get escaped newline in comment close correct.
1180 (check_output_buffer, skip_whitespace): Update.
1181 (_cpp_lex_identifier_trad): Remove.
1182 (scan_out_logical_line): Handle -C and comments in directives
1183 properly.
1184
1185 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1186
1187 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
1188 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1189 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
1190 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
1191 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
1192 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
1193 (SELECT_SH5_COMPACT_NOFPU): Likewise.
1194 (TARGET_SWITCHES): Use them.
1195 (TARGET_CPU_DEFAULT): Define if not already defined.
1196 (TARGET_DEFAULT): Use it.
1197 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
1198 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
1199 * config/sh/t-monolib: New file.
1200
1201 2002-06-13 Roger Sayle <roger@eyesopen.com>
1202
1203 * toplev.c (rest_of_compilation): Simplify (and correct) the
1204 logic of the first delete-null-pointer-checks pass.
1205
1206 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
1207
1208 * i386.c (ix86_expand_movstr): Fix pasto.
1209
1210 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
1211
1212 * reload.c (find_valid_class): Fix thinko in my previous patch.
1213
1214 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
1215
1216 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
1217 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
1218 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
1219 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
1220
1221 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
1222
1223 * tree-inline.c (expand_call_inline): Don' mess with _DECL
1224 fields.
1225
1226 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
1227
1228 * diagnostic.c (output_format): Recognize "%H" as a format
1229 specifier for a location_t.
1230 (text_specifies_location): New function.
1231 (diagnostic_set_info): Use it.
1232
1233 2002-06-13 Jeffrey Law <law@redhat.com>
1234
1235 * emit-rtl.c (static_regno_reg_rtx): Define.
1236 (init_emit_once): Initialize static_regno_reg_rtx.
1237 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
1238 of building new hard reg objects once per function.
1239 (gen_rtx_REG): Try to share hard regs.
1240 * regclass.c (init_fake_stack_mems): New function broken out from
1241 init_regs.
1242 * rtl.h (init_fake_stack_mems): Declare.
1243 * toplev.c (lang_independent_init): Call init_regs before
1244 init_emit_once. Call init_fake_stack_mems after init_emit_once.
1245
1246 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
1247
1248 * alias.c (argument_registers): Remove.
1249 (init_alias_once): Initialize static_reg_base_value here. Remove
1250 initialization of argument_registers.
1251 (init_alias_once_per_function): Remove.
1252 (init_alias_analysis): Copy all the entries from static_reg_base_value
1253 into new_reg_base_value all at once.
1254 * rtl.h (init_alias_once_per_function): Remove declaration.
1255 * function.c (prepare_function_start): Do not call
1256 init_alias_once_per_function.
1257
1258 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
1259 starting a sequence and emitting an INSN.
1260
1261 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
1262
1263 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
1264
1265 2002-06-13 David S. Miller <davem@redhat.com>
1266
1267 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
1268
1269 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
1270
1271 * cpplib.c (end_directive): Handle line skipping. Only remove
1272 the rest of the line if the directive was valid.
1273 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
1274 expanding a traditional macro.
1275 * cpptrad.c (recursive_macro): New.
1276 (read_logical_line_trad): Handle skipping.
1277 (scan_out_logical_line): Continue after a successful directive.
1278 Don't expand macros whilst skipping, or if recursing.
1279 (_cpp_create_trad_definition): scan_out_logical_line now sets
1280 the output current position.
1281
1282 2002-06-12 Eric Christopher <echristo@redhat.com>
1283
1284 From Chris Demetriou <cgd@broadcom.com>
1285 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
1286 comment.
1287 (ISA_HAS_MADD_MSUB): Ditto.
1288 (ISA_HAS_NMADD_NMSUB): Ditto.
1289
1290 2002-06-12 Eric Christopher <echristo@redhat.com>
1291
1292 * config.gcc: Consolidate little endian handling and
1293 little/big endian targets.
1294 * config/mips/elfl.h: Remove file.
1295 * config/mips/elfl64.h: Ditto.
1296 * config/mips/ecoffl.h: Ditto.
1297 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
1298
1299 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
1300
1301 * gengtype.h (xvasprintf): New prototype.
1302 (xasprintf): New prototype.
1303 (struct outf): New.
1304 (get_output_file): Return an outf_p.
1305 (header_file): Is now an outf_p.
1306 (base_files): Now are outf_p.
1307 (oprintf): New.
1308 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
1309 rather than stdio operations. Use xasprintf in a few places,
1310 when appropriate.
1311 (xvasprintf): New.
1312 (xasprintf): New.
1313 (struct filemap): Delete.
1314 (files): Delete.
1315 (output_files): New.
1316 (oprintf): New.
1317 (create_file): Create an outf_p. Add parameter to indicate output
1318 file name, change all callers.
1319 (open_base_files): Create gtype-desc.c here.
1320 (get_output_file_with_visibility): Rewrite.
1321 (get_output_file_name): Just look at 'name' field in struct outf.
1322 (close_output_files): Rewrite.
1323
1324 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
1325
1326 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1327 (MASK_G_FLOAT): Define.
1328 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
1329 (TARGET_SWITCHES): Likewise.
1330 (TARGET_DEFAULT): Likewise.
1331
1332 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
1333
1334 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
1335 * config/mips/mips.c (mips_output_filename): Don't print a
1336 ".file" directive if we are using DWARF-2.
1337 (mips_output_function_prologue): Do not emit source file
1338 name for TARGET_GAS.
1339
1340 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
1341
1342 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
1343 decide whether emit the short opcode.
1344 * i386.h (x86_shift1): Declare.
1345 (TARGET_SHIFT1): New macro.
1346 * i386.c (x86_shift1): New global variable.
1347
1348 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
1349 unconditionally; make loop to rebuild CFG; kill unnecesary
1350 find_basic_block calls; kill compute_bb_for_insn call.
1351 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
1352 * haifa-sched.c (sched_init): Likewise.
1353 * ssa-ccp.c (ssa_const_prop): Likewise.
1354 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1355
1356 2002-06-11 David S. Miller <davem@redhat.com>
1357
1358 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
1359 active_insn_p.
1360
1361 2002-06-11 Richard Henderson <rth@redhat.com>
1362
1363 * c-common.c (builtin_define_type_max): New.
1364 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
1365 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
1366
1367 From Joseph S. Myers:
1368 * glimits.h: Rewrite to expect the double underscore definitions
1369 from the compiler.
1370
1371 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
1372 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
1373 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
1374 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1375 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
1376 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
1377 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
1378 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
1379
1380 2002-06-11 Richard Henderson <rth@redhat.com>
1381
1382 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
1383 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
1384 (code_for_builtns): Update.
1385 (alpha_init_builtins): Add __builtin_thread_pointer and
1386 __builtin_set_thread_pointer.
1387 (alpha_expand_builtin): Handle void builtins.
1388 * doc/extend.texi (Alpha Built-in Functions): Update.
1389
1390 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
1391
1392 PR target/6997
1393 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
1394
1395 2002-06-11 Zack Weinberg <zack@codesourcery.com>
1396
1397 * config.gcc: Make the name of the extra-modes file adjustable
1398 by target stanzas.
1399 (s390x, strongarm, xscale stanzas): Use this facility.
1400 * configure.in: Update to match.
1401 * configure: Regenerate.
1402
1403 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
1404
1405 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
1406 max/mins as unsigned GE compares.
1407
1408 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
1409
1410 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
1411 * config/vax/bsd.h: New file.
1412 * config/vax/netbsd.h: Add missing notice.
1413 (CPP_PREDEFINES): Remove.
1414 (TARGET_OS_CPP_BUILTINS): Define.
1415 (CPP_SPEC): Use NETBSD_CPP_SPEC.
1416 * config/vax/openbsd.h: Update copyright years.
1417 (CPP_PREDEFINES): Remove.
1418 (TARGET_OS_CPP_BUILTINS): Define.
1419 * config/vax/ultrix.h: Likewise.
1420 * config/vax/vaxv.h: Likewise.
1421 * config/vax/vms.h: Likewise.
1422 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
1423 (CPP_PREDEFINES, CPP_SPEC): Remove.
1424
1425 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
1426
1427 * i386.md (addqi_1_slp, subqi_1_slp
1428 (andqi_ext0, testqi_ext0): Remove unnecesary check.
1429 (addhi*, addqi*): Simplify "dec" condition.
1430 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
1431 (and, or, xor to QImode splitters): New.
1432 (iorqi_ext*): New.
1433 (xorqi_ext_0): New.
1434 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
1435 (andqi_ext_1_rex64): New.
1436 (ashrqi*_slp): New.
1437 (ashlqi*_slp): New.
1438 (lshlqi*_slp): New.
1439 (rotrqi3*_slp): New.
1440 (rotlqi3*_slp): New.
1441
1442 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
1443
1444 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
1445 softfloat.h.
1446 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
1447 (CPP_ENDIAN_LITTLE_SPEC): Delete.
1448 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
1449 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
1450 __LONG_DOUBLE_128__ setting, _CALL_* setting.
1451 (CPP_DEFAULT_SPEC): Delete.
1452 (CPP_FLOAT_DEFAULT_SPEC): Delete.
1453 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
1454 (CPP_SYSV_DEFAULT_SPEC): Delete.
1455 (CPP_ENDIAN_BIG_SPEC): Delete.
1456 (CPP_ENDIAN_LITTLE_SPEC): Delete.
1457 (CPP_ENDIAN_SPEC): Delete.
1458 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
1459 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
1460 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
1461 cpp_longdouble_default.
1462 * config/rs6000/softfloat.h: Delete.
1463 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
1464 (EXTRA_SPECS): Delete cpp_cpu.
1465 (TARGET_CPU_CPP_BUILTINS): New.
1466 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
1467 prototype.
1468 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
1469 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
1470 (CPP_DEFAULT_SPEC): Delete.
1471 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
1472 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
1473 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
1474 (CPP_DEFAULT_SPEC): Delete.
1475 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1476 (CPLUSPLUS_CPP_SPEC): Likewise.
1477 (CPP_CPU_SPEC): Delete.
1478 (CPP_DEFAULT_SPEC): Delete.
1479 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1480 (CPLUSPLUS_CPP_SPEC): Likewise.
1481 (CPP_CPU_SPEC): Delete.
1482 (CPP_DEFAULT_SPEC): Delete.
1483 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
1484 (CPP_DEFAULT_SPEC): Delete.
1485 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
1486 (CPP_DEFAULT_SPEC): Delete.
1487
1488 * doc/gty.texi: Small updates.
1489
1490 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
1491
1492 * objc/objc-act.c (warn_with_ivar): Adjust calls to
1493 diagnostic_count_error.
1494 (warn_with_method): Likewise.
1495
1496 * diagnostic.h (warnings_are_errors_message): New field of
1497 diagnostic_context.
1498 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
1499 match semantics.
1500 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
1501 (diagnostic_count_diagnostic): Make aware of other kinds of
1502 diagnostics.
1503 (diagnostic_initialize): Initialize warnings_are_errors_message field.
1504
1505 2002-06-11 Tom Tromey <tromey@redhat.com>
1506
1507 For PR java/6520:
1508 * fold-const.c (fold_convert): Don't modify existing tree's type.
1509
1510 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
1511
1512 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
1513
1514 2002-06-11 Richard Henderson <rth@redhat.com>
1515
1516 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
1517
1518 2002-06-11 Richard Henderson <rth@redhat.com>
1519
1520 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
1521 DWARF2_UNWIND_INFO is false.
1522
1523 2002-06-11 Bob Wilson <bob.wilson@acm.org>
1524
1525 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
1526
1527 * config/s390/s390.c (emit_prologue): gen_store_multiple
1528 returns an insn now, not a pattern.
1529
1530 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1531
1532 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
1533 $(TEXI2DVI) -o.
1534
1535 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
1536
1537 * i386.c (x86_promote_QImode): Set for Athlon
1538 (x86_fast_prefix): New global variable.
1539 (x86_arch_always_fancy_math_387): Fix formating.
1540 * i386.h (x86_fast_prefix): Declare
1541 (TARGET_FAST_PREFIX): define.
1542 * i386.md (and to strict_low_part, HI to SI
1543 promoting splitter): Use new macro.
1544
1545 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
1546
1547 2002-06-11 Zack Weinberg <zack@codesourcery.com>
1548
1549 * Makefile.in (distclean): Delete junk left in testsuite
1550 directory, too.
1551
1552 2002-06-11 Jeffrey Law <law@redhat.com>
1553
1554 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
1555 last insn created by the splitter.
1556
1557 * caller-save.c (init_caller_save): Move creation of SAVEINSN
1558 and RESTINSN into into the scope of the sequence.
1559
1560 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
1561 RETURN insns.
1562
1563 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
1564
1565 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
1566 not the pattern. So extract the pattern from the insn.
1567
1568 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
1569
1570 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
1571
1572 * config/s390/s390.md (movsi): Only use floating point
1573 register alternatives when operands are already fprs.
1574 (movdi_31, movdi_64): Likewise.
1575
1576 2002-06-11 David S. Miller <davem@redhat.com>
1577
1578 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
1579 Only run RTX equality checks on INSN_P rtl.
1580
1581 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
1582
1583 * config/s390/s390.md (reload_base, ltorg): Remove.
1584 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
1585 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1586 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
1587 s390_asm_output_pool_prologue): Likewise.
1588 * s390.h (s390_pool_start_insn): Likewise.
1589
1590 * s390.c (s390_output_symbolic_const): Remove support for
1591 old-style pool chunks.
1592 (s390_function_epilogue): Likewise.
1593 (s390_output_constant_pool): Likewise. Also, fix incorrect
1594 alignment for 64-bit literal pools.
1595 (print_operand_address): Remove 'y' and 'Y' format flags.
1596 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
1597 old-style pool chunks.
1598 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
1599 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
1600 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
1601
1602 * s390.c (consttable_operand): New function.
1603 * s390-protos.h (consttable_operand): Declare it.
1604 * s390.h (PREDICATE_CODES): Add consttable_operand.
1605 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
1606 consttable_sf, consttable_df, pool_start_31, pool_end_31,
1607 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
1608 * s390.c (struct constant, struct constant_pool): New data types.
1609 (constant_modes, gen_consttable): New variables.
1610 (s390_start_pool, s390_end_pool, s390_add_pool,
1611 s390_dump_pool, s390_free_pool): New functions.
1612 (s390_chunkify_pool): Completely reimplement literal pool
1613 overflow handling.
1614
1615 * s390.c (s390_pool_overflow): New variable.
1616 * s390.h (s390_pool_overflow): Declare it.
1617 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
1618 jumps in literal pool overflow situations.
1619
1620 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1621 (s390_frame_info): Account for possible use of RETURN_REGNUM
1622 by new literal pool overflow code.
1623 (s390_emit_prologue): Likewise.
1624
1625 2002-06-05 David S. Miller <davem@redhat.com>
1626
1627 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
1628 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
1629 emit_insns_before_scope, emit_insns_after,
1630 emit_insns_after_scope): Delete declaration.
1631 * ada/misc.c (insert_code_for): Use emit_insn* instead of
1632 emit_insns_foo.
1633 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
1634 (alpha_set_memflags): Fix comment.
1635 (set_frame_related_p): Use get_insns instead of gen_sequence.
1636 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
1637 emitting no insns.
1638 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
1639 gen_sequence.
1640 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
1641 * config/fr30/fr30.c (fr30_move_double): Likewise.
1642 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
1643 Likewise.
1644 * config/ia64/ia64.c (spill_restore_mem): Likewise.
1645 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
1646 no insns.
1647 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
1648 instead of gen_sequence.
1649 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
1650 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
1651 * config/sh/sh.c (sh_need_epilogue): Likewise.
1652 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
1653 attributes.
1654 (setjmp pattern and split): Use them to avoid splitter which emits
1655 no RTL.
1656 * genattrtab.c (main): Emit include of function.h
1657 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
1658 get_insns instead of gen_sequence.
1659 * config/cris/cris.c (cris_split_movdx): Likewise.
1660 * emit-rtl.c (emit_insns*): Kill.
1661 (try_split): Expect insn list instead of SEQUENCE.
1662 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
1663 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
1664 Make them abort if a SEQUENCE is given and RTL checking is
1665 enabled.
1666 (emit_*_scope): Don't forget to set scope on final insn.
1667 (gen_sequence): Move from here...
1668 * ssa.c (gen_sequence): To here as private function.
1669 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
1670 comments.
1671 (expand_builtin_return, expand_builtin_mathfn): Likewise.
1672 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
1673 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
1674 (expand_builtin_expect_jump): Use get_insns and fix comments.
1675 * calls.c (try_to_integrate): Use emit_insn_foo.
1676 (expand_call, emit_library_call_value_1): Likewise.
1677 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
1678 (emit_move_insn_1): Use get_insns instead of gen_sequence.
1679 (expand_expr): Use emit_insn_foo.
1680 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
1681 * except.c (build_post_landing_pads): Likewise.
1682 * flow.c (attempt_auto_inc): Likewise.
1683 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
1684 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
1685 * function.c (fixup_var_refs_insn): Use get_insns instead of
1686 gen_sequence.
1687 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
1688 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
1689 (fixup_stack_1, purge_addressof_1, expand_main_function,
1690 get_arg_pointer_save_area): Likewise.
1691 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
1692 expand_function_end): Use emit_insn_foo.
1693 (record_insns, keep_stack_depressed): Work with insn list instead
1694 of SEQUENCE, fix comments.
1695 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
1696 noce_try_store_flag_constants, noce_try_store_flag_inc,
1697 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
1698 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
1699 (noce_process_if_block): Use get_insns instead of gen_sequence.
1700 * optabs.c (add_equal_note): Work with insn list, fix comments.
1701 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
1702 (expand_unop, expand_complex_abs, expand_unop_insn,
1703 expand_no_conflict_block): Likewise.
1704 (gen_move_insn): Use get_insns instead of gen_sequence.
1705 (gen_cond_trap): Likewise.
1706 * integrate.c (copy_rtx_and_substitute): Likewise.
1707 (emit_initial_value_sets): Use emit_insn_foo.
1708 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
1709 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
1710 now that RTL generators give insn lists.
1711 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
1712 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
1713 instead of gen_sequence.
1714 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
1715 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
1716 instead of gen_sequence.
1717 * loop.c (move_movables, emit_prefetch_instructions,
1718 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
1719 Likewise.
1720 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
1721 (product_cheap_p): Likewise, and add commentary about RTL wastage
1722 here.
1723 * lcm.c (optimize_mode_switching): Use get_insns instead of
1724 gen_sequence.
1725 * profile.c (gen_edge_profiler): Likewise.
1726 * regmove.c (copy_src_to_dest): Likewise.
1727 * reg-stack.c (compensate_edge): Likewise and fix comment.
1728 * gcse.c (process_insert_insn): Likewise.
1729 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
1730 * jump.c (delete_prior_computation): Update comment.
1731 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
1732 of gen_sequence, update comments to match.
1733 * recog.c (peephole2_optimize): Work with insn lists instead of
1734 SEQUENCE rtl.
1735 * sched-vis.c (print_pattern): Abort on SEQUENCE.
1736 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
1737 Use get_insns instead of gen_sequence.
1738 (copy_loop_body): Likewise and don't emit dummy NOTE.
1739 * genrecog.c: Don't mention SEQUENCE rtl in comments.
1740 * combine.c (try_combine): Expect insn lists from split generator.
1741 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
1742 hand.
1743
1744 2002-06-11 Roger Sayle <roger@eyesopen.com>
1745 Andreas Jaeger <aj@suse.de>
1746
1747 * cfgbuild.c: Update copyright years.
1748
1749 2002-06-11 Andreas Schwab <schwab@suse.de>
1750
1751 * config/m68k/m68k.h (PREDICATE_CODES): Define.
1752
1753 2002-06-11 Eric Christopher <echristo@redhat.com>
1754
1755 * doc/tm.texi (Run-time Target): Add comment about flag_iso
1756 and strict ANSI.
1757 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
1758 * config/mips/ecoffl.h: Ditto.
1759 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
1760 (CPP_PREDEFINES): Ditto.
1761 * config/mips/elfl64.h: Ditto.
1762 * config/mips/elfl.h: Ditto.
1763 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
1764 out until irix header consolidation.
1765 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
1766 with SUBTARGET_OS_CPP_BUILTINS.
1767 * config/mips/iris6.h: Ditto.
1768 (CPLUSPLUS_CPP_SPEC): Remove.
1769 * config/mips/linux.h: Ditto.
1770 * config/mips/netbsd.h: Ditto.
1771 * config/mips/openbsd.h: Ditto.
1772 * config/mips/rtems.h: Ditto.
1773 * config/mips/rtems64.h: Ditto.
1774 * config/mips/sni-svr4.h: Ditto.
1775 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
1776 ISA_MIPS32, ISA_MIPS64): New defines.
1777 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
1778 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
1779 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1780 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
1781 (TARGET_CPU_CPP_BUILTINS): Define.
1782 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
1783 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
1784 (movdicc): Remove check for ISA_MIPS32.
1785 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
1786 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
1787 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
1788 sunge_sf, sunle_df, sunle_sf): New patterns.
1789
1790 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
1791
1792 * Makefile.in: Update cppmain.o.
1793 * cpphash.h (struct cpp_reader): Move some members to a
1794 nested structure.
1795 (trad_line): Rename saved_line.
1796 (_cpp_read_logical_line_trad): Update.
1797 (_cpp_remove_overlay): New.
1798 * cppinit.c (cpp_create_reader): No need to set saved_line.
1799 (cpp_destroy): Update.
1800 (cpp_read_main_file): Only overlay if compiling.
1801 * cpplex.c (continue_after_nul): Return false if in directive.
1802 * cpplib.c (EXPAND): New.
1803 (directive_table, SEEN_EOL): Update.
1804 (end_directive): Remove overlay if traditional; don't skip
1805 line in traditional #define.
1806 (prepare_directive_trad): New.
1807 (_cpp_handle_directive, run_directive): Update for traditional
1808 directives.
1809 (lex_macro_node): Simplify, don't use lex_identifier_trad.
1810 * cpplib.h (struct options): Add preprocess_only.
1811 * cppmain.c: Don't include intl.h.
1812 (cpp_preprocess_file): Set options->preprocess_only.
1813 (scan_translation_unit_trad): Fix, and print line numbers.
1814 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
1815 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
1816 save_replacement_text, _cpp_create_trad_definition): Update for
1817 variable renaming.
1818 (_cpp_overlay_buffer): Save line number.
1819 (_cpp_remove_overlay): Rename from restore_buff, restore line.
1820 (_cpp_read_logical_line_trad): Don't handle overlays here.
1821 (scan_out_logical_line): Process directives.
1822
1823 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
1824
1825 * gthr-win32.h: Wrap functions in extern "C".
1826 (__gthread_key_t): Typedef as unsigned long,
1827 not win32 DWORD.
1828 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
1829 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
1830 (__gthr_win32_once, __gthr_win32_key_create,
1831 __gthr_win32_key_delete, __gthr_win32_getspecific,
1832 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1833 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1834 __gthr_win32_mutex_unlock): Declare.
1835 (__gthread_once,__gthread_key_create,
1836 __gthread_key_delete, __gthread_getspecific,
1837 __gthread_setspecific, __gthread_mutex_init_function,
1838 __gthread_mutex_lock,__gthread_mutex_trylock,
1839 __gthread_mutex_unlock): Call corresponding
1840 __gthr_win32_* extern implementations if #defined
1841 __GTHREAD_HIDE_WIN32API.
1842 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
1843 $(srcdir)/config/i386/gthr-win32.c
1844 * config/i386/gthr-win32.c: New implementation file.
1845 (__gthr_win32_once, __gthr_win32_key_create,
1846 __gthr_win32_key_delete, __gthr_win32_getspecific,
1847 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1848 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1849 __gthr_win32_mutex_unlock): New functions, based on
1850 static inlines in gthr-win32.h.
1851
1852 2002-06-10 Bob Wilson <bob.wilson@acm.org>
1853
1854 * config/xtensa/xtensa.c (override_options): Don't warn about
1855 using -fpic or -fPIC when PIC is enabled by default.
1856
1857 2002-06-10 Roger Sayle <roger@eyesopen.com>
1858
1859 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
1860
1861 2002-06-10 Zack Weinberg <zack@codesourcery.com>
1862
1863 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
1864 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
1865 exists, substitute its pathname as @extra_modes_file@, define
1866 EXTRA_MODES_FILE to be an appropriate string to #include it
1867 with, and define EXTRA_CC_MODES to 1.
1868
1869 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
1870 it's defined. Get rid of redundancy in calling sequence for
1871 CC; don't use it to define CCmode, to avoid a warning.
1872 * libgcc2.c: Include symcat.h for the sake of machmode.def.
1873
1874 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
1875 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
1876 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
1877 New files.
1878 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
1879 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
1880
1881 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
1882 defining extra CC modes.
1883
1884 2002-06-10 Roger Sayle <roger@eyesopen.com>
1885 Andreas Jaeger <aj@suse.de>
1886
1887 * cfgrtl.c (create_basic_block_structure): Remove index argument
1888 and use last_basic_block++ instead. (create_basic_block): Update.
1889 * cfgbuild.c (find_basic_blocks_1): Likewise.
1890
1891 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
1892 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
1893 * sched-ebb.c (schedule_ebbs): Likewise.
1894 * sched-rgn.c (schedule_insns): Likewise.
1895 * ssa-ccp.c (ssa_const_prop): Likewise.
1896 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
1897 * toplev.c (rest_of_compilation): Likewise.
1898 * config/ia64/ia64.c (ia64_reorg): Likewise.
1899
1900 2002-06-10 Roger Sayle <roger@eyesopen.com>
1901
1902 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
1903 of matching registers.
1904
1905 2002-06-10 Roger Sayle <roger@eyesopen.com>
1906
1907 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
1908 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
1909
1910 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
1911
1912 * config/mmix/mmix.h: Improve comments.
1913 (CPP_SPEC, CPP_PREDEFINES): Don't define.
1914 (TARGET_CPU_CPP_BUILTINS): Define.
1915 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
1916 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
1917 unused predicate.
1918 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
1919 compiler warning.
1920 (mmix_constant_address_p): Remove another
1921 redundant test before case.
1922 (mmix_canonicalize_comparison): Remove unused function.
1923 (mmix_print_operand_address): Don't test and adjust for operand in
1924 non-canonical format.
1925 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
1926 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
1927
1928 2002-06-10 Zack Weinberg <zack@codesourcery.com>
1929
1930 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
1931 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
1932 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
1933 (gen_compare): Use CCmode unconditionally.
1934
1935 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1936
1937 PR optimization/6759
1938 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
1939 the REQ_EQUAL note.
1940
1941 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1942
1943 PR c/6660
1944 * c-decl.c (grokfield): Allow user defined types if they declare
1945 structs or unions for unnamed fields.
1946
1947 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1948
1949 PR c/6809
1950 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
1951
1952 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1953
1954 PR optimization/6842
1955 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
1956 operand subreg cannot be simplified.
1957
1958 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1959
1960 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
1961 (compare_constant): Likewise.
1962 (output_addressed_constants): Likewise.
1963
1964 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1965
1966 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
1967 merge bb with itself.
1968
1969 2002-06-10 Richard Henderson <rth@redhat.com>
1970
1971 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
1972 (builtin_zapnot): Likewise.
1973
1974 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
1975 reservation.
1976
1977 2002-06-10 Eric Christopher <echristo@redhat.com>
1978
1979 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
1980 prototype and function.
1981 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
1982 (call_insn_operand): Remove half pic references.
1983 (legitimate_address_p): Ditto.
1984 * config/i386/i386.h: Remove half pic defines.
1985
1986 2002-06-10 Eric Christopher <echristo@redhat.com>
1987
1988 * doc/extend.texi (Return Address): Add note explaining the side-
1989 effects of inlining on __builtin_return_address.
1990
1991 2002-06-10 Tom Tromey <tromey@redhat.com>
1992
1993 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
1994 (c-common.o): Depend on langhooks.h.
1995
1996 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
1997
1998 * cpphash.h (_cpp_read_logical_line_trad,
1999 _cpp_expansions_different_trad): Update prototypes.
2000 * cpplex.c (continue_after_nul): New.
2001 * cppmain.c: Include cpphash.h.
2002 (scan_translation_unit_trad): New.
2003 (cpp_preprocess_file): Call it.
2004 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
2005 overlay.
2006 (_cpp_expansions_different_trad): Update prototype.
2007
2008 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
2009
2010 Fix cfi generation for SH[1-4]:
2011
2012 * sh.c (frame_insn): New function.
2013 (output_stack_adjust): Add parameter emit_fn. All callers changed.
2014 (push): Now returns rtx. Use frame_insn.
2015 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
2016 of a DF register.
2017 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
2018
2019 2002-06-10 Zack Weinberg <zack@codesourcery.com>
2020
2021 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
2022 and gtype-desc.c.
2023 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
2024 (distclean): ... not here. But do delete all testsuite/*.log,
2025 testsuite/*.sum files here. Delete mkheaders. Delete
2026 po/*.gmo and the testsuite directory in a split tree build.
2027
2028 2002-06-10 Jeffrey Law <law@redhat.com>
2029
2030 * alias.c (static_reg_base_value): New to hold RTL for
2031 items allocated once per function for the aliasing code.
2032 (init_alias_once_per_function): Initialize static_reg_base_value.
2033 (init_alias_analysis): Avoid throw-away allocations of RTL by
2034 using pre-computed values in static_reg_base_value.
2035 * function.c (prepare_function_start): Call
2036 init_alias_once_per_function appropriately.
2037 * rtl.h (init_alias_once_per_function): Declare.
2038 * caller-save (init_caller_save): Restructure slightly to
2039 avoid lots of silly RTL generation.
2040 * expr.c (init_expr_once): Likewise.
2041 * reload1.c (reload_cse_regs_1): Allocate throw-away register
2042 RTL object here. Pass it into children.
2043 (reload_cse_simplify_operands): Use passed-in register RTL
2044 object.
2045 (reload_cse_simplify): Pass through throw-away register
2046 RTL object.
2047
2048 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
2049
2050 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
2051
2052 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2053
2054 * gcc.c (process_command): Avoid assignment to read-only location.
2055 Fix sizeof calculation.
2056
2057 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
2058
2059 * cpphash.h (struct cpp_macro): Put comments on their own lines.
2060 (_cpp_expansions_different_trad): New.
2061 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
2062 * cpptrad.c (canonicalize_text): New.
2063 (scan_out_logical_line): Handle no arguments correctly.
2064 (save_replacement_text): Commit memory when finished.
2065 (_cpp_expansions_different_trad): New.
2066
2067 2002-06-10 Tim Josling <tej@melbpc.org.au>
2068
2069 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
2070 TREELANG and COBOL.
2071 (lang_names): Add treelang and cobol.
2072 (get_file_basename): Add code to support treelang and cobol as
2073 4th and 5th users of c-common.c.
2074
2075 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
2076
2077 * Makefile.in (install-driver): Install driver as
2078 $(target_alias)-gcc-$(version).
2079 * gcc.c (spec_version): Make const.
2080 (process_command): Handle -V and -b by using exec.
2081 * doc/invoke.texi (Target Options): Restore -V option,
2082 update docs for -b option.
2083
2084 2002-06-10 Tim Josling <tej@melbpc.org.au>
2085
2086 * configure.in (remaining_languages_check):
2087 Added check that all languages specified were found.
2088 Exit if not found. Previous behaviour was silent failure.
2089 * configure: Regenerated.
2090
2091 2002-06-10 Tim Josling <tej@melbpc.org.au>
2092
2093 First steps to making treelang documentation compliant, based on
2094 instructions in sourcebuild.texi. Also add to gcc.c list of
2095 default languages.
2096
2097 * doc/contrib.texi: Add self as contributor of treelang.
2098
2099 * doc/frontends.texi: Add mention of treelang.
2100
2101 * doc/invoke.texi (Overall Options): Add mention of treelang.
2102
2103 * doc/standards.texi: Add mention of treelang.
2104
2105 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
2106
2107 * config/cris/cris.c: Include ggc.h
2108
2109 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
2110
2111 * cpphash.h (_cpp_push_text_context): Update.
2112 (_cpp_arguments_ok): New.
2113 * cppmacro.c (_cpp_arguments_ok): New, split out from...
2114 (collect_args): ...here.
2115 (_cpp_push_text_context): Change inputs.
2116 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
2117 replace_args_and_push): New.
2118 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
2119 Don't use IS macros directly.
2120 (scan_out_logical_line): Handle function-like macro argument
2121 collection.
2122 (push_replacement_text): Update.
2123 (replacement_length): Remove.
2124 (_cpp_create_trad_definition): Don't skip whitespace before
2125 checking for '('.
2126
2127 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2128
2129 * config/avr/avr.c (avr_mcu_types): Update for new devices.
2130 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
2131 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
2132 * config/avr/avr.md ("type" and "length" attributes): New type
2133 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
2134 output a single "call" or "rcall" insn depending on device size.
2135 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
2136
2137 2002-06-09 David Edelsohn <edelsohn@gnu.org>
2138
2139 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
2140 synonym for 630. Add power4. Remove embedded processors. Use -m604
2141 assembler option.
2142 (CPP_CPU_SPEC): Add power3 and power4.
2143 (PROCESSOR_DEFAULT): Change to 604e.
2144 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
2145 (CPP_CPU_SPEC): Similar additions.
2146 (enum process_type): Add POWER4.
2147 (RTX_COSTS): Add POWER4.
2148 (CPP_CPU_SPEC): Similar additions.
2149 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
2150 (PROCESSOR_DEFAULT64): Define.
2151 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
2152 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
2153 branch adjustment.
2154 (rs6000_issue_rate): Add Power4.
2155 * config/rs6000/rs6000.md (cpu attr): Add power4.
2156 (iu compare): Remove 604, 604e, 620, 630.
2157 Add basic Power4 scheduling information.
2158 (mfcr/mtcrf): Change type attribute to cr_logical.
2159
2160 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2161
2162 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
2163 ATTRIBUTE_PRINTF_2.
2164 * gengtype-lex.l: Fix format specifier warning.
2165
2166 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
2167 not isspace.
2168 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
2169 lieu of isspace/IDchar.
2170 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
2171 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
2172 ISSPACE.
2173
2174 2002-06-08 Zack Weinberg <zack@codesourcery.com>
2175
2176 * Makefile.in (LIBCPP_OBJS): Take out version.o.
2177 * cpphash.h (cpp_reader): Take out print_version member.
2178 * cppinit.c: (cpp_handle_option): Don't do anything with
2179 -version. Just set help_only for --version, --target-help.
2180 Just set verbose option for -v.
2181 (cpp_post_options): Don't print a version string.
2182
2183 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2184
2185 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
2186 (avr_section_type_flags): New, handle .noinit* sections.
2187
2188 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2189
2190 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
2191 and include netbsd_entry_point.
2192 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2193 (NETBSD_ENTRY_POINT): Define.
2194
2195 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2196
2197 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
2198 if not already defined.
2199 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
2200
2201 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2202
2203 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
2204 in a noreturn function.
2205 (avr_output_function_prologue, avr_output_function_epilogue):
2206 Correct function size calculation. Do not crash on empty function.
2207 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
2208
2209 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2210
2211 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2212 netbsd_link_spec and netbsd_entry_point.
2213 (LINK_SPEC): Use %(netbsd_link_spec).
2214 (NETBSD_ENTRY_POINT): Define.
2215
2216 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2217
2218 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
2219 linker emulation.
2220 (LINK_ARCH64_SPEC): Likewise.
2221 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
2222 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
2223
2224 2002-06-08 Marc Espie <espie@openbsd.org>
2225
2226 * lists.c (free_list): Fix typo in comment.
2227
2228 2002-06-08 Andreas Jaeger <aj@suse.de>
2229
2230 * lcm.c (optimize_mode_switching): Add unused attribute for
2231 variable.
2232
2233 * sched-deps.c (sched_analyze): Remove unused variable.
2234
2235 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
2236
2237 * diagnostic.def: Don't capitalize diagnostict descriptors.
2238
2239 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2240
2241 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
2242 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2243 (NETBSD_ENTRY_POINT): Define.
2244
2245 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2246
2247 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
2248 NETBSD_LINK_SPEC_ELF.
2249 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
2250 (NETBSD_ENTRY_POINT): Define.
2251 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
2252 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
2253 netbsd_entry_point.
2254 (NETBSD_ENTRY_POINT): Define.
2255
2256 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2257
2258 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2259 netbsd_link_spec and netbsd_entry_point.
2260 (LINK_SPEC): Use %(netbsd_link_spec).
2261 (NETBSD_ENTRY_POINT): Define.
2262
2263 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2264
2265 * config/netbsd-elf.h (LINK_SPEC): Rename to...
2266 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
2267 to specify program entry point.
2268
2269 2002-06-07 Jeff Law <law@redhat.com
2270
2271 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
2272 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
2273 than creating a new register.
2274 (distribute_notes): Likewise.
2275 * df.c (df_reg_use_gen): Likewise.
2276 (df_reg_clobber_gen): Likewise.
2277 (df_ref_record): Likewise.
2278 * expr.c (use_regs): Likewise.
2279 * flow.c (propagate_one_insn): Likewise.
2280 (mark_set_1): Likewise.
2281 (mark_used_reg): Likewise.
2282 * reload.c (emit_reload_insns): Likewise.
2283
2284 2002-06-07 Roger Sayle <roger@eyesopen.com>
2285
2286 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
2287 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
2288 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
2289 comparison code comp can be reversed.
2290
2291 2002-06-07 Roger Sayle <roger@eyesopen.com>
2292
2293 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
2294 constants last in comparisons. Optimize (x+1.0)>0.0 into the
2295 equivalent x > -1.0 when -ffast-math.
2296
2297 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2298
2299 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
2300 * config/mips/t-netbsd: New file.
2301
2302 2002-06-07 Zack Weinberg <zack@codesourcery.com>
2303
2304 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
2305 options their own entries.
2306 (parse_option): Clarify comment.
2307 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
2308 special case. Replace if/strcmp chain for -W options with
2309 use of new OPT_* entries for them.
2310 (cpp_handle_options): Update to match.
2311 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
2312 * c-decl.c: Update call to cpp_handle_option.
2313
2314 2002-06-07 Akim Demaille <akim@epita.fr>
2315
2316 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
2317 Whitespace changes.
2318
2319 2002-06-07 Jeffrey Law <law@redhat.com>
2320
2321 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
2322 on empty lists.
2323
2324 2002-06-07 H.J. Lu (hjl@gnu.org)
2325
2326 * configure.in: Add --enable-__cxa_atexit.
2327 * configure: Regenerated.
2328 * config.in: Likewise.
2329
2330 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
2331 not defined.
2332
2333 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
2334
2335 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
2336
2337 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2338
2339 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
2340
2341 2002-06-07 Jason Merrill <jason@redhat.com>
2342
2343 * cppexp.c (num_equality_op): Use a temporary variable to work
2344 around gcc 3.0.4 bug.
2345
2346 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
2347
2348 * diagnostic.c (diagnostic_build_prefix): Tidy.
2349
2350 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
2351
2352 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
2353 scan_parameters, save_replacement_text, replacement_length): New.
2354 (scan_out_logical_line): Take a macro and save parameters if
2355 non-NULL.
2356 (_cpp_logical_line_trad): Update.
2357 (_cpp_create_trad_definition): Update to handle function-like
2358 macros.
2359 * cpplex.c (new_buff): Update.
2360 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
2361 * cpphash.h: ...here.
2362 (CPP_ALIGN2, _cpp_save_parameter): New.
2363 * cppmacro.c (save_parameter): Rename, export.
2364 (parse_params): Update.
2365
2366 2002-06-07 Andreas Jaeger <aj@suse.de>
2367
2368 * config/mmix/mmix.c: Remove extra broken prototype for
2369 mmix_init_machine_status.
2370
2371 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
2372
2373 * gengtype.c: Add comments before all the routines.
2374
2375 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2376
2377 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
2378 from and add t-sh64 to ${tmake_file}.
2379 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
2380 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
2381 * config/sh/t-netbsd-sh5-32: Remove.
2382 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
2383 MULTILIB_ENDIAN.
2384 (MULTILIB_DIRNAMES): Define.
2385
2386 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
2387
2388 * i386.md (and promoting splitters): Disable QI to SImode promoting
2389 when doing so changes immediate to be 32bit.
2390
2391 * rtl.h (emit_*_scope): Declare.
2392 * emit-rtl.c (emit_*_scope): New global functions.
2393 (try_split): Copy scope.
2394 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2395 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2396 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2397 noce_process_if_block, find_cond_trap): Copy scopes.
2398 * recog.c (peephole2_optimize): likewise.
2399
2400 2002-06-06 Jeffrey Law <law@redhat.com>
2401
2402 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
2403
2404 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
2405
2406 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
2407
2408 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2409
2410 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
2411 ($(docdir)/gccinstall.info): New target.
2412 (info): Depend on it.
2413 (gccinstall.dvi): New target.
2414 (dvi): Depend on it.
2415 * doc/.cvsignore: Ignore new info files.
2416 * doc/install.texi (@setfilename): Reflect new info filename.
2417
2418 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
2419
2420 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
2421 on an UNSPEC.
2422
2423 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
2424
2425 PR objc/6834
2426 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
2427 c_common_get_alias_set.
2428 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
2429
2430 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2431
2432 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
2433 functions.
2434 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
2435 * avr/avr.c (avr_output_function_epilogue): Use above to determine
2436 function size.
2437 * pa/pa.c (pa_output_function_prologue): Likewise.
2438
2439 2002-06-05 David S. Miller <davem@redhat.com>
2440
2441 * integrate.c (subst_constants): Handle 'B' RTL format.
2442
2443 2002-06-05 Eric Christopher <echristo@redhat.com>
2444
2445 * varasm.c (make_decl_rtl): Fix comment for removed
2446 halfpic.c.
2447
2448 2002-06-05 Eric Christopher <echristo@redhat.com>
2449
2450 * Makefile.in: Remove missed halfpic bits.
2451
2452 2002-06-05 Eric Christopher <echristo@redhat.com>
2453
2454 * toplev.c: Remove half-pic.
2455 * config/mips/mips.c: Ditto.
2456 * config/mips/mips.h: Ditto. Remove unused defines.
2457 * config/mips/openbsd.h: Update comment to reflect above.
2458 * config/mips/mips.md: Remove half-pic constraints.
2459 * halfpic.h: Delete.
2460 * halfpic.c: Ditto.
2461
2462 2002-06-05 Jeffrey Law <law@redhat.com>
2463
2464 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
2465 rejects (mem (lo_sum (reg) (unspec))), but will allow
2466 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
2467
2468 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
2469
2470 * cpphash.h (_cpp_create_definition): Update prototype.
2471 (_cpp_push_text_context, _cpp_create_trad_definition): New.
2472 ( cpp_lex_identifier_trad): New.
2473 (_cpp_set_trad_context): New.
2474 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
2475 * cpplib.c (SEEN_EOL): Update.
2476 (lex_macro_node): Update for -traditional.
2477 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
2478 * cppmacro.c (_cpp_create_definition): Split into
2479 create_iso_definition() and _cpp_create_trad_definition().
2480 (warn_of_redefinition): Update prototype; handle traditional
2481 macros.
2482 (_cpp_push_text_context): New.
2483 * cpptrad.c (skip_whitespace, push_replacement_text): New.
2484 (lex_identifier): Call ht_lookup with correct start.
2485 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
2486 _cpp_set_trad_context): New.
2487 (scan_out_logical_line): Update to handle changing contexts.
2488
2489 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
2490
2491 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
2492 (shl*-*-elf*): Add.
2493 * config/sh/t-be (MULTILIB_ENDIAN): Set.
2494 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
2495 * t-sh (MULTILIB_ENDIAN): Set.
2496 (MULTILIB_OPTIONS): Use it.
2497 * t-sh64 (MULTILIB_OPTIONS): Likewise.
2498 (MULTILIB_DIRNAMES): Likewise.
2499
2500 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
2501
2502 * toplev.h (report_error_function): Remove.
2503
2504 * diagnostic.h (location_t): New datatype.
2505 (text_info): Likewise.
2506 (diagnostic_info): Likewise.
2507 (output_prefix): New macro.
2508 (diagnostic_last_function_changed): Likewise.
2509 (diagnostic_set_last_function): Likewise.
2510 (diagnostic_last_module_changed): Likewise.
2511 (diagnostic_set_last_module): Likewise.
2512 (report_diagnostic): Now macro.
2513 (diagnostic_set_info): Declare.
2514
2515 * diagnostic.c (report_problematic_module): Rename to
2516 diagnostic_repor_current_module.
2517 (set_diagnostic_context): Remove.
2518 (count_error): Rename to diagnostic_error_count.
2519 (error_function_changed): Remove.
2520 (record_last_error_function): Likewise.
2521 (error_module_changed): Likewise.
2522 (record_last_error_module): Likewise.
2523 (context_as_prefix): Rename to diagnostic_build_prefix.
2524 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
2525 (diagnostic_set_info): New function.
2526
2527 * objc/objc-act.c: #include diagnostic.h
2528 (error_with_ivar): Adjust call to count_error.
2529 (warn_with_method): Likewise.
2530 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
2531
2532 2002-06-05 Bob Wilson <bob.wilson@acm.org>
2533
2534 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
2535 lang_hooks.types.make_type instead of make_node; set up
2536 __va_list_tag type decl.
2537 (xtensa_builtin_saveregs): Remove broken use of
2538 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
2539 for saved registers; add varargs alias set.
2540
2541 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
2542
2543 config:
2544 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
2545 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2546 CPP_PREDEFINES and part of CPP_SPEC.
2547 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
2548 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
2549
2550 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
2551
2552 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
2553
2554 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2555
2556 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
2557
2558 2002-06-04 Zack Weinberg <zack@codesourcery.com>
2559
2560 * gengtype-yacc.y: Make sure all rules end with a semicolon.
2561
2562 2002-06-04 Bob Wilson <bob.wilson@acm.org>
2563
2564 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
2565 typo in function prototype and include "ggc.h" header.
2566
2567 2002-06-04 Richard Henderson <rth@redhat.com>
2568
2569 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
2570 (print_operand) ['U']: Likewise.
2571 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
2572 (alpha_expand_unaligned_store_words): Likewise.
2573 (alpha_expand_builtin_vector_binop): Fix typo.
2574 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
2575 umulh, and cix insns.
2576 (one_arg_builtins): Add cix builtins.
2577 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
2578 (alpha_expand_builtin): Fix typo in arity.
2579 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
2580 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
2581 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
2582 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
2583 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
2584 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
2585 builtin_ctlz, builtin_ctpop): New.
2586 * doc/extend.texi (Alpha Built-in Functions): Update.
2587
2588 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
2589
2590 * gengtype.c (write_gc_root): Don't unnecessarily prevent
2591 global variable-length arrays being roots.
2592
2593 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
2594 * configure.in (config_gtfiles): New variable.
2595 (all_gtfiles): Initialise from config_gtfiles.
2596 * configure: Regenerate.
2597
2598 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
2599
2600 config/i386:
2601 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
2602 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
2603 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
2604 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
2605 win32.h (CPP_SPEC): Remove cpp_cpu.
2606 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
2607 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
2608
2609 2002-06-04 Janis Johnson <janis187@us.ibm.com>
2610
2611 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
2612
2613 2002-06-04 Jeff Law <law@redhat.com.
2614 David Edelsohn <edelsohn@gnu.org>
2615 Michael Matz <matz@kde.org>
2616
2617 * sched-int.h (struct deps): New field libcall_block_tail_insn.
2618 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
2619 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
2620 is set, then mark the current insn as being part of a libcall
2621 scheduling group.
2622 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
2623
2624 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
2625 insns against the issue rate.
2626
2627 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
2628
2629 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
2630 * final.c (final_scan_insn): Likewise.
2631 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
2632 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
2633 * haifa-sched.c (unlink_other_notes): Likeewise.
2634 (reemit_notes): Likewise.
2635 * print-rtl.c (print_rtx): Likewise.
2636 * sched-deps (sched-analyze): Likewise.
2637 * rtl.c (note_insn_name): Likewise.
2638 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
2639 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
2640 (RANGE_*): Kill.
2641
2642 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2643
2644 * varasm.c (mark_constants): Handle RTX format 'B'.
2645
2646 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
2647
2648 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
2649 (struct cpp_context): Add traditional fields.
2650 * cppmacro.c (paste_all_tokens, push_ptoken_context,
2651 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
2652 * cpptrad.c (skip_comment, lex_identifier,
2653 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
2654
2655 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
2656
2657 * gbl-ctors.h: Fix formatting.
2658 * gcc.c: Likewise.
2659 * gccspec.c: Likewise.
2660 * gcov.c: Likewise.
2661 * gcov-io.h: Likewise.
2662 * gcse.c: Likewise.
2663 * ggc-common.c: Likewise.
2664 * ggc.h: Likewise.
2665 * ggc-page.c: Likewise.
2666 * ggc-simple.c: Likewise.
2667 * global.c: Likewise.
2668 * graph.h: Likewise.
2669 * gthr-dce.h: Likewise.
2670 * gthr.h: Likewise.
2671 * gthr-posix.h: Likewise.
2672 * gthr-rtems.h: Likewise.
2673 * gthr-solaris.h: Likewise.
2674 * gthr-win32.h: Likewise.
2675
2676 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
2677
2678 Merge from pch-branch:
2679
2680 * gengtype.h (UNION_OR_STRUCT_P): New macro.
2681 * gengtype.c (write_gc_structure_fields): Use it.
2682 (write_gc_root): Use it here too.
2683
2684 * gengtype.c (write_gc_structure_fields): Assume that lengths
2685 of typenames fit into an 'int'; don't pass a size_t to "%d" in
2686 printf.
2687 (write_gc_marker_routine_for_structure): Likewise.
2688 (write_gc_types): Likewise.
2689 (write_gc_root): Likewise.
2690
2691 * varray.h (VARRAY_CLEAR): New.
2692 (varray_clear): Prototype.
2693 * varray.c (varray_clear): New.
2694 * cselib.c (reg_values_old): New.
2695 (used_regs_old): New.
2696 (cselib_init): Use cached varrays if available to avoid
2697 generating large amounts of garbage.
2698 (cselib_finish): Don't throw away old varrays.
2699
2700 * final.c (insn_addresses_): Move out of ifdef.
2701
2702 * varray.c (uses_ggc): Make more varray kinds GCable.
2703 * varray.h (union varray_data_tag): Let gengtype see
2704 fields 'generic' and 'te'.
2705 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
2706 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
2707 (reg_to_stack): Don't call VARRAY_FREE.
2708 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
2709 (insn_addresses_): Use gengtype to mark.
2710 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
2711 pointers; handle generic pointers in unused union fields.
2712 (get_output_file_with_visibility): Include cselib.h,
2713 insn-addr.h in gtype-desc.c.
2714 * function.c (prologue): Use gengtype to mark.
2715 (epilogue): Likewise.
2716 (sibcall_epilogue): Likewise.
2717 * dependence.c: Include gt-dependence.h, ggc.h.
2718 (struct def_use): Use gengtype to mark.
2719 (struct loop): Likewise.
2720 (struct induction): Likewise.
2721 (struct dependence): Likewise.
2722 (def_use_chain): Likewise.
2723 (dep_chain): Likewise.
2724 (loop_chain): Likewise.
2725 (induction_chain): Likewise.
2726 (init_dependence_analysis): Don't free anything, just clear pointers.
2727 (build_def_use): Use GGC to allocate def_use.
2728 (add_loop): Use GGC to allocate loop.
2729 (find_induction_variable): Use GGC to allocate induction.
2730 (check_node_dependence): Use GGC to allocate induction, dependence.
2731 (dump_node_dependence): Don't free varrays.
2732 (end_dependence_analysis): Likewise.
2733 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
2734 (struct elt_loc_list): Likewise.
2735 (struct elt_list): Likewise.
2736 * cselib.c: Don't include obstack.h.
2737 (hash_table): Use gengtype to mark.
2738 (reg_values): Use gengtype to mark.
2739 (used_regs): Use gengtype to mark.
2740 (cselib_obstack): Delete.
2741 (cselib_startobj): Delete.
2742 (empty_vals): Mark as deletable.
2743 (empty_elt_lists): Mark as deletable.
2744 (empty_elt_loc_lists): Mark as deletable.
2745 (new_elt_list): Use GGC to allocate struct elt_list.
2746 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
2747 (clear_table): Don't delete obstack; don't unnecessarily clear
2748 deletable variables.
2749 (new_cselib_val): Use GGC to allocate struct cselib_val.
2750 (cselib_init): Don't set up obstacks. Use GGC to allocate
2751 hash table.
2752 (cselib_finish): Just clear variables, don't free anything.
2753 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
2754 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
2755 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
2756 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
2757 (gt-reg-stack.h): New rule.
2758 (gt-dependence.h): New rule.
2759 (gtype-desc.o): Add cselib.h, insn-addr.h.
2760
2761 * varray.c: Use only necessary headers.
2762 (element_size): New.
2763 (uses_ggc): New.
2764 (varray_init): Take type, not size. Use GGC if appropriate.
2765 (varray_grow): Update for change to struct varray_head_tag.
2766 Use GGC if appropriate.
2767 * varray.h (struct const_equiv_data): Use gengtype.
2768 (enum varray_data_enum): New.
2769 (union varray_data_tag): Use gengtype.
2770 (struct varray_head_tag): Use gengtype. Replace size field with
2771 enum varray_data_enum.
2772 (varray_init): Update prototype.
2773 (VARRAY_SCHED_INIT): Delete.
2774 (VARRAY_*_INIT): Update for change to varray_init.
2775 (VARRAY_SCHED): Delete.
2776 (VARRAY_PUSH_SCHED): Delete.
2777 (VARRAY_TOP_SCHED): Delete.
2778 * tree.h: Update for change to length specifier.
2779 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
2780 (clone_body): Likewise.
2781 * ssa.h (ssa_definition): Use gengtype to mark.
2782 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
2783 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
2784 * rtl.h (struct rtvec_def): Update for change to length specifier.
2785 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
2786 (struct initial_value_struct): Update for change to length specifier.
2787 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
2788 (ggc_add_tree_varray_root): Delete prototype.
2789 (ggc_mark_rtx_varray): Delete prototype.
2790 (ggc_mark_tree_varray): Delete prototype.
2791 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
2792 (ggc_add_tree_varray_root): Delete.
2793 (ggc_mark_rtx_varray): Delete.
2794 (ggc_mark_tree_varray): Delete.
2795 (ggc_mark_rtx_varray_ptr): Delete.
2796 (ggc_mark_tree_varray_ptr): Delete.
2797 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
2798 (create_varray): Delete prototype.
2799 * gengtype.c (varrays): Delete.
2800 (create_varray): Delete.
2801 (adjust_field_type): Detect array of string pointers.
2802 (process_gc_options): Remove code to handle varray_type option.
2803 (set_gc_used_type): Remove TYPE_VARRAY case.
2804 (output_escaped_param): New.
2805 (write_gc_structure_fields): Use output_escaped_param on all
2806 parameters. Handle 'skip' with 'use_param' option. Handle
2807 arrays of strings. Remove TYPE_VARRAY handling.
2808 (write_gc_roots): Use boolean to detect 'length' option.
2809 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
2810 (struct_fields): Call adjust_field_type on array fields.
2811 (type): Remove VARRAY_TYPE case.
2812 (type_option): Likewise.
2813 * gengtype-lex.l: Don't consider varray_type a keyword.
2814 * function.h: Update for change to length specifier.
2815 (free_eh_status): Delete prototype.
2816 * function.c (free_after_compilation): Don't call free_eh_status.
2817 (reorder_blocks): Don't use VARRAY_FREE.
2818 * except.c (struct eh_status): Update for change to length specifier.
2819 remove varray_type specifier.
2820 (free_eh_status): Delete.
2821 * dwarf2out.c: Include gt-dwarf2out.h.
2822 (used_rtx_varray): Use gengtype to mark, move
2823 outside ifdefs.
2824 (incomplete_types): Likewise.
2825 (decl_scope_table): Likewise.
2826 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
2827 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
2828 * c-tree.h (struct lang_type): Update for change to length specifier.
2829 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
2830 * c-objc-common.c: Include gt-c-objc-common.h.
2831 (deferred_fns): Mark for gengtype.
2832 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
2833 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
2834 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
2835 (gtype-desc.o): Update dependencies.
2836 (dwarf2out.o): Add gt-dwarf2out.h.
2837 (varray.o): Update dependencies.
2838 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
2839 (gt-c-objc-common.h): New rule.
2840 (gt-dwarf2out.h): New rule.
2841 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
2842
2843 * doc/gty.texi (GTY Options): Correct spelling.
2844 (GGC Roots): Likewise.
2845 * Makefile.in (TEXI_CPP_FILES): New.
2846 (TEXI_GCC_FILES): New.
2847 (TEXI_GCCINT_FILES): New.
2848 (TEXI_CPPINT_FILES): New.
2849 ($(docdir)/cpp.info): Use new macros.
2850 ($(docdir)/gcc.info): Likewise.
2851 ($(docdir)/gccint.info): Likewise.
2852 ($(docdir)/cppinternals.info): Likewise.
2853 (cpp.dvi): Likewise.
2854 (gcc.dvi): Likewise.
2855 (gccint.dvi): Likewise.
2856 (cppinternals.dvi): Likewise.
2857
2858 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
2859 * doc/gccint.texi (Top): Include gty.texi.
2860 * doc/gty.texi: New file.
2861
2862 * bitmap.c: Include ggc.h, gt-bitmap.h.
2863 (bitmap_ggc_free): New.
2864 (bitmap_elem_to_freelist): New.
2865 (bitmap_element_free): Use bitmap_elem_to_freelist.
2866 (bitmap_element_allocate): Allow use of GGC.
2867 (bitmap_clear): Use bitmap_elem_to_freelist.
2868 (bitmap_copy): Update for change to bitmap_element_allocate.
2869 (bitmap_set_bit): Likewise.
2870 (bitmap_operation): Update for changes elsewhere.
2871 (bitmap_initialize): Allow to create bitmaps that will use GGC.
2872 * bitmap.h (struct bitmap_element_def): Use gengtype.
2873 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
2874 (bitmap_initialize): Add extra parameter.
2875 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
2876 (BITMAP_ALLOCA): Delete.
2877 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
2878 (BITMAP_GGC_ALLOC): New.
2879 * Makefile.in (gtype-desc.o): Add bitmap.h.
2880 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
2881 (GTFILES): Add bitmap.c.
2882 (gt-bitmap.h): New rule.
2883 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
2884 * basic-block.h: Update for changes to bitmap_initialize.
2885 * except.c (exception_handler_label_map): Move into...
2886 (struct eh_status): Here.
2887 (struct eh_region): Make 'aka' GCable.
2888 (free_eh_status): Don't need to specially handle
2889 exception_handler_label_map.
2890 (add_ehl_entry): Update for changes to exception_handler_label_map.
2891 (find_exception_handler_labels): Likewise.
2892 (remove_exception_handler_label): Likewise.
2893 (maybe_remove_eh_handler): Likewise.
2894 (for_each_eh_label): Likewise.
2895 (remove_eh_handler): Allocate 'aka' using GGC.
2896 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
2897 to list of includes.
2898
2899 * gengtype.c (write_gc_marker_routine_for_structure): Name
2900 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
2901 (write_gc_types): Arrange for the tests with NULL to be inlined.
2902 (write_gc_roots): Update uses of procedure pointers.
2903 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
2904
2905 * Makefile.in (explow.o): Add dependency on gt-explow.h.
2906 (sdbout.o): Add dependency on gt-sdbout.h.
2907
2908 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
2909 (mem_attrs_htab): Likewise.
2910 (init_emit_once): Don't call ggc_add_deletable_htab.
2911 * fold-const.c (size_htab): Use gengtype to clear unused entries.
2912 (size_int_type_wide): Don't call ggc_add_deletable_htab.
2913 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
2914 parameters, use them, change callers.
2915 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
2916 (write_gc_roots): Handle 'if_marked' option.
2917 (main): Don't need to call set_gc_used_type any more.
2918 * ggc.h (ggc_htab_marked_p): Delete.
2919 (ggc_htab_mark): Delete.
2920 (struct ggc_cache_tab): New.
2921 (gt_ggc_cache_rtab): New declaration.
2922 * ggc-common.c (struct d_htab_root): Delete.
2923 (d_htab_roots): Delete.
2924 (ggc_add_deletable_htab): Delete.
2925 (ggc_htab_delete): Handle new htab-deleting mechanism.
2926 (ggc_mark_roots): Use new htab-deleting mechanism.
2927 * tree.c (type_hash_table): Use gengtype to clear unused entries.
2928 Make static.
2929 (init_obstacks): Don't call ggc_add_deletable_htab.
2930
2931 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
2932 (struct hashed_entry): Likewise.
2933 (nst_method_hash_list): Likewise.
2934 (cls_method_hash_list): Likewise.
2935 (HASH_ALLOC_LIST_SIZE): Delete.
2936 (ATTR_ALLOC_LIST_SIZE): Delete.
2937 * objc/objc-act.c (hash_init): Use ggc to allocate
2938 nst_method_hash_list, cls_method_hash_list.
2939 (hash_enter): Use ggc to allocate; allocate one entry at a time.
2940 (hash_add_attr): Likewise.
2941 (ggc_mark_hash_table): Delete.
2942 (objc_act_parse_init): Delete.
2943 (objc_init): Delete reference to objc_act_parse_init.
2944 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
2945 obstack.h. Replace references to 'struct hash_table' with htab_t.
2946 (struct symbol_hash_entry): Replace hash header with key field.
2947 (struct file_hash_entry): Replace hash header with key field.
2948 (struct demangled_hash_entry): Replace hash header with key field.
2949 (hash_string_eq): New.
2950 (hash_string_hash): New.
2951 (symbol_hash_newfunc): Delete.
2952 (symbol_hash_lookup): Modify to use htab_t.
2953 (file_hash_newfunc): Delete.
2954 (file_hash_lookup): Modify to use htab_t.
2955 (demangled_hash_newfunc): Delete.
2956 (demangled_hash_lookup): Modify to use htab_t.
2957 (tlink_init): Modify to use htab_t.
2958 * hash.h: Delete.
2959 * hash.c: Delete.
2960 * ggc.h: Delete forward structure declarations.
2961 Delete prototypes for deleted functions.
2962 * ggc-common.c: Don't include hash.h.
2963 (ggc_add_tree_hash_table_root): Delete.
2964 (ggc_mark_tree_hash_table_entry): Delete.
2965 (ggc_mark_tree_hash_table): Delete.
2966 (ggc_mark_tree_hash_table_ptr): Delete.
2967 * gengtype.c (write_gc_structure_fields): Allow param_is option.
2968 (write_gc_marker_routine_for_structure): Use visibility of
2969 the parameter if there is one.
2970 * function.c: Replace hash.h with hashtab.h. Replace references
2971 to 'struct hash_table *' with htab_t.
2972 (struct insns_for_mem_entry): Include a plain key.
2973 (fixup_var_refs_insns_with_hash): Update to use htab_t.
2974 (insns_for_mem_newfunc): Delete.
2975 (insns_for_mem_hash): Update to use htab_t.
2976 (insns_for_mem_comp): Likewise.
2977 (insns_for_mem_walk): Likewise.
2978 * c-lang.c: Include ggc.h.
2979 * Makefile.in (OBJS): Remove hash.o.
2980 (c-lang.o): Add GGC_H.
2981 (COLLECT2_OBJS): Remove hash.o.
2982 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
2983 (ggc-common.o): Remove hash.h.
2984 (function.o): Remove hash.h, add HASHTAB_H.
2985 (genautomata.o): Remove hash.h, add HASHTAB_H.
2986
2987 * varasm.c (mark_const_str_htab_1): Delete.
2988 (mark_const_str_htab): Delete.
2989 (const_str_htab_del): Delete.
2990 (const_str_htab): Use gengtype to mark.
2991 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
2992 allocate them.
2993 * tree.c (mark_tree_hashtable_entry): Delete.
2994 (mark_tree_hashtable): Delete.
2995 * tree.h (mark_tree_hashtable): Delete prototype.
2996 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
2997 (ggc_mark): Likewise.
2998 (ggc_calloc): New.
2999 (htab_create_ggc): New.
3000 * ggc-common.c (ggc_calloc): New.
3001 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
3002 (struct type): Add param_struct structure.
3003 * gengtype.c (param_structs): New.
3004 (adjust_field_type): Handle param_is option.
3005 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
3006 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
3007 (write_gc_structure_fields): Add new PARAM parameter. Update
3008 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
3009 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
3010 Use it to generate function name. Update callers.
3011 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
3012 Process them.
3013 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
3014 option.
3015 (main): Define PTR as pointer-to-scalar. Don't specially
3016 mark deferred_string or ehl_map_entry.
3017 * gengtype-yacc.y (PARAM_IS): Add new token.
3018 (externstatic): Use adjust_field_type.
3019 (type_option): Add PARAM_IS.
3020 * gengtype-lex.l: Add rule for typedef of function pointers.
3021 Add rule for PARAM_IS.
3022 (IWORD): Add size_t.
3023 * except.c (exception_handler_label_map): Use gengtype to mark.
3024 (type_to_runtime_map): Likewise.
3025 (mark_ehl_map_entry): Delete.
3026 (mark_ehl_map): Delete.
3027 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
3028 (t2r_mark_1): Delete.
3029 (t2r_mark): Delete.
3030 * Makefile.in (gtype-desc.o): Correct dependencies.
3031 (GTFILES): Add hashtab.h.
3032 (genautomata.o): Actually uses hashtab.h.
3033
3034 * Makefile.in (stringpool.o): Add $(GGC_H).
3035 (dwarf2asm.o): Likewise.
3036 (GTFILES): Add hashtable.h.
3037 * c-common.h (struct c_common_identifier): Use gengtype.
3038 * c-decl.h (c_mark_tree): Delete.
3039 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3040 * c-tree.h (struct lang_identifier): Use gengtype.
3041 (union lang_tree_node): New.
3042 (c_mark_tree): Delete prototype.
3043 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
3044 dwarf2_debug_hooks.
3045 * gengtype-lex.l (IWORD): Allow 'bool'.
3046 (ptr_alias): Match.
3047 * gengtype-yacc.y (ALIAS): New token.
3048 (type_option): New rule.
3049 (option): Use type_option.
3050 * gengtype.c (process_gc_options): New.
3051 (set_gc_used_type): Use it.
3052 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
3053 Add new variable 't' to hold the type of the field being processed.
3054 Add more error checking. Use UNION_P when looking at 'desc' option.
3055 Handle language-specific structures containing other
3056 language-specific structures.
3057 (write_gc_types): Handle 'ptr_alias' option.
3058 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
3059 * ggc-common.c (ggc_pending_trees): Delete.
3060 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
3061 (ggc_mark_trees): Delete.
3062 (gt_ggc_m_tree_node): Delete.
3063 * ggc.h (ggc_pending_trees): Delete.
3064 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
3065 * hashtable.h (ht_identifier): Use gengtype.
3066 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
3067 * langhooks.h (struct lang_hooks): Delete mark_tree.
3068 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
3069 anyway.
3070 * system.h: Poison LANG_HOOKS_MARK_TREE.
3071 * tree.c (tree_node_structure): New.
3072 * tree.h (struct tree_common): Use gengtype.
3073 (struct tree_int_cst): Likewise.
3074 (struct tree_real_cst): Likewise.
3075 (struct tree_string): Likewise.
3076 (struct tree_complex): Likewise.
3077 (struct tree_vector): Likewise.
3078 (struct tree_identifier): Likewise.
3079 (struct tree_list): Likewise.
3080 (struct tree_vec): Likewise.
3081 (struct tree_exp): Likewise.
3082 (struct tree_block): Likewise.
3083 (struct tree_type): Likewise.
3084 (struct tree_decl): Likewise.
3085 (enum tree_structure_enum): New.
3086 (union tree_node): Use gengtype, with an alias.
3087 (tree_node_structure): Prototype.
3088 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3089
3090 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
3091 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
3092 to LANG_HOOKS_FUNCTION_FINAL.
3093 * Makefile.in (GTFILES): Add bitmap.h.
3094 * except.c (struct eh_region): Mark field 'aka' to be skipped.
3095
3096 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
3097 (alpha_init_machine_status): Give proper type.
3098 * Makefile.in (c-lang.o): Depend on gtype-c.h.
3099 (optabs.o): Depend on gt-optabs.h.
3100 (GTFILES): Add optabs.o.
3101 (gt-optabs.h): Add rule.
3102 * optabs.c: Include gt-optabs.h.
3103
3104 * gengtype.c (set_gc_used_type): Correct some errors in last change.
3105 (write_gc_structure_fields): If a field which should be NULL is
3106 not, abort.
3107 * c-pragma.c: Move struct align_stack and variable alignment_stack
3108 out from the ifdef.
3109
3110 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
3111 * config/xtensa/xtensa.c: Include gt-cris.h.
3112 (struct machine_function): Use gengtype to mark.
3113 * config/mmix/mmix.h (struct machine_function): Use gengtype
3114 to mark.
3115 * config/cris/t-cris: Add dependencies for gt-cris.h.
3116 * config/cris/cris.c: Include gt-cris.h.
3117 (struct machine_function): Use gengtype to mark.
3118 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
3119 to mark.
3120 * doc/tm.texi (Per-Function Data): Delete references to
3121 mark_machine_status.
3122 * config/ia64/ia64.c (ia64_override_options): Don't set
3123 mark_machine_status.
3124 * config/i386/i386.c (override_options): Likewise.
3125 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
3126 * config/arm/arm.c (arm_init_expanders): Likewise.
3127 * config/alpha/alpha.c (override_options): Likewise.
3128 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
3129 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
3130 (write_gc_structure_fields): Don't handle 'really' option.
3131 Handle 'maybe_null' option.
3132 (write_gc_types): Handle 'maybe_null' option.
3133 * function.h (struct function): Don't use "really".
3134 (mark_machine_status): Delete declaration.
3135 (mark_lang_status): Delete declaration.
3136 (gt_ggc_mr_machine_function): Delete prototype.
3137 (gt_ggc_mr_language_function): Delete prototype.
3138 * function.c (mark_machine_status): Delete.
3139 (mark_lang_status): Delete.
3140 (gt_ggc_mr_machine_function): Delete.
3141 (gt_ggc_mr_language_function): Delete.
3142 * c-tree.h (mark_c_function_context): Delete prototype.
3143 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
3144 * c-decl.c (struct language_function): Rename from struct
3145 c_language_function. Update uses. Use gengtype to mark.
3146 (mark_c_function_context): Delete.
3147 * c-common.h (struct c_language_function): Rename from struct
3148 language_function.
3149 (mark_stmt_tree): Delete prototype.
3150 (c_mark_lang_decl): Delete prototype.
3151 (mark_c_language_function): Delete prototype.
3152 * c-common.c (mark_stmt_tree): Delete.
3153 (c_mark_lang_decl): Delete.
3154 (mark_c_language_function): Delete.
3155
3156 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
3157 (lang_bitmap): New typedef. Use where appropriate.
3158 (struct type): Add gc_used field, lang_struct field.
3159 (UNION_P): New macro.
3160 (new_structure): New prototype.
3161 (find_structure): Remove 'pos' parameter. Change all callers.
3162 * gengtype-lex.l: Update for changes to find_structure.
3163 * gengtype-yacc.y (typedef_struct): Use new_structure.
3164 (yacc_ids): Suppress warning.
3165 (type): Use new_structure.
3166 * gengtype.c (string_type): Update for changes to struct type.
3167 (find_structure): Just find a structure, don't worry about
3168 creating one.
3169 (new_structure): New.
3170 (note_yacc_type): Use new_structure.
3171 (set_gc_used_type): New.
3172 (set_gc_used): New.
3173 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
3174 (write_gc_types): Handle TYPE_LANG_STRUCT.
3175 (write_gc_marker_routine_for_structure): New.
3176 (main): Call set_gc_used. Add some calls to set_gc_used_type
3177 for places where GCC doesn't use gengtype properly yet.
3178 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
3179 (gt_ggc_m_tree_node): Likewise.
3180
3181 * varasm.c (copy_constant): Call expand_constant if we hit
3182 something we can't recognise.
3183
3184 * ggc-common.c (ggc_mark_rtvec_children): Delete.
3185 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
3186 (lang_mark_false_label_stack): Delete.
3187 * rtl.h (struct rtvec_def): Use gengtype to mark.
3188 * ggc.h (ggc_mark_rtvec): Delete.
3189 (gt_ggc_m_rtvec_def): Delete.
3190 (ggc_mark_nonnull_tree): Delete.
3191 (ggc_mark_rtvec_children): Delete prototype.
3192 (lang_mark_false_label_stack): Delete declaration.
3193
3194 * gengtype.h (note_yacc_type): Add prototype.
3195 * gengtype.c (note_yacc_type): New function.
3196 * gengtype-lex.l: Add lexer support for yacc files.
3197 * gengtype-yacc.y (start): Extract union from yacc files.
3198 (yacc_union): New rule.
3199 (yacc_typematch): New rule.
3200 (yacc_ids): New rule.
3201 (enum_items): Tweak for efficiency.
3202 (optionseq): Likewise.
3203
3204 * c-common.h (struct language_function): Use gengtype.
3205 (struct c_lang_decl): Likewise.
3206 * c-tree.h (struct lang_decl): Likewise.
3207 (struct lang_type): Likewise.
3208 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
3209 tree language substructures.
3210
3211 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
3212 ggc_mark_tree.
3213 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
3214
3215 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
3216
3217 * stmt.c (struct nesting): Add discriminator. Use gengtype to
3218 mark. Remove 'data.block.cleanup_ptr' field.
3219 (struct stmt_status): Use usual technique to mark struct nesting.
3220 (gt_ggc_mr_nesting_cond): Delete.
3221 (gt_ggc_mr_nesting_loop): Delete.
3222 (gt_ggc_mr_nesting_block): Delete.
3223 (gt_ggc_mr_nesting_case_stmt): Delete.
3224 (expand_start_cond): Set discriminator.
3225 (expand_start_loop): Likewise.
3226 (expand_start_null_loop): Likewise.
3227 (expand_start_bindings_and_block): Set discriminator. Don't set
3228 deleted fields.
3229 (expand_decl_cleanup): Replace 'cleanup_ptr' with
3230 &thisblock->data.block.cleanups.
3231 (expand_start_case): Set discriminator.
3232 (expand_start_case_dummy): Set discriminator.
3233
3234 * ggc-callbacks.c: Remove.
3235
3236 * gengtype.h (struct type): Add 'u.s.bitmap' field.
3237 (find_structure): Add 'pos' parameter.
3238 * gengtype-lex.l: Update callers to find_structure.
3239 * gengtype-yacc.y: Likewise.
3240 * gengtype.c (find_structure): Allow for structures to be defined
3241 in multiple language backends.
3242 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
3243 (counter): Rename to gc_counter.
3244 (write_gc_structure_fields): Fail when writing out fields for
3245 an incomplete structure. Ignore arrays of scalars. Handle
3246 'tree_vec' special.
3247 (write_gc_types): Reset counter for each procedure written.
3248
3249 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
3250 (free_case_nodes): Delete.
3251 (expand_end_case_type): Delete call to free_case_nodes.
3252
3253 * Makefile.in (cselib.o): Include gt-<filename>.h.
3254 (gcse.o): Likewise.
3255 (profile.o): Likewise.
3256 (alias.o): Likewise.
3257 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
3258 alphabetize backend files.
3259 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
3260 * alias.c: Use gengtype for roots.
3261 * c-common.h (struct stmt_tree_s): Use gengtype.
3262 * c-decl.c: Use gengtype for roots.
3263 * cselib.c: Use gengtype for roots.
3264 * expr.c: Use gengtype for roots.
3265 * fold-const.c: Use gengtype for roots.
3266 * gcse.c: Use gengtype for roots.
3267 * gengtype-lex.l: Handle typedefs of function types.
3268 Allow for empty array bounds.
3269 Allow processing to stop on initialisers.
3270 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
3271 (semiequal): New rule.
3272 * gengtype.c (create_file): Tidy output files.
3273 (get_output_file_with_visibility): Fix paren warning. Fix bug
3274 involving multiple input files mapping to one output file.
3275 (write_gc_structure_fields): Skip arrays of scalars.
3276 (write_gc_types): Tidy output files.
3277 (write_gc_root): New function.
3278 (write_gc_roots): Fix bugs, add support for roots that are
3279 structures.
3280 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
3281 (ggc_mark_tree_ptr): Delete.
3282 (ggc_add_rtx_root): Delete.
3283 (ggc_add_tree_root): Delete.
3284 (ggc_del_root): Delete.
3285 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
3286 allocate struct initial_value_struct.
3287 * profile.c: Use gengtype for roots.
3288 * sdbout.c: Use gengtype for roots.
3289 * varasm.c (mark_weak_decls): Delete unused prototype.
3290 (mark_const_hash_entry): Delete unused function.
3291 * config/darwin-protos.h: Use gengtype for roots.
3292 (machopic_add_gc_roots): Delete.
3293 * config/arm/arm.c: Use gengtype for roots.
3294 * config/arm/arm.h: Use gengtype for roots.
3295 * config/c4x/c4x-protos.h: Use gengtype for roots.
3296 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
3297 * config/d30v/d30v-protos.h: Use gengtype for roots.
3298 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
3299 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
3300 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
3301 * config/ia64/ia64-protos.h: Use gengtype for roots.
3302 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
3303 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
3304 * config/m68hc11/m68hc11.c (z_reg): Make global.
3305 (z_reg_qi): Make global.
3306 (m68hc11_add_gc_roots): Delete.
3307 * config/mcore/mcore-protos.h: Use gengtype for roots.
3308 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
3309 * config/mips/mips.c (mips_add_gc_roots): Delete.
3310 * config/mips/mips.h: Use gengtype for roots.
3311 * config/mmix/mmix.c (override_options): Use gengtype for roots.
3312 * config/mmix/mmix.h: Use gengtype for roots.
3313 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
3314 * config/mn10200/mn10200.h: Use gengtype for roots.
3315 * config/pa/pa.c: Use gengtype for roots, marking.
3316 (struct deferred_plabel): Use GGC, gengtype.
3317 (pa_add_gc_roots): Delete.
3318 (mark_deferred_plabels): Delete.
3319 * config/pj/pj-protos.h: Use gengtype for roots.
3320 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
3321 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
3322 machopic_add_gc_roots.
3323 * config/rs6000/rs6000.h: Use gengtype for roots.
3324 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
3325 (gt-darwin.h): Add rule.
3326 * config/sh/sh.c: Use gengtype for roots.
3327 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
3328 (gt-sh.h): Add rule.
3329 * config/sparc/sparc.c: Use gengtype for roots.
3330 (sparc_add_gc_roots): Delete.
3331 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
3332 (mark_ultrasparc_pipeline_state): Delete.
3333 * config/sparc/sparc.h: Use gengtype for roots.
3334
3335 * Makefile.in (c-parse.o): Update dependencies.
3336 (c-common.o): Likewise.
3337 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
3338 Add dependencies for the files they generate.
3339 * c-common.c: Replace ggc_add_* uses with GTY annotations.
3340 * c-common.h: Likewise.
3341 * c-decl.c: Likewise.
3342 (gt_ggc_mp_binding_level): Delete.
3343 * c-lang.c: Include gtype-c.h.
3344 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
3345 gt-c-parse.h.
3346 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
3347 (gt_ggc_mp_align_stack): Delete.
3348 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
3349 * function.c: Replace ggc_add_* uses with GTY annotations.
3350 (gt_ggc_mp_function): Delete.
3351 * function.h: Replace ggc_add_* uses with GTY annotations.
3352 * gengtype.c (lang_names): New.
3353 (NUM_BASE_FILES): New.
3354 (open_base_files): Create language base files.
3355 (startswith): New.
3356 (get_file_basename): New.
3357 (get_base_file_bitmap): New.
3358 (get_output_file_with_visibility): Rename from get_output_file.
3359 Add more mappings for various C/Objc filenames.
3360 (finish_root_table): New.
3361 (write_gc_roots): Handle dependencies and scoping properly.
3362 * gengtype.h: Add prototypes for new functions.
3363 * ggc-common.c (struct deletable_root): Delete.
3364 (deletables): Delete.
3365 (ggc_add_deletable_root): Delete.
3366 (ggc_mark_roots): No need to deal with deleted functionality.
3367 * ggc.h (ggc_add_deletable_root): Delete prototype.
3368 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
3369 (gtype-objc.h): Add rule to create.
3370 * objc/config-lang.in (gtfiles): New.
3371 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
3372 ggc_add_* with GTY markers. Include gtype-objc.h.
3373 (ggc_mark_imp_list): Delete.
3374 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
3375 * objc/objc-lang.c: Random Whitespace Change.
3376
3377 * except.h (exception_handler_labels): Delete.
3378 (get_exception_handler_labels): New.
3379 * except.c (exception_handler_labels): Delete.
3380 (struct eh_status): Add exception_handler_labels field.
3381 (doing_eh): Don't add exception_handler_labels as root.
3382 (free_eh_status): Don't need to free exception_handler_labels.
3383 (get_exception_handler_labels): New.
3384 (find_exception_handler_labels): Update for move of
3385 exception_handler_labels.
3386 (remove_exception_handler_label): Likewise.
3387 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
3388 * jump.c (rebuild_jump_labels): Likewise.
3389 * loop.c (find_and_verify_loops): Likewise.
3390 * sched-rgn.c (is_cfg_nonregular): Likewise.
3391
3392 * gengtype.c (write_gc_structure_fields): Handle variable-length
3393 TYPE_ARRAYs.
3394
3395 * varasm.c (struct weak_syms): Use GGC, gengtype.
3396 (mark_weak_decls): Delete.
3397 (weak_decls): Likewise.
3398 (add_weak): Likewise.
3399 (remove_from_pending_weak_list): Likewise.
3400 (init_varasm_once): Likewise.
3401
3402 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
3403 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
3404 stor-layout.c, regclass.c, and lists.c.
3405 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
3406 gt-regclass.h and gt-lists.h on s-gtype.
3407 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
3408 * except.c: Use gengtype for roots.
3409 * explow.c: Use gengtype for roots. Include gt-explow.h.
3410 * expr.h (init_stor_layout_once): Delete prototype.
3411 * function.c: Use gengtype for roots.
3412 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
3413 * gengtype-yacc.y (start): Can also be an externstatic.
3414 (externstatic): New production.
3415 (struct_fields): Correct array bounds inversion for 2-d arrays.
3416 * gengtype.c (variables): New variable.
3417 (note_variable): New function.
3418 (get_output_file): Include libfuncs.h into gtype-desc.c.
3419 (get_output_file_name): New function.
3420 (write_gc_structure_fields): Suppress warnings.
3421 (write_gc_types): Make static.
3422 (put_mangled_filename): New function.
3423 (write_gc_roots): New function.
3424 (main): Call write_gc_roots.
3425 * gengtype.h (note_variable): Prototype.
3426 (get_output_file_name): Prototype.
3427 (write_gc_types): Delete prototype.
3428 * ggc.h: Clean up unnecessary structure predefinitions.
3429 (struct ggc_root_tab): Define.
3430 (gt_ggc_m_rtx_def): Make function, not macro.
3431 (gt_ggc_m_tree_node): Likewise.
3432 * libfuncs.h: Use gengtype for roots.
3433 * lists.c: Use gengtype for roots. Include gt-lists.h.
3434 (init_EXPR_INSN_LIST_cache): Delete.
3435 * optabs.c: Use gengtype for roots.
3436 (gt_ggc_mp_optab): Delete.
3437 * optabs.h: Use gengtype for roots.
3438 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
3439 * rtl.h: Use gengtype for roots.
3440 (init_EXPR_INSN_LIST_cache): Delete prototype.
3441 * stor-layout.c: Use gengtype for roots.
3442 Include gt-stor-layout.h.
3443 (init_stor_layout_once): Delete.
3444 * toplev.c: Use gengtype for roots. Delete calls to deleted
3445 routines.
3446 * tree.c: Use gengtype for roots.
3447 * tree.h: Use gengtype for roots.
3448 * varasm.c: Use gengtype for roots.
3449
3450 * Makefile.in (GTFILES): Add @all_gtfiles@.
3451 * configure: Regenerate.
3452 * configure.in: Construct all_gtfiles from the gtfiles definitions
3453 in config-lang.in.
3454 * gengtype-yacc.y (type): Warn about duplicate structure names.
3455 * gengtype.c (get_output_file): Handle .c files in language
3456 subdirectories.
3457
3458 * Makefile.in (GTFILES): Run gengtype on all the config files
3459 and on the target .c file.
3460 * except.c (mark_eh_region): Delete.
3461 (init_eh_for_function): Use GGC on struct eh_status.
3462 (mark_eh_status): Delete.
3463 (free_eh_status): Use GGC.
3464 (expand_eh_region_start): Use GGC to
3465 (collect_eh_region_array): Allocate last_region_number using GGC.
3466 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
3467 (remove_eh_handler): Let GGC free struct eh_region.
3468 (add_call_site): Use GGC to reallocate call_site_record array.
3469 * function.c (init_machine_status): Update calling sequence.
3470 (mark_machine_status): Likewise.
3471 (mark_lang_status): Likewise.
3472 (prepare_function_start): Update init_machine_status call.
3473 (mark_function_status): Delete.
3474 (maybe_mark_struct_function): Delete.
3475 (ggc_mark_struct_function): Delete.
3476 (gt_ggc_mp_function): New.
3477 (gt_ggc_mr_machine_function): New.
3478 (gt_ggc_mr_language_function): New.
3479 (init_function_once): Use canonical names.
3480 * function.h (struct function): Use gengtype.
3481 (init_machine_status): Return the structure.
3482 (mark_machine_status): Take a 'void *'.
3483 (mark_lang_status): Likewise.
3484 * ggc-common.c (ggc_mark_trees): Use canonical name for
3485 ggc_mark_struct_function.
3486 * tree.h (ggc_mark_struct_function): Delete prototype.
3487 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
3488 (alpha_init_machine_status): Likewise.
3489 (override_options): Use canonical name for alpha_mark_machine_status.
3490 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
3491 * config/arm/arm.h (struct machine_function): Use gengtype.
3492 * config/arm/arm.c (arm_mark_machine_status): Delete.
3493 (arm_init_machine_status): Update calling sequence.
3494 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
3495 * config/cris/cris.c (cris_init_machine_status): Update
3496 calling sequence.
3497 * config/d30v/d30v.h (struct machine_function): Use gengtype.
3498 * config/d30v/d30v.c (d30v_init_machine_status): Update
3499 calling sequence.
3500 (d30v_mark_machine_status): Delete.
3501 * config/i386/i386.c: Include gt-i386.h.
3502 (struct machine_function): Use gengtype.
3503 (ix86_init_machine_status): Update calling sequence.
3504 (ix86_mark_machine_status): Delete.
3505 (override_options): Use canonical namke for ix86_mark_machine_status.
3506 * config/ia64/ia64.h (struct machine_function): Use gengtype.
3507 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
3508 sequence.
3509 (ia64_mark_machine_status): Delete.
3510 (ia64_override_options): Use canonical name for
3511 ia64_mark_machine_status.
3512 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
3513 sequence.
3514 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
3515 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3516 * gengtype.c (get_output_file): Fix warning.
3517 (main): Add prototype to suppress warning.
3518 * tree.c: Remove tree_hash_mark prototype.
3519
3520 * tree.h (init_stmt): Delete prototype.
3521 * toplev.c (lang_independent_init): Don't call init_stmt.
3522 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
3523 (stmt_obstack): Delete.
3524 (POPSTACK): No need to free 'struct nesting'.
3525 (gt_ggc_mr_nesting_cond): Use canonical names.
3526 (gt_ggc_mr_nesting_loop): Use canonical names.
3527 (gt_ggc_mr_nesting_block): Use canonical names.
3528 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
3529 (mark_stmt_status): Delete.
3530 (init_stmt): Delete.
3531 (clear_last_expr): Clear both last_expr_type and last_expr_value.
3532 Use it everywhere that last_expr_type was cleared.
3533 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
3534 (zap_lists): Delete.
3535 * ggc.h (ggc_add_deletable_root): Prototype.
3536 (mark_stmt_status): Remove prototype.
3537 * ggc-common.c (ggc_add_deletable_root): New.
3538 (ggc_mark_roots): Handle deletable roots.
3539 * function.c (ggc_mark_struct_function): Use canonical name
3540 for mark_stmt_status.
3541 * emit-rtl.c (free_sequence_stack): New.
3542 (start_sequence): Use a freelist for sequences.
3543 (end_sequence): Likewise.
3544 (init_emit_once): Add free_sequence_stack as a deleteable root.
3545 * c-pragma.c Include gt-c-pragma.h.
3546 (struct align_stack): Use gengtype.
3547 (push_alignment): Use GGC for struct align_stack.
3548 (mark_align_stack): Delete.
3549 (gt_ggc_mp_align_stack): New.
3550 (init_pragma): Use canonical name for mark_align_stack.
3551 * c-decl.c: Include gt-c-decl.h.
3552 (struct binding_level): Use gengtype.
3553 (make_binding_level): Use GGC; handle the freelist here.
3554 (pop_binding_level): New.
3555 (pushlevel): Move code into make_binding_level.
3556 (push_label_level): Likewise.
3557 (poplevel): Move code into pop_binding_level.
3558 (pop_label_level): Likewise.
3559 (mark_binding_level): Delete.
3560 (gt_ggc_mp_binding_level): New.
3561 (c_init_decl_processing): Use canonical name for mark_binding_level.
3562 Add free_binding_level as deletable root.
3563 (mark_c_function_context): Use canonical name for mark_binding_level.
3564 * Makefile.in (c-decl.o): Add gt-c-decl.h.
3565 (c-pragma.o): Add gt-c-pragma.h.
3566 (GTFILES): Add c-decl.c and c-pragma.c.
3567 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
3568
3569 * tree.c (struct type_hash): Use gengtype.
3570 (init_obstacks): Use canonical name for type_hash_mark.
3571 (type_hash_mark): Delete.
3572 Include gt-tree.h.
3573 * rtl.h (struct mem_attrs): Use gengtype.
3574 * optabs.h (struct optab): Use gengtype.
3575 * optabs.c (expand_binop): Squish signed/unsigned warning.
3576 (mark_optab): Make local, use canonical name, use autogenerated
3577 marker procedure.
3578 (init_optabs): Use canonical name for mark_optab.
3579 (new_optab): Use GGC to allocate optabs.
3580 * ggc.h: Delete mark_optab prototype.
3581 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
3582 mem_attrs marker procedure.
3583 * gengtype.c (get_output_file): Include headers in gtype-desc.c
3584 explicitly rather than deducing them from file names.
3585 (write_gc_structure_fields): Handle arrays of structures.
3586 (main): Return non-zero exit code if errors occur during output.
3587 * emit-rtl.c (mem_attrs_mark): Delete.
3588 (init_emit_once): Use canonical name for mem_attrs marker procedure.
3589 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
3590 (tree.o): Depend on gt-tree.h.
3591 (GTFILES): Add rtl.h, optabs.h, tree.c.
3592 (gt-tree.h): Add it to s-gtype rule.
3593
3594 * .cvsignore: Ignore gengtype flex/bison generated files.
3595 * Makefile.in (GGC_H): Add gtype-desc.h.
3596 (OBJS): Add gtype-desc.o.
3597 (GEN): Add gengtype.
3598 (STAGESTUFF): Add gengtype.
3599 (varasm.o): Add gt-varasm.h.
3600 (stmt.o): Add gt-stmt.h.
3601 (except.o): Add gt-except.h.
3602 (integrate.o): Add gt-integrate.h.
3603 (GTFILES): New.
3604 Add new rules for new files.
3605 * configure: Regenerate.
3606 * configure.in: Correct defaults.h paths.
3607 * emit-rtl.c (mark_sequence_stack): Delete.
3608 (mark_emit_status): Delete.
3609 (start_sequence): Allocate sequence structures using GGC.
3610 (end_sequence): Allocate sequence structures using GGC.
3611 * except.c: Use gengtype for various structures. Include
3612 gt-except.h.
3613 * expr.c (mark_expr_status): Delete.
3614 * function.c: Use gengtype for various structures. Include
3615 gt-function.h.
3616 (mark_function_status): Use standard gt_ggc names for marker functions.
3617 (ggc_mark_struct_function): Likewise.
3618 * function.h: Use gengtype for various structures.
3619 * gengtype-lex.l: New file.
3620 * gengtype-yacc.y: New file.
3621 * gengtype.c: New file.
3622 * gengtype.h: New file.
3623 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
3624 the standard names. Remove some now-unnecessary prototypes.
3625 * integrate.c: Use gengtype for various structures. Include
3626 gt-integrate.h.
3627 (mark_hard_reg_initial_vals): Delete.
3628 * integrate.h (mark_hard_reg_initial_vals): Delete.
3629 * stmt.c: Use gengtype for various structures. Include
3630 gt-stmt.h.
3631 (mark_case_node): Delete.
3632 (mark_goto_fixup): Delete.
3633 (mark_stmt_status): Use standard gt_ggc names for marker functions.
3634 * system.h: Define GTY to empty. In flex/bison files,
3635 don't poison malloc or realloc, instead just define them to
3636 xmalloc and xrealloc.
3637 * varasm.c: Use gengtype for various structures. Include
3638 gt-varasm.h. Use standard gt_ggc names for marker functions.
3639 (mark_pool_constant): Delete.
3640 (mark_varasm_status): Delete.
3641 (decode_rtx_const): #if 0 out non-typesafe hack.
3642
3643 * function.h (free_lang_status): Mark as obsolete.
3644 * function.c (free_lang_status): Mark as obsolete.
3645 * c-decl.c (push_c_function_context): Use GC to allocate and free
3646 struct language_function.
3647 (pop_c_function_context): Likewise.
3648 * c-common.c (mark_c_language_function): Mark struct
3649 language_function.
3650
3651 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
3652 Document that the machine_function structures must be allocated
3653 using GC. Update mark_machine_status documentation.
3654 * function.h: Don't declare free_machine_status.
3655 * function.c (free_machine_status): Don't define.
3656 (free_after_compilation): Don't call free_machine_status.
3657 (ggc_mark_struct_function): Mark f->machine. Call
3658 mark_machine_status only on non-NULL pointers.
3659 * system.h: Poison free_machine_status.
3660 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
3661 struct machine_function.
3662 (xtensa_free_machine_status): Delete.
3663 (override_options): Don't set free_machine_status.
3664 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
3665 free_machine_status.
3666 (rs6000_init_machine_status): Use GC on struct machine_function.
3667 (rs6000_free_machine_status): Delete.
3668 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
3669 machine_function.
3670 (ia64_mark_machine_status): Likewise.
3671 (ia64_free_machine_status): Delete.
3672 (ia64_override_options): Don't set free_machine_status.
3673 * config/i386/i386.c (override_options): Don't set
3674 free_machine_status.
3675 (ix86_init_machine_status): Use GC on struct machine_function.
3676 (ix86_mark_machine_status): Likewise.
3677 (ix86_free_machine_status): Delete.
3678 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
3679 machine_function.
3680 (d30v_mark_machine_status): Likewise.
3681 (d30v_free_machine_status): Delete.
3682 (d30v_init_expanders): Don't set free_machine_status.
3683 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
3684 machine_function.
3685 (arm_init_machine_status): Likewise.
3686 (arm_free_machine_status): Delete.
3687 (arm_init_expanders): Don't set free_machine_status.
3688 * config/alpha/alpha.c (override_options): Don't set
3689 free_machine_status.
3690 (alpha_init_machine_status): Use GC on struct machine_function.
3691 (alpha_mark_machine_status): Likewise.
3692 (alpha_free_machine_status): Delete.
3693
3694 * varasm.c (compare_constant): Fix typo.
3695
3696 * varasm.c: Don't include obstack.h.
3697 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
3698 (struct rtx_const): Give substructures names, improve formatting.
3699 (struct constant_descriptor): Delete.
3700 (struct constant_descriptor_tree): New, based on constant_descriptor.
3701 (const_hash_table): Is a hash table of trees.
3702 (mark_const_hash_entry): Is used for hashes of trees. Mark
3703 constant_descriptor_tree structure.
3704 (mark_const_str_htab_1): Mark deferred_string structure.
3705 (compare_constant): Rewrite to compare trees.
3706 (compare_constant_1): Delete.
3707 (record_constant): Delete.
3708 (record_constant_1): Delete.
3709 (output_constant_def): Use struct constant_descriptor_tree.
3710 Don't duplicate trees twice.
3711 (struct constant_descriptor_rtx): New.
3712 (struct pool_constant): Used for rtx constants.
3713 (init_varasm_status): Update for change to struct varasm_status.
3714 (mark_varasm_status): Likewise.
3715 (free_varasm_status): Delete.
3716 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
3717 (record_constant_rtx): Likewise.
3718 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
3719 (force_const_mem): Likewise.
3720 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
3721 * function.c (free_after_compilation): Don't use free_varasm_status.
3722 * function.h: Don't prototype free_varasm_status.
3723
3724 * ggc-common.c (ggc_realloc): Handle X being NULL.
3725
3726 * ggc-common.c (ggc_realloc): New function.
3727 * ggc.h: Prototype it.
3728 * emit-rtl.c (free_emit_status): Delete.
3729 (init_emit): Allocate emit subarrays using GC.
3730 (gen_reg_rtx): Reallocate subarrays using GC.
3731 (init_emit): Use GC to allocate 'struct emit_status' and its
3732 subarrays.
3733 (mark_emit_status): Mark structure and its subarrays.
3734 * stmt.c (free_stmt_status): Delete.
3735 * expr.c (free_expr_status): Delete.
3736 * function.h: Remove prototypes for deleted functions.
3737 * function.c (free_after_compilation): Don't use deleted functions.
3738 Don't call free() on x_parm_reg_stack_loc.
3739 (free_after_parsing): Don't use free_stmt_status.
3740 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
3741 (mark_function_status): Mark x_parm_reg_stack_loc.
3742
3743 * varasm.c (init_varasm_status): Use GC to allocate
3744 'struct varasm_status' and its fields x_const_rtx_hash_table
3745 and x_const_rtx_sym_hash_table.
3746 (mark_varasm_status): Mark them.
3747 (free_varasm_status): Use GC to free them.
3748 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
3749 (mark_expr_status): Mark the structure itself.
3750 (free_expr_status): Use GC to free the structure.
3751 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
3752 (mark_stmt_status): Mark the 'struct stmt_status' itself.
3753 (init_stmt_for_function): Allocate the structure for GC.
3754
3755 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
3756 (equate_type_number_to_die): Likewise.
3757 * tree.h (TYPE_SYMTAB_DIE): New macro.
3758 (struct die_struct): Predeclare.
3759 (struct tree_type): Add field symtab.die. Add a tag
3760 to the union type of field symtab.
3761
3762 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
3763 'struct rtvec_def *', not 'struct rtvec_def'.
3764
3765 * function.h (original_arg_vector): Make a real rtvec.
3766 * function.c (ggc_mark_struct_function): Adjust.
3767 * integrate.c (expand_inline_function): Adjust.
3768
3769 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3770
3771 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
3772 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
3773 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
3774 (TARGET_VERSION_CPU): Define according to the
3775 default target.
3776 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
3777 TARGET_VERSION_CPU.
3778 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
3779 if TARGET_SHMEDIA64.
3780 (LINK_DEFAULT_CPU_EMUL): Define according to the
3781 default target.
3782 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
3783 (SUBTARGET_LINK_SPEC): Define.
3784 (LINK_SPEC): Use SH_LINK_SPEC.
3785 (ASM_SPEC): Remove.
3786 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3787 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
3788 and TARGET_SHMEDIA64 which abort, for now.
3789 * config/sh/t-netbsd-sh5: New file.
3790 * config/sh/t-netbsd-sh5-32: New file.
3791 * config/sh/t-netbsd-sh5-64: New file.
3792
3793 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3794 Richard Henderson <rth@redhat.com>
3795
3796 * config/alpha/alpha.c (reg_or_const_int_operand): New.
3797 (some_operand, input_operand): Accept CONST_VECTOR.
3798 (alpha_extra_constraint): Add 'W'.
3799 (alpha_expand_zap_mask): New.
3800 (alpha_expand_builtin_vector_binop): New.
3801 (enum alpha_builtin): New.
3802 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
3803 (alpha_init_builtins, alpha_expand_builtin): New.
3804 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
3805 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
3806 (PREDICATE_CODES): Update.
3807 * config/alpha/alpha-protos.h: Update.
3808 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
3809 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
3810 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
3811 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
3812 (movv2si, movv2si_fix, movv2si_nofix): New.
3813 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
3814 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
3815 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
3816 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
3817 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
3818 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
3819 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
3820 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
3821 builtin_unpkbw, unpkbw): New.
3822 * doc/extend.texi (Alpha Built-in Functions): New.
3823
3824 2002-06-03 Richard Henderson <rth@redhat.com>
3825
3826 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
3827 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
3828
3829 2002-06-03 Richard Henderson <rth@redhat.com>
3830
3831 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
3832
3833 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
3834 (const0_operand): New.
3835 (reg_or_fp0_operand, fp0_operand): Remove.
3836 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3837 * config/alpha/alpha-protos.h: Update.
3838 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
3839 and fp0_operand with reg_or_0_operand and const0_operand.
3840
3841 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
3842
3843 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
3844
3845 2002-06-03 Roger Sayle <roger@eyesopen.com>
3846
3847 * gcse.c (cprop_jump): Use single_set to get the pattern
3848 from the setcc argument.
3849
3850 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
3851
3852 * diagnostic.h (diagnostic_count): Move from output_buffer to
3853 diagnostic_context.
3854 (diagnostic_kind_count): Adjust definition.
3855
3856 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
3857
3858 * except.c (except.c): Do not rebuild CFG.
3859 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
3860 optimization.
3861
3862 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
3863
3864 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
3865 * toplev.c: Include cfglahout.h
3866 * Makefile.in (toplev.c): Add dependnecy.
3867
3868 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
3869
3870 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
3871 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
3872 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
3873
3874 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
3875
3876 * config/ns32k/netbsd.h: Update copyright years.
3877 (TARGET_OS_CPP_BUILTINS): Define.
3878 (CPP_PREDEFINES): Remove.
3879 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
3880 (TARGET_CPU_CPP_BUILTINS): Define.
3881
3882 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
3883
3884 * emit-rtl.c: Fix formatting.
3885 * errors.h: Likewise.
3886 * except.c: Likewise.
3887 * explow.c: Likewise.
3888 * expmed.c: Likewise.
3889 * expr.c: Likewise.
3890 * expr.h: Likewise.
3891
3892 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
3893
3894 * config/h8300/elf.h: Fix formatting.
3895 * config/h8300/rtems.h: Likewise.
3896
3897 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
3898
3899 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
3900
3901 2002-06-02 Tom Tromey <tromey@redhat.com>
3902
3903 * fixinc/fixincl.x: Rebuilt.
3904 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
3905
3906 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3907
3908 config/i370:
3909 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
3910 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
3911 * mvs.h: Similarly.
3912 * oe.h: Similarly.
3913
3914 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
3915
3916 * final.c (final): Allow notes to not have computed addresses;
3917 kill no longer needed STACK_REGS ifdef.
3918
3919 2002-06-02 Richard Henderson <rth@redhat.com>
3920
3921 * gcse.c (bypass_conditional_jumps): Fix typo last change.
3922
3923 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3924
3925 * loop.c (emit_prefetch_instructions): Properly place the address
3926 computation.
3927
3928 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
3929
3930 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
3931 (set_block_for_insn): Turn into macro.
3932 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
3933 * cfglayout.c (insn_scopes): Kill.
3934 (scope_to_insns_initialize): Do not use insn_scopes.
3935 (scope_to_insns_finalize): Likewise.
3936 (duplicate_insn_chain): Likewise.
3937 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
3938 * cfgrtl.c (basic_block_for_insn): Kill.
3939 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
3940 (create_basic_block_structure): Use reorder_insns.
3941 (compute_bb_for_insn): Do not use basic_block_for_insn.
3942 (merge_blocks_nomove): Likewise.
3943 (update_bb_for_insn): Likewise.
3944 (verify_flow_info): Likewise.
3945 (set_block_for_insn): Kill.
3946 * combine.c (try_combine): Update gen_rtx_INSN call.
3947 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
3948 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
3949 scopes and BBs.
3950 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
3951 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
3952 Clear BB.
3953 (emit_insns_after): Simplify.
3954 (emit_copy_of_insn_after): Copy scope.
3955 * final.c (final_start_function): Lower scopes.
3956 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
3957 * integrate.c (copy_insn_list): Cope scopes.
3958 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
3959 * loop.c (loop_optimize): Do not care block notes.
3960 * print-rtl.c (print_rtx): Print BB.
3961 * recog.c (apply_change_group): Simplify.
3962 * rtl.c (copy_rtx): Handle 'B'.
3963 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
3964 * rtl.h (Field accessors): Update indexes.
3965 * sched-ebb.c (schedule_ebbs): Do not lower notes.
3966 * sched-rgn.c (schedule_insns): Likewise.
3967 * toplev.c (rest_of_compilation): Lower notes.
3968 * unroll.c (unroll_loop): Do not care scoping notes.
3969 (copy_loop_body): Copy scopes.
3970
3971 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3972
3973 config/h8300:
3974 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
3975 SUBTARGET_SPEC.
3976 * rtems.h: Similarly.
3977 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
3978 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
3979 (TARGET_CPU_CPP_BUILTINS): Use.
3980
3981 2002-06-02 Richard Henderson <rth@redhat.com>
3982
3983 * alias.c: Include target.h.
3984 (mark_constant_function): Use targetm.binds_local_p instead
3985 of checking TREE_PUBLIC ourselves.
3986 * Makefile.in (alias.o): Add TARGET_H.
3987
3988 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3989
3990 * c-lex.c: Update copyright and file description.
3991
3992 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3993
3994 * config/fr30/fr30.h: Update to new CPP macros.
3995
3996 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3997
3998 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
3999
4000 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4001 Zack Weinberg <zack@codesourcery.com>
4002
4003 * c-common.c (c_common_init): Override cpplib's default
4004 warn_long_long setting.
4005 * c-lex.c (lex_number): Replace with interpret_integer,
4006 interpret_float, narrowest_unsigned_type and
4007 narrowest_signed_type, taking advantage of the new
4008 cpplib functionality.
4009 * cpperror.c (_cpp_begin_message): If a warning is turned
4010 into an error, avoid printing "warning:".
4011 * cppexp.c (cpp_num_sign_extend): New.
4012 * cppinit.c: Update comment.
4013 * cpplib.h (cpp_num_sign_extend): New.
4014 * tree.h: Update comment.
4015
4016 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
4017
4018 * diagnostic.h (struct diagnostic_context): Add new member
4019 internal_error.
4020 (internal_error_function): Remove declaration.
4021 * diagnostic.c (internal_error_function): Remove definition..
4022 (internal_error): Adjust use.
4023
4024 2002-06-02 Richard Henderson <rth@redhat.com>
4025
4026 * rtl.h (CC0_P): New.
4027 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
4028 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
4029 (bypass_block): Save old dest block for dump text.
4030 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
4031 Allow only true SET insns, not single_set.
4032
4033 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
4034
4035 * diagnostic.c (diagnostic_finish): Rename to output_flush.
4036 (clear_disgnostic_info): Rename to output_clear_data. Use false
4037 instead of 0 for boolean value.
4038 Adjust function call throughout.
4039
4040 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
4041
4042 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
4043 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
4044
4045 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4046
4047 * d30v.h (CPP_PREDEFINES): Replace with
4048 (TARGET_CPU_CPP_BUILTINS): New.
4049
4050 2002-06-02 Roger Sayle <roger@eyesopen.com>
4051
4052 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
4053
4054 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
4055
4056 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
4057
4058 2002-06-02 Richard Henderson <rth@redhat.com>
4059
4060 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
4061
4062 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
4063
4064 Support for C++ constructors/destructors.
4065 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
4066 instead of looping if main() returns.
4067 (asm_file_start): Output global symbols that cause .data and .bss
4068 initialization code to be linked in, unconditionally for now.
4069 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
4070 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
4071 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
4072 (LIBSTDCXX): New.
4073 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
4074 (__tablejump__): New.
4075 (__do_copy_data, __do_clear_bss): New.
4076 (__do_global_ctors, __do_global_dtors): New.
4077 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
4078 _ctors, _dtors.
4079
4080 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4081
4082 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
4083 (CPP_SPEC, CPP_PREDEFINES): Kill.
4084 * c4x/rtems.h (CPP_PREDEFINES): Kill.
4085 (TARGET_OS_CPP_BUILTINS): New.
4086
4087 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
4088
4089 * Makefile.in (tracer.o): New.
4090 * params.def (TRACER_*): New options.
4091 * rtl.h (tracer): Declare.
4092 * timevar.def (TV_TRACER): New.
4093 * toplev.c (dump_file_index): Add DFI_tracer.
4094 (dump_file_info): Add tracer.
4095 (flag_tracer): New.
4096 (lang_indepdenent_options): Add tracer.
4097 (rest_of_compilation): Call tracer.
4098 * tracer.c: New file.
4099 * invoke.texi (-ftracer): Document.
4100 (--param tracer-*): Document.
4101
4102 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
4103
4104 * tree-inline.c (expand_call_inline): Make the statement
4105 expression we generate have a COMPOUND_STMT.
4106
4107 2002-06-01 Roger Sayle <roger@eyesopen.com>
4108
4109 * gcse.c (cprop_cc0_jump): Function deleted.
4110 (cprop_jump): Take an additional argument which is the possibly
4111 NULL cc setting insn immediately before the conditional jump.
4112 When a MODE_CC set is present, substitute it into the JUMP_INSN
4113 before attempting the constant propagation.
4114 (cprop_insn): Recognize cc setters followed by conditional jumps
4115 as a special case. Use cprop_jump instead of cprop_cc0_jump.
4116 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
4117 (find_bypass_set): New function based upon find_avail_set used by
4118 cprop, but finds constant expressions available at the end of
4119 basic blocks.
4120 (bypass_block): New function. Given a basic block that begins
4121 with a conditional jump and multiple incoming edges, perform
4122 the jump bypass optimization.
4123 (bypass_conditional_jumps): New function. Call bypass_block with
4124 each suitable basic block in the CFG using a simple single pass.
4125
4126 2002-06-01 Roger Sayle <roger@eyesopen.com>
4127
4128 * tree.c (real_minus_onep): New function to test for -1.0.
4129 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
4130
4131 2002-06-01 Roger Sayle <roger@eyesopen.com>
4132
4133 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
4134 and "!p && !q" into "(p|q) == 0" under suitable conditions.
4135
4136 2002-06-01 Andreas Jaeger <aj@suse.de>
4137
4138 * cppexp.c (cpp_classify_number): Cast precission to int for
4139 correct printf format.
4140
4141 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
4142
4143 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
4144 expected, but don't really exist: atmega83, atmega85, attiny10.
4145 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
4146 emulations for all devices.
4147 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
4148 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
4149
4150 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
4151
4152 * config/h8300/h8300-protos.h: Add a prototype for
4153 h8300_shift_needs_scratch_p.
4154 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
4155 * config/h8300/h8300.h (OK_FOR_R): New.
4156 (OK_FOR_S): Likewise.
4157 (OK_FOR_T): Likewise.
4158 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
4159 * config/h8300/h8300.md (anonymous shift patterns): Use
4160 constraints R, S, and T.
4161
4162 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4163
4164 * basic-block.h (struct basic_block_def): New field loop_father.
4165 (BB_VISITED): New flag.
4166 (struct loop): New field pred, removed field shared.
4167 (struct loops): New field parray.
4168 (LOOP_EXITS_DOMS): Removed.
4169 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
4170 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
4171 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
4172 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
4173 verify_loop_structure): Declare.
4174 * cfg.c (entry_exit_blocks): Initialize loop_father field.
4175 * cfganal.c (dfs_enumerate_from): New function.
4176 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
4177 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4178 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
4179 flow_loop_dump, flow_loops_dump, flow_loops_free,
4180 flow_loop_tree_node_add, flow_loop_level_compute,
4181 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
4182 flow_loop_outside_edge_p): Modified for new infrastructure.
4183 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
4184 redirect_edge_with_latch_update, flow_loop_free): New static functions.
4185 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
4186 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
4187 find_common_loop, verify_loop_structure, loop_latch_edge,
4188 loop_preheader_edge): New functions.
4189 (flow_loops_cfg_dump): Do not show dominators, as this information
4190 does not remain up to date long.
4191 (flow_loops_find): Store results in new format.
4192 * predict.c (propagate_freq, estimate_probability,
4193 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
4194 infrastructure.
4195
4196 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
4197
4198 * except.c (nothrow_function_p): Walk epilogue delay list
4199 checking the insn, not the chain for potential throws.
4200
4201 2002-05-31 Zack Weinberg <zack@codesourcery.com>
4202
4203 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
4204 (install): Refer to install-cpp directly.
4205 (uninstall-cpp): Folded into uninstall rule.
4206 * configure.in: Delete all code relating to --disable-cpp.
4207 * configure: Regenerate.
4208 * config/t-install-cpp: Delete.
4209
4210 2002-05-31 Richard Henderson <rth@redhat.com>
4211
4212 * configure.in (HAVE_AS_TLS): Add alpha tests.
4213 * configure: Rebuild.
4214 * config/alpha/alpha.c (TARGET_AS_TLS): New.
4215 (alpha_tls_size, alpha_tls_size_string): New.
4216 (overide_options): Set it. Always install machine_status hooks.
4217 (input_operand): Accept got tls predicates.
4218 (local_symbol_p): Merge into ...
4219 (local_symbolic_operand): ... here. Reject tls symbols.
4220 (global_symbolic_operand): Likewise.
4221 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
4222 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
4223 (tp16_symbolic_operand, tp32_symbolic_operand): New.
4224 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
4225 (alpha_encode_section_info): Handle TLS symbols.
4226 (alpha_strip_name_encoding): Likewise.
4227 (alpha_legitimate_address_p): Likewise.
4228 (alpha_legitimize_address): Likewise.
4229 (alpha_expand_mov): Early exit to avoid nop moves.
4230 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
4231 (alpha_init_machine_status, alpha_mark_machine_status,
4232 alpha_free_machine_status): Always define.
4233 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
4234 (print_operand, print_operand_address): Add TLS relocs.
4235 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
4236 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
4237 (TARGET_SWITCHES): Add -mtls-kernel.
4238 (alpha_tls_size, alpha_tls_size_string): New.
4239 (TARGET_OPTIONS): Add -mtls-size=.
4240 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
4241 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
4242 (ASM_OUTPUT_LABELREF): Skip %.
4243 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
4244 (PREDICATE_CODES): Update.
4245 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
4246 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
4247 UNSPEC_TP, UNSPECV_SET_TP): New.
4248 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
4249 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
4250 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
4251 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
4252 (call_value_osf_2_er): Accept anything as op4.
4253 * config/alpha/alpha-protos.h: Update.
4254 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
4255
4256 2002-05-31 Zack Weinberg <zack@codesourcery.com>
4257
4258 * cppinit.c (append_include_chain): Always pay attention to
4259 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
4260 marker on argument.
4261
4262 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
4263
4264 * target.h: Fix formatting.
4265 * timevar.h: Likewise.
4266 * tlink.c: Likewise.
4267 * toplev.c: Likewise.
4268 * toplev.h: Likewise.
4269 * tree.c: Likewise.
4270 * tree-dump.h: Likewise.
4271 * tree.h: Likewise.
4272 * tree-inline.h: Likewise.
4273 * unroll.c: Likewise.
4274 * unwind-dw2.c: Likewise.
4275 * unwind-dw2-fde.c: Likewise.
4276 * unwind-dw2-fde-glibc.c: Likewise.
4277 * unwind-dw2-fde.h: Likewise.
4278 * unwind.h: Likewise.
4279 * unwind-sjlj.c: Likewise.
4280 * varasm.c: Likewise.
4281 * varray.h: Likewise.
4282 * vmsdbg.h: Likewise.
4283 * vmsdbgout.c: Likewise.
4284 * xcoffout.h: Likewise.
4285
4286 2002-05-31 Igor Shevlyakov <igor@microunity.com>
4287
4288 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
4289 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
4290
4291 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
4292
4293 * gcc.c (cpp_unique_options): Remove "-d" options.
4294 (cpp_debug_options): New spec string.
4295 (default_compilers): Use it.
4296 * objc/lang-specs.h: Likewise.
4297
4298 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
4299
4300 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
4301 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
4302 * gcc/mklibgcc.in: Likewise.
4303 * gcc/config/arc/t-arc: Likewise.
4304 * gcc/configure.in: Likewise.
4305 * gcc/configure: Regenerate.
4306
4307 2002-05-31 Stan Shebs <shebs@apple.com>
4308 Turly O'Connor <turly@apple.com>
4309
4310 * c-decl.c (struct binding_level): Change int field n_incomplete
4311 to tree list incomplete_list.
4312 (clear_binding_level): Init field with NULL.
4313 (pushdecl): Add incomplete type to list.
4314 (mark_binding_level): Mark the incomplete list.
4315 (finish_struct): Scan the incomplete list for types instead
4316 of all decls in the current binding level.
4317
4318 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4319
4320 * pa.c (output_millicode_call): Add missing '%' characters.
4321 (output_call): Likewise.
4322
4323 2002-05-31 David Edelsohn <edelsohn@gnu.org>
4324
4325 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
4326 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4327
4328 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
4329
4330 * varasm.c (mark_constant_pool): Walk epilogue delay list
4331 checking the insn, not the chain for potential constants.
4332
4333 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
4334
4335 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
4336
4337 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
4338
4339 * i386.c (classify_argument): Properly handle base types.
4340
4341 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
4342 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
4343 registers.
4344
4345 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4346
4347 * gcse.c (gcse_emit_move_after): New.
4348 (pre_delete, hoist_store): Use it.
4349
4350 * reload1.c (emit_input_reload_insns): Use constrain_operands
4351 instead of constraint_accepts_reg_p to verify optimization.
4352 (constraint_accepts_reg_p): Kill
4353
4354 * reload1.c (reload_cse_delete_noop_set): Kill.
4355 (reload_cse_simplify): use delte_insn_and_edges.
4356
4357 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4358
4359 * cfgloop.c (flow_loops_find): Initialize first and last fields
4360 correctly.
4361
4362 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
4363
4364 * c-common.c (builtin_define_std): Correct logic.
4365
4366 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4367
4368 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
4369 (output_call): Likewise.
4370
4371 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4372
4373 * pa.c: Move output.h include after tree.h include.
4374 (pa_asm_output_mi_thunk): Constify identifier lab.
4375
4376 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4377
4378 * config/ns32k/ns32k.h: Define named constants for the
4379 bits in target_flags and use them.
4380 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
4381
4382 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4383
4384 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
4385 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
4386 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
4387 default scheduling model.
4388 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
4389 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
4390 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
4391 * doc/install.texi (hppa*-*-*): Document default scheduling.
4392
4393 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4394
4395 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
4396
4397 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4398
4399 * config.gcc (ns32k-*-netbsd*): Set tm_file to
4400 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
4401 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
4402 netbsd.h, or netbsd-aout.h.
4403
4404 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4405
4406 * longlong.h (count_trailing_zeros): Add missing \, and clean up
4407 whitespace in __ns32000__ case.
4408
4409 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
4410
4411 * expr.c (expand_expr): Output partially zeroed out vectors with
4412 output_constant_def.
4413
4414 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4415
4416 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
4417 (sh-*-netbsdelf*)
4418 (shl*-*-netbsdelf*): New targets.
4419 * config/sh/netbsd-elf.h: New file.
4420 * config/sh/t-netbsd: New file.
4421
4422 2002-05-30 Richard Henderson <rth@redhat.com>
4423 Eric Botcazou <ebotcazou@multimania.com>
4424
4425 PR optimization/6822
4426 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
4427 to unsigned int for op1 comparisons. Use gen_int_mode.
4428
4429 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
4430
4431 * expmed.c (const_mult_add_overflow_p): New.
4432 * expr.h: Declare it.
4433 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
4434 Don't eliminate the biv if the giv has a constant multiplier and
4435 the rhs argument of the comparison does satisfy the predicate.
4436 Use expand_mult_add to compute the replacement constant.
4437
4438 2002-05-30 Osku Salerma <osku@iki.fi>
4439
4440 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
4441 (c_common_get_alias_set): Handle it.
4442 * doc/extend.texi: Document it.
4443
4444 2002-05-30 Richard Henderson <rth@redhat.com>
4445
4446 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4447 * toplev.c (process_options): Don't check it.
4448 * doc/tm.texi: Don't document it.
4449 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
4450 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4451 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
4452 frame pointer optimization if current_function_profile.
4453
4454 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
4455
4456 * langhooks.c: Fix formatting.
4457 * langhooks.h: Likewise.
4458 * lcm.c: Likewise.
4459 * libgcc2.c: Likewise.
4460 * lists.c: Likewise.
4461 * local-alloc.c: Likewise.
4462 * loop.c: Likewise.
4463 * loop.h: Likewise.
4464
4465 2002-05-30 Marc Espie <espie@openbsd.org>
4466
4467 * config.gcc (sparc64-*-openbsd*): New.
4468 * config/sparc/openbsd1-64.h: New.
4469 * config/sparc/openbsd64.h: New.
4470
4471 2002-05-30 Jeff Law <law@redhat.com>
4472
4473 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
4474 a dead insn with a REG_RETVAL note when the entire libcall is not
4475 dead and remove the associated REG_LIBCALL note at the same time.
4476
4477 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
4478
4479 * lcm.c (output.h): #include.
4480 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
4481 as an ordinary block.
4482 (optimize_mode_switching): Don't pretend that the exit block is
4483 an ordinary block, or handle sucessors of entry block specially.
4484 Instead, split edges from entry block and to exit block, and
4485 put a computing definition on the thus gained post-entry-block,
4486 and a need on the pre-exit-block.
4487
4488 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
4489
4490 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
4491 * rtl.texi: Document 'B'
4492
4493 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4494
4495 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
4496 at run-time.
4497 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
4498
4499 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
4500
4501 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
4502 const0_rtx instead of NULL_RTX when in error.
4503 (altivec_expand_abs_builtin): Same.
4504 (rs6000_expand_binop_builtin): Same.
4505 (altivec_expand_predicate_builtin): Same.
4506 (altivec_expand_stv_builtin): Same.
4507 (rs6000_expand_ternop_builtin): Same.
4508 (altivec_expand_builtin): Same.
4509
4510 2002-05-29 David S. Miller <davem@redhat.com>
4511
4512 * rtl.h (clear_emit_caches): Delete.
4513 * integrate.c (output_inline_function): Don't call it.
4514 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
4515 (clear_emit_caches): Delete definition.
4516 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
4517
4518 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
4519
4520 * config/mmix/mmix.c: Include real.h.
4521 (mmix_constant_address_p): Remove redundant test before switch.
4522
4523 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4524
4525 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
4526 only if not already defined.
4527
4528 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
4529
4530 * config/h8300/h8300-protos.h: Remove prototypes for
4531 ok_for_bclr and small_power_of_two.
4532 * config/h8300/h8300.c (small_power_of_two): Remove.
4533 (ok_for_blcr): Likewise.
4534 (fix_bit_operand): Make WHAT deal with an integer instead of a
4535 constraint character.
4536 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
4537 (CONST_OK_FOR_P): Likewise.
4538 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
4539 CONST_OK_FOR_P any more.
4540 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
4541 of fix_bit_operand.
4542 (iorqi3): Likewise.
4543 (xorqi3): Likewise.
4544
4545 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4546
4547 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4548 (CPP_PREDEFINES): Make sure this is undefined.
4549 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
4550 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
4551 or -U__MIPSEB__ before defining one or the other. Instead,
4552 use %(subtarget_endian_default) if neither -EB nor -EL are
4553 specified.
4554 (SUBTARGET_EXTRA_SPECS): Define.
4555 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
4556 %(netbsd_cpp_spec).
4557
4558 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
4559
4560 * doc/md.texi (Patterns): Note pattern condition pitfall
4561 for unnamed insn.
4562
4563 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
4564
4565 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
4566 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
4567 ternary operations from here...
4568 (rs6000_expand_builtin): ...to here.
4569 New argument expandedp.
4570 Change all instances of altivec_expand_binop_builtin to
4571 rs6000_expand_binop_builtin.
4572 (altivec_expand_unop_builtin): Rename to
4573 rs6000_expand_unop_builtin.
4574 (altivec_expand_binop_builtin): Rename to
4575 rs6000_expand_binop_builtin.
4576 (altivec_expand_ternop_builtin): Rename to
4577 rs6000_expand_ternop_builtin.
4578
4579 2002-05-29 Richard Henderson <rth@redhat.com>
4580
4581 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
4582 (TARGET_BI_ARCH): Likewise.
4583 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
4584 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
4585 (TARGET_64BIT_DEFAULT): Default to 0.
4586 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
4587
4588 2002-05-29 Richard Henderson <rth@redhat.com>
4589
4590 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
4591 (get_pc_thunk_name): New.
4592 (output_set_got): Use it.
4593 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
4594 into linkonce sections.
4595
4596 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4597
4598 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4599 (CPP_PREDEFINES): Make sure this is undefined.
4600 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
4601 (CPP_SUBTARGET_SPEC): Don't provide different versions for
4602 default-32 and default-64. Just always use %(netbsd_cpp_spec).
4603 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
4604 cpp_subtarget_spec64. Add netbsd_cpp_spec.
4605 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4606 (CPP_PREDEFINES): Make sure this is undefined.
4607 (SUBTARGET_EXTRA_SPECS): Define.
4608 (CPP_SPEC): Use %(netbsd_cpp_spec).
4609
4610 2002-05-29 Jeff Law <law@redhat.com>
4611
4612 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
4613
4614 * flow.c (propagate_one_insn): Do not remove a dead insn if it
4615 contains a REG_RETVAL note.
4616
4617 * haifa-sched (sched_analyze): Remove another useless clearing
4618 of SCHED_GROUP_P I missed yesterday.
4619
4620 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
4621 * pa.c (pa_asm_output_mi_thunk): New function.
4622 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
4623
4624 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
4625 Marek Michalkiewicz <marekm@amelek.gda.pl>
4626
4627 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
4628 (avr_asm_only_p): Make non-static.
4629 (enum avr_arch): Remove.
4630 (avr_arch_types): New.
4631 (avr_mcu_types): Update.
4632 (avr_override_options): Use avr_arch_types table instead of switch.
4633 * avr.h (CPP_PREDEFINES): Die.
4634 (avr_base_arch_macro, avr_extra_arch_macro): New.
4635 (TARGET_CPU_CPP_BUILTINS): New.
4636 (CPP_SPEC, EXTRA_SPECS): Simplify.
4637 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
4638 CPP_AVR5_SPEC): Die.
4639
4640 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4641
4642 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4643 NETBSD_OS_CPP_BUILTINS_AOUT.
4644 (SUBTARGET_EXTRA_SPECS): Define.
4645 (CPP_SPEC): Use %(netbsd_cpp_spec).
4646
4647 2002-05-29 Richard Henderson <rth@redhat.com>
4648
4649 * config/i386/i386.c (ix86_output_function_epilogue): New.
4650 (TARGET_ASM_FUNCTION_EPILOGUE): New.
4651 (pic_label_name): Remove.
4652 (pic_labels_used): New.
4653 (ix86_asm_file_end): Emit one pc load stub for each register used.
4654 (output_set_got): Generate deep pc load to any register.
4655 (ix86_select_alt_pic_regnum): New.
4656 (ix86_save_reg): Don't save pic register if we can find a valid
4657 call-clobbered replacement.
4658 (ix86_expand_prologue): If we found a valid replacement, renumber
4659 pic_offset_table_rtx.
4660 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
4661 pic_offset_table_rtx after reload.
4662 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
4663 * config/i386/i386.md (set_got): Make insn, not expander.
4664 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
4665
4666 2002-05-29 Richard Henderson <rth@redhat.com>
4667
4668 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
4669 alignment for alloca.
4670
4671 2002-05-29 Richard Henderson <rth@redhat.com>
4672
4673 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
4674 (print_operand_address): Only add rip for symbolic addresses
4675 for which we do not have another relocation type.
4676
4677 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4678
4679 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4680 (EXTRA_SPECS): Add netbsd_cpp_spec.
4681 (CPP_SPEC): Use %(netbsd_cpp_spec).
4682 (CPP_PREDEFINES): Remove.
4683 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4684 (EXTRA_SPECS): Define.
4685 (CPP_SPEC): Use %(netbsd_cpp_spec).
4686 (CPP_PREDEFINES): Remove.
4687
4688 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
4689
4690 PR preprocessor/6844
4691 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
4692 NUL.
4693
4694 2002-05-29 Eric Christopher <echristo@redhat.com>
4695
4696 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
4697 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
4698
4699 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
4700
4701 * config/fr30/fr30.md: Remove previous restriction on splits.
4702 Enforce conformance through gen_lowpart and cont_int_operand.
4703 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
4704 as the assembler does not support ".bss".
4705
4706 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4707
4708 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4709 (CPP_PREDEFINES): Remove.
4710 (SUBTARGET_EXTRA_SPECS): Define.
4711 (CPP_SPEC): Use %(netbsd_cpp_spec).
4712 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4713 (CPP_PREDEFINES): Remove.
4714 (SUBTARGET_EXTRA_SPECS): Define.
4715 (CPP_SPEC): Use %(netbsd_cpp_spec).
4716 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
4717 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
4718 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
4719 Add netbsd_cpp_spec.
4720 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
4721
4722 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
4723 Zack Weinberg <zack@codesourcery.com>
4724
4725 * cppexp.c (cpp_num): Move to cpplib.h.
4726 (CPP_ERROR): Remove.
4727 (interpret_float_suffix, interpret_int_suffix): New.
4728 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
4729 (cpp_classify_number, cpp_interpret_integer): New.
4730 (interpret_number): Remove.
4731 (eval_token): Update to use new routines.
4732 * cpphash.h (cpp_num_part): Move to cpplib.h.
4733 * cppinit.c (cpp_post_options): Set warn_long_long.
4734 * cpplib.h (struct cpp_options): Add warn_long_long.
4735 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
4736 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
4737 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
4738 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
4739 cpp_interpret_integer): New.
4740
4741 2002-05-29 Joel Sherrill <joel@OARcorp.com>
4742
4743 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
4744
4745 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4746
4747 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4748 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
4749 (CPP_SUBTARGET_SPEC): Define.
4750 (SUBTARGET_EXTRA_SPECS): Define.
4751 (CPP_SPEC): Remove.
4752
4753 2002-05-29 Chris Lattner <sabre@nondot.org>
4754
4755 * ssa.c (rename_insn_1): Rename uses of undefined registers to
4756 prevent confusion if/when the register is defined.
4757
4758 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
4759
4760 PR target/6838
4761 * config/cris/cris.md: Fix typos and thinkos in comments.
4762 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
4763 second alternative.
4764 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
4765 ("*mov_sideqi_mem"): Similar, but for operand 3.
4766 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
4767 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
4768 Remove spurious mode specifier on operand 2.
4769
4770 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
4771
4772 * config/h8300/h8300-protos.h: Remove the prototype for
4773 o_operand.
4774 Add prototypes for single_one_operand and single_zero_operand.
4775 * config/h8300/h8300.c (o_operand): Remove.
4776 (single_one_operand): New.
4777 (single_zero_operand): Likewise.
4778 (print_operand): For 'V' operand, and the operand with 0xff.
4779 For 'V' and 'W' operands, do not and the bit position with 7.
4780 * config/h8300/h8300.md (various anonymous patterns): Replace
4781 use of exact_log2 with single_one_operand/single_zero_operand.
4782
4783 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
4784
4785 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
4786
4787 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
4788
4789 * config/s390/s390.c (legitimate_pic_operand_p): Do not
4790 accept symbolic LARL operands.
4791 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
4792 epilogue insns.
4793
4794 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
4795
4796 * config/s390/s390.md (cmpstr_64/31): Mark whole
4797 input registers as used.
4798
4799 2002-05-28 Richard Henderson <rth@redhat.com>
4800
4801 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
4802 not current_function_uses_pic_offset_table and
4803 current_function_uses_const_pool; examine current_function_profile.
4804 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
4805 input to blockage if needed.
4806 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
4807 (legitimize_pic_address): Likewise. Set regs_ever_live for
4808 pic_offset_table_rtx when invoked during reload.
4809 * config/i386/i386.h (FINALIZE_PIC): Remove.
4810 * config/i386/i386.md (tablejump): Reformat. Do not set
4811 current_function_uses_pic_offset_table.
4812 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
4813 (blockage): Accept anything as operand 0.
4814
4815 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4816
4817 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
4818 common CPP built-ins for all NetBSD a.out targets.
4819 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
4820 common CPP built-ins for all NetBSD ELF targets.
4821 * config/netbsd.h: Add missing notice.
4822 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
4823 for all NetBSD targets.
4824 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
4825 for all NetBSD targets using an LP64 code model.
4826 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
4827 NetBSD targets.
4828
4829 2002-05-28 Richard Henderson <rth@redhat.com>
4830
4831 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
4832 update if UPDATE_LIFE_LOCAL.
4833
4834 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4835
4836 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
4837
4838 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
4839 Jason R. Thorpe <thorpej@wasabisystems.com>
4840
4841 config/sh reorganization to factor out endianness and coff:
4842
4843 * config/sh/little.h: New file.
4844 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
4845 defined, define to 0 to select big-endian.
4846 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
4847 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4848 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4849 * config/sh/t-be: New file.
4850 * config/sh/t-le: New file.
4851
4852 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
4853 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
4854 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
4855 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
4856 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4857 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4858 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
4859 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
4860 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
4861 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
4862 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
4863 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
4864 (LINK_SPEC): Define to SH_LINK_SPEC.
4865 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
4866 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
4867 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4868 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
4869 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
4870 * config/sh/coff.h: New file.
4871 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
4872 (TARGET_OBJFMT_CPP_BUILTINS): Define.
4873 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
4874 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
4875 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
4876 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
4877 (PTRDIFF_TYPE): Likewise.
4878 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
4879 (CPP_PREDEFINES): Don't define.
4880 (TARGET_OBJFMT_CPP_BUILTINS): Define.
4881 (LINK_SPEC): Define to SH_LINK_SPEC.
4882 (LINK_EMUL_PREFIX): Redefine.
4883 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
4884 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
4885 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
4886 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
4887 (TARGET_OS_CPP_BUILTINS): Define.
4888 (TARGET_DEFAULT): Redefine.
4889 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4890 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
4891 (LINK_SPEC): Don't redefine.
4892 (LINK_DEFAULT_CPU_EMUL): Redefine.
4893 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4894 * sh.c (sh_asm_named_section): Don't declare / define.
4895 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
4896 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
4897 (sh64-*-elf* tm_file): Likewise.
4898 (sh-*-rtemself* tm_file): Likewise.
4899 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
4900 (sh-*-linux* tmake_file): Add sh/t-le.
4901 (sh-*-rtems* tm_file): Add sh/coff.h
4902 (sh-*-* tm_file): Likewise.
4903
4904 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
4905
4906 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
4907 CONSTANT_POOL_ADDRESS_P.
4908
4909 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
4910
4911 2002-05-28 David Edelsohn <edelsohn@gnu.org>
4912 Jeff Law <law@redhat.com>
4913
4914 * optabs.c (expand_binop): Fix nwords sign warnings.
4915 generate pseudo for add_optab.
4916
4917 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
4918 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
4919
4920 2002-05-28 Marc Espie <espie@openbsd.org>
4921
4922 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
4923 inherited from gas.h.
4924 (ASM_QUAD): Undef. OpenBSD does not support it.
4925
4926 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
4927
4928 * doc/install.texi (binaries): Change mingw binaries
4929 link to www.mingw.org.
4930
4931 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4932
4933 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
4934
4935 2002-05-28 Richard Henderson <rth@redhat.com>
4936
4937 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
4938 bottom alignment for leaf functions.
4939
4940 2002-05-28 Zack Weinberg <zack@codesourcery.com>
4941
4942 * config/pa/milli32.S, config/pa/lib1funcs.asm,
4943 config/sparc/sol2-g1.asm: Delete unused files.
4944
4945 2002-05-28 Richard Henderson <rth@redhat.com>
4946
4947 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
4948
4949 * flow.c (calculate_global_regs_live): Rename call_used to
4950 invalidated_by_call. Initialize from regs_invalidated_by_call
4951 instead of call_used_regs.
4952
4953 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
4954 DECL_EXTERNAL.
4955
4956 2002-05-28 Zack Weinberg <zack@codesourcery.com>
4957
4958 * tree.h: Don't include real.h.
4959 Forward-declare struct realvaluetype.
4960 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
4961 contain it.
4962 (TREE_REAL_CST_PTR): New accessor.
4963 (TREE_REAL_CST): Update.
4964 * real.h: Include machmode.h.
4965 (realvaluetype): Make it struct realvaluetype, not a typedef.
4966 (build_real): Prototype here.
4967
4968 * tree.c: Include real.h.
4969 (build_real): Allocate the REAL_VALUE_TYPE as a separate
4970 object in GC memory, set TREE_REAL_CST_PTR to point to it.
4971 (build_real_from_int_cst): Use build_real.
4972 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
4973 REAL_CST.
4974
4975 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
4976 fold-const.c, print-tree.c, real.c: Include real.h.
4977 * Makefile.in: Update dependency lists.
4978
4979 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4980
4981 * basic-block.h (last_basic_block): Declare.
4982 (expunge_block_nocompact): Declaration removed.
4983 (compact_blocks): Declare.
4984 * cfg.c (last_basic_block): New variable.
4985 (expunge_block_nocompact): Removed.
4986 (expunge_block): Do not compact basic blocks.
4987 (compact_blocks): New.
4988 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
4989 longer change.
4990 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
4991 last_basic_block.
4992 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
4993 real positions of blocks.
4994 (delete_unreachable_blocks): Simplified -- quadratic behavior now
4995 cannot occur.
4996 (cleanup_cfg): Compact blocks.
4997 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
4998 basic_block_info varray.
4999 (flow_delete_block): Comment update.
5000 (back_edge_of_syntactic_loop_p): Modify position check code.
5001 (verify_flow_info): Update checking.
5002 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
5003 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5004 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
5005 indices no longer change.
5006 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
5007 last_basic_block.
5008 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
5009 * profile.c (branch_prob): Compact blocks.
5010 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
5011 last_basic_block.
5012
5013 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
5014
5015 * config/h8300/h8300.md (two anonymous patterns): New.
5016
5017 2002-05-28 David S. Miller <davem@redhat.com>
5018
5019 * config/sparc/sparc.md (cpu): Tidy.
5020 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
5021 'trap'.
5022 (in_call_delay): Delete reference to 'return' type.
5023 (eligible_for_return_delay, in_return_delay, define_delay
5024 referencing those): Delete.
5025 (rest of file): Use new type attributes as appropriate.
5026 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
5027 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
5028 * config/sparc/ultra1_2.md (us1_single): New reservation.
5029 (us1_ialuX): Likewise.
5030 * config/sparc/ultra3.md (us3_single): Likewise.
5031 (us3_ialuX): Likewise.
5032 (us3_imul, us3_idiv): Tweak.
5033
5034 2002-05-28 Richard Henderson <rth@redhat.com>
5035
5036 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
5037 STRING_CST.
5038
5039 2002-05-28 Richard Henderson <rth@redhat.com>
5040
5041 * config.gcc: Obsolete mn10200.
5042
5043 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
5044
5045 * cppexp.c (interpret_number): Optimize for single-digit
5046 and less-than-half-precision cases.
5047 (num_trim, num_positive, num_div_op): Cast constants.
5048
5049 2002-05-27 Bo Thorsen <bo@suse.de>
5050
5051 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
5052 3.1 branch. The file was made by Jakub Jelinek.
5053 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
5054 support so multilib doesn't break. And don't define this at all
5055 when -Dinhibit_libc is used.
5056 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
5057 * config/i386/t-linux64: Implement full multilib support. Patch
5058 originally done by Andreas Jaeger and Jakub Jelinek.
5059
5060 2002-05-27 Roger Sayle <roger@eyesopen.com>
5061
5062 * c-common.c: Add support for __attribute__((nothrow)) to specify
5063 that a function cannot throw an exception (using TREE_NOTHROW).
5064 (handle_nothrow_attribute): New function to process this attribute.
5065
5066 * doc/extend.texi: Document the new nothrow function attribute.
5067
5068 2002-05-27 H.J. Lu (hjl@gnu.org)
5069
5070 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
5071 (num_positive): Likewise.
5072 (num_div_op): Likewise.
5073
5074 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
5075
5076 * c-common.c (c_common_init): Always use intmax_t.
5077
5078 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
5079
5080 * c-common.c (c_common_init): Use intmax_t for now.
5081
5082 2002-05-24 Andrew Haley <aph@redhat.com>
5083
5084 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
5085 if T is a boolean type.
5086
5087 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5088
5089 * basic-block.h (last_basic_block): Defined as synonym for
5090 n_basic_blocks.
5091 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
5092 flow_depth_first_order_compute, flow_preorder_transversal_compute,
5093 flow_dfs_compute_reverse_init): Replaced relevant occurences of
5094 n_basic_blocks with last_basic_block.
5095 * cfgbuild.c (make_edges): Likewise.
5096 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
5097 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
5098 * combine.c (combine_instructions): Likewise.
5099 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
5100 iterative_dataflow_bitmap): Likewise.
5101 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5102 calc_idoms, idoms_to_doms): Likewise.
5103 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
5104 Likewise.
5105 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
5106 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
5107 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
5108 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
5109 delete_null_pointer_checks, compute_code_hoist_vbeinout,
5110 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5111 compute_store_table, build_store_vectors): Likewise.
5112 * haifa-sched.c (sched_init): Likewise.
5113 * ifcvt.c (if_convert): Likewise.
5114 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5115 pre_edge_lcm, compute_available, compute_nearerout,
5116 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
5117 Likewise.
5118 * predict.c (estimate_probability, process_note_prediction,
5119 note_prediction_to_br_prob): Likewise.
5120 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
5121 * recog.c (split_all_insns, peephole2_optimize): Likewise.
5122 * regrename.c (copyprop_hardreg_forward): Likewise.
5123 * resource.c (init_resource_info): Likewise.
5124 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
5125 init_regions, schedule_insns): Likewise.
5126 * ssa-ccp.c (ssa_const_prop): Likewise.
5127 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5128 * ssa.c (compute_dominance_frontiers,
5129 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
5130
5131 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
5132 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
5133 sizes consistently.
5134
5135 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
5136
5137 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
5138 new.
5139 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
5140 hoist_insn_after, hoist_insn_to_edge): New.
5141
5142 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
5143
5144 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
5145 (PROP_FINAL): Include.
5146 * flow.c (life_analysis, update_life_info,
5147 init_propagate_block_info, mark_set_1, mark_used_rgs):
5148 Support SCAN_DEAD_STORE.
5149
5150 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
5151
5152 * c-common.c (c_common_init): Set CPP arithmetic precision.
5153 * cppexp.c (cpp_num_part): Move typedef ...
5154 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
5155 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
5156 (sanity_checks): Update.
5157
5158 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
5159
5160 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
5161 (mkheaders): New rule.
5162 (install-mkheaders): New rule.
5163 * configure.in (all_outputs): Add mkheaders.
5164 * configure: Regenerate.
5165 * mkheaders.in: New file.
5166
5167 2002-05-26 Jakub Jelinek <jakub@redhat.com>
5168
5169 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
5170
5171 2002-05-26 Andreas Jaeger <aj@suse.de>
5172
5173 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
5174
5175 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
5176
5177 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
5178 right_shift): Remove.
5179 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
5180 HIGH_PART): New.
5181 (struct op): Use cpp_num.
5182 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
5183 num_part_mul, num_unary_op, num_binary_op, num_negate,
5184 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
5185 num_div_op, num_lshift, num_rshift, append_digit): New.
5186 (interpret_number, parse_defined, eval_token, reduce): Update
5187 for two-integer arithmetic.
5188 (binary_handler): New typedef.
5189 (optab): Update.
5190 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
5191 (_cpp_parse_expr, reduce): Update to handle two-integers.
5192 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
5193
5194 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
5195
5196 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
5197 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
5198 branch insn into account, do not assume 1.
5199 (avr_out_sbxx_branch): New function. Optimize cases of skipping
5200 over single word insn. Handle upper half of I/O space too.
5201 * config/avr/avr.md (*sbrx_branch): Use it.
5202 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
5203 (*sbix_branch, *sbix_branch_bit7): Likewise.
5204 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
5205 Use RTL peepholes to optimize register operand sign tests.
5206
5207 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
5208
5209 * config/avr/avr.c (avr_asm_only_p): New variable.
5210 (avr_override_options): Set it here if AVR1.
5211 (asm_file_start): Test it here, report an error if set.
5212
5213 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
5214
5215 * alias.c: Fix formatting.
5216 * attribs.c: Likewise.
5217 * bb-reorder.c: Likewise.
5218 * bitmap.c: Likewise.
5219 * bitmap.h: Likewise.
5220 * builtins.c: Likewise.
5221
5222 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
5223
5224 * reload.c (find_valid_class): Accept new argument DEST,
5225 choose class accordingly.
5226 (push_reload): Update callers.
5227
5228 2002-05-26 Andreas Jaeger <aj@suse.de>
5229
5230 * combine.c (combine_instructions): Do not indent #if for
5231 traditional C.
5232
5233 2002-05-25 Richard Henderson <rth@redhat.com>
5234
5235 * c-pragma.c (apply_pragma_weak): Convert value identifier to
5236 string for decl_attributes.
5237 (handle_pragma_weak): Call assemble_alias if we're modifying
5238 an existing decl.
5239
5240 2002-05-25 Richard Henderson <rth@redhat.com>
5241
5242 PR target/6788
5243 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
5244 using rtl instead of fprintf.
5245 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
5246 * config/sparc/sparc-protos.h: Update.
5247
5248 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
5249
5250 * Makefile.in (C_COMMON_H): Fix.
5251 Update other targets.
5252 * c-common.c: Don't include c-lex.h.
5253 (builtin_define_with_value): Make static and prototype.
5254 (builtin_define_std): Move from c-lex.h.
5255 * c-common.h (init_c_lex): Move from c-lex.h.
5256 * c-decl.c: Don't include c-lex.h.
5257 (make_pointer_declarator): Move from c-parse.in.
5258 * c-lex.c: Don't include c-lex.h.
5259 * c-lex.h: Remove.
5260 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
5261 (make_pointer_declarator): Move to c-decl.c.
5262 * c-pragma.c: Don't include c-lex.h.
5263 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
5264 * c-tree.h (make_pointer_declarator): New.
5265 doc:
5266 * passes.texi, tm.texi: Update.
5267 objc:
5268 * Make-lang.in: Update and correct.
5269 * objc-act.c: Don't include c-lex.h or cpplib.h.
5270 treelang:
5271 * treetree.c: Don't include c-lex.h.
5272 config:
5273 * darwin-c.c: Don't include c-lex.h.
5274 * c4x/c4x-c.c: Don't include c-lex.h.
5275 * c4x/t-c4x: Update.
5276 * i370/i370-c.c: Don't include c-lex.h.
5277 * i370/t-i370: Update.
5278 * i960/i960-c.c: Don't include c-lex.h.
5279 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
5280 * i960/t-960bare: Update.
5281 * i960/t-vxworks: Update.
5282 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
5283 * rs6000/t-darwin: Update.
5284 * rs6000/t-rs6000-c-rule: Update.
5285 * v850/v850-c.c: Don't include c-lex.h.
5286 * v850/v850.c: Don't include c-lex.h or cpplib.h.
5287
5288
5289 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
5290
5291 * tree.def: Fix typos.
5292 * doc/install.texi: Likewise.
5293
5294 2002-05-25 Richard Henderson <rth@redhat.com>
5295
5296 * configure.in (HAVE_AS_TLS): Add ia64 test.
5297 * configure: Rebuild.
5298 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
5299 (override_options): Set it.
5300 (TARGET_HAVE_TLS): New.
5301 (sdata_symbolic_operand): Look for 's'.
5302 (tls_symbolic_operand): New.
5303 (ia64_expand_load_address): Abort for tls symbols.
5304 (gen_tls_get_addr): New.
5305 (gen_thread_pointer): New.
5306 (ia64_expand_move): Split out from movdi. Handle tls symbols.
5307 (rtx_needs_barrier): Add new unspecs.
5308 (ia64_encode_section_info): Handle tls symbols.
5309 (ia64_strip_name_encoding): Strip two encoding chars.
5310 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
5311 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
5312 (TARGET_OPTIONS): Add tls-size.
5313 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
5314 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
5315 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
5316 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
5317 (movsf, movdf): Likewise.
5318 (movdi_symbolic): Use match_scratch. Don't split if we won't
5319 have a scratch availiable.
5320 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
5321 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
5322 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
5323 * config/ia64/ia64-protos.h: Update.
5324 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
5325 sdata_symbolic_operand.
5326 (ASM_OUTPUT_LABELREF): Strip two characters.
5327
5328 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
5329
5330 * combine.c (simplify_set): Remove an unnecessary subreg.
5331
5332 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
5333
5334 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
5335
5336 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
5337
5338 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
5339
5340 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
5341
5342 2002-05-25 Roger Sayle <roger@eyesopen.com>
5343
5344 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
5345 (cond (compare x y) 0) into the equivalent (cond x y).
5346
5347 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
5348
5349 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
5350
5351 2002-05-24 Zack Weinberg <zack@codesourcery.com>
5352
5353 * config.gcc: Remove all stanzas for previously obsoleted
5354 systems. Where necessary, add explicit error stanzas to
5355 prevent removed systems from being misidentified as something
5356 else. Begin a fresh obsoletions list, with the systems that
5357 were reprieved last round.
5358 * doc/install.texi: Remove all mention of dead targets.
5359 * fixinc/mkfixinc.sh: Likewise.
5360
5361 * config/arm/arm.h: Bit 31 of target_flags is no longer
5362 reserved.
5363
5364 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
5365 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
5366 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
5367 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
5368 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
5369 config/alpha/osf12.h, config/alpha/osf2or3.h,
5370 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
5371 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
5372 config/clipper/clipper-protos.h, config/clipper/clipper.c,
5373 config/clipper/clipper.h, config/clipper/clipper.md,
5374 config/clipper/clix.h, config/convex/convex-protos.h,
5375 config/convex/convex.c, config/convex/convex.h,
5376 config/convex/convex.md, config/convex/fixinc.convex,
5377 config/convex/proto.h, config/elxsi/elxsi-protos.h,
5378 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
5379 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
5380 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
5381 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
5382 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
5383 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
5384 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
5385 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
5386 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
5387 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
5388 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
5389 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
5390 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
5391 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
5392 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
5393 config/m68k/altos3068.h, config/m68k/apollo68.h,
5394 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
5395 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
5396 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
5397 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
5398 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
5399 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
5400 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
5401 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
5402 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
5403 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
5404 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
5405 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
5406 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
5407 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
5408 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
5409 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
5410 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
5411 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
5412 config/mips/dec-osf1.h, config/mips/elflorion.h,
5413 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
5414 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
5415 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
5416 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
5417 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
5418 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
5419 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
5420 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
5421 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
5422 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
5423 config/ns32k/sequent.h, config/ns32k/tek6000.h,
5424 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
5425 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
5426 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
5427 config/sparc/rtems.h, config/we32k/we32k-protos.h,
5428 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
5429 Delete file.
5430
5431 2002-05-24 Richard Henderson <rth@redhat.com>
5432
5433 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
5434 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
5435 * config/i386/i386.c (tls_model_chars): Add leading space.
5436 (tls_symbolic_operand): Don't bias by 1.
5437 (legitimize_address): Don't unbias by 1.
5438
5439 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5440
5441 * lcm.c (optimize_mode_switching): Change bb used as indices
5442 to bb->index.
5443
5444 2002-05-24 Richard Henderson <rth@redhat.com>
5445
5446 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
5447 of update_life_info_in_dirty_blocks.
5448
5449 2002-05-24 Jakub Jelinek <jakub@redhat.com>
5450
5451 PR other/6782
5452 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
5453
5454 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
5455
5456 PR preprocessor/6780
5457 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
5458
5459 2002-05-24 Jim Blandy <jimb@redhat.com>
5460
5461 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
5462 entry with a type code of zero, marking the end of the compilation
5463 unit's macro info.
5464
5465 2002-05-24 Richard Henderson <rth@redhat.com>
5466
5467 * varasm.c (asm_output_bss): Always output one byte.
5468 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5469
5470 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5471
5472 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
5473 namespace.
5474
5475 2002-05-24 Andreas Jaeger <aj@suse.de>
5476
5477 * ggc-page.c (alloc_page): Cast variables of type size_t to
5478 unsigned long, adjust printf format string.
5479 (ggc_alloc): Likewise.
5480 (ggc_print_statistics): Likewise.
5481 (ggc_print_statistics): Correct printf format string for SCALE to
5482 use unsigned long.
5483
5484 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
5485
5486 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
5487
5488 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
5489 Zack Weinberg <zack@codesourcery.com>
5490
5491 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
5492 quoted strings.
5493 * dwarf2out.c (lookup_filename): Properly quote filename in .file
5494 directive in assembly file.
5495 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5496 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5497 * config/pj/pj.h (ASM_FILE_START): Likewise.
5498 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5499 * config/avr/avr.c (asm_file_end): Likewise.
5500 * toplev.c (output_quoted_string): Handle possibly signed plain
5501 char.
5502 * toplev.h (output_clean_symbol_name): Declare
5503 * toplev.c (output_clean_symbol_name): Define.
5504 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
5505 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
5506
5507 2002-05-24 Alan Modra <amodra@bigpond.net.au>
5508
5509 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
5510
5511 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
5512
5513 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
5514 of size of unsigned.
5515
5516 2002-05-23 Richard Henderson <rth@redhat.com>
5517
5518 * configure.in (HAVE_AS_TLS): New test.
5519 * config.in, configure: Rebuild.
5520 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
5521 (ix86_tls_dialect_string, ix86_tls_dialect): New.
5522 (override_options): Set it.
5523 (tls_model_chars, tls_symbolic_operand): New.
5524 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
5525 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
5526 (local_exec_symbolic_operand): New.
5527 (get_pic_label_name): Merge into output_set_got.
5528 (ix86_asm_file_end): Emit pic_label_name if defined.
5529 (legitimate_constant_p, constant_address_p): New.
5530 (legitimate_pic_operand_p): New.
5531 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
5532 (legitimate_address_p): Likewise.
5533 (ix86_encode_section_info): Rename from i386_; handle tls decls.
5534 (ix86_strip_name_encoding): New.
5535 (get_thread_pointer): New.
5536 (legitimize_address): Handle tls symbols.
5537 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
5538 Remove UNSPEC_PLT.
5539 (struct machine_function): Add some_ld_name.
5540 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
5541 (print_operand) [&]: Use it. Handle UNSPEC_TP.
5542 (output_addr_const_extra): New.
5543 (maybe_get_pool_constant): New.
5544 (ix86_split_to_parts): Use it.
5545 (ix86_expand_move): Handle tls symbols.
5546 (ix86_tls_get_addr): New.
5547 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
5548 (TARGET_OPTIONS): Add tls-dialect.
5549 (CONSTANT_ADDRESS_P): Use new out-of-line function.
5550 (LEGITIMATE_CONSTANT_P): Likewise.
5551 (LEGITIMATE_PIC_OPERAND_P): Likewise.
5552 (TARGET_STRIP_NAME_ENCODING): New.
5553 (ASM_OUTPUT_LABELREF): New.
5554 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5555 (OUTPUT_ADDR_CONST_EXTRA): New.
5556 (PREDICATE_CODES): Update.
5557 (ix86_tls_dialect, ix86_tls_dialect_string): New.
5558 * config/i386/i386.md: Regroup and renumber unspec constants.
5559 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
5560 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
5561 (tls_global_dynamic, tls_local_dynamic_base): New.
5562 (tls_local_dynamic_once): New.
5563 * config/i386/i386-protos.h: Update.
5564
5565 2002-05-23 Richard Henderson <rth@redhat.com>
5566
5567 * genemit.c (gen_insn): Print file:lineno comment before function.
5568 (main): likewise.
5569 * gensupport.c (struct queue_elem): Add filename member.
5570 (queue_pattern): Initialize it; update all callers.
5571 (process_include): Don't free filename.
5572 (read_md_rtx): Set read_rtx_filename.
5573
5574 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
5575
5576 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
5577
5578 2002-05-23 Richard Henderson <rth@redhat.com>
5579
5580 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
5581
5582 2002-05-23 Richard Henderson <rth@redhat.com>
5583
5584 * doc/extend.texi (C++98 Thread-Local Edits): Update with
5585 commentary from Mark.
5586
5587 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5588
5589 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
5590 Use FOR_EACH_BB macros to iterate over basic block chain.
5591 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
5592 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
5593 Likewise.
5594 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
5595 find_unreachable_blocks, create_edge_list, verify_edge_list,
5596 remove_fake_edges, add_noreturn_fake_exit_edges,
5597 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
5598 Likewise.
5599 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5600 find_sub_basic_blocks): Likewise.
5601 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
5602 Likewise.
5603 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
5604 Likewise.
5605 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
5606 Likewise.
5607 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
5608 commit_edge_insertions, commit_edge_insertions_watch_calls,
5609 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
5610 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
5611 * conflict.c (conflict_graph_compute): Likewise.
5612 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5613 df_modified_p, df_refs_unlink, df_dump): Likewise.
5614 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
5615 * final.c (compute_alignments): Likewise.
5616 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
5617 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
5618 count_or_remove_death_notes): Likewise.
5619 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
5620 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
5621 classic_gcse, compute_transp, cprop, compute_pre_data,
5622 compute_transpout, invalidate_nonnull_info,
5623 delete_null_pointer_checks_1, delete_null_pointer_checks,
5624 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
5625 compute_store_table, build_store_vectors, store_motion): Likewise.
5626 * global.c (global_conflicts, mark_elimination): Likewise.
5627 * graph.c (print_rtl_graph_with_bb): Likewise.
5628 * haifa-sched.c (sched_init): Likewise.
5629 * ifcvt.c (if_convert): Likewise.
5630 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5631 compute_available, compute_nearerout, compute_rev_insert_delete,
5632 optimize_mode_switching): Likewise.
5633 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
5634 * predict.c (estimate_probability, note_prediction_to_br_prob,
5635 propagate_freq, counts_to_freqs, expensive_function_p,
5636 estimate_bb_frequencies): Likewise.
5637 * profile.c (instrument_edges, get_exec_counts,
5638 compute_branch_probabilities, compute_checksum, branch_prob,
5639 find_spanning_tree): Likewise.
5640 * recog.c (split_all_insns, peephole2_optimize): Likewise.
5641 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
5642 Likewise.
5643 * regclass.c (scan_one_insn, regclass): Likewise.
5644 * regmove.c (mark_flags_life_zones, regmove_optimize,
5645 record_stack_memrefs): Likewise.
5646 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
5647 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
5648 * resource.c (find_basic_block): Likewise.
5649 * sched-ebb.c (schedule_ebbs): Likewise.
5650 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
5651 find_single_block_region, find_rgns, schedule_insns)
5652 * sibcall.c (optimize_sibling_and_tail_recursive_call)
5653 * ssa-ccp.c (optimize_unexecutable_edges,
5654 ssa_ccp_df_delete_unreachable_insns): Likewise.
5655 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5656 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
5657 rename_block, convert_to_ssa, compute_conservative_reg_partition,
5658 compute_coalesced_reg_partition, rename_equivalent_regs,
5659 convert_from_ssa): Likewise.
5660 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
5661 process_for_unwind_directive): Likewise.
5662
5663 * df.c (FOR_ALL_BBS): Removed.
5664 * gcse.c (struct null_pointer_info): Type of current_block field
5665 changed.
5666 (struct reg_avail_info): Type of last_bb field changed.
5667 * config/ia64/ia64.c (block_num): Removed.
5668 (need_copy_state): Type changed.
5669 (last_block): New.
5670
5671 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
5672
5673 * cppinit.c (mark_named_operators): Split out from init_builtins.
5674 (cpp_finish_options): Call it from here instead.
5675
5676 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
5677
5678 * builtin-attrs.def: Update copyright years.
5679 (ATTR_NONNULL): New attribute identifier.
5680 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
5681 attribute tree lists.
5682 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
5683 format operand.
5684 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
5685 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
5686 attribute lists. Chain the appropriate nonnull attribute.
5687 * c-format.c (check_format_arg): Remove null format string
5688 warning.
5689 * testsuite/gcc.dg/format/null-1.c: New test.
5690
5691 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5692
5693 * Makefile.in (ADAC): Define.
5694 (SYSLIBS): Define.
5695 (.SUFFIXES): Move before language makefile fragments.
5696 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
5697
5698 2002-05-23 Mark Mitchell <mark@codesourcery.com>
5699
5700 * varasm.c (make_decl_rtl): Don't allow weak variables to be
5701 placed in common.
5702
5703 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5704
5705 * cfg.c (dump_flow_info): Print results of
5706 maybe_hot/probably_never_executed predicates.
5707 * toplev.c (open_dump_file): Print function frequency.
5708
5709 2002-05-23 David S. Miller <davem@redhat.com>
5710
5711 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
5712 regsets.
5713
5714 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
5715
5716 * c-common.c (warn_nonnull): Declare.
5717 (c_common_attribute_table): Add "nonnull" attribute.
5718 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
5719 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
5720 check_function_arguments_recurse): New functions.
5721 * c-common.h (warn_nonnull): Declare extern.
5722 (check_function_arguments, check_function_arguments_recurse): New
5723 prototypes.
5724 * c-decl.c (c_decode_option): Add -Wnonnull option.
5725 * c-format.c (set_Wformat): Set warn_nonnull if enabling
5726 format checking.
5727 (format_check_context): New structure.
5728 (check_format_info_recurse): Remove recursion and rename to...
5729 (check_format_arg): ...this. Update comment.
5730 (check_format_info): Use check_function_arguments_recurse.
5731 * c-typeck.c (build_function_call): Call check_function_arguments
5732 instead of check_function_format.
5733 * doc/extend.texi: Document "nonnull" attribute.
5734 * doc/invoke.texi: Docuemnt -Wnonnull option.
5735 * testsuite/gcc.dg/nonnull-1.c: New test.
5736 * testsuite/gcc.dg/nonnull-2.c: New test.
5737
5738 2002-05-23 David S. Miller <davem@redhat.com>
5739
5740 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
5741 * cfgcleanup.c (cleanup_cfg): If it is set do not
5742 attempt to delete trivially dead insns.
5743 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
5744 * toplev.c (rest_of_compilation): Document non-trivial aspect
5745 the RTL before optimize_save_area_alloca is run.
5746
5747 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
5748
5749 * c-lex.c (indent_level): Remove.
5750 (cb_file_change, c_lex): Remove indent level handling.
5751 * c-lex.h (indent_level): Remove.
5752 * input.h (struct file_stack): Remove indent_level.
5753 * toplev.c (push_srcloc): Remove indent_level handling.
5754
5755 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5756
5757 PR target/6753
5758 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
5759 of x in constraints for clarity.
5760 (sse_mov?fcc split): abort if op2 == op3.
5761 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
5762 sse_movsfcc_const0_4): Add earlyclobber.
5763 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
5764 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
5765 Use Y instead of x in constraints.
5766
5767 2002-05-23 Richard Henderson <rth@redhat.com>
5768
5769 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
5770 (C++98 Thread-Local Edits): New subsection.
5771
5772 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
5773 (ix86_arch): Set type to enum processor_type.
5774
5775 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5776 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
5777
5778 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5779
5780 * configure.in: Fix as version test for binutils 2.12.1 releases
5781 (without dates).
5782 * configure: Rebuilt.
5783
5784 2002-05-23 Richard Henderson <rth@redhat.com>
5785
5786 * config/i386/i386.c (get_pic_label_name): New.
5787 (load_pic_register): Remove.
5788 (output_set_got): New.
5789 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
5790 * config/i386/i386.md (UNSPEC_SET_GOT): New.
5791 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
5792 (prologue_set_got, prologue_get_pc): Remove.
5793 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
5794 (builtin_setjmp_receiver): Use gen_set_got.
5795 * config/i386/i386-protos.h: Update.
5796
5797 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5798
5799 * gcse.c (hash_expr): Do not use alias set for hashing.
5800
5801 2002-05-22 Kevin Buettner <kevinb@redhat.com>
5802
5803 * dbxout.c (dbxout_class_name_qualifiers): New function.
5804 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
5805
5806 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
5807
5808 * cpperror.c (_cpp_begin_message): No special casing
5809 of CPP_FATAL_LIMIT.
5810 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
5811 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
5812 * cpplib.c (do_include_common): Use DL_ERROR.
5813 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
5814 (DL_ICE): Renumber.
5815 * fix-header.c (read_scan_file): Update.
5816
5817 2002-05-22 Richard Henderson <rth@redhat.com>
5818
5819 * config/i386/i386.c (ix86_expand_call): New function, extracted
5820 from md call patterns. Add pic_offset_table_rtx to
5821 CALL_INSN_FUNCTION_USAGE when needed.
5822 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
5823 (call_value_pop, call_value, untyped_call): Likewise.
5824 (call_exp, call_value_exp): Remove.
5825 * config/i386/i386-protos.h: Update.
5826
5827 2002-05-22 Richard Henderson <rth@redhat.com>
5828
5829 * varasm.c (default_section_type_flags): Check for VAR_DECL
5830 before using DECL_THREAD_LOCAL.
5831
5832 2002-05-22 David Edelsohn <edelsohn@gnu.org>
5833
5834 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
5835 (STARTFILE_SPEC): Delete PE crt0.o.
5836 * config/rs6000/aix51.h: Same.
5837 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
5838 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
5839 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
5840 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
5841 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
5842
5843 2002-05-22 Richard Henderson <rth@redhat.com>
5844
5845 * varasm.c (default_section_type_flags): Handle tls data and
5846 default sections.
5847 (default_unique_section): Handle tls sections.
5848
5849 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5850
5851 * configure.in (CROSS): Define NATIVE_CROSS.
5852 * configure: Regenerate.
5853 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
5854 (startfile_prefix_spec): New var.
5855 (static_specs): Add startfile_prefix_spec.
5856 (do_spec_2): Split out from..
5857 (do_spec): ..here.
5858 (main): Process startfile_prefix_spec.
5859 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
5860 dynamic linker.
5861 (STARTFILE_PREFIX_SPEC): Define.
5862 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
5863 absolute paths.
5864
5865 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
5866
5867 * cpperror.c: Fix formatting.
5868 * cppexp.c: Likewise.
5869 * cppfiles.c: Likewise.
5870 * cpphash.c: Likewise.
5871 * cpphash.h: Likewise.
5872 * cppinit.c: Likewise.
5873 * cpplex.c: Likewise.
5874 * cpplib.c: Likewise.
5875 * cppmacro.c: Likewise.
5876 * cppmain.c: Likewise.
5877 * cppspec.c: Likewise.
5878
5879 2002-05-22 Jakub Jelinek <jakub@redhat.com>
5880
5881 * combine.c (force_to_mode): Use gen_int_mode.
5882 Don't clear CONST_INT bits outside of mode.
5883
5884 2002-05-22 Richard Henderson <rth@redhat.com>
5885
5886 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
5887 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5888
5889 2002-05-22 Jakub Jelinek <jakub@redhat.com>
5890
5891 PR c/6643
5892 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
5893 if DECL_SIZE_UNIT is INTEGER_CST.
5894
5895 2002-05-22 Richard Henderson <rth@redhat.com>
5896
5897 * flow.c (life_analysis): Delete broken reg_label check.
5898
5899 2002-05-22 Richard Henderson <rth@redhat.com>
5900
5901 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
5902 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5903
5904 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5905
5906 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
5907 (embed-bb.c): New rule.
5908 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5909 * config/sh/embed_bb.c: Delete.
5910
5911 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
5912
5913 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
5914
5915 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
5916
5917 * config/h8300/h8300.md (*andorqi3): New.
5918
5919 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
5920
5921 PR preprocessor/6517
5922 * Makefile.in: Update.
5923 * c-common.c (c_common_post_options): Add preprocessor
5924 errors to the error count.
5925 * c-lang.c (c_post_options): Kill.
5926 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5927 * hooks.h: Add header guards.
5928 * langhooks-def.h: Include hooks.h.
5929 (LANG_HOOKS_POST_OPTIONS): Update.
5930 * langhooks.h (struct lang_hooks): Update post_options.
5931 * toplev.c (parse_options_and_default_flags): Update.
5932 objc:
5933 * objc-lang.c (objc_post_options): Kill.
5934 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5935
5936 2002-05-21 Bruce Korb <bkorb@gnu.org>
5937
5938 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
5939 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
5940 * fixinc/fixincl.x: regen.
5941
5942 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
5943
5944 * cfgbuild.c: Fix formatting.
5945 * cfg.c: Likewise.
5946 * cfgcleanup.c: Likewise.
5947 * cfglayout.c: Likewise.
5948 * cfgloop.c: Likewise.
5949 * cfgrtl.c: Likewise.
5950
5951 2002-05-21 Richard Henderson <rth@redhat.com>
5952
5953 * c-common.h (enum rid): Add RID_THREAD.
5954 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
5955 (grokdeclarator): Grok __thread.
5956 * c-parse.in (reswords): Add __thread.
5957 (rid_to_yy): Add RID_THREAD.
5958
5959 * tree.h (DECL_THREAD_LOCAL): New.
5960 (struct tree_decl): Add thread_local_flag.
5961 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
5962 * tree.c (staticp): TLS variables are not static.
5963
5964 * target-def.h (TARGET_HAVE_TLS): New.
5965 * target.h (have_tls): New.
5966 * output.h (SECTION_TLS): New.
5967 * varasm.c (assemble_variable): TLS variables can't be common for now.
5968 (default_section_type_flags): Handle .tdata and .tbss.
5969 (default_elf_asm_named_section): Handle SECTION_TLS.
5970 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
5971
5972 * flags.h (flag_tls_default): Declare.
5973 * toplev.c (flag_tls_default): Define.
5974 (display_help): Display help for it.
5975 (decode_f_option): Set it.
5976
5977 * doc/extend.texi (Thread-Local): New node describing language-level
5978 thread-local storage.
5979 * doc/invoke.texi (-ftls-model): Document.
5980
5981 * fixinc/inclhack.def (thread_keyword): New.
5982 * fixinc/fixincl.x: Rebuild.
5983
5984 2002-05-21 Jeffrey A Law <law@redhat.com>
5985
5986 * optabs.c (expand_binop): For double-word integer multiplies,
5987 do not compute intermediate results into something that is
5988 not a register (such as a SUBREG or MEM).
5989
5990 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
5991 (ix86_sched_reorder): Make sure to initialize scheduling
5992 data even when there's only one insn in the ready queue.
5993
5994 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
5995
5996 * genautomata.c (reserv_sets_hash_value): Fix a typo.
5997
5998 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
5999
6000 * genautomata.c (reserv_sets_hash_value): Define hash_value as
6001 set_el_t. Transform the hash value into unsigned.
6002 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
6003 (transform_3): Add code to process `(A,B)+(D,E)'.
6004
6005 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
6006
6007 * reload1.c (do_output_reload): Run delete_output_reload
6008 only if optimizing.
6009
6010 2002-05-21 Roger Sayle <roger@eyesopen.com>
6011
6012 PR middle-end/6600
6013 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
6014 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
6015 (can_store_by_pieces): ... and here to limit the largest mode used.
6016 Add a comment to document this function.
6017
6018 2002-05-21 Richard Henderson <rth@redhat.com>
6019
6020 * flow.c (life_analysis): Fix test for deleted label.
6021
6022 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
6023
6024 * doc/tm.texi: Fix typo.
6025
6026 2002-05-21 Zack Weinberg <zack@codesourcery.com>
6027
6028 * c-common.c (c_common_init): Set options->unsigned_char from
6029 flag_signed_char.
6030 (cb_register_builtins): Define __STRICT_ANSI__ and
6031 __CHAR_UNSIGNED__ here...
6032 * cppinit.c (init_builtins): Not here.
6033 (cpp_create_reader): unsigned_char option defaults to 0, not
6034 !DEFAULT_SIGNED_CHAR.
6035 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
6036 and -funsigned-char.
6037
6038 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
6039 * cpphash.c (_cpp_init_hashtable): Don't set it.
6040 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
6041 directly. Clarify comment.
6042
6043 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6044
6045 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
6046 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
6047 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
6048 BASIC_BLOCK (n_basic_blocks - 1).
6049 * cfganal.c (can_fallthru, flow_call_edges_add,
6050 flow_preorder_transversal_compute): Too.
6051 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
6052 find_sub_basic_blocks): Too.
6053 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
6054 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
6055 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
6056 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
6057 * combine.c (this_basic_block): Type changed to basic_block.
6058 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
6059 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6060 get_last_value, distribute_notes, distribute_links): Too.
6061 * final.c (compute_alignments): Too.
6062 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
6063 * function.c (thread_prologue_and_epilogue_insns): Too.
6064 * gcse.c (compute_code_hoist_vbeinout): Too.
6065 * global.c (build_insn_chain): Too.
6066 * ifcvt.c (find_if_block, find_cond_trap): Too.
6067 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
6068 * regmove.c (regmove_optimize): Too.
6069 * resource.c (find_basic_block): Too.
6070 * sched-ebb.c (schedule_ebbs): Too.
6071 * ssa-dce.c (find_control_dependence, find_pdom): Too.
6072
6073 2002-05-21 Andreas Jaeger <aj@suse.de>
6074
6075 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
6076
6077 2002-05-21 Richard Henderson <rth@redhat.com>
6078
6079 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
6080 unspec names, not numbers.
6081
6082 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
6083
6084 * doc/sourcebuild.texi: Mention snapshot-README and
6085 snapshot-index.html as needing updating for new front ends.
6086
6087 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6088
6089 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
6090 disabling checking, and avoid multiple evaluation of RTX.
6091
6092 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
6093
6094 * bitmap.c (bitmap_find_bit): Return early if we have the correct
6095 element cached.
6096
6097 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6098
6099 * profile.c (gen_edge_profiler): Set alias set before the memory is
6100 used.
6101
6102 2002-05-20 David S. Miller <davem@redhat.com>
6103
6104 * cselib.c (max_value_regs): New.
6105 (cselib_lookup, cselib_invalidate_regno): Initialize it when
6106 adding new entries to the REG_VALUES table and we are dealing with
6107 a hard register.
6108 (clear_table): Initialize it.
6109 (cselib_invalidate_regno): Use it to determine which hard
6110 registers to scan when mode is not VOIDmode.
6111
6112 2002-05-20 Duraid Madina <duraid@fl.net.au>
6113
6114 * tradcpp.c (fixup_newlines): Use old-style function header.
6115
6116 2002-05-20 Krister Walfridsson <cato@df.lth.se>
6117
6118 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
6119
6120 2002-05-20 H.J. Lu (hjl@gnu.org)
6121
6122 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
6123
6124 * config/mips/mips.h (DFMODE_NAN): Defined.
6125 (SFMODE_NAN): Likewise.
6126
6127 2002-05-20 Dale Johannesen <dalej@apple.com>
6128
6129 * combine.c (cant_combine_insn_p): Back out my
6130 previous patch.
6131
6132 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6133
6134 * params.c: Fix formatting.
6135 * params.h: Likewise.
6136 * predict.c: Likewise.
6137 * prefix.c: Likewise.
6138 * print-rtl.c: Likewise.
6139 * print-tree.c: Likewise.
6140 * profile.c: Likewise.
6141
6142 2002-05-20 H.J. Lu (hjl@gnu.org)
6143
6144 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
6145
6146 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
6147
6148 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
6149 switches straight on to the assembler, do not abbreviate them.
6150 * config/arm/elf.h (ASM_SPEC): As above.
6151 * config/arm/semi.h (ASM_SPEC): As above.
6152 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
6153 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
6154 -mcpu=xscale on to the assembler by default.
6155 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
6156
6157 2002-05-20 Richard Henderson <rth@redhat.com>
6158
6159 * cse.c (canon_hash): Reorder do_not_record test. Always
6160 allow pic_offset_table_rtx.
6161
6162 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
6163
6164 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
6165 (expand_binop): Ditto (3 times).
6166
6167 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
6168
6169 * Makefile.in (distclean): Remove QMTest stuff.
6170 (QMTEST_PATH): New variable.
6171 (QMTESTFLAGS): Likewise.
6172 (QMTESTRUNFLAGS): Likewise.
6173 (QMTEST): Likewise.
6174 (QMTEST_GPP_TESTS): Likewise.
6175 (QMTEST_DIR): Likewise.
6176 (QMTEST_DIR/context): New target.
6177 (qmtest-g++): Likeise.
6178 (qmtest-gui): Likewise.
6179 (QMTEST_DIR/gpp-expected.qmr): Likewise.
6180
6181 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
6182
6183 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
6184 an altivec register if TARGET_ALTIVEC.
6185
6186 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
6187 to ALTIVEC_VECTOR_MODE.
6188 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
6189 (rs6000_va_arg): Vectors may go in registers if they are not
6190 altivec vectors.
6191
6192 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
6193
6194 * protoize.c: Fix formatting.
6195
6196 2002-05-19 Richard Henderson <rth@redhat.com>
6197
6198 * gensupport.c (init_include_reader): Merge into ...
6199 (process_include): ... here. Simplify composite path creation.
6200 Plug memory leaks. Fix file/line number tracking. Do not
6201 process_define_cond_exec. Return void.
6202 (process_rtx): Don't check process_include return value.
6203
6204 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6205
6206 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
6207 fields.
6208 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6209 traversing basic block chain.
6210 (create_basic_block_structure, create_basic_block): Declaration changed.
6211 (link_block, unlink_block): Declare.
6212 * cfg.c (entry_exit_blocks): Initialize new fields.
6213 (link_block, unlink_block): New.
6214 (expunge_block_nocompact): Unlink basic block.
6215 (dump_flow_info): Print prev_bb/next_bb fields.
6216 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
6217 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
6218 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
6219 * cfgrtl.c (create_basic_block_structure, create_basic_block,
6220 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
6221 (verify_flow_info): Check that list agrees with numbering.
6222
6223 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
6224
6225 * c-common.c (preprocessing_asm): New macro.
6226 * c-lex.h (builtin_define, builtin_assert): Use pfile.
6227 doc:
6228 * tm.texi: Update.
6229 config/alpha:
6230 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
6231 (CPP_SPEC): Simplify.
6232 (TARGET_CPU_CPP_BUILTINS): Update.
6233 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
6234 (CPP_SPEC): Simplify.
6235 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
6236 (TARGET_OS_CPP_BUILTINS): Update.
6237 * osf.h (CPP_XFLOAT_SPEC): Kill.
6238 (TARGET_OS_CPP_BUILTINS): Update.
6239 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
6240 * osf5.h (CPP_XFLOAT_SPEC): Kill.
6241 * vms.h (CPP_SUBTARGET_SPEC): Kill.
6242 (TARGET_OS_CPP_BUILTINS): Update.
6243
6244 2002-05-19 Richard Henderson <rth@redhat.com>
6245
6246 * varasm.c (default_binds_local_p): Fix typo.
6247
6248 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
6249
6250 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
6251 CONST_INT operand to the correct mode after adding 1 to it.
6252
6253 2002-05-19 Mark Mitchell <mark@codesourcery.com>
6254
6255 * config.gcc (powerpc-wrs-windiss*): New target.
6256
6257 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6258
6259 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
6260 (ashrdi3): Use it.
6261
6262 2002-05-18 Mark Mitchell <mark@codesourcery.com>
6263
6264 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
6265 alphasort.
6266 * config.in: Regenerated.
6267 * configure: Regenerated.
6268
6269 2002-05-19 Richard Henderson <rth@redhat.com>
6270
6271 * target-def.h (TARGET_BINDS_LOCAL_P): New.
6272 * target.h (struct gcc_target): Move boolean fields to the end.
6273 Add binds_local_p.
6274 * varasm.c (default_binds_local_p): New.
6275 * output.h: Declare it.
6276
6277 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
6278 * config/cris/cris.c (cris_encode_section_info): Likewise.
6279 * config/i386/i386.c (i386_encode_section_info): Likewise.
6280 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
6281 * config/sh/sh.c (sh_encode_section_info): Likewise.
6282
6283 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
6284 (TARGET_BINDS_LOCAL_P): New.
6285
6286 2002-05-19 Richard Henderson <rth@redhat.com>
6287
6288 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
6289 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
6290 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
6291
6292 * toplev.c (display_help): Kill -a -ax help.
6293
6294 * config/1750a/1750a.h, config/alpha/alpha.h,
6295 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
6296 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
6297 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
6298 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
6299
6300 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
6301 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
6302
6303 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
6304 (ix86_output_function_block_profiler): Kill.
6305 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
6306 (m68hc11_function_block_profiler): Kill.
6307 * config/m68hc11/m68hc11-protos.h: Update.
6308 * config/m88k/m88k.c (output_block_profiler): Kill.
6309 (output_function_block_profiler): Kill.
6310 * config/m88k/m88k-protos.h: Update.
6311
6312 2002-05-19 Richard Henderson <rth@redhat.com>
6313
6314 * system.h (STRIP_NAME_ENCODING): Poison it.
6315 * output.h (STRIP_NAME_ENCODING): Remove.
6316 (default_strip_name_encoding): Declare.
6317 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
6318 * target.h (strip_name_encoding): New.
6319 * varasm.c (default_strip_name_encoding): New.
6320
6321 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
6322 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
6323 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
6324 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
6325 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
6326 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
6327 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
6328 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
6329 config/v850/v850.h: Use the hook, not the macro.
6330
6331 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6332 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
6333 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
6334 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
6335 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
6336 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
6337 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
6338 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
6339 config/v850/v850.c, config/v850/v850.h:
6340 Move STRIP_NAME_ENCODING to out-of-line function and add
6341 TARGET_STRIP_NAME_ENCODING.
6342
6343 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
6344 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
6345 with TARGET_STRIP_NAME_ENCODING referencing existing function;
6346 make function static.
6347
6348 * xcoffout.c: Include target.h
6349 * Makefile.in (xcoffout.o): Update.
6350
6351 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
6352 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
6353 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
6354 reloc argument unused.
6355 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
6356
6357 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
6358 STRIP_NAME_ENCODING docs.
6359
6360 2002-05-19 Andreas Jaeger <aj@suse.de>
6361
6362 * gengenrtl.c: Add prototype for excluded_rtx.
6363
6364 * real.h: Add prototype for exact_real_truncate.
6365
6366 2002-05-18 Richard Henderson <rth@redhat.com>
6367
6368 * system.h (ENCODE_SECTION_INFO): Poison it.
6369 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
6370 * target.h (encode_section_info): New.
6371 * varasm.c (make_decl_rtl, output_constant_def): Use it.
6372 * hooks.c (hook_tree_int_void): New.
6373 * hooks.h: Declare it.
6374
6375 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6376 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
6377 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
6378 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
6379 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
6380 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
6381 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6382 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
6383 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6384 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6385 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
6386 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
6387 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
6388 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
6389 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
6390 referencing existing function. Make function static.
6391
6392 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
6393 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
6394 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
6395 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
6396 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
6397 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
6398 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
6399 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
6400 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
6401 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
6402 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
6403 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
6404 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
6405 Move ENCODE_SECTION_INFO to out-of-line function and add
6406 TARGET_ENCODE_SECTION_INFO.
6407
6408 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
6409 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6410
6411 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
6412 from SUBTARGET_*
6413 (switch_to_section): Replace in_rdata case with in_readonly_data.
6414
6415 * config/h8300/h8300.c (h8300_encode_label): Make static.
6416 * config/h8300/h8300-protos.h: Update.
6417
6418 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
6419 from rs6000_encode_section_info; make static.
6420 (rs6000_xcoff_encode_section_info): New.
6421
6422 * config/v850/v850.c (v850_encode_data_area): Make static.
6423 * config/v850/v850-protos.h: Update.
6424
6425 * config/vax/vax.c: Include flags.h.
6426 (vms_select_section): Fix typo.
6427
6428 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
6429 ENCODE_SECTION_INFO docs.
6430
6431 2002-05-18 Richard Henderson <rth@redhat.com>
6432
6433 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
6434 REGISTER_TARGET_PRAGMAS.
6435 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
6436
6437 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
6438
6439 2002-05-18 Richard Henderson <rth@redhat.com>
6440
6441 * system.h (SELECT_RTX_SECTION): Poison.
6442 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
6443 * target.h (select_rtx_section): New.
6444 * varasm.c (output_constant_pool): Use it.
6445 (default_select_rtx_section, default_elf_select_rtx_section): New.
6446 * output.h: Declare them.
6447
6448 * config/darwin.h (SELECT_RTX_SECTION): Move ...
6449 * config/darwin.c (machopic_select_rtx_section): ... here.
6450 * config/darwin-protos.h: Update.
6451
6452 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
6453 * config/nextstep.c (machopic_select_rtx_section): ... here.
6454 (nextstep_select_section): Rename variable to avoid macro clash.
6455 * config/nextstep-protos.h: Update.
6456
6457 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
6458 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
6459 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
6460 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
6461 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
6462 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
6463 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
6464 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
6465 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
6466 (SELECT_RTX_SECTION): Remove.
6467
6468 * config/darwin.h, config/elfos.h, config/nextstep.h,
6469 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
6470 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
6471 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
6472 config/sparc/lynx.h, config/xtensa/xtensa.c
6473 (TARGET_ASM_SELECT_RTX_SECTION): New.
6474
6475 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
6476 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
6477 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
6478 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
6479 (ia64_aix_select_rtx_section): New.
6480 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
6481 redefining.
6482 * config/mips/mips.c (mips_select_rtx_section): Make static.
6483 Support ELF SHF_MERGE features.
6484 * config/mips/mips-protos.h: Update.
6485 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
6486 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
6487 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
6488 make static, fall back to default_elf_select_rtx_section.
6489 * config/rs6000/rs6000-protos.h: Update.
6490 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
6491 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
6492 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
6493 * config/romp/romp.c (romp_select_rtx_section): New.
6494 * config/s390/s390.c (s390_select_rtx_section): New.
6495 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
6496 declarations before target macro definition.
6497 (xtensa_emit_call): Use static buffer.
6498 (xtensa_select_rtx_section): New.
6499 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
6500 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
6501 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
6502
6503 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
6504 SELECT_RTX_SECTION docs.
6505
6506 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
6507
6508 * i386.md (movsi/movdi): Fix template.
6509 (sse2 patterns): Set attributes consistently.
6510
6511 * i386.md (pushqi2, ashrqi_*): Fix constraint.
6512
6513 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
6514
6515 * optabs.c (complex_part_zero_p): New.
6516 * (expand_cmplxdiv_straight): Use it.
6517 * (expand_cmplxdiv_wide): Ditto.
6518 * (expand_binop): Ditto.
6519
6520 2002-05-18 Richard Henderson <rth@redhat.com>
6521
6522 * final.c (HAVE_READONLY_DATA_SECTION): New.
6523 (shorten_branches): Use it instead of ifdefs.
6524 * varasm.c (enum in_section): Add in_readonly_data.
6525 (text_section, data_section): Tidy.
6526 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
6527
6528 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
6529 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
6530 (READONLY_DATA_SECTION): Don't undef.
6531
6532 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
6533 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
6534 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
6535
6536 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
6537 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
6538 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
6539 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
6540
6541 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
6542 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
6543 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6544 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
6545 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
6546 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
6547 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
6548 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
6549 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
6550
6551 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
6552 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
6553 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
6554 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
6555 config/pa/pa64-hpux.h, config/sparc/litecoff.h
6556 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6557
6558 * config/elfos.h, config/netware.h, config/svr3.h,
6559 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6560 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6561 config/h8300/h8300.h, config/i386/i386-interix.h,
6562 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6563 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
6564
6565 * config/elfos.h, config/netware.h, config/svr3.h,
6566 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6567 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
6568 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6569 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
6570
6571 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
6572 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
6573 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
6574 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
6575 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
6576 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
6577 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
6578 config/rs6000/sysv4.h, config/v850/v850.h
6579 (EXTRA_SECTIONS): Remove in_const/in_rdata.
6580 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
6581
6582 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
6583 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
6584 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
6585 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
6586 * config/alpha/alpha.c (alpha_start_function): Likewise.
6587 (alpha_write_linkage): Likewise.
6588 * config/m32r/m32r.c (m32r_select_section): Likewise.
6589 * config/m88k/m88k.c (m88k_select_section): Likewise.
6590 * config/mips/mips.c (mips_select_rtx_section): Likewise.
6591 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
6592 (rs6000_elf_select_section): Likewise.
6593 * config/v850/v850.c (v850_select_section): Likewise.
6594
6595 * config/1750a/1750a.h, config/i860/sysv3.h
6596 (READONLY_DATA_SECTION_ASM_OP): New.
6597 READONLY_DATA_SECTION_ASM_OP.
6598 * config/i386/interix.c, config/i386/winnt.c
6599 (i386_pe_unique_section): Always use .rdata prefix.
6600 * config/pa/som.h (readonly_data): Always switch to read-only section.
6601 (READONLY_DATA_SECTION): Predicate on flag_pic.
6602 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
6603 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
6604 (READONLY_DATA_SECTION): Update.
6605
6606 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
6607
6608 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
6609 is used without -Wformat.
6610 * c-common.h (warn_format_zero_length): Declare extern.
6611 * c-decl.c (warn_options): Add "format-zero-length".
6612 * c-format.c (warn_format_zero_length): Declare.
6613 (set_Wformat): Set warn_format_zero_length for -Wformat.
6614 (check_format_info): Only warn about zero-length formats if
6615 warn_format_zero_length is true. Include the format type
6616 name in the warning message.
6617 * doc/invoke.texi: Document -Wformat-zero-length.
6618 * testsuite/gcc.dg/format/zero-length-1.c: New test.
6619
6620 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
6621
6622 * timevar.c: Fix formatting.
6623 * tlink.c: Likewise.
6624 * toplev.c: Likewise.
6625 * tree-dump.c: Likewise.
6626 * tree-inline.c: Likewise.
6627
6628 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
6629
6630 * cppinit.c (cpp_post_options): If preprocessed, turn off
6631 traditional. If traditional, turn off column numbers.
6632 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
6633 * cpptrad.c (handle_newline): Update line_base.
6634 (skip_comment): Handle -Wcomment.
6635
6636 2002-05-17 Zack Weinberg <zack@codesourcery.com>
6637
6638 * cppinit.c (struct builtin): Remove unused fields.
6639 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
6640 (operator_array): New - was second half of builtin_array.
6641 (init_builtins): Simplify loop over builtin_array/operator_array.
6642
6643 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
6644
6645 * defaults.h (UNIQUE_SECTION): Remove.
6646 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
6647
6648 2002-05-17 Richard Henderson <rth@redhat.com>
6649
6650 * expr.c (init_expr_once): Don't use start/end_sequence.
6651 Use rtx_alloc instead of emit_insn.
6652 * toplev.c (lang_dependent_init): Run init_expr_once here ...
6653 (lang_independent_init): ... not here.
6654
6655 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6656
6657 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
6658
6659 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
6660
6661 * config/avr/avr.c (avr_regs_to_save): New function. Also check
6662 for fixed registers, possibly used for global register variables.
6663 (initial_elimination_offset, avr_output_function_prologue,
6664 avr_output_function_epilogue): Move common code to avr_regs_to_save.
6665
6666 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
6667
6668 * Makefile.in: Update for cpptrad.c.
6669 * cpphash.h (struct cpp_buffer): New members for buffer
6670 overlays.
6671 (struct cpp_reader): New members for traditional output.
6672 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
6673 * cppinit.c (cpp_create_reader): Set trad_line.
6674 (cpp_destroy): Free trad_out_base if used.
6675 (cpp_read_main_file): Overlay an empty buffer if traditional.
6676 (cpp_finish_options): Don't do builtins.
6677 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
6678 (cpp_handle_option): Handle it.
6679 * cpplex.c (continue_after_nul): New.
6680 (_cpp_lex_direct): Use handle_nul.
6681 * cpplib.h (struct cpp_options): New traditional option.
6682 * cpptrad.c: New file.
6683
6684 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
6685
6686 * c-common.c (c_common_init_options): Use C89 for Objective-C,
6687 and set the options flag.
6688 * cppinit.c (lang_flags): Remove objc.
6689 (lang_defaults): Remove OBJC and OBJCXX.
6690 (set_lang): Update.
6691 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
6692 (cpp_handle_option): Remove -+ and -lang-objc++.
6693 For ObjC, just set a flag.
6694 (print_help): Update.
6695 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
6696
6697 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6698
6699 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
6700 bootstrap with -mips3.
6701
6702 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
6703
6704 * final.c: Fix formatting.
6705 * fix-header.c: Likewise.
6706 * flow.c: Likewise.
6707 * fold-const.c: Likewise.
6708 * function.c: Likewise.
6709
6710 2002-05-17 David S. Miller <davem@redhat.com>
6711
6712 PR c/6689, PR optimization/6615
6713 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
6714 and make it a pointer to rtx. Update comments.
6715 (update_equiv_regs): When scanning for equivalences, record
6716 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
6717 it while making the equiv replacements.
6718
6719 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6720
6721 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
6722
6723 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
6724
6725 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
6726 when encoding visibility into SYMBOL_REF_FLAG.
6727
6728 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
6729
6730 * expr.c (force_operand): Fix reversed move.
6731
6732 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
6733
6734 * doc/install.texi (Testing): Mention two common DejaGnu warnings
6735 that can be ignored.
6736
6737 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6738
6739 * doc/install.texi (Final install): Recommend to install into a
6740 "clean" target directory.
6741
6742 2002-05-17 Richard Henderson <rth@redhat.com>
6743
6744 * config/ia64/ia64.md: Use braced strings instead of quoted strings
6745 for code blocks. Tidy whitespace.
6746
6747 2002-05-17 Richard Henderson <rth@redhat.com>
6748
6749 * hooks.c (hook_tree_bool_false): New.
6750 * hooks.h: Declare it.
6751 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
6752 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
6753 * target.h (select_section, unique_section): New.
6754 (in_small_data_p): New.
6755 * varasm.c (resolve_unique_section): Use hooks instead of macros.
6756 (variable_section, output_constant_def_contents): Likewise.
6757 (default_select_section, default_unique_section): New.
6758 (categorize_decl_for_section, default_elf_select_section): New.
6759 * output.h: Declare them.
6760
6761 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
6762 (TARGET_ASM_SELECT_SECTION): New.
6763 (SELECT_SECTION): Move ...
6764 * config/darwin.c (machopic_select_section): ... here.
6765 * config/darwin-protos.h: Update.
6766
6767 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
6768 (SELECT_SECTION): Move ...
6769 * config/nextstep.c (nextstep_select_section): ... here.
6770 * config/nextstep-protos.h: Update.
6771
6772 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
6773 (TARGET_ASM_SELECT_SECTION): New.
6774 * config/svr3.h (SELECT_SECTION): Remove.
6775
6776 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
6777 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
6778 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
6779 (alpha_encode_section_info): Use it.
6780 * config/alpha/alpha-protos.h: Update.
6781 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
6782 (SELECT_SECTION, UNIQUE_SECTION): Remove.
6783 (TARGET_ASM_SELECT_SECTION): New.
6784 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
6785
6786 * config/arm/pe.h (UNIQUE_SECTION): Remove.
6787 (TARGET_ASM_UNIQUE_SECTION): New.
6788
6789 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
6790 (avr_unique_section): Rename from unique_section; make static.
6791 * config/avr/avr-protos.h: Update.
6792 * config/avr/avr.h (UNIQUE_SECTION): Remove.
6793
6794 * config/c4x/c4x.h (SELECT_SECTION): Remove.
6795
6796 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
6797 (TARGET_ASM_UNIQUE_SECTION): New.
6798 * config/i386/i386-interix.h: Likewise.
6799 * config/i386/win32.h: Likewise.
6800 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
6801 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
6802 * config/i386/sco5.h (SELECT_SECTION): Remove.
6803 (TARGET_ASM_SELECT_SECTION): New.
6804 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
6805
6806 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
6807 instead of SELECT_SECTION.
6808 * config/m68k/dpx2.h: Likewise.
6809 * config/rs6000/lynx.h: Likewise.
6810
6811 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6812 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6813 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
6814 (ia64_in_small_data_p): New.
6815 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
6816 (ia64_aix_select_section, ia64_aix_unique_section): New.
6817 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
6818 (SELECT_SECTION, UNIQUE_SECTION): Remove.
6819
6820 * config/m32r/m32r.h (SELECT_SECTION): Remove.
6821 (TARGET_ASM_SELECT_SECTION): New.
6822 * config/m32r/m32r.c (m32r_select_section): Take align argument.
6823 * config/m32r/m32r-protos.h: Update.
6824
6825 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
6826 (SELECT_SECTION): Move ...
6827 * config/m88k/m88k.c (m88k_select_section): ... here.
6828
6829 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
6830 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
6831 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
6832 (mcore_unique_section): Make static.
6833 * config/mcore/mcore-protos.h: Update.
6834
6835 * config/mips/elf.h (UNIQUE_SECTION): Remove.
6836 (TARGET_ASM_UNIQUE_SECTION): New.
6837 * config/mips/elf64.h: Likewise.
6838 * config/mips/iris6gld.h: Likewise.
6839 * config/mips/linux.h: Likewise.
6840 * config/mips/mips-protos.h: Update.
6841 * config/mips/mips.c (mips_select_section): Add align argument.
6842 * config/mips/mips.h (SELECT_SECTION): Remove.
6843 (TARGET_ASM_SELECT_SECTION): New.
6844
6845 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6846 * config/mmix/mmix.c (mmix_select_section): Remove.
6847 (mmix_unique_section): Remove.
6848 * config/mmix/mmix-protos.h: Update.
6849
6850 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
6851 (SELECT_SECTION): Move ...
6852 * config/pa/pa.c (pa_select_section): ... here.
6853 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
6854
6855 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
6856 from rs6000_select_section and make static.
6857 (rs6000_elf_unique_section): Similarly.
6858 (rs6000_xcoff_select_section): From xcoff.h.
6859 (rs6000_xcoff_unique_section): Likewise.
6860 * config/rs6000/rs6000-protos.h: Update.
6861 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6862 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6863 * config/rs6000/xcoff.h: Likewise.
6864
6865 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
6866 (SELECT_SECTION): Move ...
6867 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
6868
6869 * config/v850/v850.h (SELECT_SECTION): Move ...
6870 * config/v850/v850.c (v850_select_section): ... here.
6871 (TARGET_ASM_SELECT_SECTION): New.
6872
6873 * config/vax/vms.h (SELECT_SECTION): Move ...
6874 * config/vax/vax.c (vms_select_section): ... here.
6875 (TARGET_ASM_SELECT_SECTION): New.
6876
6877 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
6878 for the target hooks.
6879
6880 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
6881
6882 * config/arm/arm.c (emit_multi_reg_push): Do not set
6883 RTX_FRAME_RELATED_P on the SEQUENCE.
6884
6885 2002-05-16 Richard Henderson <rth@redhat.com>
6886
6887 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
6888 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
6889
6890 2002-05-16 Richard Henderson <rth@redhat.com>
6891
6892 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
6893
6894 * config/ia64/ia64.c (saveable_obstack): Do not declare.
6895
6896 2002-05-16 Richard Henderson <rth@redhat.com>
6897
6898 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
6899 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
6900 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
6901 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
6902 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
6903 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
6904 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
6905 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
6906 Revert "Basic block renumbering removal", and two followup patches.
6907
6908 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
6909
6910 * lcm.c (optimize_mode_switching): Revert previous change.
6911
6912 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6913
6914 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
6915 with only extant block numbers.
6916
6917 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
6918
6919 * lcm.c (optimize_mode_switching): Fix typo.
6920
6921 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6922
6923 * flow.c (calculate_global_regs_live): Queue blocks in program order.
6924
6925 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6926
6927 * doc/install.texi (Configuration): Document PWDCMD.
6928
6929 2002-05-16 Dale Johannesen <dalej@apple.com>
6930
6931 * combine.c (cant_combine_insn_p): Reenable combinations
6932 involving hard regs unless CLASS_LIKELY_SPILLED_P.
6933
6934 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6935
6936 * c-common.c (cb_register_builtins): Handle more built-ins
6937 here rather than in gcc.c specs.
6938 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
6939 (cpp_options): Pass -O flags even when only preprocessing.
6940 * toplev.c (set_fast_math_flags): New prototype.
6941 (fast_math_flags_set_p): New.
6942 (set_no_fast_math_flags): Remove.
6943 (decode_f_option): Update.
6944 * toplev.h (set_fast_math_flags): Update.
6945 (fast_math_flags_set_p): New.
6946 (set_no_fast_math_flags): Remove.
6947 config:
6948 * c4x/c4x.c (c4x_override_options): Update.
6949
6950 2002-05-16 Zack Weinberg <zack@codesourcery.com>
6951
6952 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
6953 Default-define here.
6954 (builtin_define_with_value): Can now wrap the expansion in
6955 quotation marks if such is wanted.
6956 (cb_register_builtins): Update calls to builtin_define_with_value.
6957 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
6958 here.
6959 (c_common_init): Set options->stdc_0_in_system_headers.
6960 * c-lex.h: Update prototype of builtin_define_with_value.
6961 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
6962 and REGISTER_PREFIX.
6963
6964 * cppinit.c (VERS, ULP, C, X): Kill.
6965 (builtin_array): Remove entries for __VERSION__,
6966 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
6967 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
6968 a constant.
6969 (init_builtins): Kill off a bunch of now-dead code.
6970 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
6971 -fno-leading-underscore.
6972 (cpp_handle_option): Remove code to set user_label_prefix.
6973 (cpp_post_options): Likewise.
6974
6975 * cpplib.h (struct cpp_options): Remove user_label_prefix.
6976 (stdc_0_in_system_headers): New.
6977 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
6978 stdc_0_in_system_headers) too to decide the value of __STDC__.
6979
6980 * tradcpp.c (user_label_prefix): Kill.
6981 (main): Remove code handling -f(no-)leading-underscore.
6982 (initialize_builtins): Don't define __REGISTER_PREFIX__
6983 or __USER_LABEL_PREFIX__.
6984 (install_value): Wrap compound statement in dummy loop so the
6985 macro works properly in an if statement.
6986
6987
6988 2002-05-16 Janis Johnson <janis187@us.ibm.com>
6989
6990 * loop.h (struct loop_info): Add member has_prefetch.
6991 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
6992 (prescan_loop): Initialize has_prefetch.
6993 (struct prefetch_info): Change prefetch_in_loop and
6994 prefetch_before_loop from bit fields to ints.
6995 (emit_prefetch_instructions): Several small fixes.
6996 (check_dbra_loop): Don't reverse loop that uses prefetch.
6997
6998 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6999
7000 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
7001 * configure.in: Likewise.
7002 * fixinc/check.tpl: Likewise.
7003 * fixinc/fixinc.dgux: Likewise.
7004 * fixinc/fixinc.svr4: Likewise.
7005 * fixinc/fixinc.winnt: Likewise.
7006 * fixinc/fixincl.sh: Likewise.
7007 * fixproto: Likewise.
7008 * configure: Regenerate.
7009
7010 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7011
7012 Basic block renumbering removal:
7013 * basic_block.h (struct basic_block_def): Renamed index to sindex,
7014 added prev_bb and next_bb fields.
7015 (n_basic_blocks): Renamed to num_basic_blocks.
7016 (last_basic_block): New, index of last basic block.
7017 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7018 traversing basic block chain.
7019 (BLOCK_NUM): index -> sindex.
7020 (create_basic_block_structure, create_basic_block): Declaration changed.
7021 (debug_num2bb): Declare.
7022 (expunge_block_nocompact): Declaration removed.
7023 (link_block, unlink_block, compact_blocks): Declare.
7024 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
7025 * cfg.c (entry_exit_blocks): Initialize new fields.
7026 (clear_edges, alloc_block, expunge_block, cached_make_edge,
7027 redirect_edge_pred, dump_flow_info, dump_edge_info,
7028 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
7029 free_aux_for_edges): Modified.
7030 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
7031 (expunge_block_nocompact): Removed.
7032 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
7033 find_unreachable_blocks, create_edge_list, print_edge_list,
7034 verify_edge_list, flow_edge_list_print, remove_fake_successors,
7035 remove_fake_edges, flow_reverse_top_sort_order_compute,
7036 flow_depth_first_order_compute, flow_preorder_transversal_compute,
7037 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
7038 flow_dfs_compute_reverse_execute): Modified.
7039 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
7040 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
7041 Modified.
7042 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7043 merge_blocks_move_predecessor_nojumps,
7044 merge_blocks_move_successor_nojumps, merge_blocks,
7045 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
7046 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
7047 * cfglayout.c (skip_insns_after_block, label_for_bb,
7048 record_effective_endpoints, scope_to_insns_finalize,
7049 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
7050 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
7051 cfg_layout_duplicate_bb): Modified.
7052 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
7053 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7054 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
7055 flow_loops_find, flow_loop_outside_edge_p): Modified.
7056 * cfgrtl.c (create_basic_block_structure, create_basic_block,
7057 flow_delete_block, compute_bb_for_insn, split_block,
7058 try_redirect_by_replacing_jump, redirect_edge_and_branch,
7059 force_nonfallthru_and_redirect, tidy_fallthru_edge,
7060 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
7061 commit_edge_insertions, commit_edge_insertions_watch_calls,
7062 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
7063 purge_all_dead_edges): Modified.
7064 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
7065 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7066 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
7067 Modified.
7068 * conflict.c (conflict_graph_compute): Modified.
7069 * df.c (FOR_ALL_BBS): Removed.
7070 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7071 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
7072 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
7073 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
7074 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7075 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
7076 * final.c (compute_alignments, final_scan_insn): Modified.
7077 * flow.c (verify_local_live_at_start, update_life_info,
7078 update_life_info_in_dirty_blocks, free_basic_block_vars,
7079 delete_noop_moves, calculate_global_regs_live,
7080 initialize_uninitialized_subregs, allocate_bb_life_data,
7081 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
7082 mark_used_reg, count_or_remove_death_notes): Modified.
7083 * function.c (thread_prologue_and_epilogue_insns): Modified.
7084 * gcse.c (struct null_pointer_info): Change typo of current_block
7085 to basic_block.
7086 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
7087 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
7088 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
7089 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
7090 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
7091 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
7092 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
7093 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
7094 pre_delete, one_pre_gcse_pass, compute_transpout,
7095 invalidate_nonnull_info, delete_null_pointer_checks_1,
7096 free_code_hoist_mem, compute_code_hoist_vbeinout,
7097 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7098 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
7099 compute_store_table, build_store_vectors, insert_insn_start_bb,
7100 insert_store, replace_store_insn, free_store_memory, store_motion):
7101 Modified.
7102 * global.c (global_alloc, global_conflicts, mark_elimination,
7103 build_insn_chain): Modified.
7104 * graph.c (print_rtl_graph_with_bb): Modified.
7105 * haifa-sched.c (sched_init): Modified.
7106 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7107 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
7108 if_convert): Modified.
7109 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
7110 compute_insert_delete, pre_edge_lcm, compute_available,
7111 compute_farthest, compute_nearerout, compute_rev_insert_delete,
7112 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
7113 Modified.
7114 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
7115 * loop.c (loop_dump_aux): Modified.
7116 * predict.c (combine_predictions_for_insn, estimate_probability,
7117 last_basic_block_p, process_note_prediction, process_note_predictions,
7118 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
7119 expensive_function_p, estimate_bb_frequencies,
7120 compute_function_frequency): Modified.
7121 * print-rtl.c (print_rtx): Modified.
7122 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
7123 get_exec_counts, compute_branch_probabilities, compute_checksum,
7124 branch_prob, find_spanning_tree): Modified.
7125 * recog.c (split_all_insns, peephole2_optimize): Modified.
7126 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
7127 convert_regs_1, convert_regs_2, convert_regs): Modified.
7128 * regclass.c (scan_one_insn, regclass): Modified.
7129 * regmove.c (mark_flags_life_zones, regmove_optimize,
7130 combine_stack_adjustments): Modified.
7131 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
7132 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
7133 * reorg.c (dbr_schedule): Modified.
7134 * resource.c (find_basic_block, init_resource_info): Modified.
7135 * sbitmap.c (sbitmap_intersection_of_succs,
7136 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
7137 sbitmap_union_of_preds): Modified.
7138 * sched-deps.c (init_dependency_caches): Modified.
7139 * sched-ebb.c (schedule_ebbs): Modified.
7140 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
7141 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
7142 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
7143 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
7144 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
7145 ssa_const_prop): Modified.
7146 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
7147 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
7148 * ssa.c (remove_phi_alternative, find_evaluations,
7149 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
7150 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
7151 make_regs_equivalent_over_bad_edges,
7152 make_equivalent_phi_alternatives_equival,
7153 compute_conservative_reg_partition,
7154 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
7155 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
7156 Modified.
7157
7158 2002-05-16 Mark Mitchell <mark@codesourcery.com>
7159
7160 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
7161
7162 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
7163
7164 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
7165 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7166 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
7167 calling CONSTANT_POOL_ADDRESS_P.
7168 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
7169 to decide whether to define __arm__ or __thumb.
7170 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
7171 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7172
7173 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
7174
7175 * config/arc/arc.h (CPP_PREDEFINES): Remove.
7176 (CPP_SPEC): Update.
7177 (TARGET_CPU_CPP_BUILTINS): New.
7178
7179 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
7180
7181 * cpphash.h (cpp_macro): Move here, and make expansion a union.
7182 * cppmacro.c (cpp_macro): Remove.
7183 (enter_macro_context, replace_args, warn_of_redefinition,
7184 _cpp_create_definition, cpp_macro_definition): Update.
7185
7186 2002-05-16 Jason Merrill <jason@redhat.com>
7187
7188 * config/mips/mips.c (mips_output_external): Don't do sdata
7189 optimization for a variable with DECL_COMDAT set.
7190
7191 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
7192
7193 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
7194 Cleanups for accepting modifiers on pointers.
7195 Fix predicate typos.
7196 Allow long pointers as well as int pointers.
7197
7198 2002-05-15 Richard Henderson <rth@redhat.com>
7199
7200 * varasm.c (merge_weak): Remove special case for extern and common.
7201
7202 2002-05-15 Matt Hiller <hiller@redhat.com>
7203
7204 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
7205 XFAILing.
7206 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
7207 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
7208 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
7209 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
7210 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
7211 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
7212
7213 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
7214
7215 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
7216
7217 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
7218
7219 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
7220 ("altivec_mfvscr"): Read from VSCR.
7221
7222 Add vscr sets for the following insns: altivec_vctuxs,
7223 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
7224 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
7225 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
7226 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
7227 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
7228 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
7229 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
7230 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
7231 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
7232 altivec_vsum2sws, altivec_vsumsws.
7233
7234 * config/rs6000/rs6000.h: Add VSCR fixed register.
7235 (CALL_REALLY_USED_REGISTERS): Add vscr.
7236 (CALL_USED_REGISTERS): Same.
7237 (FIXED_REGISTERS): Same.
7238 (REG_ALLOC_ORDER): Same.
7239 (reg_class): Add VSCR_REGS.
7240 (REG_CLASS_NAMES): Same.
7241 (REG_CLASS_CONTENTS): Same.
7242 (VSCR_REGNO): New.
7243 (REGISTER_NAMES): Add vscr.
7244 (DEBUG_REGISTER_NAMES): Same.
7245 (ADDITIONAL_REGISTER_NAMES): Same.
7246 (FIRST_PSEUDO_REGISTER): Increment.
7247 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
7248
7249 2002-05-15 Jakub Jelinek <jakub@redhat.com>
7250
7251 * fold-const.c (fold): Fix a typo.
7252
7253 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
7254
7255 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
7256 comparison against the highest or lowest integer value before
7257 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
7258 transformation and that of an unsigned comparison against 0
7259 right after.
7260
7261 2002-05-15 Richard Henderson <rth@redhat.com>
7262
7263 * varasm.c (merge_weak): Error for any weakening after definition.
7264 Adjust weakening after use warning to catch more cases.
7265 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
7266 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
7267
7268 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
7269
7270 * invoke.texi (-malign-double): Re-add lost warning.
7271
7272 * i386-protos.h (x86_output_mi_thunk): Declare.
7273 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
7274 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
7275
7276 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
7277 when flag_asynchronous_unwind_tables is set.
7278
7279 * flags.h (flag_reorder_functions): Declare.
7280 * function.c (prepare_function_start): Initialize frequnecy.
7281 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
7282 * Makefile.in (predict.o): Add dependency on target.h and params.h
7283 * defaults.h (HOT_TEXT_SECTION_NAME,
7284 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
7285 * predict.c (choose_function_section): New function.
7286 (estimate_bb_frequencies): Use it.
7287 * toplev.c (flag_reorder_functions): New global variable.
7288 (lang_independent_options): New.
7289 (parse_options_and_default_flags): Set.
7290 * varasm.c (assemble_start_function): Bypass functdion alignment
7291 for never executed functions.
7292 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
7293 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
7294 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7295 Document.
7296
7297 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
7298
7299 * predict.c: Inlude profile.h
7300 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
7301 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
7302 Use the information about maximal counter in the program.
7303
7304 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
7305
7306 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
7307 probably_never_executed_bb_p): New functions.
7308 * cfgcleanup.c (outgoing_edges_match): Use them.
7309 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
7310 (maybe_hot_bb_p, probably_cold_bb_p,
7311 probably_never_executed_bb_p): New functions.
7312
7313 * function.h (function): Add new field function_frequency.
7314 * predict.c (compute_function_frequency): New function.
7315 (estimate_probability): Call it.
7316
7317 2002-03-09 Jakub Jelinek <jakub@redhat.com>
7318
7319 PR optimization/5172, optimization/5200
7320 * gcse.c (gcse_main): Disable store_motion.
7321
7322 2002-05-14 Zack Weinberg <zack@codesourcery.com>
7323
7324 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
7325 (c_common_nodes_and_builtins): Use it.
7326 (builtin_define_with_value): New function.
7327 (cb_register_builtins): Define __SIZE_TYPE__,
7328 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
7329 using builtin_define_with_value. Use consistent notation when
7330 defining __GXX_WEAK__.
7331 (WCHAR_TYPE_SIZE): Don't redefine.
7332 (combine_strings): Don't use WCHAR_TYPE_SIZE.
7333
7334 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
7335 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
7336 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
7337 * tradcpp.c (initialize_builtins): Likewise.
7338 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
7339
7340 * c-lex.h (builtin_define_with_value): Prototype.
7341 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
7342 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
7343 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
7344
7345 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
7346 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
7347 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
7348 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
7349 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
7350 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
7351 config/sparc/sol2-bi.h, config/sparc/sparc.h:
7352 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
7353 to __SIZE_TYPE__ etc from all spec strings. When this makes
7354 extra specs empty, delete them.
7355
7356 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
7357
7358 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
7359 for PA8000 or generating dwarf2 call frame information.
7360 (output_call): Remove DO_FRAME_NOTES check from return pointer
7361 optimization.
7362 (following_call): Return 0 when scheduling for PA8000 or generating
7363 dwarf2 call frame information. Revise comment.
7364
7365 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7366
7367 config/alpha:
7368 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
7369 and __IEEE_FP_INEXACT as appropriate.
7370 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
7371 (CPP_SPEC): Remove ieee defines.
7372 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
7373
7374 2002-05-14 Richard Henderson <rth@redhat.com>
7375
7376 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
7377 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
7378
7379 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7380
7381 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
7382 (CPP_SPEC): Update.
7383 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
7384 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
7385 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
7386 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
7387 (EXTRA_SPECS): Update.
7388 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
7389 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
7390 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
7391 define TARGET_OS_CPP_BUILTINS if necessary.
7392
7393 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7394
7395 * gcc.c (cpp_options): Must pass -m* and -f* options
7396 to the front end even when only preprocessing.
7397 (cc1_options): Remove redundant -lang-c.
7398 * tradcpp.c (main): Ignore -m options.
7399 objc:
7400 * lang-specs.h: Similarly.
7401
7402 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
7403
7404 * genautomata.c (transform_3): Add code for transformation
7405 `(A,B,...)+C -> A+C,B,...'.
7406
7407 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
7408
7409 * final.c (end_final): Do not output profile_arcs constructor, when
7410 no functions are instrumented.
7411
7412 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
7413
7414 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
7415
7416 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7417
7418 * doc/install.texi: Remove special markup originally required for
7419 HTML generation with texi2html.
7420
7421 2002-05-14 Andreas Schwab <schwab@suse.de>
7422
7423 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
7424 SELECT_SECTION.
7425 (UNIQUE_SECTION): Define to get small data correctly.
7426
7427 * varasm.c (resolve_unique_section): Add third parameter
7428 flag_function_or_data_sections and use it instead of
7429 flag_function_sections.
7430 (assemble_start_function): Pass flag_function_sections.
7431 (asm_emit_uninitialised): Pass flag_data_sections.
7432 (assemble_variable): Likewise.
7433
7434 2002-05-14 Richard Henderson <rth@redhat.com>
7435
7436 * config/i386/i386.md: Use define_constants for unspec numbers.
7437 * config/i386/i386.c: Likewise.
7438
7439 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7440
7441 * doc/contrib.texi: Update my entry.
7442
7443 2002-05-13 Mark Mitchell <mark@codesourcery.com>
7444
7445 * fixinc/inclhack.def (winidss_valist): Limit applicability.
7446 * fixinc/fixincl.x: Regenerated.
7447 * fixinc/tests/base/math.h: Update.
7448 * fixinc/tests/base/testing.h: Likewise.
7449
7450 2002-05-13 Zack Weinberg <zack@codesourcery.com>
7451
7452 * genattr.c (gen_attr): Don't emit a comma after the last
7453 enumerator.
7454
7455 2002-05-13 Richard Henderson <rth@redhat.com>
7456
7457 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
7458 by non-local gotos.
7459 * recog.c (peephole2_optimize): Likewise.
7460
7461 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
7462
7463 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
7464 input to O_BINARY.
7465
7466 2002-05-13 Jeffrey A Law (law@redhat.com)
7467
7468 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
7469 Update prototype and callers.
7470 (propagate_one_insn): Stack pointer adjustments kill MEMs on
7471 the mem_set_list which reference the stack pointer, as do
7472 calls to constant functions as they may clobber outgoing
7473 argument space.
7474
7475 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
7476
7477 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7478 (ia32_multipass_dfa_lookahead): New function.
7479
7480 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7481
7482 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
7483 (translate_options): Remove 'V'.
7484 (process_command): Similarly.
7485 doc:
7486 * invoke.texi: Remove documentation of 'V'.
7487
7488 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7489
7490 * config/s390/linux.h: Revert 2002-04-22 changes.
7491
7492 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
7493
7494 * config/fr30/fr30.md: Only allow splits of immediate loads
7495 if the destination is a register.
7496
7497 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7498
7499 * Makefile.in (c-common.o, cppinit.o): Update.
7500 * c-common.c: Include except.h.
7501 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
7502 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
7503 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
7504 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
7505 CPP_PREDEFINES): Handle here.
7506 config:
7507 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
7508 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
7509 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
7510 TARGET_OS_CPP_BUILTINS.
7511 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
7512 (CPP_SPEC, EXTRA_SPECS): Update.
7513 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
7514 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
7515 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
7516 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
7517 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
7518 doc:
7519 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
7520 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
7521
7522 2002-05-12 Zack Weinberg <zack@codesourcery.com>
7523
7524 * emit-rtl.c (global_rtl): Update comment.
7525 (const_double_htab, const_double_htab_hash,
7526 const_double_htab_hash, lookup_const_double): New.
7527 (const_int_htab_hash, const_int_htab_eq): Remove const
7528 qualifiers, which cause tons of warnings with RTL checking on.
7529 (gen_rtx_CONST_DOUBLE): Deleted.
7530 (const_double_from_real_value): New function - bears some
7531 resemblance to the former immed_real_const_1.
7532 (immed_double_const): Moved here from varasm.c and
7533 simplified.
7534 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
7535 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
7536 (gen_rtx): Use immed_double_const.
7537 (init_emit_once): Initialize the const_double_htab. Use
7538 REAL_VALUE_FROM_INT where possible. Can now use
7539 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
7540 * varasm.c (struct varasm_status): Remove x_const_double_chain.
7541 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
7542 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
7543 (init_varasm_status, mark_varasm_status): Don't touch
7544 x_const_double_chain.
7545
7546 * output.h: Delete prototype for clear_const_double_mem.
7547 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
7548 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
7549 const_double_from_real_value, not immed_real_const_1, and use
7550 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
7551 CONST_DOUBLE_ATOF.
7552 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
7553 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
7554 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
7555 (gen_rtx_REG): Second arg is unsigned.
7556
7557 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
7558 (excluded_rtx): New, return true for CONST_DOUBLE.
7559 (genmacro): Write nothing for excluded codes.
7560 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
7561 * expr.c (expand_expr): Likewise.
7562 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
7563 CONST_DOUBLE_CHAIN.
7564 * toplev.c (rest_of_compilation): Don't call
7565 clear_const_double_mem.
7566
7567 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
7568 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
7569 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
7570 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
7571 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
7572 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
7573 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
7574 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
7575
7576 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7577
7578 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
7579
7580 2002-05-12 Tom Tromey <tromey@redhat.com>
7581
7582 * tree.h (copy_node): Don't mention TREE_PERMANENT.
7583
7584 2002-05-12 Zack Weinberg <zack@codesourcery.com>
7585
7586 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
7587 (scan_comma_elt): New function. Accepts whitespace in comma lists.
7588 * gensupport.h: Prototype new routines.
7589 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
7590 use of printf.
7591 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
7592 (next_comma_elt): Use scan_comma_elt.
7593
7594 * config/i386/i386.md: Use new attribute notation to break up
7595 long lines in define_attr forms.
7596
7597 2002-05-12 Richard Henderson <rth@redhat.com>
7598
7599 * expr.c (compress_float_constant): New.
7600 (emit_move_insn): Use it.
7601 (float_extend_from_mem): New.
7602 (init_expr_once): Initialize it.
7603 * real.c (exact_real_truncate): New.
7604
7605 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
7606 dropped into memory; penalize for size.
7607 (RTX_COSTS): FLOAT_EXTEND is free.
7608 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
7609 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
7610
7611 2002-05-12 Richard Henderson <rth@redhat.com>
7612
7613 * profile.h (profile_info): Add missing extern to declaration.
7614 * profile.c (profile_info): Define it.
7615
7616 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7617
7618 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
7619 used for DImode and TImode.
7620
7621 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
7622
7623 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
7624 fake a newline.
7625
7626 2002-05-11 Zack Weinberg <zack@codesourcery.com>
7627
7628 * config/rs6000/rs6000.c (rs6000_default_long_calls,
7629 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
7630 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
7631 (rs6000_override_options): Handle -m(no-)longcall.
7632 (init_cumulative_args, output_mi_thunk): Check for both
7633 longcall and shortcall attributes on the function.
7634 (rs6000_attribute_table): Add "shortcall".
7635 (rs6000_handle_longcall_attribute): Update comment.
7636 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
7637 altivec_expand_ternop_builtin): Add default clauses to switches
7638 to silence warnings.
7639
7640 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
7641 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
7642 (TARGET_OPTIONS): Add longcall and no-longcall.
7643
7644 * config/rs6000/rs6000.md (call_nonlocal_sysv,
7645 call_value_nonlocal_sysv): Split by alternatives. One pair
7646 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
7647 the call cookie. The other pair accepts only LR/CTR and has
7648 no restriction.
7649
7650 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
7651 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
7652 tmake_file.
7653 * config/rs6000/rs6000-c.c: New file.
7654 * config/rs6000/t-rs6000-c-rule: New file.
7655 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
7656 Prototype rs6000_pragma_longcall.
7657
7658 * doc/extend.texi: Document shortcall attribute.
7659 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
7660
7661 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7662
7663 * reorg.c (dbr_schedule): Remove unnecessary test.
7664
7665 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
7666
7667 * i386.md (testsi to testqi spliters): New.
7668
7669 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
7670
7671 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
7672
7673 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
7674
7675 * basic-block.h: New flag EDGE_CAN_FALLTHRU
7676 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
7677 that can be made fallthru.
7678
7679 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
7680
7681 * cfglayout.c (cleanup_unconditional_jumps): New static function.
7682 (cfg_layout_initialize): Use it.
7683
7684 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
7685
7686 * config/avr/avr.c (avr_mcu_types): Update supported devices.
7687 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7688 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7689
7690 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
7691
7692 * dbxout.c: Fix formatting.
7693 * dependence.c: Likewise.
7694 * df.c: Likewise.
7695 * diagnostic.c: Likewise.
7696 * doloop.c: Likewise.
7697 * dominance.c: Likewise.
7698 * doschk.c: Likewise.
7699 * dwarf2asm.c: Likewise.
7700 * dwarf2out.c: Likewise.
7701 * dwarfout.c: Likewise.
7702
7703 2002-05-10 Richard Henderson <rth@redhat.com>
7704
7705 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
7706 Convert integers constants as needed. Replace "nwords" field with
7707 "sizeof_bb".
7708 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
7709 * function.h: Fix typo in comment.
7710 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
7711
7712 2002-05-10 Roger Sayle <roger@eyesopen.com>
7713
7714 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
7715 into the equivalent (signed char)c > 0.
7716
7717 2002-05-10 Janis Johnson <janis187@us.ibm.com>
7718
7719 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
7720 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
7721 (struct prefetch_info): Fix spelling of member bytes_accessed.
7722 (emit_prefetch_instructions): Make dump messages more regular;
7723 restructure code to add more dump messages; use new macros for
7724 heuristics. (There are no code generation changes in any of this).
7725
7726 2002-05-10 David S. Miller <davem@redhat.com>
7727
7728 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
7729 (struct rtx_def): Update unchanging flag comment.
7730 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
7731 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
7732 to be handled to INSN too.
7733 (dbr_schedule): Likewise.
7734 * resource.c (next_insn_no_annul): Likewise.
7735
7736 * cse.c (rtx_cost): Remove multiplication by power of 2 special
7737 casing.
7738
7739 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7740
7741 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
7742 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
7743 (possibly) work around broken /bin/sh.
7744
7745 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7746
7747 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
7748 . as N64/N32 libgcc_s.so subdirs.
7749
7750 2002-05-10 David S. Miller <davem@redhat.com>
7751
7752 * config/sparc/sparc.md: Use define_constants for unspec numbers.
7753
7754 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
7755 more accurately.
7756 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
7757 comment.
7758 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
7759 * doc/rtl.texi: Document these macros more accurately.
7760 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
7761 JUMP_INSNs and CALL_INSNs.
7762 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
7763 or INSN_FROM_TARGET_P if the code is appropriate.
7764
7765 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
7766
7767 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
7768 before using SYMBOL_REF_FLAG (addr).
7769
7770 * config/avr/avr-protos.h (avr_io_address_p): Declare.
7771 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
7772 Make non-static. Update all callers.
7773 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
7774 New insns to clear/set/test a single bit in I/O address space.
7775
7776 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7777
7778 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
7779
7780 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7781
7782 * Makefile.in: Update.
7783 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
7784 builtin_define_std): New.
7785 (c_common_init): Register CPP builtins callback.
7786 * c-common.h (flag_iso, flag_undef): New.
7787 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
7788 * c-lex.c: Don't include target.h.
7789 (cb_register_builtins): Move to c-common.c.
7790 (init_c_lex): Don't register hook here.
7791 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
7792 (cpp_define, cpp_assert): Remove.
7793 * gcc.c (cc1_options): Pass -undef to front end.
7794 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
7795 (TARGET_INITIALIZER): Update.
7796 * target.h (struct cpp_reader): Don't predeclare.
7797 (struct gcc_target): Remove cpp builtin hook.
7798 * tree.c (default_register_cpp_builtins): Remove.
7799 doc:
7800 * tm.texi: Update.
7801
7802 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7803
7804 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
7805
7806 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7807
7808 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
7809 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
7810
7811 2002-05-09 Jakub Jelinek <jakub@redhat.com>
7812
7813 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
7814 * config/sparc/libgcc-sparc-glibc.ver: New file.
7815 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
7816 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
7817
7818 2002-05-09 Jakub Jelinek <jakub@redhat.com>
7819
7820 PR target/6429
7821 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
7822 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
7823 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
7824 base multilibs.
7825 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
7826 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7827 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7828 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7829
7830 2002-05-09 Richard Henderson <rth@redhat.com>
7831
7832 * config/ia64/ia64.md: Use define_constants for unspec numbers.
7833 * config/ia64/ia64.c: Likewise.
7834
7835 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
7836
7837 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
7838 (save_restore_insns): Likewise.
7839 (mips_expand_prologue, mips_expand_epilogue): Update callers.
7840 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
7841
7842 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
7843
7844 * athlon.md, k6.md, pentium.md, ppro.md): New files.
7845 * i386.md: Move scheduling information into new files.
7846
7847 * i386.md (type attribute): Add "rotate" for rotate insns.
7848 (rotate insns): Set type to "rotate".
7849 (various attributes and function units): Treat rotate like shift.
7850 (pent_pair attribute): Only rotates by one bit position are
7851 pairable.
7852 (sbb insns): Explicitly set pent_pair attribute on a couple
7853 that were missing it.
7854
7855 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
7856
7857 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
7858 make sure that buffer starts on odd word address.
7859 (sh_va_arg): Skip odd fp registers when reading a double precision
7860 value.
7861
7862 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7863
7864 * tree.h (preserve_data, object_permanent_p, type_precision):
7865 Remove.
7866
7867 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7868
7869 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
7870 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
7871 doc:
7872 * cpp.texi: Update for removal of obsolete features.
7873
7874 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
7875 Jeffrey A Law (law@redhat.com)
7876
7877 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
7878 the DFA interface for Pentium processors.
7879 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
7880 (attr_pent_pair, ix86_pent_find_pair): Remove.
7881 (ix86_sched_reorder_pentium): Remove.
7882 (ix86_sched_reorder): Remove reordering for Pentium.
7883 * i386.md (Pentium scheduling): Rewrite using DFA description.
7884
7885 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
7886
7887 * cfganal.c (can_fallthru): Fix fast path.
7888 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
7889 with edges to the next block.
7890
7891 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
7892 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
7893
7894 * final.c (end_final): Use C trees to output data structures for profiling.
7895
7896 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
7897 (profile.o): New dependency profile.h
7898 (final.o): New dependency profile.h
7899 * profile.h: New file. New global structure profile_info.
7900 * final.h (count_edges_instrumented_now): Declare.
7901 (current_function_cfg_checksum): Declare.
7902 (function_list): New structure.
7903 (functions_head, functions_tail): New static variables.
7904 (end_final): Emits more data, removed some -ax stuff.
7905 (final): Stores function names and chcksums.
7906 * gcov-io.h (__write_gcov_string): New function.
7907 (__read_gcov_string): New function.
7908 * gcov.c (read_profile): New function.
7909 (create_program_flow_graph): Uses read_profile instead of reading
7910 da_file.
7911 (read_files): Removed da_file checking, it's done by read_profile now.
7912 * libgcc2.c (bb_function_info): New structure.
7913 (bb): New field in structure, removed some -ax stuff.
7914 (__bb_exit_func): Changed structure of da_file.
7915 * profile.c (count_edges_instrumented_now): New global variable.
7916 (current_function_cfg_checksum): New global variable.
7917 (max_counter_in_program): New global variable.
7918 (get_exec_counts): New function.
7919 (compute_checksum): New function.
7920 (instrument_edges): Sets count_edges_instrumented_now.
7921 (compute_branch_probabilities): Uses get_exec_counts instead of
7922 reading da_file.
7923 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
7924 (init_branch_prob): Removed da_file checking, done in get_exec_counts
7925 now.
7926 (end_branch_prob): Removed da_file checking, done in get_exec_counts
7927 now.
7928 * gcov.texi: Updated information about gcov file format.
7929
7930 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
7931
7932 * sbitmap.c: Fix formatting.
7933 * scan.c: Likewise.
7934 * scan-decls.c: Likewise.
7935 * sched-deps.c: Likewise.
7936 * sched-ebb.c: Likewise.
7937 * sched-rgn.c: Likewise.
7938 * sched-vis.c: Likewise.
7939 * sdbout.c: Likewise.
7940 * sibcall.c: Likewise.
7941 * simplify-rtx.c: Likewise.
7942 * ssa.c: Likewise.
7943 * ssa-ccp.c: Likewise.
7944 * ssa-dce.c: Likewise.
7945 * stmt.c: Likewise.
7946 * stor-layout.c: Likewise.
7947 * stringpool.c: Likewise.
7948
7949 2002-05-09 David S. Miller <davem@redhat.com>
7950
7951 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
7952
7953 2002-05-07 David S. Miller <davem@redhat.com>
7954
7955 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
7956 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
7957 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
7958 library implementation clobbers the output before the inputs
7959 are fully consumed, use stack temporary for the output.
7960
7961 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
7962
7963 * config/netbsd.h (CPP_SPEC): Remove.
7964 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
7965 * config/i386/netbsd.h (CPP_SPEC): Define.
7966 * config/ns32k/netbsd.h (CPP_SPEC): Define.
7967 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
7968 * config/sparc/netbsd.h (CPP_SPEC): Define.
7969 * config/vax/netbsd.h (CPP_SPEC): Define.
7970
7971 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
7972
7973 * read-rtl.c: Fix formatting.
7974 * real.c: Likewise.
7975 * recog.c: Likewise.
7976 * regclass.c: Likewise.
7977 * regmove.c: Likewise.
7978 * reg-stack.c: Likewise.
7979 * reload1.c: Likewise.
7980 * reload.c: Likewise.
7981 * resource.c: Likewise.
7982 * rtlanal.c: Likewise.
7983 * rtl.c: Likewise.
7984 * rtl-error.c: Likewise.
7985
7986 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7987
7988 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
7989 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
7990
7991 2002-05-08 Bernd Schmidt <bernds@redhat.com>
7992
7993 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
7994 use __SSE2__ macro instead.
7995 * config/i386/xmmintrin.h: Likewise.
7996
7997 2002-05-08 Janis Johnson <janis187@us.ibm.com>
7998
7999 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
8000 and use it in all invocations of these macros. Clean up comments.
8001 * rtl.c (rtl_check_failed_flag): Add an argument for the name
8002 of the flag access macro whose check failed.
8003 * doc/rtl.texi (Flags): Document additional flag uses.
8004
8005 2002-05-08 Robert Spier <rspier@pobox.com>
8006 Neil Booth <neil@daikokuya.demon.co.uk>
8007
8008 PR preprocessor/6521
8009 * cppfiles.c (handle_missing_header): Don't do anything
8010 different for <> includes.
8011 doc:
8012 * cppopts.texi: Update documentation for -MG.
8013
8014 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
8015
8016 * cpplex.c (cpp_interpret_charconst): Truncate as well as
8017 sign-extend.
8018 doc:
8019 * cpp.texi: Clarify multichar charconst valuation.
8020
8021 2002-05-08 Mark Mitchell <mark@codesourcery.com>
8022
8023 * doc/invoke.texi: Document -mwindiss option.
8024
8025 2002-05-08 Jason Merrill <jason@redhat.com>
8026
8027 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
8028
8029 * dwarf2out.c (gen_type_die): Abort on broken recursion.
8030
8031 PR c++/6381
8032 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
8033 REAL_CST.
8034
8035 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
8036
8037 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
8038 little-endian multilibs to override arm/thumb multilibs.
8039 Do not build hardware floating point multilibs, nor apcs-26
8040 multilibs for the Thumb.
8041
8042 2002-05-08 Mark Mitchell <mark@codesourcery.com>
8043
8044 PR c/6569.
8045 * varasm.c (mark_weak): New function.
8046 (merge_weak): Use it. Do not call declare_weak.
8047 (declare_weak): Use merge_weak.
8048
8049 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
8050
8051 * cse.c (dead_libcall_p): Update counts.
8052 (delete_trivially_dead_insns): Update call of dead_libcall_p.
8053
8054 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
8055
8056 * cfglayout.c (function_tail_eff_head): Rename to ...
8057 (function_footer): ... this one.
8058 (unlink_insn_chain): New functions.
8059 (label_for_bb): Only call block_label and emit debug message.
8060 (record_effective_endpoints): Actually unlink the headers and footers.
8061 (fixup_reorder_cahin): Re-insert the unlinked sequences.
8062 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
8063 * cfglayout.h (struct reorder_block_def): New fields footer/header;
8064 remove eff_head/eff_end.
8065 * rtl.h (set_first_insn): Declare.
8066 * emit-rtl.c (set_first_insn): New function.
8067
8068 * cfglayout.c (fixup_reorder_chain): Dump duplicated
8069 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8070 cfg_layout_duplicate_bb): New global function.
8071 (duplicate_insn_chain): New static function.
8072 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8073 cfg_layout_duplicate_bb): Declare.
8074 (struct reorder_block_def): Add "original" field.
8075 * emit-rtl.c (emit_copy_of_insn_after): New function.
8076 * rtl.h (emit_copy_of_insn_after): Declare.
8077
8078 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
8079 (fixup_reorder_chain): properly handle edges to exit block.
8080
8081 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8082 Jan Hubicka <jh@suse.cz>
8083
8084 * basic-block.h (note_prediction_to_br_prob): declare.
8085 * c-semantics.c: Inlucde predit.h
8086 (expand_stmt): predict GOTO_STMT as not taken.
8087 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
8088 (cleanup_cfg): Do not free tail_recursion_list.
8089 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
8090 (flow_delete_block): Kill predictions past end of basic block.
8091 * output.h (delete_unreachable_blocks): Declare.
8092 * predict.c (predicted_by_p, process_note_predictions,
8093 process_note_prediction, last_block_p): New function.
8094 (estimate_probability): Bypass loop on PRED_CONTINUE;
8095 do not handle noreturn heuristics; kill PRED_RETURN; add
8096 PRED_EARLY_RETURN.
8097 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
8098 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
8099 * predict.h (IS_TAKEN): New constant.
8100 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
8101 * rtl.c (NOTE_INSN_PREDICTION): New.
8102 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
8103 New macro.
8104 (insn_note): add NOTE_INSN_PREDICTION.
8105 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
8106 CFG; free tail_recursion_label_list.
8107 * stmt.c: Include predict.h;
8108 (return_prediction): New.
8109 (expand_value_return): Use it.
8110 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
8111
8112 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
8113
8114 * config/mips/mips.md: Name the unspecs with define_constant.
8115 (*HILO_delay): Rename to 'hilo_delay' (no star).
8116 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
8117 (reload_outdi, reload_outsi): Likewise.
8118
8119 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
8120
8121 * toplev.c: Fix formatting.
8122
8123 2002-05-07 Janis Johnson <janis187@us.ibm.com>
8124
8125 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
8126 * configure.in (ac_rtlflag_checking): New.
8127 * doc/install.texi (--enable-checking): Document RTL flag checking.
8128
8129 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
8130
8131 * c-common.c (c_common_init): Set options->unsigned_wchar.
8132 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
8133 group target dependencies.
8134 (init_builtins, cpp_handle_option): Update.
8135 * cpplex.c (cpp_interpret_charconst): Update.
8136 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
8137 signed_char to unsigned_char, group target dependencies.
8138 * defaults.h (WCHAR_UNSIGNED): Remove.
8139 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
8140 config:
8141 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
8142 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
8143 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
8144 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
8145 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
8146 doc:
8147 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
8148
8149 2002-05-07 Mark Mitchell <mark@codesourcery.com>
8150
8151 * fixinc/inclhack.def (windiss_math1): New fix.
8152 (windiss_math2): Likewise.
8153 (windiss_valist): Likewise.
8154 * fixinc/fixincl.x: Regenerated.
8155
8156 2002-05-07 Andreas Jaeger <aj@suse.de>
8157
8158 * genautomata.c (output_internal_min_issue_delay_func): Add
8159 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
8160 (output_internal_trans_func): Likewise.
8161
8162 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
8163
8164 * pa.c (hppa_profile_hook): Use force_reg to get the address
8165 of the profile hook into an appropriate pseudo register.
8166
8167 2002-05-07 Mark Mitchell <mark@codesourcery.com>
8168
8169 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
8170 (LINK_START_SPEC): Handle it.
8171 (LINK_OS_SPEC): Likewise.
8172 (CPP_SPEC): Likewise.
8173 (STARTFILE_SPEC): Likewise.
8174 (LIB_SPEC): Likewise.
8175 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
8176 all platforms.
8177 (CRTSAVRES_DEFAULT_SPEC): New macro.
8178 (LIB_WINDISS_SPEC): New macro.
8179 (CPP_OS_WINDISS_SPEC): Likewise.
8180 (STARTFILE_WINDISS_SPEC): Likewise.
8181 (ENDFILE_WINDISS_SPEC): Likewise.
8182 (LINK_START_WINDISS_SPEC): Likewise.
8183 (LINK_OS_WINDISS_SPEC): Likewise.
8184 * config/rs6000/windiss.h: New file.
8185
8186 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
8187
8188 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
8189
8190 2002-05-06 David S. Miller <davem@redhat.com>
8191
8192 * config/sparc/sparc.md (shift insns): Do not mask off
8193 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
8194 take care of it.
8195
8196 2002-05-06 Richard Henderson <rth@redhat.com>
8197
8198 PR c++/6212
8199 * expr.c (highest_pow2_factor_for_type): New.
8200 (expand_assignment): Use it.
8201
8202 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
8203
8204 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
8205 unspec_volatile.
8206 ("altivec_mfvscr"): Same.
8207
8208 2002-05-06 Janis Johnson <janis187@us.ibm.com>
8209
8210 * rtl.h (struct rtx_def): Update comments.
8211 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
8212 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
8213 RTL_FLAG_CHECK macros with list of expected RTL codes.
8214 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
8215 (rtl_check_failed_flag): New.
8216 * reload1.c (reload): Use REG macro before changing rtx to MEM.
8217 (reload_cse_noop_set_p): Check rtx code before using access macro.
8218 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
8219 before using access macro.
8220
8221 2002-05-06 Janis Johnson <janis187@us.ibm.com>
8222
8223 * doc/rtl.texi (Flags): Update to reflect current usage.
8224
8225 2002-05-06 Roger Sayle <roger@eyesopen.com>
8226
8227 PR opt/3995
8228 * fold-const.c (sign_bit_p): New function.
8229 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
8230 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
8231 Reapply fold when converting (A & C) == C into (A & C) != 0.
8232 (fold_binary_op_with_conditional_arg): Fix typo in comment.
8233
8234 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
8235
8236 * c-common.c (warn_multichar): New.
8237 (c_common_init): Set CPP's warn_multichar.
8238 * c-common.h (warn_multichar): New.
8239 * c-decl.c (warn_multichar): Remove.
8240 * c-lex.c (lex_charconst): Update.
8241 * c-tree.h (warn_multichar): Remove.
8242 * cppexp.c (eval_token): Sign-extend charconst value.
8243 * cppinit.c (cpp_create_reader): Set warn_multichar.
8244 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
8245 each character. Update prototype. Sign-extend the result.
8246 * cpplib.h: Fix conditions.
8247 (struct cpp_options): Add new warning flag.
8248 (cpp_interpret_charconst): Update prototype.
8249 doc:
8250 * cpp.texi: Update documentation.
8251
8252 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
8253
8254 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
8255 Fix typo in usage of allof instead of unit.
8256
8257 2002-05-06 Richard Henderson <rth@redhat.com>
8258
8259 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
8260 and any jump or call for IN.
8261
8262 2002-05-06 Bernd Schmidt <bernds@redhat.com>
8263
8264 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
8265 -msse2.
8266 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
8267
8268 2002-05-06 Roger Sayle <roger@eyesopen.com>
8269
8270 * fold-const.c (lshift-double): Cast the high word to an unsigned
8271 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
8272 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
8273 avoid compiler warning. (fold): Remove redundant code from
8274 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
8275
8276 2002-05-06 Jeff Law <law@redhat.com>
8277
8278 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
8279 * pa.c (pa_adjust_cost): Remove all true dependency cost
8280 adjustments. Also remove support for non-DFA scheduling.
8281 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
8282 to adjust true dependency costs. Update various comments.
8283 (7100lc, 7200, 7300 scheduling): Simplify by combining the
8284 FP ALU & MPY units into a single unit.
8285
8286 2002-05-06 Catherine Moore <clm@redhat.com>
8287
8288 * config/v850/v850.c (compute_register_save_size): Make sure
8289 to count all of the registers that will be saved.
8290
8291 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
8292
8293 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
8294
8295 2002-05-06 David S. Miller <davem@redhat.com>
8296
8297 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
8298 allow result to overlap input operands in memory.
8299
8300 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
8301
8302 doc:
8303 * cpp.texi: Update multichar charconst docs.
8304
8305 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
8306
8307 * cpplex.c (cpp_interpret_charconst): Sign-extend each
8308 character. Don't ignore excess characters. Treat
8309 multicharacter character constants as signed.
8310 (cpp_parse_escape): Clarify diagnostic.
8311
8312 2002-05-05 Jakub Jelinek <jakub@redhat.com>
8313
8314 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
8315 use add instead of shift.
8316 (ashldi3_sp64): Likewise.
8317 (ashlsi3_const1, ashldi3_const1): Remove.
8318 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
8319 * config/sparc/sparc.c (const1_operand): New.
8320
8321 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
8322
8323 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
8324
8325 2002-05-05 Jakub Jelinek <jakub@redhat.com>
8326
8327 PR target/6561
8328 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
8329
8330 2002-05-05 Richard Henderson <rth@redhat.com>
8331
8332 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
8333 memory latency adjustments.
8334 (alpha_variable_issue): Remove.
8335 (alpha_use_dfa_pipeline_interface): New.
8336 (alpha_multipass_dfa_lookahead): New.
8337 * config/alpha/alpha.md: Remove define_function_unit scheduling;
8338 include new dfa scheduling.
8339 (attr type): Add none.
8340 (blockage): Use it.
8341 * config/alpha/ev4.md: New.
8342 * config/alpha/ev5.md: New.
8343 * config/alpha/ev6.md: New.
8344
8345 2002-05-05 David S. Miller <davem@redhat.com>
8346
8347 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
8348
8349 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
8350
8351 * cse.c: Fix formatting.
8352 * emit-rtl.c: Likewise.
8353
8354 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
8355
8356 * genautomata.c (initiate_states): Add additional guard to
8357 initialize `units_array'.
8358
8359 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
8360
8361 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
8362 process_unit_to_form_the_same_automaton_unit_lists,
8363 form_the_same_automaton_unit_lists
8364 check_unit_distributions_to_automata): New prototypes and
8365 functions.
8366 (check_automata): Rename it into `check_automata_insn_issues'.
8367 (unit_decl): New fields `the_same_automaton_unit' and
8368 `the_same_automaton_message_reported_p'.
8369 (unit_decl_t): New typedef.
8370 (the_same_automaton_lists): New gloval variable.
8371 (unit_regexp, unit_set_el, units_array, units_cmp,
8372 output_get_cpu_unit_code_func): Use the typedef.
8373 (evaluate_max_reserv_cycles): Increment
8374 `description->max_insn_reserv_cycles'.
8375 (initiate_states): Don't increment `max_cycles_num'.
8376 (transform_insn_regexps): Move code around transformation of
8377 regexps from `generate'.
8378 (generate): Remove call of `transform_insn_regexps'.
8379 (expand_automata): Call `transform_insn_regexps' and
8380 `check_unit_distributions_to_automata'. Check errors before
8381 `generate'.
8382
8383 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
8384 automaton `ultrasparc3_1'.
8385
8386 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
8387
8388 * c-common.c (c_common_init): Set up CPP arithmetic.
8389 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
8390 something reasonable for the host.
8391 (sanity_checks): Add checks.
8392 (cpp_read_main_file): Call sanity_checks() from here...
8393 (cpp_post_options): ... not here.
8394 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
8395 * cpplib.h (struct cpp_options): New member int_precision.
8396
8397 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8398
8399 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
8400
8401 2002-05-04 David S. Miller <davem@redhat.com>
8402
8403 * config/sparc/linux.h, config/sparc/linux64.h
8404 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
8405
8406 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
8407 more RTX codes.
8408 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
8409
8410 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
8411 of SETs.
8412
8413 2002-05-05 Tim Josling <tej@melbpc.org.au>
8414
8415 * treelang; New directory for new sample language treelang.
8416
8417 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8418
8419 * Makefile.in (c-lex.o): Update.
8420 * c-lex.c: Include target.h.
8421 (cb_register_builtins): New.
8422 (init_c_lex): Set builtins callback.
8423 * c-lex.h (cpp_define, cpp_assert): New prototypes.
8424 * cppinit.c (init_builtins): Use callback, including for
8425 GXX_WEAK.
8426 * cpplib.h (struct cpp_callbacks): New member.
8427 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
8428 (TARGET_INITIALIZER): Update.
8429 * target.h (struct gcc_target): New hook.
8430 * tree.c (default_register_cpp_builtins): New.
8431 * tree.h (default_register_cpp_builtins): New.
8432 doc:
8433 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
8434
8435 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8436
8437 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
8438 (cpp_post_options): Move sanity checks to...
8439 (sanity_checks): New.
8440 * cpplex.c (maybe_read_ucs): Fix prototype.
8441 (parse_string, cpp_parse_escape): Cast for %c format specifier.
8442 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
8443 if necessary.
8444
8445 2002-05-04 Bernd Schmidt <bernds@redhat.com>
8446
8447 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
8448 builtins. Use V2DI patterns instead of TI for logical operations.
8449 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
8450 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
8451 (ix86_expand_builtins): Change the pattern used for movntdq.
8452 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
8453 sse2_nandv2di3): New patterns.
8454 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
8455 on operands.
8456 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
8457 (cvtdq2pd): Correct mode on operand 1.
8458 (sse2_umulsidi3): Describe without unspec.
8459 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
8460 machine modes.
8461 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
8462 (ashlv2di3): Likewise, from sse2_ashlv2di3.
8463 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
8464 ashlv4si3, ashlv2di3): Use SImode for shift count.
8465 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
8466 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
8467 New patterns.
8468 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
8469 New typedefs.
8470 (__m128i, __m128d): New macros.
8471 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
8472 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
8473 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
8474 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
8475 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
8476 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
8477 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
8478 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
8479 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
8480 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
8481 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
8482 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
8483 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
8484 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
8485 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
8486 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
8487 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
8488 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
8489 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
8490 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
8491 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
8492 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
8493 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
8494 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
8495 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
8496 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
8497 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
8498 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
8499 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
8500 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
8501 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
8502 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
8503 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
8504 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
8505 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
8506 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
8507 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
8508 functions.
8509 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
8510 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
8511
8512 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
8513
8514 * dwarf2out.c: Fix formatting.
8515 * varasm.c: Likewise.
8516
8517 2002-05-04 David Edelsohn <edelsohn@gnu.org>
8518
8519 PR c/6543
8520 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
8521 clobber and use result as temporary value.
8522
8523 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
8524
8525 * expr.c (force_operand): Use expand_simple_* to handle more
8526 cases.
8527
8528 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8529
8530 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
8531 and sign-extension.
8532 (lex_charconst): Update for change in prototype of
8533 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
8534 appropriately.
8535 * cpphash.h (BITS_PER_CPPCHAR_T): New.
8536 * cppinit.c (cpp_create_reader): Initialize them for no
8537 change in semantics.
8538 (cpp_post_options): Add sanity checks.
8539 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
8540 and truncation issues. Calculate in type cppchar_t.
8541 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
8542 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
8543 run-time dependent precision correctly. Return whether the
8544 result is signed or not.
8545 * cpplib.c (dequote_string): Use cppchar_t; update.
8546 * cpplib.h (cppchar_signed_t): New.
8547 struct cpp_options): New precision members.
8548 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
8549 * cppexp.c (eval_token): Update.
8550
8551 2002-05-03 David S. Miller <davem@redhat.com>
8552
8553 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
8554 * config/sparc/sparc.c (sparc_rtx_costs): New function
8555 implementing RTX_COSTS and CONST_COSTS.
8556 * config/sparc/sparc.h (CONST_COSTS): Delete.
8557 (RTX_COSTS_CASES): Define.
8558 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
8559 the work.
8560
8561 * config/sparc/sparc.md (DFA schedulers): Split out...
8562 * config/sparc/cypress.md, config/sparc/hypersparc.md,
8563 config/sparc/sparclet.md, config/sparc/supersparc.md,
8564 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
8565
8566 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
8567 checks on it, always defined for Sparc.
8568
8569 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
8570 Tweak, and add more detailed comments.
8571
8572 2002-05-03 Zack Weinberg <zack@codesourcery.com>
8573
8574 * Re-apply patch accidentally reverted with
8575 DFA scheduler merge: remove all rules and variables to slurp
8576 source files out of libiberty and rebuild them with HOST_CC.
8577 ($(HOST_PREFIX_1)varray.o): New rule.
8578 (genattrtab rule): Word wrap.
8579
8580 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
8581
8582 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
8583 (CPP_SUBTARGET_SPEC): Define.
8584 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
8585 cpp_subtarget specs.
8586 (CPP_SPEC): Redefine to include %(cpp_subtarget).
8587
8588 2002-05-03 David S. Miller <davem@redhat.com>
8589
8590 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
8591 * target.h (struct gcc_target): Delete cycle_display member.
8592
8593 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
8594 (rtx_needs_barrier): Delete reference to cycle_display unspec.
8595 (ia64_sched_reorder2): Mention need for cycle display handling
8596 once such notes exist.
8597
8598 2002-05-03 Richard Henderson <rth@redhat.com>
8599
8600 * real.c (etoasc): Strip most trailing zeros for clarity.
8601 * sched-vis.c: Include real.h.
8602 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
8603 * Makefile.in (sched-vis.o): Add real.h.
8604
8605 2002-05-03 David S. Miller <davem@redhat.com>
8606
8607 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
8608 no longer needed.
8609
8610 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
8611
8612 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
8613 when we get an out of range literal.
8614 (altivec_expand_ternop_builtin): Same.
8615 (altivec_expand_unop_builtin): Same.
8616 (altivec_expand_builtin): Same, for dss.
8617 (altivec_expand_builtin): Use trees instead of rtl when
8618 determining literal argument validity.
8619
8620 2002-05-03 David S. Miller <davem@redhat.com>
8621
8622 Delete cycle display scheduling hook.
8623 * config/ia64/ia64.c (ia64_cycle_display,
8624 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
8625 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
8626 and use emit_insn_before instead of ia64_emit_insn_before.
8627 * config/ia64/ia64.md (unspec usage): Delete cycle display.
8628 (cycle_display): Delete insn pattern.
8629 * config/sparc/sparc.md (unspec usage): Delete cycle display.
8630 (cycle_display): Delete insn pattern.
8631 * config/sparc/sparc.c (sparc_cycle_display,
8632 TARGET_SCHED_CYCLE_DISPLAY): Delete.
8633 * doc/md.texi (cycle_display): Don't mention.
8634 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
8635
8636 2002-05-03 Richard Henderson <rth@redhat.com>
8637
8638 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
8639 * recog.h: Declare them.
8640
8641 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
8642 * config/sparc/sparc.md: Use store_data_bypass_p instead.
8643 * config/sparc/sparc-protos.h: Update.
8644
8645 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
8646
8647 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
8648 -D__arch64__. Add -D_LP64.
8649 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
8650 from sparc.h.
8651 (CPP_ARCH64_SPEC): Likewise.
8652 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
8653 (NO_BUILTIN_SIZE_TYPE): Undef.
8654
8655 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
8656
8657 * genautomata.c (min_issue_delay_pass_states): Change return type
8658 in the prototype.
8659 (min_issue_delay_pass_states): Change the algorithm.
8660 (min_issue_delay): Set up min_insn_issue_delay for the state.
8661 (output_min_issue_delay_table): Interchange the nested loops and
8662 and initiate min_insn_issue_delay for states.
8663
8664 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
8665
8666 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
8667 jump is simplejump.
8668
8669 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
8670
8671 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
8672 sequence.
8673
8674 2002-05-03 Richard Henderson <rth@redhat.com>
8675
8676 PR opt/6534
8677 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
8678 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
8679 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
8680 code before JUMP, not EARLIEST.
8681
8682 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
8683
8684 * c-format.c (check_format_info_main): Don't check for presence of
8685 parameter for * width until after operand number has been read,
8686 and only check for it if format parameters are available.
8687 Fixes PR c/6547.
8688
8689 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
8690
8691 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
8692 (LINK_SPEC): Undef before defining.
8693
8694 2002-05-03 Jakub Jelinek <jakub@redhat.com>
8695
8696 PR preprocessor/6489
8697 * tradcpp.c (fixup_newlines): New.
8698 (main, finclude): Use it.
8699
8700 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
8701
8702 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
8703 * config/mips/mips.c (mips_unique_section): Strip encoding from
8704 decl name.
8705
8706 2002-05-03 Jakub Jelinek <jakub@redhat.com>
8707
8708 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
8709 mode.
8710
8711 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8712
8713 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
8714 (Specific): Removed buildstats references.
8715 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
8716 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
8717 Accomodate Solaris versions beyond 8.
8718 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
8719 (Specific, *-*-solaris2.8): Removed, obsolete.
8720
8721 2002-05-03 Jakub Jelinek <jakub@redhat.com>
8722
8723 PR target/6542
8724 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
8725 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
8726 fill leaf_reg_remap with identity.
8727 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
8728
8729 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
8730
8731 * config/h8300/crti.asm: Remove trailing spaces.
8732 * config/h8300/h8300.c: Likewise.
8733 * config/h8300/lib1funcs.asm: Likewise.
8734
8735 2002-05-02 Jason Merrill <jason@redhat.com>
8736
8737 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
8738 * c-decl.c (c_init_decl_processing): Use it.
8739 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
8740 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
8741 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
8742
8743 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
8744
8745 * regrename.c: Fix formatting.
8746 * tree.c: Likewise.
8747
8748 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
8749
8750 * i386.md (attribute memory): Handle compares properly.
8751
8752 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
8753
8754 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
8755 to none.
8756
8757 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
8758
8759 * function.c: Fix formatting.
8760
8761 2002-05-02 Jan Hubicka <jh@suse.cz>
8762
8763 * haifa-sched.c (schedule_insn): Print table of instructions and
8764 reservations.
8765 (sched_block): Do not print ready list at verbosity level 1.
8766 * sched-vis.c (print_insn): Make global.
8767 * sched-ebb.c (ebb_print_insn): Rename from...
8768 (print_insn): ... this one.
8769 * sched-int.h (print_insn): Declare
8770
8771 2002-05-02 Richard Henderson <rth@redhat.com>
8772
8773 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
8774 emitted by cycle_display.
8775
8776 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
8777
8778 * doc/install.texi (*-*-freebsd*): Update to latest status.
8779
8780 2002-05-02 Jakub Jelinek <jakub@redhat.com>
8781
8782 PR target/6540
8783 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
8784 * config/float-sparc.h: Assume 128-bit long double if
8785 __LONG_DOUBLE_128__ is defined.
8786
8787 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
8788
8789 * genattrtab.c (write_function_unit_info): Add a dummy element
8790 when num_units == 0.
8791
8792 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8793
8794 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
8795 TYPE_MODE (double_type_node) instead of DFmode.
8796
8797 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
8798
8799 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
8800 jumps post reload.
8801 * toplev.c (rest_of_compilation): Revert Richard's patch.
8802
8803 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
8804
8805 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
8806
8807 2002-05-02 Catherine Moore <clm@redhat.com>
8808
8809 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
8810
8811 2002-05-02 Kazu Hirata <kazu@hxi.com>
8812
8813 * combine.c: Fix comment typos.
8814 * expr.c: Likewise.
8815 * genautomata.c: Likewise.
8816 * stmt.c: Likewise.
8817 * tree.h: Likewise.
8818
8819 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
8820
8821 * doc/install.texi: State GNAT version requirements.
8822
8823 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
8824
8825 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
8826 of the frame pointer or arg pointer register which strict register
8827 checking is not enabled.
8828
8829 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
8830
8831 * gcc.dg/altivec-8.c: New.
8832
8833 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
8834 PRE_INC and PRE_DEC for altivec modes.
8835
8836 2002-05-01 Bruce Korb <bkorb@gnu.org>
8837
8838 * fixinc/check.tpl(set-writable): make sure the function exists first
8839 * fixinc/inclhack.def(alpha_assert): fix test_text
8840 * fixinc/tests/base/assert.h: add in missing result
8841
8842 2002-05-01 Jeff Law <law@redhat.com>
8843
8844 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
8845 'T' constraint.
8846
8847 2002-05-01 Joel Brobecker <brobecker@gnat.com>
8848
8849 * dbxout.c (dbxout_type): Emit size information for range types,
8850 as well, but only when using GDB extensions.
8851
8852 2002-05-01 Richard Henderson <rth@redhat.com>
8853
8854 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
8855 target-independent gnu binutils date test.
8856
8857 2002-05-01 Richard Henderson <rth@redhat.com>
8858
8859 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
8860 info before expunging the block.
8861
8862 2002-05-01 Jakub Jelinek <jakub@redhat.com>
8863
8864 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
8865 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
8866 -M -or -MM is in effect.
8867
8868 2002-05-01 Zack Weinberg <zack@codesourcery.com>
8869
8870 * config.gcc: Correct test of --enable-obsolete. Obsolete all
8871 A29k configurations.
8872 * doc/install.texi: Update to match.
8873
8874 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8875
8876 PR bootstrap/6514
8877 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
8878 for duplicates. Always loop over whole list.
8879
8880 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8881
8882 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
8883
8884 2002-05-01 Joel Sherrill <joel@OARcorp.com>
8885
8886 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
8887 support routines.
8888
8889 2002-05-01 Joel Sherrill <joel@OARcorp.com>
8890
8891 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
8892
8893 2002-05-01 David Edelsohn <edelsohn@gnu.org>
8894
8895 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
8896 (nabs_nopower): Same.
8897 (floatdisf2): New pattern.
8898 (absdi2): Convert to define_insn_and_split.
8899 (nabsdi2): Same.
8900 (trunctfsf2): Same.
8901 (floatditf2): Same.
8902 (floatsitf2): Same.
8903 (fix_trunctfdi2): Same.
8904 (fix_trunctfsi2): Same.
8905
8906 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
8907
8908 * doc/install.texi: Update Texinfo version requirement
8909 documentation.
8910
8911 2002-05-01 Jakub Jelinek <jakub@redhat.com>
8912
8913 PR target/6512, PR target/5628
8914 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
8915 when memory is not aligned.
8916 (movdf_insn_v9only_vis): Likewise.
8917 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
8918 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
8919 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
8920
8921 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
8922
8923 * gcc.dg/altivec-7.c: New.
8924
8925 * config/rs6000/altivec.h: Cleanup.
8926
8927 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
8928
8929 * doc/invoke.texi (Option Summary): Add -mvrsave=.
8930 (RS/6000 and PowerPC Options): Document -mvrsave=.
8931
8932 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
8933 (rs6000_altivec_vrsave_string): Same.
8934 (rs6000_override_options): Call rs6000_parse_vrsave_option.
8935 (rs6000_parse_vrsave_option): New.
8936 (rs6000_stack_info): Only generate vrsave instructions when
8937 TARGET_ALTIVEC_VRSAVE.
8938
8939 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
8940 (rs6000_altivec_vrsave_string): Define extern.
8941 (rs6000_altivec_vrsave): Same.
8942 (TARGET_ALTIVEC_VRSAVE): New.
8943
8944 2002-04-30 Richard Henderson <rth@redhat.com>
8945
8946 PR opt/6516
8947 * toplev.c (rest_of_compilation): Don't run cross-jump before
8948 bb-reorder.
8949
8950 2002-04-30 Tom Rix <trix@redhat.com>
8951
8952 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
8953 check which_alternative.
8954
8955 2002-04-30 Kazu Hirata <kazu@hxi.com>
8956
8957 * cpplex.c: Fix comment formatting.
8958 * function.c: Likewise.
8959 * integrate.c: Likewise.
8960 * regrename.c: Likewise.
8961 * sibcall.c: Likewise.
8962 * simplify-rtx.c: Likewise.
8963 * tree-inline.c: Likewise.
8964
8965 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
8966
8967 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
8968 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
8969 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
8970 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
8971 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
8972 * pa/x-ada: New file. Define ADA_CFLAGS.
8973
8974 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
8975
8976 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
8977 from MMIX_LAST_REGISTER_FILE_REGNUM.
8978 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
8979 (struct machine_function): New member highest_saved_stack_register
8980 previously static variable in mmix.c.
8981 (MACHINE_DEPENDENT_REORG): Define.
8982 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
8983 (MMIX_OUTPUT_REGNO): New.
8984 (mmix_target_asm_function_prologue): Move calculation of last used
8985 saved-stack-register into...
8986 (mmix_machine_dependent_reorg): New function. Update to also handle
8987 !TARGET_ABI_GNU.
8988 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
8989 register names, simplify somewhat by new variable regno.
8990 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
8991 register.
8992 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
8993 emitting register names.
8994 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
8995 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
8996 Remove fixed FIXME.
8997 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
8998 Declare.
8999
9000 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
9001
9002 2002-04-30 Richard Henderson <rth@redhat.com>
9003
9004 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
9005 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
9006 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
9007 emit_tfmode_cvt): New.
9008 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
9009 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
9010 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
9011 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
9012 * config/sparc/sparc-protos.h: Update.
9013
9014 2002-04-30 Janis Johnson <janis187@us.ibm.com>
9015
9016 * install.texi (Final install): Add to the list of info to include
9017 in a report of a successful bootstrap, and add link to 3.1 list.
9018
9019 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
9020
9021 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
9022 (mode): Add vector modes
9023 (i387): Kill attribute.
9024 (unit): New attribute.
9025 (length_immediate): Grok new types.
9026 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
9027 (modrm): Use "unit".
9028 (memory): Handle MMX/SSE properly.
9029 (scheduling descriptions): Kill uses of fop1.
9030 (sse, mmx, fp patterns): Set type and mode properly.
9031
9032 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
9033
9034 * pa.c (override_options): Default to PA8000 scheduling.
9035 * doc/invoke.texi (HP-PA options): Mention newly added 7300
9036 scheduling parameter.
9037
9038 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
9039 handling of double precision multiplies.
9040
9041 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
9042 fpdiv and fpsqrt instructions.
9043 (7200 & 7300 scheduling): Fix typo in handling of
9044 store-load and store-store penalties.
9045
9046 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9047
9048 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
9049 mips. Add two missing commas.
9050
9051 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
9052
9053 * doc/contrib.texi (Contributors): Update Paolo Carlini's
9054 and Benjamin Kosnik's entries.
9055
9056 2002-04-29 David S. Miller <davem@redhat.com>
9057
9058 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
9059 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
9060 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
9061 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9062
9063 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9064
9065 * combine.c (find_split_point): Use gen_int_mode.
9066
9067 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
9068
9069 Merging code from dfa-branch:
9070
9071 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
9072
9073 * genautomata.c (output_reserv_sets): Fix typo.
9074
9075 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
9076
9077 * genautomata.c (output_reserv_sets): Remove
9078 next_cycle_output_flag.
9079
9080 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
9081
9082 * sched-rgn.c (init_ready_list): Make the DFA code handle
9083 USE/CLOBBER insns in the same way as the traditional
9084 scheduler.
9085 (new_ready): Similarly..
9086
9087 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
9088
9089 * haifa-sched.c (schedule_block): Change the DFA state only after
9090 issuing insn.
9091
9092 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
9093
9094 * pa.c (hppa_use_dfa_pipeline_interface): New function.
9095 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
9096 (override_options): Add PA7300 scheduling support.
9097 (pa_adjust_cost): Update various comments. Properly
9098 handle anti and output dependencies when using the
9099 DFA scheduler.
9100 (pa_issue_rate): Add PA7300 scheduling support.
9101 (pa_can_combine_p): Call extract_insn before calling
9102 constrain_operands (taken from mainline tree).
9103 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
9104 * pa.md (cpu attr): Add 7300. Rewrite pipeline
9105 descriptions using DFA descriptions. Add PA7300
9106 scheduling support.
9107
9108 2002-03-30 David S. Miller <davem@redhat.com>
9109
9110 Add UltraSPARC-III DFA scheduling support.
9111 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
9112 Update FP conditional move on register insn patterns to use it, as
9113 appropriate.
9114 (define_attr cpu): Add ultrasparc3.
9115 (define_attr us3load_type): New, update integer load patterns to
9116 set it, as appropriate.
9117 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
9118 (rest): Add UltraSPARC3 scheduling description.
9119 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
9120 (PROCESSOR_ULTRASPARC3): New.
9121 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
9122 ({ASM,CPP}_CPU_SPEC): Likewise.
9123 (REGISTER_MOVE_COST): Likewise.
9124 (RTX_COSTS): Likewise.
9125 * config/sparc/sparc.c (sparc_override_options,
9126 sparc_initialize_trampoline, sparc64_initialize_trampoline,
9127 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9128 sparc_issue_rate): Likewise.
9129 * config/sparc/sol2.h: Likewise.
9130 * config/sparc/sol2-sld-64.h: Likewise.
9131 * config/sparc/linux64.h: Likewise.
9132
9133 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
9134
9135 * doc/md.texi: Add comments about usage the latency time for the
9136 different dependencies and about case when two or more conditions
9137 in different define_insn_reservations returns TRUE for an insn.
9138
9139 * doc/md.texi: Add reference for automaton based pipeline
9140 description.
9141
9142 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
9143
9144 * doc/passes.texi: Add missed information about genattrtab.
9145
9146 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
9147
9148 * genautomata.c (output_automata_list_transition_code): Check
9149 automata_list on NULL.
9150
9151 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
9152
9153 * genautomata.c (output_insn_code_cases,
9154 output_automata_list_min_issue_delay_code,
9155 output_automata_list_transition_code,
9156 output_automata_list_state_alts_code): Comment the functions.
9157
9158 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
9159
9160 * genautomata.c (automata_list_el_t): New typedef.
9161 (get_free_automata_list_el,free_automata_list_el,
9162 free_automata_list, automata_list_hash, automata_list_eq_p,
9163 initiate_automata_lists, automata_list_start, automata_list_add,
9164 automata_list_finish, finish_automata_lists,
9165 output_insn_code_cases, output_automata_list_min_issue_delay_code,
9166 output_automata_list_transition_code,
9167 output_automata_list_state_alts_code, add_automaton_state,
9168 form_important_insn_automata_lists): New functions and prototypes.
9169 (insn_reserv_decl): Add members important_automata_list and
9170 processed_p.
9171 (ainsn): Add members important_p.
9172 (automata_list_el): New structure.
9173 (first_free_automata_list_el, current_automata_list,
9174 automata_list_table): New global variables.
9175 (create_ainsns): Initiate member important_p.
9176 (output_internal_min_issue_delay_func): Generate the switch and
9177 call output_insn_code_cases.
9178 (output_internal_trans_func, output_internal_state_alts_func):
9179 Ditto.
9180 (generate): Call initiate_automata_lists.
9181 (automaton_states): New global variable.
9182 (expand_automata): Call form_important_insn_automata_lists.
9183 (write_automata): Call finish_automata_lists.
9184
9185 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
9186
9187 * genautomata.c (add_excls, add_presence_absence): Check that
9188 cpu units in the sets belong the same automaton.
9189
9190 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
9191 about that cpu units in the sets belong the same automaton.
9192
9193 * doc/md.texi: Ditto.
9194
9195 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
9196 Nitin Gupta <niting@noida.hcltech.com>
9197
9198 * config/sh/sh.c (sh_use_dfa_interface): New function.
9199
9200 (sh_issue_rate): New Function.
9201 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
9202 TARGET_SCHED_ISSUE_RATE: define.
9203
9204 * config/sh/sh.md: Add DFA based pipeline description for SH4.
9205
9206 (define_attr insn_class): New attribute used for DFA
9207 scheduling.
9208 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
9209 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
9210 cmpeqdi_t): Likewise.
9211
9212 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
9213 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
9214 ex_group.
9215 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
9216
9217 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
9218
9219 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
9220 break.
9221
9222 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
9223
9224 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
9225 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
9226 necessary.
9227 (output_dfa_start_func): Initiate new variable insn_codes_length,
9228 (write_automata): Output definition of the new variable.
9229
9230 2001-10-02 David S. Miller <davem@redhat.com>
9231
9232 * haifa-sched.c (advance_one_cycle): New function.
9233 (schedule_block): Use it.
9234 (queue_to_ready): Use it, and also make sure to advance the DFA
9235 state on all stall cycles, not just those where insn_queue links
9236 are found.
9237
9238 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
9239
9240 * haifa-sched.c (max_issue): Remove last_p argument. Only return
9241 non-zero if the highest-priority instruction could be scheduled.
9242 (choose_ready): Remove last argument from max_issue call.
9243
9244 2001-09-28 David S. Miller <davem@redhat.com>
9245
9246 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
9247 ultrasparc and 3 for other multi-issue sparcs.
9248
9249 2001-09-27 David S. Miller <davem@redhat.com>
9250
9251 * config/sparc/sparc.md (cycle_display): New pattern.
9252 * config/sparc/sparc.c (sparc_cycle_display): New.
9253 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
9254
9255 2001-09-25 David S. Miller <davem@redhat.com>
9256
9257 Convert all of Sparc scheduling to DFA
9258 * config/sparc/sparc.md: Kill all define_function_unit
9259 directives and replace with DFA equivalent.
9260 * config/sparc/sparc.c (ultrasparc_adjust_cost,
9261 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
9262 ultra_fpmode_conflict_exists, ultra_find_type,
9263 ultra_build_types_avail, ultra_flush_pipeline,
9264 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
9265 ultrasparc_variable_issue, ultrasparc_sched_init,
9266 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
9267 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
9268 ultra_cur_hist, ultra_cycles_elapsed): Kill.
9269 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9270 ultrasparc_store_bypass_p): New.
9271 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
9272 Declare.
9273
9274 2001-09-24 David S. Miller <davem@redhat.com>
9275
9276 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
9277 ready->vec[foo] not ready[foo].
9278
9279 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
9280
9281 * doc/md.texi: Correct examples for define_insn_reservations
9282 `mult' and `div'.
9283
9284 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
9285
9286 * genautomata.c (create_automata): Print message about creation of
9287 each automaton.
9288 (generate): Remove printing meease about creation of
9289 automata.
9290
9291 2001-09-05 David S. Miller <davem@redhat.com>
9292
9293 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9294 * config/sparc/linux64.h: Likewise.
9295
9296 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
9297
9298 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
9299 schedule_block, sched_init, sched_finish): Add missed calls of
9300 use_dfa_pipeline_interface.
9301
9302 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
9303 Ditto.
9304
9305 * sched-vis.c (get_visual_tbl_length): Ditto.
9306
9307 2001-08-27 Richard Henderson <rth@redhat.com>
9308
9309 * genattr.c (main): Emit state_t even when not doing scheduling.
9310
9311 2001-08-27 Richard Henderson <rth@redhat.com>
9312
9313 * genautomata.c (expand_automata): Always create a description.
9314
9315 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
9316
9317 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9318 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9319 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9320 RTL constructions.
9321
9322 * genattr.c (main): New variable num_insn_reservations. Increase
9323 it if there is DEFINE_INSN_RESERVATION. Output automaton based
9324 pipeline hazard recognizer interface.
9325
9326 * genattrtab.h: New file.
9327
9328 * genattrtab.c: Include genattrtab.h.
9329 (attr_printf, check_attr_test, make_internal_attr,
9330 make_numeric_value): Move protypes into genattrtab.h. Define them
9331 as external.
9332 (num_dfa_decls): New global variable.
9333 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9334 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9335 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9336 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
9337
9338 * genautomata.c: New file.
9339
9340 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9341
9342 * sched-int.h: (curr_state): Add the external definition for
9343 automaton pipeline interface.
9344 (haifa_insn_data): Add comments for members blockage and units.
9345
9346 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9347 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9348 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9349 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9350 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9351 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9352 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9353 macros.
9354 (TARGET_SCHED): Use the new macros.
9355
9356 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9357 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9358 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9359 dfa_bubble): New members in gcc_target.sched.
9360
9361 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9362 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9363 (insn_queue): Redefine it as pointer to array.
9364 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9365 INSN_QUEUE_SIZE.
9366 (max_insn_queue_index_macro_value): New variable.
9367 (curr_state, dfa_state_size, ready_try): New varaibles for
9368 automaton interface.
9369 (ready_element, ready_remove, max_issue): New function prototypes
9370 for automaton interface.
9371 (choose_ready): New function prototype.
9372 (insn_unit, blockage_range): Add comments.
9373 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9374 FUNCTION_UNITS_SIZE == 0.
9375 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9376 actual_hazard, potential_hazard): Add comments.
9377 (insn_cost): Use cost -1 as undefined value. Remove
9378 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
9379 pipeline interface.
9380 (ready_element, ready_remove): New functions for automaton
9381 interface.
9382 (schedule_insn): Add new code for automaton pipeline interface.
9383 (queue_to_ready): Add new code for automaton pipeline interface.
9384 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9385 (debug_ready_list): Print newline when the queue is empty.
9386 (max_issue): New function for automaton pipeline interface.
9387 (choose_ready): New function.
9388 (schedule_block): Add new code for automaton pipeline interface.
9389 Print ready list before scheduling each insn.
9390 (sched_init): Add new code for automaton pipeline interface.
9391 Initiate insn cost by -1.
9392 (sched_finish): Free the current automaton state and finalize
9393 automaton pipeline interface.
9394
9395 * sched-rgn.c: Include target.h.
9396 (init_ready_list, new_ready, debug_dependencies): Add new code for
9397 automaton pipeline interface.
9398
9399 * sched-vis.c: Include target.h.
9400 (get_visual_tbl_length): Add code for automaton interface.
9401 (target_units, print_block_visualization): Add comments.
9402
9403 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9404 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9405 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9406 (getruntime.o, genautomata.o): New entries.
9407 (genattrtab.o): Add new dependency file genattrtab.h.
9408 (genattrtab): Add new dependencies. Link it with `libm.a'.
9409 (getruntime.o, hashtab.o): New entries for canadian cross.
9410
9411 * doc/md.texi: Description of automaton based model.
9412
9413 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9414 Add comments.
9415 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9416 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9417 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9418 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9419 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9420 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9421 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9422 hook descriptions.
9423 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9424 MAX_DFA_ISSUE_RATE): New macro descriptions.
9425
9426 * doc/contrib.texi: Add dfa based scheduler contribution.
9427
9428 * doc/gcc.texi: Add more information about genattrtab.
9429
9430 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9431
9432 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
9433 adjust_address_nv call.
9434
9435 2002-04-29 Janis Johnson <janis187@us.ibm.com>
9436
9437 * doc/install.texi (Testing): Provide additional information, and
9438 a stronger encouragement, for running the testsuites.
9439
9440 2002-04-29 DJ Delorie <dj@redhat.com>
9441
9442 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
9443 given in upper case.
9444
9445 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9446
9447 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
9448 Solaris 2 <widec.h> if missing.
9449 * fixinc/fixincl.x: Regenerate.
9450 * fixinc/tests/base/widec.h: New file.
9451
9452 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
9453
9454 * toplev.c (f_options): Add "profile" switch so that
9455 -fno-profile can be used to disable -p.
9456
9457 2002-04-29 Bernd Schmidt <bernds@redhat.com>
9458
9459 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
9460 UV2DImode.
9461 * tree.c (build_common_tree_nodes_2): Likewise.
9462 * tree.h (enum tree_index): Likewise.
9463 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
9464
9465 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
9466 entries.
9467 (init_mmx_sse_builtins): Initialize SSE2 builtins.
9468 (ix86_expand_builtin): Add support for SSE2 builtins.
9469 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
9470 (VALID_SSE_REG_MODE): Use it.
9471 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
9472 (enum ix86_builtins): Add SSE2 builtins.
9473 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
9474 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
9475 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
9476 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
9477 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
9478 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
9479 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
9480 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
9481 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
9482 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
9483 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
9484 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
9485 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
9486 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
9487 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
9488 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
9489 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
9490 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
9491 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
9492 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
9493 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
9494 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
9495 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
9496 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
9497 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
9498 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
9499 lfence_insn): New patterns.
9500 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
9501 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
9502
9503 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
9504
9505 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
9506
9507 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9508
9509 * doc/contrib.texi (Contributors): Add Paolo Carlini and
9510 Janis Johnson.
9511 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
9512 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
9513 and CPU instead of cpu.
9514
9515 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
9516
9517 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
9518 variables.
9519 (lang_independent_options): Add -fif-conversion, -fif-conversion2
9520 (rest_of_compilation): Do if conversion only when asked for.
9521 (parse_options_and_default_flags): Set new variables to 1 for -O1
9522 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
9523
9524 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
9525
9526 * i386.c (dbx64_register_map): Fix typo.
9527
9528 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
9529
9530 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
9531 real_one_half, real_bb_freq_max): New static variables.
9532 (debug_profile_bbauxs): Kill.
9533 (process_note_predictions): Kill unused variable.
9534 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
9535 volatile double.
9536 (propagate_freq): Use REAL_ARITHMETICS.
9537 (estimate_bb_frequencies): Likevise; init new static variables.
9538 * Makefile.in (predict.o): Add dependency on real.h
9539
9540 2002-04-28 David S. Miller <davem@redhat.com>
9541
9542 PR target/6500
9543 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
9544 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
9545 several {reads,writes} instead.
9546 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
9547 Define.
9548
9549 2002-04-27 David S. Miller <davem@redhat.com>
9550
9551 PR target/6494
9552 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
9553 of the stack bias.
9554
9555 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
9556 including signal.h and sys/ucontext.h, not needed.
9557
9558 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
9559
9560 * varasm.c (output_constant_def): Correct test for not calling
9561 ENCODE_SECTION_INFO for INTEGER_CST.
9562
9563 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
9564
9565 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
9566 keep most cases as function eval_token.
9567 (eval_token): New function.
9568 (_cpp_parse_expr): Read token here for improved diagnostics.
9569 Don't use op_as_text. Detect bad ':' here.
9570 (reduce): Don't detect bad ':' here.
9571 (op_as_text): Remove.
9572 * cpphash.h (_cpp_test_assertion): Change prototype.
9573 * cpplib.c (_cpp_test_assertion): Change prototype.
9574
9575 2002-04-28 Richard Henderson <rth@redhat.com>
9576
9577 PR c/5154
9578 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
9579 (ggc_mark_rtx_children): New.
9580
9581 2002-04-28 Jakub Jelinek <jakub@redhat.com>
9582
9583 PR target/6496
9584 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
9585 after call peepholes for UltraSPARC.
9586 (call + jump 64-bit peepholes): Remove.
9587
9588 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9589
9590 PR c/6497
9591 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
9592 result as temporary value.
9593
9594 2002-04-28 Jakub Jelinek <jakub@redhat.com>
9595
9596 PR c++/6396
9597 * toplev.c (rest_of_compilation): Only run regrename and copy
9598 propagation if optimizing.
9599
9600 2002-04-28 Jakub Jelinek <jakub@redhat.com>
9601
9602 PR optimization/6475
9603 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
9604 register of REGNO_DECL (i).
9605 * Makefile.in (reload1.o): Add $(TREE_H).
9606
9607 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
9608
9609 * cppexp.c (lex): Update to use state.skip_eval.
9610 (struct op): Remove prio and flags members.
9611 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
9612 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
9613 (LEFT_ASSOC): New macro.
9614 (optab): New table of operator priorities and flags.
9615 (SHIFT): Update.
9616 (_cpp_parse_expr): Clean up logic. Return bool. Use a
9617 malloc-ed parser stack.
9618 (reduce): New; reduce the operator stack.
9619 (_cpp_expand_op_stack): Expand the operator stack as necessary.
9620 * cpphash.h (struct op): Predeclare.
9621 (struct cpp_reader): New members op_stack, op_limit.
9622 (struct lexer_state): New member skip_eval.
9623 (_cpp_parse_expr): Update.
9624 (_cpp_expand_op_stack): New.
9625 * cpplib.c (do_if): Update.
9626 * cppinit.c (cpp_create_reader): Create op stack.
9627 (cpp_destroy): And destroy it.
9628 * cpplib.h (CPP_LAST_CPP_OP): Correct.
9629 (TTYPE_TABLE): Correct.
9630
9631 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9632
9633 PR c/6343
9634 * c-decl.c (duplicate_decls): Call merge_weak.
9635 * c-pragma.c (apply_pragma_weak): Warn about misuse.
9636 * output.h (merge_weak): Prototype merge_weak.
9637 * varasm.c (merge_weak): New function.
9638 (declare_weak): Make sure we don't give an error on VAR_DECLs.
9639 Mark RTL with SYMBOL_REF_WEAK.
9640
9641 2002-04-27 Kurt Garloff <garloff@suse.de>
9642
9643 * tree-inline.c (inlinable_function_p): Improve heuristics
9644 by using a smoother function to cut down allowable inlinable size.
9645 * param.def: Add parameters max-inline-insns-single,
9646 max-inline-slope, min-inline-insns that determine the exact
9647 shape of the above function.
9648 * param.h: Likewise.
9649
9650 2002-04-26 Richard Henderson <rth@redhat.com>
9651
9652 * c-parse.in (malloced_yyss, malloced_yyvs): New.
9653 (yyoverflow): Re-add. Set them.
9654 (free_parser_stacks): New.
9655 * c-common.h: Declare it.
9656 * c-lex.c (c_common_parse_file): Call it.
9657
9658 2002-04-26 Richard Henderson <rth@redhat.com>
9659
9660 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
9661 for fallthru search.
9662
9663 2002-04-26 Eric Christopher <echristo@redhat.com>
9664
9665 PR optimization/3700
9666 * config/mips/mips.c (mips_issue_rate): Define. New function.
9667 (TARGET_SCHED_ISSUE_RATE): Use.
9668
9669 2002-04-25 David S. Miller <davem@redhat.com>
9670
9671 PR target/6422
9672 * reorg.c (optimize_skip): Do not allow exception causing
9673 instructions to be considered for delay slots.
9674 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
9675 (relax_delay_slots): Do not try to consider exception causing
9676 instructions as redundant.
9677
9678 2002-04-26 Richard Henderson <rth@redhat.com>
9679
9680 PR c/5225
9681 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
9682
9683 2002-04-26 Mark Mitchell <mark@codesourcery.com>
9684
9685 PR bootstrap/6445
9686 * config/i386/i386.md (untyped_call): Return the value in a float
9687 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
9688 TARGET_80387.
9689
9690 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
9691
9692 * tree.c (tree_int_cst_lt): Compare constants whose types differ
9693 in unsigned-ness correctly.
9694
9695 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
9696
9697 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
9698 portable runtime model.
9699
9700 2002-04-26 Richard Henderson <rth@redhat.com>
9701
9702 * c-parse.in (yyoverflow): Revert.
9703
9704 2002-04-26 David Edelsohn <edelsohn@gnu.org>
9705 Richard Henderson <rth@redhat.com>
9706
9707 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
9708 result as temporary value.
9709
9710 2002-04-26 Richard Henderson <rth@redhat.com>
9711
9712 PR c/3581
9713 * c-common.c (fix_string_type): Split out of ...
9714 (combine_strings): ... here. Take a varray, not a tree list.
9715 (c_expand_builtin_printf): Use fix_string_type.
9716 * c-common.h: Update decls.
9717 * c-parse.in (string): Remove. Update all uses to use STRING
9718 instead, and not call combine_strings.
9719 (yylexstring): New.
9720 (_yylex): Use it.
9721 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
9722 (build_asm_stmt): Likewise.
9723 * objc/objc-act.c (my_build_string): Use fix_string_type.
9724 (build_objc_string_object): Build varray for combine_strings.
9725
9726 2002-04-26 Bo Thorsen <bo@suse.co.uk>
9727
9728 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
9729 x86-64.
9730
9731 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
9732
9733 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
9734 (HAVE_NO_R_OPERAND): Remove.
9735 (HAVE_VALUE): Remove.
9736 (op_to_prio): Update.
9737 (UNARY): Don't alter flags.
9738 (_cpp_parse_expr): want_value used to indicate whether
9739 a number or unary operator is expected next. Distinguish
9740 unary and binary +/-.
9741 (op_as_text): Update for unary operators.
9742
9743 2002-04-25 Richard Henderson <rth@redhat.com>
9744
9745 PR c/2161
9746 * c-parse.in (yyoverflow): New.
9747
9748 2002-04-25 Richard Henderson <rth@redhat.com>
9749
9750 PR c/2098
9751 * c-common.c (shorten_compare): Simplfy conditions leading to
9752 the generation of a warning.
9753
9754 2002-04-25 Richard Henderson <rth@redhat.com>
9755
9756 PR c/2035
9757 * expmed.c (extract_bit_field): Fall through to generic code rather
9758 than aborting on subreg special case.
9759
9760 2002-04-25 David S. Miller <davem@redhat.com>
9761
9762 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
9763 for DECL being NULL.
9764
9765 2002-04-25 Steve Christiansen <smc@us.ibm.com>
9766
9767 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
9768
9769 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
9770
9771 * c-decl.c (grokdeclarator): Remove outdated ??? note
9772 on invalid declaration of flexible array members.
9773
9774 2002-04-25 Richard Henderson <rth@redhat.com>
9775
9776 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
9777
9778 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
9779
9780 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
9781 needed by the compiler, even if they are used as global regs.
9782
9783 2002-04-25 Matt Hiller <hiller@redhat.com>
9784
9785 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
9786 functions.
9787 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
9788 of the corresponding functions.
9789 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
9790 New prototypes.
9791
9792 2002-04-25 Matt Hiller <hiller@redhat.com>
9793
9794 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
9795
9796 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
9797 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
9798 registers, adjust comment accordingly.
9799 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
9800 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
9801 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
9802 for coprocessor registers.
9803 (ADDITIONAL_REGISTER_NAMES): Include
9804 ALL_COP_ADDITIONAL_REGISTER_NAMES.
9805
9806 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
9807 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
9808 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
9809 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
9810 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
9811
9812 (mips_char_to_class): Adjust comment to include coprocessor
9813 constraint letters.
9814
9815 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
9816 New functions.
9817 (mips_reg_names, mips_regno_to_class): Include coprocessor
9818 information.
9819 (mips_sw_reg_names): Ditto, make non-static.
9820 (mips_move_1word): Handle moves to and from coprocessor registers.
9821 (mips_move_2words): Handle moves to and from coprocessor
9822 registers.
9823 (mips_class_max_nregs, mips_register_move_cost): Handle
9824 coprocessor register classes.
9825 (override_options): Initialize mips_char_to_class and
9826 mips_hard_regno_mode_ok properly for coprocessor registers.
9827
9828 * config/mips/mips.md (movdi_internal, movdi_internal2,
9829 movsi_internal1, movsi_internal2): Add constraint-sets for
9830 coprocessor registers.
9831 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
9832 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
9833 isn't mips.
9834 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
9835 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
9836 isn't mips.
9837 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
9838 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
9839 isn't mips.
9840 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
9841 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
9842 isn't mips.
9843
9844 * doc/tm.texi: Document feature.
9845
9846 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
9847
9848 * integrate.c (function_attribute_inlinable_p): Simplify.
9849 Check the table pointer is not NULL.
9850
9851 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
9852
9853 * doc/c-tree.texi: Fix typo in introduction.
9854
9855 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
9856
9857 * c-common.h (c_common_parse_file): Update.
9858 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9859 * c-lex.c (YYDEBUG): Get from c-lex.h.
9860 (c_common_parse_file): Update.
9861 * c-lex.h (YYDEBUG, yydebug): New.
9862 * c-parse.in (YYDEBUG): Get from c-lex.h.
9863 (c_set_yydebug): Remove.
9864 * c-tree.h (c_set_yydebug): Remove.
9865 * langhooks-def.h (lhd_do_nothing_i): New.
9866 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
9867 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
9868 * langhooks.c (lhd_do_nothing_i): New.
9869 (lhd_set_yydebug): Remove.
9870 * langhooks.h (struct lang_hooks): Update.
9871 * toplev.c (set_yydebug): New.
9872 (compile_file): Update call to parse_file hook.
9873 (decode_d_option): Update.
9874 objc:
9875 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9876
9877 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
9878
9879 * loop.c (load_mems): Don't change the interface of called functions.
9880
9881 * calls.c (expand_call): Take current_function_pretend_args_size
9882 into account when setting argblock for sibcalls.
9883
9884 2002-04-24 Matt Hiller <hiller@redhat.com>
9885
9886 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
9887 * c-lex.c: Ditto.
9888
9889 * cpplex.c (skip_line_comment): Process comment one multibyte
9890 character at a time rather than one char at a time, if
9891 appropriate.
9892 (parse_string): Process string one multibyte character at a time
9893 rather than one char at a time, if appropriate.
9894 * c-lex.c (lex_string): Lex and copy multibyte strings
9895 appropriately.
9896 * cpplib.h (cppchar_t): Change to unsigned.
9897
9898 2002-04-24 Richard Henderson <rth@redhat.com>
9899
9900 PR c/3467
9901 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
9902 for c99.
9903
9904 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
9905
9906 * sh.c (sh_va_arg): If argument was passed by reference,
9907 dereference the pointer.
9908
9909 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9910
9911 * sh.md (divsi3_i4_media): Use match_operand for input values
9912 rather than hard registers.
9913 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
9914 unnecessarily through hard registers. Keep copies of pseudo
9915 registers outside of the libcall sequence.
9916
9917 * sh.md (casesi_shift_media): Add modes.
9918
9919 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
9920 values in memory.
9921
9922 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
9923
9924 * attribs.c (c_common_attribute_table): Move table and handlers
9925 to c-common.c.
9926 (format_attribute_table, lang_attribute_table,
9927 lang_attribute_common): Remove.
9928 (init_attributes): Replace NULL pointers with pointers to the
9929 empty table.
9930 (handle_packed_attribute, handle_nocommon_attribute,
9931 handle_common_attribute, handle_noreturn_attribute,
9932 handle_noinline_attribute, handle_always_inline_attribute,
9933 handle_used_attribute, handle_unused_attribute,
9934 handle_const_attribute, handle_transparent_union_attribute,
9935 handle_constructor_attribute, handle_destructor_attribute,
9936 handle_mode_attribute, handle_section_attribute,
9937 handle_aligned_attribute, handle_weak_attribute,
9938 handle_alias_attribute, handle_visibility_attribute,
9939 handle_no_instrument_function_attribute, handle_malloc_attribute,
9940 handle_no_limit_stack_attribute, handle_pure_attribute,
9941 handle_deprecated_attribute, handle_vector_size_attribute,
9942 vector_size_helper): Move to c-common.c.
9943 * c-common.c (c_common_attribute_table,
9944 handle_packed_attribute, handle_nocommon_attribute,
9945 handle_common_attribute, handle_noreturn_attribute,
9946 handle_noinline_attribute, handle_always_inline_attribute,
9947 handle_used_attribute, handle_unused_attribute,
9948 handle_const_attribute, handle_transparent_union_attribute,
9949 handle_constructor_attribute, handle_destructor_attribute,
9950 handle_mode_attribute, handle_section_attribute,
9951 handle_aligned_attribute, handle_weak_attribute,
9952 handle_alias_attribute, handle_visibility_attribute,
9953 handle_no_instrument_function_attribute, handle_malloc_attribute,
9954 handle_no_limit_stack_attribute, handle_pure_attribute,
9955 handle_deprecated_attribute, handle_vector_size_attribute,
9956 vector_size_helper): Move from attribs.c.
9957 * c-common.h (c_common_attribute_table,
9958 c_common_format_attribute_table): New.
9959 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9960 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9961 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
9962 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
9963 (LANG_HOOKS_INITIALIZER): Update.
9964 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
9965 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
9966 * target.h: Update comment.
9967 * tree.c (default_target_attribute_table): Remove.
9968 * tree.h (default_target_attribute_table, format_attribute_table,
9969 lang_attribute_table, lang_attribute_common): Remove.
9970 objc:
9971 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9972 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9973
9974 2002-04-24 Jason Merrill <jason@redhat.com>
9975
9976 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
9977 * dwarf2out.c (dwarf_attr_name): Support it.
9978 (gen_array_type_die): Emit it.
9979 (lookup_type_die): No special handling for VECTOR_TYPE.
9980 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
9981
9982 2002-04-24 Richard Henderson <rth@redhat.com>
9983
9984 * config/mips/mips.md (movdi_usd): Renumber.
9985
9986 2002-04-24 David S. Miller <davem@redhat.com>
9987
9988 PR target/6420
9989 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
9990 32-bit Sparc and current_function_returns_struct is true.
9991
9992 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
9993
9994 * loop.c (canonicalize_condition): Use gen_int_mode.
9995
9996 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
9997
9998 * config/rs6000/altivec.h: Cleanup file. Add non individual
9999 variants.
10000 (vec_vaddubm): New.
10001 (vec_vadduhm): New.
10002 (vec_vadduwm): New.
10003 (vec_vaddfp): New.
10004 (vec_vaddcuw): New.
10005 (vec_vaddubs): New.
10006 (vec_vaddsbs): New.
10007 (vec_vadduhs): New.
10008 (vec_vadduws): New.
10009 (vec_vaddsws): New.
10010 (vec_vand): New.
10011 (vec_vandc): New.
10012 (vec_vavgub): New.
10013 (vec_vavgsb): New.
10014 (vec_vavguh): New.
10015 (vec_vavgsh): New.
10016 (vec_vavguw): New.
10017 (vec_vavgsw): New.
10018 (vec_vrfip): New.
10019 (vec_vcmpbfp): New.
10020 (vec_vcmpequb): New.
10021 (vec_vcmpequh): New.
10022 (vec_vcmpequw): New.
10023 (vec_vcmpeqfp): New.
10024 (vec_vcmpgefp): New.
10025 (vec_vcmpgtub): New.
10026 (vec_vcmpgtsb): New.
10027 (vec_vcmpgtuh): New.
10028 (vec_vcmpgtsh): New.
10029 (vec_vcmpgtuw): New.
10030 (vec_vcmpgtsw): New.
10031 (vec_vcmpgtfp): New.
10032 (vec_vcmpgefp): New.
10033 (vec_vcfux): New.
10034 (vec_vcfsx): New.
10035 (vec_vctsxs): New.
10036 (vec_vctuxs): New.
10037 (vec_vexptefp): New.
10038 (vec_vrfim): New.
10039 (vec_lvx): New.
10040 (vec_lvebx): New.
10041 (vec_lvehx): New.
10042 (vec_lde): Add vector float variant.
10043 (vec_lvewx): New.
10044 (vec_lvxl): New.
10045 (vec_vlogefp): New.
10046 (vec_vmaddfp): New.
10047 (vec_vmhaddshs): New.
10048 (vec_vmaxub): New.
10049 (vec_vmaxsb): New.
10050 (vec_vmaxuh): New.
10051 (vec_vmaxsh): New.
10052 (vec_vmaxuw): New.
10053 (vec_vmaxsw): New.
10054 (vec_vmaxsw): New.
10055 (vec_vmaxfp): New.
10056 (vec_vmrghb): New.
10057 (vec_vmrghh): New.
10058 (vec_vmrghw): New.
10059 (vec_vmrglb): New.
10060 (vec_vmrglh): New.
10061 (vec_vmrglw): New.
10062 (vec_vminub): New.
10063 (vec_vminsb): New.
10064 (vec_vminuh): New.
10065 (vec_vminsh): New.
10066 (vec_vminuw): New.
10067 (vec_vminsw): New.
10068 (vec_vminfp): New.
10069 (vec_vmladduhm): New.
10070 (vec_vmhraddshs): New.
10071 (vec_msumubm): New.
10072 (vec_vmsummbm): New.
10073 (vec_vmsumuhm): New.
10074 (vec_vmsumshm): New.
10075 (vec_vmsumuhs): New.
10076 (vec_vmsumshs): New.
10077 (vec_vmuleub): New.
10078 (vec_vmulesb): New.
10079 (vec_vmuleuh): New.
10080 (vec_vmulesh): New.
10081 (vec_vmuloub): New.
10082 (vec_mulosb): New.
10083 (vec_vmulouh): New.
10084 (vec_vmulosh): New.
10085 (vec_vnmsubfp): New.
10086 (vec_vnor): New.
10087 (vec_vor): New.
10088 (vec_vpkuhum): New.
10089 (vec_vpkuwum): New.
10090 (vec_vpkpx): New.
10091 (vec_vpkuhus): New.
10092 (vec_vpkshss): New.
10093 (vec_vpkuwus): New.
10094 (vec_vpkswss): New.
10095 (vec_vpkshus): New.
10096 (vec_vpkswus): New.
10097 (vec_vperm): New.
10098 (vec_vrefp): New.
10099 (vec_vrlb): New.
10100 (vec_vrlh): New.
10101 (vec_vrlw): New.
10102 (vec_vrfin): New.
10103 (vec_vrsqrtefp): New.
10104 (vec_vsel): New.
10105 (vec_vslb): New.
10106 (vec_vslh): New.
10107 (vec_vslw): New.
10108 (vec_vsldoi): New.
10109 (vec_vsl): New.
10110 (vec_vslo): New.
10111 (vec_vspltb): New.
10112 (vec_vsplth): New.
10113 (vec_vspltw): New.
10114 (vec_vspltisb): New.
10115 (vec_vspltish): New.
10116 (vec_vspltisw): New.
10117 (vec_vsrb): New.
10118 (vec_vsrh): New.
10119 (vec_vsrw): New.
10120 (vec_vsrab): New.
10121 (vec_vsrah): New.
10122 (vec_vsraw): New.
10123 (vec_vsr): New.
10124 (vec_vsro): New.
10125 (vec_stvx): New.
10126 (vec_stvebx): New.
10127 (vec_stvehx): New.
10128 (vec_stvewx): New.
10129 (vec_stvxl): New.
10130 (vec_vsububm): New.
10131 (vec_vsubuhm): New.
10132 (vec_vsubuwm): New.
10133 (vec_vsubfp): New.
10134 (vec_vsubcuw): New.
10135 (vec_vsububs): New.
10136 (vec_vsubsbs): New.
10137 (vec_vsubuhs): New.
10138 (vec_vsubshs): New.
10139 (vec_vsubuws): New.
10140 (vec_vsubsws): New.
10141 (vec_vsum4ubs): New.
10142 (vec_vsum4sbs): New.
10143 (vec_vsum4shs): New.
10144 (vec_vsum2sws): New.
10145 (vec_vsumsws): New.
10146 (vec_vrfiz): New.
10147 (vec_vupkhsb): New.
10148 (vec_vupkhpx): New.
10149 (vec_vupkhsh): New.
10150 (vec_vupklsb): New.
10151 (vec_vupklpx): New.
10152 (vec_vupklsh): New.
10153 (vec_vxor): New.
10154
10155 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
10156
10157 PR c/5430
10158 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
10159 added literals from substracted literals.
10160 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
10161 (fold) [associate]: Preserve MINUS_EXPR if needed.
10162
10163 2002-04-23 Zack Weinberg <zack@codesourcery.com>
10164
10165 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
10166 are obsoleted.
10167
10168 2002-04-23 Tom Tromey <tromey@redhat.com>
10169
10170 * gcc.c: Added --resource. For PR java/6314.
10171
10172 2002-04-23 David O'Brien <obrien@FreeBSD.org>
10173
10174 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
10175 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
10176 these libraries.
10177
10178 2002-04-23 David O'Brien <obrien@FreeBSD.org>
10179
10180 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
10181
10182 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
10183
10184 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
10185 workaround.
10186 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
10187 (ix86_expand_clrstr): Fix typo.
10188 * loop.c (gen_load_of_final_value): New.
10189 (loop_givs_rescan, strength_reduce, check_dbra_loop):
10190 Use it.
10191
10192 2002-04-23 Roger Sayle <roger@eyesopen.com>
10193
10194 * builtins.c (builtin_memset_gen_str): New function.
10195 (expand_builtin_memset): Optimize the case of constant length, but
10196 unknown value.
10197
10198 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
10199
10200 * config/rs6000/altivec.h (vec_step): Remove extraneous
10201 parentheses.
10202 (vec_ctu): Cast return.
10203
10204 2002-04-23 Alan Modra <amodra@bigpond.net.au>
10205
10206 PR target/6413
10207 * function.h: (struct function): Add profile_label_no field.
10208 (current_function_profile_label_no): Define.
10209 * function.c: (profile_label_no): New static var.
10210 (expand_function_start): Increment it, and copy to
10211 current_function_profile_label_no.
10212 * output.h (profile_label_no): Delete.
10213 * final.c (profile_label_no): Delete.
10214 (profile_function): Use current_function_profile_label_no.
10215 (final_end_function): Don't increment profile_label_no here.
10216 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
10217 profile_label_no with current_function_profile_label_no.
10218 * config/pa/pa.c (current_function_number): Delete.
10219 (pa_output_function_prologue): Don't output profile label here.
10220 (hppa_profile_hook): Use label_no param rather than
10221 current_function_number.
10222 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
10223 * config/pa/pa.h: .. here.
10224 (FUNCTION_PROFILER): Output profile label here.
10225
10226 2002-04-22 Eric Christopher <echristo@redhat.com>
10227
10228 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
10229 patch of 2002-04-09 due to binutils issues.
10230 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
10231
10232 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
10233
10234 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
10235 constraint to 'o' for m=r and r=m alternatives.
10236 ("*movv8hi_internal1"): Same.
10237 ("*movv16qi_internal1"): Same.
10238 ("*movv4sf_internal1"): Same.
10239
10240 2002-04-22 Janis Johnson <janis187@us.ibm.com>
10241
10242 * rtl.h (RTX_FLAG): New macro.
10243 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
10244 * final.c (alter_subreg): Use macro to access rtx flag.
10245 * integrate.c (copy_rtx_and_substitute): Use new access macro.
10246 * print-rtl.c (print_rtx): Use new access macro.
10247
10248 * cse.c (insert): Check rtx code before accessing flag.
10249
10250 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
10251 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
10252 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
10253 convert_const_symbol_ref, make_canonical, make_alternative_compare,
10254 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
10255 simplify_test_exp, optimize_attrs, simplify_by_exploding,
10256 find_and_mark_used_attributes, unmark_used_attributes,
10257 add_values_to_cover, simplify_with_current_value,
10258 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
10259 copy_rtx_unchanging, main): Use new access macros.
10260
10261 2002-04-22 Tom Rix <trix@redhat.com>
10262
10263 * expmed.c (init_expmed): Generate shifted constant once.
10264
10265 2002-04-22 Zack Weinberg <zack@codesourcery.com>
10266
10267 * c-lex.c (lex_charconst): Call convert to get constant in
10268 proper type; don't just smash the type field.
10269 Fixes PR c/6300.
10270
10271 * config.gcc: Add list of obsolete configurations. Disallow
10272 building these without --enable-obsolete.
10273 * doc/install.texi: Document --enable-obsolete and obsoletion
10274 policy. Mention obsoletion of individual targets in
10275 appropriate places.
10276
10277 2002-04-22 Richard Henderson <rth@redhat.com>
10278
10279 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
10280
10281 2002-04-22 Mark Mitchell <mark@codesourcery.com>
10282
10283 PR f/6138.
10284 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
10285 (walk_fixup_memory_subreg): Likewise.
10286 (fixup_var_refs_insn): Adjust accordingly.
10287 (fixup_var_refs_1): Likewise.
10288
10289 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
10290
10291 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
10292 LIBPATH_ARCH64_SPEC): Define.
10293 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
10294 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
10295 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
10296 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
10297
10298 2002-04-22 Joel Sherrill <joel@OARcorp.com>
10299
10300 * gthr-rtems.h: Correct prototypes to remove warnings.
10301
10302 2002-04-22 Richard Henderson <rth@redhat.com>
10303
10304 PR c/6344
10305 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
10306
10307 * gcse.c (free_insn_expr_list_list): New.
10308 (clear_modify_mem_tables): Use it. Fix bit set usage.
10309 (canon_list_insert): Use EXPR_LISTs for expressions.
10310 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
10311
10312 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
10313
10314 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
10315 file change and include code to _cpp_pop_buffer.
10316 * cpphash.h (struct pending_option): Predeclare.
10317 (struct cpp_reader): New member next_include_file.
10318 (_cpp_pop_file_buffer): Update.
10319 (_cpp_push_next_buffer): Update, rename.
10320 * cppinit.c (cpp_destroy): Free include chain and pending here.
10321 (cpp_finish_options): Simplify.
10322 (_cpp_push_next_buffer): Rename and clean up.
10323 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
10324 Clarify.
10325 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
10326
10327 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
10328
10329 * config/rs6000/altivec.h (vec_xor): Add variant for both args
10330 being vector signed int.
10331 (vec_andc): Same.
10332 (vec_xor): Add variant for both args being vector signed char.
10333 Remove redundant variant.
10334 (vec_andc): Same.
10335
10336 2002-04-21 David S. Miller <davem@redhat.com>
10337
10338 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
10339 compare mode in output RTL.
10340
10341 2002-04-22 David Edelsohn <edelsohn@gnu.org>
10342
10343 * config/rs6000/rs6000.c (rs6000_override_options): Correct
10344 style and formatting of previous patch.
10345
10346 2002-04-22 Alan Modra <amodra@bigpond.net.au>
10347
10348 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
10349 flag_pic for ABI_AIX.
10350
10351 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
10352
10353 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
10354 * cppfiles.c (read_include_file): Similarly.
10355 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
10356 uxstrdup ustrchr, ufputs): Similarly.
10357 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
10358 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
10359 cpp_ideq, parse_identifier, parse_number): Similarly.
10360 * cpplib.c (struct directive, dequote_string, D, run_directive,
10361 cpp_push_buffer): Similarly.
10362 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
10363 _cpp_create_definition, check_trad_stringification,
10364 cpp_macro_definition): Similarly.
10365
10366 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
10367
10368 * cppmacro.c (funlike_invocation_p): Don't step back
10369 over CPP_EOF.
10370
10371 2002-04-21 David Edelsohn <edelsohn@gnu.org>
10372
10373 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
10374 labelno.
10375
10376 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
10377
10378 * doc/invoke.texi: Remove Chill references.
10379 * doc/gcc.texi: Update last modified date.
10380
10381 2002-04-20 Kazu Hirata <kazu@hxi.com>
10382
10383 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
10384 push and pop. Replace add.l with add.w.
10385
10386 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
10387
10388 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
10389 multiply instructions for H8/300H case.
10390
10391 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
10392
10393 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
10394 Bum three instructions from each routine.
10395
10396 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
10397
10398 * Makefile.in: Update.
10399 * decl.c (push_c_function_context, pop_c_function_context,
10400 mark_c_function_context): Rename for consistency.
10401 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
10402 * c-tree.h (push_c_function_context, pop_c_function_context,
10403 mark_c_function_context): Rename for consistency.
10404 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10405 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10406 * function.c (init_lang_status, save_lang_status,
10407 restore_lang_status, mark_lang_status, free_lang_status):
10408 Move to langhooks.h.
10409 (push_function_context_to, pop_function_context_from,
10410 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
10411 Update.
10412 * function.h (init_lang_status, save_lang_status,
10413 restore_lang_status, mark_lang_status, free_lang_status):
10414 Move to langhooks.h.
10415 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
10416 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10417 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
10418 LANG_HOOKS_FUNCTION_INITIALIZER): New.
10419 (LANG_HOOKS_INITIALIZER): Update.
10420 (lhd_do_nothing_f): New.
10421 * langhooks.h (struct lang_hooks_for_functions): New.
10422 (struct lang_hooks): New hooks.
10423 * langhooks.c (lhd_do_nothing_f): New.
10424 objc:
10425 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10426 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10427
10428 2002-04-19 David S. Miller <davem@redhat.com>
10429
10430 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
10431 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
10432
10433 2002-04-19 Jakub Jelinek <jakub@redhat.com>
10434
10435 PR optimization/3756
10436 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
10437 x = ((int) y < 0) ? cst1 : cst2.
10438
10439 2002-04-19 Jakub Jelinek <jakub@redhat.com>
10440
10441 PR c/6358
10442 * function.c: Reapply patch for c/6358.
10443 (expand_function_end): Copy decl_rtl's mode, not
10444 current_function_return_rtx mode.
10445
10446 2002-04-19 Joel Sherrill <joel@OARcorp.com>
10447
10448 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
10449 targets.
10450
10451 2002-04-19 Tom Tromey <tromey@redhat.com>
10452
10453 * doc/install.texi (Specific): Update status of Solaris 2.8.
10454 For PR libgcj/6158.
10455
10456 2002-04-19 Andreas Schwab <schwab@suse.de>
10457
10458 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
10459 (PUT_REAL): Restore old definition.
10460
10461 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
10462 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10463
10464 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
10465 binutils 2.11.2 and higher generate smaller binaries than Sun's
10466 native tools.
10467
10468 2002-04-19 Mark Mitchell <mark@codesourcery.com>
10469
10470 PR c++/6352
10471 * toplev.c (rest_of_compilation): Do not defer functions for which
10472 TREE_SYMBOL_REFERENCED has already been set.
10473
10474 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
10475
10476 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
10477 alternative.
10478
10479 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
10480
10481 * builtins.c: Include langhooks.h.
10482 (lang_type_promotes_to): Remove.
10483 (expand_builtin_va_arg): Use new hook.
10484 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
10485 (simple_type_promotes_to): Move to c-typeck.c.
10486 * c-common.h (simple_type_promotes_to): Remove.
10487 * c-decl.c (duplicate_decls, grokdeclarator): Update.
10488 * c-format.c: Include langhooks.h.
10489 (check_format_types): Update.
10490 * c-tree.h (c_type_promotes_to): New.
10491 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
10492 (type_lists_compatible_p): Update.
10493 * langhooks-def.h (lhd_type_promotes_to): New.
10494 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
10495 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10496 * langhooks.c (lhd_type_promotes_to): New.
10497 * langhooks.h (struct lang_hooks_for_types): New hook.
10498 * tree.h (lang_type_promotes_to): Remove.
10499 objc:
10500 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
10501
10502 2002-04-18 Richard Henderson <rth@redhat.com>
10503
10504 * function.c: Revert patch for c/6358.
10505
10506 2002-04-18 Richard Henderson <rth@redhat.com>
10507
10508 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
10509 blocks. Handle multiple references to the TRAP block. Handle
10510 non-adjacent THEN and OTHER blocks.
10511
10512 2002-04-18 Richard Henderson <rth@redhat.com>
10513
10514 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
10515 crash with no type for by-mode libcalls.
10516
10517 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
10518
10519 2002-04-18 Bob Wilson <bob.wilson@acm.org>
10520
10521 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
10522 __xtensa_nonlocal_goto): Use a syscall instructions to flush
10523 the register windows.
10524
10525 2002-04-18 Zack Weinberg <zack@codesourcery.com>
10526
10527 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
10528 appropriate. Document need for extended precision even when
10529 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
10530 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
10531 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
10532 instead of relying on later syntax error when REAL_WIDTH > 5.
10533 * real.c: Define NE based only on whether or not we have a
10534 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
10535 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
10536 define GET_REAL and PUT_REAL as simple memcpy operations; no
10537 need to byteswap or round.
10538 Use #error instead of #ifdef-ing out the entire file, for
10539 prompt error detection.
10540
10541 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
10542
10543 2002-04-18 David S. Miller <davem@redhat.com>
10544
10545 * config/sparc/sparc.h (BRANCH_COST): Define.
10546
10547 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
10548 does it.
10549
10550 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
10551
10552 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
10553 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
10554 propagate_block calls after relaxation loop using new variable
10555 stabilized_prop_flags.
10556
10557 2002-04-18 Richard Henderson <rth@redhat.com>
10558
10559 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
10560 (ia64_va_arg): Expect variable sized types by reference.
10561 * config/ia64/ia64-protos.h: Update.
10562 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
10563 ia64_function_arg_pass_by_reference.
10564
10565 2002-04-18 Richard Henderson <rth@redhat.com>
10566
10567 * ifcvt.c: Include except.h.
10568 (block_has_only_trap): Break out from find_cond_trap.
10569 (find_cond_trap): Use it. Always delete the trap block.
10570 (merge_if_block): Allow then block null. Be less simplistic about
10571 what insns can end a block.
10572 * Makefile.in (ifcvt.o): Depend on except.h.
10573
10574 * config/ia64/ia64.md (trap, conditional_trap): New.
10575
10576 2002-04-18 Jakub Jelinek <jakub@redhat.com>
10577
10578 PR c/6358
10579 * function.c (assign_parms): Assign hard current_function_return_rtx
10580 register here...
10581 (expand_function_end): ...not here.
10582
10583 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
10584
10585 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10586 * c-tree.h (c_incomplete_type_error): New.
10587 * c-typeck.c (require_complete_type, build_component_ref): Update.
10588 (incomplete_type_error): Rename.
10589 * langhooks-def.h (lhd_incomplete_type_error): New.
10590 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
10591 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10592 * langhooks.c (lhd_incomplete_type_error): New.
10593 * langhooks.h (struct lang_hooks_for_types): New hook.
10594 * tree.c (size_in_bytes): Use new hook.
10595 * tree.h (incomplete_type_error): Remove.
10596 objc:
10597 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10598
10599 2002-04-18 Zack Weinberg <zack@codesourcery.com>
10600
10601 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
10602 TARGET_FLOAT_FORMAT blocks.
10603
10604 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10605
10606 * doc/install.texi (Downloading the source): Do not mention Chill
10607 any longer, but mention Ada.
10608 (Configuration): Do not mention Chill any longer.
10609
10610 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
10611
10612 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
10613
10614 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
10615
10616 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
10617 in last patch.
10618
10619 2002-04-18 Jakub Jelinek <jakub@redhat.com>
10620
10621 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
10622 instead of unsigned_type.
10623
10624 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
10625
10626 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
10627 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
10628 later.
10629
10630 2002-04-18 Bernd Schmidt <bernds@redhat.com>
10631
10632 * attribs.c (vector_type_node_list): New static variable.
10633 (handle_vector_size_attribute): Use it to avoid generating a
10634 new type node each time we are called.
10635
10636 * combine.c (subst): Avoid trying to make a vector mode subreg of
10637 an integer constant.
10638 (gen_lowpart_for_combine): Likewise.
10639
10640 2002-04-18 Roger Sayle <roger@eyesopen.com>
10641 Jakub Jelinek <jakub@redhat.com>
10642
10643 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
10644 for integer constant c (if x has unsigned type or sign bit is not
10645 set in c). This folds the zero/sign extension into the bit-wise and
10646 operation.
10647
10648 2002-04-18 Jakub Jelinek <jakub@redhat.com>
10649
10650 PR middle-end/6205
10651 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
10652 otherwise xorps.
10653
10654 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
10655
10656 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
10657
10658 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
10659
10660 * gcc.c (read_specs): Detect and fail if an attempt is made to
10661 rename a spec string to an already existing string.
10662
10663 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
10664
10665 * config/s390/s390.c (legitimize_pic_address): Do not generate
10666 illegal address constant without CONST.
10667
10668 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10669
10670 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
10671 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10672
10673 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
10674
10675 PR optimization/6305
10676 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
10677 to make sure previous reloads are taken into account. Generate
10678 better code if one operand is an in-range immediate constant.
10679
10680 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
10681
10682 * doc/install.texi (Building): libgcj requires GNU make.
10683
10684 2002-04-17 Jakub Jelinek <jakub@redhat.com>
10685
10686 PR bootstrap/6315
10687 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
10688 even if hard quad and register is not floating.
10689 (movtf reg<-mem split): Disallow splitting if hard quad and
10690 register is floating.
10691 (movtf mem<-reg split): Likewise.
10692 * config/sparc/sparc.c (fp_register_operand): New predicate.
10693 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
10694
10695 2002-04-17 Zack Weinberg <zack@codesourcery.com>
10696
10697 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
10698 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
10699 (unprotoize.o): Ditto. Build from protoize.c. Define
10700 UNPROTOIZE on command line.
10701 * protoize.c: Include cppdefault.h. Delete include_defaults.
10702 (in_system_include_dir): Use cpp_include_defaults (defined in
10703 cppdefault.o).
10704 * unprotoize.c: Delete file.
10705
10706 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
10707
10708 * config/rs6000/altivec.h (vec_ld): Add array variants.
10709 (vec_lde): Same.
10710 (vec_ldl): Same.
10711
10712 2002-04-17 Alan Matsuoka <alanm@redhat.com>
10713 Aldy Hernandez <aldyh@redhat.com>
10714
10715 * config/rs6000/altivec.h: Define __ALTIVEC__.
10716 (bool): New.
10717 (__pixel): New.
10718 (pixel): New.
10719 (vec_cfux): New.
10720 (vec_vmaddfp): New.
10721 (vec_vsldoi): New.
10722 Add parentheses to all macro arguments.
10723
10724 2002-04-16 Richard Henderson <rth@redhat.com>
10725
10726 PR c++/6320
10727 * except.c (remove_eh_handler): Insert inner regions at beginning
10728 of sibling chain. Refactor expressions.
10729
10730 2002-04-16 Richard Henderson <rth@redhat.com>
10731
10732 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
10733 * config/sparc/sol2-gas-bi.h: New file.
10734 * config.gcc (sparc*-solaris): Add it as needed.
10735 * configure.in (AS_SPARC64_FLAG): Remove check.
10736 * config.in, configure: Regenerate.
10737
10738 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
10739
10740 2002-04-16 Richard Henderson <rth@redhat.com>
10741
10742 * config/mips/mips.c (override_options): Don't override N32 for
10743 a 64-bit ISA.
10744
10745 PR 6202
10746 * config/mips/mips.md (can_delay): Split out of existing define_delays.
10747 (HILO_delay): Set can_delay false.
10748
10749 2002-04-16 Dale Johannesen <dalej@apple.com>
10750
10751 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
10752 instruction addresses.
10753 (rs6000_output_function_epilogue): Likewise.
10754
10755 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
10756
10757 * c-parse.in (poplevel, compstmt_start,
10758 compstmt_primary_start): Add ending ';', in accordance
10759 with POSIX.
10760
10761 2002-04-16 Richard Henderson <rth@redhat.com>
10762
10763 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
10764 Adjust tm_file order to get TARGET_DEFAULT set properly.
10765 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
10766 * doc/install.texi (sparc-solaris): Update.
10767
10768 2002-04-16 Dale Johannesen <dalej@apple.com>
10769
10770 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
10771 comparison operands do not match each other or if modes of
10772 conditions do not match result.
10773
10774 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
10775
10776 PR target/6305
10777 * config/s390/s390.md (mulsidi3): Set both subregs of the
10778 multiword register.
10779
10780 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
10781
10782 * config/rs6000/altivec.h (vec_addc): Type check.
10783
10784 2002-04-16 Jakub Jelinek <jakub@redhat.com>
10785
10786 PR middle-end/6279
10787 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
10788
10789 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
10790
10791 2002-04-15 Richard Henderson <rth@redhat.com>
10792
10793 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
10794 call_really_used_regs too.
10795
10796 2002-04-15 Richard Henderson <rth@redhat.com>
10797
10798 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
10799
10800 2002-04-15 David S. Miller <davem@redhat.com>
10801
10802 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
10803 as being CLOBBERed.
10804
10805 2002-04-16 Jakub Jelinek <jakub@redhat.com>
10806
10807 PR c/6290
10808 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
10809 CONST_VECTOR is { 0, ... 0 }.
10810
10811 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
10812
10813 * doc/install.texi (Installing GCC: Configuration): Clarify
10814 the only supported ways to configure gcc.
10815
10816 2002-04-15 Roland McGrath <roland@frob.com>
10817
10818 * config.gcc (alpha*-*-gnu*): New target configuration.
10819 * config/alpha/gnu.h: New file for it.
10820 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
10821
10822 2002-04-16 Mark Mitchell <mark@codesourcery.com>
10823
10824 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
10825 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
10826 * tree.h (expand_start_stmt_expr): Update prototype.
10827 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
10828 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
10829 on the STMT_EXPR created for the inline function.
10830
10831 2002-04-15 Richard Henderson <rth@redhat.com>
10832
10833 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
10834 config/i386/linux-aout.h, config/i386/linux-oldld.h,
10835 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
10836 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
10837 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
10838 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
10839 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
10840 Define __gnu_linux__, not gnu_linux.
10841 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
10842
10843 2002-04-15 Mark Mitchell <mark@codesourcery.com>
10844
10845 Remove Chill front end.
10846 * gcc.c (default_compilers): Remove Chill entries.
10847 * ch: Remove directory.
10848 * doc/frontends.texi: Remove information about Chill.
10849 * doc/sourcebuild.texi: Likewise.
10850 * doc/standards.texi: Likewise.
10851
10852 2002-04-15 Douglas B Rupp <rupp@gnat.com>
10853
10854 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
10855 (LONGLONG_STANDALONE): Define.
10856
10857 2002-04-15 David S. Miller <davem@redhat.com>
10858
10859 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
10860 Call emit_library_call with LCT_NORMAL.
10861 (sparc_initialize_trampoline): Use LCT_foo instead of
10862 magic constant in emit_library_call invocations.
10863 (sparc64_initialize_trampoline): Likewise.
10864 (sparc_profile_hook): Likewise.
10865 * config/sparc/sparc.md: Likewise.
10866
10867 * config/sparc/sparc.c (sparc_extra_constraint_check):
10868 Fix type of argument 'c'.
10869 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
10870 Likewise.
10871
10872 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
10873
10874 * diagnostic.h (output_buffer_state): Redefine.
10875 (output_format_decoder): New macro.
10876 (output_prefixing_rule): Likewise.
10877 (output_line_cutoff): Likewise.
10878 (diagnostic_format_decoder): Adjust.
10879 (diagnostic_prefixing_rule): Likewise.
10880 (diagnostic_line_cutoff): Likewise.
10881 (diagnostic_state): Likewise.
10882 (diagnostic_kind_count): Likewise.
10883 (diagnostic_buffer): Now a macro.
10884
10885 * diagnostic.c (diagnostic_buffer): Remove definition.
10886 (output_is_line_wrapping): Adjust.
10887 (set_real_maximum_length): Likewise.
10888 (output_set_maximum_length): Likewise.
10889 (init_output_buffer): Likewise.
10890 (lhd_print_error_function): Likewise.
10891 (output_do_verbatim): Likewise.
10892
10893 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
10894
10895 * cpperror.c (print_location): Don't print include chain
10896 if line == 0.
10897 (cpp_begin_message): Update to use DL_ macros.
10898 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10899 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10900 cpp_notice, cpp_notice_from_errno): Remove.
10901 (cpp_error, cpp_error_with_line): Update to take a diagnostic
10902 level.
10903 (cpp_errno): New.
10904 * cppexp.c (CPP_ICE): Remove.
10905 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
10906 lex, integer_overflow, _cpp_parse_expr): Update.
10907 * cppfiles.c (read_include_file, find_include_file,
10908 handle_missing_header, _cpp_read_file, remap_filename): Update.
10909 * cpphash.h (enum error_type): Remove.
10910 (_cpp_begin_message): Update.
10911 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
10912 cpp_handle_option, cpp_post_options): Update.
10913 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
10914 skip_whitespace, parse_identifier, parse_slow, parse_string,
10915 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
10916 cpp_interpret_charconst): Update.
10917 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
10918 lex_macro_node, do_undef, glue_header_name, parse_include,
10919 do_include_common, read_flag, do_line, do_linemarker, do_ident,
10920 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
10921 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
10922 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
10923 _cpp_pop_buffer, do_diagnostic): Update.
10924 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
10925 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
10926 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10927 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10928 cpp_notice, cpp_notice_from_errno): Remove.
10929 (cpp_error, cpp_error_with_line): Update to take a diagnostic
10930 level.
10931 (cpp_errno): New.
10932 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
10933 collect_args, enter_macro_context, save_parameter, parse_params,
10934 _cpp_create_definition, check_trad_stringification,
10935 cpp_macro_definition): Update.
10936 * cppmain.c (cpp_preprocess_file): Update.
10937 * fix-header.c (read_scan_file): Update.
10938
10939 2002-04-14 Andreas Schwab <schwab@suse.de>
10940
10941 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
10942
10943 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10944
10945 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
10946
10947 2002-04-13 Mark Mitchell <mark@codesourcery.com>
10948
10949 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
10950 not gnu_hurd.
10951
10952 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
10953
10954 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
10955
10956 2002-04-13 Joel Sherrill <joel@OARcorp.com>
10957
10958 * config/sparc/t-elf: Enable v8 multilibs. Impacts
10959 sparc-elf and sparc-rtems targets.
10960
10961 2002-04-13 Mark Mitchell <mark@codesourcery.com>
10962
10963 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
10964 defined, and __gnu_hurd__ wherever __GNU__ is defined.
10965 * arm/linux-elf.h: Likewise.
10966 * cris/aout.h: Likewise.
10967 * cris/linux.h: Likewise.
10968 * i370/linux.h: Likewise.
10969 * i386/gnu.h: Likewise.
10970 * i386/linux-aout.h: Likewise.
10971 * i386/linux-oldld.h: Likewise.
10972 * i386/linux.h: Likewise.
10973 * i386/linux64.h: Likewise.
10974 * ia64/linux.h: Likewise.
10975 * m68k/linux-aout.h: Likewise.
10976 * m68k/linux.h: Likewise.
10977 * mips/linux.h: Likewise.
10978 * pa/pa-linux.h: Likewise.
10979 * pj/linux.h: Likewise.
10980 * rs6000/sysv4.h: Likewise.
10981 * s390/linux.h: Likewise.
10982 * sh/linux.h: Likewise.
10983 * sparc/linux-aout.h: Likewise.
10984 * sparc/linux.h: Likewise.
10985 * sparc/linux64.h: Likewise.
10986 * xtensa/linux.h: Likewise.
10987
10988 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
10989
10990 * stmt.c (check_unique_operand_names): Expect operand names to
10991 be strings rather than identifiers. Use simple_cst_equal to
10992 compare them.
10993 (resolve_operand_name_1): Make same identifier to string change here.
10994 * c-parse.in (asm_operand): Convert a named operand into a string.
10995 * cp/parse.y (asm_operand): Likewise.
10996
10997 2002-04-13 Andreas Schwab <schwab@suse.de>
10998
10999 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
11000
11001 2002-04-12 Mark Mitchell <mark@codesourcery.com>
11002
11003 Revert these changes:
11004
11005 2002-04-06 Mark Mitchell <mark@codesourcery.com>
11006
11007 PR c++/5571
11008 * stor-layout.c (layout_decl): Reset the RTL for the decl.
11009
11010 2002-04-12 Richard Henderson <rth@redhat.com>
11011
11012 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
11013 (sparc*-*-solaris): Clean up header files.
11014 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
11015 and plan on generating 64-bit code.
11016 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
11017 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
11018 * config/sparc/sol2-sld-64.h: Rename ...
11019 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
11020 for AS_SPARC64_FLAG not defined.
11021 * config/sparc/sol2-gld-bi.h: New.
11022 * config/sparc/sol2-sld.h: Remove.
11023 * config/sparc/sol26-sld.h: New.
11024 * config/sparc/sol2.h: Tidy comments.
11025 * doc/install.texi: Document sparc-solaris configury changes.
11026
11027 2002-04-12 Richard Henderson <rth@redhat.com>
11028
11029 * recog.c (offsettable_address_p): Match the logic in adjust_address.
11030
11031 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
11032 in 64-bit mode only. Use only for 32-bit or MEDLOW.
11033
11034 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11035
11036 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
11037
11038 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
11039
11040 * pa.c (pa_can_combine_p): Call extract_insn before calling
11041 constrain_operands.
11042
11043 2002-04-12 Douglas B Rupp <rupp@gnat.com>
11044
11045 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
11046 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
11047 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
11048 (CPP_PREDEFINES): Handle __declspec.
11049 * config/i386/t-interix (USER_H): Remove.
11050
11051 2002-04-12 DJ Delorie <dj@redhat.com>
11052
11053 * integrate.c (compare_blocks): Make comparisons safe for when
11054 sizeof(int) < sizeof(char *).
11055 (find_block): Likewise.
11056
11057 2002-04-12 Jan Hubicka <jh@suse.cz>
11058 David Edelsohn <edelsohn@gnu.org>
11059
11060 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
11061 registers.
11062 (symbol_ref_operand): New.
11063 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
11064 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
11065
11066 2002-04-12 Andreas Schwab <schwab@suse.de>
11067
11068 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
11069 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
11070 overrides the definition in config/svr4.h.
11071
11072 2002-04-12 Eric Norum <eric.norum@usask.ca>
11073
11074 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
11075 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
11076 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
11077 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
11078 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
11079 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
11080 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
11081 definitions to config/rtems.h and make the targets more similar.
11082
11083 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11084
11085 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
11086 POINTERS_EXTEND_UNSIGNED.
11087 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
11088 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
11089
11090 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
11091 not specified.
11092
11093 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
11094
11095 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
11096 depends on TARGET_SHMEDIA, not TARGET_SH5.
11097
11098 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
11099
11100 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
11101 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
11102
11103 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
11104
11105 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
11106 no r0 clobber.
11107
11108 2002-04-12 Andreas Schwab <schwab@suse.de>
11109
11110 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
11111
11112 2002-04-12 Richard Henderson <rth@redhat.com>
11113
11114 PR bootstrap/4191
11115 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
11116
11117 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
11118 modes spanning multiple hard regs.
11119
11120 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
11121
11122 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
11123
11124 * pa.c (pa_output_function_prologue): Don't accumulate the total
11125 number of code bytes when using TARGET_64BIT, or gas, SOM and not
11126 the portable runtime.
11127 (output_deferred_plabels): Handle 64bit plabels.
11128 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
11129 generating pic code using the GAS assembler for object formats that
11130 are not SOM (ie., ELF32 and ELF64).
11131 (output_millicode_call): Check attribute type if attribute length is 28.
11132 Likewise use $PIC_pcrel$0. Only call get_attr_length and
11133 dbr_sequence_length once.
11134 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
11135 dbr_sequence_length once.
11136 * pa.h (TARGET_SOM): Define if not defined.
11137 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
11138 with GAS and not SOM.
11139 (jump, call_internal_reg, call_value_internal_reg): Likewise.
11140 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
11141
11142 2002-04-11 David O'Brien <obrien@FreeBSD.org>
11143
11144 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
11145 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
11146 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
11147 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
11148 elfos.h and dbxelf.h values are fine now.
11149 * config/i386/freebsd.h, config/alpha/freebsd.h
11150 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
11151
11152 2002-04-11 David O'Brien <obrien@FreeBSD.org>
11153
11154 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
11155 or set Acpu or Amachine. Reformat.
11156 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11157 define.
11158 (LINK_SPEC): Do not need to undef.
11159 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
11160 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
11161 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11162 define.
11163 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
11164 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
11165 (LINK_SPEC): Do not need to undef.
11166 (DONT_USE_BUILTIN_SETJMP): Do not define.
11167 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
11168 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
11169 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
11170 Remove trailing spaces.
11171 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
11172 __ELF__, or set Acpu or Amachine. Reformat.
11173 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11174 define.
11175
11176 2002-04-11 David O'Brien <obrien@FreeBSD.org>
11177
11178 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
11179 all other *-*-freebsd* targets.
11180
11181 2002-04-11 Richard Henderson <rth@redhat.com>
11182
11183 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
11184
11185 2002-04-11 David O'Brien <obrien@FreeBSD.org>
11186
11187 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
11188 Include {cpu}/{cpu}.h thru tm_file.
11189 (alpha*-*-linux*ecoff): Remove target.
11190 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
11191 (LINK_SPEC): Remove, is not OS independent.
11192 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
11193 (LINK_SPEC): Do not need to #undef any longer.
11194 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
11195 any longer.
11196 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
11197 __ELF__.
11198 (LINK_SPEC): Moved here from alpha/elf.h.
11199 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
11200 SUB_CPP_PREDEFINES.
11201 * config/alpha/linux-ecoff.h: Remove.
11202 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
11203 (CPP_SPEC): Define _POSIX_SOURCE as needed.
11204 (CPP_SUBTARGET_SPEC): Do not define.
11205 (LINK_SPEC): Do not need to #undef any longer.
11206 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
11207 * config/alpha/vms.h: Likewise.
11208
11209 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
11210
11211 * doc/extend.texi: Remove old claim that typedefs cannot have
11212 an alignment attribute.
11213
11214 2002-04-11 Jakub Jelinek <jakub@redhat.com>
11215
11216 PR optimization/6177
11217 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
11218 bitpos is 0 and bitsize CONCAT size.
11219
11220 2002-04-11 Jakub Jelinek <jakub@redhat.com>
11221
11222 PR c/6223
11223 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
11224
11225 2002-04-10 David O'Brien <obrien@FreeBSD.org>
11226
11227 * config/alpha/freebsd.h: Minor reformatting.
11228 (CPP_SPEC): Define ELF and add cpp_subtarget.
11229 (ASM_SPEC): No longer needed.
11230
11231 2002-04-11 Richard Henderson <rth@redhat.com>
11232
11233 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
11234 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
11235 (dimode mem/zero splitter): New.
11236
11237 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
11238
11239 * config/cris/cris.c (cris_override_options): Tweak error message
11240 for PIC not implemented.
11241
11242 * config/cris/cris.h: Tweak comments related to parameter-passing.
11243
11244 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
11245
11246 2002-04-10 Richard Henderson <rth@redhat.com>
11247
11248 * except.c (add_ehl_entry): Allow duplicates after landing pad
11249 creation.
11250
11251 2002-04-10 David Edelsohn <edelsohn@gnu.org>
11252
11253 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
11254
11255 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
11256
11257 * c-decl.c (c_init_decl_processing): Move generation of
11258 decls for g77_integer_type_node and friends from here ...
11259 * c-common.c (c_common_nodes_and_builtins): ... to here.
11260
11261 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
11262
11263 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
11264 is only used as frame pointer when frame_pointer_needed is true.
11265
11266 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
11267
11268 PR target/817
11269 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
11270 for the fact that the pool entry uses two words.
11271 (movdf_hard_insn): Similarly. Also, ADR instruction can span
11272 1k bytes.
11273 (movdf_soft_insn): Similarly.
11274 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
11275 for the fact that the pool entry uses three words.
11276
11277 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
11278
11279 * config/mips/mips.c (mips_va_arg): When using the struct version
11280 of the EABI va_list, allow arguments in the register save area to
11281 take up less room than a stack argument.
11282
11283 2002-04-10 Richard Henderson <rth@redhat.com>
11284
11285 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
11286 if EXPAND_INITIALIZER.
11287
11288 2002-04-09 Richard Henderson <rth@redhat.com>
11289
11290 * config/alpha/alpha.md (movdi_er_maybe_g): New.
11291 * config/alpha/alpha.c (alpha_expand_mov): Use it.
11292
11293 2002-04-10 Alan Modra <amodra@bigpond.net.au>
11294
11295 PR optimization/6233
11296 * rtlanal.c (pure_call_p): New function.
11297 * rtl.h (pure_call_p): Declare.
11298 * loop.c (prescan_loop): Use it to set has_nonconst_call.
11299 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
11300
11301 2002-04-09 Eric Christopher <echristo@redhat.com>
11302
11303 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
11304 information to .comm directive.
11305
11306 2002-04-09 Richard Henderson <rth@redhat.com>
11307
11308 PR c/5078
11309 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
11310
11311 2002-04-09 Richard Henderson <rth@redhat.com>
11312
11313 * basic-block.h (flow_delete_block_noexpunge): Declare.
11314 (expunge_block_nocompact): Declare.
11315 * cfg.c (expunge_block_nocompact): Split out from ...
11316 (expunge_block): ... here.
11317 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
11318 (flow_delete_block_noexpunge): Split out from ...
11319 (flow_delete_block): ... here.
11320 * cfgcleanup.c (delete_unreachable_blocks): Compact while
11321 removing dead blocks.
11322 * except.c (exception_handler_labels): Remove.
11323 (exception_handler_label_map): New.
11324 (struct eh_region): Add aka member.
11325 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
11326 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
11327 (for_each_eh_label, for_each_eh_label_1): New.
11328 (init_eh): Register exception_handler_label_map.
11329 (free_eh_status): Use free_region.
11330 (find_exception_handler_labels): Use the map, not the list.
11331 (remove_exception_handler_label): Likewise.
11332 (maybe_remove_eh_handler): Likewise.
11333 (remove_eh_handler): Use the region aka bitmap.
11334 * except.h (exception_handler_labels): Remove.
11335 (for_each_eh_label): Declare.
11336 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
11337 * loop.c (invalidate_loops_containing_label): New.
11338 (find_and_verify_loops): Use it. Use for_each_eh_label.
11339 * sched-rgn.c (is_cfg_nonregular): Use
11340 current_function_has_exception_handlers.
11341
11342 2002-04-09 Richard Henderson <rth@redhat.com>
11343
11344 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
11345 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
11346 Do not return changed status.
11347 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
11348 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
11349 New functions that do return changed status.
11350 * sbitmap.h: Update decls.
11351 * gcse.c, lcm.c: Use _cg functions as needed.
11352
11353 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
11354
11355 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
11356 (sh64-*-elf*, sh-*-rtemself*): Likewise.
11357 * config/sh/embed_bb.c: New file.
11358 * config/sh/embed-elf.h: New file.
11359 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
11360 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
11361 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11362 __PTRDIFF_TYPE__ .
11363 (SUBTARGET_CPP_PTR_SPEC): Don't define.
11364 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
11365 Add subtarget_asm_endian_spec.
11366 (ASM_SPEC): Use subtarget_asm_endian_spec.
11367 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
11368 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
11369 (WCHAR_UNSIGNED): Define.
11370 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
11371 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11372 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
11373 Fix value.
11374 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
11375 (sh_adjust_cost): Likewise.
11376 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11377 __PTRDIFF_TYPE__ .
11378 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
11379 (WCHAR_TYPE_SIZE): Likewise.
11380 (ASM_SPEC): Use subtarget_asm_endian_spec.
11381 (SH_ELF_WCHAR_TYPE): #undef/ #define.
11382 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
11383 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
11384 (MAX_WCHAR_TYPE_SIZE): Don't #define .
11385 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
11386 (USER_LABEL_PREFIX): Don't #undef /#define .
11387 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11388 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
11389 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
11390 (ASM_SPEC): Likewise.
11391 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
11392 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
11393 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
11394 (LIB2FUNCS_EXTRA): Define.
11395 * t-sh64 (LIB2FUNCS_EXTRA): Define.
11396 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
11397 (LIB1ASMFUNCS_CACHE): Define.
11398 (LIB2FUNCS_EXTRA): Redefine empty.
11399
11400 2002-04-08 Richard Henderson <rth@redhat.com>
11401
11402 * reorg.c (get_branch_condition): Use reversed_comparison_code.
11403
11404 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11405
11406 * config/m68hc11/larith.asm (__map_data_section): Fix condition
11407 and optimize for size.
11408 (__do_global_ctors): Fix pointer comparison.
11409 (__do_global_dtors): Likewise.
11410
11411 2002-04-09 David S. Miller <davem@redhat.com>
11412
11413 * config/sparc/sparc.c (sparc_extra_constraint_check): New
11414 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
11415 allow reloading pseudos.
11416 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
11417 * config/sparc/sparc-protos.h: Declare it.
11418
11419 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
11420 unsigned comparison warning.
11421 (output_restore_regs): Mark leaf_function as unused.
11422
11423 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11424
11425 * expr.c (is_aligning_offset): New function.
11426 (expand_expr, case COMPONENT_EXPR): Call it.
11427
11428 2002-04-08 David S. Miller <davem@redhat.com>
11429
11430 PR target/6082
11431 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
11432
11433 Make init_priority work on Sparc when using GNU ld.
11434 * config/sparc/linux.h, config/sparc/linux64.h,
11435 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
11436 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
11437 * config/sparc/sol2-gld.h: New file to do the same.
11438 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
11439 sparc/sol2-gld.h to tm_file.
11440
11441 PR optimization/4328
11442 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
11443 * doc/md.texi: Document it.
11444 * config/sparc/sparc.md (movdi_insn_sp64_novis,
11445 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
11446 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
11447 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
11448 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
11449
11450 2002-04-08 Andreas Jaeger <aj@suse.de>
11451
11452 * stmt.c (expand_asm_operands): Revert last patch from Richard
11453 Henderson.
11454
11455 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11456
11457 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
11458 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
11459
11460 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11461
11462 * doc/contrib.texi (Contributors): Add David O'Brien.
11463
11464 2002-04-08 Alan Modra <amodra@bigpond.net.au>
11465
11466 * configure.in (auto-build.h): Use target_alias and build_alias
11467 when running configure.
11468 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
11469 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
11470 * configure: Regenerate.
11471
11472 2002-04-07 David S. Miller <davem@redhat.com>
11473
11474 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
11475
11476 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11477
11478 PR 5933
11479 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
11480 generating 32-bit pic code.
11481
11482 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
11483
11484 * cppinit.c (cpp_create_reader): Initialize
11485 discard_comments_in_macro_exp.
11486 (COMMAND_LINE_OPTIONS): Add "-CC" option.
11487 (cpp_handle_option): Handle "-CC" option.
11488 * cpplex.c (save_comment): If saving a C++ comment in
11489 a directive, convert it to a C comment.
11490 (_cpp_lex_direct): Pass second comment start character to
11491 save_comment to indicate comment type.
11492 * cpplib.c (_cpp_handle_directive): If processing
11493 a "#define" directive and discard_comments_in_macro_exp
11494 is false, re-enable saving of comments.
11495 (lex_macro_node): If discard_comments_in_macro_exp is false,
11496 discard any comments before the macro identifier.
11497 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
11498 member.
11499 * cppmacro.c (cpp_get_token): If expanding a macro while
11500 processing a directive, discard any comments we might encounter.
11501 (parse_params): If discard_comments_in_macro_exp is false,
11502 ignore comments in the macro parameter list.
11503 * gcc.c (cpp_unique_options): Add "-CC" option.
11504 (option_map): Map "--comments-in-macros" to "-CC".
11505 * doc/cppopts.texi: Document "-CC" option.
11506 * f/lang-specs.h: Add "-CC" option.
11507 * testsuite/gcc.dg/cpp/maccom1.c: New test.
11508 * testsuite/gcc.dg/cpp/maccom2.c: New test.
11509 * testsuite/gcc.dg/cpp/maccom3.c: New test.
11510 * testsuite/gcc.dg/cpp/maccom4.c: New test.
11511 * testsuite/gcc.dg/cpp/maccom5.c: New test.
11512 * testsuite/gcc.dg/cpp/maccom6.c: New test.
11513
11514 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
11515
11516 PR middle-end/6180
11517 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
11518
11519 2002-04-06 Mark Mitchell <mark@codesourcery.com>
11520
11521 PR c++/5571
11522 * stor-layout.c (layout_decl): Reset the RTL for the decl.
11523
11524 PR opt/5120
11525 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
11526 RTX_UNCHANGING_P for the functions arguments when a tail call
11527 is made.
11528
11529 2002-04-06 Jason Merrill <jason@redhat.com>
11530
11531 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
11532 (parse_options_and_default_flags): Set them appropriately.
11533 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
11534
11535 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
11536
11537 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
11538 here.
11539
11540 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
11541 semicolon.
11542
11543 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
11544 types come in by-reference. Fix typo in comment.
11545
11546 2002-04-05 David S. Miller <davem@redhat.com>
11547
11548 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
11549 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
11550 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
11551 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
11552
11553 2002-04-05 David S. Miller <davem@redhat.com>
11554
11555 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
11556 are not going to emit return instructions, emit at least a nop
11557 for the sake of sane backtraces.
11558
11559 2002-04-05 Richard Henderson <rth@redhat.com>
11560
11561 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
11562
11563 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
11564
11565 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
11566
11567 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
11568
11569 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
11570 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
11571 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
11572
11573 2002-04-05 Andreas Schwab <schwab@suse.de>
11574
11575 * c-convert.c: Include c-common.h.
11576 * Makefile.in (c-convert.o): Updated.
11577
11578 2002-04-05 Jakub Jelinek <jakub@redhat.com>
11579
11580 * mklibgcc.in: Use separate libgcc.map for each multilib.
11581 * Makefile.in (distclean): Don't remove libgcc.map here.
11582
11583 2002-04-05 Jakub Jelinek <jakub@redhat.com>
11584
11585 * Makefile.in (s-mlib): Handle --disable-multilib by separate
11586 genmultilib invocation.
11587
11588 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
11589
11590 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
11591 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
11592 to num_gprs for symmetry.
11593 * config/mips/mips.c: Adjust accordingly.
11594
11595 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11596
11597 * c-common.c (truthvalue_conversion): Rename, update.
11598 * c-common.h (c_common_truthvalue_conversion): New.
11599 * c-convert.c (convert): Update.
11600 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11601 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
11602 * c-typeck.c (build_binary_op, build_unary_op,
11603 build_conditional_expr): Update.
11604 * fold-const.c (constant_boolean_node, fold): Use langhook.
11605 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
11606 * langhooks.h (struct lang_hooks): New hook.
11607 * stmt.c (expand_decl_cleanup): Use langhook.
11608 * tree.h (truthvalue_conversion): Remove.
11609 objc:
11610 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11611
11612 2002-04-05 Alan Modra <amodra@bigpond.net.au>
11613
11614 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
11615 Add rules to make null object file.
11616
11617 2002-04-04 Jim Blandy <jimb@redhat.com>
11618
11619 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
11620 macro formal parameter names.
11621
11622 2002-04-04 David S. Miller <davem@redhat.com>
11623
11624 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
11625
11626 2002-04-04 Richard Henderson <rth@redhat.com>
11627
11628 PR middle-end/5099
11629 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
11630 Support copies into and out of memory. Don't accept allows_reg
11631 and allows_mem as gospel.
11632
11633 2002-04-04 Richard Henderson <rth@redhat.com>
11634
11635 PR opt/6165
11636 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
11637 (write_dependence_p): Likewise.
11638
11639 2002-04-04 Richard Henderson <rth@redhat.com>
11640
11641 * predict.c (estimate_bb_frequencies): Do frequency calculation
11642 with a volatile temporary.
11643
11644 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
11645
11646 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
11647
11648 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11649
11650 PR c++/6119
11651 * final.c (final_start_function): Don't bump profile_label_no here...
11652 (final_end_function): ...but here.
11653
11654 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11655
11656 * config/sparc/sparc.md (pic): New attribute.
11657 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
11658 into stack slots.
11659 (split after do_builtin_setjmp_setup): New.
11660
11661 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11662
11663 PR fortran/6106
11664 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
11665 change.
11666
11667 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11668
11669 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
11670 UNITS_PER_WORD for zero sized aggregates.
11671
11672 2002-04-03 David S. Miller <davem@redhat.com>
11673
11674 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
11675 one-character spec for this, just use %(link_gcc_c_sequence).
11676
11677 2002-04-03 David S. Miller <davem@redhat.com>
11678
11679 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
11680 handling.
11681
11682 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11683
11684 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
11685 (DWARF_FRAME_RETURN_COLUMN): Move.
11686 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11687 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
11688 * pa.c (except.h, predict.h): Include.
11689 (FRP): Delete.
11690 (store_reg_modify, set_reg_plus_d): Revise prototypes.
11691 (output_ascii): Add cast.
11692 (store_reg_modify): Revise to add frame notes.
11693 (set_reg_plus_d): Likewise.
11694 (compute_frame_size): Include space for eh data registers in frame if
11695 the current function calls eh_return.
11696 (hppa_expand_prologue): Ensure register %r2 is saved if the current
11697 function calls eh_return. Save eh data registers if the current
11698 function calls eh_return. Fix code to add frame notes. Emit
11699 blockage to prevent insns with frame notes being scheduled in the
11700 delay slot of calls.
11701 (hppa_expand_epilogue): Restore eh data registers and do final stack
11702 adjustment if the current function calls eh_return. Don't add frame
11703 notes.
11704 (output_call): Revise for change in length of call insn. Don't do
11705 return pointer adjustment for an unconditional jump in the delay slot
11706 of a call when using frame notes.
11707 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
11708 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
11709 (ARG_POINTER_CFA_OFFSET): Define.
11710 * pa.md (return_external_pic): New pattern.
11711 (prologue): Correct formatting. Use return_external_pic if current
11712 function calls eh_return.
11713 (call_internal_symref, call_value_internal_symref,
11714 sibcall_internal_symref, sibcall_value_internal_symref): Change default
11715 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
11716 respectively.
11717 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
11718
11719 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
11720 list of targets to check using "nop" insn.
11721 * configure: Rebuilt.
11722
11723 2002-04-04 Alan Modra <amodra@bigpond.net.au>
11724
11725 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
11726
11727 2002-04-03 David S. Miller <davem@redhat.com>
11728
11729 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
11730 library sequence passed to the linker.
11731 (LINK_COMMAND_SPEC): Use it.
11732 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
11733 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
11734 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11735
11736 2002-04-03 Jason Merrill <jason@redhat.com>
11737
11738 * except.c (struct eh_status): Remove protect_list.
11739 (begin_protect_partials, end_protect_partials): Remove.
11740 (add_partial_entry): Remove.
11741 * except.h: Remove prototypes.
11742
11743 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
11744 expand_decl_cleanup_eh.
11745
11746 PR c++/5636
11747 * tree.h (CLEANUP_EH_ONLY): New macro.
11748 * stmt.c (expand_decl_cleanup_eh): New fn.
11749 (expand_cleanups): Check CLEANUP_EH_ONLY.
11750 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
11751 Use expand_decl_cleanup_eh.
11752 (expand_stmt): Adjust.
11753 * c-common.h: Adjust prototype.
11754
11755 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
11756
11757 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
11758 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
11759 (cris_target_asm_function_epilogue): Ditto.
11760 (cris_initial_frame_pointer_offset): Ditto.
11761 (cris_simple_epilogue): Ditto.
11762 (cris_expand_builtin_va_arg): Variable-size types come in
11763 by-reference.
11764
11765 2002-04-03 David S. Miller <davem@redhat.com>
11766
11767 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
11768 little-endian.
11769 (set_fast_math): Correct 'fsr' type.
11770
11771 2002-04-03 Richard Henderson <rth@redhat.com>
11772
11773 PR opt/3569
11774 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
11775 * toplev.c (check_global_declarations): Use it.
11776 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
11777 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11778 (LANG_HOOKS_DECLS): Add it.
11779 * langhooks.c (lhd_warn_unused_global_decl): New.
11780 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11781 * c-objc-common.c (c_warn_unused_global_decl): New.
11782 * c-tree.h (c_warn_unused_global_decl): Declare.
11783 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11784
11785 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
11786
11787 * langhooks-def.h (lhd_set_decl_assembler_name,
11788 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
11789 (LANG_HOOKS_INITIALIZER): Update.
11790 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
11791 * langhooks.h (struct lang_hooks): New hook.
11792 * tree.c (set_decl_assembler_name): Move to langhooks.c.
11793 (lang_set_decl_assembler_name): Remove.
11794 (init_obstacks): Don't set hook.
11795 (decl_assembler_name): New function.
11796 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
11797 (decl_assembler_name): New.
11798 (lang_set_decl_assembler_name): Remove.
11799
11800 2002-04-03 Jakub Jelinek <jakub@redhat.com>
11801
11802 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
11803 works properly with .hidden symbols.
11804 * configure: Rebuilt.
11805 * config.in: Rebuilt.
11806 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11807 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
11808 properly with .hidden symbols.
11809
11810 2002-04-03 Jakub Jelinek <jakub@redhat.com>
11811
11812 PR middle-end/6102
11813 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
11814 USE argument.
11815
11816 2002-04-03 Richard Henderson <rth@redhat.com>
11817
11818 PR opt/4120
11819 * sched-rgn.c (sets_likely_spilled): New.
11820 (sets_likely_spilled_1): New.
11821 (add_branch_dependences): Use it.
11822
11823 2002-04-02 Richard Henderson <rth@redhat.com>
11824
11825 PR opt/4311
11826 * loop.h (LOOP_FIRST_PASS): New.
11827 * loop.c (strength_reduce): Mind it when deciding to unroll.
11828 * toplev.c (rest_of_compilation): Set it.
11829
11830 2002-04-02 David S. Miller <davem@redhat.com>
11831
11832 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
11833 mems_ok_for_ldd_peep when the order of the loads being examined
11834 is reversed.
11835 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
11836 existing comment to increase comprehension of this situation.
11837
11838 2002-04-02 Zack Weinberg <zack@codesourcery.com>
11839
11840 * config/sh/sh.md: Don't use union real_extract.
11841
11842 2002-04-02 Richard Henderson <rth@redhat.com>
11843
11844 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
11845
11846 2002-04-02 David O'Brien <obrien@FreeBSD.org>
11847
11848 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
11849 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
11850 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
11851 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
11852 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
11853 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
11854 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
11855 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
11856 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
11857 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
11858 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
11859 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
11860 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
11861 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
11862 Include as many configury headers via tm_file as possible. This
11863 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
11864 * config/openbsd-oldgas.h: New file.
11865 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
11866 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
11867 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
11868 config/i386/i386-coff.h, config/i386/i386-interix.h,
11869 config/i386/iscdbx.h, config/i386/linux-aout.h,
11870 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
11871 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
11872 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
11873 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
11874 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
11875 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
11876 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
11877 config/i386/vxi386.h: Do not directly include configury headers.
11878 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
11879 Directly include configury headers that are no longer automatically
11880 included by the above headers.
11881 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
11882 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
11883 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
11884 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
11885 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
11886 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
11887 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
11888 (TARGET_VERSION): Define.
11889 * config/i386/beos-elf.h, config/i386/freebsd.h,
11890 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
11891 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
11892 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
11893 config/i386/sco5.h, config/i386/sysv4.h
11894 (TARGET_VERSION): Do not need to protect.
11895 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
11896 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
11897 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
11898 config/i386/i386-interix.h, config/i386/linux-aout.h,
11899 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
11900 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
11901 (YES_UNDERSCORES): Do not define - not needed.
11902 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
11903 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11904 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
11905 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
11906 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11907 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
11908 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
11909 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
11910
11911 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
11912 Richard Henderson <rth@redhat.com>
11913
11914 PR c/5484
11915 * function.c (assign_temp): Accept either type or decl argument.
11916 Detect variables whose size is too large to fit into an integer.
11917 * stmt.c (expand_decl): Pass the decl, not the type.
11918
11919 2002-04-02 David O'Brien <obrien@FreeBSD.org>
11920
11921 * protoize.c: Match include directory usage with cppdefault.c.
11922
11923 2002-04-03 Jeffrey A Law (law@redhat.com)
11924 Hans-Peter Nilsson <hp@bitrange.com>
11925
11926 * combine.c (simplify_comparison): Avoid narrowing a comparison
11927 with a paradoxical subreg when doing so would drop signficant bits.
11928
11929 2002-04-02 Steve Ellcey <sje@cup.hp.com>
11930
11931 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
11932 if POINTERS_EXTEND_UNSIGNED is defined.
11933
11934 2002-04-02 Richard Henderson <rth@redhat.com>
11935
11936 PR opt/3967
11937 * local-alloc.c (contains_replace_regs): LO_SUM may contain
11938 replace regs.
11939
11940 2002-04-02 Richard Henderson <rth@redhat.com>
11941
11942 * doc/standards.texi: Document required freestanding libc entry points.
11943
11944 2002-04-02 Alan Modra <amodra@bigpond.net.au>
11945
11946 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
11947 associated splitter. Remove MQ constraint.
11948 (ctrdi_internal4): Correct CCmode clobber.
11949
11950 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11951
11952 * milli64.S ($$dyncall): New function.
11953 * t-linux (LIB1ASMFUNCS): Revise module list.
11954 (LIB1ASMSRC): Use pa/milli64.S.
11955
11956 2002-04-02 Richard Henderson <rth@redhat.com>
11957
11958 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
11959 rename solaris_sys_varargs_h.
11960
11961 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11962
11963 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
11964 the same mode as its component.
11965
11966 2002-04-02 Richard Henderson <rth@redhat.com>
11967
11968 PR opt/190
11969 * final.c (this_is_asm_operands): Export.
11970 * output.h (this_is_asm_operands): Declare.
11971 * config/i386/i386.c (print_operand): Error odd asm operands.
11972
11973 2002-04-02 Richard Henderson <rth@redhat.com>
11974
11975 PR opt/420
11976 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
11977
11978 2002-04-01 Richard Henderson <rth@redhat.com>
11979
11980 PR target/1538
11981 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
11982 * fixinc/fixincl.x: Rebuild.
11983
11984 2002-04-01 Richard Henderson <rth@redhat.com>
11985
11986 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
11987 (atomic_alloc, atomic_free): New.
11988 (SIZE, MASK_FOR, PTR_IN): New.
11989 (emergency_reg_state, emergency_reg_state_free): New.
11990 (emergency_labeled_state, emergency_labeled_state_free): New.
11991 (reg_state_alloced, labeled_state_alloced): New.
11992 (alloc_reg_state, free_reg_state): New.
11993 (alloc_label_state, free_label_state, free_label_states): New.
11994 (push, pop, dup_state_stack, free_state_stack): Use them.
11995 (desc_label_state): Likewise.
11996 (uw_frame_state_for): Free label states and state stack.
11997 (uw_update_reg_address): Eliminate warnings.
11998
11999 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
12000
12001 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
12002 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
12003
12004 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12005
12006 * c-decl.c (grokdeclarator): Update.
12007 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12008 * c-tree.h (c_mark_addressable): New.
12009 * c-typeck.c (default_function_array_conversion, build_unary_op,
12010 build_array_ref, convert_for_assignment): Update.
12011 (mark_addressable): Rename.
12012 * calls.c (try_to_integrate, expand_call): Use langhook.
12013 * expr.c (expand_expr): Use langhook.
12014 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
12015 * langhooks.h (struct lang_hooks): New hook.
12016 * stmt.c (expand_asm_operands): Use langhook.
12017 * tree.h (mark_addressable): Remove.
12018 objc:
12019 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12020
12021 2002-04-01 Bob Wilson <bob.wilson@acm.org>
12022
12023 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
12024 in previous change.
12025
12026 2002-04-01 Bob Wilson <bob.wilson@acm.org>
12027
12028 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
12029 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
12030
12031 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12032
12033 * c-common.c (unsigned_conversion_warning, convert_and_check,
12034 unsigned_type, signed_type, shorten_compare,
12035 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
12036 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
12037 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
12038 New.
12039 * c-decl.c (grokdeclarator): Update.
12040 * c-format.c (check_format_types): Update.
12041 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12042 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12043 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
12044 * convert.c (convert_to_integer): Use new hooks.
12045 * expmed.c (make_tree): Use new hooks.
12046 * expr.c (store_expr): Use new hooks.
12047 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
12048 all_ones_mask_p, unextend, fold): Use new hooks.
12049 * langhooks.h (struct lang_hooks_for_types): New hooks.
12050 * tree.h (signed_or_unsigned_type, signed_type,
12051 unsigned_type): Remove.
12052 objc:
12053 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12054 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12055
12056 2002-03-31 Richard Henderson <rth@redhat.com>
12057
12058 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
12059 (desc_frgr_mem): Fix reference to f16-f31.
12060
12061 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12062
12063 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
12064 RTVEC_ELT): Const-ify.
12065 * varray.h (VARRAY_CHECK): Const-ify.
12066 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
12067 ggc_mark_rtvec, ggc_mark): Const-ify.
12068
12069 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12070
12071 * diagnostic.c: Include langhooks-def.h.
12072 * Makefile.in (diagnostic.o): Update.
12073
12074 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
12075
12076 * c-common.c (c_unsafe_for_reeval): Rename.
12077 * c-common.h (c_unsafe_for_reeval): Rename.
12078 * c-decl.c (finish_incomplete_decl): Rename.
12079 (c_init_decl_processing): Don't set langhook.
12080 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12081 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12082 * c-objc-common.c (c_objc_common_init): Don't set langhook.
12083 * c-tree.h (finish_incomplete_decl): Rename.
12084 * langhooks-def.h (lhd_unsafe_for_reeval): New.
12085 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
12086 (LANG_HOOKS_INITIALIZER): Update.
12087 * langhooks.c (lhd_unsafe_For_reeval): New.
12088 * langhooks.h (struct langhooks): New hooks.
12089 * toplev.c (incomplete_decl_finalize_hook): Remove.
12090 (wrapup_global_declarations): Update.
12091 * tree.c (lang_unsafe_for_reeval): Remove.
12092 (unsafe_for_reeval): Update.
12093 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
12094 Remove.
12095 objc:
12096 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12097 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12098
12099 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
12100
12101 * diagnostic.c (print_error_function): Remove.
12102 (default_print_error_function): Rename.
12103 (report_error_function): Update.
12104 * diagnostic.h (print_error_function): Remove.
12105 (default_print_error_function): Remove.
12106 * langhooks-def.h (struct diagnostic_context): Predeclare.
12107 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
12108 (LANG_HOOKS_INITIALIZER): Update.
12109 * langhooks.h (struct diagnostic context): Predeclare.
12110 (struct lang_hooks): New hook.
12111
12112 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12113
12114 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
12115 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
12116 !flag_pic.
12117 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
12118 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
12119 of PIC_OFFSET_TABLE_REGNUM thruout.
12120 * config/rs6000/rs6000.md: Likewise.
12121 * config/rs6000/darwin.h: Likewise.
12122
12123 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12124
12125 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
12126 unsigned HOST_WIDE_INT, not unsigned int.
12127
12128 2002-03-31 Jakub Jelinek <jakub@redhat.com>
12129
12130 PR middle-end/6096, middle-end/6098, middle-end/6099
12131 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
12132 CODE_LABELs.
12133 (fill_slots_from_thread): Likewise.
12134
12135 2002-03-31 Jakub Jelinek <jakub@redhat.com>
12136
12137 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
12138 floating fields in float regs.
12139 (function_arg_record_value_2): Likewise.
12140
12141 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
12142
12143 * config/mmix/mmix.md (define_constants): Remove misleading
12144 FIXME. Add MMIX_fp_rO_OFFSET.
12145 ("nonlocal_goto_receiver"): Don't have stack-frame address of
12146 saved rO as part of the pattern. Remove FIXME.
12147 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
12148 here, at output-time.
12149
12150 2002-03-31 Jakub Jelinek <jakub@redhat.com>
12151
12152 PR middle-end/6100
12153 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
12154 REG_BR_PRED.
12155 (output_v9branch): Likewise.
12156
12157 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
12158
12159 * gcc.c: Revert previous patch for now.
12160 * config/i386/djgpp.h: Likewise.
12161
12162 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
12163
12164 * config/mmix/crti.asm (_init): Register _fini with atexit.
12165 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
12166
12167 2002-03-31 Richard Henderson <rth@redhat.com>
12168
12169 PR target/3997
12170 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
12171 (ASM_OUTPUT_DEF_FROM_DECLS): New.
12172
12173 2002-03-31 Richard Henderson <rth@redhat.com>
12174
12175 * libgcc2.c (__bb_exit_func): Make static.
12176
12177 * config/alpha/alpha.md (trap): New.
12178
12179 2002-03-31 Richard Henderson <rth@redhat.com>
12180
12181 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
12182 promoted argument types; build trap.
12183 (expand_builtin_trap): New.
12184 (expand_builtin): Use it.
12185 * stmt.c (expand_nl_goto_receivers): Likewise.
12186 * expr.h (expand_builtin_trap): Declare.
12187 * libfuncs.h (LTI_abort, abort_libfunc): New.
12188 * optabs.c (init_optabs): Init abort_libfunc.
12189
12190 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
12191
12192 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
12193 (LINK_COMMAND_SPEC): ... from here.
12194 (init_gcc_specs): Duplicate it here too, omitting
12195 shared_name in the second copy.
12196 (init_spec): Test for duplicate
12197 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
12198
12199 2002-03-30 David S. Miller <davem@redhat.com>
12200
12201 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12202 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
12203
12204 2002-03-30 Roger Sayle <roger@eyesopen.com>
12205 Richard Henderson <rth@redhat.com>
12206
12207 * regmove.c (combine_stack_adjustments_for_block): Avoid
12208 emitting a stack adjustment of zero bytes. Let delete_insn
12209 update bb->head.
12210
12211 2002-03-30 Richard Henderson <rth@redhat.com>
12212
12213 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
12214 (sparc_emitting_epilogue): New.
12215 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
12216 * config/sparc/sparc-protos.h: Update.
12217 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
12218 (TARGET_SWITCHES): Update.
12219 * config/sparc/sparc.md (return): Remove.
12220 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
12221 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
12222 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
12223 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
12224 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
12225 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
12226 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
12227 Remove MASK_EPILOGUE.
12228 * doc/invoke.texi: Update.
12229
12230 2002-03-30 Daniel Berlin <dan@dberlin.org>
12231
12232 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
12233 CPP will start the file for us.
12234
12235 2002-03-30 Richard Henderson <rth@redhat.com>
12236
12237 PR target/5446
12238 * config/ia64/ia64.c (group_barrier_needed_p): Special case
12239 prologue_allocate_stack.
12240 (ia64_single_set): Use insn codes for recognition of special
12241 cases, not rtl matching.
12242 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
12243
12244 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
12245
12246 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
12247
12248 2002-03-30 Richard Henderson <rth@redhat.com>
12249
12250 PR target/6032
12251 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
12252 or -fomit-frame-pointer with profiling.
12253 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12254 (FUNCTION_PROFILER): Do nothing.
12255 (PROFILE_HOOK): New.
12256 * config/sparc/sparc.c (sparc_override_options): Don't check
12257 code models for profiling.
12258 (sparc_function_profiler): Remove.
12259 (sparc_profile_hook): New.
12260 * config/sparc/sparc-protos.h: Update.
12261
12262 2002-03-30 Jakub Jelinek <jakub@redhat.com>
12263
12264 PR optimization/6086
12265 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
12266 of SUBREG of volatile MEM or because the MEM was mode dependent,
12267 return CLOBBER instead of unmodified SUBREG.
12268
12269 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
12270
12271 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
12272 when not optimizing.
12273
12274 * toplev.c (rest_of_compilation): Cann mark_constant_function
12275 only when optimizing.
12276
12277 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
12278 are NULL.
12279
12280 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
12281 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
12282 (try_optimize_cfg): clear all AUX fields.
12283
12284 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
12285 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
12286 (ix86_address_cost): Be prepared for SUBREGed registers.
12287 (legitimate_address_p): Accept SUBREGed registers.
12288
12289 2002-03-29 Richard Henderson <rth@redhat.com>
12290
12291 PR target/5672
12292 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
12293
12294 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12295
12296 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
12297 for aggregate and TFmode types.
12298
12299 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
12300
12301 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
12302
12303 2002-03-29 Richard Henderson <rth@redhat.com>
12304
12305 PR target/5886
12306 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
12307 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
12308
12309 2002-03-29 Richard Henderson <rth@redhat.com>
12310
12311 PR target/6041
12312 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
12313 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
12314 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
12315 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
12316 conditional.
12317 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
12318
12319 2002-03-29 Dale Johannesen <dalej@apple.com>
12320
12321 * loop.c (combine_movables): Do allow combination of pseudos.
12322
12323 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
12324
12325 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
12326 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
12327 No functional change except ...
12328 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
12329 * doc/install.texi (*-*-freebsd*): Document port configuration.
12330
12331 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
12332
12333 * Makefile.in (convert.o, calls.o, expmed.o): Update.
12334 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
12335 Use new hooks.
12336 * builtin-types.def (BT_PTRMODE): Update.
12337 * c-common.c (type_for_size): Rename c_common_type_for_size.
12338 (type_for_mode): Similarly.
12339 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
12340 Use new hook.
12341 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
12342 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
12343 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
12344 Redefine.
12345 * c-typeck.c (common_type, comptypes, default_conversion):
12346 Use new hooks.
12347 * calls.c: Include langhooks.h.
12348 (emit_library_call_value_1): Use new hooks. Avoid redundant
12349 calls.
12350 * convert.c: Include langhooks.h
12351 (convert_to_pointer, convert_to_integer): Use new hooks.
12352 * except.c (init_eh): Similarly.
12353 * expmed.c: Include langhooks.h.
12354 (expand_mult_add): Use new hooks.
12355 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
12356 try_casesi): Similarly.
12357 * fold-const.c (optimize_bit_field_compare, make_range,
12358 decode_field_reference, fold_truthop, fold): Similarly.
12359 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
12360 put_var_into_stack): Similarly.
12361 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
12362 LANG_HOOKS_TYPE_FOR_SIZE): New.
12363 (LANG_HOOKS_TYPES_INITIALIZER): Update.
12364 * langhooks.h (lang_hooks_for_types): New hooks.
12365 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
12366 * tree.c (get_unwidened, get_narrower): Similarly.
12367 * tree.h (type_for_mode, type_for_size): Remove.
12368 * varasm.c (force_const_mem): Use new hooks.
12369 * utils2.c (nonbinary_modular_operation): Update.
12370 objc:
12371 * objc-act.c (handle_impent): Update.
12372 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
12373 Redefine.
12374
12375 2002-03-29 Steve Ellcey <sje@cup.hp.com>
12376
12377 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
12378 * config/ia64/ia64.c (basereg_operand): New.
12379 * config/ia64/ia64-protos.h (basereg_operand): Declare.
12380 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
12381
12382 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
12383
12384 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
12385 unwind information when frame_pointer_needed.
12386 (mmix_assemble_integer): Tweak wording in comment.
12387
12388 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
12389
12390 * Makefile.in (except.o): Update.
12391 * except.c: Include langhooks.h.
12392 (init_eh): Use langhook.
12393 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
12394 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
12395 (LANG_HOOKS_INITIALIZER): Update.
12396 * langhooks.h (lang_hooks_for_types): New.
12397 (struct lang_hooks): Add it.
12398 * tree.c (make_lang_type_fn, make_lang_type): Remove.
12399 * tree.h (make_lang_type_fn, make_lang_type): Remove.
12400 config:
12401 * alpha/alpha.c: Include langhooks.h.
12402 (alpha_build_va_list): Use langhook.
12403 * d30v/d30v.c: Include langhooks.h.
12404 (d30v_build_va_list): Use langhook.
12405 * i386/i386.c: Include langhooks.h.
12406 (ix86_build_va_list): Use langhook.
12407 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
12408 * s390/s390.c: Include langhooks.h.
12409 (s390_build_va_list): Use langhook.
12410 * stormy16/stormy16.c: Include langhooks.h.
12411 (stormy16_build_va_list): Use langhook.
12412
12413 2002-03-29 Jakub Jelinek <jakub@redhat.com>
12414
12415 PR c++/5964
12416 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
12417 attributes.
12418 (length): Compute variable length for branches/calls/jumps here.
12419 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
12420 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
12421 define branch_type attribute.
12422 (divsi3_sp32): Maximum length is 6 not 7.
12423 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
12424 call_address_untyped_struct_value_sp32,
12425 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
12426 * config/sparc/sparc.c (empty_delay_slot): New function.
12427 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
12428 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
12429
12430 2002-03-29 Jakub Jelinek <jakub@redhat.com>
12431
12432 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
12433 nonzero_bits if not needed.
12434 (nonzero_bits) [XOR]: Likewise.
12435 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
12436 reg_last_set_mode and mode are both MODE_INT, but not equal.
12437 (record_value_for_reg): Compute reg_last_set_nonzero_bits
12438 in nonzero_bits_mode for MODE_INT modes.
12439
12440 2002-03-28 Richard Henderson <rth@redhat.com>
12441
12442 PR target/5715
12443 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
12444 to GAS. Correct drift between alternatives.
12445
12446 2002-03-28 Richard Henderson <rth@redhat.com>
12447
12448 PR target/6087
12449 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
12450
12451 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
12452
12453 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
12454 emulation to the linker.
12455
12456 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
12457
12458 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
12459 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
12460
12461 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
12462
12463 * combine.c (simplify_and_const_int): Make sure to apply mask
12464 when force_to_mode returns a constant integer. PR3311.
12465
12466 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
12467
12468 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
12469
12470 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12471
12472 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
12473 and Objective-C Dialect Options.
12474
12475 2002-03-28 Richard Henderson <rth@redhat.com>
12476
12477 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
12478 comparison should be done vs !=0 not >0 return code. Tidy cases.
12479
12480 2002-03-28 Richard Henderson <rth@redhat.com>
12481
12482 * c-decl.c (finish_function): New arg can_defer_p. Pass it
12483 on to c_expand_body.
12484 * c-tree.h (finish_function): Update decl.
12485 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
12486
12487 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
12488
12489 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
12490
12491 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
12492
12493 * rtlanal.c: Include flags.h
12494 (may_trap_p): Do not mark FP operations if trapping
12495 if !flag_trapping_math
12496 * Makefile.in (rtlanal.o): Add dependency on flag.h
12497 * ifcvt.c (noce_operand_ok): Avoid the lameness.
12498
12499 2002-03-27 Zack Weinberg <zack@codesourcery.com>
12500
12501 * mips.md: Use dconst1, not 1.0, as first argument of
12502 REAL_VALUE_LDEXP. Don't use union real_extract.
12503
12504 2002-03-28 Alan Modra <amodra@bigpond.net.au>
12505
12506 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
12507 rather than $target. Heed program_prefix and
12508 program_transform_name. Search for gas in cross-compiler case too.
12509 "test -x" rather than "test -f".
12510 (gcc_cv_ld): Likewise.
12511 (gcc_cv_nm): Heed program_prefix and program_transform_name.
12512 (gcc_cv_objdump): Likewise.
12513 * configure: Regenerate.
12514
12515 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12516
12517 * Makefile.in (attribs.o): Update.
12518 * attribs.c: Include langhooks.h.
12519 (decl_attributes): Use langhook.
12520 * c-decl.c (insert_default_attributes): Rename.
12521 * c-tree.h (c_insert_default_attributes): New.
12522 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
12523 (LANG_HOOKS_INITIALIZER): Update.
12524 * langhooks.h (struct lang_hooks): New hook.
12525 * tree.h (insert_default_attributes): Remove.
12526 objc:
12527 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
12528
12529 2002-03-27 Andreas Schwab <schwab@suse.de>
12530
12531 * config/i386/i386.c (classify_argument): Also check for
12532 QUAL_UNION_TYPE.
12533
12534 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12535
12536 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
12537 any more.
12538
12539 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
12540
12541 * i960.md (ret): Set PC.
12542 (nonlocal_goto): Fix expander.
12543 * builtins.c (epxand_builin_longjmp): Check that we've emitted
12544 some jump or call.
12545
12546 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
12547
12548 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
12549 of libcall regions.
12550
12551 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12552
12553 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
12554 assigning to BLOCK_FOR_INSN directly.
12555
12556 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
12557
12558 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
12559
12560 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12561
12562 * c-common.c (c_expand_expr): Fix prototype.
12563 * c-common.h (c_expand_expr): Always declare, update.
12564 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12565 * c-objc-common.c (c_objc_common_init): No global hook.
12566 * expr.c (expand_expr): Use langhook.
12567 * expr.h (enum expand_modifier): Conditionally declare.
12568 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
12569 (LANG_HOOKS_INITIALIZER): Update.
12570 * langhooks.c (lhd_expand_expr): New.
12571 * langhooks.h (struct lang_hooks): New hook.
12572 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
12573 (lang_independent_init): Don't default hook.
12574 objc:
12575 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12576
12577 2002-03-27 Richard Henderson <rth@redhat.com>
12578
12579 PR target/6054
12580 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
12581 TARGET_CONST_GP. Simplify conditions.
12582
12583 2002-03-27 Richard Henderson <rth@redhat.com>
12584
12585 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12586 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
12587 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
12588
12589 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
12590
12591 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
12592 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
12593 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
12594 Remove unnecessary masks.
12595 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
12596 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
12597 -mwindows, -mdll switches and their negations.
12598
12599 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12600
12601 * gcc-common.c (lang_mark_false_label_stack): Remove.
12602 * ggc.h (lang_mark_false_label_stack): Similarly.
12603
12604 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
12605
12606 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
12607
12608 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
12609 or __rtems_ is defined.
12610
12611 2002-03-26 Richard Henderson <rth@redhat.com>
12612
12613 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
12614 if a non-trivial load was emitted.
12615 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
12616 in high+extra+low case.
12617
12618 2002-03-26 Richard Henderson <rth@redhat.com>
12619
12620 * config.gcc (sparc*-solaris): Use float_format=sparc.
12621
12622 2002-03-26 Richard Henderson <rth@redhat.com>
12623
12624 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12625 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
12626 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
12627 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
12628 (WINT_TYPE_SIZE): Fix at 32.
12629
12630 2002-03-26 Richard Henderson <rth@redhat.com>
12631
12632 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
12633 until after eh landing pad generation.
12634 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
12635 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
12636
12637 2002-03-26 Richard Henderson <rth@redhat.com>
12638
12639 * expr.h (ADD_PARM_SIZE): One more convert for INC.
12640
12641 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
12642
12643 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
12644 and warning switches.
12645 (cc1_options): Likewise.
12646
12647 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
12648
12649 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
12650 Restore more of the signal context. Set no_reg_stack_frame.
12651 * config/ia64/unwind-ia64.c (unw_state_record):
12652 Add no_reg_stack_frame, comments.
12653 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
12654 (uw_update_context): Adjust bsp when unwinding from leaf,
12655 but not signal frame.
12656
12657 2002-03-26 David Edelsohn <edelsohn@gnu.org>
12658
12659 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
12660
12661 2002-03-26 Bob Wilson <bob.wilson@acm.org>
12662
12663 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
12664
12665 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
12666
12667 PR target/5621
12668 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
12669 "Add a pool_range attribute", which was lost during the ARM/Thumb
12670 merge.
12671
12672 2002-03-26 Bob Wilson <bob.wilson@acm.org>
12673
12674 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
12675 a register into the MAC16 accumulator.
12676
12677 2002-03-26 Andrew Cagney <ac131313@redhat.com>
12678
12679 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
12680 (Warning Options): Document -Wswitch-enum.
12681 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
12682 -Wswitch.
12683 (warn_switch_enum): Define variables.
12684 * flags.h (warn_switch_enum): Declare variables.
12685 * stmt.c (expand_end_case_type): When warn_switch_enum /
12686 -Wswitch-enum, perform switch checks.
12687 Fix PR c/5044.
12688
12689 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
12690
12691 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
12692 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
12693 (reload_muladdsi_compare0_scratch): Delete.
12694
12695 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
12696
12697 * doc/install.texi (*-*-freebsd*): Update.
12698
12699 2002-03-26 Richard Henderson <rth@redhat.com>
12700
12701 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
12702 (SUB_PARM_SIZE): Cast DEC to ssizetype.
12703
12704 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
12705 types from the normal argument frame.
12706
12707 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
12708 variable sized objects by reference.
12709 (sparc_va_arg): Receive them by reference too.
12710
12711 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
12712
12713 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
12714 code to not restoring global registers.
12715
12716 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
12717
12718 * Makefile.in (ggc-common.o): Update.
12719 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
12720 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12721 * c-tree.h (c_mark_tree): New.
12722 * ggc-common.c: Include langhooks.h.
12723 (gcc_mark_trees): Use new langhook.
12724 * ggc-callbacks.c: Delete file.
12725 * ggc.h (lang_mark_tree): Remove.
12726 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
12727 (LANG_HOOKS_INITIALIZER): Update.
12728 * langhooks.h (struct lang_hooks): New hook.
12729 objc:
12730 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12731
12732 2002-03-25 Zack Weinberg <zack@codesourcery.com>
12733
12734 * doc/cpp.texi: Exclude entire Top node from printed manual.
12735 Move option index after directive index. Insert page breaks
12736 before GFDL and concept index. Index environment variables
12737 with command line options.
12738 * doc/cppenv.texi: Use @vtable for environment variable list.
12739 Add paragraph explaining semantics of empty elements in path
12740 variables. Exclude a cross-reference to Fishkill from the
12741 manpage. Remove an unnecessary cross-reference of the entry
12742 right above the referer. Don't use @anchor in text that goes
12743 into manpage.
12744 * doc/cppopts.texi: Cross-reference the environment variables
12745 section, not the specific environment variable, for consistency.
12746
12747 2002-03-25 Richard Henderson <rth@redhat.com>
12748
12749 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
12750 anywhere in the block. Don't refer to insns that have been
12751 removed from the chain. Iterate backward through the new insns.
12752 Don't refer to edges that have been removed.
12753
12754 2002-03-26 Alan Modra <amodra@bigpond.net.au>
12755
12756 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
12757 test for overflow of constant.
12758
12759 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
12760
12761 PR target/2623
12762 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
12763 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
12764 these patterns on arm_archv4.
12765
12766 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
12767
12768 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
12769 int".
12770
12771 2002-03-25 Zack Weinberg <zack@codesourcery.com>
12772
12773 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
12774 float_handled, float_handler, float_signal, set_float_handler,
12775 and do_float_handler. Set handler for SIGFPE to crash_signal.
12776 * toplev.h: Don't prototype do_float_handler.
12777
12778 * c-lex.c: Fold parse_float into lex_number. Make warning
12779 about portability of hex float constants more informative, and
12780 don't issue it on top of a syntax error.
12781 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
12782 their callers.
12783 * real.h: Define REAL_VALUE_ABS here...
12784 * simplify-rtx.c: ... not here. Fold check_fold_consts,
12785 simplify_unary_real, simplify_binary_real, and
12786 simplify_binary_is2orm1 into their callers.
12787 * tree.c: Fold build_real_from_int_cst_1 into caller.
12788
12789 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
12790
12791 * tsystem.h: Include float.h here...
12792 * libgcc2.c: ... not here.
12793
12794 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
12795
12796 Fixes for: PR bootstrap/3591, target/5676
12797 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
12798 defined. Do not disable exceptions or rtti.
12799 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
12800 mcore.h. Disable exceptions and rtti, since they are not
12801 supported by EPOC.
12802
12803 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
12804
12805 * c-decl.c (maybe_build_cleanup): Remove.
12806 * expr.c (expand_expr): Use langhook.
12807 * langhooks-def.h (lhd_return_null_tree,
12808 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
12809 (LANGHOOKS_INITIALIZER): Update.
12810 * langhooks.c (lhd_return_null_tree): New.
12811 * langhooks.h (struct lang_hooks): New hook.
12812 * tree-inline.c (initialize_inlined_parameters): Use langhook.
12813 * tree.h (maybe_build_cleanup): Remove.
12814
12815 2002-03-25 Jakub Jelinek <jakub@redhat.com>
12816
12817 * regrename.c (build_def_use): Move recog_memoized
12818 before extract_insn.
12819
12820 2002-03-25 Jakub Jelinek <jakub@redhat.com>
12821
12822 PR target/6043
12823 * expr.c (emit_group_store): Handle storing into CONCAT.
12824
12825 2002-03-25 Jakub Jelinek <jakub@redhat.com>
12826
12827 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
12828 corresponding MATCH_DUP.
12829
12830 2002-03-24 Richard Henderson <rth@redhat.com>
12831
12832 * unroll.c (unroll_loop): Zero label_map.
12833
12834 * gcse.c: Include except.h.
12835 * Makefile.in (gcse.o): Update.
12836
12837 2002-03-24 Richard Henderson <rth@redhat.com>
12838
12839 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
12840 Do resolve_unique_section before shared data clause.
12841
12842 2002-03-24 Richard Henderson <rth@redhat.com>
12843
12844 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
12845
12846 2002-03-24 Richard Henderson <rth@redhat.com>
12847
12848 * recog.c (peephole2_optimize): Split blocks when EH insns are
12849 generated in the middle of a block. Do global life update if
12850 zapped EH edges.
12851
12852 2002-03-24 Richard Henderson <rth@redhat.com>
12853
12854 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
12855
12856 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12857
12858 preprocessor/3951
12859 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
12860 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
12861 (init_dependency_output): Don't make no_output decision here.
12862
12863 2002-03-24 Andrew Cagney <ac131313@redhat.com>
12864
12865 * stmt.c (check_for_full_enumeration_handling): Remove tests of
12866 warn_switch. Update description.
12867 (expand_end_case_type): Call check_for_full_enumeration_handling
12868 when warn_switch.
12869
12870 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12871
12872 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
12873 (m68hc11_split_move): Call it to see if the source and destination
12874 operands use the same direction auto inc/dec mode, otherwise make the
12875 source an offsetable memory operand and generate an add.
12876
12877 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12878
12879 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
12880 register for operand 2.
12881 ("*subsi3_zero_extendqi"): Likewise.
12882 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
12883 bits so that it is compatible with a pop.
12884 ("*andhi3_gen"): Likewise.
12885 ("xorhi3"): Likewise.
12886
12887 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12888
12889 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
12890 -pedantic here...
12891 (cpp_post_options): ... not here.
12892
12893 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12894 Aldy Hernandez <aldyh@redhat.com>
12895
12896 Removal of separate preprocessor cpp0.
12897
12898 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
12899 cpp0, install-common): Update.
12900 * c-common.c (flag_preprocess_only): New.
12901 (c_common_init): Preprocess for -E.
12902 * c-common.h (flag_preprocess_only): New.
12903 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
12904 * c-objc-common.c (c_init_decl_processing): Exit quickly
12905 for NULL return from c_common_init.
12906 * cpplib.h (cpp_preprocess_file): New.
12907 * cppmain.c (main, general_init, pfile, progname): Remove.
12908 (do_preprocessing): Rename cpp_preprocess_file, don't call
12909 cpp_finish. Don't close stdout here.
12910 (setup_callbacks): Update prototype.
12911 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
12912 Update.
12913 * tradcpp.c (main): Ignore -quiet.
12914 objc:
12915 * lang-specs.h (default_compilers): Preprocess with cc1obj.
12916
12917 2002-03-24 Richard Henderson <rth@redhat.com>
12918
12919 PR optimization/5742
12920 * machmode.def: Add inner mode field to complex modes.
12921 * config/mips/mips.c (mips_function_value): Always define. Add
12922 new argument to handle libcalls.
12923 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
12924 (FUNCTION_VALUE): Likewise.
12925 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
12926 * config/mips/mips-protos.h: Update.
12927
12928 2002-03-23 Richard Henderson <rth@redhat.com>
12929
12930 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
12931 * config/sparc/sparc-protos.h: Update.
12932 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
12933
12934 2002-03-23 Richard Henderson <rth@redhat.com>
12935
12936 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
12937 _start or _init begins the text segment.
12938
12939 2002-03-23 David Edelsohn <edelsohn@gnu.org>
12940
12941 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
12942 not HOST_WIDEST_INT.
12943 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
12944
12945 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
12946
12947 PR java/5489
12948 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
12949 operand argument to output_return_instruction.
12950 * arm.c (arm_print_operand, case 'd'): If the operand is
12951 const_true_rtx then just return.
12952 (arm_print_operand, case 'D'): If the operand is const_true_rtx
12953 then abort.
12954
12955 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12956
12957 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
12958 (Warning Options): Document -Wswitch-default.
12959 * toplev.c (W_options): Add -Wswitch-default. Update comment on
12960 -Wswitch.
12961 (warn_switch_default): Define variable.
12962 (warn_switch): Update comment.
12963 * flags.h (warn_switch_default): Declare variable.
12964 (warn_switch): Update comment.
12965 * stmt.c (expand_end_case): Check for and, when
12966 warn_switch_no_default, warn of a missing default case.
12967
12968 2002-03-23 Alan Modra <amodra@bigpond.net.au>
12969
12970 * real.h (N): Special case 128 bit doubles.
12971
12972 * combine.c (simplify_comparison): When widening modes, ignore
12973 sign extension on CONST_INTs.
12974
12975 2002-03-22 Bob Wilson <bob.wilson@acm.org>
12976
12977 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
12978 passed to adjust_address. Fix comment formatting.
12979
12980
12981 2002-03-22 Zack Weinberg <zack@codesourcery.com>
12982
12983 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
12984 Always make REAL_VALUE_TYPE a struct containing an array of
12985 HOST_WIDE_INT, not a double. Tidy up the code deciding how
12986 big it is. Don't declare or use union real_extract.
12987
12988 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
12989 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
12990 (print_operand), config/arm/arm.c (output_move_double),
12991 config/arm/arm.md (consttable_4, consttable_8),
12992 config/romp/romp.c (output_fpops), config/s390/s390.h
12993 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
12994 (xtensa_output_literal): Don't use union real_extract.
12995
12996 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
12997 (sfmode_constant_to_ulong), config/ns32k/merlin.h
12998 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
12999 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
13000 (PRINT_OPERAND): Don't use local version of union
13001 real_extract.
13002
13003 * config/convex/convex.c (check_float_value), config/vax/vax.c
13004 (vax_float_literal), config/m88k/m88k.md (divdf3),
13005 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
13006 config/pdp11/pdp11.c (output_move_quad): Don't do host
13007 arithmetic on target floating point quantities.
13008
13009 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
13010 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
13011
13012 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
13013 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
13014
13015 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
13016 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
13017 INFINITY.
13018 * print-rtl.c (print_rtx): Disable code which needs
13019 floating-point emulator.
13020 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
13021 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
13022 depending on HOST_FLOAT_FORMAT to be defined properly.
13023
13024 * config/1750a/1750a.c (get_double, float_label): Delete.
13025 (print_operand): Delete huge commented-out chunk. Use
13026 REAL_VALUE_TO_DECIMAL.
13027 * config/1750a/1750a-protos.h: Delete prototypes of deleted
13028 functions.
13029 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
13030 IEEE_FLOAT_FORMAT.
13031 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
13032 Use REAL_VALUE_TO_DECIMAL as ELF version does.
13033 * config/m88k/m88k.c (real_power_of_2_operand,
13034 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
13035 real_extract out of the union; run the input through
13036 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
13037 from that into the union.
13038 * config/pdp11/pdp11.c (output_move_double): Rearrange
13039 parentheses to make automatic indenter happy.
13040
13041 * doc/tm.texi (Cross-compilation): Rename node to "Floating
13042 Point" and rewrite to describe current situation. Also adjust
13043 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
13044 match code.
13045 * doc/rtl.texi: Adjust cross reference.
13046
13047 2002-03-22 Bob Wilson <bob.wilson@acm.org>
13048
13049 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
13050 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
13051 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
13052 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
13053 prevent use of sp as a reload register.
13054 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
13055 non_acc_reg_operand.
13056 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
13057 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
13058 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
13059 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
13060
13061 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
13062
13063 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
13064 * cpplex.c (unterminated): Delete.
13065 (parse_string): No string literal may extend over multiple
13066 lines. Suppress the error when preprocessing assembly.
13067 * cppmain.c (scan_translation_unit): Strings are single-line.
13068
13069 * doc/cpp.texi: Update to match.
13070
13071 2002-03-22 Jakub Jelinek <jakub@redhat.com>
13072
13073 PR optimization/5854
13074 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
13075 Shut up warnings.
13076 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
13077 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
13078 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
13079 const0 if scratch register was not allocated.
13080 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
13081 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
13082 with GEN_INT (...).
13083 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
13084 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
13085 with GEN_INT (...) everywhere. Remove constraints in define_split
13086 patterns.
13087 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
13088 require scratch register for setting 0 into regs/non-pushable memory.
13089
13090 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
13091
13092 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
13093 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
13094
13095 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
13096
13097 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
13098 * cppinit.c (cpp_create_reader): On by default.
13099 (cpp_handle_option): Handle -W[no-]endif-labels.
13100 (cpp_post_options): Also enable if -pedantic.
13101 * cpplib.c (do_else): Use it.
13102 (do_endif): Likewise.
13103 * doc/cppopts.texi: Document new option.
13104 * doc/invoke.texi: Document new option.
13105
13106 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
13107
13108 * config/i386/i386.c, config/i386/i386.md: Change all occurences
13109 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
13110
13111 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
13112
13113 * flow.c (calculate_global_regs_live): Clear aux fields of
13114 ENTRY and EXIT.
13115
13116 2002-03-22 Jakub Jelinek <jakub@redhat.com>
13117
13118 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
13119 REG or MEM subregs, pass rtx * instead of rtx to it.
13120 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
13121 rtx * instead of rtx to alter_subreg.
13122 * config/m32r/m32r.c (gen_split_move_double): Likewise.
13123 * config/pj/pj.c (pj_output_rval): Likewise.
13124
13125 2002-03-22 Richard Henderson <rth@redhat.com>
13126
13127 PR target/3177
13128 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
13129 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
13130 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
13131 (ia64_expand_prologue): Look at int_regs, not words, for number
13132 of incomming int regs.
13133
13134 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
13135
13136 * expr.c (expand_expr): A RESULT_DECL is part of a call.
13137
13138 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
13139
13140 * toplev.c (flag_loop_optimize, flag_crossjumping):
13141 New static variables.
13142 (rest_of_compilation): Conditionalize crossjumping and
13143 loop optimizer.
13144 (parse_options_and_default_flags): Default loop_optimize and
13145 crossjumping.
13146 (lang_independent_options): Add -fcrossjumping and -floop-optimize
13147 * invoke.texi (crossjumping, loop-optimize): Document.
13148
13149 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
13150
13151 * real.c (eiisneg): Move outside #ifdef NANS.
13152
13153 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
13154
13155 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
13156 frequencies match; avoid match on different loop depths.
13157 (try_crossjump_to_bb): Kill tests that no longer brings time
13158 savings.
13159 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
13160 updating code.
13161 (split_edge): Likewise.
13162
13163 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
13164 variable.
13165
13166 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
13167 * cfgrtl.c: Include insn-config.h
13168 (split_block) Dirtify block in presence of conditional execution
13169
13170 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
13171
13172 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
13173 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
13174 (function_arg): Constify CUMULATIVE_ARGS.
13175 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
13176 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
13177 (UNITS_PER_DOUBLE): New macro.
13178 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
13179 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
13180 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
13181 fp_regs and stack_words.
13182 (EABI_FLOAT_VARARGS_P): New macro.
13183 * config/mips/mips.c (struct mips_arg_info): New.
13184 (mips_arg_info): New function.
13185 (function_arg_advance): Use it. Add adjustment instructions here
13186 rather than in function_arg.
13187 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
13188 for VOIDmode at the beginning of the function.
13189 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
13190 (function_arg_pass_by_reference): Likewise.
13191 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
13192 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
13193 (mips_va_start): Likewise. Use the new stack_words field of
13194 CUMULATIVE_ARGS to set up overflow area. Reformat.
13195 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
13196 doubles and other types, aligning the overflow pointer for non-doubles
13197 too. Remove some code duplication. Replace hard-coded constants.
13198
13199 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
13200
13201 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
13202 (CLASS_UNITS): Undefine.
13203 (CLASS_MAX_NREGS): Use FP_INC.
13204 * config/mips/mips.c (compute_frame_size): Likewise.
13205 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
13206
13207 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
13208
13209 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
13210 prototype, and handle lexing numbers and identifiers.
13211 (parse_identifier): Update to new form of parse_slow.
13212 (parse_number): Fast path only, use parse_slow otherwise.
13213 (_cpp_lex_direct): Update calls to parse_number.
13214
13215 2002-03-21 DJ Delorie <dj@redhat.com>
13216
13217 * bb-reorder.c (make_reorder_chain_1): Protect against
13218 when redundant edges are omitted.
13219 * predict.c (dump_prediction): Likewise.
13220
13221 2002-03-21 Richard Henderson <rth@redhat.com>
13222
13223 PR target/5996
13224 * fixinc/inclhack.def (solaris_stdio_tag): New.
13225 * fixinc/fixincl.x: Regenerate.
13226
13227 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
13228
13229 PR c/5597
13230 * c-typeck.c (process_init_element): Flag non-static
13231 initialization of a flexible array member as illegal.
13232
13233 2002-03-22 Alan Modra <amodra@bigpond.net.au>
13234
13235 * config/rs6000/t-linux64: New.
13236 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
13237 t-ppccomm. Use t-rs6000 and t-linux64.
13238 (powerpc64-*-gnu* <tmake_file>): Likewise.
13239 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
13240 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
13241 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
13242
13243 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
13244
13245 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
13246 flag_really_no_inline instead of optimize == 0.
13247
13248 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
13249
13250 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
13251
13252 * flags.h (flag_really_no_inline): New.
13253
13254 * c-common.c (c_common_post_options): Initialize
13255 flag_really_no_inline.
13256
13257 * toplev.c (flag_really_no_inline): New.
13258
13259 2002-03-21 Jakub Jelinek <jakub@redhat.com>
13260
13261 * config/avr/avr.md (length): Fix length computation for
13262 conditional branches.
13263
13264 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
13265
13266 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
13267 sdbout.o, profile.o): Update.
13268 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
13269 langhook.
13270 * c-common.h (gettags): Move here from tree.h.
13271 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
13272 insert_block, getdecls, kept_level_p, global_bindings_p): New.
13273 * dbxout.c (dbxout_init): Use getdecls langhook.
13274 * expr.c (expand_expr): Use insert_block langhook.
13275 * fold-const.c: Include langhooks.h.
13276 (fold_range_test, fold_binary_op_with_conditional_arg,
13277 fold): Use global_bindings_p langhook.
13278 * integrate.c (expand_inline_function): Use insert_block langhook.
13279 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
13280 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
13281 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
13282 LANG_HOOKS_GETDECLS): New.
13283 (LANG_HOOKS_INITIALIZER): Update.
13284 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
13285 langhook.
13286 * langhooks.h (struct lang_hooks_for_decls): New.
13287 (struct lang_hooks): Update.
13288 * profile.c: Include langhooks.h.
13289 (output_func_start_profiler): Use new langhooks.
13290 * sdbout.c: Include langhooks.h.
13291 (sdbout_init, sdbout_finish): Use getdecls langhook.
13292 * stmt.c: Include langhooks.h.
13293 (expand_fixup, fixup_gotos): Use new langhooks.
13294 * stor-layout.c: Include langhooks.h.
13295 (variable_size): Use global_bindings_p langhook.
13296 * toplev.c (compile_file): Use getdecls langhook.
13297 * tree-inline.c (remap_block): Use insert_block langhook.
13298 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
13299 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
13300
13301 2002-03-21 Richard Henderson <rth@redhat.com>
13302
13303 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
13304 constants in .data when -fpic.
13305
13306 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13307
13308 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
13309 where appropriate.
13310
13311 2002-03-21 Tom Tromey <tromey@redhat.com>
13312
13313 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
13314
13315 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13316
13317 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
13318
13319 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
13320
13321 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
13322 Richard Henderson <rth@redhat.com>
13323
13324 PR c/5354
13325 * c-common.c (c_expand_expr): Preserve result of a statement
13326 expression if needed.
13327
13328 2002-03-21 Jakub Jelinek <jakub@redhat.com>
13329
13330 PR bootstrap/4195
13331 * genrecog.c (maybe_both_true_mode): Remove.
13332 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
13333 * machmode.def (Pmode): Likewise.
13334
13335 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
13336
13337 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
13338 (nonlocal_mentioned_p_1): New function.
13339 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
13340 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
13341 (mark_constant_function): Recognize pure functions.
13342 * rtl.h (global_reg_mentioned_p): New prototype.
13343 * rtlanal.c (global_reg_mentioned_p,
13344 global_reg_mentioned_p_1): New function.
13345
13346 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13347
13348 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
13349 UNIX assert.h.
13350 * fixinc/fixincl.x: Regenerate.
13351
13352 2002-03-20 Jason Merrill <jason@redhat.com>
13353
13354 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
13355
13356 2002-03-20 Michael Meissner <meissner@redhat.com>
13357
13358 * doc/invoke.texi (Optimize Options): Document that -O2 sets
13359 -fstrict-aliasing.
13360
13361 2002-03-20 Bob Wilson <bob.wilson@acm.org>
13362
13363 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
13364 ".literal_position" directive before the constant pool.
13365
13366 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13367
13368 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
13369 Add Craig Rodrigues.
13370 Add Brad Lucier to testers.
13371
13372 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13373
13374 PR target/4792
13375 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
13376 to if_then_else.
13377 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
13378 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
13379 instead of insn_extract.
13380
13381 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13382
13383 PR bootstrap/4192
13384 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
13385
13386 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
13387 stmt if some case has been output.
13388
13389 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13390
13391 PR c/5972
13392 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
13393 movsfcc_1, movdfcc_1): Add %O2.
13394 * config/i386/i386.c (print_operand): Handle %ON.
13395 Print . before float condition codes in Sun as cmov syntax.
13396 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
13397 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
13398 no longer true.
13399
13400 2002-03-20 Philip Blundell <pb@nexus.co.uk>
13401
13402 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
13403 return instruction if PC was popped.
13404
13405 2002-03-20 Bob Wilson <bob.wilson@acm.org>
13406
13407 * config/xtensa/xtensa.md: Remove unused type attributes.
13408 (adddi_carry, subddi_carry): Change type attribute to "multi".
13409
13410 2002-03-19 Dale Johannesen <dalej@apple.com>
13411
13412 PR optimization/5999, middle-end/5731
13413 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
13414 multiplications by reciprocals.
13415
13416 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
13417
13418 * Makefile.in: Update.
13419 * c-common.c: Include langhooks.h.
13420 (inline_forbidden_p): Use new hook.
13421 * diagnostic.c: Include langhooks.h.
13422 (format_with_decl, announce_function,
13423 default_print_error_function): Use new hook.
13424 * dwarf2out.c (dwarf2_name): Use new hook.
13425 * function.c: Include langhooks.h.
13426 (init_function_start): Use new hook.
13427 * langhooks-def.h (lhd_decl_printable_name): New.
13428 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
13429 (LANGHOOKS_INITIALIZER): Update.
13430 * langhooks.c (lhd_decl_printable_name): New.
13431 * langhooks.h (struct lang_hooks): New hook.
13432 * toplev.c (decl_name, decl_printable_name): Remove.
13433 (open_dump_file): Use new hook.
13434 (process_options): Remove old hook.
13435 * tree.h (decl_printable_name): Remove.
13436 objc:
13437 * objc-act.c (objc_init): Remove old hook.
13438 (objc_printable_name): Export.
13439 * objc-act.h (objc_printable_name): New.
13440 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
13441
13442 2002-03-19 Jim Blandy <jimb@redhat.com>
13443
13444 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
13445 the start_source_file debug hook, not the current line number.
13446
13447 2002-03-19 Richard Henderson <rth@redhat.com>
13448
13449 * flow.c (EH_USES): Provide default.
13450 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
13451 * doc/tm.texi (EH_USES): New.
13452
13453 * config/ia64/ia64.c (ia64_eh_uses): New.
13454 * config/ia64/ia64-protos.h: Update.
13455 * config/ia64/ia64.h (EH_USES): New.
13456
13457 2002-03-19 Richard Henderson <rth@redhat.com>
13458
13459 * varasm.c (output_constant_def): Fix stupid typo.
13460
13461 2002-03-19 Richard Henderson <rth@redhat.com>
13462
13463 PR 5879
13464 * except.c (current_function_has_exception_handlers): New.
13465 * except.h: Declare it.
13466 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
13467 Combine tests that disable all sibcalls for the function.
13468
13469 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
13470
13471 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
13472 for INTEGER_CST.
13473
13474 2002-03-19 Richard Henderson <rth@redhat.com>
13475
13476 PR 5977, 5991
13477 * config/ia64/ia64.c: Revert 2002-03-01 patch.
13478 * config/ia64/ia64.h (INIT_EXPANDERS): New.
13479
13480 2002-03-19 Jim Blandy <jimb@redhat.com>
13481
13482 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
13483 name, even if the replacement list contains no tokens, as required
13484 by Dwarf.
13485
13486 2002-03-19 Jason Merrill <jason@redhat.com>
13487
13488 * varasm.c (globalize_decl): Get the name from the RTL, not
13489 DECL_ASSEMBLER_NAME.
13490
13491 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
13492
13493 2002-03-19 Bob Wilson <bob.wilson@acm.org>
13494
13495 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
13496 subdi_carry): Define.
13497
13498 2002-03-19 David Edelsohn <edelsohn@gnu.org>
13499
13500 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
13501 about -fpic/-fPIC if extra_warnings set.
13502
13503 2002-03-19 David Edelsohn <edelsohn@gnu.org>
13504
13505 * expr.c (expand_expr): Sign-extend CONST_INT generated from
13506 TREE_STRING_POINTER.
13507 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
13508
13509 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13510
13511 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
13512 in favor of SP if FRAME_POINTER_REQUIRED is false.
13513
13514 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
13515
13516 * emit-rtl.c (gen_int_mode): New function.
13517 * rtl.h: Prototype for it.
13518 * combine.c (make_extraction, simplify_comparison), expmed.c
13519 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
13520 (convert_modes, store_field), optabs.c (expand_fix),
13521 simplify-rtx.c (neg_const_int, simplify_unary_real),
13522
13523 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
13524 Use it instead of GEN_INT (trunc_int_for_mode (...)).
13525
13526 2002-03-19 Jakub Jelinek <jakub@redhat.com>
13527
13528 PR c/5656
13529 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
13530 convert_parm_for_inlining.
13531 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13532 Define.
13533 * langhooks-def.h: Likewise.
13534 * objc/objc-lang.c: Likewise.
13535 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
13536 function.
13537 * tree-inline.c (initialize_inlined_parameters):
13538 Call convert_parm_for_inlining lang hook if needed.
13539 * c-typeck.c (c_convert_parm_for_inlining): New function.
13540 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
13541
13542 2002-03-18 Mark Mitchell <mark@codesourcery.com>
13543
13544 * calls.c (precompute_arguments): Do not assume that temporaries
13545 can be destroyed after expanding the argument.
13546 (expand_call): Likewise.
13547
13548 2002-03-15 Eric Christopher <echristo@redhat.com>
13549
13550 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
13551 Fix register preference on last change.
13552 * config/mips/mips.c (mips_return_in_memory): New function.
13553 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
13554 * config/mips/mips-protos.h: Declare.
13555 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
13556 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
13557
13558 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
13559
13560 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
13561 a register too.
13562 (anddi3, iorsi3): Likewise.
13563
13564 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
13565 use %gprel for symbols that are going to be placed in linkonce
13566 sections.
13567
13568 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
13569 RETURN_ADDRESS_POINTER_REGNUM to $ra.
13570 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
13571 not needed. Disregard leaf_function_p().
13572 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
13573 mips16 frame pointer.
13574 * config/mips/mips.md (store ra): Only to small SP offsets.
13575 2001-08-22 Graham Stott <grahams@redhat.com>
13576 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
13577 return a REG rtx for the return address register.
13578
13579 2002-03-18 Bob Wilson <bob.wilson@acm.org>
13580
13581 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
13582 constant-pool addresses as "mode-dependent".
13583 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
13584
13585 2002-03-18 Jakub Jelinek <jakub@redhat.com>
13586
13587 PR target/5740
13588 * expr.c (emit_group_load): Use extract_bit_field if
13589 needed for CONCAT arguments.
13590
13591 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
13592
13593 PR target/4863
13594 * arm.md (tablejump): Make this a define_expand. For PIC add the
13595 offset to the base of the table.
13596 (thumb_tablejump): Matcher for Thumb tablejump insn.
13597 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
13598 as the difference of two labels.
13599 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13600 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
13601 tables in the code.
13602 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
13603 * arm.c (get_jump_table_size): If the table is not in the text
13604 section, return zero.
13605
13606 2002-03-18 Bernd Schmidt <bernds@redhat.com>
13607
13608 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
13609 of gen_rtx_SUBREG.
13610 (arm_reload_out_hi): Use gen_lowpart instead of
13611 gen_rtx_SUBREG to access QImode components.
13612 * config/arm/arm.md: Disable zero_extend split for QImode
13613 subregs in BIG_ENDIAN mode.
13614 (storehi_bigend): Match use of least significant byte.
13615 (storeinthi): Remove extraneous SUBREG.
13616 Add missing construction of operands[2].
13617 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
13618 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
13619 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
13620
13621 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
13622
13623 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
13624 any_operand.
13625
13626 2002-03-17 Richard Henderson <rth@redhat.com>
13627
13628 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
13629 explicitly.
13630
13631 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
13632
13633 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
13634 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
13635
13636 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13637
13638 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
13639
13640 * predict.c (estimate_bb_frequencies): Delete unused variables.
13641
13642 2002-03-17 Richard Henderson <rth@redhat.com>
13643
13644 * config/ia64/ia64.c (ia64_attribute_table): Move before
13645 targetm definition. Make static.
13646
13647 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
13648
13649 * c-common.h (yyparse, c_common_parse_file): New.
13650 * c-lang.c: Include c-common.h.
13651 (LANG_HOOKS_PARSE_FILE): Redefine.
13652 * c-lex.c: Include c-common.h.
13653 (yyparse): Rename c_common_parse_file. Call yyparse.
13654 * c-parse.in (yyparse): Remove macro.
13655 * c-tree.h (yyparse_1): Remove.
13656 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
13657 (LANG_HOOKS_INITIALIZER): Update.
13658 * langhooks.h (struct lang_hoooks): New hook parse_file.
13659 * toplev.c (compile_file): Use parse_file hook.
13660 * tree.h (yyparse): Remove.
13661 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
13662
13663 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
13664
13665 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
13666 float_truncate, not fix.
13667 ("*truncdfsf2_real"): Ditto.
13668 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
13669
13670 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
13671
13672 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
13673
13674 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
13675 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
13676 where appropriate. Make the second reference to
13677 leaf_function_p a function call, as intended. Reindented.
13678
13679 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
13680 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
13681
13682 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
13683 add register to non-constant into sp.
13684
13685 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
13686 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
13687 (mips16_gp_pseudo_rtx): Lose.
13688 (INIT_EXPANDERS): Deleted.
13689 * config/mips/mips.c (mips_init_machine_status): New.
13690 (mips_free_machine_status): New.
13691 (mips_mark_machine_status): New.
13692 (override_options): Set them.
13693 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
13694 (struct machine_function): ... new. Replaced all references.
13695 (mips_add_gc_roots): Don't mark them.
13696 (embedded_pic_fnaddr_reg): New, extracted from...
13697 (embedded_pic_offset): ... here.
13698 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
13699 (movsi): Likewise.
13700
13701 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
13702
13703 * cppinit.c: Revert -MD removal.
13704
13705 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13706
13707 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
13708 soft registers by default for 68HC12.
13709 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
13710 when compiling with -fomit-frame-pointer.
13711 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
13712 (expand_epilogue): Likewise.
13713 (m68hc11_gen_rotate): Use exg when rotating by 8.
13714
13715 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13716
13717 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
13718 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
13719 (splits): Remove unused add splits.
13720 ("*addhi3_68hc12"): Tune constraints.
13721 ("addhi_sp"): Try to use X instead of Y in all cases and if the
13722 constant fits in 8-bits and D is dead use abx/aby instructions.
13723 ("*addhi3"): Remove extern declaration of ix_reg.
13724 ("*subsi3"): Optimize and provide new split.
13725 ("subhi3"): Cleanup.
13726 ("*subhi3_sp"): Avoid saving X if we know it is dead.
13727 (arith splits): For 68hc12 save the address register on the stack
13728 and do the arithmetic operation with a pop.
13729
13730 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13731
13732 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
13733 allocating QImode in address registers.
13734 ("*movqi_m68hc11"): Likewise.
13735
13736 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
13737
13738 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
13739
13740 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
13741
13742 * cppinit.c (print_help): Display -MD and -MMD.
13743 Don't display usage string. Update assertion syntax and
13744 typo.
13745 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
13746 (cpp_handle_option): Update.
13747
13748 2002-03-15 Chris Demetriou <cgd@broadcom.com>
13749
13750 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
13751 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
13752 and define it so that regardless of target CPU size,
13753 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
13754 of "int" rather than "long."
13755
13756 2002-03-15 Richard Henderson <rth@redhat.com>
13757
13758 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
13759 size as a tree.
13760
13761 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13762
13763 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
13764 ("tstqi" split): Avoid using memory for tstqi on address register.
13765 (splits): Remove constraints.
13766 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
13767 ("cmpdf", "cmpsf"): Remove since not used.
13768 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
13769 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
13770
13771 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13772
13773 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
13774 ("neghi2"): Tighten constraints.
13775 ("one_cmplsi2"): Optimize and simplify split.
13776 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
13777
13778 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13779
13780 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
13781 and split of AND operation to clear the upper bits.
13782 ("*logicalsi3_zextqi"): Likewise.
13783 ("*logicallhi3_zexthi_ashift8"): Likewise.
13784 ("*logicalsi3_silshr16"): Likewise.
13785 ("logicalsi3_silshl16"): Likewise.
13786 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
13787
13788 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13789
13790 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
13791 (m68hc11_indirect_p): New function.
13792 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
13793 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
13794 TARGET_M6812.
13795 (asm_print_register): Likewise.
13796 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
13797 (m68hc11_indirect_p): Declare.
13798 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
13799 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
13800 (TARGET_SWITCHES): New option -mrelax.
13801 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
13802 destination.
13803 ("iorsi3", "xorsi3"): Likewise.
13804 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
13805 ("*andhi3_mem"): New to handle destination in memory with bclr
13806 and a scratch register.
13807 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
13808 ("*andhi3_const"): New when operand2 is constant.
13809 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
13810 ("*andhi3_gen"): Cleanup of the old "andhi3".
13811 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
13812 ("xorqi3"): Update constraints.
13813
13814 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13815
13816 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
13817 for reg_equiv_memory_loc when the operand is a register that does
13818 not get a hard register (stack location).
13819 (tst_operand): After reload, accept all memory operand.
13820 (symbolic_memory_operand): Fix detection of symbolic references.
13821 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
13822 accept symbols and any constant.
13823
13824 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13825
13826 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
13827 note on the insn that sets the soft frame register.
13828 (must_parenthesize): ix and iy are also reserved names.
13829 (print_operand_address): One more place where parenthesis are required
13830 to avoid confusion with register names.
13831 (m68hc11_gen_movhi): Allow push of stack pointer.
13832 (m68hc11_check_z_replacement): Fix handling of parallel with a
13833 clobber.
13834 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
13835 the replacement register is.
13836 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
13837 and D8_REGS classes.
13838 (MODES_TIEABLE_P): All modes are tieable except QImode.
13839
13840 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13841
13842 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
13843 (___subdi3): Likewise.
13844 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
13845 (__map_data_section): Optimize 68hc11 case.
13846
13847 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13848
13849 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
13850 than a shift to avoid adding a register with itself.
13851 (m68hc11_memory_move_cost): Take into account NO_REGS.
13852 (m68hc11_register_move_cost): Update and use memory move cost
13853 for soft registers.
13854 (m68hc11_address_cost): Make cost of valid offset not 0 so that
13855 it gives more opportunities to cse to optimize.
13856 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
13857 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
13858
13859 2002-03-15 Mark Mitchell <mark@codesourcery.com>
13860
13861 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
13862 * c-common.def (CLEANUP_STMT): New tree node.
13863 * c-common.h (CLEANUP_DECL): New macro.
13864 (CLEANUP_EXPR): Likewise.
13865 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
13866 * expr.c (expand_expr): Tidy.
13867 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
13868 * tree-inline.c (initialize_inlined_parameters): Clean up
13869 new local variables.
13870
13871 2002-03-15 Jakub Jelinek <jakub@redhat.com>
13872
13873 PR bootstrap/4128
13874 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
13875 before movrXX only, use reg_overlap_mentioned_p.
13876 Only special case NE if just one insn can be generated.
13877
13878 2002-03-15 Jason Merrill <jason@redhat.com>
13879
13880 * varasm.c (assemble_variable): Call resolve_unique_section before
13881 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
13882 of error_mark_node.
13883
13884 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
13885
13886 PR target/5170
13887 * arm.md (split pattern for thumb shiftable immediates): Add comment
13888 explaining non-obvious test.
13889
13890 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
13891
13892 PR target/5712
13893 * arm.md (movaddr, movaddr_insn): Delete.
13894
13895 2002-03-15 Jason Merrill <jason@redhat.com>
13896
13897 * toplev.c (wrapup_global_declarations): Clarify variable handling.
13898 -fkeep-static-consts doesn't apply to comdats.
13899
13900 2002-03-14 Richard Henderson <rth@redhat.com>
13901
13902 * c-decl.c: Include c-pragma.h.
13903 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
13904 (finish_function): Tidy.
13905 * c-pragma.c: Include c-common.h.
13906 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
13907 (handle_pragma_weak): Use them.
13908 (init_pragma): Register pending_weaks.
13909 * c-pragma.h (maybe_apply_pragma_weak): Declare.
13910 * print-tree.c (print_node): Print DECL_WEAK.
13911 * varasm.c (mark_weak_decls): Remove.
13912 (remove_from_pending_weak_list): Remove.
13913 (add_weak): Remove.
13914 (asm_emit_uninitialised): Call globalize_decl for weak commons.
13915 (weak_decls): Make a tree_list.
13916 (declare_weak): Cons weak_decls directly.
13917 (globalize_decl): Remove weak_decls elements directly.
13918 (weak_finish): Simplify weak_decls walk. Don't weaken unused
13919 symbols. Don't pretend to handle aliases.
13920 (init_varasm_once): Update weak_decls registry.
13921 * Makefile.in: Update dependencies.
13922
13923 2002-03-14 Richard Henderson <rth@redhat.com>
13924
13925 PR target/5312
13926 * config/ia64/ia64.c: Include tm_p.h last.
13927 (gen_nop_type): Remove duplicate definition.
13928 (cycle_end_fill_slots): Set sched_data for second L slot.
13929 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
13930 (nop_cycles_until): Fix typos.
13931
13932 2002-03-15 Jakub Jelinek <jakub@redhat.com>
13933
13934 PR optimization/5891
13935 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
13936
13937 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
13938
13939 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
13940 descriptors correctly.
13941
13942 2002-03-14 Michael Meissner <meissner@redhat.com>
13943
13944 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
13945 100, allowing MAX_UNROLLED_INSNS to be overridden.
13946
13947 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
13948 --param.
13949
13950 * unroll.c (params.h): Include.
13951 (MAX_UNROLLED_INSNS): Delete, now in params.h.
13952
13953 * doc/invoke.texi (--param max-unroll-insns): Document.
13954
13955 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
13956
13957 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
13958
13959 * arm.md: Fix warnings about constraints in peepholes and splits.
13960
13961 2002-03-14 Zack Weinberg <zack@codesourcery.com>
13962
13963 * cpphash.h (struct lexer_state): Remove line_extension member.
13964 * cpplib.c (dequote_string, do_linemarker): New functions.
13965 (linemarker_dir): New data object.
13966 (DIRECTIVE_TABLE): No longer need to interpret #line in
13967 preprocessed source. Delete obsolete comment about return
13968 values of handlers.
13969 (end_directive, directive_diagnostics, _cpp_handle_directive):
13970 Don't muck with line_extension.
13971 (directive_diagnostics): No need to issue warnings for
13972 linemarkers here.
13973 (_cpp_handle_directive): Issue warnings for linemarkers here,
13974 when appropriate. Dispatch linemarkers to do_linemarker, not
13975 do_line.
13976 (do_line): Code to handle linemarkers split out to do_linemarker.
13977 Convert escape sequences in filename argument, both places.
13978
13979 * cppmacro.c (quote_string): Rename cpp_quote_string and
13980 export. All callers changed.
13981 * cpplib.h (cpp_quote_string): Prototype.
13982 * cppmain.c (print_line): Call cpp_quote_string on to_file
13983 before printing it.
13984
13985 * doc/cpp.texi: Document that escapes are now interpreted in
13986 #line and in linemarkers, and that non-printing characters are
13987 converted to octal escapes when linemarkers are generated.
13988
13989 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
13990
13991 * emit-rtl.c (try_split): Use delete_insns.
13992 * recog.c (split_all_insns): Fix terminating condition.
13993
13994 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
13995 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
13996
13997 PR target/5828
13998 * arm.c (arm_output_epilogue): Fix floating-point register save
13999 adjustment when using a frame pointer.
14000
14001 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
14002
14003 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
14004 * config/mips/mips.c (compute_frame_size): Retrofit them here.
14005 (save_restore_insns, mips_expand_epilogue): And here.
14006 (build_mips16_call_stub): And here.
14007 (mips_function_value): Use the new macros to decide whether a single
14008 or complex float can be returned in floating-point registers. Return
14009 a parallel rtx in the complex case.
14010
14011 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
14012
14013 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
14014 call after liveness analysis.
14015
14016 * recog.c (split_insn): Use delete_insn_and_edges.
14017
14018 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
14019 instructions to have branch prediction notes.
14020 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
14021
14022 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
14023
14024 * configure.in: Don't pass -Wno-long-long to a ADA compiler
14025 that doesn't support it.
14026 * configure: Regenerate.
14027
14028 2002-03-13 Jakub Jelinek <jakub@redhat.com>
14029
14030 PR target/5626
14031 * config/sparc/sparc.md (normal_branch, inverted_branch,
14032 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
14033 inverted_fp_branch): Adjust calls to output_cbranch.
14034 Set length attribute.
14035 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
14036 output_v9branch. Set length attribute.
14037 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
14038 predicates.
14039 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
14040 (output_cbranch): Likewise. Handle far branches.
14041 (output_v9branch): Handle far branches.
14042 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
14043 Adjust prototypes.
14044 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
14045 noov_compare64_op predicates.
14046
14047 2002-03-13 Jason Merrill <jason@redhat.com>
14048
14049 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
14050 into the function and constify it.
14051 * gthr-dce.h, gthr-solaris.h: Likewise.
14052
14053 2002-03-13 David Edelsohn <edelsohn@gnu.org>
14054
14055 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
14056 * config/rs6000/rs6000.c (rs6000_va_arg): Use
14057 std_expand_builtin_va_arg if not ABI_V4.
14058
14059 2002-03-13 Jason Merrill <jason@redhat.com>
14060
14061 * varasm.c (globalize_decl): New fn.
14062 (assemble_start_function): Use it.
14063 (asm_emit_uninitialized): Use it.
14064 (assemble_alias): Use it.
14065 (assemble_variable): Use it.
14066
14067 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
14068
14069 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
14070 2002-03-12 internal visibility change.
14071 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
14072 visibility into SYMBOL_REF_FLAG.
14073
14074 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
14075
14076 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
14077 VOIDmode operand. Add compile-time optimization for constant results.
14078
14079 2002-03-12 Jason Merrill <jason@redhat.com>
14080
14081 * c-typeck.c (convert_for_assignment): Don't allow conversions
14082 between pointers and references. Only allow lvalues to convert to
14083 reference.
14084
14085 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
14086
14087 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
14088 before prologue, to avoid scheduling problems.
14089
14090 2002-03-13 Jakub Jelinek <jakub@redhat.com>
14091
14092 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
14093 (ELIMINABLE_REGS): Add sfp->sp.
14094 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
14095
14096 2002-03-13 Jakub Jelinek <jakub@redhat.com>
14097
14098 PR optimization/5892
14099 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
14100
14101 2002-03-13 Jakub Jelinek <jakub@redhat.com>
14102
14103 * loop.c (basic_induction_var): Don't call convert_modes if mode
14104 classes are different.
14105
14106 2002-03-12 Richard Henderson <rth@redhat.com>
14107
14108 PR optimization/5901
14109 * function.c (reposition_prologue_and_epilogue_notes): Position
14110 the markers after/before the last/first insn not deleted.
14111
14112 2002-03-12 Richard Henderson <rth@redhat.com>
14113
14114 PR optimization/5878
14115 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
14116 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
14117 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
14118
14119 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
14120 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
14121 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
14122
14123 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
14124 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
14125 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
14126 also. Don't set it if not flag_pic.
14127 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
14128 to be INVALID_REGNUM when not used.
14129
14130 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
14131
14132 * expmed.c (store_bit_field): Reset alias set for memory.
14133 (extract_bit_field): Same.
14134
14135 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14136
14137 * c-common.c (c_tree_code_type, c_tree_code_length,
14138 c_tree_code_name, add_c_tree_codes): Delete.
14139 * c-common.h (add_c_tree_codes): Delete.
14140 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
14141 Define.
14142 * c-objc-common.c (c_objc_common_init): Don't call
14143 add_c_tree_codes, instead set lang_unsafe_for_reeval.
14144 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
14145 objc_tree_code_name, add_objc_tree_codes): Delete.
14146 (objc_init): Don't call add_objc_tree_codes.
14147 * objc/objc-lang.c (tree_code_type, tree_code_length,
14148 tree_code_name): Define.
14149 * toplev.c (lang_independent_init): Don't set
14150 tree_code_length[IDENTIFIER_NODE].
14151 * tree.c (tree_code_type, tree_code_length, tree_code_name):
14152 Delete definitions, moved to language front-ends.
14153 * tree.def (IDENTIFIER_NODE): Hardwire the length.
14154 * tree.h (tree_code_type, tree_code_length, tree_code_name):
14155 Const-ify.
14156 (tree_code_length): Change type to unsigned char.
14157
14158 2002-03-12 Richard Henderson <rth@redhat.com>
14159
14160 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
14161 internal visibility change.
14162
14163 2002-03-12 Bob Wilson <bob.wilson@acm.org>
14164
14165 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
14166 validize_mem() instead of change_address to avoid clobbering
14167 memory attributes.
14168
14169 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
14170
14171 * c-lex.h (position_after_whitespace): Remove.
14172
14173 2002-03-12 Jakub Jelinek <jakub@redhat.com>
14174
14175 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
14176 (lex_string): Use unsigned char pointers.
14177
14178 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
14179
14180 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
14181 is not a valid memory_operand.
14182
14183 2002-03-12 Bob Wilson <bob.wilson@acm.org>
14184
14185 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
14186 * config/xtensa/lib1funcs.asm: Fix copyright to include
14187 special case for libgcc files.
14188 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
14189 (__divsi3): Likewise.
14190 (__umodsi3): Likewise.
14191 (__modsi3): Likewise.
14192 * config/xtensa/lib2funcs.S: Fix copyright to include
14193 special case for libgcc files.
14194
14195 2002-03-12 Tom Rix <trix@redhat.com>
14196
14197 * collect2.c (resolve_lib_name): Move outside of
14198 OBJECT_FORMAT_COFF ifdef.
14199 (ignore_library): Same.
14200
14201 2002-03-12 Bob Wilson <bob.wilson@acm.org>
14202
14203 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
14204
14205 2002-03-12 Bob Wilson <bob.wilson@acm.org>
14206
14207 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
14208 to function_section before writing out the constant pool.
14209
14210 2002-03-12 David Edelsohn <edelsohn@gnu.org>
14211
14212 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
14213 zero_constant.
14214 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
14215
14216 2002-03-12 Alan Modra <amodra@bigpond.net.au>
14217
14218 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
14219 (adddi3): Likewise.
14220 (movdf): Likewise.
14221 (movdi): Likewise.
14222 (cmpsi splitter): Likewise.
14223 (modsi3): Fail if <= 0.
14224 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
14225 redundant test when HOST_BITS_PER_WIDE_INT != 32.
14226 (reg_or_sub_cint64_operand): Likewise.
14227 (num_insns_constant_wide): Optimize sign extension.
14228 (rs6000_legitimize_address): Likewise.
14229
14230 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
14231
14232 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14233 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14234
14235 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
14236
14237 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
14238 address calculation.
14239
14240 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
14241
14242 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
14243 scratch register to DImode / TImode.
14244 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
14245 register used does not overlap the target.
14246
14247 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14248
14249 * Makefile.in (debug.o): Depend on debug.h.
14250 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
14251 * debug.c (do_nothing_debug_hooks): Likewise.
14252 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
14253 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
14254 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
14255 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
14256 * dwarfout.c (dwarf_debug_hooks): Likewise.
14257 * integrate.c (output_inline_function): Likewise.
14258 * objc/objc-act.c (synth_module_prologue): Likewise.
14259 * sdbout.c (sdb_debug_hooks): Likewise.
14260 * toplev.c (debug_hooks): Likewise.
14261 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14262
14263 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14264
14265 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
14266 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
14267 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
14268 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
14269 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
14270 * defaults.h (POINTER_SIZE): Define.
14271 * doc/tm.texi (POINTER_SIZE): Document default.
14272
14273 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14274
14275 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
14276
14277 2002-03-11 Richard Henderson <rth@redhat.com>
14278
14279 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
14280 if rebuild_label_notes_after_reload.
14281
14282 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
14283
14284 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
14285 emit pic register load if "internal" visibility.
14286 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
14287 (cris_expand_builtin_va_arg): Do all computations on trees.
14288
14289 2002-03-11 Richard Henderson <rth@redhat.com>
14290
14291 * rtlanal.c: Include recog.h.
14292 (keep_with_call_p): Fix thinko.
14293 * Makefile.in (rtlanal.o): Update dependencies.
14294
14295 2002-03-11 Chris Meyer <cmeyer@gatan.com>
14296
14297 * genflags.c (gen_insn): Use IS_VSPACE.
14298 * genoutput.c (output_insn_data): Likewise.
14299 (process_template): Likewise.
14300
14301 2002-03-11 Richard Henderson <rth@redhat.com>
14302
14303 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
14304
14305 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
14306
14307 * Makefile.in: Update.
14308 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
14309 Update documentation.
14310 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
14311 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
14312
14313 2002-03-11 Zack Weinberg <zack@codesourcery.com>
14314
14315 * Makefile.in: Give texi2pod its input file as a command line
14316 argument, not on stdin.
14317
14318 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
14319 Daniel Berlin <dan@dberlin.org>
14320
14321 C++ alias analysis improvement.
14322 * alias.c (record_component_aliases): Record aliases for base
14323 classes too.
14324
14325 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
14326
14327 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
14328
14329 2002-03-11 Douglas B Rupp <rupp@gnat.com>
14330
14331 * toplev.c (vms_fopen): Remove, not needed.
14332
14333 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
14334
14335 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
14336
14337 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
14338 for FP, already done later.
14339
14340 * toplev.c (debug_args): Add entry for VMS_DEBUG.
14341 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
14342
14343 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
14344
14345 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
14346 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
14347 LARGEST_EXPONENT_IS_NORMAL for the given mode.
14348 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
14349 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
14350 (ediv, emul, eldexp, esqrt): Likewise.
14351 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
14352 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
14353 (saturate): New function.
14354 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
14355 (make_nan): Use a saturation value instead of a NaN if
14356 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
14357 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
14358 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
14359 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
14360 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
14361 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
14362 !ROUND_TOWARDS_ZERO.
14363 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
14364 (ROUND_TOWARDS_ZERO): Document.
14365
14366 2002-03-11 Andreas Jaeger <aj@suse.de>
14367
14368 * cfg.c (dump_flow_info): Remove unused variable.
14369
14370 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
14371
14372 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
14373 computations on trees.
14374
14375 2002-03-10 Richard Henderson <rth@redhat.com>
14376
14377 PR 5693:
14378 * reload.c (copy_replacements_1): New.
14379 (copy_replacements): Use it to recurse through the rtx.
14380
14381 2002-03-10 Richard Henderson <rth@redhat.com>
14382
14383 * loop.c (strength_reduce): Compute number of iterations as
14384 unsigned HOST_WIDE_INT.
14385
14386 2002-03-10 Richard Henderson <rth@redhat.com>
14387
14388 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
14389 to move away from the end of the block.
14390
14391 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
14392
14393 PR preprocessor/5899
14394 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
14395
14396 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14397
14398 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
14399
14400 * attribs.c (decl_attributes): Fix signed/unsigned warning.
14401
14402 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
14403
14404 * config/mmix/mmix.c: Improve comments.
14405 (mmix_target_asm_function_prologue): Drop variable
14406 empty_stack_frame. Don't allocate unused slot above fp.
14407 (mmix_target_asm_function_epilogue): Mirror prologue changes.
14408 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
14409 brace in first column.
14410 (enum reg_class): Ditto.
14411 (FIRST_PARM_OFFSET): Now 0.
14412 (USER_LABEL_PREFIX): Remove #if 0:d definition.
14413
14414 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14415
14416 * combine.c (make_extraction): Fix error in last change.
14417
14418 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14419
14420 * c4x.c (c4x_fp_reglist): Const-ify.
14421 * cris.c (cris_print_operand): Likewise.
14422 * i386.c (ix86_va_arg): Likewise.
14423 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
14424 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
14425 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
14426 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
14427 * mcore.h (regno_reg_class): Likewise.
14428 * mips.c (gen_int_relational): Likewise.
14429 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
14430 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
14431 * pdp11.c (move_costs): Likewise.
14432 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
14433 * s390.c (s390_branch_condition_mnemonic, regclass_map):
14434 Likewise.
14435 * s390.h (regclass_map): Likewise.
14436 * sh.c (shift_amounts): Likewise.
14437 * sh.md (rotlsi3): Likewise.
14438
14439 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
14440
14441 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
14442 (ne0+5): Use new clobber to generate proper shift pattern.
14443 Patch by Michael Matz <matz@kde.org>.
14444
14445 2002-03-09 Andreas Schwab <schwab@suse.de>
14446
14447 * gcc.c (validate_all_switches): Also handle `%W{...}'.
14448
14449 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
14450
14451 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
14452
14453 2002-03-09 Jakub Jelinek <jakub@redhat.com>
14454
14455 PR middle-end/5877
14456 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
14457 even for non-representable constants.
14458
14459 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14460
14461 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
14462 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
14463 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
14464 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
14465 (pop_function_context): Compute MAY_SHARE parameter for
14466 fixup_var_refs.
14467 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
14468 (gen_mem_addressof): Call fixup_var_refs with new parm.
14469
14470 * combine.c (make_extraction): Don't make extension of CONST_INT.
14471
14472 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
14473
14474 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
14475 in o32 and o64 ABIs.
14476 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
14477 but getting fixed-size structs passed in registers regardless of
14478 padding in o32 and o64 ABIs.
14479
14480 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
14481 offset before loading address of argument passed by transparent
14482 reference.
14483
14484 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
14485
14486 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
14487
14488 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
14489
14490 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
14491 marker such that registers after it are saved.
14492
14493 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14494
14495 * sparc.c (arith_4096_operand): Fix error in last change.
14496
14497 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
14498
14499 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
14500 defaults for MEABI.
14501
14502 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
14503
14504 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
14505 vectors.
14506
14507 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
14508
14509 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
14510
14511 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
14512
14513 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
14514 removed; fix return value.
14515 * combine.c (combine_instructions): Dirtify blocks where we failed to
14516 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
14517 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
14518
14519 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14520
14521 * gcse.c (insert_insn_end_bb): Fix typo in last change.
14522
14523 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
14524
14525 * recog.c (peephole2_optimize): Re-distribute EH edges.
14526
14527 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
14528
14529 * expr.c (expand_expr): Use unsave lang hook.
14530 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
14531 (LANG_HOOKS_INITIALIZER): Update.
14532 * langhooks.h (struct lang_hooks): New hook unsave.
14533 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
14534 (unsave_expr_1): Remove unused lang_unsave_expr_now.
14535 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
14536 (unsave_expr_now): Remove.
14537 * tree.h (unsave_expr_now, lang_unsave,
14538 lang_unsave_expr_now): Remove.
14539 (lhd_unsave): New.
14540
14541 2002-03-08 Andreas Jaeger <aj@suse.de>
14542
14543 * flow.c (propagate_block_delete_insn): Remove unused variable.
14544
14545 2002-03-08 Kazu Hirata <kazu@hxi.com>
14546
14547 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
14548 insn length for memory load/store.
14549
14550 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
14551
14552 * doc/install.texi (--with-libiconv-prefix): Document.
14553
14554 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
14555
14556 * doc/sourcebuild.texi: Fix typo.
14557
14558 2002-03-08 Jakub Jelinek <jakub@redhat.com>
14559
14560 PR c/3711
14561 * builtins.c (std_expand_builtin_va_arg): Do all computations on
14562 trees.
14563
14564 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14565
14566 * rtl.c (copy_most_rtx): Move from here ...
14567 * emit-rtl.c (copy_most_rtx): ... to here.
14568
14569 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
14570
14571 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
14572 SUBTARGET_CPP_SIZE_SPEC.
14573 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
14574
14575 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
14576
14577 2002-03-07 Matt Hiller <hiller@redhat.com>
14578
14579 * gensupport.c (first_dir_md_include): Renamed from include;
14580 change all references.
14581 (last_dir_md_include): Renamed from last_include; change all
14582 references.
14583 (init_md_reader): Unconditionally initialize base_dir whether or
14584 not filename is a relative path.
14585
14586 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
14587
14588 * config/fp-bit.c (_unord_f2): Compile it in even if
14589 US_SOFTWARE_GOFAST is enabled.
14590
14591 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
14592 NULL_RTX. Set all HFmode operations as NULL_RTX.
14593 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
14594 NULL_RTX, try reversing the comparison and the operands.
14595
14596 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
14597
14598 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
14599 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
14600 and MATCH_OP_DUP.
14601
14602 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
14603
14604 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
14605
14606 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
14607
14608 * basic-block.h (fixup_abnormal_edges): Declare.
14609 * reload1.c (fixup_abnormal_edges): New function.
14610 * reg-stack.c (convert_regs): Use it.
14611
14612 * gcse.c (insert_insn_end_bb): Handle trapping insns.
14613
14614 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
14615
14616 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
14617
14618 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
14619 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
14620 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
14621 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
14622 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
14623 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
14624 unless x and y could be infinite.
14625 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
14626 Check that the common type of both arguments is a real, even for
14627 targets without unordered comparisons. Allow an integer argument
14628 to be compared against a real.
14629 (expand_tree_builtin): Use expand_unordered_cmp.
14630 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
14631 * cse.c (fold_rtx): Likewise. Fix indentation.
14632 * fold-const.c (fold_real_zero_addition_p): New.
14633 (fold): Use it, and the new HONOR_... macros.
14634 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
14635 * jump.c (reversed_comparison_code_parts): After searching for
14636 the true comparison mode, use HONOR_NANS to decide whether it
14637 can be safely reversed.
14638 (reverse_condition_maybe_unordered): Remove IEEE check.
14639 * simplify-rtx.c (simplify_binary_operation): Use the new macros
14640 to decide which simplifications are valid. Allow the following
14641 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
14642 and (a - -b) to (a + b).
14643 (simplify_relational_operation): Use HONOR_NANS.
14644 * doc/tm.texi: Document the MODE_HAS_... macros.
14645
14646 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
14647
14648 * combine.c (simplify_comparison): If simplifying a logical shift
14649 right and compare with constant, force the comparison to unsigned.
14650
14651 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
14652
14653 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
14654
14655 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
14656 -mabi=no-altivec
14657 (alt_reg_names): Remove % for vrsave.
14658
14659 2002-03-06 Richard Henderson <rth@redhat.com>
14660
14661 PR optimization/5844
14662 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
14663 if used indicates we've already emitted one copy of an operand.
14664 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
14665 (gen_split): Supply a non-null used.
14666
14667 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
14668
14669 * reload1.c (reload): Unshare all rtl after reload is done.
14670
14671 * simplify-rtx.c (simplify_plus_minus): Do not abort,
14672 but simply fail if the expression is too complex to simplify.
14673 (simplify_gen_binary): Handle simplify_plus_minus failures.
14674
14675 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
14676
14677 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
14678 consistently call delete_trivially_dead_insns after CSE and GCSE;
14679 fix DFI_life dumping; do jump threading after liveness; do crossjumping
14680 after liveness2; update comment in last crossjumping.
14681 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
14682
14683 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
14684
14685 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
14686 after completing fast dead code elimination.
14687
14688 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
14689 COMPARE operator.
14690
14691 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
14692
14693 * version.c: Fix misplaced leading blanks on first line.
14694
14695 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
14696
14697 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
14698
14699 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
14700
14701 * cfgcleanup.c (mentions_nonequal_regs): New function.
14702 (thread_jump): Use it.
14703 * toplev.c (rest_of_compilation): Run jump threading after
14704 liveness.
14705
14706 2002-03-06 Jakub Jelinek <jakub@redhat.com>
14707
14708 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
14709 patch.
14710
14711 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
14712
14713 * predict.c (estimate_bb_frequencies): Do not reload the
14714 frequencies from notes.
14715
14716 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
14717
14718 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
14719 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
14720
14721 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
14722 delete_noop_moves): Return indeger.
14723 * flow.c (ndead): New variable.
14724 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
14725 BB argument; update callers.
14726 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
14727 (life_analysis): Do not call purge_all_dead_edges.
14728 (update_life_info): Return number of deleted insns; print statistics.
14729 (update_life_info_in_dirty_blocks): likewise.
14730 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
14731 return number of insns deleted.
14732
14733 * cse.c: Include timevar.h
14734 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
14735 iterate until stabilizes; print statistics; return number of killed
14736 insns.
14737 * Makefile.in: (cse.o): Add timevar.h dependency
14738 * rtl.h (delete_trivially_dead_insns): New.
14739 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
14740 * toplev.c (rest_of_compilation): Update callers.
14741
14742 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
14743 (try_optimize_cfg): Do not update liveness.
14744 (cleanup-cfg): Loop until try_optimize_cfg and dead code
14745 removal stabilizes; use delete_trivially_dead_insns.
14746
14747 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
14748
14749 2002-03-05 Zack Weinberg <zack@codesourcery.com>
14750
14751 * cppmain.c (setup_callbacks): Disable #pragma and #ident
14752 callbacks when processing assembly language.
14753
14754 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
14755
14756 * pa.h (ASM_FILE_END): Define.
14757 * som.h (ASM_FILE_END): Delete.
14758
14759 * pa.c (function_arg): Don't pass floats in general registers in
14760 indirect calls if TARGET_ELF32.
14761
14762 2002-03-05 Richard Henderson <rth@redhat.com>
14763
14764 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
14765
14766 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
14767
14768 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
14769
14770 2002-03-05 Jakub Jelinek <jakub@redhat.com>
14771
14772 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
14773 -r command line. Don't hide any symbols if not building
14774 shared libgcc.
14775
14776 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
14777
14778 * cfg.c (dump_flow_info): Warn about profile mismatches.
14779 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
14780 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
14781
14782 2002-03-05 Jakub Jelinek <jakub@redhat.com>
14783
14784 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
14785 wide volatile memory by parts.
14786
14787 2002-03-05 Jakub Jelinek <jakub@redhat.com>
14788
14789 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
14790 is NULL.
14791
14792 2002-03-05 Richard Henderson <rth@redhat.com>
14793
14794 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
14795
14796 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
14797
14798 * toplev.c (documented_lang_options): Document more
14799 language-specific options.
14800 * doc/invoke.texi (Warning Options): Correct documentation for
14801 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
14802 * c-decl.c (c_decode_option): Use a table to handle warning options.
14803
14804 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
14805
14806 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
14807 parameter to mmix_encode_section_info.
14808 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
14809 relocatably. Always produce ELF, not mmo if linking relocatably.
14810 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
14811 first is non-zero, don't add symbol prefix.
14812 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
14813 prototype accordingly.
14814
14815 2002-03-04 Krister Walfridsson <cato@df.lth.se>
14816
14817 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
14818
14819 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
14820
14821 * configure.in: Increase required makeinfo version to 4.1.
14822 * configure: Regenerate.
14823
14824 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
14825
14826 * .cvsignore: Remove *.info* and genrtl*; these files are generated
14827 elsewhere now.
14828
14829 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
14830
14831 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
14832 * doc/invoke.texi: Fix @math uses.
14833
14834 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
14835
14836 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
14837 removal
14838
14839 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
14840
14841 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
14842 (powerpc-*-eabisimaltivec*): Same.
14843
14844 * config/rs6000/t-ppcendian: New.
14845
14846 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14847
14848 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
14849 nonimmediate_src_operand and nonimmediate_lsrc_operand to
14850 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
14851
14852 2002-03-03 Richard Henderson <rth@redhat.com>
14853
14854 * toplev.c (rest_of_decl_compilation): Revert last two changes.
14855
14856 2002-03-03 Zack Weinberg <zack@codesourcery.com>
14857
14858 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
14859 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
14860 tree.c, config/m68k/m68k.c:
14861 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
14862 REAL_ARITHMETIC blocks unconditional. Delete some further
14863 #ifdef blocks predicated on REAL_ARITHMETIC.
14864 * flags.h, toplev.c: Delete remaining references to
14865 flag_pretend_float.
14866
14867 * doc/invoke.texi: Remove documentation of -fpretend-float.
14868 * doc/tm.texi: Describe the various REAL_* macros as provided by
14869 real.h, not by the target configuration files.
14870
14871 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
14872 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
14873 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14874 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
14875 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
14876 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
14877 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
14878 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
14879 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14880 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
14881 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14882 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14883 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
14884 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
14885 config/xtensa/xtensa.h:
14886 Do not define, undefine, or mention in comments any of
14887 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
14888 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
14889 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
14890 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
14891 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
14892 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
14893 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
14894 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
14895 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
14896
14897 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14898
14899 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
14900 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
14901 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
14902 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
14903 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
14904 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
14905 Delete.
14906 * defaults.h (BITS_PER_WORD): Define.
14907 * doc/tm.texi (BITS_PER_WORD): Document default value.
14908
14909 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
14910 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
14911 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
14912
14913 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14914
14915 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
14916 lieu of explicit sizeof/sizeof.
14917 * i386.c (override_options, ix86_init_mmx_sse_builtins,
14918 ix86_expand_builtin): Likewise.
14919 * mips.c (mips_add_gc_roots): Likewise.
14920 * mmix.c (mmix_output_condition): Likewise.
14921 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
14922 altivec_init_builtins): Likewise.
14923 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
14924 * cppexp.c (Nsuff, parse_number): Likewise.
14925 * cppinit.c (builtin_array_end): Likewise.
14926 * gcc.c (n_default_compilers, process_command): Likewise.
14927 * genpreds.c (output_predicate_decls): Likewise.
14928 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
14929 * lcm.c (N_ENTITIES): Likewise.
14930 * stor-layout.c (set_sizetype): Likewise.
14931
14932 2002-03-03 Richard Henderson <rth@redhat.com>
14933
14934 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
14935 for types or labels.
14936
14937 2002-03-03 Richard Henderson <rth@redhat.com>
14938
14939 * c-decl.c (start_decl): Initialized variables are not common.
14940
14941 2002-03-02 Per Bothner <per@bothner.com>
14942
14943 * gcc.c (option_map): Suport new --bootclasspath option.
14944 --CLASSPATH is now just an alias for --classpath.
14945
14946 2002-03-02 Richard Henderson <rth@redhat.com>
14947
14948 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
14949 load if "internal" visibility.
14950 * doc/extend.texi: Document visibility meanings.
14951
14952 2002-03-02 Richard Henderson <rth@redhat.com>
14953
14954 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
14955 to functions as well.
14956
14957 2002-03-02 Richard Henderson <rth@redhat.com>
14958
14959 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
14960 (handle_visibility_attribute): Don't call assemble_visibility.
14961 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
14962 without asmspec. Invoke assemble_alias when needed.
14963 * varasm.c (maybe_assemble_visibility): New.
14964 (assemble_start_function, assemble_variable, assemble_alias): Use it.
14965
14966 2002-03-02 Richard Henderson <rth@redhat.com>
14967
14968 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
14969 invoke ENCODE_SECTION_INFO with first call flag.
14970
14971 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
14972 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
14973 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
14974 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
14975 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
14976 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14977 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
14978 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
14979 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
14980 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
14981 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
14982 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
14983 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
14984 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
14985 config/mcore/mcore-protos.h, config/mcore/mcore.c,
14986 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
14987 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
14988 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
14989 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
14990 config/sh/sh.h, config/sparc/sparc.h,
14991 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
14992 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
14993 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
14994 FIRST argument. As needed, examine it and do nothing.
14995
14996 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
14997 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14998 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
14999
15000 * config/arm/t-pe (pe.o): Add dependencies.
15001
15002 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15003
15004 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
15005 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
15006 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
15007 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
15008 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
15009 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
15010 * defaults.h (BITS_PER_UNIT): Define.
15011 * doc/tm.texi (BITS_PER_UNIT): Document default value.
15012
15013 2002-03-02 Kazu Hirata <kazu@hxi.com>
15014
15015 * config/h8300/h8300-protos.h: Add a prototype for
15016 compute_a_shift_length.
15017 * config/h8300/h8300.c (h8300_asm_insn_count): New.
15018 (compute_a_shift_length): Likewise.
15019 (h8300_adjust_insn_length): Do not adjust insn length of shift
15020 insns.
15021 * config/h8300/h8300.md (anonymous shift patterns): Use
15022 compute_a_shift_length.
15023
15024 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15025
15026 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
15027 trunc_int_for_mode.
15028
15029 * emit-rtl.c (offset_address): Call update_temp_slot_address.
15030
15031 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15032
15033 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
15034 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
15035 * flags.h (flag_zero_initialized_in_bss): Declare.
15036 * toplev.c (flag_zero_initialized_in_bss): New flag.
15037 (lang_independent_options): Add flag_zero_initialized_in_bss.
15038 * tree.c (initializer_zerop): New function.
15039 * tree.h (initializer_zerop): Declare.
15040 * varasm.c (assemble_variable): If we can emit bss, put zero
15041 initializers in the bss section.
15042
15043 2002-03-02 Alan Modra <amodra@bigpond.net.au>
15044
15045 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
15046 like more than one symbol per .weak directive.
15047
15048 2002-03-01 Richard Henderson <rth@redhat.com>
15049
15050 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
15051 adjust argument_pointer by pretend_args_size.
15052 (ia64_va_start): Adjust va_start address by -pretend_args_size.
15053
15054 2002-03-01 Kazu Hirata <kazu@hxi.com>
15055
15056 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
15057
15058 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
15059
15060 * toplev.c (rest_of_compilation): Delete dead jumptables before
15061 loop.
15062 * flow.c (delete_dead_jumptables): Make global.
15063 * rtl.h (delete_dead_jumptables): Declare.
15064
15065 2002-03-01 David Edelsohn <edelsohn@gnu.org>
15066
15067 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
15068 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
15069 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
15070
15071 2002-03-01 Kazu Hirata <kazu@hxi.com>
15072
15073 * config/h8300/h8300-protos.h: Fix formatting.
15074 * config/h8300/h8300.c: Likewise.
15075 * config/h8300/h8300.h: Likewise.
15076
15077 2002-03-01 Kazu Hirata <kazu@hxi.com>
15078
15079 * config/h8300/h8300.c (print_operand): Support 16-bit
15080 constant addresses.
15081 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
15082
15083 2002-02-28 Richard Henderson <rth@redhat.com>
15084
15085 * expmed.c (store_bit_field): Prevent generation of CONCATs;
15086 pun complex values as integers; use gen_lowpart instead of
15087 gen_rtx_SUBREG.
15088 (extract_bit_field): Likewise.
15089
15090 2002-03-01 Alan Modra <amodra@bigpond.net.au>
15091 David Edelsohn <edelsohn@gnu.org>
15092
15093 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
15094 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
15095 (SUPPORTS_WEAK): Likewise.
15096 * output.h (add_weak): Add tree param.
15097 * varasm.c (add_weak): Likewise. Save decl.
15098 (struct weak_syms): Add decl field.
15099 (mark_weak_decls): New function.
15100 (init_varasm_once): ggc_add_root mark_weak_decls.
15101 (assemble_start_function): Use ASM_WEAKEN_DECL.
15102 (assemble_variable): Likewise.
15103 (assemble_alias): Likewise.
15104 (declare_weak): Pass decl to add_weak.
15105 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
15106 (remove_from_pending_weak_list): Declare and define for
15107 ASM_WEAKEN_DECL.
15108 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
15109 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
15110 * defaults.h (SUPPORTS_WEAK): Likewise.
15111 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15112 .weak for code sym. Do emit .size for descriptor sym.
15113 (ASM_DECLARE_FUNCTION_SIZE): Define.
15114 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
15115 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
15116 .lglobl unless TARGET_XCOFF. Formatting fixes.
15117 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15118 .weak for code sym.
15119 (HANDLE_PRAGMA_WEAK): Remove.
15120 (ASM_WEAKEN_LABEL): Remove.
15121 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
15122
15123 2002-03-01 Jason Merrill <jason@redhat.com>
15124
15125 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
15126 (TARGET_EXPR_CLEANUP): New macro.
15127
15128 2002-02-28 Steve Ellcey <sje@cup.hp.com>
15129
15130 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
15131 to take ptr_extend into account as third type of extension.
15132 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
15133 fields used by SUBREG_PROMOTED_UNSIGNED_P.
15134 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
15135 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
15136 * calls.c (precompute_arguments): Use new macro.
15137 (expand_call): Ditto.
15138 * combine.c (nonzero_bits): Ditto.
15139 (record_promoted_value): Ditto.
15140 * expr.c (store_expr): Ditto.
15141 (expand_expr): Ditto.
15142 * function.c (assign_parms): Ditto.
15143
15144 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
15145
15146 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
15147 override -shared and -shared-libgcc.
15148
15149 2002-02-28 David O'Brien <obrien@FreeBSD.org>
15150
15151 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
15152 of "ultrasparc".
15153 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
15154 to be broken.
15155
15156 2002-02-28 Richard Henderson <rth@redhat.com>
15157
15158 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
15159 4 cycle latency from MM producers.
15160 (ia64_internal_sched_reorder): Likewise with pipeline flush.
15161
15162 2002-02-28 Jakub Jelinek <jakub@redhat.com>
15163
15164 * mklibgcc.in: Don't use GNU make extension.
15165
15166 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
15167
15168 * c-parse.in (STATIC): New terminal.
15169 (scspec): New non-terminal. Update productions accordingly.
15170 (program): Remove bogus ifc / end ifc.
15171 (array_declarator): Simplify production using STATIC.
15172
15173 2002-02-28 Jim Meyering <meyering@lucent.com>
15174
15175 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
15176 \a still means TARGET_BELL.
15177
15178 2002-02-28 Richard Henderson <rth@redhat.com>
15179
15180 * haifa-sched.c (sched_emit_insn): New.
15181 (schedule_block): Use last_scheduled_insn to track last insn.
15182 * sched-int.h (sched_emit_insn): Prototype.
15183 * config/ia64/ia64.c (last_issued): Remove.
15184 (ia64_variable_issue): Don't set it.
15185 (nop_cycles_until): Use sched_emit_insn.
15186
15187 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
15188
15189 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
15190 extended constants.
15191
15192 2002-02-28 Kazu Hirata <kazu@hxi.com>
15193
15194 * config/h8300/h8300.c: Fix formatting.
15195 * config/h8300/h8300.h: Likewise.
15196
15197 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
15198
15199 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
15200 which may overwrite the high byte of the frame pointer.
15201
15202 2002-02-28 Bo Thorsen <bo@suse.de>
15203
15204 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
15205 (STARTFILE_SPEC): Add 64 bit files.
15206 (ENDFILE_SPEC): Likewise.
15207
15208 2002-02-28 Jason Merrill <jason@redhat.com>
15209
15210 * c-decl.c (finish_function): Only warn about missing return
15211 statement with -Wreturn-type.
15212
15213 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
15214
15215 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
15216
15217 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
15218 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
15219
15220 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
15221
15222 * basic-block.h (BB_REACHABLE): Renumber.
15223 (BB_DIRTY, BB_NEW): New flags.
15224 (clear_bb_flags): Declare.
15225 (update_life_info_in_dirty_blocks): Declare.
15226 * cfg.c (clear_bb_flags): New function.
15227 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
15228 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
15229 reorder_insns, emit_insn_after): Mark block as dirty.
15230 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
15231 (update_life_info_in_dirty_blocks): New function.
15232 * recog.c (apply_change_group): Dirtify block.
15233
15234 * cse.c (cse_insn): Reorder emitting of jump insn to keep
15235 cfg consistent.
15236 * gcse.c (delete_null_pointer_checks): Likewise.
15237
15238 * toplev.c (dump_file_index): Move cse2 after bp,
15239 add DFI_null
15240 (dump_file_info): Similary.
15241 (rest_of_compilation): Avoid most of CFG rebuilds;
15242 do first if converision after null pointer checks, do cse2
15243 after branch prediction; avoid full liveness rebuild after
15244 initializing subregs.
15245 * invoke.texi (-d options): Document -du, renumber.
15246
15247 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
15248 (notice_new_block): Do not set BB_UPDATE_LIFE.
15249 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
15250 merge_blocks_move_successor_nojumps, merge_blocks,
15251 try_crossjump_to_edge): Likewise.
15252 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
15253 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
15254 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
15255 (merge_of_block): Do not use life_data_ok.
15256 (find_if_case_1): Do not use SET_UPDATE_LIFE.
15257 (if_convert): Use BB_DIRTY mechanizm to update life.
15258 * lcm.c (optimize_mode_switching): Update
15259 update_life_info_in_dirty_blocks
15260
15261 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
15262
15263 * Makefile.in (integrate.o): Update.
15264 * c-decl.c (copy_lang_decl): Rename.
15265 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15266 * integrate.c: Include langhooks.h.
15267 (copy_decl_for_inlining): Update to use langhook.
15268 * langhooks-def.h (lhd_do_nothing_t,
15269 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
15270 (LANG_HOOKS_INITIALIZER): Update.
15271 * langhooks.c (lhd_do_nothing_t): New.
15272 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
15273 * tree.h (copy_lang_decl): Remove.
15274 objc:
15275 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15276
15277 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
15278
15279 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
15280 POST_DEC, and POST_MODIFY.
15281
15282 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15283
15284 * c-typeck.c (digest_init): Remove unused parameter; all
15285 callers changed.
15286
15287 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
15288
15289 * expmed.c (expand_shift): Correctly test for low part of a
15290 subreg.
15291
15292 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15293
15294 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
15295 insn UIDs with insn addresses.
15296
15297 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15298
15299 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
15300 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
15301 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
15302 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
15303 gcc.c, toplev.c: Delete code implementing -traditional mode.
15304
15305 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
15306 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
15307 Document removal of -traditional mode for compilation, and
15308 remove documentation only relevant to that mode.
15309
15310 * config/nextstep.h, config/ptx4.h, config/svr4.h,
15311 config/convex/convex.h, config/d30v/d30v.h,
15312 config/i386/dgux.h, config/i386/osf1elf.h,
15313 config/i386/osfelf.h, config/i386/osfrose.h,
15314 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
15315 config/m68k/hp310.h, config/m88k/dgux.h,
15316 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
15317 config/m88k/m88k.h, config/m88k/openbsd.h,
15318 config/mips/abi64.h, config/mips/osfrose.h,
15319 config/mips/svr4-5.h, config/mips/svr4-t.h,
15320 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15321 config/stormy16/stormy16.h: Remove all references to
15322 -traditional from target specs. Delete all mention of the
15323 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
15324 delete a couple of commented-out definitions of
15325 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
15326 to -traditional.
15327
15328 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
15329 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
15330
15331 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15332
15333 * mklibgcc.in: Don't use \n in a line subject to
15334 interpretation by echo.
15335
15336 2002-02-27 Graham Stott <grahams@redhat.com>
15337
15338 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
15339 Constify NAME.
15340
15341 * loop.c (prescan_loop): Handle PARALLEL.
15342
15343 * unroll.c (loop_iterations): Return 0 if the add_val for
15344 a BIV is REG.
15345
15346 * final.c (output_operand_lossage): Constify PFX_STR.
15347
15348 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
15349
15350 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
15351
15352 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
15353 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
15354
15355 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
15356
15357 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15358
15359 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
15360
15361 * cpplex.c (_cpp_lex_token): Handle directives in macro
15362 arguments.
15363 * cpplib.c (_cpp_handle_directive): Save and restore state
15364 if parsing macro args when entering a directive.
15365 * cppmacro.c (collect_args): No need to handle directives
15366 in macro arguments.
15367 (enter_macro_context, replace_args): Use the original macro
15368 definition in case it was redefined whilst collecting arguments.
15369 doc:
15370 * cpp.texi: Update.
15371
15372 2002-02-26 David Edelsohn <edelsohn@gnu.org>
15373
15374 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
15375 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
15376 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
15377 method on AIX.
15378 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
15379 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
15380 (load_toc_v4_PIC_2): Same.
15381
15382 2002-02-26 Alan Modra <amodra@bigpond.net.au>
15383
15384 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
15385
15386 2002-02-26 Richard Henderson <rth@redhat.com>
15387
15388 * config/alpha/alpha.md (ashldi_se): Re-enable.
15389
15390 2002-02-26 Richard Henderson <rth@redhat.com>
15391
15392 * config/alpha/alpha.c (alpha_encode_section_info): Examine
15393 MODULE_LOCAL_P; improve commentary.
15394
15395 2002-02-26 Zack Weinberg <zack@codesourcery.com>
15396
15397 * doc/cpp.texi: Clarify documentation of relationship between
15398 #line and #include.
15399
15400 2002-02-26 Kazu Hirata <kazu@hxi.com>
15401
15402 * config/h8300/h8300-protos.h: Update the prototype for
15403 compute_logical_op_length. Add the prototype for
15404 compute_logical_op_cc.
15405 * config/h8300/h8300.c (compute_logical_op_length): Figure out
15406 code from operands.
15407 (compute_logical_op_cc): New.
15408 * config/h8300/h8300.md: Combine all the logical op patterns
15409 in HImode and SImode. Use compute_logical_op_cc.
15410
15411 2002-02-26 Kelley Cook <kelleycook@comcast.net>
15412
15413 * config/i386/i386.c (print_operand): Don't append ATT-style
15414 length suffixs to x87 opcodes when in Intel mode.
15415
15416 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
15417
15418 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
15419 (init_emit_once): Update calls.
15420 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
15421 (init_syntax_once): Prototype.
15422
15423 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
15424
15425 * pa-linux.h (LIB_SPEC): Update definition.
15426 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15427
15428 2002-02-26 Richard Henderson <rth@redhat.com>
15429
15430 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
15431 if we emitted a stop bit.
15432
15433 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15434
15435 * configure.in (libgcc_visibility): Substitute.
15436 * configure: Rebuilt.
15437 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
15438 defined symbols .hidden.
15439
15440 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15441
15442 * attribs.c (c_common_attribute_table): Add visibility.
15443 (handle_visibility_attribute): New function.
15444 * varasm.c (assemble_visibility): New function.
15445 * output.h (assemble_visibility): Add prototype.
15446 * tree.h (MODULE_LOCAL_P): Define.
15447 * crtstuff.c (__dso_handle): Use visibility attribute.
15448 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
15449 for MODULE_LOCAL_P symbols too.
15450 * config/ia64/ia64.c (ia64_encode_section_info): Handle
15451 MODULE_LOCAL_P symbols the same way as local symbols.
15452 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
15453 into .sdata/.sbss by the user.
15454 * doc/extend.texi (Function Attributes): Document visibility
15455 attribute.
15456
15457 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15458
15459 PR debug/5770
15460 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
15461 STRING_CST initializer spanning the whole variable without
15462 embedded zeros.
15463 If expand_expr returned MEM, don't use it.
15464
15465 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
15466
15467 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
15468 generate a die for the lexical block.
15469
15470 2002-02-26 Kazu Hirata <kazu@hxi.com>
15471
15472 * config/h8300/h8300-protos.h: Add a prototype for
15473 compute_logical_op_length.
15474 * config/h8300/h8300.c (compute_logical_op_length): New.
15475 * config/h8300/h8300.md (anonymous logical patterns): Use
15476 compute_logical_op_length for length.
15477
15478 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15479
15480 * dwarf2out.c (modified_type_die): Do not call type_main_variant
15481 for vectors.
15482 (gen_type_die): Same.
15483
15484 * attribs.c (handle_vector_size_attribute): Set debug information.
15485
15486 2002-02-26 Daniel Egger <degger@fhm.edu>
15487
15488 * config/rs6000/rs6000.md: Swap define_insn attributes to
15489 fix incorrect generation of merge high instructions instead
15490 of merge low.
15491
15492 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15493
15494 * c-typeck.c (really_start_incremental_init): Use
15495 bitsize_zero_node for vectors.
15496
15497 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15498
15499 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
15500 ("*set_vrsave_internal"): Same.
15501
15502 2002-02-25 Richard Henderson <rth@redhat.com>
15503
15504 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
15505 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
15506
15507 2002-02-25 Jakub Jelinek <jakub@redhat.com>
15508
15509 PR target/5755
15510 * config/i386/i386.c (ix86_return_pops_args): Only pop
15511 fake structure return argument if it was passed on the stack.
15512
15513 2002-02-25 Jason Merrill <jason@redhat.com>
15514
15515 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
15516 RESULT_DECL.
15517
15518 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
15519
15520 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
15521 link with shared_name only.
15522 * doc/invoke.texi (Link Options): Document new behavior.
15523
15524 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
15525
15526 * c-typeck.c (push_init_level): Handle vectors.
15527
15528 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
15529
15530 * config/sparc/sparc.c (const64_high_operand): Zero-extend
15531 operands of SPARC_SETHI_P.
15532 (input_operand): Likewise.
15533 (sparc_emit_set_const32): Likewise.
15534 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
15535 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
15536 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
15537 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
15538 (movdi_insn_sp64_vis): Likewise.
15539 (movdi split, movdf split): Use SETHI32.
15540 * doc/md.texi: Document SPARC constraints L, M and N.
15541
15542 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
15543
15544 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
15545 ("*set_vrsave_internal"): use mfspr for Darwin.
15546
15547 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
15548 gen_get_vrsave_internal.
15549
15550 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15551
15552 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
15553
15554 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
15555
15556 * cpplex.c (cpp_interpret_charconst): Get signedness or
15557 otherwise of wide character constants correct.
15558 * cppexp.c (lex): Get signedness of wide charconsts correct.
15559
15560 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15561
15562 * optabs.c (widen_operand): Only call convert_modes for
15563 promoted SUBREG if signedness matches.
15564 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
15565
15566 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
15567
15568 * cpplib.c (glue_header_name): Use local buffer to build up
15569 header name.
15570
15571 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
15572
15573 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
15574
15575 2002-02-23 Kazu Hirata <kazu@hxi.com>
15576
15577 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
15578 H8/300[HS] separately.
15579 * config/h8300/h8300.md: Remove the early clobber constraint
15580 from bit field patterns.
15581
15582 2002-02-23 Kazu Hirata <kazu@hxi.com>
15583
15584 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
15585 register_operand.
15586 (mulhisi3): Likewise.
15587 (umulqisi3): Likewise.
15588 (umulhisi3): Likewise.
15589
15590 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
15591
15592 * cppinit.c (output_deps): Correct test for stdout output.
15593 (init_dependency_output): Cure warning.
15594
15595 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15596
15597 * expr.c (store_expr): When converting expression to promoted
15598 equivalent type, allow using SUBREG_REG of TARGET as the target
15599 of the expansion of EXP.
15600 * loop.c (basic_induction_var, case SUBREG): Always look inside.
15601 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
15602 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
15603 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
15604 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
15605
15606 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
15607
15608 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
15609 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
15610 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
15611
15612 2002-02-23 Jakub Jelinek <jakub@redhat.com>
15613
15614 PR optimization/5747
15615 * loop.c (scan_loop): Update reg info if move_movables created new
15616 pseudos.
15617
15618 2002-02-23 David Edelsohn <edelsohn@gnu.org>
15619
15620 * gcc.c (init_gcc_spec): Revert last change.
15621
15622 2002-02-23 David Edelsohn <edelsohn@gnu.org>
15623
15624 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
15625 gpc_reg_operand constraint.
15626
15627 2002-02-23 Alan Modra <amodra@bigpond.net.au>
15628
15629 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
15630 Simplify comparison of `low'.
15631 (add_operand): Fix formatting.
15632 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
15633 (mask_operand): Disallow mask to wrap in 64-bit mode.
15634 (rs6000_stack_info): Remove redundant test setting push_p.
15635 (output_toc): Fix formatting.
15636 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
15637 cc_reg_not_cr0_operand constraint.
15638 (booldi3, boolcdi3 splitters): Same.
15639
15640 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
15641
15642 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
15643
15644 2002-02-22 David Edelsohn <edelsohn@gnu.org>
15645
15646 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
15647 gcc invoked with -shared-libgcc.
15648
15649 2002-02-22 Jakub Jelinek <jakub@redhat.com>
15650
15651 PR c++/5748
15652 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
15653 decl if any of elements was TREE_USED.
15654
15655 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
15656
15657 * config/sparc/sol2.h: Don't include sys/mman.h.
15658 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
15659 (arith_4096_operand): Don't throw high bits away.
15660 (const64_operand): Take sign extension of CONST_INTs into account.
15661 (const64_high_operand, sparc_emit_set_const32): Likewise.
15662 (GEN_HIGHINT64): Likewise.
15663 (sparc_emit_set_const64_quick1): Likewise.
15664 (const64_is_2insns): Likewise.
15665 (print_operand): Use trunc_int_for_mode for sign extension.
15666 * config/sparc/sparc.h (SMALL_INT32): Likewise.
15667 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
15668 chars. Assume CONST_INT is already properly sign-extended.
15669 (movdi split): Sign-extend each SImode part.
15670 (andsi3 split): Don't mask high bits off, so that result
15671 remains properly sign-extend.
15672 (iorsi3 split): Likewise.
15673 (xorsi3 split): Likewise.
15674
15675 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
15676
15677 * fold-const.c (fold): Fix typo in comments.
15678
15679 2002-02-21 Diego Novillo <dnovillo@redhat.com>
15680
15681 * Makefile.in (langhooks.o): Update dependencies.
15682
15683 2002-02-21 Diego Novillo <dnovillo@redhat.com>
15684
15685 * langhooks.c: Include flags.h.
15686
15687 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
15688
15689 * testsuite/gcc.dg/attr-alwaysinline.c: New.
15690
15691 * c-common.c (c_common_post_options): Set inline trees by
15692 default.
15693
15694 * doc/extend.texi (Function Attributes): Document always_inline
15695 attribute.
15696 Update documentation about inlining when not optimizing.
15697
15698 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
15699
15700 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
15701 unless DECL_ALWAYS_INLINE.
15702
15703 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
15704 unless DECL_ALWAYS_INLINE.
15705 (c_disregard_inline_limits): Disregard if always_inline set.
15706
15707 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
15708 Disregard if always_inline set.
15709 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
15710 unless DECL_ALWAYS_INLINE.
15711
15712 * attribs.c (handle_always_inline_attribute): New.
15713 (c_common_attribute_table): Add always_inline.
15714
15715 * config/rs6000/altivec.h: Add prototypes for builtins
15716 requiring the always_inline attribute.
15717
15718 2002-02-21 Eric Christopher <echristo@redhat.com>
15719
15720 * expmed.c (store_bit_field): Try to simplify the subreg
15721 before generating a new one when when the mode size of
15722 value is less than maxmode.
15723
15724 2002-02-21 Richard Henderson <rth@redhat.com>
15725
15726 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
15727 than gen_rtx_PLUS to form the sum.
15728 * explow.c (force_reg): Rearrange to not allocate new pseudo
15729 when force_operand returns a register.
15730 * expr.c (expand_assignment): Allow offset_rtx expansion to
15731 return a sum. Do not force addresses into registers.
15732 (expand_expr): Likewise.
15733 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
15734 to canonicalize arithmetic that didn't simpify.
15735 (simplify_plus_minus): New argument force; update
15736 all callers. Don't split CONST unless we can do something with it,
15737 and wouldn't lose the constness of the operands.
15738
15739 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
15740 that we generated earlier.
15741
15742 2002-02-21 Tom Tromey <tromey@redhat.com>
15743
15744 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15745 (output_line_info): Use constant `1', with a long explanatory
15746 comment.
15747 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
15748
15749 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
15750
15751 * jump.c (redirect_jump): If old label has no UID, don't try to
15752 delete it.
15753
15754 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
15755
15756 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
15757 If input is constant, do shifts at compile time.
15758
15759 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
15760
15761 * doc/extend.texi: Fix some more overfull hboxes.
15762
15763 2002-02-21 Jakub Jelinek <jakub@redhat.com>
15764
15765 PR optimization/4994
15766 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
15767 register moves.
15768
15769 2002-02-21 Jakub Jelinek <jakub@redhat.com>
15770
15771 PR c++/4574
15772 * expr.h (expand_and): Add mode argument.
15773 * expmed.c (expand_and): Add mode argument.
15774 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
15775 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
15776 * except.c (expand_builtin_extract_return_addr): Likewise.
15777 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
15778 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
15779 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
15780 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
15781 * config/c4x/c4x.md: Use GEN_INT (x) instead of
15782 gen_rtx (CONST_INT, VOIDmode, x).
15783
15784 2002-02-21 Jakub Jelinek <jakub@redhat.com>
15785
15786 PR c/4697:
15787 * stmt.c (warn_if_unused_value): Move side effects test once more.
15788
15789 2002-02-20 Torbjorn Granlund <tege@swox.com>
15790
15791 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
15792 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
15793
15794 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
15795
15796 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
15797 SUBREG or ZERO_EXTEND.
15798
15799 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
15800
15801 * sh.h (current_function_anonymous_args): Remove.
15802 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
15803 of current_function_varargs and current_function_stdarg is set.
15804 * sh.c (sh_expand_prologue): Check current_function_varargs /
15805 current_function_stdarg / TARGET_SH5 instead of
15806 current_function_anonymous_args.
15807
15808 * sh64.h (TARGET_VERSION): Define.
15809
15810 2002-02-20 David Edelsohn <edelsohn@gnu.org>
15811
15812 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
15813 VRSAVE_REGNO on TARGET_ALTIVEC.
15814
15815 2002-02-20 Alan Modra <amodra@bigpond.net.au>
15816
15817 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
15818 bits of SImode const_int.
15819 (includes_rshift_p): Likewise.
15820 (print_operand): Call mask_operand and mask64_operand with correct
15821 mode.
15822 (rs6000_output_function_epilogue): Pad traceback table to word.
15823 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
15824 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
15825 mask64_operand with correct mode.
15826 (FUNCTION_ARG_REGNO_P): Correct parentheses.
15827
15828 2002-02-20 Jakub Jelinek <jakub@redhat.com>
15829
15830 PR debug/4461
15831 * varasm.c (get_pool_constant_mark): New.
15832 * rtl.h (get_pool_constant_mark): Add prototype.
15833 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
15834 be represented if it has not been output.
15835
15836 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
15837
15838 * combine.c (do_SUBST): Sanity check substitutions of
15839 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
15840 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
15841 CONST_INT into its operand.
15842 (known_cond): Likewise, for ZERO_EXTEND.
15843 * simplify-rtx.c (simplify_unary_operation): Fix condition to
15844 allow for simplification of wide modes. Reject CONST_INTs in
15845 ZERO_EXTEND when their actual mode is not given.
15846
15847 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
15848
15849 * c-decl.c (pushdecl): If no global declaration is found for an
15850 extern declaration in block scope, try a limbo one.
15851
15852 2002-02-20 Jakub Jelinek <jakub@redhat.com>
15853
15854 PR c++/4401
15855 * c-common.c (pointer_int_sum): Moved from...
15856 * c-typeck.c (pointer_int_sum): ...here.
15857 * c-common.h (pointer_int_sum): Add prototype.
15858
15859 2002-02-20 Jakub Jelinek <jakub@redhat.com>
15860
15861 PR c++/5713
15862 * c-decl.c (duplicate_decls): Return 0 if issued error about
15863 redeclaration.
15864
15865 2002-02-20 Roger Sayle <roger@eyesopen.com>
15866 Jakub Jelinek <jakub@redhat.com>
15867
15868 PR c/4389
15869 * tree.c (host_integerp): Ensure that the constant integer is
15870 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
15871 when pos is zero or non-zero respectively. Clarify comment.
15872 * c-format.c (check_format_info_recurse): Fix host_integerp
15873 usage; the pos argument should be zero when assigning to a
15874 signed HOST_WIDE_INT.
15875
15876 2002-02-20 Richard Henderson <rth@redhat.com>
15877
15878 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
15879 of the operand, rather than assuming TImode.
15880 (ix86_expand_binop_builtin): Cope with commutative patterns
15881 using nonimmediate_operand for both operands.
15882 (ix86_expand_timode_binop_builtin): Likewise.
15883 (ix86_expand_store_builtin): Validate operand 1.
15884 (ix86_expand_unop1_builtin): Likewise.
15885
15886 2002-02-20 Philip Blundell <philb@gnu.org>
15887
15888 PR 5705
15889 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
15890
15891 2002-02-20 Richard Henderson <rth@redhat.com>
15892
15893 PR c/5615
15894 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
15895
15896 2002-02-20 Tom Tromey <tromey@redhat.com>
15897
15898 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15899 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15900 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15901 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15902 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
15903 unconditionally.
15904
15905 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
15906
15907 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
15908 for (const_int 0) in X not just INTVAL.
15909
15910 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
15911
15912 * doc/extend.texi: Avoid or reduce overfull hboxes.
15913
15914 2002-02-20 Diego Novillo <dnovillo@redhat.com>
15915
15916 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
15917 operations if the field does not start at a mode boundary.
15918
15919 2001-02-20 Joel Sherrill <joel@OARcorp.com>
15920
15921 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
15922 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
15923 Also done for -Acpu and -Amachine.
15924
15925 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
15926
15927 * cppinit.c (init_dependency_output): Take deps output file
15928 from -o if none given with -MF. Suppress normal output.
15929 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
15930 * doc/cpp.texi, doc/invoke.texi: Update.
15931
15932 2002-02-19 Zack Weinberg <zack@codesourcery.com>
15933
15934 * toplev.c (output_quoted_string): Write unprintable
15935 characters with octal escapes.
15936
15937 2002-02-19 David Edelsohn <edelsohn@gnu.org>
15938
15939 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
15940 really_call_used[VRSAVE_REGNO] if not Altivec.
15941
15942 2002-02-19 Alan Modra <amodra@bigpond.net.au>
15943
15944 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
15945 MODE_MASK.
15946 (constant_pool_expr_1): Fix formatting.
15947 (rs6000_legitimize_reload_address): Likewise.
15948
15949 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15950
15951 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
15952 now that we have one.
15953
15954 2002-02-19 Zack Weinberg <zack@codesourcery.com>
15955
15956 * tree.h (struct tree_common): Remove aux. Add unused_0 at
15957 end of first block of bitfields (which was only seven bits);
15958 rename dummy to unused_1; remove comment which is no longer true.
15959
15960 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
15961
15962 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
15963
15964 2002-02-19 Philip Blundell <pb@nexus.co.uk>
15965
15966 PR 5399
15967 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
15968 if generating PIC.
15969
15970 PR 5054
15971 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
15972 arm_is_longcall_p rather than inspecting call-type cookie
15973 directly.
15974 (call_value_insn) [TARGET_THUMB]: Likewise.
15975
15976 2002-02-19 Graham Stott <grahams@redhat.com>
15977
15978 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
15979
15980 2002-02-19 David Edelsohn <edelsohn@gnu.org>
15981
15982 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
15983 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
15984 (FP_SAVE_INLINE): Delete.
15985
15986 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
15987 * config/rs6000/eabi.asm: Remove ABI save restore routines.
15988 * config/rs6000/t-ppccomm: Build crtsavres.o.
15989 * config/rs6000/crtsavres.asm: New file.
15990
15991 2002-02-19 Philip Blundell <philb@gnu.org>
15992
15993 * config/arm/arm.c (use_return_insn): Don't reject interrupt
15994 functions.
15995 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
15996 (output_return_instruction): Allow interrupt functions to return with
15997 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
15998 (arm_expand_prologue): Subtract 4 before stacking LR in an
15999 interrupt function.
16000
16001 2002-02-19 Philip Blundell <pb@nexus.co.uk>
16002
16003 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
16004 decl, not just FUNCTION_DECL.
16005 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
16006 (arm_assemble_integer): Likewise.
16007 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
16008 marked local.
16009
16010 2002-02-19 matthew green <mrg@eterna.com.au>
16011
16012 * config.gcc (sparc-*-netbsdelf*): Enable target.
16013 (sparc64-*-netbsd*): New target.
16014 * config/sparc/netbsd-elf.h: New file.
16015 * config/sparc/t-netbsd64: New file.
16016
16017 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
16018
16019 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
16020
16021 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
16022
16023 * doc/invoke.texi: explicitly list the style guidelines that
16024 -Weffc++ checks for.
16025
16026 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
16027
16028 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
16029
16030 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
16031
16032 PR other/5718
16033 * gcc.c (cpp_unique_options): Treat -o as indicating object file
16034 only if not -E. If -E, pass -o through to the preprocessor.
16035
16036 2002-02-19 Kazu Hirata <kazu@hxi.com>
16037
16038 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
16039 register number with an appropriate macro.
16040
16041 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
16042
16043 * doc/rtl.texi (Constants): Close @code tag.
16044
16045 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
16046
16047 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
16048 ("mmx_uavgv4hi3"): Same.
16049 ("pmulhrwv4hi3"): Same.
16050
16051 * tree-inline.c (walk_tree): Handle vectors.
16052
16053 * c-common.c (constant_expression_warning): Handle vectors.
16054 (overflow_warning): Same.
16055
16056 * sched-deps.c (sched_analyze_2): Handle vectors.
16057
16058 * rtlanal.c (rtx_unstable_p): Handle vectors.
16059 (rtx_varies_p): Same.
16060 (count_occurrences): Same.
16061 (regs_set_between_p): Same.
16062 (modified_between_p): Same.
16063 (modified_in_p): Same.
16064 (volatile_insn_p): Same.
16065 (volatile_refs_p): Same.
16066 (side_effects_p): Same.
16067 (may_trap_p): Same.
16068 (inequality_comparisons_p): Same.
16069 (replace_regs): Same.
16070 (computed_jump_p_1): Same.
16071
16072 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
16073 argument.
16074 (inner_mode_array): New.
16075 (copy_rtx): Handle vectors.
16076 (copy_most_rtx): Same.
16077 (rtx_equal_p): Same.
16078 (get_mode_alignment): Adjust for vectors.
16079
16080 * resource.c (mark_referenced_resources): Handle vectors.
16081 (mark_set_resources): Same.
16082
16083 * reload1.c (eliminate_regs): Handle vectors.
16084 (elimination_effects): Same.
16085 (scan_paradoxical_subregs): Same.
16086
16087 * reload.c (subst_reg_equivs): Handle vectors.
16088
16089 * regrename.c (scan_rtx): Handle vectors.
16090
16091 * regclass.c (reg_scan_mark_refs): Handle vectors.
16092
16093 * recog.c (find_single_use_1): Handle vectors.
16094
16095 * local-alloc.c (equiv_init_varies_p): Handle vectors.
16096 (contains_replace_regs): Same.
16097 (memref_referenced_p): Same.
16098
16099 * integrate.c (copy_rtx_and_substitute): Handle vectors.
16100 (subst_constants): Same.
16101
16102 * genattrtab.c (attr_copy_rtx): Handle vectors.
16103 (encode_units_mask): Same.
16104 (clear_struct_flag): Same.
16105 (count_sub_rtxs): Same.
16106
16107 * gcse.c (want_to_gcse_p): Handle vectors.
16108 (oprs_unchanged_p): Same.
16109 (hash_expr_1): Same.
16110 (oprs_not_set_p): Same.
16111 (expr_killed_p): Same.
16112 (compute_transp): Same.
16113 (store_ops_ok): Same.
16114
16115 * function.c (purge_addressof_1): Do not allow paradoxical subregs
16116 of vectors.
16117 (fixup_var_refs_1): Same.
16118 (instantiate_virtual_regs_1): Same.
16119
16120 * fold-const.c (operand_equal_p): Handle vectors.
16121 (fold): Same.
16122 (rtl_expr_nonnegative_p): Same.
16123
16124 * flow.c (mark_used_regs): Handle vectors.
16125
16126 * df.c (df_uses_record): Handle vectors.
16127
16128 * cselib.c (cselib_subst_to_values): Handle vectors.
16129 (cselib_mem_conflict_p): Same.
16130 (hash_rtx): Same.
16131
16132 * cse.c (canon_reg): Handle vectors.
16133 (fold_rt): Same.
16134 (cse_process_notes): Same.
16135 (count_reg_usage): Same.
16136 (canon_hash): Same.
16137
16138 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
16139
16140 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
16141
16142 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
16143 (gen_rtx): Handle CONST_VECTOR.
16144 (gen_const_vector_0): New.
16145 (copy_rtx_if_shared): CONST_VECTORs can be shared.
16146 (reset_used_flags): Same.
16147 (copy_insn_1): Same.
16148 (initializer_constant_valid_p): Handle VECTOR_CST.
16149
16150 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
16151
16152 * doc/rtl.texi (Constants): Document const_vector.
16153 (CONST0_RTX): Update for vectors.
16154 (RTL sharing): Same.
16155
16156 * print-tree.c (print_node): Add case for VECTOR_CST.
16157
16158 * tree.h (TREE_VECTOR_CST_ELTS): New.
16159 (struct tree_vector): New.
16160 (union tree_node): Add vector node.
16161 (build_vector): Add prototype.
16162
16163 * tree.def (VECTOR_CST): New.
16164
16165 * tree.c (build_vector): New.
16166
16167 * expmed.c (make_tree): Handle CONST_VECTOR.
16168
16169 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
16170 (CONST_VECTOR_ELT): New.
16171 (CONST_VECTOR_NUNITS): New.
16172
16173 * machmode.h (GET_MODE_INNER): New.
16174 (DEF_MACHMODE): Accept 8th arg.
16175
16176 * machmode.def: Add 8th argument for vector inner mode.
16177 Add inner vector modes for vectors.
16178
16179 * rtl.def (VEC_CONST): Remove.
16180 (CONST_VECTOR): New.
16181
16182 * expr.c (clear_storage): Allow vectors.
16183 (is_zeros_p): Handle VECTOR_CST.
16184
16185 * varasm.c (output_constant_pool): Handle vectors.
16186 (rtx_const): Add veclo and vechi fields.
16187 (kind): Add RTX_VECTOR.
16188 (decode_rtx_const): Add case for vector.
16189
16190 * config/rs6000/rs6000-protos.h: Add zero_constant.
16191
16192 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
16193 constants. Force easy vector constants into memory.
16194 (easy_vector_constant): New.
16195 (emit_easy_vector_constant): New.
16196 (rs6000_legitimize_reload_address): Do not generate bad reloads on
16197 darwin.
16198
16199 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
16200 instruction does.
16201 ("altivec_lvxl"): Same.
16202 (altivec_lvebx): Same.
16203 (altivec_lvehx): Same.
16204 (altivec_lvewx): Same.
16205 ("*movv4si_const0"): New.
16206 ("*movv4sf_const0"): New.
16207 ("*movv8hi_const0"): New.
16208 ("*movv16qi_const0"): New.
16209
16210 2002-02-18 Kazu Hirata <kazu@hxi.com>
16211
16212 * config/h8300/h8300.c (notice_update_cc): Use
16213 cc_status.value2.
16214
16215 2002-02-18 Kazu Hirata <kazu@hxi.com>
16216
16217 * config/h8300/h8300.md (divmod patterns): Change the
16218 constraints for operands[1] to register_operand.
16219
16220 2002-02-18 Kazu Hirata <kazu@hxi.com>
16221
16222 * config/h8300/h8300-protos.h: Remove the prototype for
16223 p_operand.
16224 * config/h8300/h8300.c (p_operand): Remove.
16225 * config/h8300/h8300.md: Replace p_operand with
16226 const_int_operand.
16227
16228 2002-02-18 Philip Blundell <pb@nexus.co.uk>
16229
16230 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
16231 comment.
16232 (output_return_instruction): Allow use of LDR to unstack
16233 return addresss even for interrupt handlers or when
16234 interworking. If compiling for ARMv5, use interworking-safe
16235 return instructions by default. Remove duplicated code and
16236 lengthy "strcat" sequences.
16237
16238 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16239
16240 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
16241 (LINK_EH_SPEC): Define.
16242 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
16243
16244 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
16245
16246 * config/s390/s390.c (s390_emit_prologue): Do not set the
16247 frame_related flag for call-clobbered registers.
16248
16249 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
16250
16251 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
16252 (construct_container): Fix handling of SSE operands.
16253 (ix86_expand_builtin): Fix handling of 64bit pointers.
16254 (mmx_maskmovq_rex): New pattern.
16255
16256 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
16257
16258 * regrename.c (kill_set_value): Handle subregs properly.
16259
16260 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
16261
16262 * objc/objc-act.c (handle_impent): Remove leading '*'
16263 from objc_class_name.
16264
16265 2002-02-17 Richard Henderson <rth@redhat.com>
16266
16267 * config/alpha/alpha.c (some_small_symbolic_operand,
16268 some_small_symbolic_operand_1, split_small_symbolic_operand,
16269 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
16270 Handle small SYMBOL_REFs anywhere, not just inside memories.
16271 * config/alpha/alpha-protos.h: Update.
16272 * config/alpha/alpha.h (PREDICATE_CODES): Update.
16273 * config/alpha/alpha.md (small symbolic operand splitter): Update.
16274
16275 2002-02-17 Roland McGrath <roland@frob.com>
16276
16277 * config.gcc (powerpc-*-gnu-gnualtivec*,
16278 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
16279 * config/rs6000/gnu.h: New file.
16280 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
16281 Grok "gnu" in rs6000_abi_name.
16282 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
16283 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
16284 Grok -mcall-gnu analogous to -mcall-linux et al.
16285 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16286 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
16287 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
16288
16289 2002-02-17 Jakub Jelinek <jakub@redhat.com>
16290
16291 PR c/3444:
16292 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
16293 shortening.
16294
16295 2002-02-17 Philipp Thomas <pthomas@suse.de>
16296
16297 * config/cris/cris.h: Undefine STARTFILE_SPEC and
16298 ENDFILE_SPEC before (re)defining them.
16299
16300 2002-02-17 Kazu Hirata <kazu@hxi.com>
16301
16302 * config/h8300/h8300.c: Fix formatting.
16303 * config/h8300/h8300.h: Likewise.
16304
16305 2002-02-17 Philipp Thomas <pthomas@suse.de>
16306
16307 * doc/tm.texi: Explain why empty strings should not be
16308 marked for translation.
16309
16310 2002-02-17 Philipp Thomas <pthomas@suse.de>
16311
16312 * final.c (output_operand_lossage): Changed to accept
16313 printf style arguments. Change calls where necessary.
16314 * output.h (output_operand_lossage): Change declaration
16315 accordingly. Update copyright.
16316 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
16317 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
16318 Update copyright date where necessary.
16319
16320 * config/i386/i386.c (print_operand): Likewise. Remove use of
16321 sprintf.
16322
16323 * config/cris/cris.c (cris_operand_lossage): Likewise.
16324 Rename parameter so that exgettext recognizes it as
16325 translatable message.
16326 (LOSE_AND_RETURN): Rename parameter to msgid.
16327
16328 2002-02-17 Kazu Hirata <kazu@hxi.com>
16329
16330 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
16331 hard coded register number with an appropriate macro.
16332 (HARD_REGNO_MODE_OK): Likewise.
16333 (ARG_POINTER_REGNUM): Likewise.
16334 (STATIC_CHAIN_REGNUM): Likewise.
16335 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
16336 * config/h8300/h8300.md (define_constants): Define more
16337 register numbers.
16338
16339 2002-02-17 Philipp Thomas <pthomas@suse.de>
16340
16341 * config/i386/i386.h: Don't mark empty strings for translation.
16342
16343 2002-02-16 H.J. Lu <hjl@gnu.org>
16344
16345 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
16346
16347 2002-02-16 Zack Weinberg <zack@codesourcery.com>
16348
16349 * cppinit.c (merge_include_chains): Check for brack being
16350 NULL before attempting to merge it with qtail.
16351
16352 2002-02-16 Andrew Cagney <ac131313@redhat.com>
16353
16354 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
16355 DBX_DEBUG.
16356
16357 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
16358
16359 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
16360
16361 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
16362
16363 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
16364 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
16365 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
16366
16367 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16368
16369 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
16370 now only if !TARGET_FIX.
16371 (*movsi_nt_vms_fix): New pattern.
16372
16373 2002-02-16 Douglas B Rupp <rupp@gnat.com>
16374
16375 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
16376 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
16377 (alpha_sa_mask, alpha_sa_size): Reflect above change.
16378 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
16379 (alpha_start_function, alpha_expand_epilogue): Likewise.
16380 (unicosmk_gen_dsib): Likewise.
16381
16382 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16383
16384 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
16385
16386 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
16387
16388 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
16389 check_and_change_labels, s390_final_chunkify): Delete.
16390 (s390_split_branches, s390_chunkify_pool): New functions.
16391 (s390_function_prologue): Call them.
16392
16393 * config/s390/s390.h (S390_REL_MAX): Delete.
16394 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
16395
16396 * config/s390/s390.md (cjump, icjump, jump): Fix length
16397 attribute calculation.
16398
16399
16400 2002-02-15 David Edelsohn <edelsohn@gnu.org>
16401
16402 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
16403 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
16404
16405 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
16406
16407 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
16408 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
16409 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
16410
16411 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
16412
16413 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
16414
16415 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
16416
16417 * reload.c (find_dummy_reload): Check that an output register
16418 is valid for its mode.
16419
16420 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
16421
16422 * combine.c (known_cond): After replacing the REG of a SUBREG, try
16423 to simplify it.
16424
16425 * function.c (assign_parms): Demote promoted argument passed by
16426 transparent reference.
16427
16428 2001-02-14 Joel Sherrill <joel@OARcorp.com>
16429
16430 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
16431 -Acpu() and -Amachine() to eliminate warnings.
16432
16433 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
16434
16435 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
16436
16437 2002-02-14 Kazu Hirata <kazu@hxi.com>
16438
16439 * config/h8300/h8300-protos.h: Update the prototype for
16440 const_costs.
16441 * config/h8300/h8300.c (const_costs): Treat SET as a little
16442 more expensive operation.
16443 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
16444 reference to const_costs.
16445
16446 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
16447
16448 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
16449
16450 2002-02-14 Jakub Jelinek <jakub@redhat.com>
16451
16452 PR c/5503:
16453 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
16454 use arguments from newtype.
16455
16456 2002-02-13 Eric Christopher <echristo@redhat.com>
16457
16458 * config/mips/mips.c (override_options): Add check for march/mipsX
16459 on the same command line. Fix error message in cpu processing.
16460 Remove architecture and ISA checks.
16461
16462 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
16463
16464 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
16465
16466 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
16467
16468 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
16469
16470 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
16471 alternatives.
16472 ("*movv8hi_internal1"): Same.
16473 ("*movv16qi_internal1"): Same.
16474 ("*movv4sf_internal1"): Same.
16475
16476 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
16477 not push_reload for altivec modes.
16478
16479 2002-02-13 Joel Sherrill <joel@OARcorp.com>
16480
16481 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
16482 all RTEMS targets including removal of #includes from config/*/rtems*.h
16483 file and adding them to tm_file setting. Added xm_defines=POSIX to
16484 many targets.
16485 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
16486 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
16487 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
16488 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
16489 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
16490 config/m68k/rtemself.h: Ditto.
16491 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
16492 config/mips/rtems64.h: Ditto.
16493 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
16494 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
16495 Ditto.
16496 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
16497 config/sparc/rtemself.h: Ditto.
16498 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
16499 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
16500 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
16501 more like arm-elf.
16502 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
16503 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
16504 target made more similar to i386-elf.
16505 * config/i386/t-rtems-i386: Added soft float support and multilibs.
16506 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
16507 be similar to config/m68k/t-m68kelf.
16508 * gthr-rtems.h: Encapsulate with extern "C" for C++.
16509
16510 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
16511
16512 * regmove.c (kill_value): Handle subregs.
16513
16514 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
16515
16516 * i386.md (mul patterns): Allow memory operand to be first;
16517 add expanders where needed; fix constraints.
16518 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
16519 Allow memory operand to be the first.
16520
16521 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
16522 operands.
16523
16524 2002-02-13 Jakub Jelinek <jakub@redhat.com>
16525
16526 PR c/5681:
16527 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
16528 GET_MODE (x).
16529
16530 2002-02-13 Jakub Jelinek <jakub@redhat.com>
16531
16532 PR optimization/5547:
16533 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
16534 all valid IA-32 address modes involving non-scaled %ebx and
16535 GOT/GOTOFF as displacement.
16536
16537 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
16538
16539 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
16540 after emitting ltorg insns.
16541
16542 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
16543 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
16544 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
16545 *abssf2): Fix "op_type" attribute.
16546
16547 2002-02-13 Douglas B Rupp <rupp@gnat.com>
16548
16549 * mkconfig.sh: Avoid using a subshell redirect.
16550 ($output.T): Change to $(output)T.
16551 (ENABLE_NLS): Remove unneeded undef.
16552
16553 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
16554 * config/alpha/x-vms (libsubdir): Define.
16555
16556 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
16557 register frame procedures. Optimize retrieving context.
16558
16559 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
16560 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
16561 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
16562
16563 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16564
16565 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
16566 Make same change as for find_base_value.
16567
16568 2002-02-13 Kazu Hirata <kazu@hxi.com>
16569
16570 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
16571 of QImode and SImode.
16572
16573 2002-02-13 Kazu Hirata <kazu@hxi.com>
16574
16575 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
16576 length computation of movsi.
16577 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
16578
16579 2002-02-13 Kazu Hirata <kazu@hxi.com>
16580
16581 * config/h8300/h8300.md (subqi3): Tighten the predicate for
16582 operands[2] to register_operand.
16583
16584 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
16585
16586 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
16587
16588 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
16589
16590 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
16591 for altivec_lvx* and altivec_stvx*.
16592 ("*movv4si_internal"): Add constraint for loading from GPRs.
16593 ("*movv8hi_internal1"): Same.
16594 ("*movv16qi_internal1"): Same.
16595 ("*movv4sf_internal1"): Same.
16596
16597 * config/rs6000/rs6000.c (altivec_register_operand): New.
16598
16599 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
16600 altivec_register_operand.
16601
16602 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
16603
16604 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
16605 handle SYMBOL_REF.
16606
16607 2002-02-13 Stan Shebs <shebs@apple.com>
16608
16609 * c-typeck.c (digest_init): Handle vectors.
16610 (really_start_incremental_init): Same.
16611 (pop_init_level): Same.
16612 (process_init_element): Same.
16613
16614 * varasm.c (output_constant): Same.
16615
16616 * expr.c (clear_storage): Same.
16617 (store_constructor): Same.
16618
16619 2002-02-12 Eric Christopher <echristo@redhat.com>
16620
16621 * explow.c (hard_function_value): Add comment explaining
16622 signed/unsigned comparison.
16623
16624 2002-02-12 Jakub Jelinek <jakub@redhat.com>
16625
16626 * jump.c (never_reached_warning): Add finish argument.
16627 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
16628 real insn after end.
16629 * rtl.h (never_reached_warning): Adjust prototype.
16630 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
16631 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
16632 never_reached_warning.
16633
16634 2002-02-12 Graham Stott <grahams@redhat.com>
16635
16636 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
16637
16638 2002-02-12 Kazu Hirata <kazu@hxi.com>
16639
16640 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
16641 logical shifts on H8/300.
16642 (shift_alg_si): Improve several shifts on H8/300.
16643 (get_shift_alg): Likewise.
16644
16645 2002-02-12 Graham Stott <grahams@redhat.com>
16646
16647 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
16648
16649 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16650
16651 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
16652 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
16653
16654 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
16655
16656 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
16657 non-CONST_INT through default_assemble_integer.
16658 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
16659 <case 8>: Abort for CONST_DOUBLE.
16660
16661 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
16662
16663 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
16664 is specified.
16665 * config/pa/pa-linux.h (LIB_SPEC): Delete.
16666 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16667
16668 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
16669
16670 * config/stormy16/stormy16.md (zero_extendqihi2): New.
16671
16672 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
16673
16674 * regrename.c (regrename_optimize): Don't accept a
16675 part-clobbered register if the replaced register is not part
16676 clobbered.
16677
16678 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
16679 take padding into account when computing the argument value.
16680
16681 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
16682
16683 * combine.c (try_combine): Apply substitutions in
16684 CALL_INSN_FUNCTION_USAGE too.
16685
16686 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
16687
16688 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
16689 __builtin_altivec_abs*.
16690 (bdesc_abs): New.
16691
16692 * config/rs6000/rs6000.h (rs6000_builtins): Add
16693 ALTIVEC_BUILTIN_ABS*.
16694
16695 * config/rs6000/altivec.h: Use const char for builtins expecting
16696 literals.
16697 (vec_abs): New versions for C and C++.
16698 (vec_abss): Same.
16699
16700 2002-02-10 Kazu Hirata <kazu@hxi.com>
16701
16702 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
16703 using Pmode.
16704
16705 2002-02-10 Kazu Hirata <kazu@hxi.com>
16706
16707 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
16708 constant definition from h8300.md.
16709 (FRAME_POINTER_REGNUM): Likewise.
16710 * config/h8300/h8300.md (define_constants): Add FP_REG.
16711
16712 2002-02-10 Kazu Hirata <kazu@hxi.com>
16713
16714 * config/h8300/h8300.c (print_operand): Remove redundant code.
16715
16716 2002-02-10 Kazu Hirata <kazu@hxi.com>
16717
16718 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
16719 * config/h8300/h8300.c (byte_reg): Make it static.
16720
16721 2002-02-10 Richard Henderson <rth@redhat.com>
16722
16723 PR c/5623
16724 * c-typeck.c (incomplete_type_error): Handle flexible array members.
16725
16726 2002-02-10 Richard Henderson <rth@redhat.com>
16727
16728 PR c++/5624
16729 * tree.c (append_random_chars): Don't abort if main_input_filename
16730 does not exist.
16731
16732 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
16733
16734 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
16735
16736 2002-02-10 Kazu Hirata <kazu@hxi.com>
16737
16738 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
16739 (pushhi1): Likewise.
16740
16741 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
16742
16743 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
16744 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
16745
16746 2002-02-09 David O'Brien <obrien@FreeBSD.org>
16747
16748 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
16749 remove MASK_VIS.
16750 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
16751
16752 2002-02-09 Kazu Hirata <kazu@hxi.com>
16753
16754 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
16755 a half of an SImode register on H8/300.
16756
16757 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
16758
16759 * i386.md (movdi_2): Add missing '!'.
16760
16761 2002-02-09 Kazu Hirata <kazu@hxi.com>
16762
16763 * config/h8300/h8300.h: Fix formatting. Remove commented-out
16764 definitions.
16765
16766 2002-02-09 Kazu Hirata <kazu@hxi.com>
16767
16768 * config/h8300/h8300.md (length): Correct the distance valid
16769 for the short branch.
16770
16771 2002-02-09 Kazu Hirata <kazu@hxi.com>
16772
16773 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
16774
16775 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
16776
16777 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
16778 registers in SImode.
16779 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
16780 part-clobbered.
16781
16782 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
16783 patch.
16784
16785 Contribute sh64-elf.
16786 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
16787 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
16788 (sh_cannot_modify_jumps_p): New function.
16789 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
16790 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
16791 (sh_ms_bitfield_layout_p): New function.
16792 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
16793 Zack Weinberg <zack@codesourcery.com>
16794 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
16795 expand_simple_binop instead of expand_binop.
16796 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
16797 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
16798 use of .quad and .uaquad.
16799 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
16800 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
16801 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16802 * config/sh/sh.md (movdi_const, movdi_const_32bit,
16803 movdi_const_16bit): Make sure all CONSTs have modes.
16804 (sym2PIC): Ditto, but by adjusting all callers.
16805 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
16806 if the prologue calls the SHmedia argument decoder or register
16807 saver.
16808 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16809 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
16810 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
16811 (sh_expand_epilogue): Don't emit USE of return target register.
16812 (prepare_move_operands): Legitimize DImode PIC addresses.
16813 (sh_media_register_for_return): Skip tr0, used to initialize the
16814 PIC register.
16815 (sh_expand_prologue): Remove explicit USE of return register.
16816 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
16817 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
16818 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
16819 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
16820 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
16821 EXTRA_CONSTRAINT_T.
16822 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
16823 (MOVI_SHORI_BASE_OPERAND_P): New.
16824 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
16825 (EXTRA_CONSTRAINT_T): Define in terms of them.
16826 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
16827 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
16828 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
16829 alternatives supporting TARGET_REGS.
16830 (UNSPEC_GOTPLT): New constant.
16831 (movdi split): Move incrementing of LABEL_NUSES...
16832 (movdi_const, movdi_const_32bit): Here. Use
16833 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
16834 (movdi_const_16bit): New.
16835 (call, call_value) [flag_pic]: Use GOTPLT.
16836 (call_pop, call_value_pop): New expands.
16837 (call_pop_compact, call_pop_rettramp): New insns.
16838 (call_value_pop_compact, call_value_pop_rettramp): New insns.
16839 (sibcall) [flag_pic]: Use GOT.
16840 (builtint_setjmp_receiver): Remove bogus, unused expand.
16841 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
16842 (*pt, *ptb, ptrel): New insns.
16843 (sym2GOT): Handle DImode GOT.
16844 (sym2GOTPLT, symGOTPLT2reg): New expands.
16845 (sym2PIC): New expand.
16846 (shcompact_return_tramp): Use GOTPLT to return trampoline.
16847 (shcompact_return_tramp_i): Use return register explicitly.
16848 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
16849 disable flag_reorder_blocks.
16850 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
16851 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
16852 clobbers, for clarity.
16853 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
16854 restoring of r0 in macl as MAYBE_DEAD.
16855 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
16856 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
16857 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
16858 alter_subreg all over.
16859 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
16860 reload, instead of emitting instructions that would require
16861 reloading.
16862 (casesi_load_media): Add missing modes.
16863 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
16864 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
16865 as used if the argument decoder is called.
16866 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
16867 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
16868 Pmode, then extend it to DImode if necessary.
16869 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
16870 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
16871 constants in FPU-enabled SHmedia, let them be loaded from memory.
16872 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
16873 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
16874 Adjust whitespace in assembly output templates.
16875 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
16876 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
16877 mode of if_then_else.
16878 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
16879 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
16880 sh.h.
16881 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
16882 Joern Rennecke <amylaar@redhat.com>
16883 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
16884 (SUBTARGET_CPP_PTR_SPEC): New.
16885 (SUBTARGET_CPP_SPEC): Remove.
16886 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
16887 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16888 Fix typo in previous checkin.
16889 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
16890 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
16891 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
16892 Alexandre Oliva <aoliva@redhat.com>
16893 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
16894 what single FP register can hold for SHmedia target.
16895 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
16896 Alexandre Oliva <aoliva@redhat.com>
16897 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16898 Do not split into SUBREG.
16899 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
16900 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
16901 and added new functions as specified in SH5 ABI r9.
16902 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
16903 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
16904 8-byte boundary.
16905 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
16906 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
16907 gen_consttable_4 and gen_consttable_8. Emit multiple labels
16908 and consttable_window_ends.
16909 2001-06-03 Graham Stott <grahams@redhat,com>
16910 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
16911 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
16912 * config/sh/sh.c (print_operand): Handle floating-point pair,
16913 vector and matrix registers.
16914 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
16915 vector modes into account.
16916 * config/sh/sh.md (movv2sf): Split move between registers into
16917 movdf.
16918 (movv4sf, movv16sf): Introduce insns that get split only after
16919 reload.
16920 * config/sh/shmedia.h: Fix Copyright dates.
16921 * config/sh/ushmedia.h: Likewise. Move loop counter
16922 declarations into conditionals that uses them.
16923 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
16924 loop boundary.
16925 * config/sh/sshmedia.h: Fix Copyright dates.
16926 (sh_media_PUTCFG): Fix constraints.
16927 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
16928 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
16929 ptrmemfunc_vbit_in_delta for SH5.
16930 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
16931 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
16932 * invoke.texi: Likewise.
16933 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
16934 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
16935 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
16936 GCC_pop_shmedia_regs_nofpu): New global symbols.
16937 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
16938 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
16939 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
16940 compact function with nonlocal labels.
16941 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
16942 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
16943 (initial_elimination_offset): Account for their stack space.
16944 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
16945 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
16946 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
16947 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
16948 least one of the operands to be a register.
16949 (movv2sf): Likewise. Renamed to movv2sf_i.
16950 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
16951 prepare_move_operands() before emitting SHmedia insns.
16952 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
16953 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
16954 Don't save nor initialize r12. Don't mis-align the stack.
16955 Pad the code with a nop.
16956 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
16957 stack.
16958 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
16959 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
16960 [__SHMEDIA__]: Implement.
16961 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
16962 * config/sh/sh.md: Set latency of `pt' closer to reality.
16963 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
16964 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
16965 Set move, load and store type attributes.
16966 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
16967 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
16968 profiling.
16969 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
16970 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
16971 * config/sh/sh.c (sh_media_register_for_return): New function.
16972 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
16973 branch-target register.
16974 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
16975 * config/sh/sh.md (return_media_i): Use any call-clobbered
16976 branch-target register.
16977 (return_media): If r18 wasn't copied in the prologue, copy it
16978 here.
16979 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
16980 Clear class FP0_REGS.
16981 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
16982 from elf.h.
16983 2001-03-08 DJ Delorie <dj@redhat.com>
16984 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
16985 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
16986 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
16987 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
16988 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
16989 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
16990 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
16991 return value correctly for call_cookie.
16992 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
16993 * config/sh/crt1.asm (start): Modified so as to call
16994 ___setup_argv_and_call_main.
16995 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
16996 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
16997 SHmedia mode.
16998 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
16999 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
17000 (STRIP_NAME_ENCODING): Use it.
17001 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
17002 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
17003 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
17004 prepare_scc_operands().
17005 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
17006 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
17007 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
17008 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
17009 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
17010 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
17011 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
17012 used in shcompact_incoming_args.
17013 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
17014 change.
17015 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
17016 mode.
17017 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
17018 Adjust accordingly.
17019 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
17020 Simplify. Adjust. Add sanity check.
17021 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
17022 FPU_SINGLE_BIT.
17023 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
17024 TARGET_SHCOMPACT.
17025 (udivsi3, divsi3): Use them.
17026 (force_mode_for_call): New insn.
17027 (call, call_value, sibcall_value): Emit it before SHcompact
17028 calls.
17029 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
17030 * config/sh/sh.md (call, call_value, sibcall): Make sure the
17031 call cookie is non-NULL before taking its value.
17032 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
17033 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
17034 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
17035 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
17036 block.
17037 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
17038 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
17039 temporary for stack adjusts. Use MACL and MACH to pass
17040 arguments to shcompact_incoming_args.
17041 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
17042 clobber r1.
17043 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
17044 (nested_trampoline): Load static chain address into r1.
17045 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
17046 2001-01-07 Alexandre Oliva <aoliva@redhat.com
17047 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
17048 fp_arith_reg_operand().
17049 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
17050 * config/sh/sh.md (casesi): Sign-extend the first two operands,
17051 and use signed compares for them.
17052 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
17053 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
17054 ones properly aligned.
17055 (find_barrier): Account for extra alignment needed for 8-byte wide
17056 constants.
17057 (machine_dependent_reorg): Require a label for the second 4-byte
17058 constant after an 8-byte one.
17059 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
17060 change.
17061 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
17062 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
17063 last_float when switching float modes.
17064 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
17065 auto-increment for general-purpose registers.
17066 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
17067 result.
17068 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
17069 for stack adjust.
17070 * config/sh/sh.c (sh_builtin_saveregs): Support using all
17071 registers for varargs.
17072 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
17073 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
17074 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
17075 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
17076 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
17077 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
17078 call_cookie accordingly.
17079 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
17080 (SHCOMPACT_BYREF): Likewise.
17081 (SHCOMPACT_FORCE_ON_STACK): New macro.
17082 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
17083 (sh_builtin_saveregs): Likewise.
17084 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17085 shcompact_incoming_args): Use new shift values. Support
17086 sequences of consecutive and non-consecutive pushes/pops.
17087 * config/sh/sh.md (return): Don't explicitly use PR_REG.
17088 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
17089 * config/sh/sh.h (TEXT_SECTION): Define.
17090 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
17091 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
17092 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
17093 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
17094 return values on FPU-enabled SHmedia.
17095 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
17096 FPU-enabled SHmedia.
17097 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
17098 value is returned in a non-FP reg and is not returned by
17099 reference.
17100 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
17101 jump_ind.
17102 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
17103 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
17104 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
17105 quad-aligned to be passed by callee-copy reference.
17106 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
17107 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
17108 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
17109 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
17110 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
17111 copying low-numbered FP regs to r7 and r8.
17112 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
17113 FP regs to general-purpose regs only if the copy was passed on the
17114 stack.
17115 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
17116 copying FP reg to r9.
17117 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
17118 copy FP regs to general-purpose regs only in outgoing calls.
17119 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
17120 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
17121 HOST_WIDE_INT.
17122 * config/sh/sh.h (struct sh_args): Document all fields.
17123 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
17124 passed partially on the stack should not consider making
17125 sibcalls.
17126 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
17127 stack_regs only for incoming calls. When passing FP args,
17128 make sure there are FP regs available before modifying
17129 call_cookie.
17130 (SHCOMPACT_BYREF): Pass double args in general-purpose
17131 registers by reference.
17132 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
17133 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
17134 attempt to generate sibcalls if the caller got any arguments
17135 by reference.
17136 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
17137 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
17138 to 8-byte boundaries.
17139 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
17140 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
17141 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
17142 stored in the stack.
17143 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
17144 for the offsets to have the ISA bit set.
17145 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
17146 invocation. Use beq instead of bgt to mark end of sequence of
17147 loads.
17148 (shcompact_incoming_args): Fix store of r2. Use beq instead of
17149 bgt to mark end of sequence of stores.
17150 * config/sh/sh.c (arith_operand): Don't check whether
17151 CONST_OK_FOR_J for now.
17152 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
17153 instead of long for conversion.
17154 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
17155 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
17156 before passing it to fprintf.
17157 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
17158 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
17159 Call set_fpscr before reading/writing SR.
17160 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
17161 Call set_fpscr.
17162 * config/sh/lib1funcs.asm: Add `.align 2' directives before
17163 SHmedia code.
17164 (FMOVD_WORKS): Define on SH5 with FPU.
17165 (set_fpscr): Define on SH5. Remove separate _fpscr_values
17166 setting.
17167 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
17168 _fpscr_values.
17169 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
17170 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
17171 address.
17172 (ia_main_table): Ditto.
17173 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
17174 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
17175 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
17176 the definitions from sh.h.
17177 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
17178 TARGET_SH5.
17179 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
17180 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
17181 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17182 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
17183 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
17184 Increment LABEL_NUSES.
17185
17186 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
17187 TARGET_SH5.
17188 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
17189 defined.
17190 * config/sh/elf.h (SIZE_TYPE): Likewise.
17191 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17192 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17193 shcompact_incoming_args): Load switch table addresses using
17194 datalabel.
17195 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17196 (NO_BUILTIN_SIZE_TYPE): Define.
17197 (SIZE_TYPE): Don't define.
17198 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17199 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
17200 definition of __SH5__=32 for -m5-compact-nofpu.
17201 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
17202 ADDR_DIFF_VEC.
17203 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
17204 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
17205 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
17206 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
17207 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
17208 (INSN_LENGTH_ALIGNMENT): Likewise.
17209 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
17210 * config/sh/sh.md (call, call_value, sibcall): Simplify
17211 copying of non-branch-target register.
17212 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
17213 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
17214 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
17215 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
17216 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
17217 floating-point values as structs.
17218 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
17219 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
17220 general-purpose register.
17221 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
17222 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
17223 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
17224 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
17225 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
17226 (ENCODE_SECTION_INFO): Enclose variables and constants in
17227 DATALABEL unspecs.
17228 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
17229 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
17230 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
17231 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
17232 only for LABEL_REFs. For SYMBOL_REFs, prepend
17233 SH_DATALABEL_ENCODING to the symbol name.
17234 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
17235 convert_mode().
17236 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
17237 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
17238 UNSPEC_DATALABEL.
17239 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
17240 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
17241 (DATALABEL_REF_P): Don't require CONST.
17242 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
17243 REL label.
17244 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
17245 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
17246 right.
17247 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
17248 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
17249 Use shallow_copy_rtx and PUT_MODE to change the mode of
17250 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
17251 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
17252 on SHmedia using GENERAL_REGs.
17253 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17254 bltu_media_i): Fix reversion of conditions.
17255 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
17256 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
17257 * config/sh/sh.c (output_far_jump): Save r13 in macl.
17258 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
17259 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
17260 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
17261 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
17262 (GCC_nested_trampoline): Likewise.
17263 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
17264 * config/sh/sh.c (gen_datalabel_ref): Define.
17265 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
17266 (INITIALIZE_TRAMPOLINE): Likewise.
17267 (TRAMPOLINE_ADJUST_ADDRESS): Define.
17268 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
17269 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
17270 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
17271 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
17272 (ic_invalidate): Adjust for SH5.
17273 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
17274 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
17275 _nested_trampoline.
17276 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
17277 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
17278 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
17279 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
17280 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
17281 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
17282 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
17283 * config/sh/sh.c (target_reg_operand): Match only target-branch
17284 registers and pseudos that aren't virtual registers.
17285 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17286 Copy operands that don't match target_reg_operand to pseudos.
17287 (call_media, call_value_media, sibcall_media): Use
17288 target_reg_operand instead of target_operand.
17289 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
17290 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
17291 * config/sh/sh.c (target_reg_operand): Match hardware registers
17292 other than branch-target registers.
17293 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
17294 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
17295 (fpscr_values) [SH5 == 32]: Define.
17296 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
17297 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17298 Handle function addresses coming in SUBREGs.
17299 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
17300 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17301 shcompact_return_trampoline): Use datalabel where appropriate.
17302 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
17303 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
17304 general-purpose register to copy one branch-target register to
17305 another.
17306 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
17307 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
17308 SYMBOL_REFs with VOIDmode.
17309 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17310 bltu_media_i): New insns.
17311 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
17312 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
17313 (INIT_CUMULATIVE_ARGS): Likewise.
17314 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
17315 * machmode.def (V16SFmode): New mode.
17316 * c-common.c (type_for_mode): Support V2SF and V16SF.
17317 * tree.c (build_common_tree_nodes_2): Likewise.
17318 * tree.h (tree_index): Likewise.
17319 * calls.c (emit_call_1): Take args_so_far. Adjust all
17320 callers. Introduce CALL_POPS_ARGS.
17321 * tm.texi (CALL_POPS_ARGS): Document.
17322 * config/sh/crt1.asm: Implement in SHmedia mode.
17323 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
17324 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
17325 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
17326 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
17327 Implement divsi and udivsi in SHmedia mode. Introduce
17328 SHcompact trampolines.
17329 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
17330 only in SHmedia64.
17331 (regno_reg_class): Rewrite.
17332 (fp_reg_names): Remove.
17333 (sh_register_names, sh_additional_register_names): New.
17334 (print_operand): Added `u'. Support SUBREGs in addresses.
17335 Add parentheses around shifted CONSTs.
17336 (output_file_start): Output .mode and .abi directives.
17337 (shiftcosts, addsubcosts, multcosts): Adjust.
17338 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
17339 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
17340 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
17341 bytes, not registers. Take into account the need for the
17342 SHcompact incoming args trampoline. Adjust all callers.
17343 (sh_expand_prologue): Take stack_regs into account. Call
17344 incoming args trampoline. Keep stack aligned as per SH5 ABI.
17345 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
17346 stack aligned as per SH5 ABI.
17347 (sh_builtin_saveregs): Support SH5 ABI.
17348 (sh_build_va_list, sh_va_start): Likewise.
17349 (initial_elimination_offset): Take alignment into account.
17350 Compute location of PR according to the SH5 stack frame.
17351 (arith_reg_operand): Reject branch-target registers.
17352 (shmedia_6bit_operand): New.
17353 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
17354 (target_reg_operand): Match DImode only. Accept SUBREGs.
17355 (target_operand): New.
17356 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
17357 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
17358 SIBCALL_REGS for SHmedia.
17359 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
17360 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
17361 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
17362 (TARGET_SWITCHES): New SH5 flags.
17363 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
17364 VALID_REGISTER_P to disable unsupported registers.
17365 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
17366 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
17367 (FUNCTION_ARG_PADDING): Define.
17368 (FASTEST_ALIGNMENT): Adjust.
17369 (SH_REGISTER_NAMES_INITIALIZER): New.
17370 (sh_register_names): Declare.
17371 (DEBUG_REGISTER_NAMES): Define.
17372 (REGISTER_NAMES): Define based on sh_register_names.
17373 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
17374 (sh_additional_register_names): Declare.
17375 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
17376 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
17377 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
17378 (REGISTER_NATURAL_MODE): Define.
17379 (FIRST_PSEUDO_REGISTER): Adjust.
17380 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
17381 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
17382 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
17383 (VECTOR_MODE_SUPPORTED_P): Define.
17384 (REG_CLASS_CONTENTS): Adjust.
17385 (SMALL_REGISTER_CLASSES): Adjust.
17386 (REG_ALLOC_ORDER): Adjust.
17387 (INDEX_REG_CLASS): Adjust.
17388 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
17389 (CONST_OK_FOR_LETTER_P): Adjust.
17390 (PREFERRED_RELOAD_CLASS): Adjust.
17391 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
17392 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
17393 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
17394 (FIRST_FP_PARM_REG): Adjust.
17395 (CALL_POPS_ARGS): Define.
17396 (FUNCTION_ARG_REGNO_P): Adjust.
17397 (struct sh_args): New fields.
17398 (GET_SH_ARG_CLASS): Adjust.
17399 (INIT_CUMULATIVE_ARGS): Adjust.
17400 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
17401 (FUNCTION_ARG_ADVANCE): Adjust.
17402 (FUNCTION_ARG): Adjust.
17403 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
17404 (FUNCTION_ARG_CALLEE_COPIES): Define.
17405 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
17406 (STRICT_ARGUMENT_NAMING): Define.
17407 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
17408 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
17409 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
17410 (SETUP_INCOMING_VARARGS): Adjust.
17411 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
17412 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
17413 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
17414 (SUBREG_OK_FOR_INDEX_P): Adjust.
17415 (EXTRA_CONSTRAINT_S): Update.
17416 (EXTRA_CONSTRAINT_T): New.
17417 (EXTRA_CONSTRAINT): Adjust.
17418 (GO_IF_LEGITIMATE_INDEX): Adjust.
17419 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
17420 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
17421 (MOVE_MAX): Adjust.
17422 (MAX_MOVE_MAX): Define.
17423 (Pmode): Adjust.
17424 (CONST_COSTS): Adjust.
17425 (REGISTER_MOVE_COST): Adjust.
17426 (BRANCH_COST): Adjust.
17427 (TEXT_SECTION_ASM_OP): Adjust.
17428 (DBX_REGISTER_NUMBER): Adjust.
17429 (ASM_OUTPUT_DOUBLE_INT): New.
17430 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
17431 (PREDICATE_CODES): Adjust.
17432 (PROMOTE_MODE): Adjust.
17433 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
17434 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
17435 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
17436 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
17437 (DR0_REG, DR2_REG, DR4_REG): Renumber.
17438 (TR0_REG, TR1_REG, TR2_REG): New.
17439 (XD0_REG): Renumber.
17440 (UNSPEC_COMPACT_ARGS): New.
17441 (type): Added pt and ptabs.
17442 (length): Default to 4 on SHmedia. Default pt length to 12
17443 and 20 on SHmedia32 and SHmedia64, respectively.
17444 (pt): New function unit.
17445 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
17446 Add whitespace between operands of SHmedia instructions.
17447 (movdicc): Fix.
17448 (adddi3_media, addsi3_media): Adjust constraints.
17449 (subsi3) [SHmedia]: Force operand 1 into a register.
17450 (udivsi3_i1_media, udivsi3_i4_media): New.
17451 (udivsi3): Support SHmedia.
17452 (divsi3_i1_media, divsi3_i4_media): New.
17453 (divsi3): Support SHmedia.
17454 (anddi3, iordi3, xordi3): Adjust constraints.
17455 (zero_extendhidi2, zero_extendqidi2): New.
17456 (extendsidi2, extendhidi2, extendqidi2): New.
17457 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
17458 (pop_e, pop_fpul, pop_4): Likewise.
17459 (movsi_media): Support FP and BT registers.
17460 (movsi_media_nofpu): New. Adjust splits to DImode.
17461 (lduw, ldub): Renamed to zero_extend* above.
17462 (movqi_media): Fix typo.
17463 (movdi_media): Support FP and BT registers.
17464 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
17465 (movdi_const_32bit): New.
17466 (shori_media): Require immediate operand. Use `u' for output.
17467 (movdf_media, movsf_media): Simplified.
17468 (movdf_media_nofpu, movsf_media_nofpu): New.
17469 (movdf, movsf): Adjust
17470 (movv2sf, movv2sf, movv16sf): New.
17471 (beq_media, beq_media_i): Adjust constraints. Don't use
17472 scratch BT register.
17473 (bne_media, bne_media_i): Likewise.
17474 (bgt_media, bgt_media_i): Likewise.
17475 (bge_media, bge_media_i): Likewise.
17476 (bgtu_media, bgtu_media_i): Likewise.
17477 (bgeu_media, bgeu_media_i): Likewise.
17478 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
17479 bunordered): Emit jump insn. Force operands to registers when
17480 needed.
17481 (jump_media, jump): Simplify.
17482 (call_compact, call_compact_rettramp): New.
17483 (call_value_compact, call_value_compact_rettramp): New.
17484 (call_media, call_value_media): Simplify.
17485 (sibcall_compact, sibcall_media): New.
17486 (call, call_value): Adjust for SHmedia and SHcompact.
17487 (sibcall, sibcall_value, untyped_call): Likewise.
17488 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
17489 (indirect_jump): Adjust for SHmedia.
17490 (casesi_jump_media): New.
17491 (nop): Re-enable for SHmedia.
17492 (call_site): Restrict to SH1.
17493 (casesi): Adjust for SHmedia.
17494 (casesi_shift_media, casesi_load_media): New.
17495 (return): Explicitly use PR register. Call return trampoline
17496 on SHcompact.
17497 (return_i): Explicitly use PR register.
17498 (shcompact_return_tramp, shcompact_return_tramp_i): New.
17499 (return_media): Adjust.
17500 (shcompact_incoming_args): New.
17501 (epilogue): Adjust.
17502 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17503 (movstrsi): Disable on SH5.
17504 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
17505 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
17506 (subsf3, subsf3_media): Likewise.
17507 (mulsf3, mulsf3_media, mac_media): Likewise.
17508 (divsf3, divsf3_media): Likewise.
17509 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
17510 (floatsisf2, fux_truncsfsi2): Likewise.
17511 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
17512 constraints.
17513 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
17514 (cmpunsf_media, cmpsf): Likewise.
17515 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
17516 (abssf2, abssf2_media): Likewise.
17517 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
17518 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
17519 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
17520 (floatsidf2, fix_truncdfsi2): Likewise.
17521 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
17522 constraints.
17523 (cmpeqdf_media, cmpgtdf_media): Likewise.
17524 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
17525 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
17526 (absdf2, absdf2_media): Likewise.
17527 (extendsfdf2, extendsfdf2_media): Likewise.
17528 (truncsfdf2, truncsfdf2_media): Likewise.
17529 * config/sh/sh64.h: New file.
17530 * config/sh/t-sh64: New file.
17531 * config/sh/shmedia.h: New file.
17532 * config/sh/ushmedia.h: New file.
17533 * config/sh/sshmedia.h: New file.
17534 * configure.in: Added sh64-*-elf.
17535 * configure: Rebuilt.
17536 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
17537 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
17538 (reg_class_from_letter): Use `b' for TARGET_REGS.
17539 (print_operand): Support `%M', `%m', `AND' and
17540 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
17541 (andcosts): Adjust for SHmedia.
17542 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
17543 Likewise.
17544 (target_reg_operand): New function.
17545 * config/sh/sh-protos.h (target_reg_operand): Declare.
17546 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
17547 FP registers on SH5.
17548 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
17549 on SH4.
17550 (TARGET_REGISTER_P): New macro.
17551 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
17552 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
17553 (EXTRA_CONSTRAINT_S): New macro.
17554 (EXTRA_CONSTRAINT): Adjust.
17555 (FLOAT_TYPE_SIZE): Define to 32.
17556 (Pmode): DImode on SHmedia.
17557 (CONST_COSTS): Adjust for SHmedia literals.
17558 (PREDICATE_CODES): Added target_reg_operand.
17559 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
17560 * config/sh/sh.md: Remove all attrs from SHmedia insns.
17561 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
17562 (cmpdi): Accept SHmedia.
17563 (movdicc_false, movdicc_true): New insns.
17564 (movdicc): New expand.
17565 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
17566 no_new_pseudos.
17567 (addsi3_media): Match `S' constraint.
17568 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
17569 (negdi2): Expand for SHmedia.
17570 (one_cmpldi2): New expand.
17571 (zero_extendsidi2): Change from expand to insn.
17572 (extendsidi2): Add constraints.
17573 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
17574 LD/ST address. Fix SI immediate loading split.
17575 (movhi_media, movqi_media, lduw, ldub): New insns.
17576 (movhi, movqi): Accept SHmedia.
17577 (shori_media, movdi_media): Relax input constraints. Split
17578 symbolic constants.
17579 (movdf_media, movsf_media): New insn. New split to movdi.
17580 (movdf, movsf): Match on SHmedia.
17581 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
17582 bgeu_media): New insns and splits. New insns with `_i' suffix.
17583 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
17584 (bunordered): New expand.
17585 (jump_compact): Renamed from `jump'.
17586 (jump_media): New insn.
17587 (jump): New expand.
17588 (call_media, call_value_media): New insns.
17589 (call, call_value): Adjust.
17590 (indirect_jump_compact): Renamed from `indirect_jump'.
17591 (indirect_jump_media): New insn.
17592 (indirect_jump): New expand.
17593 (untyped_call, return): Accept SHmedia.
17594 (return_media): New insn.
17595 (prologue, epilogue, blockage): Accept SHmedia.
17596 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17597 (sunordered): New expand.
17598 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
17599 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
17600 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
17601 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
17602 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
17603 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
17604 abssf2_media): New insns.
17605 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
17606 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
17607 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
17608 floatdidf2, floatsidf2_media, fix_truncdfdi2,
17609 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
17610 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
17611 absdf2_media): New insns.
17612 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
17613 (extendsfdf2_media, truncdfsf2_media): New insns.
17614 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
17615 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
17616 * config/sh/sh.h (CONST_OK_FOR_J): Document.
17617 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
17618 * config/sh/sh.md (adddi3): New expand.
17619 (adddi3_media, adddi3z_media): New insns.
17620 (adddi3_compact): Renamed from adddi3.
17621 (addsi3_media): Use add.l r63 to add constant zero.
17622 (subdi3): New expand.
17623 (subdi3_media): New insn.
17624 (subdi3_compact): Renamed from subdi3.
17625 (mulsidi3): New expand.
17626 (mulsidi3_media): New insn.
17627 (mulsidi3_compact): Renamed from mulsidi3.
17628 (umulsidi3): New expand.
17629 (umulsidi3_media): New insn.
17630 (umulsidi3_compact): Renamed from umulsidi3.
17631 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
17632 (ashlsi3, ashrsi3, lshrsi3): Use them.
17633 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
17634 (ashldi3, ashrdi3, lshrdi3): Use them.
17635 (zero_extendsidi2): New expand.
17636 (extendsidi2): New insn.
17637 (movsi_media): New insn. Split to movdi to load constants.
17638 (movsi): Enable for shmedia.
17639 (movdi_media): New insn. Use shori_media to load wide constants.
17640 (short_media): New insn.
17641 (movdi): Enable for shmedia.
17642 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
17643 * config/sh/sh.h (CPP_SPEC): Added `m5'.
17644 (SUBTARGET_CPP_SPEC): Added `!m5'.
17645 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
17646 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
17647 to all other SH variants.
17648 (TARGET_DEFAULT): Set to SH1_BIT.
17649 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
17650 (BITS_PER_WORD): Raise to 64 on shmedia.
17651 (MAX_BITS_PER_WORD): Change to 64.
17652 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
17653 (INT_TYPE_SIZE): Keep as 32.
17654 (UNITS_PER_WORD): Raise to 8 on shmedia.
17655 (MIN_UNITS_PER_WORD): Keep as 4.
17656 (POINTER_SIZE): Raise to 64 on shmedia.
17657 (CONST_OK_FOR_J): New macro.
17658 (CONST_OK_FOR_LETTER_P): Use it.
17659 (processor_type): Add PROCESSOR_SH5.
17660 * config/sh/sh.md: Conditionalize all expands, insns and
17661 splits to TARGET_SH1.
17662 (cpu): Added sh5.
17663 (addsi3_compact): Renamed from...
17664 (addsi3): Now an expand.
17665 (addsi3_media, subsi3_media): New insns.
17666 (subsi3): Don't negate constants with SHmedia.
17667
17668 * hooks.c: New file.
17669 * hooks.h: New file.
17670 * Makefile.in (HOOKS_H): New.
17671 (TARGET_DEF_H): Added $(HOOKS_H).
17672 (OBJS): Added hooks.o.
17673 (cfgcleanup.o, bb-reorder.o): Added target.h.
17674 (hooks.o): Added dependencies.
17675 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
17676 (TARGET_INITIALIZER): this.
17677 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
17678 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
17679 * bb-reorder.c: Include target.h.
17680 (reorder_basic_blocks): Skip if cannot modify jumps.
17681 * cfgcleanup.c: Include target.h.
17682 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
17683
17684 2002-02-08 Chris Demetriou <cgd@broadcom.com>
17685
17686 * config/mips/mips.md (casesi_internal, casesi_internal_di):
17687 Protect jump delay slot instructions with .set noreorder and
17688 .set nomacro.
17689
17690 2002-02-08 Chris Demetriou <cgd@broadcom.com>
17691
17692 * config/mips/mips.md (casesi_internal_di): Calculate
17693 the index into the target offset table correctly.
17694
17695 2002-02-08 Richard Henderson <rth@redhat.com>
17696
17697 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
17698 * final.c (output_addr_const): Accept and discard SUBREG.
17699 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
17700 mark them unknown instead.
17701 (simplify_subtraction): Handle RTX_UNKNOWN.
17702 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
17703
17704 2002-02-08 David Edelsohn <edelsohn@gnu.org>
17705
17706 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
17707
17708 2002-02-08 Richard Henderson <rth@redhat.com>
17709
17710 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
17711
17712 2002-02-08 Andreas Jaeger <aj@suse.de>
17713
17714 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
17715 * config/i386/t-linux64: New file.
17716
17717 2002-02-08 Jakub Jelinek <jakub@redhat.com>
17718
17719 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
17720 * c-parse.in (compstmt): Clear last_expr_type.
17721
17722 2002-02-07 Richard Henderson <rth@redhat.com>
17723
17724 * loop.c (strength_reduce): Sink final_value when not
17725 eliminating a biv.
17726
17727 2002-02-07 David O'Brien <obrien@FreeBSD.org>
17728
17729 * config/sparc/freebsd.h: Fix mismatched spec {.
17730
17731 2002-02-07 Richard Henderson <rth@redhat.com>
17732
17733 * cfgrtl.c: Include recog.h and insn-config.h.
17734 (keep_with_call_p): Fix general_operand invocation.
17735 * Makefile.in (cfgrtl.o): Update dependencies.
17736
17737 2002-02-07 Kazu Hirata <kazu@hxi.com>
17738
17739 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
17740 comment. Accept HImode only if TARGET_H8300.
17741
17742 2002-02-07 Eric Christopher <echristo@redhat.com>
17743
17744 * config/mips/crtn.asm: Cleanup #ifdefs.
17745
17746 2002-02-07 Eric Christopher <echristo@redhat.com>
17747
17748 * config/mips/crti.asm: Add changes for mips16. mips16 uses
17749 register 7 as RA instead of $31.
17750 * config/mips/crtn.asm: Ditto.
17751 * config/mips/mips.c (mips_move_2words): Add case for
17752 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
17753 (compute_frame_size): Fix typo.
17754 (save_restore_insns): Ditto. Make documentation about using
17755 register $7 as return register more precise.
17756 (mips_expand_epilogue): Fix comment. Add code to work around not
17757 being able to add to the stack pointer directly.
17758 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
17759 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
17760 epilogue.
17761
17762 2002-02-07 Tom Rix <trix@redhat.com>
17763
17764 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
17765 immediates in ldu and stdu DS opcode field.
17766 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
17767 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
17768 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
17769
17770 2002-02-07 Jeff Sturm <jsturm@one-point.com>
17771
17772 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
17773 offset for stack bias.
17774
17775 2002-02-07 H.J. Lu <hjl@gnu.org>
17776
17777 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
17778
17779 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
17780
17781 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
17782
17783 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
17784
17785 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
17786 * i386.c (x86_order_regs_for_local_alloc): New global function.
17787 * i386.h (REG_ALLOC_ORDER): CLeanup.
17788 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
17789
17790 2002-02-07 Richard Henderson <rth@redhat.com>
17791
17792 PR optimization/2463
17793 * alias.c (find_base_value): Recall base values for fixed hard regs.
17794 * loop.c (loop_regs_update): Don't use single_set on non-insns.
17795
17796 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
17797
17798 * config/mips/mips.md (define_delay) [mips16]: Adjust required
17799 length.
17800
17801 2002-02-06 Richard Henderson <rth@redhat.com>
17802
17803 PR c/5609
17804 * stmt.c (resolve_operand_name_1): Take more care with mixed
17805 named and unnamed operands.
17806
17807 2002-02-06 Janis Johnson <janis187@us.ibm.com>
17808 Jan Hubicka <jh@suse.cz>
17809
17810 * loop.c (remove_constant_addition): Avoid clobbering a shared
17811 CONST expression.
17812
17813 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
17814
17815 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
17816 * config/s390/t-linux64: New file.
17817 * config/s390/libgcc-glibc.ver: New file.
17818
17819 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
17820
17821 * config/s390/linux64.h: Delete file.
17822 * config/s390/s390x.h: New file.
17823 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
17824 as target header file.
17825 * config/s390/linux.h (TARGET_VERSION): Define depending on
17826 DEFAULT_TARGET_64BIT.
17827 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
17828 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
17829 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
17830 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
17831 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
17832 (EXTRA_SPEC): New define.
17833 * config/s390/s390.h (TARGET_VERSION): Define depending on
17834 DEFAULT_TARGET_64BIT.
17835 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
17836
17837 2002-02-06 Jason Merrill <jason@redhat.com>
17838
17839 * c-decl.c (finish_function): Warn about a non-void function with
17840 no return statement and no abnormal exit.
17841 (current_function_returns_abnormally): New variable.
17842 (start_function): Clear it.
17843 (struct c_language_function): Add returns_abnormally.
17844 (push_c_function_context): Save it.
17845 (pop_c_function_context): Restore it.
17846 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
17847 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
17848 an explicit return type.
17849 * c-tree.h: Declare current_function_returns_abnormally.
17850 (C_FUNCTION_IMPLICIT_INT): New macro.
17851 * c-typeck.c (build_function_call): Set it.
17852 (c_expand_return): Set current_function_returns_value even if the
17853 value is erroneous.
17854
17855 2002-02-06 Jakub Jelinek <jakub@redhat.com>
17856
17857 PR c/5420:
17858 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
17859 unsafe for reevaluation.
17860
17861 2002-02-06 Jakub Jelinek <jakub@redhat.com>
17862
17863 PR c/5482:
17864 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
17865 EXPR_STMT, but COMPOUND_STMT, recurse into it.
17866
17867 2002-02-06 Richard Henderson <rth@redhat.com>
17868
17869 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
17870 be a general_operand. Dest for function value must be a pseudo.
17871
17872 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
17873
17874 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
17875 as SYMBOL_REFs from the constant pool.
17876
17877 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
17878
17879 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
17880 passed by invisible reference.
17881
17882 2002-02-05 Richard Henderson <rth@redhat.com>
17883
17884 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
17885
17886 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
17887
17888 Implement using "base addresses" in insn operands as default.
17889 * config/mmix/mmix.c (mmix_conditional_register_usage): if
17890 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
17891 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
17892 used to read the rtx value.
17893 (mmix_target_asm_function_epilogue): Fix spacing.
17894 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
17895 (mmix_legitimate_address): Ditto.
17896 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
17897 should be loaded with a GETA insn. Don't allocate needless extra
17898 char for nul termination and fix misleading comment.
17899 (mmix_print_operand_address): Handle constants if
17900 TARGET_BASE_ADDRESSES.
17901 (mmix_output_register_setting): Use base addressing if
17902 TARGET_BASE_ADDRESSES and the number of insns is 3.
17903 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
17904 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
17905 to use R as constraint, add LDA to match s.
17906 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
17907 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
17908 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
17909 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
17910 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
17911 order with other fixed registers.
17912 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
17913 other parameter/call-clobbered registers.
17914 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
17915 -mbase-addresses, -mno-base-addresses.
17916 (MMIX Options): Ditto.
17917
17918 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
17919
17920 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
17921
17922 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
17923
17924 * config/rs6000/altivec.h: Change elem to _S_elem.
17925
17926 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
17927
17928 * config/netbsd.h (WCHAR_TYPE): Define.
17929 (WCHAR_TYPE_SIZE): Ditto.
17930 (WINT_TYPE): Ditto.
17931 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
17932 (WCHAR_UNSIGNED): Ditto.
17933 (WCHAR_TYPE_SIZE): Ditto.
17934 (WINT_TYPE): Ditto.
17935 * config/arm/netbsd.h: Likewise.
17936 * config/i386/netbsd-elf.h: Likewise.
17937 * config/i386/netbsd.h: Likewise.
17938 * config/m68k/netbsd-elf.h: Likewise.
17939 * config/m68k/netbsd.h: Likewise.
17940 * config/ns32k/netbsd.h: Likewise.
17941 * config/sparc/netbsd.h: Likewise.
17942 * config/vax/netbsd.: Likewise.
17943
17944 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
17945
17946 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
17947 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
17948 (TARGET_INITIALIZER): this.
17949 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
17950 (BITFIELD_NBYTES_LIMITED): Markup fix.
17951 * tree.h (default_ms_bitfield_layout_p): Declare.
17952 (record_layout_info): Added prev_field.
17953 * tree.c (default_ms_bitfield_layout_p): New fn.
17954 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
17955 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
17956 * stor-layout.c: Include target.h.
17957 (start_record_layout): Initialize prev_field.
17958 (place_field): Handle MS bit-field layout, and disregard
17959 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
17960 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
17961 * Makefile.in (stor-layout.o): Adjust dependencies.
17962
17963 2002-02-05 Jason Merrill <jason@redhat.com>
17964
17965 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
17966
17967 2002-02-05 Andreas Jaeger <aj@suse.de>
17968
17969 * crtstuff.c: Fix comments.
17970
17971 2002-02-05 Richard Henderson <rth@redhat.com>
17972
17973 PR fortran/3393
17974 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
17975 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
17976
17977 PR fortran/3392
17978 * config/mips/mips.c (function_arg): Handle TImode.
17979 (function_arg_advance): Likewise.
17980
17981 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17982
17983 * config/rs6000/altivec.h (vec_step_help): Rename to
17984 __vec_step_help.
17985
17986 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17987
17988 * config/rs6000/altivec.h: Fix typos.
17989
17990 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
17991
17992 * config/arm/netbsd.h: Correct a comment.
17993
17994 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17995
17996 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
17997 building void typed builtins.
17998
17999 * config/rs6000/altivec.h (vec_ld*): Fix typos.
18000 (vec_step): Implement for C++.
18001
18002 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18003
18004 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
18005
18006 2002-02-04 Richard Henderson <rth@redhat.com>
18007
18008 * combine.c (nonzero_bits): Re-introduce special case for
18009 sp/fp/ap wrt REGNO_POINTER_ALIGN.
18010
18011 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
18012
18013 * doc/extend.texi: Warn about unsupported usage of altivec
18014 builtins.
18015
18016 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
18017 (altivec_predicate_*): New.
18018
18019 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
18020 Add C++ version of vec_*() functions.
18021
18022 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
18023 (bdesc_2arg): Remove altivec predicates.
18024 (altivec_expand_builtin): Handle predicates.
18025 (altivec_init_builtins): Handle predicates.
18026 (altivec_expand_predicate_builtin): New.
18027
18028 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18029
18030 * pa.c (DO_FRAME_NOTES): Move forward.
18031 (store_reg): Revise handling of frame notes.
18032 (load_reg): Likewise.
18033 (set_reg_plus_d): Likewise.
18034 (hppa_expand_prologue): Likewise.
18035 (hppa_expand_epilogue): Likewise.
18036
18037 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18038
18039 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
18040
18041 2002-02-04 Jakub Jelinek <jakub@redhat.com>
18042
18043 PR c/4475, c++/3780:
18044 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
18045 * c-common.h (SWITCH_TYPE): Define.
18046 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
18047 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
18048 Rename spareness variable to sparseness.
18049 (expand_end_case_type): Renamed from expand_end_case, use orig_type
18050 if non-NULL instead of TREE_TYPE (orig_index).
18051 * tree.h (expand_end_case_type): Renamed from expand_end_case.
18052 (expand_end_case): Define using expand_end_case_type.
18053 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
18054 to expand_end_case_type.
18055 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
18056
18057 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18058
18059 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
18060 (BIGGEST_ALIGNMENT): Change to 128.
18061
18062 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18063
18064 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
18065
18066 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18067
18068 * pa.md (call_internal_reg_64bit): Remove unused variable.
18069
18070 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
18071
18072 * config/arm/arm.h (machine_function): Add uses_anonymous_args
18073 field.
18074 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
18075 * config/arm/arm.c (current_function_anonymous_args): Delete,
18076 replace uses with cfun->machine->uses_anonymous_args.
18077 (arm_reorg): Do not reset uses_anonymous_args.
18078
18079 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
18080 any geenral register.
18081
18082 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
18083
18084 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
18085 the entry block.
18086
18087 2002-02-04 Richard Henderson <rth@redhat.com>
18088
18089 * combine.c (force_to_mode): Remove STACK_BIAS code.
18090 (nonzero_bits): Likewise. Replace sp/fp special case with
18091 REGNO_POINTER_ALIGN.
18092
18093 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
18094 (HARD_FRAME_POINTER_REGNUM): New.
18095 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
18096 (FIXED_REGS, CALL_USED_REGS): Update.
18097 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
18098 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
18099 (HARD_REGNO_NREGS): Update for SFP.
18100 (STACK_POINTER_OFFSET): Include bias here ...
18101 (FIRST_PARM_OFFSET): ... not here.
18102 (STACK_BIAS): Remove.
18103 (INIT_EXPANDERS): New.
18104 (STARTING_FRAME_OFFSET): Do not include bias.
18105 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
18106 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
18107 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
18108 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
18109 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
18110 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
18111 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
18112 (MUST_SAVE_REGISTER): Likewise.
18113 (sparc_flat_function_prologue): Likewise.
18114 (sparc_flat_function_epilogue): Likewise.
18115 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
18116 (sparc_init_modes): SFP is GENERAL_REGS.
18117 (sparc_builtin_saveregs): SFP does not have bias applied.
18118
18119 2002-02-04 Richard Henderson <rth@redhat.com>
18120
18121 * config/alpha/alpha.c (current_function_is_thunk): Don't check
18122 current_function_is_thunk.
18123 (alpha_sa_mask): Distinguish between current_function_is_thunk
18124 called from ASM_OUTPUT_MI_THUNK and not.
18125 (alpha_does_function_need_gp): Thunks always need gp.
18126 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
18127 (alpha_output_mi_thunk_osf): New.
18128 * config/alpha/alpha-protos.h: Update.
18129 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
18130
18131 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
18132
18133 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
18134 function types, not when they're taken away.
18135
18136 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
18137
18138 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
18139 CODE_LABEL and jump table when replacing a table jump with a
18140 simple jump.
18141
18142 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
18143
18144 * config/s390/s390-protos.h (legitimize_la_operand,
18145 s390_secondary_input_reload_class, s390_plus_operand,
18146 s390_expand_plus_operand): Add prototypes.
18147
18148 config/s390/s390.c (s390_secondary_input_reload_class,
18149 s390_plus_operand, s390_expand_plus_operand): New functions.
18150
18151 (struct s390_address): New member 'pointer'.
18152 (s390_decompose_address): Compute it.
18153 (legitimate_la_operand_p): Use it.
18154 (legitimize_la_operand): New function.
18155 (movti, movdi, movdf splitters): Call it.
18156
18157 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
18158 (PREDICATE_CODES): Add s390_plus_operand.
18159
18160 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
18161 (la_ccclobber): Allow GENERAL_REGS as output operand.
18162
18163 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
18164 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
18165 (*la_64, *la_31, reload_indi, reload_insi): ... these.
18166
18167 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
18168
18169 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
18170 register names for regular asm () construct.
18171
18172 2002-02-04 Jakub Jelinek <jakub@redhat.com>
18173
18174 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
18175 registers.
18176
18177 2002-02-04 Jakub Jelinek <jakub@redhat.com>
18178
18179 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
18180 pat for recog.
18181
18182 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
18183
18184 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
18185 constant pool to be identical by string address and index.
18186
18187 2002-02-04 Anthony Green <green@redhat.com>
18188
18189 * output.h (SECTION_OVERRIDE): Define.
18190 * varasm.c (named_section): Obey SECTION_OVERRIDE.
18191
18192 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
18193
18194 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
18195 by existing arm*-*-netbsd* (a.out) target.
18196 (ns32k-*-netbsdelf*): Likewise.
18197 (sparc-*-netbsdelf*): Likewise.
18198 (vax-*-netbsdelf*): Likewise.
18199
18200 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
18201
18202 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
18203 headers and libobjc headers.
18204
18205 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
18206
18207 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
18208 (_mingw.h): Remove duplicate include.
18209
18210 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
18211
18212 * config.gcc: Set cpu_type to m68k for 68010, as well.
18213 (m68010-*-netbsdelf*): New...
18214 (m68k*-*-netbsdelf*): ...targets.
18215 * config/m68k/netbsd-elf.h: New file.
18216
18217 2002-02-02 Kazu Hirata <kazu@hxi.com>
18218
18219 * config/h8300/h8300.c (hand_list): Move inside function_arg.
18220
18221 2002-02-02 Kazu Hirata <kazu@hxi.com>
18222
18223 * config/h8300/h8300.c (h8_push_ops): Move inside
18224 h8300_init_once.
18225 (h8_pop_ops): Likewise.
18226 (h8_move_ops): Likewise.
18227
18228 2002-02-02 Kazu Hirata <kazu@hxi.com>
18229
18230 * config/h8300/h8300.c (os_task): Make it static.
18231 (monitor): Likewise.
18232 (pragma_saveall): Likewise.
18233
18234 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
18235
18236 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
18237 constant is a valid sign-extension for Pmode.
18238
18239 2002-02-02 Kazu Hirata <kazu@hxi.com>
18240
18241 * config/h8300/h8300.c: Fix formatting.
18242
18243 2002-02-02 Kazu Hirata <kazu@hxi.com>
18244
18245 * config/h8300/h8300.md: Fix formatting.
18246
18247 2002-02-02 Kazu Hirata <kazu@hxi.com>
18248
18249 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
18250 predicates of operands[1]. Split the patterns for each
18251 processor variant.
18252
18253 2002-02-02 Kazu Hirata <kazu@hxi.com>
18254
18255 * config/h8300/h8300.md (xor patterns): Tighten the predicates
18256 of operands[1] to register_operand.
18257
18258 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
18259
18260 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
18261 * cpphash.c (_cpp_init_hashtable): Similarly.
18262 * cppinit.c (cpp_create_reader): Default the signed_char flag.
18263 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
18264 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
18265 (cpp_handle_option): Handle the new options.
18266 * cpplex.c (cpp_interpret_charconst): Use new flag.
18267 * cpplib.h (struct cpp_options): New member signed_char.
18268 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
18269 (cpp_options): Handle -fsigned-char and -funsigned-char.
18270 (static_specs): Remove signed_char_spec.
18271 (do_spec1): Don't handle %c.
18272 * system.h: Poison SIGNED_CHAR_SPEC.
18273 * tradcif.y (yylex): Use flag_signed_char.
18274 * tradcpp.h (flag_signed_char): New.
18275 * tradcpp.c (flag_signed_char): New.
18276 (main): Handle new command-line options.
18277 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
18278 config:
18279 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
18280 * avr/avr.h: Remove old comments.
18281 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
18282 (CC1_SPEC): Pass -fsigned-char if -mic*.
18283 (SIGNED_CHAR_SPEC): Remove.
18284 doc:
18285 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
18286
18287 2002-02-01 Eric Christopher <echristo@redhat.com>
18288
18289 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
18290 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
18291 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
18292 (ASM_OUTPUT_REG_POP): Ditto.
18293
18294 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
18295
18296 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
18297 patch.
18298
18299 2002-02-02 Jakub Jelinek <jakub@redhat.com>
18300
18301 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
18302
18303 2002-02-02 Jakub Jelinek <jakub@redhat.com>
18304
18305 PR c/5304:
18306 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
18307 unconditionally.
18308
18309 2002-02-01 Janis Johnson <janis187@us.ibm.com>
18310
18311 * cfganal.c: Include tm_p.h.
18312 (keep_with_call_p): Fix the test that determines if a register holds
18313 the return value of a call.
18314
18315 2002-02-01 DJ Delorie <dj@redhat.com>
18316
18317 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
18318 we are given conflicting registers, switch to the other one we
18319 had allocated for us.
18320 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
18321 as TImode so we know when the "other" register is available.
18322
18323 2002-02-01 David O'Brien <obrien@FreeBSD.org>
18324
18325 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
18326 sparc/sparc_bi.h.
18327
18328 2002-02-01 Janis Johnson <janis187@us.ibm.com>
18329
18330 * cfganal.c (keep_with_call_p): New function.
18331 (flow_call_edges_add): Prevent splitting a block between a call and
18332 a single-set instruction that should be kept in the same block.
18333
18334 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
18335
18336 * doc/install.texi (avr): Update outdated URL.
18337
18338 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
18339
18340 * config/stormy16/stormy16.md (pushqi): New.
18341 (popqi): New.
18342 (pushhi): New.
18343 (pophi): New.
18344 (movhi): Remove stack operands.
18345 (movqi): Likewise.
18346 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
18347 nonimmediate_nonstack_operand.
18348 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
18349 New.
18350 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
18351 New.
18352
18353 2002-01-31 Jason Merrill <jason@redhat.com>
18354
18355 * Makefile.in (c-parse.c): Handle .output file.
18356 * objc/Make-lang.in (objc-parse.c): Likewise.
18357
18358 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
18359
18360 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
18361 the -me[lb] option is given. Don't output the default flag
18362 twice.
18363
18364 2002-01-31 Zack Weinberg <zack@codesourcery.com>
18365
18366 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
18367 the primary source file; this has not been done yet.
18368 * c-decl.c (c_expand_body): Reset input_filename from
18369 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
18370
18371 2002-01-31 Kazu Hirata <kazu@hxi.com>
18372
18373 * rtlanal.c (subreg_regno_offset): Do not use
18374 SUBREG_REGNO_OFFSET.
18375 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
18376 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
18377
18378 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
18379
18380 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
18381 version rather than GNATS version in --version output.
18382
18383 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
18384
18385 * ifcvt.c (noce_process_if_block): Make a copy of the destination
18386 when copying back from a temporary.
18387
18388 2002-01-30 Richard Henderson <rth@redhat.com>
18389
18390 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
18391 and new_dest are the same.
18392
18393 2002-01-30 Richard Henderson <rth@redhat.com>
18394
18395 PR opt/5076
18396 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
18397 * rtl.c (note_insn_name): Update.
18398 * emit-rtl.c (remove_unnecessary_notes): Kill it.
18399 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
18400 to perform loop rotation.
18401 (expand_exit_loop_top_cond): New.
18402 * tree.h (expand_exit_loop_top_cond): Declare it.
18403 * c-semantics.c (genrtl_while_stmt): Use it.
18404 (genrtl_for_stmt): Likewise.
18405
18406 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
18407
18408 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
18409 arguments to 64-bit boundaries on 64-bit ABIs.
18410
18411 2002-01-30 Steve Ellcey <sje@cup.hp.com>
18412
18413 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
18414
18415 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
18416
18417 * c-decl.c (grokdeclarator): Handle type being a typedef for an
18418 invalid type.
18419
18420 2002-01-30 David O'Brien <obrien@FreeBSD.org>
18421
18422 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
18423 * config/sparc/sparc_bi.h: Remove file.
18424 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
18425
18426 2002-01-30 Richard Henderson <rth@redhat.com>
18427
18428 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
18429
18430 2002-01-30 Zack Weinberg <zack@codesourcery.com>
18431
18432 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
18433
18434 2002-01-30 Jason Merrill <jason@redhat.com>
18435
18436 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
18437 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
18438 (reg_save): Use DW_CFA_offset_extended_sf instead.
18439
18440 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
18441
18442 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18443
18444 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
18445 in cselib_lookup.
18446
18447 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
18448
18449 * rs6000.md ("*call_value_local32"): Remove constraints.
18450 ("*call_value_local64"): Same.
18451 ("*call_value_indirect_nonlocal_aix32"): Same.
18452 ("*call_value_nonlocal_aix32"): Same.
18453 ("*call_value_indirect_nonlocal_aix64"): Same.
18454 ("*call_value_nonlocal_aix64"): Same.
18455 ("*call_value_nonlocal_sysv"): Same.
18456
18457 2002-01-29 Richard Henderson <rth@redhat.com>
18458
18459 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
18460
18461 2002-01-29 Richard Henderson <rth@redhat.com>
18462
18463 * expr.c (force_operand): Ignore flag_pic for detecting pic
18464 address loads.
18465 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
18466 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
18467 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
18468 instead of open-coded loop.
18469 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
18470 be fixed when in use.
18471
18472 2002-01-29 Richard Henderson <rth@redhat.com>
18473
18474 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
18475 * sched-rgn.c (propagate_deps): Update them.
18476 * sched-deps.c (sched_analyze_insn): Update them. Flush the
18477 clobbers list when either gets too long.
18478
18479 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18480
18481 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
18482 and INDEX_REGS the same as GENERAL_REGS.
18483 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18484
18485 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
18486
18487 * tree.c (build_nonstandard_integer_type): Correct prototype.
18488
18489 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
18490
18491 * config/s390/s390.md (movstrsico, movstrdix_64,
18492 movstrsix_31): Remove, replace by ...
18493 (movstrdi_short, movstrsi_short, movstrdi_long,
18494 movstrsi_long): ... these. New.
18495 (movstrdi, movstrsi): Adapt.
18496
18497 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
18498 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
18499 Remove unnecessary CC clobber.
18500 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
18501 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
18502
18503 (divmoddi4): Don't partially initialize TImode register.
18504
18505 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
18506
18507 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
18508
18509 2002-01-29 Richard Henderson <rth@redhat.com>
18510
18511 * flow.c (print_rtl_and_abort): Remove.
18512 (print_rtl_and_abort_fcn): Remove.
18513 (verify_local_live_at_start): Use dump_bb instead.
18514 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
18515 (verify_wide_reg_1): Return 2 on mode test failure.
18516
18517 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
18518
18519 PR c/3325, c/3326, c/2511, c/3347
18520 * c-decl.c (enum_decl_context): Remove BITFIELD.
18521 (grokdeclarator): Take bitfield width as an input.
18522 Ensure bitfields are given the correct type. Perform
18523 bitfield width validation with build_bitfield_integer_type
18524 rather than waiting for finish_struct.
18525 (grok_typename, grok_typename_in_parm_context, start_decl,
18526 push_parmdecl, grokfield, start_function): Update calls to
18527 grokdeclarator.
18528 (build_bitfield_integer_type): New function.
18529 (finish_struct): Move bitfield validation to grokdeclarator
18530 and build_bitfield_integer_type.
18531 * tree.c (build_nonstandard_integer_type): New function.
18532 * tree.h (build_nonstandard_integer_type): New prototype.
18533 objc:
18534 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
18535
18536 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18537
18538 PR other/1502:
18539 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
18540 don't ignore unrecognized -W* options.
18541 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
18542 * cpplib.h (cpp_handle_option): Adjust prototype.
18543 * c-decl.c (c_decode_options): Pass 0 as last argument to
18544 cpp_handle_option.
18545
18546 PR c/2896:
18547 * gcc.c (cpp_unique_options): Split from cpp_options.
18548 (cpp_options): Source cpp_unique_options.
18549 (default_compilers): Use cpp_unique_options instead of cpp_options
18550 when used together with cc1_options.
18551 (static_specs): Add cpp_unique_options.
18552 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
18553 when used together with cc1_options.
18554
18555 2002-01-29 Kazu Hirata <kazu@hxi.com>
18556
18557 * config/h8300/h8300-protos.h: Update the prototype of
18558 output_a_shift.
18559 * config/h8300/h8300.c (output_a_shift): Remove an unused
18560 argument 'insn'. Remove redundant code.
18561 * config/h8300/h8300.md: Adust to the new prototype of
18562 output_a_shift.
18563
18564 2002-01-29 Kazu Hirata <kazu@hxi.com>
18565
18566 * config/h8300/h8300-protos.h: Update the prototypes of
18567 emit_a_rotate and expand_a_rotate.
18568 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
18569 first argument to 'enum rtx_code'.
18570 (expand_a_rotate): Likewise.
18571
18572 2002-01-28 Kazu Hirata <kazu@hxi.com>
18573
18574 * config/h8300/h8300-protos.h: Update the prototype of
18575 output_simode_bld.
18576 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
18577 'log2'.
18578 * config/h8300/h8300.md: Adjust to the new prototype.
18579
18580 2002-01-28 Kazu Hirata <kazu@hxi.com>
18581
18582 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
18583 redundant code.
18584
18585 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
18586
18587 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
18588 is a fixed register before returning pic_offset_table_rtx.
18589 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
18590 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
18591
18592 2002-01-28 Jason Merrill <jason@redhat.com>
18593
18594 * dwarf2.h: Sync with src version.
18595
18596 2002-01-28 Paul Koning <pkoning@equallogic.com>
18597
18598 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
18599 BT_FN_VOID_PTR_VAR.
18600 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
18601 * doc/extend.texi (__builtin_prefetch): Update documentation:
18602 first argument is now const void ptr.
18603
18604 2002-01-28 Kazu Hirata <kazu@hxi.com>
18605
18606 * config/h8300/h8300-protos.h: Remove an unused prototype.
18607
18608 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
18609
18610 * toplev.c (lang_independent_init): Round up identifier size.
18611
18612 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
18613
18614 * config.gcc: Revert previous change.
18615
18616 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
18617
18618 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
18619
18620 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
18621
18622 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
18623 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
18624 other non-elf netbsd config frags.
18625 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
18626 collect2 will does that.
18627 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
18628 shared-lib frobbing will work.
18629
18630 2002-01-28 Kazu Hirata <kazu@hxi.com>
18631
18632 * config/h8300/h8300.h: Fix formatting.
18633 * config/h8300/h8300.md: Likewise.
18634
18635 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
18636
18637 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
18638 the old, removed AAA_standards fix.
18639 * fixinc/fixincl.x: Rebuilt.
18640
18641 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
18642
18643 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
18644 atexit call in crtbegin, hooked in after call to frame_dummy;
18645 register EH before registering __fini__start.
18646
18647 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
18648
18649 * config/rs6000/altivec.h: Remove spurious semicolons.
18650
18651 2002-01-27 Kazu Hirata <kazu@hxi.com>
18652
18653 * config/h8300/h8300.md: Replace dead bit extraction patterns
18654 with ones that work.
18655
18656 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18657
18658 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
18659 if not STRICT_ALIGNMENT.
18660 * rtl.h (MEM_ALIGN): Likewise.
18661
18662 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
18663
18664 * doc/invoke.texi (-fdump-translation-unit): Revert this
18665 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
18666
18667 2002-01-27 Kazu Hirata <kazu@hxi.com>
18668
18669 * config/h8300/h8300.md (define_constants): New.
18670 (anonymous patterns) Use defined constants appropriately.
18671
18672 2002-01-27 Kazu Hirata <kazu@hxi.com>
18673
18674 * config/h8300/h8300.c (function_arg): Remove redundant code.
18675
18676 2002-01-26 Richard Henderson <rth@redhat.com>
18677
18678 * sched-deps.c (reg_pending_uses_head): New.
18679 (reg_pending_barrier): Rename from reg_pending_sets_all.
18680 (find_insn_list): Don't mark inline.
18681 (find_insn_mem_list): Remove.
18682 (add_dependence_list, add_dependence_list_and_free): New.
18683 (flush_pending_lists): Replace only_write param with separate
18684 for_read and for_write parameters. Update all callers. Use
18685 add_dependence_list_and_free.
18686 (sched_analyze_1): Do not add reg dependencies here; just set
18687 the pending bits. Use add_dependence_list.
18688 (sched_analyze_2): Likewise.
18689 (sched_analyze_insn): Replace schedule_barrier_found with
18690 reg_pending_barrier. Add all dependencies for pending reg
18691 uses, sets, and clobbers.
18692 (sched_analyze): Don't add reg dependencies for calls, just
18693 set pending bits. Use regs_invalidated_by_call. Treat
18694 sched_before_next_call as a normal list, not a fake insn.
18695 (init_deps): No funny init for sched_before_next_call.
18696 (free_deps): Free pending mems lists. Don't zero reg_last.
18697 (init_deps_global): Init reg_pending_uses.
18698 (finish_deps_global): Free it.
18699 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
18700 (find_insn_mem_list): Remove.
18701 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
18702 (propagate_deps): Use them. Zero temp mem lists.
18703
18704 2002-01-26 Richard Henderson <rth@redhat.com>
18705
18706 * Makefile.in (CRTSTUFF_CFLAGS): New.
18707 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
18708 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
18709 crtstuff.c instead of alpha assembly version.
18710 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
18711 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
18712 not FORCE_{INIT,FINI}_SECTION_ALIGN.
18713 (__do_global_dtors_aux): Mark used.
18714 (frame_dummy, __do_global_ctors_aux): Mark used.
18715 (fini_dummy, init_dummy): Remove.
18716
18717 * config/alpha/crtbegin.asm: Remove file.
18718 * config/alpha/crtend.asm: Remove file.
18719 * config/alpha/t-crtbe: Remove file.
18720 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
18721 (LINK_EH_SPEC): New.
18722
18723 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
18724 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
18725 calling constructors.
18726 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
18727
18728 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
18729 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
18730 CRT_END_INIT_DUMMY hack.
18731 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
18732 FORCE_{INIT,FINI}_SECTION_ALIGN.
18733
18734 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
18735 FORCE_{INIT,FINI}_SECTION_ALIGN.
18736
18737 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
18738 invocation sequence.
18739 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
18740
18741 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
18742 (FORCE_CODE_SECTION_ALIGN): New.
18743
18744 2002-01-26 Richard Henderson <rth@redhat.com>
18745
18746 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
18747
18748 2002-01-26 Richard Henderson <rth@redhat.com>
18749
18750 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
18751 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
18752
18753 2002-01-26 Kazu Hirata <kazu@hxi.com>
18754
18755 * config/h8300/h8300.md: Remove bit extraction patterns that
18756 cannot be triggered.
18757 Restrict each bit extraction pattern to a variant on which the
18758 pattern is tested.
18759
18760 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
18761
18762 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
18763
18764 2002-01-26 Kazu Hirata <kazu@hxi.com>
18765
18766 * config/h8300/h8300.md: Remove bit test patterns that cannot
18767 be triggered.
18768 Restrict each bit test pattern to a variant on which the
18769 pattern is tested.
18770
18771 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18772
18773 * builtins.c (expand_builtin_strncat): Remove redundant check for
18774 INTEGER_CST.
18775
18776 2002-01-25 David O'Brien <obrien@FreeBSD.org>
18777
18778 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
18779 default setting.
18780 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
18781 existing setting.
18782
18783 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
18784
18785 * dbxout.c (dbxout_init): Use assemble_name rather than just
18786 stripping off the first character.
18787 (dbxout_source_file): Likewise.
18788
18789 2002-01-25 DJ Delorie <dj@redhat.com>
18790
18791 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
18792 using rtx_equal_p, not by comparing pointers.
18793
18794 2002-01-25 Steve Ellcey <sje@cup.hp.com>
18795
18796 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
18797 for PIC_OFFSET_TABLE_REGNUM.
18798 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
18799
18800 2002-01-25 David O'Brien <obrien@FreeBSD.org>
18801
18802 * config.gcc (x86_64-*-freebsd*): New target.
18803 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
18804 value.
18805 (i[34567]86-*-freebsd*): Don't include svr4.h.
18806 * config/i386/freebsd64.h: New file.
18807
18808 2002-01-25 Douglas B Rupp <rupp@gnat.com>
18809
18810 * config/alpha/x-vms (version): Make static.
18811
18812 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
18813 in previous checkin.
18814
18815 * Makefile.in (install-headers-cp): New target.
18816 * config.gcc (alpha-dec-*vms*): Install headers with
18817 install-headers-cp
18818
18819 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
18820
18821 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
18822 avoid it's copies.
18823
18824 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18825
18826 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
18827 of compare_tree_int.
18828 (expand_builtin_strncat): Likewise.
18829 * c-decl.c (finish_struct): Use tree_low_cst.
18830 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
18831 * tree.c (compare_tree_int): Likewise.
18832
18833 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
18834
18835 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
18836 adjustments even if they are implemented by more than two insns.
18837
18838 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
18839
18840 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
18841 * df.h (struct ref): Kill B.
18842 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
18843
18844 * basic-block.h (PROP_EQUAL_NOTES): New flag.
18845 * flow.c (propagate_one_insn): Use it.
18846 (mark_used_regs): Handle NIL.
18847
18848 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
18849
18850 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
18851 to help folding.
18852
18853 2002-01-25 David Edelsohn <edelsohn@gnu.org>
18854
18855 * rs6000.md (prefetch): Make address V4SI mode so that the address
18856 is restricted to legitimate form for instruction.
18857
18858 2002-01-25 Bob Wilson <bob.wilson@acm.org>
18859
18860 * doc/install.texi (xtensa-*-elf): New target.
18861 (xtensa-*-linux*): New target.
18862 * doc/contrib.texi: Add myself.
18863
18864 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
18865
18866 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
18867 purpose register to hold an SImode (or smaller) value.
18868
18869 2002-01-25 Jakub Jelinek <jakub@redhat.com>
18870
18871 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
18872 registry only.
18873 * crtstuff.c: Likewise.
18874
18875 2002-01-25 Kazu Hirata <kazu@hxi.com>
18876
18877 * config/h8300/h8300.md (negation patterns): Tighten
18878 predicates to register_operand.
18879
18880 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
18881
18882 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
18883 mode, not Pmode.
18884
18885 * builtins.c (expand_builtin_prefetch): Same.
18886
18887 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18888
18889 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
18890 modes.
18891
18892 2002-01-24 Kazu Hirata <kazu@hxi.com>
18893
18894 * config/h8300/h8300.c (print_operand): Remove support for
18895 operand character 'A'.
18896 * config/h8300/h8300.md (three anonymous patterns): Replace
18897 operand character 'A' with either 'T' or 'S'.
18898
18899 2002-01-24 Kazu Hirata <kazu@hxi.com>
18900
18901 * config/h8300/h8300.c (print_operand): Remove support for
18902 operand character 'U'.
18903
18904 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
18905
18906 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
18907
18908 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
18909
18910 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
18911 values to be assigned to the stack pointer.
18912
18913 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
18914
18915 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
18916 to const_double needs to be done right for big-endian systems.
18917
18918 2002-01-24 Jason Merrill <jason@redhat.com>
18919
18920 PR c++/2432
18921 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
18922 to can_throw_internal.
18923
18924 2002-01-23 Richard Henderson <rth@redhat.com>
18925
18926 * fold-const.c (fold): Change UINT_MAX test to check vs precision
18927 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
18928
18929 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18930
18931 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
18932 (symGOT2reg): Use them, then set as GOT value as unchanging.
18933 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
18934 as a temporary, if possible.
18935 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
18936 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
18937
18938 2002-01-23 Kazu Hirata <kazu@hxi.com>
18939
18940 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
18941 accept to accept 0x80 as operands[2].
18942
18943 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18944
18945 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
18946
18947 2002-01-23 Richard Henderson <rth@redhat.com>
18948
18949 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
18950
18951 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
18952
18953 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
18954 (parmlist_or_identifiers_1): Verify that only a parmlist follows
18955 an attribute.
18956
18957 2002-01-23 Richard Henderson <rth@redhat.com>
18958
18959 * expr.c (move_by_pieces_1): Extend size before negation.
18960
18961 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
18962 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
18963 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
18964 * config/m68k/t-m68kelf: Likewise.
18965
18966 2002-01-23 Bob Wilson <bob.wilson@acm.org>
18967
18968 * config/xtensa/elf.h: New file.
18969 * config/xtensa/lib1funcs.asm: New file.
18970 * config/xtensa/lib2funcs.S: New file.
18971 * config/xtensa/linux.h: New file.
18972 * config/xtensa/t-xtensa: New file.
18973 * config/xtensa/xtensa-config.h: New file.
18974 * config/xtensa/xtensa-protos.h: New file.
18975 * config/xtensa/xtensa.c: New file.
18976 * config/xtensa/xtensa.h: New file.
18977 * config/xtensa/xtensa.md: New file.
18978 * config.gcc (xtensa-*-elf*): New target.
18979 (xtensa-*-linux*): New target.
18980 * cse.c (canon_hash): Compare rtx pointers instead of register
18981 numbers. This is required for the Xtensa port.
18982 * integrate.c (copy_insn_list): Handle case where the static
18983 chain is in memory and the memory address has to be copied to
18984 a register.
18985 * doc/invoke.texi (Option Summary): Add Xtensa options.
18986 (Xtensa Options): New node.
18987 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
18988
18989 2002-01-23 Zack Weinberg <zack@codesourcery.com>
18990
18991 * diagnostic.c (internal_error): Do ICE suppression only
18992 when ENABLE_CHECKING is not defined.
18993
18994 * c-typeck.c (require_complete_type): Return error_mark_node
18995 if type is error_mark_node.
18996
18997 2002-01-23 Janis Johnson <janis187@us.ibm.com>
18998
18999 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
19000 -Os and issue a warning.
19001
19002 2002-01-23 Zack Weinberg <zack@codesourcery.com>
19003
19004 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
19005 current (lack of) need for host configuration by hand.
19006
19007 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
19008 references. Documentation of some target macros moved from
19009 hostconfig.texi to tm.texi.
19010
19011 2002-01-23 Will Cohen <wcohen@redhat.com>
19012
19013 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
19014 defined.
19015
19016 2002-01-23 Kazu Hirata <kazu@hxi.com>
19017
19018 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
19019 operand[3].
19020
19021 2002-01-23 Jason Merrill <jason@redhat.com>
19022
19023 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
19024
19025 * function.c (assign_parms): Don't put args of inline functions
19026 into registers when not optimizing.
19027
19028 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
19029
19030 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
19031 (prologue_use): New pattern.
19032 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
19033 preference to gen_rtx_USE.
19034 (thumb_expand_prologue): Use gen_prologue_use in preference to
19035 gen_rtx_USE.
19036 (thumb_expand_epilogue): Use gen_prologue_use in preference to
19037 gen_rtx_USE.
19038
19039 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
19040
19041 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
19042
19043 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
19044
19045 PR c/3504
19046 * doc/extend.texi: Correct documentation of __alignof__.
19047
19048 2002-01-22 Zack Weinberg <zack@codesourcery.com>
19049
19050 * params.h: Rename arguments of DEFPARAM so that it will be
19051 recognized as a translation keyword.
19052
19053 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
19054
19055 * extend.texi: Document altivec functions.
19056 Fix N-bit adjectives in X86 builtin documentation.
19057
19058 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
19059
19060 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
19061 auto_inc_dec values.
19062
19063 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
19064
19065 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
19066 after backslash.
19067 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
19068
19069 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
19070
19071 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
19072
19073 2002-01-22 Richard Henderson <rth@redhat.com>
19074
19075 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
19076 copy_insn not copy_rtx.
19077
19078 2002-01-23 Alan Modra <amodra@bigpond.net.au>
19079
19080 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
19081 "nonzero" as that might add "1" bits. Ensure "constop" is
19082 properly sign extened.
19083 (force_to_mode): Tweak for sign extended constop.
19084
19085 2002-01-22 Richard Henderson <rth@redhat.com>
19086
19087 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
19088 for_each_rtx instead of assuming we're already looking at the MEM.
19089 (split_small_symbolic_mem_operand): Likewise.
19090 * config/alpha/alpha.h (PREDICATE_CODES): Update.
19091 * config/alpha/alpha.md (small symbolic memory splitters): Update.
19092
19093 2002-01-22 Richard Henderson <rth@redhat.com>
19094
19095 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
19096 sequence number for the literal.
19097 (divmoddi_internal_er): Likewise.
19098
19099 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
19100
19101 PR java/4972
19102 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
19103 in LIBICONV variable.
19104 * configure: Regenerated.
19105
19106 2002-01-22 Krister Walfridsson <cato@df.lth.se>
19107
19108 * dependence.c (build_def_use): Remove array_idx.
19109
19110 * dwarfout.c (last_filename): Remove.
19111 (output_compile_unit_die): Remove last_filename.
19112
19113 2002-01-22 Roger Sayle <roger@eyesopen.com>
19114 Richard Henderson <rth@redhat.com>
19115
19116 PR opt/3640
19117 * fold-const.c (fold): Optimize unsigned comparisons against
19118 UINT_MAX (and similar unsigned constants).
19119
19120 2002-01-22 Janis Johnson <janis187@us.ibm.com>
19121
19122 * Makefile.in (loop.o): Depend on OPTABS_H.
19123 * loop.c (emit_prefetch_instructions): Check the prefetch operand
19124 against the predicate.
19125
19126 PR target/5379
19127 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
19128 for the address operand.
19129
19130 2002-01-22 Richard Henderson <rth@redhat.com>
19131
19132 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
19133
19134 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
19135
19136 PR other/5450
19137 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
19138 preprocessor flags.
19139
19140 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
19141
19142 * config.gcc (x86_64-*-netbsd*): New target.
19143 * config/i386/netbsd64.h: New file.
19144
19145 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
19146
19147 * regrename.c (kill_value): Fix typo.
19148
19149 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
19150
19151 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
19152
19153 * config/rs6000/rs6000.h: Same.
19154
19155 * function.c (instantiate_virtual_regs): Remove
19156 STARTING_FRAME_PHASE.
19157 (assign_stack_local_1): Same.
19158 Calculate frame phase.
19159
19160 2002-01-22 Nick Clifton <nickc@redhat.com>
19161
19162 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
19163 variable declaration to outer scope in order to simplify
19164 future extensions.
19165 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
19166 arm_hard_regno_mode_ok.
19167 * config/arm/arm-protos.h: Add a prototype for
19168 arm_hard_regno_mode_ok.
19169 * config/arm/arm.c (soft_df_operand): Remove now redundant
19170 check for DImode values using IP_REGNUM.
19171 (nonimmediate_soft_df_operand): Remove now redundant check for
19172 DImode values using IP_REGNUM.
19173 (arm_hard_regno_mode_ok): New function. New check: make sure
19174 that DImode values are not stored in IP_REGNUM.
19175
19176 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
19177 note with a USE.
19178 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
19179
19180 2002-01-22 Jason Merrill <jason@redhat.com>
19181
19182 * c-semantics.c (genrtl_compound_stmt): Only check nesting
19183 consistency if this COMPOUND_STMT is scoped.
19184
19185 2002-01-22 Kazu Hirata <kazu@hxi.com>
19186
19187 * predict.c: Fix formatting.
19188 * print-tree.c: Likewise.
19189 * protoize.c: Likewise.
19190 * real.h: Likewise.
19191 * rtl.h: Likewise.
19192 * sbitmap.h: Likewise.
19193 * scan.c: Likewise.
19194 * sched-deps.c: Likewise.
19195 * sched-vis.c: Likewise.
19196 * sdbout.c: Likewise.
19197 * sibcall.c: Likewise.
19198 * ssa.c: Likewise.
19199 * ssa-ccp.c: Likewise.
19200 * ssa-dce.c: Likewise.
19201 * stmt.c: Likewise.
19202 * stor-layout.c: Likewise.
19203 * system.h: Likewise.
19204
19205 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19206
19207 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
19208 if fits in bounds of base type.
19209
19210 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
19211 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
19212 (add_bound_info, default): If can't find a context, make a
19213 SAVE_EXPR.
19214 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
19215
19216 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
19217
19218 * c-typeck.c (parser_build_binary_op): If result from
19219 build_binary_op is ERROR_MARK just return error_mark_node without
19220 further processing.
19221
19222 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
19223
19224 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
19225 Split a.out-specific bits into...
19226 * config/netbsd-aout.h: ...this.
19227 * config/netbsd-elf.h: New file.
19228 * config/alpha/netbsd-elf.h: Remove.
19229 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
19230 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
19231 (STARTFILE_SPEC): Remove redundant definition.
19232 (ENDFILE_SPEC): Likewise.
19233 (LINK_SPEC): Likewise.
19234 (CPP_SPEC): Likewise.
19235 (ASM_SPEC): Likewise.
19236 (LIB_SPEC): Likewise.
19237 (SWITCH_TAKES_ARG): Likewise.
19238 (TARGET_MEM_FUNCTIONS): Likewise.
19239 (CPP_PREDEFINES): Redefine.
19240 (ASM_FINAL_SPEC): Remove redefinition.
19241 (ASM_COMMENT_START): Redefine.
19242 (FUNCTION_PROFILER): Define.
19243 (TARGET_VERSION): Redefine.
19244 Comment and formatting cleanup.
19245 * config/i386/netbsd.h: Include <netbsd-aout.h>.
19246 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
19247 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
19248 big- or little-endian.
19249 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
19250 * config.gcc (*-*-netbsd*): Add definitions common to all
19251 NetBSD configs.
19252 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
19253 gnu_ld definitions. Add netbsd-elf.h to and remove
19254 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
19255 tmake_file, and don't lose previous tmake_file contents.
19256 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
19257 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
19258 gnu_ld definitions. Add netbsd-elf.h to tm_file.
19259 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
19260 (mipsel-*-netbsd*): Rename this to...
19261 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
19262 mips/little.h to tm_file for mips*el-*.
19263 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
19264 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
19265 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
19266
19267 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
19268
19269 * pa-protos.h (reg_before_reload_operand): New function prototype.
19270 * pa.c (reg_before_reload_operand): New function implementation.
19271 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
19272 contraints to "*m".
19273
19274 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19275
19276 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
19277
19278 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
19279
19280 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
19281 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
19282 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
19283 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
19284 (ENDFILE_SPEC): Undefine.
19285 (STARTFILE_SPEC): Redefine for PA.
19286
19287 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19288
19289 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
19290
19291 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
19292
19293 * config.gcc: Add entries to supported PowerPC --with-cpu
19294 types.
19295
19296 2002-01-21 Jakub Jelinek <jakub@redhat.com>
19297
19298 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
19299 true for 64-bit mode only SSE registers in 32-bit mode.
19300
19301 2002-01-21 Kazu Hirata <kazu@hxi.com>
19302
19303 * unwind-dw2.c: Fix formatting.
19304 * unwind-dw2-fde.c: Likewise.
19305 * unwind-dw2-fde.h: Likewise.
19306 * unwind-pe.h: Likewise.
19307 * varasm.c: Likewise.
19308 * varray.h: Likewise.
19309
19310 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
19311
19312 Remove workaround for register stack overwrite bug in mmix.
19313 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
19314 support for TARGET_REG_STACK_FILL_BUG.
19315 * config/mmix/mmix.h: Remove member has_call_without_parameters.
19316 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
19317 Delete.
19318 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
19319 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
19320 -mno-reg-stack-fill-bug-workaround.
19321 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
19322 machine member has_call_without_parameters.
19323 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
19324 -mreg-stack-fill-bug-workaround and
19325 -mno-reg-stack-fill-bug-workaround.
19326 (MMIX Options): Ditto.
19327
19328 2002-01-21 Kazu Hirata <kazu@hxi.com>
19329
19330 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
19331 as appropriate.
19332 Remove redundant code.
19333
19334 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
19335
19336 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
19337 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
19338 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
19339 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
19340 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
19341 out target macro definitions and non-target-specific comments
19342 mostly taken from old versions of the manual.
19343
19344 2002-01-20 Kazu Hirata <kazu@hxi.com>
19345
19346 * config/h8300/h8300.h: Fix comment formatting.
19347 * config/ia64/aix.h: Likewise.
19348 * config/ia64/ia64-protos.h: Likewise.
19349 * config/ia64/ia64.c: Likewise.
19350 * config/ia64/ia64.h: Likewise.
19351 * config/ia64/ia64intrin.h: Likewise.
19352 * config/ia64/linux.h: Likewise.
19353 * config/ia64/unwind-aix.c: Likewise.
19354 * config/ia64/unwind-ia64.c: Likewise.
19355
19356 2002-01-20 Kazu Hirata <kazu@hxi.com>
19357
19358 * config/h8300/h8300.c: Revise comments about shift code.
19359
19360 2002-01-20 Kazu Hirata <kazu@hxi.com>
19361
19362 * config/h8300/h8300.c (function_arg): Update a comment.
19363
19364 2002-01-20 Kazu Hirata <kazu@hxi.com>
19365
19366 * config/h8300/h8300.md: Update the comments at the beginning
19367 of the file.
19368
19369 2002-01-20 Kazu Hirata <kazu@hxi.com>
19370
19371 * config/i370/i370.c: Fix comment formatting.
19372 * config/i370/i370.h: Likewise.
19373 * config/i370/i370.md: Likewise.
19374 * config/i370/linux.h: Likewise.
19375
19376 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19377
19378 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
19379
19380 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
19381 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
19382 in incomplete case.
19383
19384 2002-01-20 Graham Stott <grahams@redhat.com>
19385
19386 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
19387
19388 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
19389
19390 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
19391
19392 2002-01-19 Tom Rix <trix@redhat.com>
19393
19394 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
19395
19396 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
19397
19398 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
19399
19400 * function.c (assign_stack_local_1): Adjust x_frame_offset with
19401 STARTING_FRAME_PHASE.
19402 (STARTING_FRAME_PHASE): New.
19403 (instantiate_virtual_regs): Check saneness of
19404 STARTING_FRAME_PHASE.
19405
19406 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
19407
19408 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
19409
19410 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
19411
19412 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
19413
19414 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
19415 be used for bootstrapping GCC 3.0.
19416
19417 2002-01-18 Kazu Hirata <kazu@hxi.com>
19418
19419 * config/h8300/h8300.md: Fix an insn length.
19420
19421 2002-01-18 Kazu Hirata <kazu@hxi.com>
19422
19423 * bitmap.h: Fix comment formatting.
19424 * combine.c: Likewise.
19425 * cppfiles.c: Likewise.
19426 * c-pragma.h: Likewise.
19427 * c-typeck.c: Likewise.
19428 * df.c: Likewise.
19429 * dwarf2out.c: Likewise.
19430 * function.c: Likewise.
19431 * gcc.c: Likewise.
19432 * genattrtab.c: Likewise.
19433 * gthr-win32.h: Likewise.
19434 * haifa-sched.c: Likewise.
19435 * predict.c: Likewise.
19436 * rtlanal.c: Likewise.
19437 * rtl.h: Likewise.
19438 * unwind-dw2-fde.h: Likewise.
19439 * unwind-pe.h: Likewise.
19440 * vmsdbgout.c: Likewise.
19441
19442 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19443
19444 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
19445 if type_required and passed decl.
19446
19447 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
19448
19449 * config.gcc (cpu_type): Include altivec.h in powerpc
19450 extra_headers.
19451 Same for darwin.
19452
19453 * config/rs6000/altivec.h: New.
19454
19455 2002-01-17 David Edelsohn <edelsohn@gnu.org>
19456
19457 * doc/install.texi (*-ibm-aix*): Update assembler and exception
19458 handling information.
19459 * doc/trouble.texi (Interoperation): Add libstdc++ information
19460 for AIX.
19461 (Misunderstandings): Add template instantiation and static template
19462 member information for AIX.
19463
19464 2002-01-17 Jason Merrill <jason@redhat.com>
19465
19466 * dbxout.c (dbxout_type): Support const and volatile.
19467
19468 * except.c (add_partial_entry): Remove backwards compatibility code.
19469 (end_protect_partials): Likewise.
19470
19471 2002-01-17 Jakub Jelinek <jakub@redhat.com>
19472
19473 * config/ia64/ia64.md (prologue_use): New.
19474 * config/ia64/ia64.c (ia64_expand_prologue): Use
19475 gen_prologue_use instead of gen_rtx_USE.
19476 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
19477 as CODE_FOR_pred_rel_mutex.
19478 (ia64_sched_reorder2): Likewise.
19479
19480 2002-01-16 Eric Christopher <echristo@redhat.com>
19481
19482 * config/mips/r3900.h: Reformat.
19483 (SUBTARGET_CPP_SIZE_SPEC): Remove.
19484 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
19485 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
19486 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
19487 * config/mips/t-elf: Remove mips3 multilib.
19488
19489 2002-01-16 H.J. Lu <hjl@gnu.org>
19490
19491 * config/mips/linux.h: Include "mips/abi64.h".
19492
19493 2002-01-16 H.J. Lu <hjl@gnu.org>
19494
19495 * config/mips/t-linux: New.
19496
19497 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
19498
19499 * config/mips/linux.h: Don't include "gofast.h".
19500 (INIT_SUBTARGET_OPTABS): Removed.
19501
19502 2002-01-16 Kazu Hirata <kazu@hxi.com>
19503
19504 * config/h8300/h8300-protos.h: Replace emit_a_shift with
19505 output_a_shift.
19506 * config/h8300/h8300.c: Likewise.
19507 * config/h8300/h8300.md: Likewise.
19508
19509 2002-01-16 Kazu Hirata <kazu@hxi.com>
19510
19511 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
19512 spaces after an opcode name.
19513 (pushqi1_h8300hs): Likewise.
19514 (pushhi1_h8300hs): Likewise.
19515
19516 2002-01-16 Kazu Hirata <kazu@hxi.com>
19517
19518 * doc/extend.texi: Replace "option" with "attribute"
19519 appropriately.
19520
19521 2002-01-16 Jakub Jelinek <jakub@redhat.com>
19522
19523 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
19524 (and:DI () (const_int -8)).
19525 (split_small_symbolic_mem_operand): Split
19526 (mem (and:DI () (const_int -8)).
19527
19528 2002-01-16 Jakub Jelinek <jakub@redhat.com>
19529
19530 PR target/5309:
19531 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
19532 same way as TYPE_IMUL.
19533 (ultrasparc_sched_reorder): Likewise.
19534 * config/sparc/sparc.md (type): Add comment to update
19535 ultrasparc_sched_reorder when making changes.
19536
19537 2002-01-16 Kazu Hirata <kazu@hxi.com>
19538
19539 * doc/invoke.texi: Change the dump file name of block
19540 reordering pass from 28.bbro to 29.bbro.
19541 Mention -dk option.
19542
19543 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
19544
19545 * i386.md (minsf splitter): Fix pasto.
19546
19547 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
19548
19549 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
19550 to frame pointer initialisation instruction.
19551 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
19552 initialisation instruction.
19553 (soft_df_operand): Do not accept the IP register.
19554 (nonimmediate_soft_df_operand): Do not accept the IP register.
19555
19556 2002-01-16 Jakub Jelinek <jakub@redhat.com>
19557
19558 PR target/5357:
19559 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
19560 MASK_V8 being both set.
19561
19562 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
19563
19564 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
19565 insn for GOT register; add REG_MAYBE_DEAD notes instead.
19566 config/s390/s390.md (call, call_value): Add GOT register to
19567 CALL_INSN_FUNCTION_USAGE where needed.
19568 (call_exp, call_value_exp): New.
19569
19570 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
19571
19572 * config/arm/arm.c: General formatting tidy up.
19573
19574 2002-01-16 Graham Stott <grahams@redhat.com>
19575
19576 * calls.c (try_to_integrate): Use "(size_t)" intermediate
19577 cast and when casting an integer literal to "rtx" pointer.
19578 (expand_call): Likewise.
19579 * flow.c (try_pre_increment): Likewise.
19580 (find_use_as_address): Likewise.
19581 * integrate.c (expand_iline_function): Likewise.
19582 * regmove.c (try_auto_increment): Likewise.
19583
19584 2002-01-16 Graham Stott <grahams@redhat.com>
19585
19586 * sched-rgn.c (passed): Use sbitmap_free.
19587 (header): Likewise.
19588 (inner): Likewise.
19589 (in_queue): Likewise.
19590 (in_stack): Likewise.
19591
19592 2002-01-15 Eric Christopher <echristo@redhat.com>
19593
19594 * flow.c (propagate_one_insn): Change to use fatal_insn.
19595
19596 2002-01-15 Kazu Hirata <kazu@hxi.com>
19597
19598 * expmed.c (extract_fixed_bit_field): Remove unused code.
19599 * system.h: Poison SLOW_ZERO_EXTEND.
19600 * doc/tm.texi: Remove.
19601 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
19602 * config/arm/arm.h: Likewise.
19603 * config/avr/avr.h: Likewise.
19604 * config/clipper/clipper.h: Likewise.
19605 * config/convex/convex.h: Likewise.
19606 * config/d30v/d30v.h: Likewise.
19607 * config/dsp16xx/dsp16xx.h: Likewise.
19608 * config/elxsi/elxsi.h: Likewise.
19609 * config/fr30/fr30.h: Likewise.
19610 * config/h8300/h8300.h: Likewise.
19611 * config/i370/i370.h: Likewise.
19612 * config/i386/i386.h: Likewise.
19613 * config/m68k/m68k.h: Likewise.
19614 * config/mips/mips.h: Likewise.
19615 * config/ns32k/ns32k.h: Likewise.
19616 * config/pdp11/pdp11.h: Likewise.
19617 * config/pj/pj.h: Likewise.
19618 * config/s390/s390.h: Likewise.
19619 * config/sh/sh.h: Likewise.
19620 * config/stormy16/stormy16.h: Likewise.
19621 * config/v850/v850.h: Likewise.
19622 * config/vax/vax.h: Likewise.
19623 * config/we32k/we32k.h: Likewise.
19624
19625 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
19626
19627 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
19628 (altivec_lvsl): Change constraint to b.
19629 (altivec_lvsr): Same.
19630 (altivec_lvebx): Same.
19631 (altivec_lvehx): Same.
19632 (altivec_lvewx): Same.
19633 (altivec_lvxl): Same.
19634 (altivec_lvx): Same.
19635 (altivec_stvx): Add parallel.
19636 (altivec_stvxl): Same.
19637 (altivec_stvehx): Same.
19638 (altivec_stvebx): Same.
19639 (altivec_stvebx): Same.
19640
19641 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
19642
19643 * config.gcc: Change altivec.h to altivec-defs.h.
19644
19645 * config/rs6000/altivec.h: Delete.
19646
19647 * config/rs6000/altivec-defs.h: Add.
19648
19649 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
19650
19651 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
19652 and UMOD modes.
19653
19654 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
19655 less than or equal to eight bytes.
19656
19657 * vax.md (andsi3): Remove constraints and change SET destination
19658 operand type to nonimmediate_operand.
19659 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
19660 when it is a CONST_INT.
19661
19662 2002-01-15 Jason Merrill <jason@redhat.com>
19663
19664 * c-common.def (FILE_STMT): New code.
19665 * c-common.c (statement_code_p): It's a statement.
19666 * c-common.h (stmt_tree_s): Add x_last_filename.
19667 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
19668 (last_expr_filename): New macro.
19669 * c-semantics.c (begin_stmt_tree): Initialize it.
19670 (add_stmt): If the filename changed, also insert a
19671 FILE_STMT.
19672 (expand_stmt): Handle seeing one.
19673
19674 2002-01-15 Eric Christopher <echristo@redhat.com>
19675
19676 * flow.c (propagate_one_insn): Add error message and print out
19677 insn for debugging.
19678
19679 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
19680
19681 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
19682 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
19683 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
19684 TRAMPOLINE_ALIGNMENT.
19685 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
19686 to be in bits.
19687 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
19688 PCC_BITFIELD_TYPE_MATTERS.
19689 * config/interix.h (STDC_VALUE): Remove. Use
19690 STDC_0_IN_SYSTEM_HEADERS.
19691 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
19692 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
19693 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
19694
19695 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
19696
19697 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
19698 not work on this platform currently.
19699
19700 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
19701
19702 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
19703 readonly_warning in _().
19704
19705 2002-01-15 Douglas B Rupp <rupp@gnat.com>
19706
19707 * gcc.c (delete_if_ordinary): Backout previous change.
19708
19709 2002-01-15 Kazu Hirata <kazu@hxi.com>
19710
19711 * config/h8300/h8300.c (print_operand): Remove support for
19712 unused operand characters.
19713
19714 * read-rtl.c: Fix formatting.
19715 * real.c: Likewise.
19716 * recog.c: Likewise.
19717 * regclass.c: Likewise.
19718 * regmove.c: Likewise.
19719 * reg-stack.c: Likewise.
19720 * reload1.c: Likewise.
19721 * rtlanal.c: Likewise.
19722
19723 2002-01-15 Kazu Hirata <kazu@hxi.com>
19724
19725 * config/i386/i386.c: Fix formatting.
19726
19727 2002-01-15 Jakub Jelinek <jakub@redhat.com>
19728
19729 * c-typeck.c (process_init_element): Don't save_expr
19730 COMPOUND_LITERAL_EXPR if just its initializer will be used.
19731
19732 2002-01-15 David Edelsohn <edelsohn@gnu.org>
19733
19734 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
19735 emit optional traceback table if optimize_size or TARGET_ELF.
19736 * config/rs6000/rs6000.md (prefetch): New.
19737
19738 2002-01-15 Andreas Jaeger <aj@suse.de>
19739
19740 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
19741
19742 2002-01-15 Kazu Hirata <kazu@hxi.com>
19743
19744 * mips-tfile.c: Fix formatting.
19745
19746 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
19747
19748 * unroll.c (final_reg_note_copy): Fix previous commit.
19749
19750 2002-01-14 Kazu Hirata <kazu@hxi.com>
19751
19752 * config/h8300/h8300-protos.h: Remove the prototype for
19753 eq_operator.
19754 * config/h8300/h8300.c (eq_operator): Remove.
19755
19756 2002-01-14 Richard Henderson <rth@redhat.com>
19757
19758 * config/i386/i386.md (prefetch): Tidy.
19759 (prefetch_3dnow): Fix locality operand.
19760
19761 2002-01-14 Richard Henderson <rth@redhat.com>
19762
19763 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
19764 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
19765
19766 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
19767
19768 * reload1.c (reload_combine): Pass reg_sum replacement through
19769 copy_rtx in loop performing multiple changes.
19770
19771 2002-01-14 Jakub Jelinek <jakub@redhat.com>
19772
19773 * except.c (remove_unreachable_regions): New.
19774 (free_eh_status): Clear exception_handler_labels.
19775 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
19776 (find_exception_handler_labels): Don't add the same label more than
19777 once.
19778 (remove_exception_handler_label): Don't die if
19779 find_exception_handler_labels hasn't been called for the current
19780 function yet.
19781
19782 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
19783
19784 * toplev.c (rest_of_compilation): Rebuild jump labels after
19785 gcse.
19786
19787 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
19788
19789 * doc/extend.texi: Move documentation of X86 built-in functions
19790 here.
19791 * doc/invoke.texi: From here.
19792 * doc/sourcebuild.texi: Document location of documentation for
19793 machine built-in functions.
19794
19795 2002-01-13 Christopher Faylor <cgf@redhat.com>
19796
19797 * cppfiles.c (TEST_THRESHOLD): New macro.
19798 (SHOULD_MMAP): Ditto.
19799 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
19800 be used.
19801
19802 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
19803
19804 * unroll.c (final_reg_note_copy): Properly handle
19805 REG_LABEL
19806 (unroll_loops): Fix LOOP_CONDITION heuristics.
19807
19808 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
19809
19810 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
19811 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
19812
19813 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
19814
19815 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
19816 threaded loop.
19817
19818 2002-01-14 Tom Rix <trix@redhat.com>
19819
19820 * config/rs6000/rs6000.md: Fix typo with sradi.
19821
19822 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
19823
19824 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
19825 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
19826 (clrstrdi, clrstrsi): Adapt callers.
19827
19828 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
19829
19830 (movti splitter): Never use register 0 as base register.
19831
19832 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
19833
19834 * combine.c (simplify_shift_const): Always generate new rtx
19835 for shift expression instead of reusing given expression.
19836
19837 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19838
19839 * config/alpha/alpha.c (alpha_expand_mov): Don't call
19840 alpha_legitimize_address unless mode is Pmode.
19841
19842 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
19843
19844 * doc/md.texi (Modifiers): Document the '*' constraint for the
19845 user.
19846
19847 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
19848 * doc/extend.texi (Function Attributes): 'interrupt' is valid
19849 for xstormy16 too.
19850
19851 2002-01-13 Richard Henderson <rth@redhat.com>
19852
19853 * reload.c (find_reloads): Use a hard reg destination as reload reg
19854 for an input reload of the source.
19855
19856 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
19857
19858 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
19859 more generic.
19860
19861 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
19862
19863 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19864 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19865
19866 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
19867
19868 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19869
19870 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
19871
19872 2002-01-12 Tom Rix <trix@redhat.com>
19873
19874 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
19875 TARGET_POWERPC64.
19876
19877 2002-01-12 Richard Henderson <rth@redhat.com>
19878
19879 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
19880
19881 * doc/invoke.texi: Update Alpha options.
19882
19883 * doc/invoke.texi: Update i386 built-in function lists.
19884
19885 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
19886
19887 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
19888 referencing outside.
19889
19890 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19891
19892 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
19893 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
19894 offsets, and change line folding.
19895 * optabs.c (expand_binop): Remove warnings.
19896 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
19897
19898 2002-01-12 Graham Stott <grahams@redhat.com>
19899
19900 * attribs.c (handle_deprecated_attribute): constify WHAT.
19901 * diagnostic.c (warn_deprecated_use): Add braces, fixes
19902 dangling else warning and constify WHAT.
19903 * except.h (struct function, struct inline_remap): Move
19904 struct tag forward defs before all prototypes.
19905 (duplicate_eh_regions): Whitespace.
19906
19907 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
19908
19909 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
19910 MODE_BASE_REG_CLASS.
19911 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
19912
19913 2002-01-12 Richard Henderson <rth@redhat.com>
19914
19915 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
19916 (ix86_expand_vector_move): New.
19917 (bdesc_2arg): Remove andps, andnps, orps, xorps.
19918 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
19919 Remove old prefetch builtins. Special case the logicals removed above.
19920 (ix86_expand_builtin): Likewise.
19921 (safe_vector_operand): Use V4SFmode, not TImode.
19922 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
19923 (ix86_expand_timode_binop_builtin): New.
19924 * config/i386/i386-protos.h: Update.
19925 * config/i386/i386.h (enum ix86_builtins): Update.
19926 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
19927 Use ix86_expand_vector_move in vector move expanders.
19928 (movti_internal, movti_rex64): Add xorps alternative.
19929 (sse_clrv4sf): Rename and adjust from sse_clrti.
19930 (prefetch): Don't work so hard.
19931 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
19932 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
19933 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
19934
19935 2002-01-11 Richard Henderson <rth@redhat.com>
19936
19937 * config/i386/mmintrin.h: New file.
19938 * config/i386/xmmintrin.h: New file.
19939 * config.gcc (i?86-*-*): Add extra_headers.
19940 * simplify-rtx.c (simplify_unary_operation): Handle saturating
19941 truncation codes.
19942 (simplify_binary_operation): Handle saturating arithmetic codes.
19943 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
19944 not the lowpart subreg.
19945 (ix86_expand_builtin): Return a TImode dummy register instead of 0
19946 on error.
19947 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
19948
19949 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19950
19951 * conflict.c (conflict_graph_compute): Free regsets when finished.
19952 * ssa.c (compute_coalesced_reg_partition): Likewise.
19953
19954 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19955
19956 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
19957 every where we allocate a register.
19958
19959 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19960
19961 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
19962 * lcm.c (compute_earliest, compute_farthest): Likewise.
19963
19964 2002-01-11 Janis Johnson <janis187@us.ibm.com>
19965
19966 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
19967
19968 2002-01-11 Janis Johnson <janis187@us.ibm.com>
19969
19970 * doc/rtl.texi (Insns): Fix 2 typos.
19971
19972 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
19973
19974 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
19975 options. Use @table @gcctabopt for MMIX options. Add index
19976 entries for MMIX options. Start new paragraph with first
19977 heading of the machine-dependent options.
19978
19979 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
19980
19981 PR other/5299
19982 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
19983 * combine.c (force_to_mode): Same.
19984 * reload1.c (clear_reload_reg_in_use): Same.
19985
19986 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
19987
19988 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
19989 and 'subtargets'.
19990
19991 2002-01-11 Andreas Jaeger <aj@suse.de>,
19992 Brad Lucier <lucier@math.purdue.edu>
19993
19994 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
19995 mcpu.
19996
19997 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
19998
19999 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
20000 Protect with IN_LIBGCC.
20001 (LINK_EH_SPEC): Add required trailing space.
20002
20003 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
20004
20005 * c-tree.h: Move function declarations so that they are listed
20006 under the filename which contains them.
20007 (check_identifier, finish_decl_top_level,
20008 lookup_name_current_level_global, shadow_record_fields): Remove.
20009
20010 2002-01-11 Andreas Jaeger <aj@suse.de>
20011
20012 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
20013 march.
20014
20015 2002-01-10 Richard Henderson <rth@redhat.com>
20016
20017 * config/alpha/alpha.c (print_operand): Add 'J'.
20018 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
20019 new operand with the sequence number for the lituse. When splitting
20020 the insns, use gen_movdi_er_high_g and generate a sequence number.
20021 (gen_movdi_er_high_g): Print the sequence number if non-zero.
20022
20023 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
20024
20025 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
20026 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
20027 stvxl.
20028 (altivec_expand_builtin): Same.
20029 (altivec_expand_stv_builtin): New.
20030
20031 * config/rs6000/rs6000.h (rs6000_builtins): Same.
20032
20033 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
20034 ("altivec_lvehx"): New.
20035 ("altivec_lvewx"): New.
20036 ("altivec_lvxl"): New.
20037 ("altivec_lvx"): New.
20038 ("altivec_stvx"): New.
20039 ("altivec_stvebx"): New.
20040 ("altivec_stvehx"): New.
20041 ("altivec_stvewx"): New.
20042 ("altivec_stvxl"): New.
20043
20044 2002-01-10 Richard Henderson <rth@redhat.com>
20045
20046 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
20047 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
20048 care not to delete instructions twice.
20049
20050 2002-01-10 Zack Weinberg <zack@codesourcery.com>
20051
20052 * toplev.c: Don't declare environ (it's not used anywhere).
20053 * configure.in: Don't check for declaration of environ.
20054 * config/i386/xm-mingw32.h: Don't #define environ.
20055 * config.in, configure: Regenerate.
20056
20057 2002-01-10 Zack Weinberg <zack@codesourcery.com>
20058
20059 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
20060 * configure: Regenerate.
20061
20062 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
20063 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
20064 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
20065 alpha/xm-vms.h.
20066 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
20067 LIMITS_H_TEST here, not in m68k/x-next.
20068 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
20069 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
20070
20071 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
20072 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
20073 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
20074
20075 * config/i386/x-djgpp: Renamed i386/t-djgpp.
20076 * config/m88k/x-dolph: Renamed m88k/t-dolph.
20077 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
20078 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
20079 replacement of quadlib.asm with quadlib.c.
20080
20081 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
20082 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
20083 config/rs6000/xm-beos.h: Delete file.
20084
20085 * config.gcc: Update to match above changes.
20086
20087 2002-01-10 Kazu Hirata <kazu@hxi.com>
20088
20089 * config/h8300/h8300.h: Fix comment typos.
20090 * config/h8300/h8300.md: Likewise.
20091 * config/h8300/lib1funcs.asm: Likewise.
20092
20093 2002-01-10 Dale Johannesen <dalej@apple.com>
20094
20095 PR optimization/5269
20096 * unroll.c (precondition_loop_p): Make *increment be the correct
20097 sign when n_iterations known, to avoid confusing caller.
20098
20099 2002-01-10 Kazu Hirata <kazu@hxi.com>
20100
20101 * doc/extend.texi (deprecated): Fix a typo.
20102
20103 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
20104
20105 * basic-block.h (update_br_prob_note): Declare.
20106 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
20107 (try_forward_edges): Care negative frequencies and update note.
20108 (outgoing_edges_match): Tweek conditional merging heuristics.
20109 (try_crossjump_to_edge): use update_br_prob_note.
20110 * cfglayout.c (fixup_reorder_chain): Likewise.
20111 * cfrtl.c (update_br_prob_note): New.
20112 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
20113
20114 * i386.c (ix86_decompose_address): Return -1 if address contains
20115 shift.
20116 (legitimate_address_p): Require ix86_decompose_address to return 1.
20117
20118 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
20119 (cprop_insn): Likewise.
20120
20121 2002-01-10 Kazu Hirata <kazu@hxi.com>
20122
20123 * toplev.c: Fix formatting.
20124 * tree.c: Likewise.
20125 * tree-dump.c: Likewise.
20126 * unroll.c: Likewise.
20127 * unwind-dw2.c: Likewise.
20128 * unwind-dw2-fde.c: Likewise.
20129 * unwind-dw2-fde-glibc.c: Likewise.
20130 * unwind-sjlj.c: Likewise.
20131
20132 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
20133
20134 * doc/invoke.texi: Document PDP-11 options.
20135
20136 2002-01-10 Kazu Hirata <kazu@hxi.com>
20137
20138 * config/h8300/h8300.h: Fix formatting.
20139
20140 2002-01-10 Ira Ruben <ira@apple.com>
20141
20142 Add __attribute__ ((deprecated)).
20143 * extend.texi: Document __attribute__ ((deprecated)).
20144 * invoke.texi: Document -Wno-deprecated-declarations.
20145 * testsuite/g++.dg/other/deprecated.C: New C++ test.
20146 * testsuite/gcc.dg/deprecated.c: New C test.
20147 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
20148 (c_common_attribute_table): Add "deprecated" entry.
20149 (handle_deprecated_attribute): New function.
20150 * c-decl.c (deprecated_states): New enum.
20151 deprecated_state: State of "deprecated" handling.
20152 (start_decl): Set deprecated_state based on attributes.
20153 (grokdeclarator): Test for deprecated uses, propagate attribute.
20154 * c-typeck.c (build_component_ref): Test for deprecated fields.
20155 (build_external_ref): Test for deprecated primaries.
20156 * diagnostic.c (warn_deprecated_use) New function to issue
20157 warnings about __attribute__ ((depricated)) references.
20158 * flags.h (warn_deprecated_decl): Extern declared for
20159 -W[no-]deprecated-declarations option.
20160 * print-tree.c (print_node): Show deprecated flag status.
20161 * toplev.c (warn_deprecated_decl): Defined.
20162 (W_options): Added "deprecated-declaration".
20163 * toplev.h (warn_deprecated_use): Extern declared.
20164 * tree.h (struct tree_common): Define deprecated_flag.
20165 (TREE_DEPRECATED): New macro to access flag.
20166 * cp/call.c (build_call): Test for deprecated calls.
20167 * cp/class.c (add_implicitly_declared_members): Set global
20168 flag to tell grokdeclarator to not issue deprecated warnings.
20169 * cp/cp-tree.h: Add extern for adding_implicit_members.
20170 * cp/decl.c (deprecated_states): New enum.
20171 (start_decl): Set deprecated_state based on attributes.
20172 (grokdeclarator): Test for deprecated uses, propagate attribute.
20173 * cp/lex.c (do_identifier): Test for deprecated primaries.
20174 * cp/typeck.c (build_component_ref): Test for deprecated fields.
20175
20176 2002-01-10 Ira Ruben <ira@apple.com>
20177
20178 Fix to assign attributes to inline member functions.
20179 * cp/decl.c (start_method): Handle attrlist.
20180
20181 2002-01-10 Kazu Hirata <kazu@hxi.com>
20182
20183 * combine.c (expand_field_assignment): Use subreg_lsb().
20184
20185 2002-01-10 David Edelsohn <edelsohn@gnu.org>
20186
20187 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
20188 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
20189 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
20190 Recurse for any operand of AND as long as constant is non-zero.
20191
20192 2002-01-10 Kazu Hirata <kazu@hxi.com>
20193
20194 * config/h8300/h8300.md: Remove constraints from expanders.
20195
20196 2002-01-10 Kazu Hirata <kazu@hxi.com>
20197
20198 * varasm.c: Fix formatting.
20199 * varray.c: Likewise.
20200 * vmsdbgout.c: Likewise.
20201 * xcoffout.c: Likewise.
20202
20203 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
20204
20205 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
20206 update edge probabilities to match.
20207
20208 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
20209
20210 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
20211 dependencies.
20212 * doc/languages.texi, doc/sourcebuild.texi: New files.
20213 * doc/configfiles.texi: Make a subsubsection. Update.
20214 * doc/configterms.texi: Add @node. Remove warning that this isn't
20215 instructions for building GCC.
20216 * doc/makefile.texi: Make a subsection.
20217 * doc/gccint.texi: Update.
20218
20219 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
20220
20221 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
20222
20223 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
20224
20225 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
20226
20227 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
20228
20229 * optabs.c (expand_fix): Look for wider integer modes first.
20230
20231 * i386.md (mov?f): Avoid the fake const double trick for medium
20232 memory model.
20233 (min?f*/max?f*): Prohibit memory operands for i387 variant.
20234 (fop_df_4): Disable for SSE compilation.
20235
20236 2002-01-10 Graham Stott <grahams@redhat.com>
20237
20238 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
20239 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
20240
20241 2002-01-10 Richard Henderson <rth@redhat.com>
20242
20243 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
20244
20245 2002-01-10 Richard Henderson <rth@redhat.com>
20246
20247 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
20248 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
20249
20250 2002-01-10 Kazu Hirata <kazu@hxi.com>
20251
20252 * combine.c (can_combine_p): Fix a comment typo.
20253
20254 2002-01-09 Zack Weinberg <zack@codesourcery.com>
20255
20256 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
20257 empty list correctly. Change loop index $t to $f for
20258 consistency with rest of Makefile.
20259
20260 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
20261
20262 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
20263 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20264
20265 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
20266 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
20267 (altivec_init_builtins): Same.
20268 (altivec_expand_unop_builtin): Return NULL_RTX on error.
20269 (altivec_expand_binop_builtin): Same.
20270 (altivec_expand_ternop_builtin): Same.
20271 (bdesc_dst): New.
20272
20273 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
20274 ("altivec_vctuxs"): Fix typo.
20275 ("altivec_vnmsubfp"): Same.
20276 ("altivec_dssall"): New.
20277 ("altivec_mfvscr"): New.
20278 ("altivec_dss"): New.
20279 ("altivec_lvsl"): New.
20280 ("altivec_lvsr"): New.
20281 ("altivec_dstt"): New.
20282 ("altivec_dstst"): New.
20283 ("altivec_dststt"): New.
20284 ("altivec_dst"): New.
20285
20286 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
20287 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20288
20289 2002-01-09 Richard Henderson <rth@redhat.com>
20290
20291 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
20292
20293 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
20294
20295 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
20296 function.
20297 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
20298 prototype.
20299 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
20300
20301 2002-01-09 Kazu Hirata <kazu@hxi.com>
20302
20303 * read-rtl.c: Fix formatting.
20304 * real.c: Likewise.
20305 * regclass.c: Likewise.
20306 * regrename.c: Likewise.
20307 * reg-stack.c: Likewise.
20308 * reload1.c: Likewise.
20309 * reload.c: Likewise.
20310 * rtl.c: Likewise.
20311
20312 2002-01-09 Kazu Hirata <kazu@hxi.com>
20313
20314 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
20315 to extract items in the expr_list chain.
20316
20317 2002-01-09 Richard Henderson <rth@redhat.com>
20318
20319 * config/vax/vax.c (vax_rtx_cost): Never abort.
20320
20321 * config/vax/vax.h (REAL_ARITHMETIC): Define.
20322
20323 2002-01-09 Jan Hubicka <jh@suse.cz>
20324
20325 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
20326
20327 2002-01-09 Richard Henderson <rth@redhat.com>
20328
20329 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
20330 Unify code from various alternatives.
20331
20332 2002-01-09 Richard Henderson <rth@redhat.com>
20333
20334 * regrename.c (copy_value): Ignore the copy if the source register
20335 is present in the value chain with a narrower mode.
20336
20337 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20338
20339 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
20340 for the c4x target. Also improve layout.
20341
20342 2002-01-09 Richard Henderson <rth@redhat.com>
20343
20344 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
20345 * config/m32r/m32r.md (and ior xor splitters): Swap operands
20346 to match insn patterns.
20347
20348 2002-01-09 Richard Henderson <rth@redhat.com>
20349
20350 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
20351 (copyprop_hardreg_forward_1): Likewise.
20352
20353 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
20354
20355 * pa.md (decrement_and_branch_until_zero): Change predicate for
20356 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
20357
20358 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
20359
20360 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
20361 gets undefined. For Darwin.
20362
20363 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20364
20365 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
20366
20367 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20368
20369 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
20370
20371 2002-01-08 Richard Henderson <rth@redhat.com>
20372
20373 * regrename.c (copy_value): Ignore overlapping copies.
20374
20375 2002-01-08 Richard Henderson <rth@redhat.com>
20376
20377 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
20378 as needed to avoid shared structure.
20379
20380 2002-01-08 Kazu Hirata <kazu@hxi.com>
20381
20382 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
20383 H8/300H and H8/S.
20384
20385 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20386
20387 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
20388 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
20389 documentation of obsolete macros.
20390 * system.h: Poison these macros.
20391 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
20392 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
20393 config/c4x/c4x.h, config/clipper/clipper.h,
20394 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
20395 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
20396 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
20397 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
20398 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
20399 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
20400 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20401 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
20402 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
20403 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20404 config/sparc/sparc.h, config/stormy16/stormy16.h,
20405 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
20406 definitions and commented out definitions of obsolete macros.
20407 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
20408 of MAX_INT_TYPE_SIZE.
20409
20410 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
20411
20412 * config/s390/s390.c (s390_preferred_reload_class): Never
20413 return ADDR_REGS if it isn't a subset of the given class.
20414 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
20415 FP_REGS, but all superclasses as well.
20416
20417 * config/s390/s390.c (s390_function_profiler): Fix thinko.
20418
20419 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
20420 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
20421 must not be a const_int.
20422
20423 2002-01-08 Richard Henderson <rth@redhat.com>
20424
20425 * Makefile.in (toplev.o): Depend on options.h.
20426 (gcc.o): Depend on specs.h.
20427
20428 2002-01-08 Jakub Jelinek <jakub@redhat.com>
20429
20430 * expr.c (store_expr): Convert VOIDmode constants back to target's
20431 mode.
20432
20433 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20434
20435 * doc/invoke.texi: Markup gcc as @command. Refer to
20436 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
20437 of http://gcc.gnu.org/thanks.html.
20438
20439 2002-01-08 Dale Johannesen <dalej@apple.com>
20440
20441 * config/rs6000/rs6000.md: Add missing int register
20442 target case to movdf_low.
20443
20444 2002-01-08 Zack Weinberg <zack@codesourcery.com>
20445
20446 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
20447 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
20448 (cppinit.o): Depend on except.h.
20449 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
20450 s-specs): New rules.
20451
20452 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
20453 Don't create specs.h/options.h/gencheck.h here. Remove
20454 unnecessary variable settings from last argument of AC_OUTPUT.
20455 * config.in, configure: Regenerate.
20456 * intl.c: Hardcode package name as "gcc".
20457
20458 * cppinit.c: Include except.h.
20459 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
20460 appropriate.
20461 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
20462 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
20463 (!)USING_SJLJ_EXCEPTIONS.
20464 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
20465
20466 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20467
20468 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
20469 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
20470 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
20471 documentation of obsolete macros.
20472 * system.h: Poison these macros.
20473 * config/d30v/d30v.h, config/ns32k/encore.h,
20474 config/stormy16/stormy16.h: Remove definitions and commented out
20475 definitions of obsolete macros.
20476
20477 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
20478
20479 * objc/objc-act.c (handle_class_ref): Mark the declaration of
20480 %sobjc_class_ref_%s as used - to prevent unwanted compiler
20481 warnings.
20482
20483 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
20484
20485 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
20486 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
20487 to insn adjusting stack/frame pointer.
20488 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
20489 accept operands that cause the insn to be non-splittable.
20490
20491 2002-01-08 Graham Stott <grahams@redhat.com>
20492
20493 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
20494 (C_TYPE_FIELDS_VOLATILE): Likewise.
20495 (C_TYPE_BEING_DEFINED): Likewise.
20496 (C_IS_RESERVED_WORD): Likewise.
20497 (C_TYPE_VARIABLE_SIZE): Likewise.
20498 (C_DECL_VARIABLE_SIZE): Likewise.
20499 (C_MISSING_PROTOTYPE_WARNED): Likewise.
20500 (C_SET_EXP_ORIGINAL_CODE): Likewise.
20501 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
20502 parenthesis.
20503 (C_DECL_ANTICIPATED): Likewise.
20504 (c_build_type_variant): Add parenthesis.
20505
20506 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20507
20508 * gcc.c (option_map): Remove --version.
20509 (process_command): Handle -fversion following the GNU Coding
20510 Standards. Partially addresses PR other/704.
20511
20512 2002-01-08 Graham Stott <grahams@redhat.com>
20513
20514 * combine.c (combine_instructions): Fix typo.
20515
20516 2002-01-08 Graham Stott <grahams@redhat.com>
20517
20518 * debug.h: Use "tree" and "rtx" throughout.
20519
20520 * debug.c: Likewise.
20521
20522 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
20523
20524 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
20525 constant pool, use the pool's version of the symbol instead.
20526
20527 2002-01-07 Richard Henderson <rth@redhat.com>
20528
20529 * regrename.c (find_oldest_value_reg): Ignore the value chain if
20530 the original register was copied in a mode with a fewer number of
20531 hard registers than the desired mode.
20532 (copyprop_hardreg_forward_1): Likewise.
20533 (debug_value_data): Fix loop test.
20534 * toplev.c (parse_options_and_default_flags): Reenable
20535 -fcprop-registers at -O1.
20536
20537 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
20538
20539 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
20540 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
20541
20542 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
20543 predicates.
20544
20545 * config/rs6000/rs6000.md: Add altivec predicate patterns.
20546
20547 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
20548
20549 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
20550 (pa_output_function_prologue): Output local label at the beginning of
20551 the prologue when profiling.
20552 (hppa_profile_hook): Use the local label rather than the function label.
20553 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
20554
20555 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
20556
20557 * config/rs6000/rs6000.c (print_operand): Remove extra space.
20558 (altivec_expand_unop_builtin): Fix thinko.
20559 (altivec_expand_binop_builtin): Same.
20560 (altivec_expand_ternop_builtin): Same.
20561 (altivec_expand_builtin): Same.
20562
20563 2002-01-07 Richard Henderson <rth@redhat.com>
20564
20565 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
20566
20567 2002-01-07 Jason Merrill <jason@redhat.com>
20568
20569 * unwind-dw2.c (execute_cfa_program): Use < again.
20570
20571 2002-01-07 Jakub Jelinek <jakub@redhat.com>
20572
20573 * predict.c (combine_predictions_for_insn): Avoid division by zero.
20574
20575 2002-01-07 Jakub Jelinek <jakub@redhat.com>
20576
20577 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
20578 Don't allow -1 - x -> ~x simplifications in the first pass.
20579
20580 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
20581
20582 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
20583 arguments.
20584 (altivec_expand_binop_builtin): Same.
20585 (altivec_expand_unop_builtin): Same.
20586 (print_operand): Fix typo.
20587 (bdesc_1arg): Add vupk* variants.
20588
20589 * rs6000.h (rs6000_builtins): Add vupk* enums.
20590
20591 * rs6000.md: Add altivec_vupk* variants.
20592
20593 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
20594
20595 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
20596 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
20597 and last update dates.
20598
20599 2002-01-07 Janis Johnson <janis187@us.ibm.com>
20600
20601 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
20602
20603 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
20604
20605 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
20606 * config/avr/avr.h (CPP_SPEC): Likewise.
20607 (LINK_SPEC): Likewise.
20608 (CRT_BINUTILS_SPECS): Likewise.
20609 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
20610 * doc/invoke.texi (AVR Options): Document them.
20611
20612 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
20613
20614 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
20615 LABEL_NUSES.
20616
20617 2002-01-07 Graham Stott <grahams@redhat.com>
20618
20619 * config/i386/i386.h: Update copyright date.
20620 (HALF_PIC_PTR): Add parenthesis.
20621 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
20622 (CONSTANT_ALIGNMENT): Add parenthesis.
20623 (DATA_ALIGNMENT): Likewise.
20624 (LOCAL_ALIGNMENT): Likewise.
20625 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
20626 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
20627 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
20628 (HARD_REGNO_NREGS): Add paranethesis.
20629 (VALID_SSE_REG_MODE): Whitespace.
20630 (VALID_MMX_REG_MODE): Whitespace.
20631 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
20632 (ix86_hard_regno_mode_ok): Add parenthesis.
20633 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
20634 (RETURN_IN_MEMORY): Whitespace.
20635 (N_REG_CLASSES): Add parenthesis.
20636 (INTEGER_CLASS_P): Add parenthesis and wrap.
20637 (FLOAT_CLASS_P): Likewise.
20638 (SSE_CLASS_P): Likewise.
20639 (MMX_CLASS_P): Likewise.
20640 (MAYBE_INTEGER_CLASS_P): Likewise.
20641 (MAYBE_FLOAT_CLASS_P): Likewise.
20642 (MAYBE_SSE_CLASS_P): Likewise.
20643 (MAYBE_MMX_CLASS_P): Likewise.
20644 (Q_CLASS_P): Likewise.
20645 (GENERAL_REGNO_P): Uppercase macro parameter.
20646 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
20647 (FP_REGNO_P): Likewise.
20648 (ANY_FP_REGNO_P): Uppercase macro parameter.
20649 (SSE_REGNO_P): Likewise.
20650 (SSE_REGNO): Likewise.
20651 (SSE_REG_P): Likewise.
20652 (SSE_FLOAT_MODE_P): Likewise.
20653 (MMX_REGNO_P): Likewise.
20654 (MMX_REG_P):Likewise.
20655 (STACK_REG_P): Likewise.
20656 (NON_STACK_REG_P): Likewise.
20657 (STACK_TOP_P): Likewise.
20658 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
20659 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
20660 (SECONDARY_MEMORY_NEEDED): Likewise.
20661 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
20662 (MD_ASM_CLOBBERS): Whitespace and wrap.
20663 (MUST_PASS_IN_STACK): Whitespace and wrap.
20664 (RETURN_POPS_ARGS): Add parenthesis.
20665 (INIT_CUMULATIVE_ARGS): Likewise.
20666 (FUNCTION_ARG): Likewise.
20667 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
20668 (SETUP_INCOMING_VARARGS): Likewise.
20669 (BUILD_VA_LIST_TYPE): Add parenthesis.
20670 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
20671 parenthsis.
20672 (EXPAND_BUILTIN_VA_ARG): Likewise.
20673 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
20674 (INITIALIZE_TRAMPOLINE): Add parenthesis.
20675 (INITIAL_ELIMINATION_OFFSET): Likewise.
20676 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
20677 (REGNO_OK_FOR_BASE_P): Likewise.
20678 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
20679 (REGNO_OK_FOR_DIREG_P): Likewise.
20680 (REG_OK_FOR_INDEX_P): Whitespace.
20681 (REG_OK_FOR_BASE_P): Whitespace.
20682 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
20683 parenthesis.
20684 (FIND_BASE_TERM): Fix typo.
20685 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
20686 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
20687 (SYMBOLIC_CONST; Whitespace.
20688 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
20689 (ENCODE_SECTION_INFO): Whitespace.
20690 (FINALIZE_PIC): Remove do { ... } while (0).
20691 (PROMOTE_MODE): Wrap in do { ... } while (0).
20692 (CONST_COSTS): Whitespace.
20693 (RTX_COSTS): Add paramethesis, whitespace and wrap.
20694 (REGISTER_MOVE_COST): Add parenthesis.
20695 (MEMORY_MOVE_COST): Likewise.
20696 (EXTRA_CC_MODES): Whitespace.
20697 (SELECT_CC_MODE): Add parenthesis and whitespace.
20698 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
20699 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
20700 (ASM_OUTPUT_LABEL): Add paramethesis.
20701 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
20702 (ASM_OUTPUT_REG_POP): Likewise.
20703 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
20704 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20705
20706 * config/i386/i386.c: Update copyright.
20707 (CHECK_STACK_LIMIT): Add parenthesis.
20708 (AT_BP): Uppercase macro parameter.
20709 (x86_64_int_parameter_registers): Constify.
20710 (x86_64_int_return_registers): Likewise.
20711 (ix86_compare_op0): Use rtx.
20712 (construct_container): Constify INTREG parameter.
20713 (function_arg): Use rtx.
20714
20715 * diagnostic.h: Update copyright date.
20716 (output_buffer_state): Add parenthesis.
20717 (output_buffer_format_args): Likewise.
20718
20719 * combine.c (combine_instructions): Replace XEXP (links, 0)
20720 with link.
20721
20722 2002-01-06 H.J. Lu <hjl@gnu.org>
20723
20724 * cfgcleanup.c (thread_jump): Fix 2 typos.
20725
20726 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
20727
20728 * config.gcc: Add support for --enable-altivec.
20729
20730 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
20731
20732 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
20733
20734 2002-01-06 Jakub Jelinek <jakub@redhat.com>
20735
20736 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
20737 __objc_class_name_*.
20738
20739 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
20740
20741 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
20742
20743 2002-01-06 Richard Henderson <rth@redhat.com>
20744
20745 * reorg.c (emit_delay_sequence): Remove death notes, not merely
20746 nop them out. Increment label reference count for REG_LABEL.
20747 (fill_slots_from_thread): Frob label reference count around
20748 delete_related_insns.
20749
20750 2002-01-05 Richard Henderson <rth@redhat.com>
20751
20752 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
20753 jump threading.
20754
20755 2002-01-05 Richard Henderson <rth@redhat.com>
20756
20757 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
20758 * integrate.c (output_inline_function): Likewise.
20759 * toplev.c (rest_of_compilation): Do it here instead. Move call
20760 to remove_unnecessary_notes after emitting abstract instance.
20761 Force an emitted nested function to have its parent emited as well.
20762 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
20763 for null.
20764 (rtl_for_decl_location): Do not look at reload data structures
20765 before reload has run.
20766
20767 2002-01-05 Kazu Hirata <kazu@hxi.com>
20768
20769 * cse.c: Fix formatting.
20770 * dwarf2asm.c: Likewise.
20771 * dwarf2out.c: Likewise.
20772 * explow.c: Likewise.
20773 * expmed.c: Likewise.
20774 * function.c: Likewise.
20775 * gcov.c: Likewise.
20776 * gencheck.c: Likewise.
20777 * genrecog.c: Likewise.
20778 * ggc-common.c: Likewise.
20779 * ggc-page.c: Likewise.
20780 * global.c: Likewise.
20781
20782 2002-01-05 Kazu Hirata <kazu@hxi.com>
20783
20784 * combine.c: Fix formatting.
20785
20786 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
20787
20788 PR middle-end/1557
20789 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
20790
20791 2002-01-05 David Edelsohn <edelsohn@gnu.org>
20792
20793 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
20794 as 1 for __powerpc64__ as well.
20795
20796 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
20797
20798 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
20799 return it.
20800
20801 2002-01-05 Daniel Berlin <dan@dberlin.org>
20802
20803 * lcm.c: Revert change, due to performance regression it causes on
20804 SPEC because it's slightly more conservative (sigh, I hate
20805 edge-based LCM).
20806
20807 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
20808
20809 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
20810
20811 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
20812
20813 * doc/cppinternals.texi: Update.
20814
20815 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
20816
20817 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
20818 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
20819 negatives.
20820 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
20821 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
20822 kludge for pre-october-14th mmix versions to handle new-found bug
20823 with PUSHJ/PUSHGO and the register stack.
20824 * config/mmix/mmix.h (struct machine_function): Rename member
20825 has_call_value_without_parameters to has_call_without_parameters.
20826 All referers changed.
20827 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
20828 TARGET_MASK_BRANCH_PREDICT): New macros.
20829 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
20830 -mno-reg-stack-fill-bug-workaround.
20831 * config/mmix/mmix.md ("call"): Set struct machine member
20832 has_call_without_parameters.
20833
20834 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
20835
20836 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
20837
20838 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
20839
20840 * cfgcleanup.c: Include tm_p.h
20841 (mark_effect): Fix handling of hard register; fix handling of SET
20842
20843 2002-01-04 Kazu Hirata <kazu@hxi.com>
20844
20845 * config/h8300/h8300.md (anonymous patterns): Check that
20846 operands are registers before using REGNO on them.
20847
20848 2002-01-03 Roland McGrath <roland@frob.com>
20849
20850 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
20851
20852 2002-01-04 Jakub Jelinek <jakub@redhat.com>
20853
20854 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
20855 * c-common.h (genrtl_expr_stmt_value): Likewise.
20856 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
20857 (expand_expr_stmt_value): Add maybe_last argument.
20858 Don't warn about statement with no effect if it is the last statement
20859 in expression statement.
20860 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
20861 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
20862 expand_expr_stmt_value.
20863 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
20864 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
20865 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
20866 as maybe_last to expand_expr_stmt_value.
20867
20868 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
20869
20870 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
20871 be passed in, do not build it.
20872 (c_begin_if_stmt): New function.
20873 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20874 * c-common.h (c_expand_start_cond): Update prototype.
20875 (c_begin_if_stmt): Prototype new function.
20876 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20877 * c-parse.in (if_prefix): Use c_begin_if_stmt,
20878 c_begin_while_stmt and c_finish_while_stmt_cond.
20879
20880 2002-01-04 William Cohen <wcohen@redhat.com>
20881
20882 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
20883 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20884 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20885 * config/pa/som.h (ASM_FILE_START): Likewise.
20886
20887 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
20888
20889 * lcm.c: Include df.h.
20890 Add available_transfer_function prototype.
20891 (compute_available): Rework to use iterative dataflow framework.
20892 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
20893 with bb_info in df.h
20894 (available_transfer_function): New function.
20895
20896 * Makefile.in (lcm.o): add df.h to dependencies.
20897
20898 2002-01-04 Richard Henderson <rth@redhat.com>
20899
20900 * config/alpha/alpha.c (some_operand): Accept HIGH.
20901 (input_operand): Likewise; accept simple references to globals.
20902 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
20903 (alpha_const_double_ok_for_letter_p): Likewise.
20904 (alpha_extra_constraint): Likewise.
20905 (alpha_preferred_reload_class): Likewise. Do not force
20906 symbolic constants to memory.
20907 (alpha_legitimate_address_p): Accept simple references
20908 to small_symbolic_operand.
20909 (alpha_legitimize_address): New arg scratch. Be prepared to be
20910 called when no_new_pseudos. Emit simple symbolic references.
20911 Split integers into low, high, and rest.
20912 (alpha_expand_mov): Use alpha_legitimize_address.
20913 (some_small_symbolic_mem_operand): New.
20914 (split_small_symbolic_mem_operand): New.
20915 * config/alpha/alpha-protos.h: Update.
20916 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
20917 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
20918 (EXTRA_CONSTRAINT): Likewise.
20919 (PREFERRED_RELOAD_CLASS): Likewise.
20920 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
20921 (PREDICATE_CODES): Update.
20922 * config/alpha/alpha.md: New post-reload splitters to convert
20923 simplfied symbolic operands to the form that references $29.
20924 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
20925 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
20926
20927 2002-01-03 Richard Henderson <rth@redhat.com>
20928
20929 * local-alloc.c (function_invariant_p): Update commentary.
20930
20931 2002-01-04 H.J. Lu <hjl@gnu.org>
20932
20933 * toplev.c (rest_of_compilation): Fix a typo when calling
20934 cleanup_cfg.
20935
20936 2002-01-03 Kazu Hirata <kazu@hxi.com>
20937
20938 * c-common.c: Fix formatting.
20939 * diagnostic.c: Likewise.
20940 * doloop.c: Likewise.
20941 * dwarf2out.c: Likewise.
20942
20943 2002-01-03 Kazu Hirata <kazu@hxi.com>
20944
20945 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
20946 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
20947
20948 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
20949
20950 * cpperror.c: Update comments and copyright.
20951 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
20952 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
20953
20954 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
20955
20956 * collect2.c (main): Use strcmp when testing for "-shared".
20957
20958 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
20959
20960 * cppmacro.c: Don't include intl.h. Update comments.
20961 (new_number_token): Allocate enough buffer for 64-bit unsigned
20962 integers; update prototype.
20963 * cppmain.c: Update comments.
20964
20965 2002-01-03 William Cohen <wcohen@redhat.com>
20966
20967 * function.h (struct function): Add profile.
20968 (current_function_profile): New.
20969 doc/extend.texi: Update documentation.
20970 * final.c (final_start_function): Use current_function_profile
20971 instead of profile_flag.
20972 (profile_after_prologue): Likewise.
20973 * function.c (expand_function_start): Likewise.
20974 (expand_function_start): Likewise.
20975 * config/alpha/alpha.c (direct_call_operand):
20976 (alpha_does_function_need_gp): Likewise.
20977 (alpha_expand_prologue): Likewise.
20978 * config/arm/arm.c (arm_expand_prologue): Likewise.
20979 thumb_expand_prologue: Likewise.
20980 * config/d30v/d30v.c (d30v_stack_info): Likewise.
20981 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
20982 (fr30_expand_prologue): Likewise.
20983 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
20984 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
20985 * config/i386/i386.h (FINALIZE_PIC): Likewise.
20986 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
20987 * config/i960/i960.c (i960_output_function_prologue): Likewise.
20988 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
20989 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
20990 (m32r_expand_prologue): Likewise.
20991 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
20992 (m88k_expand_prologue): Likewise.
20993 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
20994 * config/mips/mips.c (compute_frame_size): Likewise.
20995 (mips_expand_prologue): Likewise.
20996 (mips_can_use_return_insn): Likewise.
20997 * config/pa/elf.h (ASM_FILE_START): Likewise.
20998 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20999 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
21000 * config/pa/som.h (ASM_FILE_START): Likewise.
21001 * config/romp/romp.c (romp_using_r14): Likewise.
21002 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
21003 (rs6000_stack_info): Likewise.
21004 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21005 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
21006 * config/v850/v850.c (compute_register_save_size): Likewise.
21007
21008 2002-01-03 Jakub Jelinek <jakub@redhat.com>
21009
21010 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
21011 gen_lowpart_common fails, use gen_lowpart_SUBREG.
21012
21013 2002-01-03 Turly O'Connor <turly@apple.com>
21014
21015 * darwin.c (machopic_output_possible_stub_label): Don't generate
21016 stub routines for pseudo-stubs which we've just defined.
21017
21018 2002-01-03 Kazu Hirata <kazu@hxi.com>
21019
21020 * builtins.c: Fix formatting.
21021 * c-typeck.c: Likewise.
21022 * combine.c: Likewise.
21023 * expr.c: Likewise.
21024 * loop.c: Likewise.
21025
21026 2002-01-03 Andreas Schwab <schwab@suse.de>
21027
21028 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
21029 and return true if _cpp_push_next_buffer pushed a new include
21030 file.
21031 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
21032 _cpp_pop_file_buffer did not push a new file.
21033 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
21034
21035 2002-01-02 Eric Christopher <echristo@redhat.com>
21036
21037 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
21038 FIND_REG_INC_NOTE call. Update copyright.
21039 * loop.c (canonicalize_condition): Ditto.
21040 * reorg.c (delete_scheduled_jump): Ditto.
21041
21042 2002-01-03 Kazu Hirata <kazu@hxi.com>
21043
21044 * gcse.c: Fix formatting.
21045
21046 2002-01-03 Graham Stott <grahams@redhat.com>
21047
21048 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
21049 forward defs for struct tags rtx_def, union_tree, rtvec_def
21050 also output corresponding typedefs for rtx, tree, and rtvec.
21051
21052 * system.h: Move forward defs for struct tags rtx_def, union_tree,
21053 rtvec_def along with corresponding typedefs for rtx, tree, and
21054 rtvec to config.h, hconfig.h, tconfig.h.
21055
21056 2002-01-03 Graham Stott <grahams@redhat.com>
21057
21058 * tree.h: Update copyright date.
21059 (IS_EXPR_CODE_CLASS): Add parenthesis.
21060 (TREE_SET_CODE): Add whitespace.
21061 (TREE_CHECK): Add parenthesis.
21062 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
21063 (CST_OR_CONSTRUCTOR_CHECK):
21064 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
21065 (TREE_SYMBOL_REFERENCED): Whitespace.
21066 (INT_CST_LT): Likewise.
21067 (INT_CST_LT_UNSIGNED): Likewise.
21068 (tree_real_cst): Unwrap comment.
21069 (tree_string): Likewise.
21070 (tree_complex): Likewise.
21071 (IDENTIFIER_POINTER): correct cast.
21072 (SAVE_EXPR_CONTEXT): Whitespace.
21073 (EXPR_WFL_FILENAME_NODE): Likewise.
21074 (EXPR_WFL_FILENAME): Remove parenthesis.
21075 (DECL_ORIGIN): Add parenthesis.
21076 (DECL_FROM_INLINE): Use NULL_TREE.
21077 (build_int_2): Whitespace.
21078 (build_type_variant): Add parenthesis.
21079
21080 * gcc/jcf-parse.c: Update copyright date.
21081 (yyparse): Constify resource_filename.
21082
21083 2002-01-03 Graham Stott <grahams@redhat.com>
21084
21085 * rtl.h: Update copyright date.
21086 (RTL_CHECK1): Wrap long line.
21087 (RTL_CHECK2): Likewise.
21088 (RTL_CHECKC1): Wrap long line and whitespace.
21089 (RTL_CHECKC2): Likewise.
21090 (XWINT): Whitespace.
21091 (XINT): Likewise.
21092 (XSTR): Likewise.
21093 (XEXP): Likewise.
21094 (XVEC): Likewise.
21095 (XMODE): Likewise.
21096 (XBITMAP): Likewise.
21097 (XTREE): Likewise.
21098 (XBBDEF): Likewise.
21099 (XTMPL): Likewise.
21100 (X0WINT): Likewise.
21101 (X0INT):Likewise.
21102 (X0UINT): Likewise.
21103 (X0STR): Likewise.
21104 (X0EXP): Likewise.
21105 (X0VEC): Likewise.
21106 (X0MODE): Likewise.
21107 (X0BITMAP): Likewise.
21108 (X0TREE): Likewise.
21109 (X0BBDEF): Likewise.
21110 (X0ADVFLAGS): Likewise.
21111 (X0CSELIB): Likewise.
21112 (X0MEMATTR): Likewise.
21113 (XCWINT): Likewise.
21114 (XCINT): Likewise.
21115 (XCUINT): Likewise.
21116 (XCSTR): Likewise.
21117 (XCEXP): Likewise.
21118 (XCVEC): Likewise.
21119 (XCMODE): Likewise.
21120 (XCBITMAP): Likewise.
21121 (XCTREE): Likewise.
21122 (XCBBDEF): Likewise.
21123 (XCADVFLAGS): Likewise.
21124 (XCCSELIB): Likewise.
21125 (XC2EXP): Likewise.
21126 (INSN_UID): Likewise.
21127 (PREV_INSN): Likewise.
21128 (PATTERN): Likewise.
21129 (INSN_CODE): Likewise.
21130 (PUT_REG_NOTE_KIND): Likewise.
21131 (CODE_LABEL_NUMBER): Likewise.
21132 (NOTE_SOURCE_FILE): Likewise.
21133 (NOTE_BLOCK): Likewise.
21134 (NOTE_EH_HANDLER): Likewise.
21135 (NOTE_RANGE_INFO): Likewise.
21136 (NOTE_LIVE_INFO): Likewise.
21137 (NOTE_BASIC_BLOCK): Likewise.
21138 (NOTE_EXPECTED_VALUE): Likewise.
21139 (NOTE_LINE_NUMBER): Likewise.
21140 (LABEL_NAME): Likewise.
21141 (LABEL_NUSES): Likewise.
21142 (LABEL_ALTERNATE_NAME): Likewise.
21143 (ADDRESSOF_DECL): Likewise.
21144 (JUMP_LABEL): Likewise.
21145 (LABEL_NEXTREF): Likewise.
21146 (REGNO): Likewise.
21147 (ORIGINAL_REGNO: Likewise.
21148 (HARD_REGISTER_NUM_P): Add parenthesis.
21149 (SUBREG_REG): Whitespace.
21150 (SUBREG_BYTE): Likewise.
21151 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
21152 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
21153 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
21154 (ASM_OPERANDS_INPUT_VEC): Likewise.
21155 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
21156 (ASM_OPERANDS_INPUT): Likewise.
21157 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
21158 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
21159 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
21160 (ASM_OPERANDS_INPUT_MODE): Likewise.
21161 (ASM_OPERANDS_SOURCE_FILE): Likewise.
21162 (ASM_OPERANDS_SOURCE_LINE): Likewise.
21163 (MEM_SET_IN_STRUCT_P): Minor reformat.
21164 (TRAP_CONDITION): Whitespace.
21165 (TRAP_CODE): Likewise.
21166 (COND_EXEC_TEST): Likewise.
21167 (COND_EXEC_CODE): Likewise.
21168 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
21169 (PHI_NODE_P): Add parenthesis.
21170 (plus_constant): Whitespace and add parenthesis.
21171
21172 2002-01-03 Kazu Hirata <kazu@hxi.com>
21173
21174 * config/avr/avr.c: Fix comment typos.
21175 * config/c4x/c4x.md: Likewise.
21176 * config/dsp16xx/dsp16xx.h: Likewise.
21177 * config/dsp16xx/dsp16xx.md: Likewise.
21178 * config/i386/i386.md: Likewise.
21179 * config/ia64/ia64.c: Likewise.
21180 * config/m32r/m32r.h: Likewise.
21181 * config/m68hc11/m68hc11.md: Likewise.
21182 * config/mmix/mmix.c: Likewise.
21183 * config/mn10200/mn10200.c: Likewise.
21184 * config/romp/romp.c: Likewise.
21185 * config/sh/sh.c: Likewise.
21186 * config/stormy16/stormy16.c: Likewise.
21187 * config/stormy16/stormy16.h: Likewise.
21188 * config/stormy16/stormy16.md: Likewise.
21189
21190 2002-01-03 Graham Stott <grahams@redhat.com>
21191
21192 * loop.h: Update copyright date.
21193 (LOOP_MOVABLES): Fix typo.
21194 (LOOP_REGS): Likewise.
21195 (LOOP_IVS): Likewise.
21196
21197 2002-01-03 Graham Stott <grahams@redhat.com>
21198
21199 * cppinit.c: Update copyright date.
21200 Don't include output.h
21201 * Makefile.in: Update copyright date.
21202 Update dependency.
21203
21204 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
21205
21206 PR c/5226
21207 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
21208 (-pthread) Add to RS/6000 options.
21209
21210 2002-01-02 Kazu Hirata <kazu@hxi.com>
21211
21212 * except.c: Fix comment typos.
21213 * loop.c: Likewise.
21214 * varasm.c: Likewise.
21215 * doc/tm.texi: Fix a typo.
21216
21217 2002-01-02 Jakub Jelinek <jakub@redhat.com>
21218
21219 * c-typeck.c (output_init_element): Allow initializing static storage
21220 duration objects with compound literals.
21221
21222 2002-01-02 Richard Henderson <rth@redhat.com>
21223
21224 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
21225 after abusing it.
21226
21227 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21228
21229 * gcc.c (default_compilers): Const-ify.
21230 * mips-tdump.c (stab_names): Likewise.
21231 * mips-tfile.c (map_coff_types, map_coff_storage,
21232 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
21233 pseudo_ops_t, pseudo_ops): Likewise.
21234 * protoize.c (default_include): Likewise
21235
21236 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
21237 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
21238 Add array size in declaration.
21239 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
21240 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
21241 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
21242 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
21243 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
21244 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
21245 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
21246 emtens, make_nan): Const-ify.
21247 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
21248 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
21249
21250 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
21251
21252 * config.gcc (ia64-*-*): Set extra_headers.
21253 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
21254 * config/alpha/t-osf: Remove.
21255 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
21256
21257 2002-01-02 David Edelsohn <edelsohn@gnu.org>
21258
21259 * config/rs6000/t-aix43: Revert previous change.
21260
21261 2002-01-02 Jason Merrill <jason@redhat.com>
21262
21263 * c-decl.c (c_expand_body): Call outlining_inline_function when
21264 emitting an inline function out of line.
21265
21266 2002-01-02 Richard Henderson <rth@redhat.com>
21267
21268 * dwarf2out.c (limbo_die_node): Add created_for member.
21269 (new_die): New argument created_for. Update all callers.
21270 (mark_limbo_die_list): New.
21271 (dwarf2out_init): Register limbo_die_list as a root.
21272 (dwarf2out_finish): Force insert limbo dies into their function
21273 context.
21274
21275 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
21276
21277 PR c++/5089
21278 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
21279
21280 2002-01-02 Kazu Hirata <kazu@hxi.com>
21281
21282 * config/h8300/fixunssfsi.c: Update copyright.
21283 Fix comment typos.
21284 Fix formatting.
21285 * config/h8300/h8300.c: Update copyright.
21286 Eliminate warnings.
21287
21288 2002-01-02 Kazu Hirata <kazu@hxi.com>
21289
21290 * config/romp/romp.c: Fix comment formatting.
21291 * config/romp/romp.h: Likewise.
21292 * config/romp/romp.md: Likewise.
21293 * config/s390/s390.c: Likewise.
21294 * config/stormy16/stormy16.c: Likewise.
21295 * config/stormy16/stormy16.h: Likewise.
21296
21297 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
21298
21299 * c-common.h (genrtl_expr_stmt_value): Declare.
21300 * c-semantics.c (genrtl_goto_stmt): Redirect to...
21301 (genrtl_goto_stmt_value): ... this new function. Pass new
21302 argument down to expand_expr_stmt_value, taking
21303 TREE_ADDRESSABLE into account.
21304 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
21305 STMT_EXPR as addressable, i.e., one whose result we want.
21306 * expr.c (expand_expr): Don't save expression statement value
21307 of labeled_blocks or loop_exprs.
21308 * stmt.c (expand_expr_stmt): Redirect to...
21309 (expand_expr_stmt_value): ... this new function. Use new
21310 argument to tell whether to save expression value.
21311 (expand_end_stmt_expr): Reset last_expr_type and
21312 last_expr_value if we don't have either.
21313 * tree-inline.c (declare_return_variable): Mark its use
21314 statement as addressable.
21315 * tree.h: Document new use of TREE_ADDRESSABLE.
21316 (expand_expr_stmt_value): Declare.
21317
21318 2002-01-01 Tom Rix <trix@redhat.com>
21319
21320 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
21321 rs6000_emit_allocate_stack.
21322
21323 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
21324
21325 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
21326 ${srcdir}/ginclude/ to every entry in extra_headers.
21327 * configure: Regenerate.
21328 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
21329 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
21330 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
21331 * ginclude/proto.h: Rename to config/convex/proto.h.
21332
21333 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21334
21335 * attribs.c (handle_vector_size_attribute): Use host_integerp
21336 and tree_int_cst; remove warnings.
21337 * caller-save.c (insert_restore): Add cast to get rid of warning.
21338 (insert_save): Likewise.
21339 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
21340 * regmove.c (find_matches): Add temporary var to kill a warning.
21341
21342 2002-01-01 Douglas B Rupp <rupp@gnat.com>
21343
21344 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
21345 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
21346 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
21347 (vms-dwarf2eh.o): Add Makefile rule.
21348 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
21349 * config/alpha/vms-dwarf2eh.asm: New file.
21350
21351 * gcc.c (delete_if_ordinary): Delete all versions.
21352
21353 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
21354
21355 * config/mmix/mmix.md: Update FIXME to not mention
21356 define_constants.
21357 (MMIX_rJ_REGNUM): New define_constants constant.
21358 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
21359 "*movdicc_real"): Adjust contraints formatting.
21360 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
21361 for branch prediction.
21362 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
21363 output template.
21364 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
21365 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
21366 number. Delete related FIXMEs.
21367 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
21368 from number to MMIX_rJ_REGNUM.
21369 (TARGET_MASK_BRANCH_PREDICT): New.
21370 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
21371 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
21372 value. Add -mbranch-predict and -mno-branch-predict.
21373 (TARGET_VERSION): Drop date.
21374 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
21375 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
21376 for finding out global symbols.
21377 (mmix_asm_output_labelref): Revert condition for global symbol.
21378 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
21379 (mmix_print_operand_punct_valid_p): A '+' is valid.
21380
21381 See ChangeLog.6 for earlier changes.