1 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
3 * config/ns32k/netbsd.h: Update copyright years.
4 (TARGET_OS_CPP_BUILTINS): Define.
5 (CPP_PREDEFINES): Remove.
6 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
7 (TARGET_CPU_CPP_BUILTINS): Define.
9 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
11 * emit-rtl.c: Likewise.
19 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
21 * config/h8300/elf.h: Fix formatting.
22 * config/h8300/rtems.h: Likewise.
24 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
26 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
28 2002-06-02 Tom Tromey <tromey@redhat.com>
30 * fixinc/fixincl.x: Rebuilt.
31 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
33 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
36 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
37 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
41 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
43 * final.c (final): Allow notes to not have computed addresses;
44 kill no longer needed STACK_REGS ifdef.
46 2002-06-02 Richard Henderson <rth@redhat.com>
48 * gcse.c (bypass_conditional_jumps): Fix typo last change.
50 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
52 * loop.c (emit_prefetch_instructions): Properly place the address
55 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
57 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
58 (set_block_for_insn): Turn into macro.
59 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
60 * cfglayout.c (insn_scopes): Kill.
61 (scope_to_insns_initialize): Do not use insn_scopes.
62 (scope_to_insns_finalize): Likewise.
63 (duplicate_insn_chain): Likewise.
64 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
65 * cfgrtl.c (basic_block_for_insn): Kill.
66 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
67 (create_basic_block_structure): Use reorder_insns.
68 (compute_bb_for_insn): Do not use basic_block_for_insn.
69 (merge_blocks_nomove): Likewise.
70 (update_bb_for_insn): Likewise.
71 (verify_flow_info): Likewise.
72 (set_block_for_insn): Kill.
73 * combine.c (try_combine): Update gen_rtx_INSN call.
74 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
75 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
77 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
78 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
80 (emit_insns_after): Simplify.
81 (emit_copy_of_insn_after): Copy scope.
82 * final.c (final_start_function): Lower scopes.
83 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
84 * integrate.c (copy_insn_list): Cope scopes.
85 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
86 * loop.c (loop_optimize): Do not care block notes.
87 * print-rtl.c (print_rtx): Print BB.
88 * recog.c (apply_change_group): Simplify.
89 * rtl.c (copy_rtx): Handle 'B'.
90 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
91 * rtl.h (Field accessors): Update indexes.
92 * sched-ebb.c (schedule_ebbs): Do not lower notes.
93 * sched-rgn.c (schedule_insns): Likewise.
94 * toplev.c (rest_of_compilation): Lower notes.
95 * unroll.c (unroll_loop): Do not care scoping notes.
96 (copy_loop_body): Copy scopes.
98 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
101 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
103 * rtems.h: Similarly.
104 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
105 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
106 (TARGET_CPU_CPP_BUILTINS): Use.
108 2002-06-02 Richard Henderson <rth@redhat.com>
110 * alias.c: Include target.h.
111 (mark_constant_function): Use targetm.binds_local_p instead
112 of checking TREE_PUBLIC ourselves.
113 * Makefile.in (alias.o): Add TARGET_H.
115 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
117 * c-lex.c: Update copyright and file description.
119 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
121 * config/fr30/fr30.h: Update to new CPP macros.
123 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
125 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
127 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
128 Zack Weinberg <zack@codesourcery.com>
130 * c-common.c (c_common_init): Override cpplib's default
131 warn_long_long setting.
132 * c-lex.c (lex_number): Replace with interpret_integer,
133 interpret_float, narrowest_unsigned_type and
134 narrowest_signed_type, taking advantage of the new
135 cpplib functionality.
136 * cpperror.c (_cpp_begin_message): If a warning is turned
137 into an error, avoid printing "warning:".
138 * cppexp.c (cpp_num_sign_extend): New.
139 * cppinit.c: Update comment.
140 * cpplib.h (cpp_num_sign_extend): New.
141 * tree.h: Update comment.
143 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
145 * diagnostic.h (struct diagnostic_context): Add new member
147 (internal_error_function): Remove declaration.
148 * diagnostic.c (internal_error_function): Remove definition..
149 (internal_error): Adjust use.
151 2002-06-02 Richard Henderson <rth@redhat.com>
153 * rtl.h (CC0_P): New.
154 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
155 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
156 (bypass_block): Save old dest block for dump text.
157 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
158 Allow only true SET insns, not single_set.
160 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
162 * diagnostic.c (diagnostic_finish): Rename to output_flush.
163 (clear_disgnostic_info): Rename to output_clear_data. Use false
164 instead of 0 for boolean value.
165 Adjust function call throughout.
167 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
169 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
170 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
172 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
174 * d30v.h (CPP_PREDEFINES): Replace with
175 (TARGET_CPU_CPP_BUILTINS): New.
177 2002-06-02 Roger Sayle <roger@eyesopen.com>
179 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
181 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
183 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
185 2002-06-02 Richard Henderson <rth@redhat.com>
187 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
189 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
191 Support for C++ constructors/destructors.
192 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
193 instead of looping if main() returns.
194 (asm_file_start): Output global symbols that cause .data and .bss
195 initialization code to be linked in, unconditionally for now.
196 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
197 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
198 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
200 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
201 (__tablejump__): New.
202 (__do_copy_data, __do_clear_bss): New.
203 (__do_global_ctors, __do_global_dtors): New.
204 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
207 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
209 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
210 (CPP_SPEC, CPP_PREDEFINES): Kill.
211 * c4x/rtems.h (CPP_PREDEFINES): Kill.
212 (TARGET_OS_CPP_BUILTINS): New.
214 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
216 * Makefile.in (tracer.o): New.
217 * params.def (TRACER_*): New options.
218 * rtl.h (tracer): Declare.
219 * timevar.def (TV_TRACER): New.
220 * toplev.c (dump_file_index): Add DFI_tracer.
221 (dump_file_info): Add tracer.
223 (lang_indepdenent_options): Add tracer.
224 (rest_of_compilation): Call tracer.
225 * tracer.c: New file.
226 * invoke.texi (-ftracer): Document.
227 (--param tracer-*): Document.
229 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
231 * tree-inline.c (expand_call_inline): Make the statement
232 expression we generate have a COMPOUND_STMT.
234 2002-06-01 Roger Sayle <roger@eyesopen.com>
236 * gcse.c (cprop_cc0_jump): Function deleted.
237 (cprop_jump): Take an additional argument which is the possibly
238 NULL cc setting insn immediately before the conditional jump.
239 When a MODE_CC set is present, substitute it into the JUMP_INSN
240 before attempting the constant propagation.
241 (cprop_insn): Recognize cc setters followed by conditional jumps
242 as a special case. Use cprop_jump instead of cprop_cc0_jump.
243 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
244 (find_bypass_set): New function based upon find_avail_set used by
245 cprop, but finds constant expressions available at the end of
247 (bypass_block): New function. Given a basic block that begins
248 with a conditional jump and multiple incoming edges, perform
249 the jump bypass optimization.
250 (bypass_conditional_jumps): New function. Call bypass_block with
251 each suitable basic block in the CFG using a simple single pass.
253 2002-06-01 Roger Sayle <roger@eyesopen.com>
255 * tree.c (real_minus_onep): New function to test for -1.0.
256 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
258 2002-06-01 Roger Sayle <roger@eyesopen.com>
260 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
261 and "!p && !q" into "(p|q) == 0" under suitable conditions.
263 2002-06-01 Andreas Jaeger <aj@suse.de>
265 * cppexp.c (cpp_classify_number): Cast precission to int for
266 correct printf format.
268 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
270 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
271 expected, but don't really exist: atmega83, atmega85, attiny10.
272 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
273 emulations for all devices.
274 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
275 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
277 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
279 * config/h8300/h8300-protos.h: Add a prototype for
280 h8300_shift_needs_scratch_p.
281 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
282 * config/h8300/h8300.h (OK_FOR_R): New.
283 (OK_FOR_S): Likewise.
284 (OK_FOR_T): Likewise.
285 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
286 * config/h8300/h8300.md (anonymous shift patterns): Use
287 constraints R, S, and T.
289 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
291 * basic-block.h (struct basic_block_def): New field loop_father.
292 (BB_VISITED): New flag.
293 (struct loop): New field pred, removed field shared.
294 (struct loops): New field parray.
295 (LOOP_EXITS_DOMS): Removed.
296 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
297 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
298 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
299 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
300 verify_loop_structure): Declare.
301 * cfg.c (entry_exit_blocks): Initialize loop_father field.
302 * cfganal.c (dfs_enumerate_from): New function.
303 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
304 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
305 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
306 flow_loop_dump, flow_loops_dump, flow_loops_free,
307 flow_loop_tree_node_add, flow_loop_level_compute,
308 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
309 flow_loop_outside_edge_p): Modified for new infrastructure.
310 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
311 redirect_edge_with_latch_update, flow_loop_free): New static functions.
312 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
313 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
314 find_common_loop, verify_loop_structure, loop_latch_edge,
315 loop_preheader_edge): New functions.
316 (flow_loops_cfg_dump): Do not show dominators, as this information
317 does not remain up to date long.
318 (flow_loops_find): Store results in new format.
319 * predict.c (propagate_freq, estimate_probability,
320 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
323 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
325 * except.c (nothrow_function_p): Walk epilogue delay list
326 checking the insn, not the chain for potential throws.
328 2002-05-31 Zack Weinberg <zack@codesourcery.com>
330 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
331 (install): Refer to install-cpp directly.
332 (uninstall-cpp): Folded into uninstall rule.
333 * configure.in: Delete all code relating to --disable-cpp.
334 * configure: Regenerate.
335 * config/t-install-cpp: Delete.
337 2002-05-31 Richard Henderson <rth@redhat.com>
339 * configure.in (HAVE_AS_TLS): Add alpha tests.
340 * configure: Rebuild.
341 * config/alpha/alpha.c (TARGET_AS_TLS): New.
342 (alpha_tls_size, alpha_tls_size_string): New.
343 (overide_options): Set it. Always install machine_status hooks.
344 (input_operand): Accept got tls predicates.
345 (local_symbol_p): Merge into ...
346 (local_symbolic_operand): ... here. Reject tls symbols.
347 (global_symbolic_operand): Likewise.
348 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
349 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
350 (tp16_symbolic_operand, tp32_symbolic_operand): New.
351 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
352 (alpha_encode_section_info): Handle TLS symbols.
353 (alpha_strip_name_encoding): Likewise.
354 (alpha_legitimate_address_p): Likewise.
355 (alpha_legitimize_address): Likewise.
356 (alpha_expand_mov): Early exit to avoid nop moves.
357 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
358 (alpha_init_machine_status, alpha_mark_machine_status,
359 alpha_free_machine_status): Always define.
360 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
361 (print_operand, print_operand_address): Add TLS relocs.
362 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
363 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
364 (TARGET_SWITCHES): Add -mtls-kernel.
365 (alpha_tls_size, alpha_tls_size_string): New.
366 (TARGET_OPTIONS): Add -mtls-size=.
367 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
368 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
369 (ASM_OUTPUT_LABELREF): Skip %.
370 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
371 (PREDICATE_CODES): Update.
372 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
373 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
374 UNSPEC_TP, UNSPECV_SET_TP): New.
375 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
376 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
377 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
378 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
379 (call_value_osf_2_er): Accept anything as op4.
380 * config/alpha/alpha-protos.h: Update.
381 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
383 2002-05-31 Zack Weinberg <zack@codesourcery.com>
385 * cppinit.c (append_include_chain): Always pay attention to
386 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
389 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
391 * target.h: Fix formatting.
392 * timevar.h: Likewise.
394 * toplev.c: Likewise.
395 * toplev.h: Likewise.
397 * tree-dump.h: Likewise.
399 * tree-inline.h: Likewise.
400 * unroll.c: Likewise.
401 * unwind-dw2.c: Likewise.
402 * unwind-dw2-fde.c: Likewise.
403 * unwind-dw2-fde-glibc.c: Likewise.
404 * unwind-dw2-fde.h: Likewise.
405 * unwind.h: Likewise.
406 * unwind-sjlj.c: Likewise.
407 * varasm.c: Likewise.
408 * varray.h: Likewise.
409 * vmsdbg.h: Likewise.
410 * vmsdbgout.c: Likewise.
411 * xcoffout.h: Likewise.
413 2002-05-31 Igor Shevlyakov <igor@microunity.com>
415 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
416 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
418 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
420 * gcc.c (cpp_unique_options): Remove "-d" options.
421 (cpp_debug_options): New spec string.
422 (default_compilers): Use it.
423 * objc/lang-specs.h: Likewise.
425 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
427 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
428 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
429 * gcc/mklibgcc.in: Likewise.
430 * gcc/config/arc/t-arc: Likewise.
431 * gcc/configure.in: Likewise.
432 * gcc/configure: Regenerate.
434 2002-05-31 Stan Shebs <shebs@apple.com>
435 Turly O'Connor <turly@apple.com>
437 * c-decl.c (struct binding_level): Change int field n_incomplete
438 to tree list incomplete_list.
439 (clear_binding_level): Init field with NULL.
440 (pushdecl): Add incomplete type to list.
441 (mark_binding_level): Mark the incomplete list.
442 (finish_struct): Scan the incomplete list for types instead
443 of all decls in the current binding level.
445 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
447 * pa.c (output_millicode_call): Add missing '%' characters.
448 (output_call): Likewise.
450 2002-05-31 David Edelsohn <edelsohn@gnu.org>
452 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
453 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
455 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
457 * varasm.c (mark_constant_pool): Walk epilogue delay list
458 checking the insn, not the chain for potential constants.
460 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
462 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
464 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
466 * i386.c (classify_argument): Properly handle base types.
468 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
469 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
472 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
474 * gcse.c (gcse_emit_move_after): New.
475 (pre_delete, hoist_store): Use it.
477 * reload1.c (emit_input_reload_insns): Use constrain_operands
478 instead of constraint_accepts_reg_p to verify optimization.
479 (constraint_accepts_reg_p): Kill
481 * reload1.c (reload_cse_delete_noop_set): Kill.
482 (reload_cse_simplify): use delte_insn_and_edges.
484 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
486 * cfgloop.c (flow_loops_find): Initialize first and last fields
489 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
491 * c-common.c (builtin_define_std): Correct logic.
493 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
495 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
496 (output_call): Likewise.
498 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
500 * pa.c: Move output.h include after tree.h include.
501 (pa_asm_output_mi_thunk): Constify identifier lab.
503 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
505 * config/ns32k/ns32k.h: Define named constants for the
506 bits in target_flags and use them.
507 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
509 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
511 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
512 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
513 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
514 default scheduling model.
515 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
516 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
517 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
518 * doc/install.texi (hppa*-*-*): Document default scheduling.
520 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
522 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
524 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
526 * config.gcc (ns32k-*-netbsd*): Set tm_file to
527 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
528 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
529 netbsd.h, or netbsd-aout.h.
531 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
533 * longlong.h (count_trailing_zeros): Add missing \, and clean up
534 whitespace in __ns32000__ case.
536 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
538 * expr.c (expand_expr): Output partially zeroed out vectors with
541 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
543 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
545 (shl*-*-netbsdelf*): New targets.
546 * config/sh/netbsd-elf.h: New file.
548 2002-05-30 Richard Henderson <rth@redhat.com>
549 Eric Botcazou <ebotcazou@multimania.com>
552 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
553 to unsigned int for op1 comparisons. Use gen_int_mode.
555 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
557 * expmed.c (const_mult_add_overflow_p): New.
558 * expr.h: Declare it.
559 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
560 Don't eliminate the biv if the giv has a constant multiplier and
561 the rhs argument of the comparison does satisfy the predicate.
562 Use expand_mult_add to compute the replacement constant.
564 2002-05-30 Osku Salerma <osku@iki.fi>
566 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
567 (c_common_get_alias_set): Handle it.
568 * doc/extend.texi: Document it.
570 2002-05-30 Richard Henderson <rth@redhat.com>
572 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
573 * toplev.c (process_options): Don't check it.
574 * doc/tm.texi: Don't document it.
575 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
576 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
577 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
578 frame pointer optimization if current_function_profile.
580 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
582 * langhooks.c: Fix formatting.
583 * langhooks.h: Likewise.
585 * libgcc2.c: Likewise.
587 * local-alloc.c: Likewise.
591 2002-05-30 Marc Espie <espie@openbsd.org>
593 * config.gcc (sparc64-*-openbsd*): New.
594 * config/sparc/openbsd1-64.h: New.
595 * config/sparc/openbsd64.h: New.
597 2002-05-30 Jeff Law <law@redhat.com>
599 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
600 a dead insn with a REG_RETVAL note when the entire libcall is not
601 dead and remove the associated REG_LIBCALL note at the same time.
603 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
605 * lcm.c (output.h): #include.
606 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
607 as an ordinary block.
608 (optimize_mode_switching): Don't pretend that the exit block is
609 an ordinary block, or handle sucessors of entry block specially.
610 Instead, split edges from entry block and to exit block, and
611 put a computing definition on the thus gained post-entry-block,
612 and a need on the pre-exit-block.
614 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
616 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
617 * rtl.texi: Document 'B'
619 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
621 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
623 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
625 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
627 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
628 const0_rtx instead of NULL_RTX when in error.
629 (altivec_expand_abs_builtin): Same.
630 (rs6000_expand_binop_builtin): Same.
631 (altivec_expand_predicate_builtin): Same.
632 (altivec_expand_stv_builtin): Same.
633 (rs6000_expand_ternop_builtin): Same.
634 (altivec_expand_builtin): Same.
636 2002-05-29 David S. Miller <davem@redhat.com>
638 * rtl.h (clear_emit_caches): Delete.
639 * integrate.c (output_inline_function): Don't call it.
640 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
641 (clear_emit_caches): Delete definition.
642 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
644 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
646 * config/mmix/mmix.c: Include real.h.
647 (mmix_constant_address_p): Remove redundant test before switch.
649 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
651 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
652 only if not already defined.
654 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
656 * config/h8300/h8300-protos.h: Remove prototypes for
657 ok_for_bclr and small_power_of_two.
658 * config/h8300/h8300.c (small_power_of_two): Remove.
659 (ok_for_blcr): Likewise.
660 (fix_bit_operand): Make WHAT deal with an integer instead of a
661 constraint character.
662 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
663 (CONST_OK_FOR_P): Likewise.
664 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
665 CONST_OK_FOR_P any more.
666 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
671 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
673 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
674 (CPP_PREDEFINES): Make sure this is undefined.
675 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
676 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
677 or -U__MIPSEB__ before defining one or the other. Instead,
678 use %(subtarget_endian_default) if neither -EB nor -EL are
680 (SUBTARGET_EXTRA_SPECS): Define.
681 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
684 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
686 * doc/md.texi (Patterns): Note pattern condition pitfall
689 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
691 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
692 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
693 ternary operations from here...
694 (rs6000_expand_builtin): ...to here.
695 New argument expandedp.
696 Change all instances of altivec_expand_binop_builtin to
697 rs6000_expand_binop_builtin.
698 (altivec_expand_unop_builtin): Rename to
699 rs6000_expand_unop_builtin.
700 (altivec_expand_binop_builtin): Rename to
701 rs6000_expand_binop_builtin.
702 (altivec_expand_ternop_builtin): Rename to
703 rs6000_expand_ternop_builtin.
705 2002-05-29 Richard Henderson <rth@redhat.com>
707 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
708 (TARGET_BI_ARCH): Likewise.
709 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
710 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
711 (TARGET_64BIT_DEFAULT): Default to 0.
712 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
714 2002-05-29 Richard Henderson <rth@redhat.com>
716 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
717 (get_pc_thunk_name): New.
718 (output_set_got): Use it.
719 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
720 into linkonce sections.
722 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
724 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
725 (CPP_PREDEFINES): Make sure this is undefined.
726 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
727 (CPP_SUBTARGET_SPEC): Don't provide different versions for
728 default-32 and default-64. Just always use %(netbsd_cpp_spec).
729 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
730 cpp_subtarget_spec64. Add netbsd_cpp_spec.
731 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
732 (CPP_PREDEFINES): Make sure this is undefined.
733 (SUBTARGET_EXTRA_SPECS): Define.
734 (CPP_SPEC): Use %(netbsd_cpp_spec).
736 2002-05-29 Jeff Law <law@redhat.com>
738 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
740 * flow.c (propagate_one_insn): Do not remove a dead insn if it
741 contains a REG_RETVAL note.
743 * haifa-sched (sched_analyze): Remove another useless clearing
744 of SCHED_GROUP_P I missed yesterday.
746 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
747 * pa.c (pa_asm_output_mi_thunk): New function.
748 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
750 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
751 Marek Michalkiewicz <marekm@amelek.gda.pl>
753 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
754 (avr_asm_only_p): Make non-static.
755 (enum avr_arch): Remove.
756 (avr_arch_types): New.
757 (avr_mcu_types): Update.
758 (avr_override_options): Use avr_arch_types table instead of switch.
759 * avr.h (CPP_PREDEFINES): Die.
760 (avr_base_arch_macro, avr_extra_arch_macro): New.
761 (TARGET_CPU_CPP_BUILTINS): New.
762 (CPP_SPEC, EXTRA_SPECS): Simplify.
763 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
766 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
768 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
769 NETBSD_OS_CPP_BUILTINS_AOUT.
770 (SUBTARGET_EXTRA_SPECS): Define.
771 (CPP_SPEC): Use %(netbsd_cpp_spec).
773 2002-05-29 Richard Henderson <rth@redhat.com>
775 * config/i386/i386.c (ix86_output_function_epilogue): New.
776 (TARGET_ASM_FUNCTION_EPILOGUE): New.
777 (pic_label_name): Remove.
778 (pic_labels_used): New.
779 (ix86_asm_file_end): Emit one pc load stub for each register used.
780 (output_set_got): Generate deep pc load to any register.
781 (ix86_select_alt_pic_regnum): New.
782 (ix86_save_reg): Don't save pic register if we can find a valid
783 call-clobbered replacement.
784 (ix86_expand_prologue): If we found a valid replacement, renumber
785 pic_offset_table_rtx.
786 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
787 pic_offset_table_rtx after reload.
788 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
789 * config/i386/i386.md (set_got): Make insn, not expander.
790 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
792 2002-05-29 Richard Henderson <rth@redhat.com>
794 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
795 alignment for alloca.
797 2002-05-29 Richard Henderson <rth@redhat.com>
799 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
800 (print_operand_address): Only add rip for symbolic addresses
801 for which we do not have another relocation type.
803 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
805 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
806 (EXTRA_SPECS): Add netbsd_cpp_spec.
807 (CPP_SPEC): Use %(netbsd_cpp_spec).
808 (CPP_PREDEFINES): Remove.
809 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
810 (EXTRA_SPECS): Define.
811 (CPP_SPEC): Use %(netbsd_cpp_spec).
812 (CPP_PREDEFINES): Remove.
814 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
817 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
820 2002-05-29 Eric Christopher <echristo@redhat.com>
822 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
823 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
825 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
827 * config/fr30/fr30.md: Remove previous restriction on splits.
828 Enforce conformance through gen_lowpart and cont_int_operand.
829 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
830 as the assembler does not support ".bss".
832 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
834 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
835 (CPP_PREDEFINES): Remove.
836 (SUBTARGET_EXTRA_SPECS): Define.
837 (CPP_SPEC): Use %(netbsd_cpp_spec).
838 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
839 (CPP_PREDEFINES): Remove.
840 (SUBTARGET_EXTRA_SPECS): Define.
841 (CPP_SPEC): Use %(netbsd_cpp_spec).
842 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
843 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
844 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
846 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
848 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
849 Zack Weinberg <zack@codesourcery.com>
851 * cppexp.c (cpp_num): Move to cpplib.h.
853 (interpret_float_suffix, interpret_int_suffix): New.
854 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
855 (cpp_classify_number, cpp_interpret_integer): New.
856 (interpret_number): Remove.
857 (eval_token): Update to use new routines.
858 * cpphash.h (cpp_num_part): Move to cpplib.h.
859 * cppinit.c (cpp_post_options): Set warn_long_long.
860 * cpplib.h (struct cpp_options): Add warn_long_long.
861 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
862 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
863 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
864 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
865 cpp_interpret_integer): New.
867 2002-05-29 Joel Sherrill <joel@OARcorp.com>
869 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
871 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
873 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
874 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
875 (CPP_SUBTARGET_SPEC): Define.
876 (SUBTARGET_EXTRA_SPECS): Define.
879 2002-05-29 Chris Lattner <sabre@nondot.org>
881 * ssa.c (rename_insn_1): Rename uses of undefined registers to
882 prevent confusion if/when the register is defined.
884 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
887 * config/cris/cris.md: Fix typos and thinkos in comments.
888 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
890 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
891 ("*mov_sideqi_mem"): Similar, but for operand 3.
892 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
893 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
894 Remove spurious mode specifier on operand 2.
896 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
898 * config/h8300/h8300-protos.h: Remove the prototype for
900 Add prototypes for single_one_operand and single_zero_operand.
901 * config/h8300/h8300.c (o_operand): Remove.
902 (single_one_operand): New.
903 (single_zero_operand): Likewise.
904 (print_operand): For 'V' operand, and the operand with 0xff.
905 For 'V' and 'W' operands, do not and the bit position with 7.
906 * config/h8300/h8300.md (various anonymous patterns): Replace
907 use of exact_log2 with single_one_operand/single_zero_operand.
909 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
911 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
913 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
915 * config/s390/s390.c (legitimate_pic_operand_p): Do not
916 accept symbolic LARL operands.
917 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
920 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
922 * config/s390/s390.md (cmpstr_64/31): Mark whole
923 input registers as used.
925 2002-05-28 Richard Henderson <rth@redhat.com>
927 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
928 not current_function_uses_pic_offset_table and
929 current_function_uses_const_pool; examine current_function_profile.
930 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
931 input to blockage if needed.
932 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
933 (legitimize_pic_address): Likewise. Set regs_ever_live for
934 pic_offset_table_rtx when invoked during reload.
935 * config/i386/i386.h (FINALIZE_PIC): Remove.
936 * config/i386/i386.md (tablejump): Reformat. Do not set
937 current_function_uses_pic_offset_table.
938 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
939 (blockage): Accept anything as operand 0.
941 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
943 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
944 common CPP built-ins for all NetBSD a.out targets.
945 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
946 common CPP built-ins for all NetBSD ELF targets.
947 * config/netbsd.h: Add missing notice.
948 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
949 for all NetBSD targets.
950 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
951 for all NetBSD targets using an LP64 code model.
952 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
955 2002-05-28 Richard Henderson <rth@redhat.com>
957 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
958 update if UPDATE_LIFE_LOCAL.
960 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
962 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
964 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
965 Jason R. Thorpe <thorpej@wasabisystems.com>
967 config/sh reorganization to factor out endianness and coff:
969 * config/sh/little.h: New file.
970 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
971 defined, define to 0 to select big-endian.
972 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
973 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
974 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
975 * config/sh/t-be: New file.
976 * config/sh/t-le: New file.
978 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
979 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
980 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
981 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
982 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
983 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
984 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
985 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
986 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
987 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
988 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
989 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
990 (LINK_SPEC): Define to SH_LINK_SPEC.
991 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
992 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
993 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
994 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
995 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
996 * config/sh/coff.h: New file.
997 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
998 (TARGET_OBJFMT_CPP_BUILTINS): Define.
999 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
1000 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
1001 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
1002 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
1003 (PTRDIFF_TYPE): Likewise.
1004 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
1005 (CPP_PREDEFINES): Don't define.
1006 (TARGET_OBJFMT_CPP_BUILTINS): Define.
1007 (LINK_SPEC): Define to SH_LINK_SPEC.
1008 (LINK_EMUL_PREFIX): Redefine.
1009 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
1010 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
1011 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
1012 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
1013 (TARGET_OS_CPP_BUILTINS): Define.
1014 (TARGET_DEFAULT): Redefine.
1015 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
1016 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
1017 (LINK_SPEC): Don't redefine.
1018 (LINK_DEFAULT_CPU_EMUL): Redefine.
1019 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
1020 * sh.c (sh_asm_named_section): Don't declare / define.
1021 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
1022 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
1023 (sh64-*-elf* tm_file): Likewise.
1024 (sh-*-rtemself* tm_file): Likewise.
1025 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
1026 (sh-*-linux* tmake_file): Add sh/t-le.
1027 (sh-*-rtems* tm_file): Add sh/coff.h
1028 (sh-*-* tm_file): Likewise.
1030 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1032 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
1033 CONSTANT_POOL_ADDRESS_P.
1035 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
1037 2002-05-28 David Edelsohn <edelsohn@gnu.org>
1038 Jeff Law <law@redhat.com>
1040 * optabs.c (expand_binop): Fix nwords sign warnings.
1041 generate pseudo for add_optab.
1043 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
1044 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
1046 2002-05-28 Marc Espie <espie@openbsd.org>
1048 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
1049 inherited from gas.h.
1050 (ASM_QUAD): Undef. OpenBSD does not support it.
1052 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
1054 * doc/install.texi (binaries): Change mingw binaries
1055 link to www.mingw.org.
1057 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1059 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
1061 2002-05-28 Richard Henderson <rth@redhat.com>
1063 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
1064 bottom alignment for leaf functions.
1066 2002-05-28 Zack Weinberg <zack@codesourcery.com>
1068 * config/pa/milli32.S, config/pa/lib1funcs.asm,
1069 config/sparc/sol2-g1.asm: Delete unused files.
1071 2002-05-28 Richard Henderson <rth@redhat.com>
1073 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
1075 * flow.c (calculate_global_regs_live): Rename call_used to
1076 invalidated_by_call. Initialize from regs_invalidated_by_call
1077 instead of call_used_regs.
1079 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
1082 2002-05-28 Zack Weinberg <zack@codesourcery.com>
1084 * tree.h: Don't include real.h.
1085 Forward-declare struct realvaluetype.
1086 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
1088 (TREE_REAL_CST_PTR): New accessor.
1089 (TREE_REAL_CST): Update.
1090 * real.h: Include machmode.h.
1091 (realvaluetype): Make it struct realvaluetype, not a typedef.
1092 (build_real): Prototype here.
1094 * tree.c: Include real.h.
1095 (build_real): Allocate the REAL_VALUE_TYPE as a separate
1096 object in GC memory, set TREE_REAL_CST_PTR to point to it.
1097 (build_real_from_int_cst): Use build_real.
1098 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
1101 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
1102 fold-const.c, print-tree.c, real.c: Include real.h.
1103 * Makefile.in: Update dependency lists.
1105 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1107 * basic-block.h (last_basic_block): Declare.
1108 (expunge_block_nocompact): Declaration removed.
1109 (compact_blocks): Declare.
1110 * cfg.c (last_basic_block): New variable.
1111 (expunge_block_nocompact): Removed.
1112 (expunge_block): Do not compact basic blocks.
1113 (compact_blocks): New.
1114 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
1116 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
1118 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
1119 real positions of blocks.
1120 (delete_unreachable_blocks): Simplified -- quadratic behavior now
1122 (cleanup_cfg): Compact blocks.
1123 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
1124 basic_block_info varray.
1125 (flow_delete_block): Comment update.
1126 (back_edge_of_syntactic_loop_p): Modify position check code.
1127 (verify_flow_info): Update checking.
1128 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
1129 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1130 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
1131 indices no longer change.
1132 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
1134 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
1135 * profile.c (branch_prob): Compact blocks.
1136 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
1139 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
1141 * config/h8300/h8300.md (two anonymous patterns): New.
1143 2002-05-28 David S. Miller <davem@redhat.com>
1145 * config/sparc/sparc.md (cpu): Tidy.
1146 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
1148 (in_call_delay): Delete reference to 'return' type.
1149 (eligible_for_return_delay, in_return_delay, define_delay
1150 referencing those): Delete.
1151 (rest of file): Use new type attributes as appropriate.
1152 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
1153 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
1154 * config/sparc/ultra1_2.md (us1_single): New reservation.
1155 (us1_ialuX): Likewise.
1156 * config/sparc/ultra3.md (us3_single): Likewise.
1157 (us3_ialuX): Likewise.
1158 (us3_imul, us3_idiv): Tweak.
1160 2002-05-28 Richard Henderson <rth@redhat.com>
1162 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
1165 2002-05-28 Richard Henderson <rth@redhat.com>
1167 * config.gcc: Obsolete mn10200.
1169 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
1171 * cppexp.c (interpret_number): Optimize for single-digit
1172 and less-than-half-precision cases.
1173 (num_trim, num_positive, num_div_op): Cast constants.
1175 2002-05-27 Bo Thorsen <bo@suse.de>
1177 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
1178 3.1 branch. The file was made by Jakub Jelinek.
1179 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1180 support so multilib doesn't break. And don't define this at all
1181 when -Dinhibit_libc is used.
1182 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
1183 * config/i386/t-linux64: Implement full multilib support. Patch
1184 originally done by Andreas Jaeger and Jakub Jelinek.
1186 2002-05-27 Roger Sayle <roger@eyesopen.com>
1188 * c-common.c: Add support for __attribute__((nothrow)) to specify
1189 that a function cannot throw an exception (using TREE_NOTHROW).
1190 (handle_nothrow_attribute): New function to process this attribute.
1192 * doc/extend.texi: Document the new nothrow function attribute.
1194 2002-05-27 H.J. Lu (hjl@gnu.org)
1196 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
1197 (num_positive): Likewise.
1198 (num_div_op): Likewise.
1200 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1202 * c-common.c (c_common_init): Always use intmax_t.
1204 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1206 * c-common.c (c_common_init): Use intmax_t for now.
1208 2002-05-24 Andrew Haley <aph@redhat.com>
1210 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
1211 if T is a boolean type.
1213 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1215 * basic-block.h (last_basic_block): Defined as synonym for
1217 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1218 flow_depth_first_order_compute, flow_preorder_transversal_compute,
1219 flow_dfs_compute_reverse_init): Replaced relevant occurences of
1220 n_basic_blocks with last_basic_block.
1221 * cfgbuild.c (make_edges): Likewise.
1222 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1223 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1224 * combine.c (combine_instructions): Likewise.
1225 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1226 iterative_dataflow_bitmap): Likewise.
1227 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1228 calc_idoms, idoms_to_doms): Likewise.
1229 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1231 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1232 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1233 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1234 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1235 delete_null_pointer_checks, compute_code_hoist_vbeinout,
1236 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1237 compute_store_table, build_store_vectors): Likewise.
1238 * haifa-sched.c (sched_init): Likewise.
1239 * ifcvt.c (if_convert): Likewise.
1240 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1241 pre_edge_lcm, compute_available, compute_nearerout,
1242 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1244 * predict.c (estimate_probability, process_note_prediction,
1245 note_prediction_to_br_prob): Likewise.
1246 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1247 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1248 * regrename.c (copyprop_hardreg_forward): Likewise.
1249 * resource.c (init_resource_info): Likewise.
1250 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1251 init_regions, schedule_insns): Likewise.
1252 * ssa-ccp.c (ssa_const_prop): Likewise.
1253 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1254 * ssa.c (compute_dominance_frontiers,
1255 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1257 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1258 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1261 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
1263 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1265 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1266 hoist_insn_after, hoist_insn_to_edge): New.
1268 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
1270 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1271 (PROP_FINAL): Include.
1272 * flow.c (life_analysis, update_life_info,
1273 init_propagate_block_info, mark_set_1, mark_used_rgs):
1274 Support SCAN_DEAD_STORE.
1276 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1278 * c-common.c (c_common_init): Set CPP arithmetic precision.
1279 * cppexp.c (cpp_num_part): Move typedef ...
1280 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1281 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1282 (sanity_checks): Update.
1284 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
1286 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1287 (mkheaders): New rule.
1288 (install-mkheaders): New rule.
1289 * configure.in (all_outputs): Add mkheaders.
1290 * configure: Regenerate.
1291 * mkheaders.in: New file.
1293 2002-05-26 Jakub Jelinek <jakub@redhat.com>
1295 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1297 2002-05-26 Andreas Jaeger <aj@suse.de>
1299 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1301 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
1303 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1304 right_shift): Remove.
1305 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1307 (struct op): Use cpp_num.
1308 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1309 num_part_mul, num_unary_op, num_binary_op, num_negate,
1310 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1311 num_div_op, num_lshift, num_rshift, append_digit): New.
1312 (interpret_number, parse_defined, eval_token, reduce): Update
1313 for two-integer arithmetic.
1314 (binary_handler): New typedef.
1316 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1317 (_cpp_parse_expr, reduce): Update to handle two-integers.
1318 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1320 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
1322 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1323 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1324 branch insn into account, do not assume 1.
1325 (avr_out_sbxx_branch): New function. Optimize cases of skipping
1326 over single word insn. Handle upper half of I/O space too.
1327 * config/avr/avr.md (*sbrx_branch): Use it.
1328 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1329 (*sbix_branch, *sbix_branch_bit7): Likewise.
1330 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1331 Use RTL peepholes to optimize register operand sign tests.
1333 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
1335 * config/avr/avr.c (avr_asm_only_p): New variable.
1336 (avr_override_options): Set it here if AVR1.
1337 (asm_file_start): Test it here, report an error if set.
1339 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
1341 * alias.c: Fix formatting.
1342 * attribs.c: Likewise.
1343 * bb-reorder.c: Likewise.
1344 * bitmap.c: Likewise.
1345 * bitmap.h: Likewise.
1346 * builtins.c: Likewise.
1348 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
1350 * reload.c (find_valid_class): Accept new argument DEST,
1351 choose class accordingly.
1352 (push_reload): Update callers.
1354 2002-05-26 Andreas Jaeger <aj@suse.de>
1356 * combine.c (combine_instructions): Do not indent #if for
1359 2002-05-25 Richard Henderson <rth@redhat.com>
1361 * c-pragma.c (apply_pragma_weak): Convert value identifier to
1362 string for decl_attributes.
1363 (handle_pragma_weak): Call assemble_alias if we're modifying
1366 2002-05-25 Richard Henderson <rth@redhat.com>
1369 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1370 using rtl instead of fprintf.
1371 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1372 * config/sparc/sparc-protos.h: Update.
1374 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
1376 * Makefile.in (C_COMMON_H): Fix.
1377 Update other targets.
1378 * c-common.c: Don't include c-lex.h.
1379 (builtin_define_with_value): Make static and prototype.
1380 (builtin_define_std): Move from c-lex.h.
1381 * c-common.h (init_c_lex): Move from c-lex.h.
1382 * c-decl.c: Don't include c-lex.h.
1383 (make_pointer_declarator): Move from c-parse.in.
1384 * c-lex.c: Don't include c-lex.h.
1386 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1387 (make_pointer_declarator): Move to c-decl.c.
1388 * c-pragma.c: Don't include c-lex.h.
1389 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1390 * c-tree.h (make_pointer_declarator): New.
1392 * passes.texi, tm.texi: Update.
1394 * Make-lang.in: Update and correct.
1395 * objc-act.c: Don't include c-lex.h or cpplib.h.
1397 * treetree.c: Don't include c-lex.h.
1399 * darwin-c.c: Don't include c-lex.h.
1400 * c4x/c4x-c.c: Don't include c-lex.h.
1401 * c4x/t-c4x: Update.
1402 * i370/i370-c.c: Don't include c-lex.h.
1403 * i370/t-i370: Update.
1404 * i960/i960-c.c: Don't include c-lex.h.
1405 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1406 * i960/t-960bare: Update.
1407 * i960/t-vxworks: Update.
1408 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1409 * rs6000/t-darwin: Update.
1410 * rs6000/t-rs6000-c-rule: Update.
1411 * v850/v850-c.c: Don't include c-lex.h.
1412 * v850/v850.c: Don't include c-lex.h or cpplib.h.
1415 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1417 * tree.def: Fix typos.
1418 * doc/install.texi: Likewise.
1420 2002-05-25 Richard Henderson <rth@redhat.com>
1422 * configure.in (HAVE_AS_TLS): Add ia64 test.
1423 * configure: Rebuild.
1424 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1425 (override_options): Set it.
1426 (TARGET_HAVE_TLS): New.
1427 (sdata_symbolic_operand): Look for 's'.
1428 (tls_symbolic_operand): New.
1429 (ia64_expand_load_address): Abort for tls symbols.
1430 (gen_tls_get_addr): New.
1431 (gen_thread_pointer): New.
1432 (ia64_expand_move): Split out from movdi. Handle tls symbols.
1433 (rtx_needs_barrier): Add new unspecs.
1434 (ia64_encode_section_info): Handle tls symbols.
1435 (ia64_strip_name_encoding): Strip two encoding chars.
1436 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1437 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1438 (TARGET_OPTIONS): Add tls-size.
1439 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1440 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1441 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1442 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1443 (movsf, movdf): Likewise.
1444 (movdi_symbolic): Use match_scratch. Don't split if we won't
1445 have a scratch availiable.
1446 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1447 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1448 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1449 * config/ia64/ia64-protos.h: Update.
1450 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1451 sdata_symbolic_operand.
1452 (ASM_OUTPUT_LABELREF): Strip two characters.
1454 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1456 * combine.c (simplify_set): Remove an unnecessary subreg.
1458 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
1460 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1462 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1464 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1466 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
1468 2002-05-25 Roger Sayle <roger@eyesopen.com>
1470 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1471 (cond (compare x y) 0) into the equivalent (cond x y).
1473 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1475 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
1477 2002-05-24 Zack Weinberg <zack@codesourcery.com>
1479 * config.gcc: Remove all stanzas for previously obsoleted
1480 systems. Where necessary, add explicit error stanzas to
1481 prevent removed systems from being misidentified as something
1482 else. Begin a fresh obsoletions list, with the systems that
1483 were reprieved last round.
1484 * doc/install.texi: Remove all mention of dead targets.
1485 * fixinc/mkfixinc.sh: Likewise.
1487 * config/arm/arm.h: Bit 31 of target_flags is no longer
1490 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1491 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1492 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1493 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1494 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1495 config/alpha/osf12.h, config/alpha/osf2or3.h,
1496 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1497 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1498 config/clipper/clipper-protos.h, config/clipper/clipper.c,
1499 config/clipper/clipper.h, config/clipper/clipper.md,
1500 config/clipper/clix.h, config/convex/convex-protos.h,
1501 config/convex/convex.c, config/convex/convex.h,
1502 config/convex/convex.md, config/convex/fixinc.convex,
1503 config/convex/proto.h, config/elxsi/elxsi-protos.h,
1504 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1505 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1506 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1507 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1508 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1509 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1510 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1511 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1512 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1513 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1514 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1515 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1516 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1517 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1518 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1519 config/m68k/altos3068.h, config/m68k/apollo68.h,
1520 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1521 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1522 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1523 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1524 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1525 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1526 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1527 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1528 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1529 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1530 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1531 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1532 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1533 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1534 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1535 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1536 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1537 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1538 config/mips/dec-osf1.h, config/mips/elflorion.h,
1539 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1540 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1541 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1542 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1543 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1544 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1545 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1546 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1547 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1548 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1549 config/ns32k/sequent.h, config/ns32k/tek6000.h,
1550 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1551 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1552 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1553 config/sparc/rtems.h, config/we32k/we32k-protos.h,
1554 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1557 2002-05-24 Richard Henderson <rth@redhat.com>
1559 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1560 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1561 * config/i386/i386.c (tls_model_chars): Add leading space.
1562 (tls_symbolic_operand): Don't bias by 1.
1563 (legitimize_address): Don't unbias by 1.
1565 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1567 * lcm.c (optimize_mode_switching): Change bb used as indices
1570 2002-05-24 Richard Henderson <rth@redhat.com>
1572 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1573 of update_life_info_in_dirty_blocks.
1575 2002-05-24 Jakub Jelinek <jakub@redhat.com>
1578 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1580 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
1582 PR preprocessor/6780
1583 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1585 2002-05-24 Jim Blandy <jimb@redhat.com>
1587 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1588 entry with a type code of zero, marking the end of the compilation
1591 2002-05-24 Richard Henderson <rth@redhat.com>
1593 * varasm.c (asm_output_bss): Always output one byte.
1594 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1596 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1598 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1601 2002-05-24 Andreas Jaeger <aj@suse.de>
1603 * ggc-page.c (alloc_page): Cast variables of type size_t to
1604 unsigned long, adjust printf format string.
1605 (ggc_alloc): Likewise.
1606 (ggc_print_statistics): Likewise.
1607 (ggc_print_statistics): Correct printf format string for SCALE to
1610 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
1612 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1614 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
1615 Zack Weinberg <zack@codesourcery.com>
1617 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1619 * dwarf2out.c (lookup_filename): Properly quote filename in .file
1620 directive in assembly file.
1621 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1622 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1623 * config/pj/pj.h (ASM_FILE_START): Likewise.
1624 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1625 * config/avr/avr.c (asm_file_end): Likewise.
1626 * toplev.c (output_quoted_string): Handle possibly signed plain
1628 * toplev.h (output_clean_symbol_name): Declare
1629 * toplev.c (output_clean_symbol_name): Define.
1630 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1631 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1633 2002-05-24 Alan Modra <amodra@bigpond.net.au>
1635 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1637 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
1639 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1640 of size of unsigned.
1642 2002-05-23 Richard Henderson <rth@redhat.com>
1644 * configure.in (HAVE_AS_TLS): New test.
1645 * config.in, configure: Rebuild.
1646 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1647 (ix86_tls_dialect_string, ix86_tls_dialect): New.
1648 (override_options): Set it.
1649 (tls_model_chars, tls_symbolic_operand): New.
1650 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1651 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1652 (local_exec_symbolic_operand): New.
1653 (get_pic_label_name): Merge into output_set_got.
1654 (ix86_asm_file_end): Emit pic_label_name if defined.
1655 (legitimate_constant_p, constant_address_p): New.
1656 (legitimate_pic_operand_p): New.
1657 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1658 (legitimate_address_p): Likewise.
1659 (ix86_encode_section_info): Rename from i386_; handle tls decls.
1660 (ix86_strip_name_encoding): New.
1661 (get_thread_pointer): New.
1662 (legitimize_address): Handle tls symbols.
1663 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1665 (struct machine_function): Add some_ld_name.
1666 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1667 (print_operand) [&]: Use it. Handle UNSPEC_TP.
1668 (output_addr_const_extra): New.
1669 (maybe_get_pool_constant): New.
1670 (ix86_split_to_parts): Use it.
1671 (ix86_expand_move): Handle tls symbols.
1672 (ix86_tls_get_addr): New.
1673 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1674 (TARGET_OPTIONS): Add tls-dialect.
1675 (CONSTANT_ADDRESS_P): Use new out-of-line function.
1676 (LEGITIMATE_CONSTANT_P): Likewise.
1677 (LEGITIMATE_PIC_OPERAND_P): Likewise.
1678 (TARGET_STRIP_NAME_ENCODING): New.
1679 (ASM_OUTPUT_LABELREF): New.
1680 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1681 (OUTPUT_ADDR_CONST_EXTRA): New.
1682 (PREDICATE_CODES): Update.
1683 (ix86_tls_dialect, ix86_tls_dialect_string): New.
1684 * config/i386/i386.md: Regroup and renumber unspec constants.
1685 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1686 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1687 (tls_global_dynamic, tls_local_dynamic_base): New.
1688 (tls_local_dynamic_once): New.
1689 * config/i386/i386-protos.h: Update.
1691 2002-05-23 Richard Henderson <rth@redhat.com>
1693 * genemit.c (gen_insn): Print file:lineno comment before function.
1695 * gensupport.c (struct queue_elem): Add filename member.
1696 (queue_pattern): Initialize it; update all callers.
1697 (process_include): Don't free filename.
1698 (read_md_rtx): Set read_rtx_filename.
1700 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
1702 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1704 2002-05-23 Richard Henderson <rth@redhat.com>
1706 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1708 2002-05-23 Richard Henderson <rth@redhat.com>
1710 * doc/extend.texi (C++98 Thread-Local Edits): Update with
1711 commentary from Mark.
1713 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1715 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1716 Use FOR_EACH_BB macros to iterate over basic block chain.
1717 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1718 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1720 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1721 find_unreachable_blocks, create_edge_list, verify_edge_list,
1722 remove_fake_edges, add_noreturn_fake_exit_edges,
1723 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1725 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1726 find_sub_basic_blocks): Likewise.
1727 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1729 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1731 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1733 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1734 commit_edge_insertions, commit_edge_insertions_watch_calls,
1735 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1736 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1737 * conflict.c (conflict_graph_compute): Likewise.
1738 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1739 df_modified_p, df_refs_unlink, df_dump): Likewise.
1740 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1741 * final.c (compute_alignments): Likewise.
1742 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1743 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1744 count_or_remove_death_notes): Likewise.
1745 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1746 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1747 classic_gcse, compute_transp, cprop, compute_pre_data,
1748 compute_transpout, invalidate_nonnull_info,
1749 delete_null_pointer_checks_1, delete_null_pointer_checks,
1750 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1751 compute_store_table, build_store_vectors, store_motion): Likewise.
1752 * global.c (global_conflicts, mark_elimination): Likewise.
1753 * graph.c (print_rtl_graph_with_bb): Likewise.
1754 * haifa-sched.c (sched_init): Likewise.
1755 * ifcvt.c (if_convert): Likewise.
1756 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1757 compute_available, compute_nearerout, compute_rev_insert_delete,
1758 optimize_mode_switching): Likewise.
1759 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1760 * predict.c (estimate_probability, note_prediction_to_br_prob,
1761 propagate_freq, counts_to_freqs, expensive_function_p,
1762 estimate_bb_frequencies): Likewise.
1763 * profile.c (instrument_edges, get_exec_counts,
1764 compute_branch_probabilities, compute_checksum, branch_prob,
1765 find_spanning_tree): Likewise.
1766 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1767 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1769 * regclass.c (scan_one_insn, regclass): Likewise.
1770 * regmove.c (mark_flags_life_zones, regmove_optimize,
1771 record_stack_memrefs): Likewise.
1772 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1773 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1774 * resource.c (find_basic_block): Likewise.
1775 * sched-ebb.c (schedule_ebbs): Likewise.
1776 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1777 find_single_block_region, find_rgns, schedule_insns)
1778 * sibcall.c (optimize_sibling_and_tail_recursive_call)
1779 * ssa-ccp.c (optimize_unexecutable_edges,
1780 ssa_ccp_df_delete_unreachable_insns): Likewise.
1781 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1782 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1783 rename_block, convert_to_ssa, compute_conservative_reg_partition,
1784 compute_coalesced_reg_partition, rename_equivalent_regs,
1785 convert_from_ssa): Likewise.
1786 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1787 process_for_unwind_directive): Likewise.
1789 * df.c (FOR_ALL_BBS): Removed.
1790 * gcse.c (struct null_pointer_info): Type of current_block field
1792 (struct reg_avail_info): Type of last_bb field changed.
1793 * config/ia64/ia64.c (block_num): Removed.
1794 (need_copy_state): Type changed.
1797 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1799 * cppinit.c (mark_named_operators): Split out from init_builtins.
1800 (cpp_finish_options): Call it from here instead.
1802 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1804 * builtin-attrs.def: Update copyright years.
1805 (ATTR_NONNULL): New attribute identifier.
1806 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1807 attribute tree lists.
1808 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1810 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1811 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1812 attribute lists. Chain the appropriate nonnull attribute.
1813 * c-format.c (check_format_arg): Remove null format string
1815 * testsuite/gcc.dg/format/null-1.c: New test.
1817 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1819 * Makefile.in (ADAC): Define.
1821 (.SUFFIXES): Move before language makefile fragments.
1822 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1824 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1826 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1829 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1831 * cfg.c (dump_flow_info): Print results of
1832 maybe_hot/probably_never_executed predicates.
1833 * toplev.c (open_dump_file): Print function frequency.
1835 2002-05-23 David S. Miller <davem@redhat.com>
1837 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1840 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1842 * c-common.c (warn_nonnull): Declare.
1843 (c_common_attribute_table): Add "nonnull" attribute.
1844 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1845 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1846 check_function_arguments_recurse): New functions.
1847 * c-common.h (warn_nonnull): Declare extern.
1848 (check_function_arguments, check_function_arguments_recurse): New
1850 * c-decl.c (c_decode_option): Add -Wnonnull option.
1851 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1853 (format_check_context): New structure.
1854 (check_format_info_recurse): Remove recursion and rename to...
1855 (check_format_arg): ...this. Update comment.
1856 (check_format_info): Use check_function_arguments_recurse.
1857 * c-typeck.c (build_function_call): Call check_function_arguments
1858 instead of check_function_format.
1859 * doc/extend.texi: Document "nonnull" attribute.
1860 * doc/invoke.texi: Docuemnt -Wnonnull option.
1861 * testsuite/gcc.dg/nonnull-1.c: New test.
1862 * testsuite/gcc.dg/nonnull-2.c: New test.
1864 2002-05-23 David S. Miller <davem@redhat.com>
1866 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1867 * cfgcleanup.c (cleanup_cfg): If it is set do not
1868 attempt to delete trivially dead insns.
1869 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1870 * toplev.c (rest_of_compilation): Document non-trivial aspect
1871 the RTL before optimize_save_area_alloca is run.
1873 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1875 * c-lex.c (indent_level): Remove.
1876 (cb_file_change, c_lex): Remove indent level handling.
1877 * c-lex.h (indent_level): Remove.
1878 * input.h (struct file_stack): Remove indent_level.
1879 * toplev.c (push_srcloc): Remove indent_level handling.
1881 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1884 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1885 of x in constraints for clarity.
1886 (sse_mov?fcc split): abort if op2 == op3.
1887 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1888 sse_movsfcc_const0_4): Add earlyclobber.
1889 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1890 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1891 Use Y instead of x in constraints.
1893 2002-05-23 Richard Henderson <rth@redhat.com>
1895 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1896 (C++98 Thread-Local Edits): New subsection.
1898 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1899 (ix86_arch): Set type to enum processor_type.
1901 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1902 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1904 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1906 * configure.in: Fix as version test for binutils 2.12.1 releases
1908 * configure: Rebuilt.
1910 2002-05-23 Richard Henderson <rth@redhat.com>
1912 * config/i386/i386.c (get_pic_label_name): New.
1913 (load_pic_register): Remove.
1914 (output_set_got): New.
1915 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1916 * config/i386/i386.md (UNSPEC_SET_GOT): New.
1917 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1918 (prologue_set_got, prologue_get_pc): Remove.
1919 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1920 (builtin_setjmp_receiver): Use gen_set_got.
1921 * config/i386/i386-protos.h: Update.
1923 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1925 * gcse.c (hash_expr): Do not use alias set for hashing.
1927 2002-05-22 Kevin Buettner <kevinb@redhat.com>
1929 * dbxout.c (dbxout_class_name_qualifiers): New function.
1930 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1932 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1934 * cpperror.c (_cpp_begin_message): No special casing
1936 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1937 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1938 * cpplib.c (do_include_common): Use DL_ERROR.
1939 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1941 * fix-header.c (read_scan_file): Update.
1943 2002-05-22 Richard Henderson <rth@redhat.com>
1945 * config/i386/i386.c (ix86_expand_call): New function, extracted
1946 from md call patterns. Add pic_offset_table_rtx to
1947 CALL_INSN_FUNCTION_USAGE when needed.
1948 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1949 (call_value_pop, call_value, untyped_call): Likewise.
1950 (call_exp, call_value_exp): Remove.
1951 * config/i386/i386-protos.h: Update.
1953 2002-05-22 Richard Henderson <rth@redhat.com>
1955 * varasm.c (default_section_type_flags): Check for VAR_DECL
1956 before using DECL_THREAD_LOCAL.
1958 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1960 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1961 (STARTFILE_SPEC): Delete PE crt0.o.
1962 * config/rs6000/aix51.h: Same.
1963 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1964 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1965 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1966 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1967 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1969 2002-05-22 Richard Henderson <rth@redhat.com>
1971 * varasm.c (default_section_type_flags): Handle tls data and
1973 (default_unique_section): Handle tls sections.
1975 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1977 * configure.in (CROSS): Define NATIVE_CROSS.
1978 * configure: Regenerate.
1979 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1980 (startfile_prefix_spec): New var.
1981 (static_specs): Add startfile_prefix_spec.
1982 (do_spec_2): Split out from..
1984 (main): Process startfile_prefix_spec.
1985 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1987 (STARTFILE_PREFIX_SPEC): Define.
1988 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1991 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1993 * cpperror.c: Fix formatting.
1994 * cppexp.c: Likewise.
1995 * cppfiles.c: Likewise.
1996 * cpphash.c: Likewise.
1997 * cpphash.h: Likewise.
1998 * cppinit.c: Likewise.
1999 * cpplex.c: Likewise.
2000 * cpplib.c: Likewise.
2001 * cppmacro.c: Likewise.
2002 * cppmain.c: Likewise.
2003 * cppspec.c: Likewise.
2005 2002-05-22 Jakub Jelinek <jakub@redhat.com>
2007 * combine.c (force_to_mode): Use gen_int_mode.
2008 Don't clear CONST_INT bits outside of mode.
2010 2002-05-22 Richard Henderson <rth@redhat.com>
2012 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
2013 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2015 2002-05-22 Jakub Jelinek <jakub@redhat.com>
2018 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
2019 if DECL_SIZE_UNIT is INTEGER_CST.
2021 2002-05-22 Richard Henderson <rth@redhat.com>
2023 * flow.c (life_analysis): Delete broken reg_label check.
2025 2002-05-22 Richard Henderson <rth@redhat.com>
2027 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
2028 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2030 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2032 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
2033 (embed-bb.c): New rule.
2034 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
2035 * config/sh/embed_bb.c: Delete.
2037 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
2039 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
2041 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
2043 * config/h8300/h8300.md (*andorqi3): New.
2045 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
2047 PR preprocessor/6517
2048 * Makefile.in: Update.
2049 * c-common.c (c_common_post_options): Add preprocessor
2050 errors to the error count.
2051 * c-lang.c (c_post_options): Kill.
2052 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2053 * hooks.h: Add header guards.
2054 * langhooks-def.h: Include hooks.h.
2055 (LANG_HOOKS_POST_OPTIONS): Update.
2056 * langhooks.h (struct lang_hooks): Update post_options.
2057 * toplev.c (parse_options_and_default_flags): Update.
2059 * objc-lang.c (objc_post_options): Kill.
2060 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2062 2002-05-21 Bruce Korb <bkorb@gnu.org>
2064 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
2065 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
2066 * fixinc/fixincl.x: regen.
2068 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
2070 * cfgbuild.c: Fix formatting.
2072 * cfgcleanup.c: Likewise.
2073 * cfglayout.c: Likewise.
2074 * cfgloop.c: Likewise.
2075 * cfgrtl.c: Likewise.
2077 2002-05-21 Richard Henderson <rth@redhat.com>
2079 * c-common.h (enum rid): Add RID_THREAD.
2080 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
2081 (grokdeclarator): Grok __thread.
2082 * c-parse.in (reswords): Add __thread.
2083 (rid_to_yy): Add RID_THREAD.
2085 * tree.h (DECL_THREAD_LOCAL): New.
2086 (struct tree_decl): Add thread_local_flag.
2087 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
2088 * tree.c (staticp): TLS variables are not static.
2090 * target-def.h (TARGET_HAVE_TLS): New.
2091 * target.h (have_tls): New.
2092 * output.h (SECTION_TLS): New.
2093 * varasm.c (assemble_variable): TLS variables can't be common for now.
2094 (default_section_type_flags): Handle .tdata and .tbss.
2095 (default_elf_asm_named_section): Handle SECTION_TLS.
2096 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
2098 * flags.h (flag_tls_default): Declare.
2099 * toplev.c (flag_tls_default): Define.
2100 (display_help): Display help for it.
2101 (decode_f_option): Set it.
2103 * doc/extend.texi (Thread-Local): New node describing language-level
2104 thread-local storage.
2105 * doc/invoke.texi (-ftls-model): Document.
2107 * fixinc/inclhack.def (thread_keyword): New.
2108 * fixinc/fixincl.x: Rebuild.
2110 2002-05-21 Jeffrey A Law <law@redhat.com>
2112 * optabs.c (expand_binop): For double-word integer multiplies,
2113 do not compute intermediate results into something that is
2114 not a register (such as a SUBREG or MEM).
2116 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
2117 (ix86_sched_reorder): Make sure to initialize scheduling
2118 data even when there's only one insn in the ready queue.
2120 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
2122 * genautomata.c (reserv_sets_hash_value): Fix a typo.
2124 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
2126 * genautomata.c (reserv_sets_hash_value): Define hash_value as
2127 set_el_t. Transform the hash value into unsigned.
2128 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
2129 (transform_3): Add code to process `(A,B)+(D,E)'.
2131 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
2133 * reload1.c (do_output_reload): Run delete_output_reload
2136 2002-05-21 Roger Sayle <roger@eyesopen.com>
2139 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
2140 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
2141 (can_store_by_pieces): ... and here to limit the largest mode used.
2142 Add a comment to document this function.
2144 2002-05-21 Richard Henderson <rth@redhat.com>
2146 * flow.c (life_analysis): Fix test for deleted label.
2148 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
2150 * doc/tm.texi: Fix typo.
2152 2002-05-21 Zack Weinberg <zack@codesourcery.com>
2154 * c-common.c (c_common_init): Set options->unsigned_char from
2156 (cb_register_builtins): Define __STRICT_ANSI__ and
2157 __CHAR_UNSIGNED__ here...
2158 * cppinit.c (init_builtins): Not here.
2159 (cpp_create_reader): unsigned_char option defaults to 0, not
2160 !DEFAULT_SIGNED_CHAR.
2161 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
2162 and -funsigned-char.
2164 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
2165 * cpphash.c (_cpp_init_hashtable): Don't set it.
2166 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
2167 directly. Clarify comment.
2169 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2171 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
2172 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
2173 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
2174 BASIC_BLOCK (n_basic_blocks - 1).
2175 * cfganal.c (can_fallthru, flow_call_edges_add,
2176 flow_preorder_transversal_compute): Too.
2177 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
2178 find_sub_basic_blocks): Too.
2179 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
2180 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
2181 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
2182 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
2183 * combine.c (this_basic_block): Type changed to basic_block.
2184 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
2185 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2186 get_last_value, distribute_notes, distribute_links): Too.
2187 * final.c (compute_alignments): Too.
2188 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
2189 * function.c (thread_prologue_and_epilogue_insns): Too.
2190 * gcse.c (compute_code_hoist_vbeinout): Too.
2191 * global.c (build_insn_chain): Too.
2192 * ifcvt.c (find_if_block, find_cond_trap): Too.
2193 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
2194 * regmove.c (regmove_optimize): Too.
2195 * resource.c (find_basic_block): Too.
2196 * sched-ebb.c (schedule_ebbs): Too.
2197 * ssa-dce.c (find_control_dependence, find_pdom): Too.
2199 2002-05-21 Andreas Jaeger <aj@suse.de>
2201 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
2203 2002-05-21 Richard Henderson <rth@redhat.com>
2205 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
2206 unspec names, not numbers.
2208 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
2210 * doc/sourcebuild.texi: Mention snapshot-README and
2211 snapshot-index.html as needing updating for new front ends.
2213 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2215 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2216 disabling checking, and avoid multiple evaluation of RTX.
2218 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
2220 * bitmap.c (bitmap_find_bit): Return early if we have the correct
2223 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2225 * profile.c (gen_edge_profiler): Set alias set before the memory is
2228 2002-05-20 David S. Miller <davem@redhat.com>
2230 * cselib.c (max_value_regs): New.
2231 (cselib_lookup, cselib_invalidate_regno): Initialize it when
2232 adding new entries to the REG_VALUES table and we are dealing with
2234 (clear_table): Initialize it.
2235 (cselib_invalidate_regno): Use it to determine which hard
2236 registers to scan when mode is not VOIDmode.
2238 2002-05-20 Duraid Madina <duraid@fl.net.au>
2240 * tradcpp.c (fixup_newlines): Use old-style function header.
2242 2002-05-20 Krister Walfridsson <cato@df.lth.se>
2244 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2246 2002-05-20 H.J. Lu (hjl@gnu.org)
2248 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2250 * config/mips/mips.h (DFMODE_NAN): Defined.
2251 (SFMODE_NAN): Likewise.
2253 2002-05-20 Dale Johannesen <dalej@apple.com>
2255 * combine.c (cant_combine_insn_p): Back out my
2258 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2260 * params.c: Fix formatting.
2261 * params.h: Likewise.
2262 * predict.c: Likewise.
2263 * prefix.c: Likewise.
2264 * print-rtl.c: Likewise.
2265 * print-tree.c: Likewise.
2266 * profile.c: Likewise.
2268 2002-05-20 H.J. Lu (hjl@gnu.org)
2270 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2272 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
2274 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2275 switches straight on to the assembler, do not abbreviate them.
2276 * config/arm/elf.h (ASM_SPEC): As above.
2277 * config/arm/semi.h (ASM_SPEC): As above.
2278 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2279 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2280 -mcpu=xscale on to the assembler by default.
2281 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2283 2002-05-20 Richard Henderson <rth@redhat.com>
2285 * cse.c (canon_hash): Reorder do_not_record test. Always
2286 allow pic_offset_table_rtx.
2288 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
2290 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2291 (expand_binop): Ditto (3 times).
2293 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
2295 * Makefile.in (distclean): Remove QMTest stuff.
2296 (QMTEST_PATH): New variable.
2297 (QMTESTFLAGS): Likewise.
2298 (QMTESTRUNFLAGS): Likewise.
2300 (QMTEST_GPP_TESTS): Likewise.
2301 (QMTEST_DIR): Likewise.
2302 (QMTEST_DIR/context): New target.
2303 (qmtest-g++): Likeise.
2304 (qmtest-gui): Likewise.
2305 (QMTEST_DIR/gpp-expected.qmr): Likewise.
2307 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
2309 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2310 an altivec register if TARGET_ALTIVEC.
2312 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2313 to ALTIVEC_VECTOR_MODE.
2314 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2315 (rs6000_va_arg): Vectors may go in registers if they are not
2318 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
2320 * protoize.c: Fix formatting.
2322 2002-05-19 Richard Henderson <rth@redhat.com>
2324 * gensupport.c (init_include_reader): Merge into ...
2325 (process_include): ... here. Simplify composite path creation.
2326 Plug memory leaks. Fix file/line number tracking. Do not
2327 process_define_cond_exec. Return void.
2328 (process_rtx): Don't check process_include return value.
2330 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2332 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2334 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2335 traversing basic block chain.
2336 (create_basic_block_structure, create_basic_block): Declaration changed.
2337 (link_block, unlink_block): Declare.
2338 * cfg.c (entry_exit_blocks): Initialize new fields.
2339 (link_block, unlink_block): New.
2340 (expunge_block_nocompact): Unlink basic block.
2341 (dump_flow_info): Print prev_bb/next_bb fields.
2342 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2343 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2344 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2345 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2346 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2347 (verify_flow_info): Check that list agrees with numbering.
2349 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
2351 * c-common.c (preprocessing_asm): New macro.
2352 * c-lex.h (builtin_define, builtin_assert): Use pfile.
2356 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2357 (CPP_SPEC): Simplify.
2358 (TARGET_CPU_CPP_BUILTINS): Update.
2359 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2360 (CPP_SPEC): Simplify.
2361 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2362 (TARGET_OS_CPP_BUILTINS): Update.
2363 * osf.h (CPP_XFLOAT_SPEC): Kill.
2364 (TARGET_OS_CPP_BUILTINS): Update.
2365 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2366 * osf5.h (CPP_XFLOAT_SPEC): Kill.
2367 * vms.h (CPP_SUBTARGET_SPEC): Kill.
2368 (TARGET_OS_CPP_BUILTINS): Update.
2370 2002-05-19 Richard Henderson <rth@redhat.com>
2372 * varasm.c (default_binds_local_p): Fix typo.
2374 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
2376 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2377 CONST_INT operand to the correct mode after adding 1 to it.
2379 2002-05-19 Mark Mitchell <mark@codesourcery.com>
2381 * config.gcc (powerpc-wrs-windiss*): New target.
2383 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2385 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2388 2002-05-18 Mark Mitchell <mark@codesourcery.com>
2390 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2392 * config.in: Regenerated.
2393 * configure: Regenerated.
2395 2002-05-19 Richard Henderson <rth@redhat.com>
2397 * target-def.h (TARGET_BINDS_LOCAL_P): New.
2398 * target.h (struct gcc_target): Move boolean fields to the end.
2400 * varasm.c (default_binds_local_p): New.
2401 * output.h: Declare it.
2403 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2404 * config/cris/cris.c (cris_encode_section_info): Likewise.
2405 * config/i386/i386.c (i386_encode_section_info): Likewise.
2406 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2407 * config/sh/sh.c (sh_encode_section_info): Likewise.
2409 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2410 (TARGET_BINDS_LOCAL_P): New.
2412 2002-05-19 Richard Henderson <rth@redhat.com>
2414 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2415 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2416 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2418 * toplev.c (display_help): Kill -a -ax help.
2420 * config/1750a/1750a.h, config/alpha/alpha.h,
2421 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2422 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2423 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2424 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2426 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2427 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2429 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2430 (ix86_output_function_block_profiler): Kill.
2431 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2432 (m68hc11_function_block_profiler): Kill.
2433 * config/m68hc11/m68hc11-protos.h: Update.
2434 * config/m88k/m88k.c (output_block_profiler): Kill.
2435 (output_function_block_profiler): Kill.
2436 * config/m88k/m88k-protos.h: Update.
2438 2002-05-19 Richard Henderson <rth@redhat.com>
2440 * system.h (STRIP_NAME_ENCODING): Poison it.
2441 * output.h (STRIP_NAME_ENCODING): Remove.
2442 (default_strip_name_encoding): Declare.
2443 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2444 * target.h (strip_name_encoding): New.
2445 * varasm.c (default_strip_name_encoding): New.
2447 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2448 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2449 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2450 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2451 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2452 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2453 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2454 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2455 config/v850/v850.h: Use the hook, not the macro.
2457 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2458 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2459 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2460 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2461 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2462 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2463 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2464 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2465 config/v850/v850.c, config/v850/v850.h:
2466 Move STRIP_NAME_ENCODING to out-of-line function and add
2467 TARGET_STRIP_NAME_ENCODING.
2469 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2470 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2471 with TARGET_STRIP_NAME_ENCODING referencing existing function;
2472 make function static.
2474 * xcoffout.c: Include target.h
2475 * Makefile.in (xcoffout.o): Update.
2477 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2478 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2479 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2480 reloc argument unused.
2481 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2483 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2484 STRIP_NAME_ENCODING docs.
2486 2002-05-19 Andreas Jaeger <aj@suse.de>
2488 * gengenrtl.c: Add prototype for excluded_rtx.
2490 * real.h: Add prototype for exact_real_truncate.
2492 2002-05-18 Richard Henderson <rth@redhat.com>
2494 * system.h (ENCODE_SECTION_INFO): Poison it.
2495 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2496 * target.h (encode_section_info): New.
2497 * varasm.c (make_decl_rtl, output_constant_def): Use it.
2498 * hooks.c (hook_tree_int_void): New.
2499 * hooks.h: Declare it.
2501 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2502 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2503 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2504 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2505 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2506 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2507 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2508 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2509 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2510 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2511 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2512 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2513 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2514 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2515 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2516 referencing existing function. Make function static.
2518 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2519 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2520 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2521 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2522 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2523 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2524 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2525 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2526 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2527 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2528 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2529 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2530 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2531 Move ENCODE_SECTION_INFO to out-of-line function and add
2532 TARGET_ENCODE_SECTION_INFO.
2534 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2535 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2537 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2539 (switch_to_section): Replace in_rdata case with in_readonly_data.
2541 * config/h8300/h8300.c (h8300_encode_label): Make static.
2542 * config/h8300/h8300-protos.h: Update.
2544 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2545 from rs6000_encode_section_info; make static.
2546 (rs6000_xcoff_encode_section_info): New.
2548 * config/v850/v850.c (v850_encode_data_area): Make static.
2549 * config/v850/v850-protos.h: Update.
2551 * config/vax/vax.c: Include flags.h.
2552 (vms_select_section): Fix typo.
2554 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2555 ENCODE_SECTION_INFO docs.
2557 2002-05-18 Richard Henderson <rth@redhat.com>
2559 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2560 REGISTER_TARGET_PRAGMAS.
2561 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2563 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2565 2002-05-18 Richard Henderson <rth@redhat.com>
2567 * system.h (SELECT_RTX_SECTION): Poison.
2568 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2569 * target.h (select_rtx_section): New.
2570 * varasm.c (output_constant_pool): Use it.
2571 (default_select_rtx_section, default_elf_select_rtx_section): New.
2572 * output.h: Declare them.
2574 * config/darwin.h (SELECT_RTX_SECTION): Move ...
2575 * config/darwin.c (machopic_select_rtx_section): ... here.
2576 * config/darwin-protos.h: Update.
2578 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2579 * config/nextstep.c (machopic_select_rtx_section): ... here.
2580 (nextstep_select_section): Rename variable to avoid macro clash.
2581 * config/nextstep-protos.h: Update.
2583 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2584 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2585 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2586 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2587 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2588 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2589 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2590 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2591 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2592 (SELECT_RTX_SECTION): Remove.
2594 * config/darwin.h, config/elfos.h, config/nextstep.h,
2595 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2596 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2597 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2598 config/sparc/lynx.h, config/xtensa/xtensa.c
2599 (TARGET_ASM_SELECT_RTX_SECTION): New.
2601 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2602 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2603 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2604 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2605 (ia64_aix_select_rtx_section): New.
2606 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2608 * config/mips/mips.c (mips_select_rtx_section): Make static.
2609 Support ELF SHF_MERGE features.
2610 * config/mips/mips-protos.h: Update.
2611 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2612 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2613 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2614 make static, fall back to default_elf_select_rtx_section.
2615 * config/rs6000/rs6000-protos.h: Update.
2616 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2617 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2618 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2619 * config/romp/romp.c (romp_select_rtx_section): New.
2620 * config/s390/s390.c (s390_select_rtx_section): New.
2621 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
2622 declarations before target macro definition.
2623 (xtensa_emit_call): Use static buffer.
2624 (xtensa_select_rtx_section): New.
2625 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2626 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2627 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2629 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2630 SELECT_RTX_SECTION docs.
2632 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
2634 * i386.md (movsi/movdi): Fix template.
2635 (sse2 patterns): Set attributes consistently.
2637 * i386.md (pushqi2, ashrqi_*): Fix constraint.
2639 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
2641 * optabs.c (complex_part_zero_p): New.
2642 * (expand_cmplxdiv_straight): Use it.
2643 * (expand_cmplxdiv_wide): Ditto.
2644 * (expand_binop): Ditto.
2646 2002-05-18 Richard Henderson <rth@redhat.com>
2648 * final.c (HAVE_READONLY_DATA_SECTION): New.
2649 (shorten_branches): Use it instead of ifdefs.
2650 * varasm.c (enum in_section): Add in_readonly_data.
2651 (text_section, data_section): Tidy.
2652 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2654 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2655 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2656 (READONLY_DATA_SECTION): Don't undef.
2658 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2659 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2660 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2662 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2663 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2664 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2665 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2667 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2668 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2669 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2670 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2671 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2672 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2673 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2674 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2675 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2677 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2678 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2679 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2680 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2681 config/pa/pa64-hpux.h, config/sparc/litecoff.h
2682 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2684 * config/elfos.h, config/netware.h, config/svr3.h,
2685 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2686 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2687 config/h8300/h8300.h, config/i386/i386-interix.h,
2688 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2689 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2691 * config/elfos.h, config/netware.h, config/svr3.h,
2692 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2693 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2694 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2695 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2697 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2698 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2699 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2700 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2701 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2702 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2703 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2704 config/rs6000/sysv4.h, config/v850/v850.h
2705 (EXTRA_SECTIONS): Remove in_const/in_rdata.
2706 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2708 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2709 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2710 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2711 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2712 * config/alpha/alpha.c (alpha_start_function): Likewise.
2713 (alpha_write_linkage): Likewise.
2714 * config/m32r/m32r.c (m32r_select_section): Likewise.
2715 * config/m88k/m88k.c (m88k_select_section): Likewise.
2716 * config/mips/mips.c (mips_select_rtx_section): Likewise.
2717 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2718 (rs6000_elf_select_section): Likewise.
2719 * config/v850/v850.c (v850_select_section): Likewise.
2721 * config/1750a/1750a.h, config/i860/sysv3.h
2722 (READONLY_DATA_SECTION_ASM_OP): New.
2723 READONLY_DATA_SECTION_ASM_OP.
2724 * config/i386/interix.c, config/i386/winnt.c
2725 (i386_pe_unique_section): Always use .rdata prefix.
2726 * config/pa/som.h (readonly_data): Always switch to read-only section.
2727 (READONLY_DATA_SECTION): Predicate on flag_pic.
2728 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2729 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2730 (READONLY_DATA_SECTION): Update.
2732 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
2734 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2735 is used without -Wformat.
2736 * c-common.h (warn_format_zero_length): Declare extern.
2737 * c-decl.c (warn_options): Add "format-zero-length".
2738 * c-format.c (warn_format_zero_length): Declare.
2739 (set_Wformat): Set warn_format_zero_length for -Wformat.
2740 (check_format_info): Only warn about zero-length formats if
2741 warn_format_zero_length is true. Include the format type
2742 name in the warning message.
2743 * doc/invoke.texi: Document -Wformat-zero-length.
2744 * testsuite/gcc.dg/format/zero-length-1.c: New test.
2746 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2748 * timevar.c: Fix formatting.
2749 * tlink.c: Likewise.
2750 * toplev.c: Likewise.
2751 * tree-dump.c: Likewise.
2752 * tree-inline.c: Likewise.
2754 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2756 * cppinit.c (cpp_post_options): If preprocessed, turn off
2757 traditional. If traditional, turn off column numbers.
2758 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2759 * cpptrad.c (handle_newline): Update line_base.
2760 (skip_comment): Handle -Wcomment.
2762 2002-05-17 Zack Weinberg <zack@codesourcery.com>
2764 * cppinit.c (struct builtin): Remove unused fields.
2765 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2766 (operator_array): New - was second half of builtin_array.
2767 (init_builtins): Simplify loop over builtin_array/operator_array.
2769 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2771 * defaults.h (UNIQUE_SECTION): Remove.
2772 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2774 2002-05-17 Richard Henderson <rth@redhat.com>
2776 * expr.c (init_expr_once): Don't use start/end_sequence.
2777 Use rtx_alloc instead of emit_insn.
2778 * toplev.c (lang_dependent_init): Run init_expr_once here ...
2779 (lang_independent_init): ... not here.
2781 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2783 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2785 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2787 * config/avr/avr.c (avr_regs_to_save): New function. Also check
2788 for fixed registers, possibly used for global register variables.
2789 (initial_elimination_offset, avr_output_function_prologue,
2790 avr_output_function_epilogue): Move common code to avr_regs_to_save.
2792 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2794 * Makefile.in: Update for cpptrad.c.
2795 * cpphash.h (struct cpp_buffer): New members for buffer
2797 (struct cpp_reader): New members for traditional output.
2798 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2799 * cppinit.c (cpp_create_reader): Set trad_line.
2800 (cpp_destroy): Free trad_out_base if used.
2801 (cpp_read_main_file): Overlay an empty buffer if traditional.
2802 (cpp_finish_options): Don't do builtins.
2803 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2804 (cpp_handle_option): Handle it.
2805 * cpplex.c (continue_after_nul): New.
2806 (_cpp_lex_direct): Use handle_nul.
2807 * cpplib.h (struct cpp_options): New traditional option.
2808 * cpptrad.c: New file.
2810 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2812 * c-common.c (c_common_init_options): Use C89 for Objective-C,
2813 and set the options flag.
2814 * cppinit.c (lang_flags): Remove objc.
2815 (lang_defaults): Remove OBJC and OBJCXX.
2817 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2818 (cpp_handle_option): Remove -+ and -lang-objc++.
2819 For ObjC, just set a flag.
2820 (print_help): Update.
2821 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2823 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2825 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2826 bootstrap with -mips3.
2828 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2830 * final.c: Fix formatting.
2831 * fix-header.c: Likewise.
2833 * fold-const.c: Likewise.
2834 * function.c: Likewise.
2836 2002-05-17 David S. Miller <davem@redhat.com>
2838 PR c/6689, PR optimization/6615
2839 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2840 and make it a pointer to rtx. Update comments.
2841 (update_equiv_regs): When scanning for equivalences, record
2842 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2843 it while making the equiv replacements.
2845 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2847 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2849 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2851 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2852 when encoding visibility into SYMBOL_REF_FLAG.
2854 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2856 * expr.c (force_operand): Fix reversed move.
2858 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2860 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2861 that can be ignored.
2863 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2865 * doc/install.texi (Final install): Recommend to install into a
2866 "clean" target directory.
2868 2002-05-17 Richard Henderson <rth@redhat.com>
2870 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2871 for code blocks. Tidy whitespace.
2873 2002-05-17 Richard Henderson <rth@redhat.com>
2875 * hooks.c (hook_tree_bool_false): New.
2876 * hooks.h: Declare it.
2877 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2878 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2879 * target.h (select_section, unique_section): New.
2880 (in_small_data_p): New.
2881 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2882 (variable_section, output_constant_def_contents): Likewise.
2883 (default_select_section, default_unique_section): New.
2884 (categorize_decl_for_section, default_elf_select_section): New.
2885 * output.h: Declare them.
2887 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2888 (TARGET_ASM_SELECT_SECTION): New.
2889 (SELECT_SECTION): Move ...
2890 * config/darwin.c (machopic_select_section): ... here.
2891 * config/darwin-protos.h: Update.
2893 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2894 (SELECT_SECTION): Move ...
2895 * config/nextstep.c (nextstep_select_section): ... here.
2896 * config/nextstep-protos.h: Update.
2898 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2899 (TARGET_ASM_SELECT_SECTION): New.
2900 * config/svr3.h (SELECT_SECTION): Remove.
2902 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2903 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2904 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2905 (alpha_encode_section_info): Use it.
2906 * config/alpha/alpha-protos.h: Update.
2907 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2908 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2909 (TARGET_ASM_SELECT_SECTION): New.
2910 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2912 * config/arm/pe.h (UNIQUE_SECTION): Remove.
2913 (TARGET_ASM_UNIQUE_SECTION): New.
2915 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2916 (avr_unique_section): Rename from unique_section; make static.
2917 * config/avr/avr-protos.h: Update.
2918 * config/avr/avr.h (UNIQUE_SECTION): Remove.
2920 * config/c4x/c4x.h (SELECT_SECTION): Remove.
2922 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2923 (TARGET_ASM_UNIQUE_SECTION): New.
2924 * config/i386/i386-interix.h: Likewise.
2925 * config/i386/win32.h: Likewise.
2926 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2927 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2928 * config/i386/sco5.h (SELECT_SECTION): Remove.
2929 (TARGET_ASM_SELECT_SECTION): New.
2930 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2932 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2933 instead of SELECT_SECTION.
2934 * config/m68k/dpx2.h: Likewise.
2935 * config/rs6000/lynx.h: Likewise.
2937 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2938 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2939 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2940 (ia64_in_small_data_p): New.
2941 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2942 (ia64_aix_select_section, ia64_aix_unique_section): New.
2943 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2944 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2946 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2947 (TARGET_ASM_SELECT_SECTION): New.
2948 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2949 * config/m32r/m32r-protos.h: Update.
2951 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2952 (SELECT_SECTION): Move ...
2953 * config/m88k/m88k.c (m88k_select_section): ... here.
2955 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2956 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2957 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2958 (mcore_unique_section): Make static.
2959 * config/mcore/mcore-protos.h: Update.
2961 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2962 (TARGET_ASM_UNIQUE_SECTION): New.
2963 * config/mips/elf64.h: Likewise.
2964 * config/mips/iris6gld.h: Likewise.
2965 * config/mips/linux.h: Likewise.
2966 * config/mips/mips-protos.h: Update.
2967 * config/mips/mips.c (mips_select_section): Add align argument.
2968 * config/mips/mips.h (SELECT_SECTION): Remove.
2969 (TARGET_ASM_SELECT_SECTION): New.
2971 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2972 * config/mmix/mmix.c (mmix_select_section): Remove.
2973 (mmix_unique_section): Remove.
2974 * config/mmix/mmix-protos.h: Update.
2976 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2977 (SELECT_SECTION): Move ...
2978 * config/pa/pa.c (pa_select_section): ... here.
2979 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2981 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2982 from rs6000_select_section and make static.
2983 (rs6000_elf_unique_section): Similarly.
2984 (rs6000_xcoff_select_section): From xcoff.h.
2985 (rs6000_xcoff_unique_section): Likewise.
2986 * config/rs6000/rs6000-protos.h: Update.
2987 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2988 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2989 * config/rs6000/xcoff.h: Likewise.
2991 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2992 (SELECT_SECTION): Move ...
2993 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2995 * config/v850/v850.h (SELECT_SECTION): Move ...
2996 * config/v850/v850.c (v850_select_section): ... here.
2997 (TARGET_ASM_SELECT_SECTION): New.
2999 * config/vax/vms.h (SELECT_SECTION): Move ...
3000 * config/vax/vax.c (vms_select_section): ... here.
3001 (TARGET_ASM_SELECT_SECTION): New.
3003 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
3004 for the target hooks.
3006 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
3008 * config/arm/arm.c (emit_multi_reg_push): Do not set
3009 RTX_FRAME_RELATED_P on the SEQUENCE.
3011 2002-05-16 Richard Henderson <rth@redhat.com>
3013 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
3014 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
3016 2002-05-16 Richard Henderson <rth@redhat.com>
3018 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
3020 * config/ia64/ia64.c (saveable_obstack): Do not declare.
3022 2002-05-16 Richard Henderson <rth@redhat.com>
3024 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
3025 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
3026 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
3027 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
3028 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
3029 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
3030 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
3031 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
3032 Revert "Basic block renumbering removal", and two followup patches.
3034 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
3036 * lcm.c (optimize_mode_switching): Revert previous change.
3038 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3040 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
3041 with only extant block numbers.
3043 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
3045 * lcm.c (optimize_mode_switching): Fix typo.
3047 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3049 * flow.c (calculate_global_regs_live): Queue blocks in program order.
3051 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3053 * doc/install.texi (Configuration): Document PWDCMD.
3055 2002-05-16 Dale Johannesen <dalej@apple.com>
3057 * combine.c (cant_combine_insn_p): Reenable combinations
3058 involving hard regs unless CLASS_LIKELY_SPILLED_P.
3060 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3062 * c-common.c (cb_register_builtins): Handle more built-ins
3063 here rather than in gcc.c specs.
3064 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
3065 (cpp_options): Pass -O flags even when only preprocessing.
3066 * toplev.c (set_fast_math_flags): New prototype.
3067 (fast_math_flags_set_p): New.
3068 (set_no_fast_math_flags): Remove.
3069 (decode_f_option): Update.
3070 * toplev.h (set_fast_math_flags): Update.
3071 (fast_math_flags_set_p): New.
3072 (set_no_fast_math_flags): Remove.
3074 * c4x/c4x.c (c4x_override_options): Update.
3076 2002-05-16 Zack Weinberg <zack@codesourcery.com>
3078 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
3079 Default-define here.
3080 (builtin_define_with_value): Can now wrap the expansion in
3081 quotation marks if such is wanted.
3082 (cb_register_builtins): Update calls to builtin_define_with_value.
3083 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
3085 (c_common_init): Set options->stdc_0_in_system_headers.
3086 * c-lex.h: Update prototype of builtin_define_with_value.
3087 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
3088 and REGISTER_PREFIX.
3090 * cppinit.c (VERS, ULP, C, X): Kill.
3091 (builtin_array): Remove entries for __VERSION__,
3092 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
3093 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
3095 (init_builtins): Kill off a bunch of now-dead code.
3096 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
3097 -fno-leading-underscore.
3098 (cpp_handle_option): Remove code to set user_label_prefix.
3099 (cpp_post_options): Likewise.
3101 * cpplib.h (struct cpp_options): Remove user_label_prefix.
3102 (stdc_0_in_system_headers): New.
3103 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
3104 stdc_0_in_system_headers) too to decide the value of __STDC__.
3106 * tradcpp.c (user_label_prefix): Kill.
3107 (main): Remove code handling -f(no-)leading-underscore.
3108 (initialize_builtins): Don't define __REGISTER_PREFIX__
3109 or __USER_LABEL_PREFIX__.
3110 (install_value): Wrap compound statement in dummy loop so the
3111 macro works properly in an if statement.
3114 2002-05-16 Janis Johnson <janis187@us.ibm.com>
3116 * loop.h (struct loop_info): Add member has_prefetch.
3117 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
3118 (prescan_loop): Initialize has_prefetch.
3119 (struct prefetch_info): Change prefetch_in_loop and
3120 prefetch_before_loop from bit fields to ints.
3121 (emit_prefetch_instructions): Several small fixes.
3122 (check_dbra_loop): Don't reverse loop that uses prefetch.
3124 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3126 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
3127 * configure.in: Likewise.
3128 * fixinc/check.tpl: Likewise.
3129 * fixinc/fixinc.dgux: Likewise.
3130 * fixinc/fixinc.svr4: Likewise.
3131 * fixinc/fixinc.winnt: Likewise.
3132 * fixinc/fixincl.sh: Likewise.
3133 * fixproto: Likewise.
3134 * configure: Regenerate.
3136 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3138 Basic block renumbering removal:
3139 * basic_block.h (struct basic_block_def): Renamed index to sindex,
3140 added prev_bb and next_bb fields.
3141 (n_basic_blocks): Renamed to num_basic_blocks.
3142 (last_basic_block): New, index of last basic block.
3143 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3144 traversing basic block chain.
3145 (BLOCK_NUM): index -> sindex.
3146 (create_basic_block_structure, create_basic_block): Declaration changed.
3147 (debug_num2bb): Declare.
3148 (expunge_block_nocompact): Declaration removed.
3149 (link_block, unlink_block, compact_blocks): Declare.
3150 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
3151 * cfg.c (entry_exit_blocks): Initialize new fields.
3152 (clear_edges, alloc_block, expunge_block, cached_make_edge,
3153 redirect_edge_pred, dump_flow_info, dump_edge_info,
3154 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
3155 free_aux_for_edges): Modified.
3156 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
3157 (expunge_block_nocompact): Removed.
3158 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
3159 find_unreachable_blocks, create_edge_list, print_edge_list,
3160 verify_edge_list, flow_edge_list_print, remove_fake_successors,
3161 remove_fake_edges, flow_reverse_top_sort_order_compute,
3162 flow_depth_first_order_compute, flow_preorder_transversal_compute,
3163 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
3164 flow_dfs_compute_reverse_execute): Modified.
3165 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
3166 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
3168 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3169 merge_blocks_move_predecessor_nojumps,
3170 merge_blocks_move_successor_nojumps, merge_blocks,
3171 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
3172 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
3173 * cfglayout.c (skip_insns_after_block, label_for_bb,
3174 record_effective_endpoints, scope_to_insns_finalize,
3175 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
3176 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
3177 cfg_layout_duplicate_bb): Modified.
3178 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
3179 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3180 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
3181 flow_loops_find, flow_loop_outside_edge_p): Modified.
3182 * cfgrtl.c (create_basic_block_structure, create_basic_block,
3183 flow_delete_block, compute_bb_for_insn, split_block,
3184 try_redirect_by_replacing_jump, redirect_edge_and_branch,
3185 force_nonfallthru_and_redirect, tidy_fallthru_edge,
3186 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
3187 commit_edge_insertions, commit_edge_insertions_watch_calls,
3188 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3189 purge_all_dead_edges): Modified.
3190 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
3191 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3192 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
3194 * conflict.c (conflict_graph_compute): Modified.
3195 * df.c (FOR_ALL_BBS): Removed.
3196 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3197 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
3198 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
3199 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
3200 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3201 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
3202 * final.c (compute_alignments, final_scan_insn): Modified.
3203 * flow.c (verify_local_live_at_start, update_life_info,
3204 update_life_info_in_dirty_blocks, free_basic_block_vars,
3205 delete_noop_moves, calculate_global_regs_live,
3206 initialize_uninitialized_subregs, allocate_bb_life_data,
3207 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
3208 mark_used_reg, count_or_remove_death_notes): Modified.
3209 * function.c (thread_prologue_and_epilogue_insns): Modified.
3210 * gcse.c (struct null_pointer_info): Change typo of current_block
3212 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3213 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3214 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3215 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3216 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3217 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3218 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3219 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3220 pre_delete, one_pre_gcse_pass, compute_transpout,
3221 invalidate_nonnull_info, delete_null_pointer_checks_1,
3222 free_code_hoist_mem, compute_code_hoist_vbeinout,
3223 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3224 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3225 compute_store_table, build_store_vectors, insert_insn_start_bb,
3226 insert_store, replace_store_insn, free_store_memory, store_motion):
3228 * global.c (global_alloc, global_conflicts, mark_elimination,
3229 build_insn_chain): Modified.
3230 * graph.c (print_rtl_graph_with_bb): Modified.
3231 * haifa-sched.c (sched_init): Modified.
3232 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3233 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3234 if_convert): Modified.
3235 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3236 compute_insert_delete, pre_edge_lcm, compute_available,
3237 compute_farthest, compute_nearerout, compute_rev_insert_delete,
3238 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3240 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3241 * loop.c (loop_dump_aux): Modified.
3242 * predict.c (combine_predictions_for_insn, estimate_probability,
3243 last_basic_block_p, process_note_prediction, process_note_predictions,
3244 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3245 expensive_function_p, estimate_bb_frequencies,
3246 compute_function_frequency): Modified.
3247 * print-rtl.c (print_rtx): Modified.
3248 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3249 get_exec_counts, compute_branch_probabilities, compute_checksum,
3250 branch_prob, find_spanning_tree): Modified.
3251 * recog.c (split_all_insns, peephole2_optimize): Modified.
3252 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3253 convert_regs_1, convert_regs_2, convert_regs): Modified.
3254 * regclass.c (scan_one_insn, regclass): Modified.
3255 * regmove.c (mark_flags_life_zones, regmove_optimize,
3256 combine_stack_adjustments): Modified.
3257 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3258 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3259 * reorg.c (dbr_schedule): Modified.
3260 * resource.c (find_basic_block, init_resource_info): Modified.
3261 * sbitmap.c (sbitmap_intersection_of_succs,
3262 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3263 sbitmap_union_of_preds): Modified.
3264 * sched-deps.c (init_dependency_caches): Modified.
3265 * sched-ebb.c (schedule_ebbs): Modified.
3266 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3267 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3268 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3269 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3270 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3271 ssa_const_prop): Modified.
3272 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3273 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3274 * ssa.c (remove_phi_alternative, find_evaluations,
3275 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3276 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3277 make_regs_equivalent_over_bad_edges,
3278 make_equivalent_phi_alternatives_equival,
3279 compute_conservative_reg_partition,
3280 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3281 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3284 2002-05-16 Mark Mitchell <mark@codesourcery.com>
3286 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3288 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
3290 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3291 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3292 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3293 calling CONSTANT_POOL_ADDRESS_P.
3294 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3295 to decide whether to define __arm__ or __thumb.
3296 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3297 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3299 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3301 * config/arc/arc.h (CPP_PREDEFINES): Remove.
3303 (TARGET_CPU_CPP_BUILTINS): New.
3305 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3307 * cpphash.h (cpp_macro): Move here, and make expansion a union.
3308 * cppmacro.c (cpp_macro): Remove.
3309 (enter_macro_context, replace_args, warn_of_redefinition,
3310 _cpp_create_definition, cpp_macro_definition): Update.
3312 2002-05-16 Jason Merrill <jason@redhat.com>
3314 * config/mips/mips.c (mips_output_external): Don't do sdata
3315 optimization for a variable with DECL_COMDAT set.
3317 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3319 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3320 Cleanups for accepting modifiers on pointers.
3321 Fix predicate typos.
3322 Allow long pointers as well as int pointers.
3324 2002-05-15 Richard Henderson <rth@redhat.com>
3326 * varasm.c (merge_weak): Remove special case for extern and common.
3328 2002-05-15 Matt Hiller <hiller@redhat.com>
3330 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3332 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3333 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3334 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3335 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3336 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3337 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3339 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3341 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3343 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3345 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3346 ("altivec_mfvscr"): Read from VSCR.
3348 Add vscr sets for the following insns: altivec_vctuxs,
3349 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3350 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3351 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3352 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3353 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3354 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3355 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3356 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3357 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3358 altivec_vsum2sws, altivec_vsumsws.
3360 * config/rs6000/rs6000.h: Add VSCR fixed register.
3361 (CALL_REALLY_USED_REGISTERS): Add vscr.
3362 (CALL_USED_REGISTERS): Same.
3363 (FIXED_REGISTERS): Same.
3364 (REG_ALLOC_ORDER): Same.
3365 (reg_class): Add VSCR_REGS.
3366 (REG_CLASS_NAMES): Same.
3367 (REG_CLASS_CONTENTS): Same.
3369 (REGISTER_NAMES): Add vscr.
3370 (DEBUG_REGISTER_NAMES): Same.
3371 (ADDITIONAL_REGISTER_NAMES): Same.
3372 (FIRST_PSEUDO_REGISTER): Increment.
3373 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3375 2002-05-15 Jakub Jelinek <jakub@redhat.com>
3377 * fold-const.c (fold): Fix a typo.
3379 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
3381 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3382 comparison against the highest or lowest integer value before
3383 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3384 transformation and that of an unsigned comparison against 0
3387 2002-05-15 Richard Henderson <rth@redhat.com>
3389 * varasm.c (merge_weak): Error for any weakening after definition.
3390 Adjust weakening after use warning to catch more cases.
3391 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3392 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3394 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
3396 * invoke.texi (-malign-double): Re-add lost warning.
3398 * i386-protos.h (x86_output_mi_thunk): Declare.
3399 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3400 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3402 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3403 when flag_asynchronous_unwind_tables is set.
3405 * flags.h (flag_reorder_functions): Declare.
3406 * function.c (prepare_function_start): Initialize frequnecy.
3407 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3408 * Makefile.in (predict.o): Add dependency on target.h and params.h
3409 * defaults.h (HOT_TEXT_SECTION_NAME,
3410 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3411 * predict.c (choose_function_section): New function.
3412 (estimate_bb_frequencies): Use it.
3413 * toplev.c (flag_reorder_functions): New global variable.
3414 (lang_independent_options): New.
3415 (parse_options_and_default_flags): Set.
3416 * varasm.c (assemble_start_function): Bypass functdion alignment
3417 for never executed functions.
3418 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3419 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3420 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3423 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
3425 * predict.c: Inlude profile.h
3426 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3427 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3428 Use the information about maximal counter in the program.
3430 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
3432 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3433 probably_never_executed_bb_p): New functions.
3434 * cfgcleanup.c (outgoing_edges_match): Use them.
3435 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3436 (maybe_hot_bb_p, probably_cold_bb_p,
3437 probably_never_executed_bb_p): New functions.
3439 * function.h (function): Add new field function_frequency.
3440 * predict.c (compute_function_frequency): New function.
3441 (estimate_probability): Call it.
3443 2002-03-09 Jakub Jelinek <jakub@redhat.com>
3445 PR optimization/5172, optimization/5200
3446 * gcse.c (gcse_main): Disable store_motion.
3448 2002-05-14 Zack Weinberg <zack@codesourcery.com>
3450 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3451 (c_common_nodes_and_builtins): Use it.
3452 (builtin_define_with_value): New function.
3453 (cb_register_builtins): Define __SIZE_TYPE__,
3454 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3455 using builtin_define_with_value. Use consistent notation when
3456 defining __GXX_WEAK__.
3457 (WCHAR_TYPE_SIZE): Don't redefine.
3458 (combine_strings): Don't use WCHAR_TYPE_SIZE.
3460 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3461 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3462 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3463 * tradcpp.c (initialize_builtins): Likewise.
3464 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3466 * c-lex.h (builtin_define_with_value): Prototype.
3467 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3468 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3469 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3471 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3472 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3473 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3474 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3475 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3476 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3477 config/sparc/sol2-bi.h, config/sparc/sparc.h:
3478 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
3479 to __SIZE_TYPE__ etc from all spec strings. When this makes
3480 extra specs empty, delete them.
3482 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
3484 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3485 for PA8000 or generating dwarf2 call frame information.
3486 (output_call): Remove DO_FRAME_NOTES check from return pointer
3488 (following_call): Return 0 when scheduling for PA8000 or generating
3489 dwarf2 call frame information. Revise comment.
3491 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3494 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3495 and __IEEE_FP_INEXACT as appropriate.
3496 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3497 (CPP_SPEC): Remove ieee defines.
3498 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3500 2002-05-14 Richard Henderson <rth@redhat.com>
3502 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3503 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3505 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3507 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3509 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3510 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3511 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3512 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3513 (EXTRA_SPECS): Update.
3514 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3515 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3516 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3517 define TARGET_OS_CPP_BUILTINS if necessary.
3519 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3521 * gcc.c (cpp_options): Must pass -m* and -f* options
3522 to the front end even when only preprocessing.
3523 (cc1_options): Remove redundant -lang-c.
3524 * tradcpp.c (main): Ignore -m options.
3526 * lang-specs.h: Similarly.
3528 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
3530 * genautomata.c (transform_3): Add code for transformation
3531 `(A,B,...)+C -> A+C,B,...'.
3533 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
3535 * final.c (end_final): Do not output profile_arcs constructor, when
3536 no functions are instrumented.
3538 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
3540 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3542 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3544 * doc/install.texi: Remove special markup originally required for
3545 HTML generation with texi2html.
3547 2002-05-14 Andreas Schwab <schwab@suse.de>
3549 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3551 (UNIQUE_SECTION): Define to get small data correctly.
3553 * varasm.c (resolve_unique_section): Add third parameter
3554 flag_function_or_data_sections and use it instead of
3555 flag_function_sections.
3556 (assemble_start_function): Pass flag_function_sections.
3557 (asm_emit_uninitialised): Pass flag_data_sections.
3558 (assemble_variable): Likewise.
3560 2002-05-14 Richard Henderson <rth@redhat.com>
3562 * config/i386/i386.md: Use define_constants for unspec numbers.
3563 * config/i386/i386.c: Likewise.
3565 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3567 * doc/contrib.texi: Update my entry.
3569 2002-05-13 Mark Mitchell <mark@codesourcery.com>
3571 * fixinc/inclhack.def (winidss_valist): Limit applicability.
3572 * fixinc/fixincl.x: Regenerated.
3573 * fixinc/tests/base/math.h: Update.
3574 * fixinc/tests/base/testing.h: Likewise.
3576 2002-05-13 Zack Weinberg <zack@codesourcery.com>
3578 * genattr.c (gen_attr): Don't emit a comma after the last
3581 2002-05-13 Richard Henderson <rth@redhat.com>
3583 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3585 * recog.c (peephole2_optimize): Likewise.
3587 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
3589 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3592 2002-05-13 Jeffrey A Law (law@redhat.com)
3594 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3595 Update prototype and callers.
3596 (propagate_one_insn): Stack pointer adjustments kill MEMs on
3597 the mem_set_list which reference the stack pointer, as do
3598 calls to constant functions as they may clobber outgoing
3601 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3603 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3604 (ia32_multipass_dfa_lookahead): New function.
3606 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3608 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3609 (translate_options): Remove 'V'.
3610 (process_command): Similarly.
3612 * invoke.texi: Remove documentation of 'V'.
3614 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3616 * config/s390/linux.h: Revert 2002-04-22 changes.
3618 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
3620 * config/fr30/fr30.md: Only allow splits of immediate loads
3621 if the destination is a register.
3623 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3625 * Makefile.in (c-common.o, cppinit.o): Update.
3626 * c-common.c: Include except.h.
3627 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3628 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3629 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3630 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3631 CPP_PREDEFINES): Handle here.
3633 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3634 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3635 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3636 TARGET_OS_CPP_BUILTINS.
3637 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3638 (CPP_SPEC, EXTRA_SPECS): Update.
3639 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3640 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3641 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3642 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3643 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3645 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3646 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3648 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3650 * emit-rtl.c (global_rtl): Update comment.
3651 (const_double_htab, const_double_htab_hash,
3652 const_double_htab_hash, lookup_const_double): New.
3653 (const_int_htab_hash, const_int_htab_eq): Remove const
3654 qualifiers, which cause tons of warnings with RTL checking on.
3655 (gen_rtx_CONST_DOUBLE): Deleted.
3656 (const_double_from_real_value): New function - bears some
3657 resemblance to the former immed_real_const_1.
3658 (immed_double_const): Moved here from varasm.c and
3660 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3661 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3662 (gen_rtx): Use immed_double_const.
3663 (init_emit_once): Initialize the const_double_htab. Use
3664 REAL_VALUE_FROM_INT where possible. Can now use
3665 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3666 * varasm.c (struct varasm_status): Remove x_const_double_chain.
3667 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3668 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3669 (init_varasm_status, mark_varasm_status): Don't touch
3670 x_const_double_chain.
3672 * output.h: Delete prototype for clear_const_double_mem.
3673 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
3674 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
3675 const_double_from_real_value, not immed_real_const_1, and use
3676 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
3678 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3679 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3680 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3681 (gen_rtx_REG): Second arg is unsigned.
3683 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3684 (excluded_rtx): New, return true for CONST_DOUBLE.
3685 (genmacro): Write nothing for excluded codes.
3686 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3687 * expr.c (expand_expr): Likewise.
3688 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3690 * toplev.c (rest_of_compilation): Don't call
3691 clear_const_double_mem.
3693 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3694 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3695 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3696 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3697 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3698 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3699 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3700 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3702 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3704 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3706 2002-05-12 Tom Tromey <tromey@redhat.com>
3708 * tree.h (copy_node): Don't mention TREE_PERMANENT.
3710 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3712 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3713 (scan_comma_elt): New function. Accepts whitespace in comma lists.
3714 * gensupport.h: Prototype new routines.
3715 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
3717 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3718 (next_comma_elt): Use scan_comma_elt.
3720 * config/i386/i386.md: Use new attribute notation to break up
3721 long lines in define_attr forms.
3723 2002-05-12 Richard Henderson <rth@redhat.com>
3725 * expr.c (compress_float_constant): New.
3726 (emit_move_insn): Use it.
3727 (float_extend_from_mem): New.
3728 (init_expr_once): Initialize it.
3729 * real.c (exact_real_truncate): New.
3731 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3732 dropped into memory; penalize for size.
3733 (RTX_COSTS): FLOAT_EXTEND is free.
3734 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3735 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3737 2002-05-12 Richard Henderson <rth@redhat.com>
3739 * profile.h (profile_info): Add missing extern to declaration.
3740 * profile.c (profile_info): Define it.
3742 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3744 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3745 used for DImode and TImode.
3747 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3749 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3752 2002-05-11 Zack Weinberg <zack@codesourcery.com>
3754 * config/rs6000/rs6000.c (rs6000_default_long_calls,
3755 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3756 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3757 (rs6000_override_options): Handle -m(no-)longcall.
3758 (init_cumulative_args, output_mi_thunk): Check for both
3759 longcall and shortcall attributes on the function.
3760 (rs6000_attribute_table): Add "shortcall".
3761 (rs6000_handle_longcall_attribute): Update comment.
3762 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3763 altivec_expand_ternop_builtin): Add default clauses to switches
3764 to silence warnings.
3766 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3767 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
3768 (TARGET_OPTIONS): Add longcall and no-longcall.
3770 * config/rs6000/rs6000.md (call_nonlocal_sysv,
3771 call_value_nonlocal_sysv): Split by alternatives. One pair
3772 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3773 the call cookie. The other pair accepts only LR/CTR and has
3776 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3777 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3779 * config/rs6000/rs6000-c.c: New file.
3780 * config/rs6000/t-rs6000-c-rule: New file.
3781 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3782 Prototype rs6000_pragma_longcall.
3784 * doc/extend.texi: Document shortcall attribute.
3785 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3787 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3789 * reorg.c (dbr_schedule): Remove unnecessary test.
3791 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3793 * i386.md (testsi to testqi spliters): New.
3795 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
3797 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3799 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3801 * basic-block.h: New flag EDGE_CAN_FALLTHRU
3802 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3803 that can be made fallthru.
3805 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
3807 * cfglayout.c (cleanup_unconditional_jumps): New static function.
3808 (cfg_layout_initialize): Use it.
3810 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
3812 * config/avr/avr.c (avr_mcu_types): Update supported devices.
3813 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3814 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3816 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3818 * dbxout.c: Fix formatting.
3819 * dependence.c: Likewise.
3821 * diagnostic.c: Likewise.
3822 * doloop.c: Likewise.
3823 * dominance.c: Likewise.
3824 * doschk.c: Likewise.
3825 * dwarf2asm.c: Likewise.
3826 * dwarf2out.c: Likewise.
3827 * dwarfout.c: Likewise.
3829 2002-05-10 Richard Henderson <rth@redhat.com>
3831 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3832 Convert integers constants as needed. Replace "nwords" field with
3834 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3835 * function.h: Fix typo in comment.
3836 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3838 2002-05-10 Roger Sayle <roger@eyesopen.com>
3840 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3841 into the equivalent (signed char)c > 0.
3843 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3845 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3846 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3847 (struct prefetch_info): Fix spelling of member bytes_accessed.
3848 (emit_prefetch_instructions): Make dump messages more regular;
3849 restructure code to add more dump messages; use new macros for
3850 heuristics. (There are no code generation changes in any of this).
3852 2002-05-10 David S. Miller <davem@redhat.com>
3854 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3855 (struct rtx_def): Update unchanging flag comment.
3856 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3857 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3858 to be handled to INSN too.
3859 (dbr_schedule): Likewise.
3860 * resource.c (next_insn_no_annul): Likewise.
3862 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3865 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3867 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3868 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3869 (possibly) work around broken /bin/sh.
3871 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3873 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3874 . as N64/N32 libgcc_s.so subdirs.
3876 2002-05-10 David S. Miller <davem@redhat.com>
3878 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3880 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3882 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3884 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3885 * doc/rtl.texi: Document these macros more accurately.
3886 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3887 JUMP_INSNs and CALL_INSNs.
3888 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3889 or INSN_FROM_TARGET_P if the code is appropriate.
3891 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3893 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3894 before using SYMBOL_REF_FLAG (addr).
3896 * config/avr/avr-protos.h (avr_io_address_p): Declare.
3897 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3898 Make non-static. Update all callers.
3899 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3900 New insns to clear/set/test a single bit in I/O address space.
3902 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3904 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3906 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3908 * Makefile.in: Update.
3909 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3910 builtin_define_std): New.
3911 (c_common_init): Register CPP builtins callback.
3912 * c-common.h (flag_iso, flag_undef): New.
3913 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3914 * c-lex.c: Don't include target.h.
3915 (cb_register_builtins): Move to c-common.c.
3916 (init_c_lex): Don't register hook here.
3917 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3918 (cpp_define, cpp_assert): Remove.
3919 * gcc.c (cc1_options): Pass -undef to front end.
3920 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3921 (TARGET_INITIALIZER): Update.
3922 * target.h (struct cpp_reader): Don't predeclare.
3923 (struct gcc_target): Remove cpp builtin hook.
3924 * tree.c (default_register_cpp_builtins): Remove.
3928 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3930 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3932 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3934 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3935 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3937 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3939 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3940 * config/sparc/libgcc-sparc-glibc.ver: New file.
3941 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3942 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3944 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3947 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3948 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3949 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3951 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3952 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3953 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3954 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3956 2002-05-09 Richard Henderson <rth@redhat.com>
3958 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3959 * config/ia64/ia64.c: Likewise.
3961 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3963 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3964 (save_restore_insns): Likewise.
3965 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3966 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3968 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
3970 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3971 * i386.md: Move scheduling information into new files.
3973 * i386.md (type attribute): Add "rotate" for rotate insns.
3974 (rotate insns): Set type to "rotate".
3975 (various attributes and function units): Treat rotate like shift.
3976 (pent_pair attribute): Only rotates by one bit position are
3978 (sbb insns): Explicitly set pent_pair attribute on a couple
3979 that were missing it.
3981 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3983 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3984 make sure that buffer starts on odd word address.
3985 (sh_va_arg): Skip odd fp registers when reading a double precision
3988 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3990 * tree.h (preserve_data, object_permanent_p, type_precision):
3993 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3995 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3996 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3998 * cpp.texi: Update for removal of obsolete features.
4000 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
4001 Jeffrey A Law (law@redhat.com)
4003 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
4004 the DFA interface for Pentium processors.
4005 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
4006 (attr_pent_pair, ix86_pent_find_pair): Remove.
4007 (ix86_sched_reorder_pentium): Remove.
4008 (ix86_sched_reorder): Remove reordering for Pentium.
4009 * i386.md (Pentium scheduling): Rewrite using DFA description.
4011 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
4013 * cfganal.c (can_fallthru): Fix fast path.
4014 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
4015 with edges to the next block.
4017 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
4018 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
4020 * final.c (end_final): Use C trees to output data structures for profiling.
4022 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
4023 (profile.o): New dependency profile.h
4024 (final.o): New dependency profile.h
4025 * profile.h: New file. New global structure profile_info.
4026 * final.h (count_edges_instrumented_now): Declare.
4027 (current_function_cfg_checksum): Declare.
4028 (function_list): New structure.
4029 (functions_head, functions_tail): New static variables.
4030 (end_final): Emits more data, removed some -ax stuff.
4031 (final): Stores function names and chcksums.
4032 * gcov-io.h (__write_gcov_string): New function.
4033 (__read_gcov_string): New function.
4034 * gcov.c (read_profile): New function.
4035 (create_program_flow_graph): Uses read_profile instead of reading
4037 (read_files): Removed da_file checking, it's done by read_profile now.
4038 * libgcc2.c (bb_function_info): New structure.
4039 (bb): New field in structure, removed some -ax stuff.
4040 (__bb_exit_func): Changed structure of da_file.
4041 * profile.c (count_edges_instrumented_now): New global variable.
4042 (current_function_cfg_checksum): New global variable.
4043 (max_counter_in_program): New global variable.
4044 (get_exec_counts): New function.
4045 (compute_checksum): New function.
4046 (instrument_edges): Sets count_edges_instrumented_now.
4047 (compute_branch_probabilities): Uses get_exec_counts instead of
4049 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
4050 (init_branch_prob): Removed da_file checking, done in get_exec_counts
4052 (end_branch_prob): Removed da_file checking, done in get_exec_counts
4054 * gcov.texi: Updated information about gcov file format.
4056 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4058 * sbitmap.c: Fix formatting.
4060 * scan-decls.c: Likewise.
4061 * sched-deps.c: Likewise.
4062 * sched-ebb.c: Likewise.
4063 * sched-rgn.c: Likewise.
4064 * sched-vis.c: Likewise.
4065 * sdbout.c: Likewise.
4066 * sibcall.c: Likewise.
4067 * simplify-rtx.c: Likewise.
4069 * ssa-ccp.c: Likewise.
4070 * ssa-dce.c: Likewise.
4072 * stor-layout.c: Likewise.
4073 * stringpool.c: Likewise.
4075 2002-05-09 David S. Miller <davem@redhat.com>
4077 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
4079 2002-05-07 David S. Miller <davem@redhat.com>
4081 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
4082 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
4083 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
4084 library implementation clobbers the output before the inputs
4085 are fully consumed, use stack temporary for the output.
4087 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
4089 * config/netbsd.h (CPP_SPEC): Remove.
4090 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
4091 * config/i386/netbsd.h (CPP_SPEC): Define.
4092 * config/ns32k/netbsd.h (CPP_SPEC): Define.
4093 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
4094 * config/sparc/netbsd.h (CPP_SPEC): Define.
4095 * config/vax/netbsd.h (CPP_SPEC): Define.
4097 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4099 * read-rtl.c: Fix formatting.
4101 * recog.c: Likewise.
4102 * regclass.c: Likewise.
4103 * regmove.c: Likewise.
4104 * reg-stack.c: Likewise.
4105 * reload1.c: Likewise.
4106 * reload.c: Likewise.
4107 * resource.c: Likewise.
4108 * rtlanal.c: Likewise.
4110 * rtl-error.c: Likewise.
4112 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
4114 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
4115 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
4117 2002-05-08 Bernd Schmidt <bernds@redhat.com>
4119 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
4120 use __SSE2__ macro instead.
4121 * config/i386/xmmintrin.h: Likewise.
4123 2002-05-08 Janis Johnson <janis187@us.ibm.com>
4125 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
4126 and use it in all invocations of these macros. Clean up comments.
4127 * rtl.c (rtl_check_failed_flag): Add an argument for the name
4128 of the flag access macro whose check failed.
4129 * doc/rtl.texi (Flags): Document additional flag uses.
4131 2002-05-08 Robert Spier <rspier@pobox.com>
4132 Neil Booth <neil@daikokuya.demon.co.uk>
4134 PR preprocessor/6521
4135 * cppfiles.c (handle_missing_header): Don't do anything
4136 different for <> includes.
4138 * cppopts.texi: Update documentation for -MG.
4140 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
4142 * cpplex.c (cpp_interpret_charconst): Truncate as well as
4145 * cpp.texi: Clarify multichar charconst valuation.
4147 2002-05-08 Mark Mitchell <mark@codesourcery.com>
4149 * doc/invoke.texi: Document -mwindiss option.
4151 2002-05-08 Jason Merrill <jason@redhat.com>
4153 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
4155 * dwarf2out.c (gen_type_die): Abort on broken recursion.
4158 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
4161 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
4163 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
4164 little-endian multilibs to override arm/thumb multilibs.
4165 Do not build hardware floating point multilibs, nor apcs-26
4166 multilibs for the Thumb.
4168 2002-05-08 Mark Mitchell <mark@codesourcery.com>
4171 * varasm.c (mark_weak): New function.
4172 (merge_weak): Use it. Do not call declare_weak.
4173 (declare_weak): Use merge_weak.
4175 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4177 * cse.c (dead_libcall_p): Update counts.
4178 (delete_trivially_dead_insns): Update call of dead_libcall_p.
4180 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
4182 * cfglayout.c (function_tail_eff_head): Rename to ...
4183 (function_footer): ... this one.
4184 (unlink_insn_chain): New functions.
4185 (label_for_bb): Only call block_label and emit debug message.
4186 (record_effective_endpoints): Actually unlink the headers and footers.
4187 (fixup_reorder_cahin): Re-insert the unlinked sequences.
4188 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
4189 * cfglayout.h (struct reorder_block_def): New fields footer/header;
4190 remove eff_head/eff_end.
4191 * rtl.h (set_first_insn): Declare.
4192 * emit-rtl.c (set_first_insn): New function.
4194 * cfglayout.c (fixup_reorder_chain): Dump duplicated
4195 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4196 cfg_layout_duplicate_bb): New global function.
4197 (duplicate_insn_chain): New static function.
4198 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4199 cfg_layout_duplicate_bb): Declare.
4200 (struct reorder_block_def): Add "original" field.
4201 * emit-rtl.c (emit_copy_of_insn_after): New function.
4202 * rtl.h (emit_copy_of_insn_after): Declare.
4204 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
4205 (fixup_reorder_chain): properly handle edges to exit block.
4207 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4208 Jan Hubicka <jh@suse.cz>
4210 * basic-block.h (note_prediction_to_br_prob): declare.
4211 * c-semantics.c: Inlucde predit.h
4212 (expand_stmt): predict GOTO_STMT as not taken.
4213 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4214 (cleanup_cfg): Do not free tail_recursion_list.
4215 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4216 (flow_delete_block): Kill predictions past end of basic block.
4217 * output.h (delete_unreachable_blocks): Declare.
4218 * predict.c (predicted_by_p, process_note_predictions,
4219 process_note_prediction, last_block_p): New function.
4220 (estimate_probability): Bypass loop on PRED_CONTINUE;
4221 do not handle noreturn heuristics; kill PRED_RETURN; add
4223 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4224 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4225 * predict.h (IS_TAKEN): New constant.
4226 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4227 * rtl.c (NOTE_INSN_PREDICTION): New.
4228 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4230 (insn_note): add NOTE_INSN_PREDICTION.
4231 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4232 CFG; free tail_recursion_label_list.
4233 * stmt.c: Include predict.h;
4234 (return_prediction): New.
4235 (expand_value_return): Use it.
4236 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4238 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
4240 * config/mips/mips.md: Name the unspecs with define_constant.
4241 (*HILO_delay): Rename to 'hilo_delay' (no star).
4242 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4243 (reload_outdi, reload_outsi): Likewise.
4245 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4247 * toplev.c: Fix formatting.
4249 2002-05-07 Janis Johnson <janis187@us.ibm.com>
4251 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4252 * configure.in (ac_rtlflag_checking): New.
4253 * doc/install.texi (--enable-checking): Document RTL flag checking.
4255 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
4257 * c-common.c (c_common_init): Set options->unsigned_wchar.
4258 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4259 group target dependencies.
4260 (init_builtins, cpp_handle_option): Update.
4261 * cpplex.c (cpp_interpret_charconst): Update.
4262 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4263 signed_char to unsigned_char, group target dependencies.
4264 * defaults.h (WCHAR_UNSIGNED): Remove.
4265 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4267 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4268 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4269 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4270 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4271 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4273 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4275 2002-05-07 Mark Mitchell <mark@codesourcery.com>
4277 * fixinc/inclhack.def (windiss_math1): New fix.
4278 (windiss_math2): Likewise.
4279 (windiss_valist): Likewise.
4280 * fixinc/fixincl.x: Regenerated.
4282 2002-05-07 Andreas Jaeger <aj@suse.de>
4284 * genautomata.c (output_internal_min_issue_delay_func): Add
4285 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4286 (output_internal_trans_func): Likewise.
4288 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
4290 * pa.c (hppa_profile_hook): Use force_reg to get the address
4291 of the profile hook into an appropriate pseudo register.
4293 2002-05-07 Mark Mitchell <mark@codesourcery.com>
4295 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4296 (LINK_START_SPEC): Handle it.
4297 (LINK_OS_SPEC): Likewise.
4298 (CPP_SPEC): Likewise.
4299 (STARTFILE_SPEC): Likewise.
4300 (LIB_SPEC): Likewise.
4301 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
4303 (CRTSAVRES_DEFAULT_SPEC): New macro.
4304 (LIB_WINDISS_SPEC): New macro.
4305 (CPP_OS_WINDISS_SPEC): Likewise.
4306 (STARTFILE_WINDISS_SPEC): Likewise.
4307 (ENDFILE_WINDISS_SPEC): Likewise.
4308 (LINK_START_WINDISS_SPEC): Likewise.
4309 (LINK_OS_WINDISS_SPEC): Likewise.
4310 * config/rs6000/windiss.h: New file.
4312 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
4314 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4316 2002-05-06 David S. Miller <davem@redhat.com>
4318 * config/sparc/sparc.md (shift insns): Do not mask off
4319 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4322 2002-05-06 Richard Henderson <rth@redhat.com>
4325 * expr.c (highest_pow2_factor_for_type): New.
4326 (expand_assignment): Use it.
4328 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
4330 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4332 ("altivec_mfvscr"): Same.
4334 2002-05-06 Janis Johnson <janis187@us.ibm.com>
4336 * rtl.h (struct rtx_def): Update comments.
4337 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
4338 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
4339 RTL_FLAG_CHECK macros with list of expected RTL codes.
4340 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4341 (rtl_check_failed_flag): New.
4342 * reload1.c (reload): Use REG macro before changing rtx to MEM.
4343 (reload_cse_noop_set_p): Check rtx code before using access macro.
4344 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4345 before using access macro.
4347 2002-05-06 Janis Johnson <janis187@us.ibm.com>
4349 * doc/rtl.texi (Flags): Update to reflect current usage.
4351 2002-05-06 Roger Sayle <roger@eyesopen.com>
4354 * fold-const.c (sign_bit_p): New function.
4355 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4356 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4357 Reapply fold when converting (A & C) == C into (A & C) != 0.
4358 (fold_binary_op_with_conditional_arg): Fix typo in comment.
4360 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
4362 * c-common.c (warn_multichar): New.
4363 (c_common_init): Set CPP's warn_multichar.
4364 * c-common.h (warn_multichar): New.
4365 * c-decl.c (warn_multichar): Remove.
4366 * c-lex.c (lex_charconst): Update.
4367 * c-tree.h (warn_multichar): Remove.
4368 * cppexp.c (eval_token): Sign-extend charconst value.
4369 * cppinit.c (cpp_create_reader): Set warn_multichar.
4370 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4371 each character. Update prototype. Sign-extend the result.
4372 * cpplib.h: Fix conditions.
4373 (struct cpp_options): Add new warning flag.
4374 (cpp_interpret_charconst): Update prototype.
4376 * cpp.texi: Update documentation.
4378 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
4380 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4381 Fix typo in usage of allof instead of unit.
4383 2002-05-06 Richard Henderson <rth@redhat.com>
4385 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4386 and any jump or call for IN.
4388 2002-05-06 Bernd Schmidt <bernds@redhat.com>
4390 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4392 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4394 2002-05-06 Roger Sayle <roger@eyesopen.com>
4396 * fold-const.c (lshift-double): Cast the high word to an unsigned
4397 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4398 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4399 avoid compiler warning. (fold): Remove redundant code from
4400 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4402 2002-05-06 Jeff Law <law@redhat.com>
4404 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4405 * pa.c (pa_adjust_cost): Remove all true dependency cost
4406 adjustments. Also remove support for non-DFA scheduling.
4407 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4408 to adjust true dependency costs. Update various comments.
4409 (7100lc, 7200, 7300 scheduling): Simplify by combining the
4410 FP ALU & MPY units into a single unit.
4412 2002-05-06 Catherine Moore <clm@redhat.com>
4414 * config/v850/v850.c (compute_register_save_size): Make sure
4415 to count all of the registers that will be saved.
4417 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4419 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4421 2002-05-06 David S. Miller <davem@redhat.com>
4423 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4424 allow result to overlap input operands in memory.
4426 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
4429 * cpp.texi: Update multichar charconst docs.
4431 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
4433 * cpplex.c (cpp_interpret_charconst): Sign-extend each
4434 character. Don't ignore excess characters. Treat
4435 multicharacter character constants as signed.
4436 (cpp_parse_escape): Clarify diagnostic.
4438 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4440 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4441 use add instead of shift.
4442 (ashldi3_sp64): Likewise.
4443 (ashlsi3_const1, ashldi3_const1): Remove.
4444 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4445 * config/sparc/sparc.c (const1_operand): New.
4447 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
4449 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4451 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4454 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4456 2002-05-05 Richard Henderson <rth@redhat.com>
4458 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4459 memory latency adjustments.
4460 (alpha_variable_issue): Remove.
4461 (alpha_use_dfa_pipeline_interface): New.
4462 (alpha_multipass_dfa_lookahead): New.
4463 * config/alpha/alpha.md: Remove define_function_unit scheduling;
4464 include new dfa scheduling.
4465 (attr type): Add none.
4467 * config/alpha/ev4.md: New.
4468 * config/alpha/ev5.md: New.
4469 * config/alpha/ev6.md: New.
4471 2002-05-05 David S. Miller <davem@redhat.com>
4473 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4475 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
4477 * cse.c: Fix formatting.
4478 * emit-rtl.c: Likewise.
4480 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4482 * genautomata.c (initiate_states): Add additional guard to
4483 initialize `units_array'.
4485 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4487 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4488 process_unit_to_form_the_same_automaton_unit_lists,
4489 form_the_same_automaton_unit_lists
4490 check_unit_distributions_to_automata): New prototypes and
4492 (check_automata): Rename it into `check_automata_insn_issues'.
4493 (unit_decl): New fields `the_same_automaton_unit' and
4494 `the_same_automaton_message_reported_p'.
4495 (unit_decl_t): New typedef.
4496 (the_same_automaton_lists): New gloval variable.
4497 (unit_regexp, unit_set_el, units_array, units_cmp,
4498 output_get_cpu_unit_code_func): Use the typedef.
4499 (evaluate_max_reserv_cycles): Increment
4500 `description->max_insn_reserv_cycles'.
4501 (initiate_states): Don't increment `max_cycles_num'.
4502 (transform_insn_regexps): Move code around transformation of
4503 regexps from `generate'.
4504 (generate): Remove call of `transform_insn_regexps'.
4505 (expand_automata): Call `transform_insn_regexps' and
4506 `check_unit_distributions_to_automata'. Check errors before
4509 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4510 automaton `ultrasparc3_1'.
4512 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
4514 * c-common.c (c_common_init): Set up CPP arithmetic.
4515 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4516 something reasonable for the host.
4517 (sanity_checks): Add checks.
4518 (cpp_read_main_file): Call sanity_checks() from here...
4519 (cpp_post_options): ... not here.
4520 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4521 * cpplib.h (struct cpp_options): New member int_precision.
4523 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4525 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4527 2002-05-04 David S. Miller <davem@redhat.com>
4529 * config/sparc/linux.h, config/sparc/linux64.h
4530 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4532 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4534 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4536 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4539 2002-05-05 Tim Josling <tej@melbpc.org.au>
4541 * treelang; New directory for new sample language treelang.
4543 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4545 * Makefile.in (c-lex.o): Update.
4546 * c-lex.c: Include target.h.
4547 (cb_register_builtins): New.
4548 (init_c_lex): Set builtins callback.
4549 * c-lex.h (cpp_define, cpp_assert): New prototypes.
4550 * cppinit.c (init_builtins): Use callback, including for
4552 * cpplib.h (struct cpp_callbacks): New member.
4553 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4554 (TARGET_INITIALIZER): Update.
4555 * target.h (struct gcc_target): New hook.
4556 * tree.c (default_register_cpp_builtins): New.
4557 * tree.h (default_register_cpp_builtins): New.
4559 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4561 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4563 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4564 (cpp_post_options): Move sanity checks to...
4565 (sanity_checks): New.
4566 * cpplex.c (maybe_read_ucs): Fix prototype.
4567 (parse_string, cpp_parse_escape): Cast for %c format specifier.
4568 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4571 2002-05-04 Bernd Schmidt <bernds@redhat.com>
4573 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4574 builtins. Use V2DI patterns instead of TI for logical operations.
4575 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4576 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4577 (ix86_expand_builtins): Change the pattern used for movntdq.
4578 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4579 sse2_nandv2di3): New patterns.
4580 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4582 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4583 (cvtdq2pd): Correct mode on operand 1.
4584 (sse2_umulsidi3): Describe without unspec.
4585 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4587 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4588 (ashlv2di3): Likewise, from sse2_ashlv2di3.
4589 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4590 ashlv4si3, ashlv2di3): Use SImode for shift count.
4591 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4592 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4594 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4596 (__m128i, __m128d): New macros.
4597 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4598 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4599 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4600 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4601 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4602 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4603 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4604 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4605 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4606 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4607 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4608 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4609 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4610 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4611 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4612 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4613 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4614 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4615 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4616 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4617 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4618 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4619 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4620 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4621 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4622 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4623 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4624 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4625 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4626 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4627 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4628 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4629 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4630 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4631 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4632 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4633 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4635 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4636 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4638 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4640 * dwarf2out.c: Fix formatting.
4641 * varasm.c: Likewise.
4643 2002-05-04 David Edelsohn <edelsohn@gnu.org>
4646 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4647 clobber and use result as temporary value.
4649 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4651 * expr.c (force_operand): Use expand_simple_* to handle more
4654 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4656 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4658 (lex_charconst): Update for change in prototype of
4659 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
4661 * cpphash.h (BITS_PER_CPPCHAR_T): New.
4662 * cppinit.c (cpp_create_reader): Initialize them for no
4663 change in semantics.
4664 (cpp_post_options): Add sanity checks.
4665 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4666 and truncation issues. Calculate in type cppchar_t.
4667 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4668 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
4669 run-time dependent precision correctly. Return whether the
4670 result is signed or not.
4671 * cpplib.c (dequote_string): Use cppchar_t; update.
4672 * cpplib.h (cppchar_signed_t): New.
4673 struct cpp_options): New precision members.
4674 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4675 * cppexp.c (eval_token): Update.
4677 2002-05-03 David S. Miller <davem@redhat.com>
4679 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4680 * config/sparc/sparc.c (sparc_rtx_costs): New function
4681 implementing RTX_COSTS and CONST_COSTS.
4682 * config/sparc/sparc.h (CONST_COSTS): Delete.
4683 (RTX_COSTS_CASES): Define.
4684 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4687 * config/sparc/sparc.md (DFA schedulers): Split out...
4688 * config/sparc/cypress.md, config/sparc/hypersparc.md,
4689 config/sparc/sparclet.md, config/sparc/supersparc.md,
4690 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4692 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4693 checks on it, always defined for Sparc.
4695 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4696 Tweak, and add more detailed comments.
4698 2002-05-03 Zack Weinberg <zack@codesourcery.com>
4700 * Re-apply patch accidentally reverted with
4701 DFA scheduler merge: remove all rules and variables to slurp
4702 source files out of libiberty and rebuild them with HOST_CC.
4703 ($(HOST_PREFIX_1)varray.o): New rule.
4704 (genattrtab rule): Word wrap.
4706 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4708 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4709 (CPP_SUBTARGET_SPEC): Define.
4710 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4711 cpp_subtarget specs.
4712 (CPP_SPEC): Redefine to include %(cpp_subtarget).
4714 2002-05-03 David S. Miller <davem@redhat.com>
4716 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4717 * target.h (struct gcc_target): Delete cycle_display member.
4719 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4720 (rtx_needs_barrier): Delete reference to cycle_display unspec.
4721 (ia64_sched_reorder2): Mention need for cycle display handling
4722 once such notes exist.
4724 2002-05-03 Richard Henderson <rth@redhat.com>
4726 * real.c (etoasc): Strip most trailing zeros for clarity.
4727 * sched-vis.c: Include real.h.
4728 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4729 * Makefile.in (sched-vis.o): Add real.h.
4731 2002-05-03 David S. Miller <davem@redhat.com>
4733 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4736 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
4738 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4739 when we get an out of range literal.
4740 (altivec_expand_ternop_builtin): Same.
4741 (altivec_expand_unop_builtin): Same.
4742 (altivec_expand_builtin): Same, for dss.
4743 (altivec_expand_builtin): Use trees instead of rtl when
4744 determining literal argument validity.
4746 2002-05-03 David S. Miller <davem@redhat.com>
4748 Delete cycle display scheduling hook.
4749 * config/ia64/ia64.c (ia64_cycle_display,
4750 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4751 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4752 and use emit_insn_before instead of ia64_emit_insn_before.
4753 * config/ia64/ia64.md (unspec usage): Delete cycle display.
4754 (cycle_display): Delete insn pattern.
4755 * config/sparc/sparc.md (unspec usage): Delete cycle display.
4756 (cycle_display): Delete insn pattern.
4757 * config/sparc/sparc.c (sparc_cycle_display,
4758 TARGET_SCHED_CYCLE_DISPLAY): Delete.
4759 * doc/md.texi (cycle_display): Don't mention.
4760 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4762 2002-05-03 Richard Henderson <rth@redhat.com>
4764 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4765 * recog.h: Declare them.
4767 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4768 * config/sparc/sparc.md: Use store_data_bypass_p instead.
4769 * config/sparc/sparc-protos.h: Update.
4771 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4773 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4774 -D__arch64__. Add -D_LP64.
4775 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4777 (CPP_ARCH64_SPEC): Likewise.
4778 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4779 (NO_BUILTIN_SIZE_TYPE): Undef.
4781 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
4783 * genautomata.c (min_issue_delay_pass_states): Change return type
4785 (min_issue_delay_pass_states): Change the algorithm.
4786 (min_issue_delay): Set up min_insn_issue_delay for the state.
4787 (output_min_issue_delay_table): Interchange the nested loops and
4788 and initiate min_insn_issue_delay for states.
4790 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
4792 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
4795 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4797 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
4800 2002-05-03 Richard Henderson <rth@redhat.com>
4803 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4804 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4805 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4806 code before JUMP, not EARLIEST.
4808 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
4810 * c-format.c (check_format_info_main): Don't check for presence of
4811 parameter for * width until after operand number has been read,
4812 and only check for it if format parameters are available.
4815 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4817 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4818 (LINK_SPEC): Undef before defining.
4820 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4822 PR preprocessor/6489
4823 * tradcpp.c (fixup_newlines): New.
4824 (main, finclude): Use it.
4826 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4828 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4829 * config/mips/mips.c (mips_unique_section): Strip encoding from
4832 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4834 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4837 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4839 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4840 (Specific): Removed buildstats references.
4841 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4842 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4843 Accomodate Solaris versions beyond 8.
4844 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4845 (Specific, *-*-solaris2.8): Removed, obsolete.
4847 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4850 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4851 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4852 fill leaf_reg_remap with identity.
4853 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4855 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4857 * config/h8300/crti.asm: Remove trailing spaces.
4858 * config/h8300/h8300.c: Likewise.
4859 * config/h8300/lib1funcs.asm: Likewise.
4861 2002-05-02 Jason Merrill <jason@redhat.com>
4863 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4864 * c-decl.c (c_init_decl_processing): Use it.
4865 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4866 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4867 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4869 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4871 * regrename.c: Fix formatting.
4874 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4876 * i386.md (attribute memory): Handle compares properly.
4878 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4880 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4883 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4885 * function.c: Fix formatting.
4887 2002-05-02 Jan Hubicka <jh@suse.cz>
4889 * haifa-sched.c (schedule_insn): Print table of instructions and
4891 (sched_block): Do not print ready list at verbosity level 1.
4892 * sched-vis.c (print_insn): Make global.
4893 * sched-ebb.c (ebb_print_insn): Rename from...
4894 (print_insn): ... this one.
4895 * sched-int.h (print_insn): Declare
4897 2002-05-02 Richard Henderson <rth@redhat.com>
4899 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4900 emitted by cycle_display.
4902 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
4904 * doc/install.texi (*-*-freebsd*): Update to latest status.
4906 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4909 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4910 * config/float-sparc.h: Assume 128-bit long double if
4911 __LONG_DOUBLE_128__ is defined.
4913 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
4915 * genattrtab.c (write_function_unit_info): Add a dummy element
4916 when num_units == 0.
4918 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4920 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4921 TYPE_MODE (double_type_node) instead of DFmode.
4923 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
4925 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4927 * toplev.c (rest_of_compilation): Revert Richard's patch.
4929 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4931 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4933 2002-05-02 Catherine Moore <clm@redhat.com>
4935 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4937 2002-05-02 Kazu Hirata <kazu@hxi.com>
4939 * combine.c: Fix comment typos.
4941 * genautomata.c: Likewise.
4945 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4947 * doc/install.texi: State GNAT version requirements.
4949 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4951 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4952 of the frame pointer or arg pointer register which strict register
4953 checking is not enabled.
4955 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4957 * gcc.dg/altivec-8.c: New.
4959 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4960 PRE_INC and PRE_DEC for altivec modes.
4962 2002-05-01 Bruce Korb <bkorb@gnu.org>
4964 * fixinc/check.tpl(set-writable): make sure the function exists first
4965 * fixinc/inclhack.def(alpha_assert): fix test_text
4966 * fixinc/tests/base/assert.h: add in missing result
4968 2002-05-01 Jeff Law <law@redhat.com>
4970 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4973 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4975 * dbxout.c (dbxout_type): Emit size information for range types,
4976 as well, but only when using GDB extensions.
4978 2002-05-01 Richard Henderson <rth@redhat.com>
4980 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4981 target-independent gnu binutils date test.
4983 2002-05-01 Richard Henderson <rth@redhat.com>
4985 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4986 info before expunging the block.
4988 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4990 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4991 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4992 -M -or -MM is in effect.
4994 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4996 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4997 A29k configurations.
4998 * doc/install.texi: Update to match.
5000 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5003 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
5004 for duplicates. Always loop over whole list.
5006 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5008 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
5010 2002-05-01 Joel Sherrill <joel@OARcorp.com>
5012 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
5015 2002-05-01 Joel Sherrill <joel@OARcorp.com>
5017 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
5019 2002-05-01 David Edelsohn <edelsohn@gnu.org>
5021 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
5022 (nabs_nopower): Same.
5023 (floatdisf2): New pattern.
5024 (absdi2): Convert to define_insn_and_split.
5029 (fix_trunctfdi2): Same.
5030 (fix_trunctfsi2): Same.
5032 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
5034 * doc/install.texi: Update Texinfo version requirement
5037 2002-05-01 Jakub Jelinek <jakub@redhat.com>
5039 PR target/6512, PR target/5628
5040 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
5041 when memory is not aligned.
5042 (movdf_insn_v9only_vis): Likewise.
5043 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
5044 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
5045 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
5047 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
5049 * gcc.dg/altivec-7.c: New.
5051 * config/rs6000/altivec.h: Cleanup.
5053 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
5055 * doc/invoke.texi (Option Summary): Add -mvrsave=.
5056 (RS/6000 and PowerPC Options): Document -mvrsave=.
5058 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
5059 (rs6000_altivec_vrsave_string): Same.
5060 (rs6000_override_options): Call rs6000_parse_vrsave_option.
5061 (rs6000_parse_vrsave_option): New.
5062 (rs6000_stack_info): Only generate vrsave instructions when
5063 TARGET_ALTIVEC_VRSAVE.
5065 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
5066 (rs6000_altivec_vrsave_string): Define extern.
5067 (rs6000_altivec_vrsave): Same.
5068 (TARGET_ALTIVEC_VRSAVE): New.
5070 2002-04-30 Richard Henderson <rth@redhat.com>
5073 * toplev.c (rest_of_compilation): Don't run cross-jump before
5076 2002-04-30 Tom Rix <trix@redhat.com>
5078 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
5079 check which_alternative.
5081 2002-04-30 Kazu Hirata <kazu@hxi.com>
5083 * cpplex.c: Fix comment formatting.
5084 * function.c: Likewise.
5085 * integrate.c: Likewise.
5086 * regrename.c: Likewise.
5087 * sibcall.c: Likewise.
5088 * simplify-rtx.c: Likewise.
5089 * tree-inline.c: Likewise.
5091 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
5093 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
5094 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
5095 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
5096 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
5097 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
5098 * pa/x-ada: New file. Define ADA_CFLAGS.
5100 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
5102 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
5103 from MMIX_LAST_REGISTER_FILE_REGNUM.
5104 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
5105 (struct machine_function): New member highest_saved_stack_register
5106 previously static variable in mmix.c.
5107 (MACHINE_DEPENDENT_REORG): Define.
5108 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
5109 (MMIX_OUTPUT_REGNO): New.
5110 (mmix_target_asm_function_prologue): Move calculation of last used
5111 saved-stack-register into...
5112 (mmix_machine_dependent_reorg): New function. Update to also handle
5114 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
5115 register names, simplify somewhat by new variable regno.
5116 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
5118 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
5119 emitting register names.
5120 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
5121 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
5123 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
5126 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
5128 2002-04-30 Richard Henderson <rth@redhat.com>
5130 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5131 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
5132 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
5133 emit_tfmode_cvt): New.
5134 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
5135 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
5136 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
5137 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
5138 * config/sparc/sparc-protos.h: Update.
5140 2002-04-30 Janis Johnson <janis187@us.ibm.com>
5142 * install.texi (Final install): Add to the list of info to include
5143 in a report of a successful bootstrap, and add link to 3.1 list.
5145 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
5147 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
5148 (mode): Add vector modes
5149 (i387): Kill attribute.
5150 (unit): New attribute.
5151 (length_immediate): Grok new types.
5152 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
5153 (modrm): Use "unit".
5154 (memory): Handle MMX/SSE properly.
5155 (scheduling descriptions): Kill uses of fop1.
5156 (sse, mmx, fp patterns): Set type and mode properly.
5158 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
5160 * pa.c (override_options): Default to PA8000 scheduling.
5161 * doc/invoke.texi (HP-PA options): Mention newly added 7300
5162 scheduling parameter.
5164 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
5165 handling of double precision multiplies.
5167 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
5168 fpdiv and fpsqrt instructions.
5169 (7200 & 7300 scheduling): Fix typo in handling of
5170 store-load and store-store penalties.
5172 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5174 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
5175 mips. Add two missing commas.
5177 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
5179 * doc/contrib.texi (Contributors): Update Paolo Carlini's
5180 and Benjamin Kosnik's entries.
5182 2002-04-29 David S. Miller <davem@redhat.com>
5184 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
5185 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5186 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
5187 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5189 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5191 * combine.c (find_split_point): Use gen_int_mode.
5193 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
5195 Merging code from dfa-branch:
5197 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
5199 * genautomata.c (output_reserv_sets): Fix typo.
5201 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
5203 * genautomata.c (output_reserv_sets): Remove
5204 next_cycle_output_flag.
5206 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
5208 * sched-rgn.c (init_ready_list): Make the DFA code handle
5209 USE/CLOBBER insns in the same way as the traditional
5211 (new_ready): Similarly..
5213 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
5215 * haifa-sched.c (schedule_block): Change the DFA state only after
5218 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
5220 * pa.c (hppa_use_dfa_pipeline_interface): New function.
5221 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5222 (override_options): Add PA7300 scheduling support.
5223 (pa_adjust_cost): Update various comments. Properly
5224 handle anti and output dependencies when using the
5226 (pa_issue_rate): Add PA7300 scheduling support.
5227 (pa_can_combine_p): Call extract_insn before calling
5228 constrain_operands (taken from mainline tree).
5229 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5230 * pa.md (cpu attr): Add 7300. Rewrite pipeline
5231 descriptions using DFA descriptions. Add PA7300
5234 2002-03-30 David S. Miller <davem@redhat.com>
5236 Add UltraSPARC-III DFA scheduling support.
5237 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5238 Update FP conditional move on register insn patterns to use it, as
5240 (define_attr cpu): Add ultrasparc3.
5241 (define_attr us3load_type): New, update integer load patterns to
5242 set it, as appropriate.
5243 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5244 (rest): Add UltraSPARC3 scheduling description.
5245 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5246 (PROCESSOR_ULTRASPARC3): New.
5247 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5248 ({ASM,CPP}_CPU_SPEC): Likewise.
5249 (REGISTER_MOVE_COST): Likewise.
5250 (RTX_COSTS): Likewise.
5251 * config/sparc/sparc.c (sparc_override_options,
5252 sparc_initialize_trampoline, sparc64_initialize_trampoline,
5253 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5254 sparc_issue_rate): Likewise.
5255 * config/sparc/sol2.h: Likewise.
5256 * config/sparc/sol2-sld-64.h: Likewise.
5257 * config/sparc/linux64.h: Likewise.
5259 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
5261 * doc/md.texi: Add comments about usage the latency time for the
5262 different dependencies and about case when two or more conditions
5263 in different define_insn_reservations returns TRUE for an insn.
5265 * doc/md.texi: Add reference for automaton based pipeline
5268 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
5270 * doc/passes.texi: Add missed information about genattrtab.
5272 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
5274 * genautomata.c (output_automata_list_transition_code): Check
5275 automata_list on NULL.
5277 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
5279 * genautomata.c (output_insn_code_cases,
5280 output_automata_list_min_issue_delay_code,
5281 output_automata_list_transition_code,
5282 output_automata_list_state_alts_code): Comment the functions.
5284 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
5286 * genautomata.c (automata_list_el_t): New typedef.
5287 (get_free_automata_list_el,free_automata_list_el,
5288 free_automata_list, automata_list_hash, automata_list_eq_p,
5289 initiate_automata_lists, automata_list_start, automata_list_add,
5290 automata_list_finish, finish_automata_lists,
5291 output_insn_code_cases, output_automata_list_min_issue_delay_code,
5292 output_automata_list_transition_code,
5293 output_automata_list_state_alts_code, add_automaton_state,
5294 form_important_insn_automata_lists): New functions and prototypes.
5295 (insn_reserv_decl): Add members important_automata_list and
5297 (ainsn): Add members important_p.
5298 (automata_list_el): New structure.
5299 (first_free_automata_list_el, current_automata_list,
5300 automata_list_table): New global variables.
5301 (create_ainsns): Initiate member important_p.
5302 (output_internal_min_issue_delay_func): Generate the switch and
5303 call output_insn_code_cases.
5304 (output_internal_trans_func, output_internal_state_alts_func):
5306 (generate): Call initiate_automata_lists.
5307 (automaton_states): New global variable.
5308 (expand_automata): Call form_important_insn_automata_lists.
5309 (write_automata): Call finish_automata_lists.
5311 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
5313 * genautomata.c (add_excls, add_presence_absence): Check that
5314 cpu units in the sets belong the same automaton.
5316 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5317 about that cpu units in the sets belong the same automaton.
5319 * doc/md.texi: Ditto.
5321 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
5322 Nitin Gupta <niting@noida.hcltech.com>
5324 * config/sh/sh.c (sh_use_dfa_interface): New function.
5326 (sh_issue_rate): New Function.
5327 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5328 TARGET_SCHED_ISSUE_RATE: define.
5330 * config/sh/sh.md: Add DFA based pipeline description for SH4.
5332 (define_attr insn_class): New attribute used for DFA
5334 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5335 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5336 cmpeqdi_t): Likewise.
5338 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5339 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5341 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5343 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
5345 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5348 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
5350 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5351 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5353 (output_dfa_start_func): Initiate new variable insn_codes_length,
5354 (write_automata): Output definition of the new variable.
5356 2001-10-02 David S. Miller <davem@redhat.com>
5358 * haifa-sched.c (advance_one_cycle): New function.
5359 (schedule_block): Use it.
5360 (queue_to_ready): Use it, and also make sure to advance the DFA
5361 state on all stall cycles, not just those where insn_queue links
5364 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
5366 * haifa-sched.c (max_issue): Remove last_p argument. Only return
5367 non-zero if the highest-priority instruction could be scheduled.
5368 (choose_ready): Remove last argument from max_issue call.
5370 2001-09-28 David S. Miller <davem@redhat.com>
5372 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5373 ultrasparc and 3 for other multi-issue sparcs.
5375 2001-09-27 David S. Miller <davem@redhat.com>
5377 * config/sparc/sparc.md (cycle_display): New pattern.
5378 * config/sparc/sparc.c (sparc_cycle_display): New.
5379 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5381 2001-09-25 David S. Miller <davem@redhat.com>
5383 Convert all of Sparc scheduling to DFA
5384 * config/sparc/sparc.md: Kill all define_function_unit
5385 directives and replace with DFA equivalent.
5386 * config/sparc/sparc.c (ultrasparc_adjust_cost,
5387 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5388 ultra_fpmode_conflict_exists, ultra_find_type,
5389 ultra_build_types_avail, ultra_flush_pipeline,
5390 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5391 ultrasparc_variable_issue, ultrasparc_sched_init,
5392 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5393 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5394 ultra_cur_hist, ultra_cycles_elapsed): Kill.
5395 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5396 ultrasparc_store_bypass_p): New.
5397 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5400 2001-09-24 David S. Miller <davem@redhat.com>
5402 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5403 ready->vec[foo] not ready[foo].
5405 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
5407 * doc/md.texi: Correct examples for define_insn_reservations
5410 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
5412 * genautomata.c (create_automata): Print message about creation of
5414 (generate): Remove printing meease about creation of
5417 2001-09-05 David S. Miller <davem@redhat.com>
5419 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5420 * config/sparc/linux64.h: Likewise.
5422 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
5424 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5425 schedule_block, sched_init, sched_finish): Add missed calls of
5426 use_dfa_pipeline_interface.
5428 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5431 * sched-vis.c (get_visual_tbl_length): Ditto.
5433 2001-08-27 Richard Henderson <rth@redhat.com>
5435 * genattr.c (main): Emit state_t even when not doing scheduling.
5437 2001-08-27 Richard Henderson <rth@redhat.com>
5439 * genautomata.c (expand_automata): Always create a description.
5441 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
5443 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5444 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5445 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5448 * genattr.c (main): New variable num_insn_reservations. Increase
5449 it if there is DEFINE_INSN_RESERVATION. Output automaton based
5450 pipeline hazard recognizer interface.
5452 * genattrtab.h: New file.
5454 * genattrtab.c: Include genattrtab.h.
5455 (attr_printf, check_attr_test, make_internal_attr,
5456 make_numeric_value): Move protypes into genattrtab.h. Define them
5458 (num_dfa_decls): New global variable.
5459 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5460 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5461 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5462 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
5464 * genautomata.c: New file.
5466 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5468 * sched-int.h: (curr_state): Add the external definition for
5469 automaton pipeline interface.
5470 (haifa_insn_data): Add comments for members blockage and units.
5472 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5473 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5474 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5475 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5476 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5477 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5478 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5480 (TARGET_SCHED): Use the new macros.
5482 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5483 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5484 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5485 dfa_bubble): New members in gcc_target.sched.
5487 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5488 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5489 (insn_queue): Redefine it as pointer to array.
5490 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5492 (max_insn_queue_index_macro_value): New variable.
5493 (curr_state, dfa_state_size, ready_try): New varaibles for
5494 automaton interface.
5495 (ready_element, ready_remove, max_issue): New function prototypes
5496 for automaton interface.
5497 (choose_ready): New function prototype.
5498 (insn_unit, blockage_range): Add comments.
5499 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5500 FUNCTION_UNITS_SIZE == 0.
5501 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5502 actual_hazard, potential_hazard): Add comments.
5503 (insn_cost): Use cost -1 as undefined value. Remove
5504 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
5506 (ready_element, ready_remove): New functions for automaton
5508 (schedule_insn): Add new code for automaton pipeline interface.
5509 (queue_to_ready): Add new code for automaton pipeline interface.
5510 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5511 (debug_ready_list): Print newline when the queue is empty.
5512 (max_issue): New function for automaton pipeline interface.
5513 (choose_ready): New function.
5514 (schedule_block): Add new code for automaton pipeline interface.
5515 Print ready list before scheduling each insn.
5516 (sched_init): Add new code for automaton pipeline interface.
5517 Initiate insn cost by -1.
5518 (sched_finish): Free the current automaton state and finalize
5519 automaton pipeline interface.
5521 * sched-rgn.c: Include target.h.
5522 (init_ready_list, new_ready, debug_dependencies): Add new code for
5523 automaton pipeline interface.
5525 * sched-vis.c: Include target.h.
5526 (get_visual_tbl_length): Add code for automaton interface.
5527 (target_units, print_block_visualization): Add comments.
5529 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5530 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5531 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5532 (getruntime.o, genautomata.o): New entries.
5533 (genattrtab.o): Add new dependency file genattrtab.h.
5534 (genattrtab): Add new dependencies. Link it with `libm.a'.
5535 (getruntime.o, hashtab.o): New entries for canadian cross.
5537 * doc/md.texi: Description of automaton based model.
5539 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5541 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5542 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5543 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5544 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5545 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5546 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5547 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5549 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5550 MAX_DFA_ISSUE_RATE): New macro descriptions.
5552 * doc/contrib.texi: Add dfa based scheduler contribution.
5554 * doc/gcc.texi: Add more information about genattrtab.
5556 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5558 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5559 adjust_address_nv call.
5561 2002-04-29 Janis Johnson <janis187@us.ibm.com>
5563 * doc/install.texi (Testing): Provide additional information, and
5564 a stronger encouragement, for running the testsuites.
5566 2002-04-29 DJ Delorie <dj@redhat.com>
5568 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5569 given in upper case.
5571 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5573 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5574 Solaris 2 <widec.h> if missing.
5575 * fixinc/fixincl.x: Regenerate.
5576 * fixinc/tests/base/widec.h: New file.
5578 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
5580 * toplev.c (f_options): Add "profile" switch so that
5581 -fno-profile can be used to disable -p.
5583 2002-04-29 Bernd Schmidt <bernds@redhat.com>
5585 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5587 * tree.c (build_common_tree_nodes_2): Likewise.
5588 * tree.h (enum tree_index): Likewise.
5589 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5591 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5593 (init_mmx_sse_builtins): Initialize SSE2 builtins.
5594 (ix86_expand_builtin): Add support for SSE2 builtins.
5595 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5596 (VALID_SSE_REG_MODE): Use it.
5597 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5598 (enum ix86_builtins): Add SSE2 builtins.
5599 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5600 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5601 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5602 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5603 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5604 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5605 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5606 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5607 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5608 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5609 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5610 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5611 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5612 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5613 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5614 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5615 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5616 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5617 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5618 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5619 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5620 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5621 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5622 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5623 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5624 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5625 lfence_insn): New patterns.
5626 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5627 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5629 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
5631 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5633 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5635 * doc/contrib.texi (Contributors): Add Paolo Carlini and
5637 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5638 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5639 and CPU instead of cpu.
5641 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5643 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5645 (lang_independent_options): Add -fif-conversion, -fif-conversion2
5646 (rest_of_compilation): Do if conversion only when asked for.
5647 (parse_options_and_default_flags): Set new variables to 1 for -O1
5648 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5650 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5652 * i386.c (dbx64_register_map): Fix typo.
5654 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5656 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5657 real_one_half, real_bb_freq_max): New static variables.
5658 (debug_profile_bbauxs): Kill.
5659 (process_note_predictions): Kill unused variable.
5660 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5662 (propagate_freq): Use REAL_ARITHMETICS.
5663 (estimate_bb_frequencies): Likevise; init new static variables.
5664 * Makefile.in (predict.o): Add dependency on real.h
5666 2002-04-28 David S. Miller <davem@redhat.com>
5669 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5670 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
5671 several {reads,writes} instead.
5672 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5675 2002-04-27 David S. Miller <davem@redhat.com>
5678 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5681 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5682 including signal.h and sys/ucontext.h, not needed.
5684 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
5686 * varasm.c (output_constant_def): Correct test for not calling
5687 ENCODE_SECTION_INFO for INTEGER_CST.
5689 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
5691 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5692 keep most cases as function eval_token.
5693 (eval_token): New function.
5694 (_cpp_parse_expr): Read token here for improved diagnostics.
5695 Don't use op_as_text. Detect bad ':' here.
5696 (reduce): Don't detect bad ':' here.
5697 (op_as_text): Remove.
5698 * cpphash.h (_cpp_test_assertion): Change prototype.
5699 * cpplib.c (_cpp_test_assertion): Change prototype.
5701 2002-04-28 Richard Henderson <rth@redhat.com>
5704 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5705 (ggc_mark_rtx_children): New.
5707 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5710 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5711 after call peepholes for UltraSPARC.
5712 (call + jump 64-bit peepholes): Remove.
5714 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5717 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5718 result as temporary value.
5720 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5723 * toplev.c (rest_of_compilation): Only run regrename and copy
5724 propagation if optimizing.
5726 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5728 PR optimization/6475
5729 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5730 register of REGNO_DECL (i).
5731 * Makefile.in (reload1.o): Add $(TREE_H).
5733 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
5735 * cppexp.c (lex): Update to use state.skip_eval.
5736 (struct op): Remove prio and flags members.
5737 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5738 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5739 (LEFT_ASSOC): New macro.
5740 (optab): New table of operator priorities and flags.
5742 (_cpp_parse_expr): Clean up logic. Return bool. Use a
5743 malloc-ed parser stack.
5744 (reduce): New; reduce the operator stack.
5745 (_cpp_expand_op_stack): Expand the operator stack as necessary.
5746 * cpphash.h (struct op): Predeclare.
5747 (struct cpp_reader): New members op_stack, op_limit.
5748 (struct lexer_state): New member skip_eval.
5749 (_cpp_parse_expr): Update.
5750 (_cpp_expand_op_stack): New.
5751 * cpplib.c (do_if): Update.
5752 * cppinit.c (cpp_create_reader): Create op stack.
5753 (cpp_destroy): And destroy it.
5754 * cpplib.h (CPP_LAST_CPP_OP): Correct.
5755 (TTYPE_TABLE): Correct.
5757 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5760 * c-decl.c (duplicate_decls): Call merge_weak.
5761 * c-pragma.c (apply_pragma_weak): Warn about misuse.
5762 * output.h (merge_weak): Prototype merge_weak.
5763 * varasm.c (merge_weak): New function.
5764 (declare_weak): Make sure we don't give an error on VAR_DECLs.
5765 Mark RTL with SYMBOL_REF_WEAK.
5767 2002-04-27 Kurt Garloff <garloff@suse.de>
5769 * tree-inline.c (inlinable_function_p): Improve heuristics
5770 by using a smoother function to cut down allowable inlinable size.
5771 * param.def: Add parameters max-inline-insns-single,
5772 max-inline-slope, min-inline-insns that determine the exact
5773 shape of the above function.
5774 * param.h: Likewise.
5776 2002-04-26 Richard Henderson <rth@redhat.com>
5778 * c-parse.in (malloced_yyss, malloced_yyvs): New.
5779 (yyoverflow): Re-add. Set them.
5780 (free_parser_stacks): New.
5781 * c-common.h: Declare it.
5782 * c-lex.c (c_common_parse_file): Call it.
5784 2002-04-26 Richard Henderson <rth@redhat.com>
5786 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5787 for fallthru search.
5789 2002-04-26 Eric Christopher <echristo@redhat.com>
5791 PR optimization/3700
5792 * config/mips/mips.c (mips_issue_rate): Define. New function.
5793 (TARGET_SCHED_ISSUE_RATE): Use.
5795 2002-04-25 David S. Miller <davem@redhat.com>
5798 * reorg.c (optimize_skip): Do not allow exception causing
5799 instructions to be considered for delay slots.
5800 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5801 (relax_delay_slots): Do not try to consider exception causing
5802 instructions as redundant.
5804 2002-04-26 Richard Henderson <rth@redhat.com>
5807 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5809 2002-04-26 Mark Mitchell <mark@codesourcery.com>
5812 * config/i386/i386.md (untyped_call): Return the value in a float
5813 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5816 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
5818 * tree.c (tree_int_cst_lt): Compare constants whose types differ
5819 in unsigned-ness correctly.
5821 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5823 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5824 portable runtime model.
5826 2002-04-26 Richard Henderson <rth@redhat.com>
5828 * c-parse.in (yyoverflow): Revert.
5830 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5831 Richard Henderson <rth@redhat.com>
5833 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5834 result as temporary value.
5836 2002-04-26 Richard Henderson <rth@redhat.com>
5839 * c-common.c (fix_string_type): Split out of ...
5840 (combine_strings): ... here. Take a varray, not a tree list.
5841 (c_expand_builtin_printf): Use fix_string_type.
5842 * c-common.h: Update decls.
5843 * c-parse.in (string): Remove. Update all uses to use STRING
5844 instead, and not call combine_strings.
5847 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5848 (build_asm_stmt): Likewise.
5849 * objc/objc-act.c (my_build_string): Use fix_string_type.
5850 (build_objc_string_object): Build varray for combine_strings.
5852 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5854 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5857 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5859 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5860 (HAVE_NO_R_OPERAND): Remove.
5861 (HAVE_VALUE): Remove.
5862 (op_to_prio): Update.
5863 (UNARY): Don't alter flags.
5864 (_cpp_parse_expr): want_value used to indicate whether
5865 a number or unary operator is expected next. Distinguish
5866 unary and binary +/-.
5867 (op_as_text): Update for unary operators.
5869 2002-04-25 Richard Henderson <rth@redhat.com>
5872 * c-parse.in (yyoverflow): New.
5874 2002-04-25 Richard Henderson <rth@redhat.com>
5877 * c-common.c (shorten_compare): Simplfy conditions leading to
5878 the generation of a warning.
5880 2002-04-25 Richard Henderson <rth@redhat.com>
5883 * expmed.c (extract_bit_field): Fall through to generic code rather
5884 than aborting on subreg special case.
5886 2002-04-25 David S. Miller <davem@redhat.com>
5888 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5889 for DECL being NULL.
5891 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5893 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5895 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
5897 * c-decl.c (grokdeclarator): Remove outdated ??? note
5898 on invalid declaration of flexible array members.
5900 2002-04-25 Richard Henderson <rth@redhat.com>
5902 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5904 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5906 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5907 needed by the compiler, even if they are used as global regs.
5909 2002-04-25 Matt Hiller <hiller@redhat.com>
5911 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5913 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5914 of the corresponding functions.
5915 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5918 2002-04-25 Matt Hiller <hiller@redhat.com>
5920 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5922 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5923 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5924 registers, adjust comment accordingly.
5925 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5926 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5927 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5928 for coprocessor registers.
5929 (ADDITIONAL_REGISTER_NAMES): Include
5930 ALL_COP_ADDITIONAL_REGISTER_NAMES.
5932 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5933 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5934 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5935 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5936 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5938 (mips_char_to_class): Adjust comment to include coprocessor
5941 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5943 (mips_reg_names, mips_regno_to_class): Include coprocessor
5945 (mips_sw_reg_names): Ditto, make non-static.
5946 (mips_move_1word): Handle moves to and from coprocessor registers.
5947 (mips_move_2words): Handle moves to and from coprocessor
5949 (mips_class_max_nregs, mips_register_move_cost): Handle
5950 coprocessor register classes.
5951 (override_options): Initialize mips_char_to_class and
5952 mips_hard_regno_mode_ok properly for coprocessor registers.
5954 * config/mips/mips.md (movdi_internal, movdi_internal2,
5955 movsi_internal1, movsi_internal2): Add constraint-sets for
5956 coprocessor registers.
5957 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5958 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5960 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5961 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5963 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5964 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5966 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5967 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5970 * doc/tm.texi: Document feature.
5972 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5974 * integrate.c (function_attribute_inlinable_p): Simplify.
5975 Check the table pointer is not NULL.
5977 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5979 * doc/c-tree.texi: Fix typo in introduction.
5981 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5983 * c-common.h (c_common_parse_file): Update.
5984 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5985 * c-lex.c (YYDEBUG): Get from c-lex.h.
5986 (c_common_parse_file): Update.
5987 * c-lex.h (YYDEBUG, yydebug): New.
5988 * c-parse.in (YYDEBUG): Get from c-lex.h.
5989 (c_set_yydebug): Remove.
5990 * c-tree.h (c_set_yydebug): Remove.
5991 * langhooks-def.h (lhd_do_nothing_i): New.
5992 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5993 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5994 * langhooks.c (lhd_do_nothing_i): New.
5995 (lhd_set_yydebug): Remove.
5996 * langhooks.h (struct lang_hooks): Update.
5997 * toplev.c (set_yydebug): New.
5998 (compile_file): Update call to parse_file hook.
5999 (decode_d_option): Update.
6001 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
6003 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
6005 * loop.c (load_mems): Don't change the interface of called functions.
6007 * calls.c (expand_call): Take current_function_pretend_args_size
6008 into account when setting argblock for sibcalls.
6010 2002-04-24 Matt Hiller <hiller@redhat.com>
6012 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
6015 * cpplex.c (skip_line_comment): Process comment one multibyte
6016 character at a time rather than one char at a time, if
6018 (parse_string): Process string one multibyte character at a time
6019 rather than one char at a time, if appropriate.
6020 * c-lex.c (lex_string): Lex and copy multibyte strings
6022 * cpplib.h (cppchar_t): Change to unsigned.
6024 2002-04-24 Richard Henderson <rth@redhat.com>
6027 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
6030 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
6032 * sh.c (sh_va_arg): If argument was passed by reference,
6033 dereference the pointer.
6035 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6037 * sh.md (divsi3_i4_media): Use match_operand for input values
6038 rather than hard registers.
6039 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
6040 unnecessarily through hard registers. Keep copies of pseudo
6041 registers outside of the libcall sequence.
6043 * sh.md (casesi_shift_media): Add modes.
6045 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
6048 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
6050 * attribs.c (c_common_attribute_table): Move table and handlers
6052 (format_attribute_table, lang_attribute_table,
6053 lang_attribute_common): Remove.
6054 (init_attributes): Replace NULL pointers with pointers to the
6056 (handle_packed_attribute, handle_nocommon_attribute,
6057 handle_common_attribute, handle_noreturn_attribute,
6058 handle_noinline_attribute, handle_always_inline_attribute,
6059 handle_used_attribute, handle_unused_attribute,
6060 handle_const_attribute, handle_transparent_union_attribute,
6061 handle_constructor_attribute, handle_destructor_attribute,
6062 handle_mode_attribute, handle_section_attribute,
6063 handle_aligned_attribute, handle_weak_attribute,
6064 handle_alias_attribute, handle_visibility_attribute,
6065 handle_no_instrument_function_attribute, handle_malloc_attribute,
6066 handle_no_limit_stack_attribute, handle_pure_attribute,
6067 handle_deprecated_attribute, handle_vector_size_attribute,
6068 vector_size_helper): Move to c-common.c.
6069 * c-common.c (c_common_attribute_table,
6070 handle_packed_attribute, handle_nocommon_attribute,
6071 handle_common_attribute, handle_noreturn_attribute,
6072 handle_noinline_attribute, handle_always_inline_attribute,
6073 handle_used_attribute, handle_unused_attribute,
6074 handle_const_attribute, handle_transparent_union_attribute,
6075 handle_constructor_attribute, handle_destructor_attribute,
6076 handle_mode_attribute, handle_section_attribute,
6077 handle_aligned_attribute, handle_weak_attribute,
6078 handle_alias_attribute, handle_visibility_attribute,
6079 handle_no_instrument_function_attribute, handle_malloc_attribute,
6080 handle_no_limit_stack_attribute, handle_pure_attribute,
6081 handle_deprecated_attribute, handle_vector_size_attribute,
6082 vector_size_helper): Move from attribs.c.
6083 * c-common.h (c_common_attribute_table,
6084 c_common_format_attribute_table): New.
6085 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6086 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6087 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
6088 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
6089 (LANG_HOOKS_INITIALIZER): Update.
6090 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
6091 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
6092 * target.h: Update comment.
6093 * tree.c (default_target_attribute_table): Remove.
6094 * tree.h (default_target_attribute_table, format_attribute_table,
6095 lang_attribute_table, lang_attribute_common): Remove.
6097 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6098 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6100 2002-04-24 Jason Merrill <jason@redhat.com>
6102 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
6103 * dwarf2out.c (dwarf_attr_name): Support it.
6104 (gen_array_type_die): Emit it.
6105 (lookup_type_die): No special handling for VECTOR_TYPE.
6106 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
6108 2002-04-24 Richard Henderson <rth@redhat.com>
6110 * config/mips/mips.md (movdi_usd): Renumber.
6112 2002-04-24 David S. Miller <davem@redhat.com>
6115 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
6116 32-bit Sparc and current_function_returns_struct is true.
6118 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
6120 * loop.c (canonicalize_condition): Use gen_int_mode.
6122 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
6124 * config/rs6000/altivec.h: Cleanup file. Add non individual
6146 (vec_vcmpequb): New.
6147 (vec_vcmpequh): New.
6148 (vec_vcmpequw): New.
6149 (vec_vcmpeqfp): New.
6150 (vec_vcmpgefp): New.
6151 (vec_vcmpgtub): New.
6152 (vec_vcmpgtsb): New.
6153 (vec_vcmpgtuh): New.
6154 (vec_vcmpgtsh): New.
6155 (vec_vcmpgtuw): New.
6156 (vec_vcmpgtsw): New.
6157 (vec_vcmpgtfp): New.
6158 (vec_vcmpgefp): New.
6163 (vec_vexptefp): New.
6168 (vec_lde): Add vector float variant.
6173 (vec_vmhaddshs): New.
6195 (vec_vmladduhm): New.
6196 (vec_vmhraddshs): New.
6198 (vec_vmsummbm): New.
6199 (vec_vmsumuhm): New.
6200 (vec_vmsumshm): New.
6201 (vec_vmsumuhs): New.
6202 (vec_vmsumshs): New.
6211 (vec_vnmsubfp): New.
6229 (vec_vrsqrtefp): New.
6240 (vec_vspltisb): New.
6241 (vec_vspltish): New.
6242 (vec_vspltisw): New.
6267 (vec_vsum4ubs): New.
6268 (vec_vsum4sbs): New.
6269 (vec_vsum4shs): New.
6270 (vec_vsum2sws): New.
6281 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
6284 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6285 added literals from substracted literals.
6286 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6287 (fold) [associate]: Preserve MINUS_EXPR if needed.
6289 2002-04-23 Zack Weinberg <zack@codesourcery.com>
6291 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6294 2002-04-23 Tom Tromey <tromey@redhat.com>
6296 * gcc.c: Added --resource. For PR java/6314.
6298 2002-04-23 David O'Brien <obrien@FreeBSD.org>
6300 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6301 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6304 2002-04-23 David O'Brien <obrien@FreeBSD.org>
6306 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6308 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
6310 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6312 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6313 (ix86_expand_clrstr): Fix typo.
6314 * loop.c (gen_load_of_final_value): New.
6315 (loop_givs_rescan, strength_reduce, check_dbra_loop):
6318 2002-04-23 Roger Sayle <roger@eyesopen.com>
6320 * builtins.c (builtin_memset_gen_str): New function.
6321 (expand_builtin_memset): Optimize the case of constant length, but
6324 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
6326 * config/rs6000/altivec.h (vec_step): Remove extraneous
6328 (vec_ctu): Cast return.
6330 2002-04-23 Alan Modra <amodra@bigpond.net.au>
6333 * function.h: (struct function): Add profile_label_no field.
6334 (current_function_profile_label_no): Define.
6335 * function.c: (profile_label_no): New static var.
6336 (expand_function_start): Increment it, and copy to
6337 current_function_profile_label_no.
6338 * output.h (profile_label_no): Delete.
6339 * final.c (profile_label_no): Delete.
6340 (profile_function): Use current_function_profile_label_no.
6341 (final_end_function): Don't increment profile_label_no here.
6342 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6343 profile_label_no with current_function_profile_label_no.
6344 * config/pa/pa.c (current_function_number): Delete.
6345 (pa_output_function_prologue): Don't output profile label here.
6346 (hppa_profile_hook): Use label_no param rather than
6347 current_function_number.
6348 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6349 * config/pa/pa.h: .. here.
6350 (FUNCTION_PROFILER): Output profile label here.
6352 2002-04-22 Eric Christopher <echristo@redhat.com>
6354 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6355 patch of 2002-04-09 due to binutils issues.
6356 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6358 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6360 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6361 constraint to 'o' for m=r and r=m alternatives.
6362 ("*movv8hi_internal1"): Same.
6363 ("*movv16qi_internal1"): Same.
6364 ("*movv4sf_internal1"): Same.
6366 2002-04-22 Janis Johnson <janis187@us.ibm.com>
6368 * rtl.h (RTX_FLAG): New macro.
6369 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6370 * final.c (alter_subreg): Use macro to access rtx flag.
6371 * integrate.c (copy_rtx_and_substitute): Use new access macro.
6372 * print-rtl.c (print_rtx): Use new access macro.
6374 * cse.c (insert): Check rtx code before accessing flag.
6376 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6377 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6378 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6379 convert_const_symbol_ref, make_canonical, make_alternative_compare,
6380 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6381 simplify_test_exp, optimize_attrs, simplify_by_exploding,
6382 find_and_mark_used_attributes, unmark_used_attributes,
6383 add_values_to_cover, simplify_with_current_value,
6384 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6385 copy_rtx_unchanging, main): Use new access macros.
6387 2002-04-22 Tom Rix <trix@redhat.com>
6389 * expmed.c (init_expmed): Generate shifted constant once.
6391 2002-04-22 Zack Weinberg <zack@codesourcery.com>
6393 * c-lex.c (lex_charconst): Call convert to get constant in
6394 proper type; don't just smash the type field.
6397 * config.gcc: Add list of obsolete configurations. Disallow
6398 building these without --enable-obsolete.
6399 * doc/install.texi: Document --enable-obsolete and obsoletion
6400 policy. Mention obsoletion of individual targets in
6403 2002-04-22 Richard Henderson <rth@redhat.com>
6405 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6407 2002-04-22 Mark Mitchell <mark@codesourcery.com>
6410 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6411 (walk_fixup_memory_subreg): Likewise.
6412 (fixup_var_refs_insn): Adjust accordingly.
6413 (fixup_var_refs_1): Likewise.
6415 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
6417 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6418 LIBPATH_ARCH64_SPEC): Define.
6419 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6420 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6421 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6422 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6424 2002-04-22 Joel Sherrill <joel@OARcorp.com>
6426 * gthr-rtems.h: Correct prototypes to remove warnings.
6428 2002-04-22 Richard Henderson <rth@redhat.com>
6431 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6433 * gcse.c (free_insn_expr_list_list): New.
6434 (clear_modify_mem_tables): Use it. Fix bit set usage.
6435 (canon_list_insert): Use EXPR_LISTs for expressions.
6436 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6438 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
6440 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
6441 file change and include code to _cpp_pop_buffer.
6442 * cpphash.h (struct pending_option): Predeclare.
6443 (struct cpp_reader): New member next_include_file.
6444 (_cpp_pop_file_buffer): Update.
6445 (_cpp_push_next_buffer): Update, rename.
6446 * cppinit.c (cpp_destroy): Free include chain and pending here.
6447 (cpp_finish_options): Simplify.
6448 (_cpp_push_next_buffer): Rename and clean up.
6449 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6451 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6453 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6455 * config/rs6000/altivec.h (vec_xor): Add variant for both args
6456 being vector signed int.
6458 (vec_xor): Add variant for both args being vector signed char.
6459 Remove redundant variant.
6462 2002-04-21 David S. Miller <davem@redhat.com>
6464 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6465 compare mode in output RTL.
6467 2002-04-22 David Edelsohn <edelsohn@gnu.org>
6469 * config/rs6000/rs6000.c (rs6000_override_options): Correct
6470 style and formatting of previous patch.
6472 2002-04-22 Alan Modra <amodra@bigpond.net.au>
6474 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6475 flag_pic for ABI_AIX.
6477 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6479 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6480 * cppfiles.c (read_include_file): Similarly.
6481 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6482 uxstrdup ustrchr, ufputs): Similarly.
6483 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6484 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6485 cpp_ideq, parse_identifier, parse_number): Similarly.
6486 * cpplib.c (struct directive, dequote_string, D, run_directive,
6487 cpp_push_buffer): Similarly.
6488 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6489 _cpp_create_definition, check_trad_stringification,
6490 cpp_macro_definition): Similarly.
6492 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6494 * cppmacro.c (funlike_invocation_p): Don't step back
6497 2002-04-21 David Edelsohn <edelsohn@gnu.org>
6499 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6502 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
6504 * doc/invoke.texi: Remove Chill references.
6505 * doc/gcc.texi: Update last modified date.
6507 2002-04-20 Kazu Hirata <kazu@hxi.com>
6509 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6510 push and pop. Replace add.l with add.w.
6512 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6514 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6515 multiply instructions for H8/300H case.
6517 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6519 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6520 Bum three instructions from each routine.
6522 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
6524 * Makefile.in: Update.
6525 * decl.c (push_c_function_context, pop_c_function_context,
6526 mark_c_function_context): Rename for consistency.
6527 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6528 * c-tree.h (push_c_function_context, pop_c_function_context,
6529 mark_c_function_context): Rename for consistency.
6530 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6531 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6532 * function.c (init_lang_status, save_lang_status,
6533 restore_lang_status, mark_lang_status, free_lang_status):
6534 Move to langhooks.h.
6535 (push_function_context_to, pop_function_context_from,
6536 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6538 * function.h (init_lang_status, save_lang_status,
6539 restore_lang_status, mark_lang_status, free_lang_status):
6540 Move to langhooks.h.
6541 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6542 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6543 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6544 LANG_HOOKS_FUNCTION_INITIALIZER): New.
6545 (LANG_HOOKS_INITIALIZER): Update.
6546 (lhd_do_nothing_f): New.
6547 * langhooks.h (struct lang_hooks_for_functions): New.
6548 (struct lang_hooks): New hooks.
6549 * langhooks.c (lhd_do_nothing_f): New.
6551 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6552 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6554 2002-04-19 David S. Miller <davem@redhat.com>
6556 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6557 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6559 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6561 PR optimization/3756
6562 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6563 x = ((int) y < 0) ? cst1 : cst2.
6565 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6568 * function.c: Reapply patch for c/6358.
6569 (expand_function_end): Copy decl_rtl's mode, not
6570 current_function_return_rtx mode.
6572 2002-04-19 Joel Sherrill <joel@OARcorp.com>
6574 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6577 2002-04-19 Tom Tromey <tromey@redhat.com>
6579 * doc/install.texi (Specific): Update status of Solaris 2.8.
6582 2002-04-19 Andreas Schwab <schwab@suse.de>
6584 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6585 (PUT_REAL): Restore old definition.
6587 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6588 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6590 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6591 binutils 2.11.2 and higher generate smaller binaries than Sun's
6594 2002-04-19 Mark Mitchell <mark@codesourcery.com>
6597 * toplev.c (rest_of_compilation): Do not defer functions for which
6598 TREE_SYMBOL_REFERENCED has already been set.
6600 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
6602 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6605 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
6607 * builtins.c: Include langhooks.h.
6608 (lang_type_promotes_to): Remove.
6609 (expand_builtin_va_arg): Use new hook.
6610 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6611 (simple_type_promotes_to): Move to c-typeck.c.
6612 * c-common.h (simple_type_promotes_to): Remove.
6613 * c-decl.c (duplicate_decls, grokdeclarator): Update.
6614 * c-format.c: Include langhooks.h.
6615 (check_format_types): Update.
6616 * c-tree.h (c_type_promotes_to): New.
6617 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6618 (type_lists_compatible_p): Update.
6619 * langhooks-def.h (lhd_type_promotes_to): New.
6620 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6621 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6622 * langhooks.c (lhd_type_promotes_to): New.
6623 * langhooks.h (struct lang_hooks_for_types): New hook.
6624 * tree.h (lang_type_promotes_to): Remove.
6626 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6628 2002-04-18 Richard Henderson <rth@redhat.com>
6630 * function.c: Revert patch for c/6358.
6632 2002-04-18 Richard Henderson <rth@redhat.com>
6634 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6635 blocks. Handle multiple references to the TRAP block. Handle
6636 non-adjacent THEN and OTHER blocks.
6638 2002-04-18 Richard Henderson <rth@redhat.com>
6640 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6641 crash with no type for by-mode libcalls.
6643 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6645 2002-04-18 Bob Wilson <bob.wilson@acm.org>
6647 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6648 __xtensa_nonlocal_goto): Use a syscall instructions to flush
6649 the register windows.
6651 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6653 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6654 appropriate. Document need for extended precision even when
6655 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
6656 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
6657 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
6658 instead of relying on later syntax error when REAL_WIDTH > 5.
6659 * real.c: Define NE based only on whether or not we have a
6660 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6661 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
6662 define GET_REAL and PUT_REAL as simple memcpy operations; no
6663 need to byteswap or round.
6664 Use #error instead of #ifdef-ing out the entire file, for
6665 prompt error detection.
6667 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6669 2002-04-18 David S. Miller <davem@redhat.com>
6671 * config/sparc/sparc.h (BRANCH_COST): Define.
6673 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6676 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
6678 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6679 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6680 propagate_block calls after relaxation loop using new variable
6681 stabilized_prop_flags.
6683 2002-04-18 Richard Henderson <rth@redhat.com>
6685 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6686 (ia64_va_arg): Expect variable sized types by reference.
6687 * config/ia64/ia64-protos.h: Update.
6688 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6689 ia64_function_arg_pass_by_reference.
6691 2002-04-18 Richard Henderson <rth@redhat.com>
6693 * ifcvt.c: Include except.h.
6694 (block_has_only_trap): Break out from find_cond_trap.
6695 (find_cond_trap): Use it. Always delete the trap block.
6696 (merge_if_block): Allow then block null. Be less simplistic about
6697 what insns can end a block.
6698 * Makefile.in (ifcvt.o): Depend on except.h.
6700 * config/ia64/ia64.md (trap, conditional_trap): New.
6702 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6705 * function.c (assign_parms): Assign hard current_function_return_rtx
6707 (expand_function_end): ...not here.
6709 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
6711 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6712 * c-tree.h (c_incomplete_type_error): New.
6713 * c-typeck.c (require_complete_type, build_component_ref): Update.
6714 (incomplete_type_error): Rename.
6715 * langhooks-def.h (lhd_incomplete_type_error): New.
6716 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6717 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6718 * langhooks.c (lhd_incomplete_type_error): New.
6719 * langhooks.h (struct lang_hooks_for_types): New hook.
6720 * tree.c (size_in_bytes): Use new hook.
6721 * tree.h (incomplete_type_error): Remove.
6723 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6725 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6727 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6728 TARGET_FLOAT_FORMAT blocks.
6730 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6732 * doc/install.texi (Downloading the source): Do not mention Chill
6733 any longer, but mention Ada.
6734 (Configuration): Do not mention Chill any longer.
6736 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
6738 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6740 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
6742 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6745 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6747 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6748 instead of unsigned_type.
6750 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6752 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6753 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6756 2002-04-18 Bernd Schmidt <bernds@redhat.com>
6758 * attribs.c (vector_type_node_list): New static variable.
6759 (handle_vector_size_attribute): Use it to avoid generating a
6760 new type node each time we are called.
6762 * combine.c (subst): Avoid trying to make a vector mode subreg of
6763 an integer constant.
6764 (gen_lowpart_for_combine): Likewise.
6766 2002-04-18 Roger Sayle <roger@eyesopen.com>
6767 Jakub Jelinek <jakub@redhat.com>
6769 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6770 for integer constant c (if x has unsigned type or sign bit is not
6771 set in c). This folds the zero/sign extension into the bit-wise and
6774 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6777 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6780 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
6782 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6784 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
6786 * gcc.c (read_specs): Detect and fail if an attempt is made to
6787 rename a spec string to an already existing string.
6789 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6791 * config/s390/s390.c (legitimize_pic_address): Do not generate
6792 illegal address constant without CONST.
6794 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6796 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6797 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6799 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6801 PR optimization/6305
6802 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6803 to make sure previous reloads are taken into account. Generate
6804 better code if one operand is an in-range immediate constant.
6806 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
6808 * doc/install.texi (Building): libgcj requires GNU make.
6810 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6813 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6814 even if hard quad and register is not floating.
6815 (movtf reg<-mem split): Disallow splitting if hard quad and
6816 register is floating.
6817 (movtf mem<-reg split): Likewise.
6818 * config/sparc/sparc.c (fp_register_operand): New predicate.
6819 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6821 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6823 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6824 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6825 (unprotoize.o): Ditto. Build from protoize.c. Define
6826 UNPROTOIZE on command line.
6827 * protoize.c: Include cppdefault.h. Delete include_defaults.
6828 (in_system_include_dir): Use cpp_include_defaults (defined in
6830 * unprotoize.c: Delete file.
6832 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6834 * config/rs6000/altivec.h (vec_ld): Add array variants.
6838 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6839 Aldy Hernandez <aldyh@redhat.com>
6841 * config/rs6000/altivec.h: Define __ALTIVEC__.
6848 Add parentheses to all macro arguments.
6850 2002-04-16 Richard Henderson <rth@redhat.com>
6853 * except.c (remove_eh_handler): Insert inner regions at beginning
6854 of sibling chain. Refactor expressions.
6856 2002-04-16 Richard Henderson <rth@redhat.com>
6858 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6859 * config/sparc/sol2-gas-bi.h: New file.
6860 * config.gcc (sparc*-solaris): Add it as needed.
6861 * configure.in (AS_SPARC64_FLAG): Remove check.
6862 * config.in, configure: Regenerate.
6864 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6866 2002-04-16 Richard Henderson <rth@redhat.com>
6868 * config/mips/mips.c (override_options): Don't override N32 for
6872 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6873 (HILO_delay): Set can_delay false.
6875 2002-04-16 Dale Johannesen <dalej@apple.com>
6877 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6878 instruction addresses.
6879 (rs6000_output_function_epilogue): Likewise.
6881 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6883 * c-parse.in (poplevel, compstmt_start,
6884 compstmt_primary_start): Add ending ';', in accordance
6887 2002-04-16 Richard Henderson <rth@redhat.com>
6889 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6890 Adjust tm_file order to get TARGET_DEFAULT set properly.
6891 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6892 * doc/install.texi (sparc-solaris): Update.
6894 2002-04-16 Dale Johannesen <dalej@apple.com>
6896 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6897 comparison operands do not match each other or if modes of
6898 conditions do not match result.
6900 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
6903 * config/s390/s390.md (mulsidi3): Set both subregs of the
6906 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
6908 * config/rs6000/altivec.h (vec_addc): Type check.
6910 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6913 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6915 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6917 2002-04-15 Richard Henderson <rth@redhat.com>
6919 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6920 call_really_used_regs too.
6922 2002-04-15 Richard Henderson <rth@redhat.com>
6924 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6926 2002-04-15 David S. Miller <davem@redhat.com>
6928 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6931 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6934 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6935 CONST_VECTOR is { 0, ... 0 }.
6937 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
6939 * doc/install.texi (Installing GCC: Configuration): Clarify
6940 the only supported ways to configure gcc.
6942 2002-04-15 Roland McGrath <roland@frob.com>
6944 * config.gcc (alpha*-*-gnu*): New target configuration.
6945 * config/alpha/gnu.h: New file for it.
6946 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6948 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6950 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6951 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6952 * tree.h (expand_start_stmt_expr): Update prototype.
6953 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6954 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6955 on the STMT_EXPR created for the inline function.
6957 2002-04-15 Richard Henderson <rth@redhat.com>
6959 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6960 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6961 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6962 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6963 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6964 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6965 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6966 Define __gnu_linux__, not gnu_linux.
6967 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6969 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6971 Remove Chill front end.
6972 * gcc.c (default_compilers): Remove Chill entries.
6973 * ch: Remove directory.
6974 * doc/frontends.texi: Remove information about Chill.
6975 * doc/sourcebuild.texi: Likewise.
6976 * doc/standards.texi: Likewise.
6978 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6980 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6981 (LONGLONG_STANDALONE): Define.
6983 2002-04-15 David S. Miller <davem@redhat.com>
6985 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6986 Call emit_library_call with LCT_NORMAL.
6987 (sparc_initialize_trampoline): Use LCT_foo instead of
6988 magic constant in emit_library_call invocations.
6989 (sparc64_initialize_trampoline): Likewise.
6990 (sparc_profile_hook): Likewise.
6991 * config/sparc/sparc.md: Likewise.
6993 * config/sparc/sparc.c (sparc_extra_constraint_check):
6994 Fix type of argument 'c'.
6995 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6998 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
7000 * diagnostic.h (output_buffer_state): Redefine.
7001 (output_format_decoder): New macro.
7002 (output_prefixing_rule): Likewise.
7003 (output_line_cutoff): Likewise.
7004 (diagnostic_format_decoder): Adjust.
7005 (diagnostic_prefixing_rule): Likewise.
7006 (diagnostic_line_cutoff): Likewise.
7007 (diagnostic_state): Likewise.
7008 (diagnostic_kind_count): Likewise.
7009 (diagnostic_buffer): Now a macro.
7011 * diagnostic.c (diagnostic_buffer): Remove definition.
7012 (output_is_line_wrapping): Adjust.
7013 (set_real_maximum_length): Likewise.
7014 (output_set_maximum_length): Likewise.
7015 (init_output_buffer): Likewise.
7016 (lhd_print_error_function): Likewise.
7017 (output_do_verbatim): Likewise.
7019 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
7021 * cpperror.c (print_location): Don't print include chain
7023 (cpp_begin_message): Update to use DL_ macros.
7024 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7025 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7026 cpp_notice, cpp_notice_from_errno): Remove.
7027 (cpp_error, cpp_error_with_line): Update to take a diagnostic
7030 * cppexp.c (CPP_ICE): Remove.
7031 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
7032 lex, integer_overflow, _cpp_parse_expr): Update.
7033 * cppfiles.c (read_include_file, find_include_file,
7034 handle_missing_header, _cpp_read_file, remap_filename): Update.
7035 * cpphash.h (enum error_type): Remove.
7036 (_cpp_begin_message): Update.
7037 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
7038 cpp_handle_option, cpp_post_options): Update.
7039 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
7040 skip_whitespace, parse_identifier, parse_slow, parse_string,
7041 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
7042 cpp_interpret_charconst): Update.
7043 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
7044 lex_macro_node, do_undef, glue_header_name, parse_include,
7045 do_include_common, read_flag, do_line, do_linemarker, do_ident,
7046 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
7047 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
7048 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
7049 _cpp_pop_buffer, do_diagnostic): Update.
7050 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
7051 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
7052 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7053 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7054 cpp_notice, cpp_notice_from_errno): Remove.
7055 (cpp_error, cpp_error_with_line): Update to take a diagnostic
7058 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
7059 collect_args, enter_macro_context, save_parameter, parse_params,
7060 _cpp_create_definition, check_trad_stringification,
7061 cpp_macro_definition): Update.
7062 * cppmain.c (cpp_preprocess_file): Update.
7063 * fix-header.c (read_scan_file): Update.
7065 2002-04-14 Andreas Schwab <schwab@suse.de>
7067 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
7069 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7071 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
7073 2002-04-13 Mark Mitchell <mark@codesourcery.com>
7075 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
7078 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
7080 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
7082 2002-04-13 Joel Sherrill <joel@OARcorp.com>
7084 * config/sparc/t-elf: Enable v8 multilibs. Impacts
7085 sparc-elf and sparc-rtems targets.
7087 2002-04-13 Mark Mitchell <mark@codesourcery.com>
7089 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
7090 defined, and __gnu_hurd__ wherever __GNU__ is defined.
7091 * arm/linux-elf.h: Likewise.
7092 * cris/aout.h: Likewise.
7093 * cris/linux.h: Likewise.
7094 * i370/linux.h: Likewise.
7095 * i386/gnu.h: Likewise.
7096 * i386/linux-aout.h: Likewise.
7097 * i386/linux-oldld.h: Likewise.
7098 * i386/linux.h: Likewise.
7099 * i386/linux64.h: Likewise.
7100 * ia64/linux.h: Likewise.
7101 * m68k/linux-aout.h: Likewise.
7102 * m68k/linux.h: Likewise.
7103 * mips/linux.h: Likewise.
7104 * pa/pa-linux.h: Likewise.
7105 * pj/linux.h: Likewise.
7106 * rs6000/sysv4.h: Likewise.
7107 * s390/linux.h: Likewise.
7108 * sh/linux.h: Likewise.
7109 * sparc/linux-aout.h: Likewise.
7110 * sparc/linux.h: Likewise.
7111 * sparc/linux64.h: Likewise.
7112 * xtensa/linux.h: Likewise.
7114 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
7116 * stmt.c (check_unique_operand_names): Expect operand names to
7117 be strings rather than identifiers. Use simple_cst_equal to
7119 (resolve_operand_name_1): Make same identifier to string change here.
7120 * c-parse.in (asm_operand): Convert a named operand into a string.
7121 * cp/parse.y (asm_operand): Likewise.
7123 2002-04-13 Andreas Schwab <schwab@suse.de>
7125 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
7127 2002-04-12 Mark Mitchell <mark@codesourcery.com>
7129 Revert these changes:
7131 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7134 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7136 2002-04-12 Richard Henderson <rth@redhat.com>
7138 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
7139 (sparc*-*-solaris): Clean up header files.
7140 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
7141 and plan on generating 64-bit code.
7142 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
7143 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
7144 * config/sparc/sol2-sld-64.h: Rename ...
7145 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
7146 for AS_SPARC64_FLAG not defined.
7147 * config/sparc/sol2-gld-bi.h: New.
7148 * config/sparc/sol2-sld.h: Remove.
7149 * config/sparc/sol26-sld.h: New.
7150 * config/sparc/sol2.h: Tidy comments.
7151 * doc/install.texi: Document sparc-solaris configury changes.
7153 2002-04-12 Richard Henderson <rth@redhat.com>
7155 * recog.c (offsettable_address_p): Match the logic in adjust_address.
7157 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
7158 in 64-bit mode only. Use only for 32-bit or MEDLOW.
7160 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7162 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
7164 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
7166 * pa.c (pa_can_combine_p): Call extract_insn before calling
7169 2002-04-12 Douglas B Rupp <rupp@gnat.com>
7171 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
7172 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
7173 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7174 (CPP_PREDEFINES): Handle __declspec.
7175 * config/i386/t-interix (USER_H): Remove.
7177 2002-04-12 DJ Delorie <dj@redhat.com>
7179 * integrate.c (compare_blocks): Make comparisons safe for when
7180 sizeof(int) < sizeof(char *).
7181 (find_block): Likewise.
7183 2002-04-12 Jan Hubicka <jh@suse.cz>
7184 David Edelsohn <edelsohn@gnu.org>
7186 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
7188 (symbol_ref_operand): New.
7189 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
7190 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
7192 2002-04-12 Andreas Schwab <schwab@suse.de>
7194 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
7195 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
7196 overrides the definition in config/svr4.h.
7198 2002-04-12 Eric Norum <eric.norum@usask.ca>
7200 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
7201 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
7202 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
7203 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
7204 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
7205 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
7206 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
7207 definitions to config/rtems.h and make the targets more similar.
7209 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7211 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7212 POINTERS_EXTEND_UNSIGNED.
7213 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7214 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7216 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7219 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
7221 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7222 depends on TARGET_SHMEDIA, not TARGET_SH5.
7224 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
7226 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7227 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7229 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
7231 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7234 2002-04-12 Andreas Schwab <schwab@suse.de>
7236 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7238 2002-04-12 Richard Henderson <rth@redhat.com>
7241 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7243 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7244 modes spanning multiple hard regs.
7246 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7248 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7250 * pa.c (pa_output_function_prologue): Don't accumulate the total
7251 number of code bytes when using TARGET_64BIT, or gas, SOM and not
7252 the portable runtime.
7253 (output_deferred_plabels): Handle 64bit plabels.
7254 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7255 generating pic code using the GAS assembler for object formats that
7256 are not SOM (ie., ELF32 and ELF64).
7257 (output_millicode_call): Check attribute type if attribute length is 28.
7258 Likewise use $PIC_pcrel$0. Only call get_attr_length and
7259 dbr_sequence_length once.
7260 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7261 dbr_sequence_length once.
7262 * pa.h (TARGET_SOM): Define if not defined.
7263 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7264 with GAS and not SOM.
7265 (jump, call_internal_reg, call_value_internal_reg): Likewise.
7266 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
7268 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7270 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7271 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7272 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7273 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7274 elfos.h and dbxelf.h values are fine now.
7275 * config/i386/freebsd.h, config/alpha/freebsd.h
7276 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7278 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7280 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7281 or set Acpu or Amachine. Reformat.
7282 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7284 (LINK_SPEC): Do not need to undef.
7285 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7286 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7287 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7289 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7290 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7291 (LINK_SPEC): Do not need to undef.
7292 (DONT_USE_BUILTIN_SETJMP): Do not define.
7293 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7294 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
7295 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7296 Remove trailing spaces.
7297 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7298 __ELF__, or set Acpu or Amachine. Reformat.
7299 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7302 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7304 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7305 all other *-*-freebsd* targets.
7307 2002-04-11 Richard Henderson <rth@redhat.com>
7309 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7311 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7313 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7314 Include {cpu}/{cpu}.h thru tm_file.
7315 (alpha*-*-linux*ecoff): Remove target.
7316 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7317 (LINK_SPEC): Remove, is not OS independent.
7318 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7319 (LINK_SPEC): Do not need to #undef any longer.
7320 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7322 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7324 (LINK_SPEC): Moved here from alpha/elf.h.
7325 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7327 * config/alpha/linux-ecoff.h: Remove.
7328 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7329 (CPP_SPEC): Define _POSIX_SOURCE as needed.
7330 (CPP_SUBTARGET_SPEC): Do not define.
7331 (LINK_SPEC): Do not need to #undef any longer.
7332 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7333 * config/alpha/vms.h: Likewise.
7335 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
7337 * doc/extend.texi: Remove old claim that typedefs cannot have
7338 an alignment attribute.
7340 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7342 PR optimization/6177
7343 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7344 bitpos is 0 and bitsize CONCAT size.
7346 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7349 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7351 2002-04-10 David O'Brien <obrien@FreeBSD.org>
7353 * config/alpha/freebsd.h: Minor reformatting.
7354 (CPP_SPEC): Define ELF and add cpp_subtarget.
7355 (ASM_SPEC): No longer needed.
7357 2002-04-11 Richard Henderson <rth@redhat.com>
7359 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7360 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
7361 (dimode mem/zero splitter): New.
7363 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
7365 * config/cris/cris.c (cris_override_options): Tweak error message
7366 for PIC not implemented.
7368 * config/cris/cris.h: Tweak comments related to parameter-passing.
7370 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7372 2002-04-10 Richard Henderson <rth@redhat.com>
7374 * except.c (add_ehl_entry): Allow duplicates after landing pad
7377 2002-04-10 David Edelsohn <edelsohn@gnu.org>
7379 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7381 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
7383 * c-decl.c (c_init_decl_processing): Move generation of
7384 decls for g77_integer_type_node and friends from here ...
7385 * c-common.c (c_common_nodes_and_builtins): ... to here.
7387 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
7389 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7390 is only used as frame pointer when frame_pointer_needed is true.
7392 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
7395 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7396 for the fact that the pool entry uses two words.
7397 (movdf_hard_insn): Similarly. Also, ADR instruction can span
7399 (movdf_soft_insn): Similarly.
7400 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7401 for the fact that the pool entry uses three words.
7403 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
7405 * config/mips/mips.c (mips_va_arg): When using the struct version
7406 of the EABI va_list, allow arguments in the register save area to
7407 take up less room than a stack argument.
7409 2002-04-10 Richard Henderson <rth@redhat.com>
7411 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7412 if EXPAND_INITIALIZER.
7414 2002-04-09 Richard Henderson <rth@redhat.com>
7416 * config/alpha/alpha.md (movdi_er_maybe_g): New.
7417 * config/alpha/alpha.c (alpha_expand_mov): Use it.
7419 2002-04-10 Alan Modra <amodra@bigpond.net.au>
7421 PR optimization/6233
7422 * rtlanal.c (pure_call_p): New function.
7423 * rtl.h (pure_call_p): Declare.
7424 * loop.c (prescan_loop): Use it to set has_nonconst_call.
7425 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7427 2002-04-09 Eric Christopher <echristo@redhat.com>
7429 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7430 information to .comm directive.
7432 2002-04-09 Richard Henderson <rth@redhat.com>
7435 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7437 2002-04-09 Richard Henderson <rth@redhat.com>
7439 * basic-block.h (flow_delete_block_noexpunge): Declare.
7440 (expunge_block_nocompact): Declare.
7441 * cfg.c (expunge_block_nocompact): Split out from ...
7442 (expunge_block): ... here.
7443 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7444 (flow_delete_block_noexpunge): Split out from ...
7445 (flow_delete_block): ... here.
7446 * cfgcleanup.c (delete_unreachable_blocks): Compact while
7447 removing dead blocks.
7448 * except.c (exception_handler_labels): Remove.
7449 (exception_handler_label_map): New.
7450 (struct eh_region): Add aka member.
7451 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7452 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7453 (for_each_eh_label, for_each_eh_label_1): New.
7454 (init_eh): Register exception_handler_label_map.
7455 (free_eh_status): Use free_region.
7456 (find_exception_handler_labels): Use the map, not the list.
7457 (remove_exception_handler_label): Likewise.
7458 (maybe_remove_eh_handler): Likewise.
7459 (remove_eh_handler): Use the region aka bitmap.
7460 * except.h (exception_handler_labels): Remove.
7461 (for_each_eh_label): Declare.
7462 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7463 * loop.c (invalidate_loops_containing_label): New.
7464 (find_and_verify_loops): Use it. Use for_each_eh_label.
7465 * sched-rgn.c (is_cfg_nonregular): Use
7466 current_function_has_exception_handlers.
7468 2002-04-09 Richard Henderson <rth@redhat.com>
7470 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7471 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7472 Do not return changed status.
7473 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7474 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7475 New functions that do return changed status.
7476 * sbitmap.h: Update decls.
7477 * gcse.c, lcm.c: Use _cg functions as needed.
7479 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7481 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7482 (sh64-*-elf*, sh-*-rtemself*): Likewise.
7483 * config/sh/embed_bb.c: New file.
7484 * config/sh/embed-elf.h: New file.
7485 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7486 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
7487 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7489 (SUBTARGET_CPP_PTR_SPEC): Don't define.
7490 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7491 Add subtarget_asm_endian_spec.
7492 (ASM_SPEC): Use subtarget_asm_endian_spec.
7493 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7494 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7495 (WCHAR_UNSIGNED): Define.
7496 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7497 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7498 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7500 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7501 (sh_adjust_cost): Likewise.
7502 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7504 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7505 (WCHAR_TYPE_SIZE): Likewise.
7506 (ASM_SPEC): Use subtarget_asm_endian_spec.
7507 (SH_ELF_WCHAR_TYPE): #undef/ #define.
7508 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7509 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7510 (MAX_WCHAR_TYPE_SIZE): Don't #define .
7511 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7512 (USER_LABEL_PREFIX): Don't #undef /#define .
7513 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7514 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7515 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7516 (ASM_SPEC): Likewise.
7517 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7518 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7519 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7520 (LIB2FUNCS_EXTRA): Define.
7521 * t-sh64 (LIB2FUNCS_EXTRA): Define.
7522 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7523 (LIB1ASMFUNCS_CACHE): Define.
7524 (LIB2FUNCS_EXTRA): Redefine empty.
7526 2002-04-08 Richard Henderson <rth@redhat.com>
7528 * reorg.c (get_branch_condition): Use reversed_comparison_code.
7530 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7532 * config/m68hc11/larith.asm (__map_data_section): Fix condition
7533 and optimize for size.
7534 (__do_global_ctors): Fix pointer comparison.
7535 (__do_global_dtors): Likewise.
7537 2002-04-09 David S. Miller <davem@redhat.com>
7539 * config/sparc/sparc.c (sparc_extra_constraint_check): New
7540 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
7541 allow reloading pseudos.
7542 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7543 * config/sparc/sparc-protos.h: Declare it.
7545 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7546 unsigned comparison warning.
7547 (output_restore_regs): Mark leaf_function as unused.
7549 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7551 * expr.c (is_aligning_offset): New function.
7552 (expand_expr, case COMPONENT_EXPR): Call it.
7554 2002-04-08 David S. Miller <davem@redhat.com>
7557 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7559 Make init_priority work on Sparc when using GNU ld.
7560 * config/sparc/linux.h, config/sparc/linux64.h,
7561 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7562 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7563 * config/sparc/sol2-gld.h: New file to do the same.
7564 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7565 sparc/sol2-gld.h to tm_file.
7567 PR optimization/4328
7568 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7569 * doc/md.texi: Document it.
7570 * config/sparc/sparc.md (movdi_insn_sp64_novis,
7571 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7572 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7573 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7574 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7576 2002-04-08 Andreas Jaeger <aj@suse.de>
7578 * stmt.c (expand_asm_operands): Revert last patch from Richard
7581 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7583 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7584 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
7586 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7588 * doc/contrib.texi (Contributors): Add David O'Brien.
7590 2002-04-08 Alan Modra <amodra@bigpond.net.au>
7592 * configure.in (auto-build.h): Use target_alias and build_alias
7593 when running configure.
7594 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7595 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7596 * configure: Regenerate.
7598 2002-04-07 David S. Miller <davem@redhat.com>
7600 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7602 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
7605 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7606 generating 32-bit pic code.
7608 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
7610 * cppinit.c (cpp_create_reader): Initialize
7611 discard_comments_in_macro_exp.
7612 (COMMAND_LINE_OPTIONS): Add "-CC" option.
7613 (cpp_handle_option): Handle "-CC" option.
7614 * cpplex.c (save_comment): If saving a C++ comment in
7615 a directive, convert it to a C comment.
7616 (_cpp_lex_direct): Pass second comment start character to
7617 save_comment to indicate comment type.
7618 * cpplib.c (_cpp_handle_directive): If processing
7619 a "#define" directive and discard_comments_in_macro_exp
7620 is false, re-enable saving of comments.
7621 (lex_macro_node): If discard_comments_in_macro_exp is false,
7622 discard any comments before the macro identifier.
7623 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7625 * cppmacro.c (cpp_get_token): If expanding a macro while
7626 processing a directive, discard any comments we might encounter.
7627 (parse_params): If discard_comments_in_macro_exp is false,
7628 ignore comments in the macro parameter list.
7629 * gcc.c (cpp_unique_options): Add "-CC" option.
7630 (option_map): Map "--comments-in-macros" to "-CC".
7631 * doc/cppopts.texi: Document "-CC" option.
7632 * f/lang-specs.h: Add "-CC" option.
7633 * testsuite/gcc.dg/cpp/maccom1.c: New test.
7634 * testsuite/gcc.dg/cpp/maccom2.c: New test.
7635 * testsuite/gcc.dg/cpp/maccom3.c: New test.
7636 * testsuite/gcc.dg/cpp/maccom4.c: New test.
7637 * testsuite/gcc.dg/cpp/maccom5.c: New test.
7638 * testsuite/gcc.dg/cpp/maccom6.c: New test.
7640 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7643 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7645 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7648 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7651 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7652 RTX_UNCHANGING_P for the functions arguments when a tail call
7655 2002-04-06 Jason Merrill <jason@redhat.com>
7657 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7658 (parse_options_and_default_flags): Set them appropriately.
7659 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7661 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
7663 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7666 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7669 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7670 types come in by-reference. Fix typo in comment.
7672 2002-04-05 David S. Miller <davem@redhat.com>
7674 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7675 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7676 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7677 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7679 2002-04-05 David S. Miller <davem@redhat.com>
7681 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7682 are not going to emit return instructions, emit at least a nop
7683 for the sake of sane backtraces.
7685 2002-04-05 Richard Henderson <rth@redhat.com>
7687 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7689 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
7691 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7693 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
7695 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7696 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7697 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7699 2002-04-05 Andreas Schwab <schwab@suse.de>
7701 * c-convert.c: Include c-common.h.
7702 * Makefile.in (c-convert.o): Updated.
7704 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7706 * mklibgcc.in: Use separate libgcc.map for each multilib.
7707 * Makefile.in (distclean): Don't remove libgcc.map here.
7709 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7711 * Makefile.in (s-mlib): Handle --disable-multilib by separate
7712 genmultilib invocation.
7714 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
7716 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7717 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
7718 to num_gprs for symmetry.
7719 * config/mips/mips.c: Adjust accordingly.
7721 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
7723 * c-common.c (truthvalue_conversion): Rename, update.
7724 * c-common.h (c_common_truthvalue_conversion): New.
7725 * c-convert.c (convert): Update.
7726 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7727 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7728 * c-typeck.c (build_binary_op, build_unary_op,
7729 build_conditional_expr): Update.
7730 * fold-const.c (constant_boolean_node, fold): Use langhook.
7731 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7732 * langhooks.h (struct lang_hooks): New hook.
7733 * stmt.c (expand_decl_cleanup): Use langhook.
7734 * tree.h (truthvalue_conversion): Remove.
7736 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7738 2002-04-05 Alan Modra <amodra@bigpond.net.au>
7740 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7741 Add rules to make null object file.
7743 2002-04-04 Jim Blandy <jimb@redhat.com>
7745 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7746 macro formal parameter names.
7748 2002-04-04 David S. Miller <davem@redhat.com>
7750 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7752 2002-04-04 Richard Henderson <rth@redhat.com>
7755 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7756 Support copies into and out of memory. Don't accept allows_reg
7757 and allows_mem as gospel.
7759 2002-04-04 Richard Henderson <rth@redhat.com>
7762 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7763 (write_dependence_p): Likewise.
7765 2002-04-04 Richard Henderson <rth@redhat.com>
7767 * predict.c (estimate_bb_frequencies): Do frequency calculation
7768 with a volatile temporary.
7770 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
7772 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7774 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7777 * final.c (final_start_function): Don't bump profile_label_no here...
7778 (final_end_function): ...but here.
7780 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7782 * config/sparc/sparc.md (pic): New attribute.
7783 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7785 (split after do_builtin_setjmp_setup): New.
7787 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7790 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7793 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7795 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7796 UNITS_PER_WORD for zero sized aggregates.
7798 2002-04-03 David S. Miller <davem@redhat.com>
7800 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7801 one-character spec for this, just use %(link_gcc_c_sequence).
7803 2002-04-03 David S. Miller <davem@redhat.com>
7805 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7808 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7810 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7811 (DWARF_FRAME_RETURN_COLUMN): Move.
7812 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7813 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7814 * pa.c (except.h, predict.h): Include.
7816 (store_reg_modify, set_reg_plus_d): Revise prototypes.
7817 (output_ascii): Add cast.
7818 (store_reg_modify): Revise to add frame notes.
7819 (set_reg_plus_d): Likewise.
7820 (compute_frame_size): Include space for eh data registers in frame if
7821 the current function calls eh_return.
7822 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7823 function calls eh_return. Save eh data registers if the current
7824 function calls eh_return. Fix code to add frame notes. Emit
7825 blockage to prevent insns with frame notes being scheduled in the
7826 delay slot of calls.
7827 (hppa_expand_epilogue): Restore eh data registers and do final stack
7828 adjustment if the current function calls eh_return. Don't add frame
7830 (output_call): Revise for change in length of call insn. Don't do
7831 return pointer adjustment for an unconditional jump in the delay slot
7832 of a call when using frame notes.
7833 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7834 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7835 (ARG_POINTER_CFA_OFFSET): Define.
7836 * pa.md (return_external_pic): New pattern.
7837 (prologue): Correct formatting. Use return_external_pic if current
7838 function calls eh_return.
7839 (call_internal_symref, call_value_internal_symref,
7840 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7841 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7843 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7845 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7846 list of targets to check using "nop" insn.
7847 * configure: Rebuilt.
7849 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7851 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7853 2002-04-03 David S. Miller <davem@redhat.com>
7855 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7856 library sequence passed to the linker.
7857 (LINK_COMMAND_SPEC): Use it.
7858 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7859 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7860 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7862 2002-04-03 Jason Merrill <jason@redhat.com>
7864 * except.c (struct eh_status): Remove protect_list.
7865 (begin_protect_partials, end_protect_partials): Remove.
7866 (add_partial_entry): Remove.
7867 * except.h: Remove prototypes.
7869 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7870 expand_decl_cleanup_eh.
7873 * tree.h (CLEANUP_EH_ONLY): New macro.
7874 * stmt.c (expand_decl_cleanup_eh): New fn.
7875 (expand_cleanups): Check CLEANUP_EH_ONLY.
7876 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7877 Use expand_decl_cleanup_eh.
7878 (expand_stmt): Adjust.
7879 * c-common.h: Adjust prototype.
7881 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7883 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7884 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7885 (cris_target_asm_function_epilogue): Ditto.
7886 (cris_initial_frame_pointer_offset): Ditto.
7887 (cris_simple_epilogue): Ditto.
7888 (cris_expand_builtin_va_arg): Variable-size types come in
7891 2002-04-03 David S. Miller <davem@redhat.com>
7893 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7895 (set_fast_math): Correct 'fsr' type.
7897 2002-04-03 Richard Henderson <rth@redhat.com>
7900 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7901 * toplev.c (check_global_declarations): Use it.
7902 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7903 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7904 (LANG_HOOKS_DECLS): Add it.
7905 * langhooks.c (lhd_warn_unused_global_decl): New.
7906 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7907 * c-objc-common.c (c_warn_unused_global_decl): New.
7908 * c-tree.h (c_warn_unused_global_decl): Declare.
7909 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7911 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
7913 * langhooks-def.h (lhd_set_decl_assembler_name,
7914 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7915 (LANG_HOOKS_INITIALIZER): Update.
7916 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7917 * langhooks.h (struct lang_hooks): New hook.
7918 * tree.c (set_decl_assembler_name): Move to langhooks.c.
7919 (lang_set_decl_assembler_name): Remove.
7920 (init_obstacks): Don't set hook.
7921 (decl_assembler_name): New function.
7922 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7923 (decl_assembler_name): New.
7924 (lang_set_decl_assembler_name): Remove.
7926 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7928 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7929 works properly with .hidden symbols.
7930 * configure: Rebuilt.
7931 * config.in: Rebuilt.
7932 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7933 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7934 properly with .hidden symbols.
7936 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7939 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7942 2002-04-03 Richard Henderson <rth@redhat.com>
7945 * sched-rgn.c (sets_likely_spilled): New.
7946 (sets_likely_spilled_1): New.
7947 (add_branch_dependences): Use it.
7949 2002-04-02 Richard Henderson <rth@redhat.com>
7952 * loop.h (LOOP_FIRST_PASS): New.
7953 * loop.c (strength_reduce): Mind it when deciding to unroll.
7954 * toplev.c (rest_of_compilation): Set it.
7956 2002-04-02 David S. Miller <davem@redhat.com>
7958 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7959 mems_ok_for_ldd_peep when the order of the loads being examined
7961 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7962 existing comment to increase comprehension of this situation.
7964 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7966 * config/sh/sh.md: Don't use union real_extract.
7968 2002-04-02 Richard Henderson <rth@redhat.com>
7970 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7972 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7974 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7975 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7976 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7977 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7978 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7979 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7980 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7981 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7982 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7983 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7984 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7985 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7986 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7987 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7988 Include as many configury headers via tm_file as possible. This
7989 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7990 * config/openbsd-oldgas.h: New file.
7991 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7992 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7993 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7994 config/i386/i386-coff.h, config/i386/i386-interix.h,
7995 config/i386/iscdbx.h, config/i386/linux-aout.h,
7996 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7997 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7998 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7999 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
8000 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
8001 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
8002 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
8003 config/i386/vxi386.h: Do not directly include configury headers.
8004 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
8005 Directly include configury headers that are no longer automatically
8006 included by the above headers.
8007 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
8008 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
8009 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
8010 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
8011 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
8012 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
8013 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
8014 (TARGET_VERSION): Define.
8015 * config/i386/beos-elf.h, config/i386/freebsd.h,
8016 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
8017 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
8018 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
8019 config/i386/sco5.h, config/i386/sysv4.h
8020 (TARGET_VERSION): Do not need to protect.
8021 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
8022 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
8023 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
8024 config/i386/i386-interix.h, config/i386/linux-aout.h,
8025 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
8026 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
8027 (YES_UNDERSCORES): Do not define - not needed.
8028 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
8029 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8030 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
8031 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
8032 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8033 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
8034 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
8035 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
8037 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
8038 Richard Henderson <rth@redhat.com>
8041 * function.c (assign_temp): Accept either type or decl argument.
8042 Detect variables whose size is too large to fit into an integer.
8043 * stmt.c (expand_decl): Pass the decl, not the type.
8045 2002-04-02 David O'Brien <obrien@FreeBSD.org>
8047 * protoize.c: Match include directory usage with cppdefault.c.
8049 2002-04-03 Jeffrey A Law (law@redhat.com)
8050 Hans-Peter Nilsson <hp@bitrange.com>
8052 * combine.c (simplify_comparison): Avoid narrowing a comparison
8053 with a paradoxical subreg when doing so would drop signficant bits.
8055 2002-04-02 Steve Ellcey <sje@cup.hp.com>
8057 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
8058 if POINTERS_EXTEND_UNSIGNED is defined.
8060 2002-04-02 Richard Henderson <rth@redhat.com>
8063 * local-alloc.c (contains_replace_regs): LO_SUM may contain
8066 2002-04-02 Richard Henderson <rth@redhat.com>
8068 * doc/standards.texi: Document required freestanding libc entry points.
8070 2002-04-02 Alan Modra <amodra@bigpond.net.au>
8072 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
8073 associated splitter. Remove MQ constraint.
8074 (ctrdi_internal4): Correct CCmode clobber.
8076 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
8078 * milli64.S ($$dyncall): New function.
8079 * t-linux (LIB1ASMFUNCS): Revise module list.
8080 (LIB1ASMSRC): Use pa/milli64.S.
8082 2002-04-02 Richard Henderson <rth@redhat.com>
8084 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
8085 rename solaris_sys_varargs_h.
8087 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8089 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
8090 the same mode as its component.
8092 2002-04-02 Richard Henderson <rth@redhat.com>
8095 * final.c (this_is_asm_operands): Export.
8096 * output.h (this_is_asm_operands): Declare.
8097 * config/i386/i386.c (print_operand): Error odd asm operands.
8099 2002-04-02 Richard Henderson <rth@redhat.com>
8102 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
8104 2002-04-01 Richard Henderson <rth@redhat.com>
8107 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
8108 * fixinc/fixincl.x: Rebuild.
8110 2002-04-01 Richard Henderson <rth@redhat.com>
8112 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
8113 (atomic_alloc, atomic_free): New.
8114 (SIZE, MASK_FOR, PTR_IN): New.
8115 (emergency_reg_state, emergency_reg_state_free): New.
8116 (emergency_labeled_state, emergency_labeled_state_free): New.
8117 (reg_state_alloced, labeled_state_alloced): New.
8118 (alloc_reg_state, free_reg_state): New.
8119 (alloc_label_state, free_label_state, free_label_states): New.
8120 (push, pop, dup_state_stack, free_state_stack): Use them.
8121 (desc_label_state): Likewise.
8122 (uw_frame_state_for): Free label states and state stack.
8123 (uw_update_reg_address): Eliminate warnings.
8125 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
8127 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
8128 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
8130 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8132 * c-decl.c (grokdeclarator): Update.
8133 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8134 * c-tree.h (c_mark_addressable): New.
8135 * c-typeck.c (default_function_array_conversion, build_unary_op,
8136 build_array_ref, convert_for_assignment): Update.
8137 (mark_addressable): Rename.
8138 * calls.c (try_to_integrate, expand_call): Use langhook.
8139 * expr.c (expand_expr): Use langhook.
8140 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
8141 * langhooks.h (struct lang_hooks): New hook.
8142 * stmt.c (expand_asm_operands): Use langhook.
8143 * tree.h (mark_addressable): Remove.
8145 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8147 2002-04-01 Bob Wilson <bob.wilson@acm.org>
8149 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
8152 2002-04-01 Bob Wilson <bob.wilson@acm.org>
8154 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
8155 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
8157 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8159 * c-common.c (unsigned_conversion_warning, convert_and_check,
8160 unsigned_type, signed_type, shorten_compare,
8161 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
8162 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
8163 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
8165 * c-decl.c (grokdeclarator): Update.
8166 * c-format.c (check_format_types): Update.
8167 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8168 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8169 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
8170 * convert.c (convert_to_integer): Use new hooks.
8171 * expmed.c (make_tree): Use new hooks.
8172 * expr.c (store_expr): Use new hooks.
8173 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
8174 all_ones_mask_p, unextend, fold): Use new hooks.
8175 * langhooks.h (struct lang_hooks_for_types): New hooks.
8176 * tree.h (signed_or_unsigned_type, signed_type,
8177 unsigned_type): Remove.
8179 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8180 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8182 2002-03-31 Richard Henderson <rth@redhat.com>
8184 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
8185 (desc_frgr_mem): Fix reference to f16-f31.
8187 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8189 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
8190 RTVEC_ELT): Const-ify.
8191 * varray.h (VARRAY_CHECK): Const-ify.
8192 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
8193 ggc_mark_rtvec, ggc_mark): Const-ify.
8195 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8197 * diagnostic.c: Include langhooks-def.h.
8198 * Makefile.in (diagnostic.o): Update.
8200 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
8202 * c-common.c (c_unsafe_for_reeval): Rename.
8203 * c-common.h (c_unsafe_for_reeval): Rename.
8204 * c-decl.c (finish_incomplete_decl): Rename.
8205 (c_init_decl_processing): Don't set langhook.
8206 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8207 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8208 * c-objc-common.c (c_objc_common_init): Don't set langhook.
8209 * c-tree.h (finish_incomplete_decl): Rename.
8210 * langhooks-def.h (lhd_unsafe_for_reeval): New.
8211 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8212 (LANG_HOOKS_INITIALIZER): Update.
8213 * langhooks.c (lhd_unsafe_For_reeval): New.
8214 * langhooks.h (struct langhooks): New hooks.
8215 * toplev.c (incomplete_decl_finalize_hook): Remove.
8216 (wrapup_global_declarations): Update.
8217 * tree.c (lang_unsafe_for_reeval): Remove.
8218 (unsafe_for_reeval): Update.
8219 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8222 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8223 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8225 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
8227 * diagnostic.c (print_error_function): Remove.
8228 (default_print_error_function): Rename.
8229 (report_error_function): Update.
8230 * diagnostic.h (print_error_function): Remove.
8231 (default_print_error_function): Remove.
8232 * langhooks-def.h (struct diagnostic_context): Predeclare.
8233 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8234 (LANG_HOOKS_INITIALIZER): Update.
8235 * langhooks.h (struct diagnostic context): Predeclare.
8236 (struct lang_hooks): New hook.
8238 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8240 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8241 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8243 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8244 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8245 of PIC_OFFSET_TABLE_REGNUM thruout.
8246 * config/rs6000/rs6000.md: Likewise.
8247 * config/rs6000/darwin.h: Likewise.
8249 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8251 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8252 unsigned HOST_WIDE_INT, not unsigned int.
8254 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8256 PR middle-end/6096, middle-end/6098, middle-end/6099
8257 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8259 (fill_slots_from_thread): Likewise.
8261 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8263 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8264 floating fields in float regs.
8265 (function_arg_record_value_2): Likewise.
8267 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8269 * config/mmix/mmix.md (define_constants): Remove misleading
8270 FIXME. Add MMIX_fp_rO_OFFSET.
8271 ("nonlocal_goto_receiver"): Don't have stack-frame address of
8272 saved rO as part of the pattern. Remove FIXME.
8273 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
8274 here, at output-time.
8276 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8279 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8281 (output_v9branch): Likewise.
8283 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
8285 * gcc.c: Revert previous patch for now.
8286 * config/i386/djgpp.h: Likewise.
8288 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8290 * config/mmix/crti.asm (_init): Register _fini with atexit.
8291 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8293 2002-03-31 Richard Henderson <rth@redhat.com>
8296 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8297 (ASM_OUTPUT_DEF_FROM_DECLS): New.
8299 2002-03-31 Richard Henderson <rth@redhat.com>
8301 * libgcc2.c (__bb_exit_func): Make static.
8303 * config/alpha/alpha.md (trap): New.
8305 2002-03-31 Richard Henderson <rth@redhat.com>
8307 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8308 promoted argument types; build trap.
8309 (expand_builtin_trap): New.
8310 (expand_builtin): Use it.
8311 * stmt.c (expand_nl_goto_receivers): Likewise.
8312 * expr.h (expand_builtin_trap): Declare.
8313 * libfuncs.h (LTI_abort, abort_libfunc): New.
8314 * optabs.c (init_optabs): Init abort_libfunc.
8316 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
8318 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8319 (LINK_COMMAND_SPEC): ... from here.
8320 (init_gcc_specs): Duplicate it here too, omitting
8321 shared_name in the second copy.
8322 (init_spec): Test for duplicate
8323 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8325 2002-03-30 David S. Miller <davem@redhat.com>
8327 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8328 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8330 2002-03-30 Roger Sayle <roger@eyesopen.com>
8331 Richard Henderson <rth@redhat.com>
8333 * regmove.c (combine_stack_adjustments_for_block): Avoid
8334 emitting a stack adjustment of zero bytes. Let delete_insn
8337 2002-03-30 Richard Henderson <rth@redhat.com>
8339 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8340 (sparc_emitting_epilogue): New.
8341 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8342 * config/sparc/sparc-protos.h: Update.
8343 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8344 (TARGET_SWITCHES): Update.
8345 * config/sparc/sparc.md (return): Remove.
8346 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8347 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8348 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8349 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8350 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8351 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8352 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8353 Remove MASK_EPILOGUE.
8354 * doc/invoke.texi: Update.
8356 2002-03-30 Daniel Berlin <dan@dberlin.org>
8358 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8359 CPP will start the file for us.
8361 2002-03-30 Richard Henderson <rth@redhat.com>
8364 * config/ia64/ia64.c (group_barrier_needed_p): Special case
8365 prologue_allocate_stack.
8366 (ia64_single_set): Use insn codes for recognition of special
8367 cases, not rtl matching.
8368 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8370 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
8372 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8374 2002-03-30 Richard Henderson <rth@redhat.com>
8377 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8378 or -fomit-frame-pointer with profiling.
8379 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8380 (FUNCTION_PROFILER): Do nothing.
8381 (PROFILE_HOOK): New.
8382 * config/sparc/sparc.c (sparc_override_options): Don't check
8383 code models for profiling.
8384 (sparc_function_profiler): Remove.
8385 (sparc_profile_hook): New.
8386 * config/sparc/sparc-protos.h: Update.
8388 2002-03-30 Jakub Jelinek <jakub@redhat.com>
8390 PR optimization/6086
8391 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8392 of SUBREG of volatile MEM or because the MEM was mode dependent,
8393 return CLOBBER instead of unmodified SUBREG.
8395 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
8397 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8398 when not optimizing.
8400 * toplev.c (rest_of_compilation): Cann mark_constant_function
8401 only when optimizing.
8403 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8406 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8407 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8408 (try_optimize_cfg): clear all AUX fields.
8410 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8411 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8412 (ix86_address_cost): Be prepared for SUBREGed registers.
8413 (legitimate_address_p): Accept SUBREGed registers.
8415 2002-03-29 Richard Henderson <rth@redhat.com>
8418 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8420 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8422 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8423 for aggregate and TFmode types.
8425 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8427 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8429 2002-03-29 Richard Henderson <rth@redhat.com>
8432 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8433 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8435 2002-03-29 Richard Henderson <rth@redhat.com>
8438 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8439 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8440 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8441 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8443 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8445 2002-03-29 Dale Johannesen <dalej@apple.com>
8447 * loop.c (combine_movables): Do allow combination of pseudos.
8449 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
8451 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8452 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8453 No functional change except ...
8454 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
8455 * doc/install.texi (*-*-freebsd*): Document port configuration.
8457 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8459 * Makefile.in (convert.o, calls.o, expmed.o): Update.
8460 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8462 * builtin-types.def (BT_PTRMODE): Update.
8463 * c-common.c (type_for_size): Rename c_common_type_for_size.
8464 (type_for_mode): Similarly.
8465 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8467 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8468 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8469 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8471 * c-typeck.c (common_type, comptypes, default_conversion):
8473 * calls.c: Include langhooks.h.
8474 (emit_library_call_value_1): Use new hooks. Avoid redundant
8476 * convert.c: Include langhooks.h
8477 (convert_to_pointer, convert_to_integer): Use new hooks.
8478 * except.c (init_eh): Similarly.
8479 * expmed.c: Include langhooks.h.
8480 (expand_mult_add): Use new hooks.
8481 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8482 try_casesi): Similarly.
8483 * fold-const.c (optimize_bit_field_compare, make_range,
8484 decode_field_reference, fold_truthop, fold): Similarly.
8485 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8486 put_var_into_stack): Similarly.
8487 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8488 LANG_HOOKS_TYPE_FOR_SIZE): New.
8489 (LANG_HOOKS_TYPES_INITIALIZER): Update.
8490 * langhooks.h (lang_hooks_for_types): New hooks.
8491 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8492 * tree.c (get_unwidened, get_narrower): Similarly.
8493 * tree.h (type_for_mode, type_for_size): Remove.
8494 * varasm.c (force_const_mem): Use new hooks.
8495 * utils2.c (nonbinary_modular_operation): Update.
8497 * objc-act.c (handle_impent): Update.
8498 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8501 2002-03-29 Steve Ellcey <sje@cup.hp.com>
8503 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8504 * config/ia64/ia64.c (basereg_operand): New.
8505 * config/ia64/ia64-protos.h (basereg_operand): Declare.
8506 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8508 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8510 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8511 unwind information when frame_pointer_needed.
8512 (mmix_assemble_integer): Tweak wording in comment.
8514 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8516 * Makefile.in (except.o): Update.
8517 * except.c: Include langhooks.h.
8518 (init_eh): Use langhook.
8519 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8520 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8521 (LANG_HOOKS_INITIALIZER): Update.
8522 * langhooks.h (lang_hooks_for_types): New.
8523 (struct lang_hooks): Add it.
8524 * tree.c (make_lang_type_fn, make_lang_type): Remove.
8525 * tree.h (make_lang_type_fn, make_lang_type): Remove.
8527 * alpha/alpha.c: Include langhooks.h.
8528 (alpha_build_va_list): Use langhook.
8529 * d30v/d30v.c: Include langhooks.h.
8530 (d30v_build_va_list): Use langhook.
8531 * i386/i386.c: Include langhooks.h.
8532 (ix86_build_va_list): Use langhook.
8533 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8534 * s390/s390.c: Include langhooks.h.
8535 (s390_build_va_list): Use langhook.
8536 * stormy16/stormy16.c: Include langhooks.h.
8537 (stormy16_build_va_list): Use langhook.
8539 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8542 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8544 (length): Compute variable length for branches/calls/jumps here.
8545 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8546 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8547 define branch_type attribute.
8548 (divsi3_sp32): Maximum length is 6 not 7.
8549 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8550 call_address_untyped_struct_value_sp32,
8551 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8552 * config/sparc/sparc.c (empty_delay_slot): New function.
8553 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8554 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8556 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8558 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8559 nonzero_bits if not needed.
8560 (nonzero_bits) [XOR]: Likewise.
8561 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8562 reg_last_set_mode and mode are both MODE_INT, but not equal.
8563 (record_value_for_reg): Compute reg_last_set_nonzero_bits
8564 in nonzero_bits_mode for MODE_INT modes.
8566 2002-03-28 Richard Henderson <rth@redhat.com>
8569 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8570 to GAS. Correct drift between alternatives.
8572 2002-03-28 Richard Henderson <rth@redhat.com>
8575 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8577 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
8579 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8580 emulation to the linker.
8582 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
8584 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8585 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8587 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
8589 * combine.c (simplify_and_const_int): Make sure to apply mask
8590 when force_to_mode returns a constant integer. PR3311.
8592 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8594 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8596 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8598 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8599 and Objective-C Dialect Options.
8601 2002-03-28 Richard Henderson <rth@redhat.com>
8603 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8604 comparison should be done vs !=0 not >0 return code. Tidy cases.
8606 2002-03-28 Richard Henderson <rth@redhat.com>
8608 * c-decl.c (finish_function): New arg can_defer_p. Pass it
8609 on to c_expand_body.
8610 * c-tree.h (finish_function): Update decl.
8611 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8613 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
8615 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8617 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
8619 * rtlanal.c: Include flags.h
8620 (may_trap_p): Do not mark FP operations if trapping
8621 if !flag_trapping_math
8622 * Makefile.in (rtlanal.o): Add dependency on flag.h
8623 * ifcvt.c (noce_operand_ok): Avoid the lameness.
8625 2002-03-27 Zack Weinberg <zack@codesourcery.com>
8627 * mips.md: Use dconst1, not 1.0, as first argument of
8628 REAL_VALUE_LDEXP. Don't use union real_extract.
8630 2002-03-28 Alan Modra <amodra@bigpond.net.au>
8632 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8633 rather than $target. Heed program_prefix and
8634 program_transform_name. Search for gas in cross-compiler case too.
8635 "test -x" rather than "test -f".
8636 (gcc_cv_ld): Likewise.
8637 (gcc_cv_nm): Heed program_prefix and program_transform_name.
8638 (gcc_cv_objdump): Likewise.
8639 * configure: Regenerate.
8641 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8643 * Makefile.in (attribs.o): Update.
8644 * attribs.c: Include langhooks.h.
8645 (decl_attributes): Use langhook.
8646 * c-decl.c (insert_default_attributes): Rename.
8647 * c-tree.h (c_insert_default_attributes): New.
8648 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8649 (LANG_HOOKS_INITIALIZER): Update.
8650 * langhooks.h (struct lang_hooks): New hook.
8651 * tree.h (insert_default_attributes): Remove.
8653 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8655 2002-03-27 Andreas Schwab <schwab@suse.de>
8657 * config/i386/i386.c (classify_argument): Also check for
8660 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8662 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8665 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
8667 * i960.md (ret): Set PC.
8668 (nonlocal_goto): Fix expander.
8669 * builtins.c (epxand_builin_longjmp): Check that we've emitted
8672 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
8674 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8677 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8679 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8680 assigning to BLOCK_FOR_INSN directly.
8682 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
8684 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8686 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8688 * c-common.c (c_expand_expr): Fix prototype.
8689 * c-common.h (c_expand_expr): Always declare, update.
8690 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8691 * c-objc-common.c (c_objc_common_init): No global hook.
8692 * expr.c (expand_expr): Use langhook.
8693 * expr.h (enum expand_modifier): Conditionally declare.
8694 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8695 (LANG_HOOKS_INITIALIZER): Update.
8696 * langhooks.c (lhd_expand_expr): New.
8697 * langhooks.h (struct lang_hooks): New hook.
8698 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8699 (lang_independent_init): Don't default hook.
8701 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8703 2002-03-27 Richard Henderson <rth@redhat.com>
8706 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8707 TARGET_CONST_GP. Simplify conditions.
8709 2002-03-27 Richard Henderson <rth@redhat.com>
8711 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8712 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8713 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8715 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
8717 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8718 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8719 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8720 Remove unnecessary masks.
8721 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8722 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8723 -mwindows, -mdll switches and their negations.
8725 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8727 * gcc-common.c (lang_mark_false_label_stack): Remove.
8728 * ggc.h (lang_mark_false_label_stack): Similarly.
8730 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
8732 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8734 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8735 or __rtems_ is defined.
8737 2002-03-26 Richard Henderson <rth@redhat.com>
8739 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8740 if a non-trivial load was emitted.
8741 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
8742 in high+extra+low case.
8744 2002-03-26 Richard Henderson <rth@redhat.com>
8746 * config.gcc (sparc*-solaris): Use float_format=sparc.
8748 2002-03-26 Richard Henderson <rth@redhat.com>
8750 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8751 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8752 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8753 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8754 (WINT_TYPE_SIZE): Fix at 32.
8756 2002-03-26 Richard Henderson <rth@redhat.com>
8758 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8759 until after eh landing pad generation.
8760 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8761 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8763 2002-03-26 Richard Henderson <rth@redhat.com>
8765 * expr.h (ADD_PARM_SIZE): One more convert for INC.
8767 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
8769 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
8770 and warning switches.
8771 (cc1_options): Likewise.
8773 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
8775 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8776 Restore more of the signal context. Set no_reg_stack_frame.
8777 * config/ia64/unwind-ia64.c (unw_state_record):
8778 Add no_reg_stack_frame, comments.
8779 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8780 (uw_update_context): Adjust bsp when unwinding from leaf,
8781 but not signal frame.
8783 2002-03-26 David Edelsohn <edelsohn@gnu.org>
8785 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8787 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8789 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8791 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8794 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8795 "Add a pool_range attribute", which was lost during the ARM/Thumb
8798 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8800 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8801 a register into the MAC16 accumulator.
8803 2002-03-26 Andrew Cagney <ac131313@redhat.com>
8805 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8806 (Warning Options): Document -Wswitch-enum.
8807 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
8809 (warn_switch_enum): Define variables.
8810 * flags.h (warn_switch_enum): Declare variables.
8811 * stmt.c (expand_end_case_type): When warn_switch_enum /
8812 -Wswitch-enum, perform switch checks.
8815 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8817 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8818 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8819 (reload_muladdsi_compare0_scratch): Delete.
8821 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8823 * doc/install.texi (*-*-freebsd*): Update.
8825 2002-03-26 Richard Henderson <rth@redhat.com>
8827 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8828 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8830 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8831 types from the normal argument frame.
8833 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8834 variable sized objects by reference.
8835 (sparc_va_arg): Receive them by reference too.
8837 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8839 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8840 code to not restoring global registers.
8842 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8844 * Makefile.in (ggc-common.o): Update.
8845 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8846 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8847 * c-tree.h (c_mark_tree): New.
8848 * ggc-common.c: Include langhooks.h.
8849 (gcc_mark_trees): Use new langhook.
8850 * ggc-callbacks.c: Delete file.
8851 * ggc.h (lang_mark_tree): Remove.
8852 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8853 (LANG_HOOKS_INITIALIZER): Update.
8854 * langhooks.h (struct lang_hooks): New hook.
8856 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8858 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8860 * doc/cpp.texi: Exclude entire Top node from printed manual.
8861 Move option index after directive index. Insert page breaks
8862 before GFDL and concept index. Index environment variables
8863 with command line options.
8864 * doc/cppenv.texi: Use @vtable for environment variable list.
8865 Add paragraph explaining semantics of empty elements in path
8866 variables. Exclude a cross-reference to Fishkill from the
8867 manpage. Remove an unnecessary cross-reference of the entry
8868 right above the referer. Don't use @anchor in text that goes
8870 * doc/cppopts.texi: Cross-reference the environment variables
8871 section, not the specific environment variable, for consistency.
8873 2002-03-25 Richard Henderson <rth@redhat.com>
8875 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8876 anywhere in the block. Don't refer to insns that have been
8877 removed from the chain. Iterate backward through the new insns.
8878 Don't refer to edges that have been removed.
8880 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8882 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8883 test for overflow of constant.
8885 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8888 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8889 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8890 these patterns on arm_archv4.
8892 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
8894 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8897 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8899 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
8900 float_handled, float_handler, float_signal, set_float_handler,
8901 and do_float_handler. Set handler for SIGFPE to crash_signal.
8902 * toplev.h: Don't prototype do_float_handler.
8904 * c-lex.c: Fold parse_float into lex_number. Make warning
8905 about portability of hex float constants more informative, and
8906 don't issue it on top of a syntax error.
8907 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8909 * real.h: Define REAL_VALUE_ABS here...
8910 * simplify-rtx.c: ... not here. Fold check_fold_consts,
8911 simplify_unary_real, simplify_binary_real, and
8912 simplify_binary_is2orm1 into their callers.
8913 * tree.c: Fold build_real_from_int_cst_1 into caller.
8915 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8917 * tsystem.h: Include float.h here...
8918 * libgcc2.c: ... not here.
8920 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
8922 Fixes for: PR bootstrap/3591, target/5676
8923 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8924 defined. Do not disable exceptions or rtti.
8925 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8926 mcore.h. Disable exceptions and rtti, since they are not
8929 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8931 * c-decl.c (maybe_build_cleanup): Remove.
8932 * expr.c (expand_expr): Use langhook.
8933 * langhooks-def.h (lhd_return_null_tree,
8934 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8935 (LANGHOOKS_INITIALIZER): Update.
8936 * langhooks.c (lhd_return_null_tree): New.
8937 * langhooks.h (struct lang_hooks): New hook.
8938 * tree-inline.c (initialize_inlined_parameters): Use langhook.
8939 * tree.h (maybe_build_cleanup): Remove.
8941 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8943 * regrename.c (build_def_use): Move recog_memoized
8944 before extract_insn.
8946 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8949 * expr.c (emit_group_store): Handle storing into CONCAT.
8951 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8953 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8954 corresponding MATCH_DUP.
8956 2002-03-24 Richard Henderson <rth@redhat.com>
8958 * unroll.c (unroll_loop): Zero label_map.
8960 * gcse.c: Include except.h.
8961 * Makefile.in (gcse.o): Update.
8963 2002-03-24 Richard Henderson <rth@redhat.com>
8965 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8966 Do resolve_unique_section before shared data clause.
8968 2002-03-24 Richard Henderson <rth@redhat.com>
8970 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8972 2002-03-24 Richard Henderson <rth@redhat.com>
8974 * recog.c (peephole2_optimize): Split blocks when EH insns are
8975 generated in the middle of a block. Do global life update if
8978 2002-03-24 Richard Henderson <rth@redhat.com>
8980 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8982 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8985 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8986 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8987 (init_dependency_output): Don't make no_output decision here.
8989 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8991 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8992 warn_switch. Update description.
8993 (expand_end_case_type): Call check_for_full_enumeration_handling
8996 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8998 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8999 (m68hc11_split_move): Call it to see if the source and destination
9000 operands use the same direction auto inc/dec mode, otherwise make the
9001 source an offsetable memory operand and generate an add.
9003 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9005 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
9006 register for operand 2.
9007 ("*subsi3_zero_extendqi"): Likewise.
9008 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
9009 bits so that it is compatible with a pop.
9010 ("*andhi3_gen"): Likewise.
9011 ("xorhi3"): Likewise.
9013 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
9015 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
9017 (cpp_post_options): ... not here.
9019 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
9020 Aldy Hernandez <aldyh@redhat.com>
9022 Removal of separate preprocessor cpp0.
9024 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
9025 cpp0, install-common): Update.
9026 * c-common.c (flag_preprocess_only): New.
9027 (c_common_init): Preprocess for -E.
9028 * c-common.h (flag_preprocess_only): New.
9029 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
9030 * c-objc-common.c (c_init_decl_processing): Exit quickly
9031 for NULL return from c_common_init.
9032 * cpplib.h (cpp_preprocess_file): New.
9033 * cppmain.c (main, general_init, pfile, progname): Remove.
9034 (do_preprocessing): Rename cpp_preprocess_file, don't call
9035 cpp_finish. Don't close stdout here.
9036 (setup_callbacks): Update prototype.
9037 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
9039 * tradcpp.c (main): Ignore -quiet.
9041 * lang-specs.h (default_compilers): Preprocess with cc1obj.
9043 2002-03-24 Richard Henderson <rth@redhat.com>
9045 PR optimization/5742
9046 * machmode.def: Add inner mode field to complex modes.
9047 * config/mips/mips.c (mips_function_value): Always define. Add
9048 new argument to handle libcalls.
9049 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
9050 (FUNCTION_VALUE): Likewise.
9051 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
9052 * config/mips/mips-protos.h: Update.
9054 2002-03-23 Richard Henderson <rth@redhat.com>
9056 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
9057 * config/sparc/sparc-protos.h: Update.
9058 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
9060 2002-03-23 Richard Henderson <rth@redhat.com>
9062 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
9063 _start or _init begins the text segment.
9065 2002-03-23 David Edelsohn <edelsohn@gnu.org>
9067 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
9068 not HOST_WIDEST_INT.
9069 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
9071 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
9074 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
9075 operand argument to output_return_instruction.
9076 * arm.c (arm_print_operand, case 'd'): If the operand is
9077 const_true_rtx then just return.
9078 (arm_print_operand, case 'D'): If the operand is const_true_rtx
9081 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9083 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
9084 (Warning Options): Document -Wswitch-default.
9085 * toplev.c (W_options): Add -Wswitch-default. Update comment on
9087 (warn_switch_default): Define variable.
9088 (warn_switch): Update comment.
9089 * flags.h (warn_switch_default): Declare variable.
9090 (warn_switch): Update comment.
9091 * stmt.c (expand_end_case): Check for and, when
9092 warn_switch_no_default, warn of a missing default case.
9094 2002-03-23 Alan Modra <amodra@bigpond.net.au>
9096 * real.h (N): Special case 128 bit doubles.
9098 * combine.c (simplify_comparison): When widening modes, ignore
9099 sign extension on CONST_INTs.
9101 2002-03-22 Bob Wilson <bob.wilson@acm.org>
9103 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
9104 passed to adjust_address. Fix comment formatting.
9107 2002-03-22 Zack Weinberg <zack@codesourcery.com>
9109 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
9110 Always make REAL_VALUE_TYPE a struct containing an array of
9111 HOST_WIDE_INT, not a double. Tidy up the code deciding how
9112 big it is. Don't declare or use union real_extract.
9114 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
9115 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
9116 (print_operand), config/arm/arm.c (output_move_double),
9117 config/arm/arm.md (consttable_4, consttable_8),
9118 config/romp/romp.c (output_fpops), config/s390/s390.h
9119 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
9120 (xtensa_output_literal): Don't use union real_extract.
9122 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
9123 (sfmode_constant_to_ulong), config/ns32k/merlin.h
9124 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
9125 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
9126 (PRINT_OPERAND): Don't use local version of union
9129 * config/convex/convex.c (check_float_value), config/vax/vax.c
9130 (vax_float_literal), config/m88k/m88k.md (divdf3),
9131 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
9132 config/pdp11/pdp11.c (output_move_quad): Don't do host
9133 arithmetic on target floating point quantities.
9135 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
9136 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
9138 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
9139 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
9141 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
9142 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
9144 * print-rtl.c (print_rtx): Disable code which needs
9145 floating-point emulator.
9146 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
9147 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
9148 depending on HOST_FLOAT_FORMAT to be defined properly.
9150 * config/1750a/1750a.c (get_double, float_label): Delete.
9151 (print_operand): Delete huge commented-out chunk. Use
9152 REAL_VALUE_TO_DECIMAL.
9153 * config/1750a/1750a-protos.h: Delete prototypes of deleted
9155 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
9157 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
9158 Use REAL_VALUE_TO_DECIMAL as ELF version does.
9159 * config/m88k/m88k.c (real_power_of_2_operand,
9160 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
9161 real_extract out of the union; run the input through
9162 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
9163 from that into the union.
9164 * config/pdp11/pdp11.c (output_move_double): Rearrange
9165 parentheses to make automatic indenter happy.
9167 * doc/tm.texi (Cross-compilation): Rename node to "Floating
9168 Point" and rewrite to describe current situation. Also adjust
9169 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
9171 * doc/rtl.texi: Adjust cross reference.
9173 2002-03-22 Bob Wilson <bob.wilson@acm.org>
9175 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
9176 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
9177 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
9178 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
9179 prevent use of sp as a reload register.
9180 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
9181 non_acc_reg_operand.
9182 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
9183 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
9184 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
9185 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
9187 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
9189 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
9190 * cpplex.c (unterminated): Delete.
9191 (parse_string): No string literal may extend over multiple
9192 lines. Suppress the error when preprocessing assembly.
9193 * cppmain.c (scan_translation_unit): Strings are single-line.
9195 * doc/cpp.texi: Update to match.
9197 2002-03-22 Jakub Jelinek <jakub@redhat.com>
9199 PR optimization/5854
9200 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
9202 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
9203 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
9204 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
9205 const0 if scratch register was not allocated.
9206 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
9207 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
9209 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
9210 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
9211 with GEN_INT (...) everywhere. Remove constraints in define_split
9213 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9214 require scratch register for setting 0 into regs/non-pushable memory.
9216 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
9218 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9219 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9221 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
9223 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
9224 * cppinit.c (cpp_create_reader): On by default.
9225 (cpp_handle_option): Handle -W[no-]endif-labels.
9226 (cpp_post_options): Also enable if -pedantic.
9227 * cpplib.c (do_else): Use it.
9228 (do_endif): Likewise.
9229 * doc/cppopts.texi: Document new option.
9230 * doc/invoke.texi: Document new option.
9232 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
9234 * config/i386/i386.c, config/i386/i386.md: Change all occurences
9235 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9237 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
9239 * flow.c (calculate_global_regs_live): Clear aux fields of
9242 2002-03-22 Jakub Jelinek <jakub@redhat.com>
9244 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9245 REG or MEM subregs, pass rtx * instead of rtx to it.
9246 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9247 rtx * instead of rtx to alter_subreg.
9248 * config/m32r/m32r.c (gen_split_move_double): Likewise.
9249 * config/pj/pj.c (pj_output_rval): Likewise.
9251 2002-03-22 Richard Henderson <rth@redhat.com>
9254 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9255 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9256 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9257 (ia64_expand_prologue): Look at int_regs, not words, for number
9258 of incomming int regs.
9260 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
9262 * expr.c (expand_expr): A RESULT_DECL is part of a call.
9264 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
9266 * toplev.c (flag_loop_optimize, flag_crossjumping):
9267 New static variables.
9268 (rest_of_compilation): Conditionalize crossjumping and
9270 (parse_options_and_default_flags): Default loop_optimize and
9272 (lang_independent_options): Add -fcrossjumping and -floop-optimize
9273 * invoke.texi (crossjumping, loop-optimize): Document.
9275 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9277 * real.c (eiisneg): Move outside #ifdef NANS.
9279 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
9281 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9282 frequencies match; avoid match on different loop depths.
9283 (try_crossjump_to_bb): Kill tests that no longer brings time
9285 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9287 (split_edge): Likewise.
9289 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9292 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9293 * cfgrtl.c: Include insn-config.h
9294 (split_block) Dirtify block in presence of conditional execution
9296 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9298 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9299 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9300 (function_arg): Constify CUMULATIVE_ARGS.
9301 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9302 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9303 (UNITS_PER_DOUBLE): New macro.
9304 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
9305 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
9306 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
9307 fp_regs and stack_words.
9308 (EABI_FLOAT_VARARGS_P): New macro.
9309 * config/mips/mips.c (struct mips_arg_info): New.
9310 (mips_arg_info): New function.
9311 (function_arg_advance): Use it. Add adjustment instructions here
9312 rather than in function_arg.
9313 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
9314 for VOIDmode at the beginning of the function.
9315 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
9316 (function_arg_pass_by_reference): Likewise.
9317 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9318 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9319 (mips_va_start): Likewise. Use the new stack_words field of
9320 CUMULATIVE_ARGS to set up overflow area. Reformat.
9321 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
9322 doubles and other types, aligning the overflow pointer for non-doubles
9323 too. Remove some code duplication. Replace hard-coded constants.
9325 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9327 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9328 (CLASS_UNITS): Undefine.
9329 (CLASS_MAX_NREGS): Use FP_INC.
9330 * config/mips/mips.c (compute_frame_size): Likewise.
9331 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9333 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
9335 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9336 prototype, and handle lexing numbers and identifiers.
9337 (parse_identifier): Update to new form of parse_slow.
9338 (parse_number): Fast path only, use parse_slow otherwise.
9339 (_cpp_lex_direct): Update calls to parse_number.
9341 2002-03-21 DJ Delorie <dj@redhat.com>
9343 * bb-reorder.c (make_reorder_chain_1): Protect against
9344 when redundant edges are omitted.
9345 * predict.c (dump_prediction): Likewise.
9347 2002-03-21 Richard Henderson <rth@redhat.com>
9350 * fixinc/inclhack.def (solaris_stdio_tag): New.
9351 * fixinc/fixincl.x: Regenerate.
9353 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
9356 * c-typeck.c (process_init_element): Flag non-static
9357 initialization of a flexible array member as illegal.
9359 2002-03-22 Alan Modra <amodra@bigpond.net.au>
9361 * config/rs6000/t-linux64: New.
9362 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9363 t-ppccomm. Use t-rs6000 and t-linux64.
9364 (powerpc64-*-gnu* <tmake_file>): Likewise.
9365 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9366 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9367 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9369 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
9371 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9372 flag_really_no_inline instead of optimize == 0.
9374 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9376 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9378 * flags.h (flag_really_no_inline): New.
9380 * c-common.c (c_common_post_options): Initialize
9381 flag_really_no_inline.
9383 * toplev.c (flag_really_no_inline): New.
9385 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9387 * config/avr/avr.md (length): Fix length computation for
9388 conditional branches.
9390 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
9392 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9393 sdbout.o, profile.o): Update.
9394 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9396 * c-common.h (gettags): Move here from tree.h.
9397 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9398 insert_block, getdecls, kept_level_p, global_bindings_p): New.
9399 * dbxout.c (dbxout_init): Use getdecls langhook.
9400 * expr.c (expand_expr): Use insert_block langhook.
9401 * fold-const.c: Include langhooks.h.
9402 (fold_range_test, fold_binary_op_with_conditional_arg,
9403 fold): Use global_bindings_p langhook.
9404 * integrate.c (expand_inline_function): Use insert_block langhook.
9405 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9406 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9407 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9408 LANG_HOOKS_GETDECLS): New.
9409 (LANG_HOOKS_INITIALIZER): Update.
9410 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9412 * langhooks.h (struct lang_hooks_for_decls): New.
9413 (struct lang_hooks): Update.
9414 * profile.c: Include langhooks.h.
9415 (output_func_start_profiler): Use new langhooks.
9416 * sdbout.c: Include langhooks.h.
9417 (sdbout_init, sdbout_finish): Use getdecls langhook.
9418 * stmt.c: Include langhooks.h.
9419 (expand_fixup, fixup_gotos): Use new langhooks.
9420 * stor-layout.c: Include langhooks.h.
9421 (variable_size): Use global_bindings_p langhook.
9422 * toplev.c (compile_file): Use getdecls langhook.
9423 * tree-inline.c (remap_block): Use insert_block langhook.
9424 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9425 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9427 2002-03-21 Richard Henderson <rth@redhat.com>
9429 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9430 constants in .data when -fpic.
9432 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9434 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9437 2002-03-21 Tom Tromey <tromey@redhat.com>
9439 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
9441 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9443 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9445 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9447 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
9448 Richard Henderson <rth@redhat.com>
9451 * c-common.c (c_expand_expr): Preserve result of a statement
9452 expression if needed.
9454 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9457 * genrecog.c (maybe_both_true_mode): Remove.
9458 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9459 * machmode.def (Pmode): Likewise.
9461 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
9463 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9464 (nonlocal_mentioned_p_1): New function.
9465 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9466 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9467 (mark_constant_function): Recognize pure functions.
9468 * rtl.h (global_reg_mentioned_p): New prototype.
9469 * rtlanal.c (global_reg_mentioned_p,
9470 global_reg_mentioned_p_1): New function.
9472 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9474 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9476 * fixinc/fixincl.x: Regenerate.
9478 2002-03-20 Jason Merrill <jason@redhat.com>
9480 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9482 2002-03-20 Michael Meissner <meissner@redhat.com>
9484 * doc/invoke.texi (Optimize Options): Document that -O2 sets
9487 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9489 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9490 ".literal_position" directive before the constant pool.
9492 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9494 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9495 Add Craig Rodrigues.
9496 Add Brad Lucier to testers.
9498 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9501 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9503 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9504 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9505 instead of insn_extract.
9507 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9510 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9512 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9513 stmt if some case has been output.
9515 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9518 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9519 movsfcc_1, movdfcc_1): Add %O2.
9520 * config/i386/i386.c (print_operand): Handle %ON.
9521 Print . before float condition codes in Sun as cmov syntax.
9522 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9523 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9526 2002-03-20 Philip Blundell <pb@nexus.co.uk>
9528 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9529 return instruction if PC was popped.
9531 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9533 * config/xtensa/xtensa.md: Remove unused type attributes.
9534 (adddi_carry, subddi_carry): Change type attribute to "multi".
9536 2002-03-19 Dale Johannesen <dalej@apple.com>
9538 PR optimization/5999, middle-end/5731
9539 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9540 multiplications by reciprocals.
9542 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
9544 * Makefile.in: Update.
9545 * c-common.c: Include langhooks.h.
9546 (inline_forbidden_p): Use new hook.
9547 * diagnostic.c: Include langhooks.h.
9548 (format_with_decl, announce_function,
9549 default_print_error_function): Use new hook.
9550 * dwarf2out.c (dwarf2_name): Use new hook.
9551 * function.c: Include langhooks.h.
9552 (init_function_start): Use new hook.
9553 * langhooks-def.h (lhd_decl_printable_name): New.
9554 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9555 (LANGHOOKS_INITIALIZER): Update.
9556 * langhooks.c (lhd_decl_printable_name): New.
9557 * langhooks.h (struct lang_hooks): New hook.
9558 * toplev.c (decl_name, decl_printable_name): Remove.
9559 (open_dump_file): Use new hook.
9560 (process_options): Remove old hook.
9561 * tree.h (decl_printable_name): Remove.
9563 * objc-act.c (objc_init): Remove old hook.
9564 (objc_printable_name): Export.
9565 * objc-act.h (objc_printable_name): New.
9566 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9568 2002-03-19 Jim Blandy <jimb@redhat.com>
9570 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9571 the start_source_file debug hook, not the current line number.
9573 2002-03-19 Richard Henderson <rth@redhat.com>
9575 * flow.c (EH_USES): Provide default.
9576 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9577 * doc/tm.texi (EH_USES): New.
9579 * config/ia64/ia64.c (ia64_eh_uses): New.
9580 * config/ia64/ia64-protos.h: Update.
9581 * config/ia64/ia64.h (EH_USES): New.
9583 2002-03-19 Richard Henderson <rth@redhat.com>
9585 * varasm.c (output_constant_def): Fix stupid typo.
9587 2002-03-19 Richard Henderson <rth@redhat.com>
9590 * except.c (current_function_has_exception_handlers): New.
9591 * except.h: Declare it.
9592 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9593 Combine tests that disable all sibcalls for the function.
9595 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
9597 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9600 2002-03-19 Richard Henderson <rth@redhat.com>
9603 * config/ia64/ia64.c: Revert 2002-03-01 patch.
9604 * config/ia64/ia64.h (INIT_EXPANDERS): New.
9606 2002-03-19 Jim Blandy <jimb@redhat.com>
9608 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9609 name, even if the replacement list contains no tokens, as required
9612 2002-03-19 Jason Merrill <jason@redhat.com>
9614 * varasm.c (globalize_decl): Get the name from the RTL, not
9615 DECL_ASSEMBLER_NAME.
9617 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9619 2002-03-19 Bob Wilson <bob.wilson@acm.org>
9621 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9622 subdi_carry): Define.
9624 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9626 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9627 about -fpic/-fPIC if extra_warnings set.
9629 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9631 * expr.c (expand_expr): Sign-extend CONST_INT generated from
9632 TREE_STRING_POINTER.
9633 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9635 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9637 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9638 in favor of SP if FRAME_POINTER_REQUIRED is false.
9640 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
9642 * emit-rtl.c (gen_int_mode): New function.
9643 * rtl.h: Prototype for it.
9644 * combine.c (make_extraction, simplify_comparison), expmed.c
9645 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9646 (convert_modes, store_field), optabs.c (expand_fix),
9647 simplify-rtx.c (neg_const_int, simplify_unary_real),
9649 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9650 Use it instead of GEN_INT (trunc_int_for_mode (...)).
9652 2002-03-19 Jakub Jelinek <jakub@redhat.com>
9655 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9656 convert_parm_for_inlining.
9657 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9659 * langhooks-def.h: Likewise.
9660 * objc/objc-lang.c: Likewise.
9661 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9663 * tree-inline.c (initialize_inlined_parameters):
9664 Call convert_parm_for_inlining lang hook if needed.
9665 * c-typeck.c (c_convert_parm_for_inlining): New function.
9666 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9668 2002-03-18 Mark Mitchell <mark@codesourcery.com>
9670 * calls.c (precompute_arguments): Do not assume that temporaries
9671 can be destroyed after expanding the argument.
9672 (expand_call): Likewise.
9674 2002-03-15 Eric Christopher <echristo@redhat.com>
9676 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9677 Fix register preference on last change.
9678 * config/mips/mips.c (mips_return_in_memory): New function.
9679 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9680 * config/mips/mips-protos.h: Declare.
9681 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9682 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9684 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
9686 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9688 (anddi3, iorsi3): Likewise.
9690 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9691 use %gprel for symbols that are going to be placed in linkonce
9694 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9695 RETURN_ADDRESS_POINTER_REGNUM to $ra.
9696 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9697 not needed. Disregard leaf_function_p().
9698 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9699 mips16 frame pointer.
9700 * config/mips/mips.md (store ra): Only to small SP offsets.
9701 2001-08-22 Graham Stott <grahams@redhat.com>
9702 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9703 return a REG rtx for the return address register.
9705 2002-03-18 Bob Wilson <bob.wilson@acm.org>
9707 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9708 constant-pool addresses as "mode-dependent".
9709 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9711 2002-03-18 Jakub Jelinek <jakub@redhat.com>
9714 * expr.c (emit_group_load): Use extract_bit_field if
9715 needed for CONCAT arguments.
9717 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
9720 * arm.md (tablejump): Make this a define_expand. For PIC add the
9721 offset to the base of the table.
9722 (thumb_tablejump): Matcher for Thumb tablejump insn.
9723 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9724 as the difference of two labels.
9725 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9726 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9728 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9729 * arm.c (get_jump_table_size): If the table is not in the text
9730 section, return zero.
9732 2002-03-18 Bernd Schmidt <bernds@redhat.com>
9734 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9736 (arm_reload_out_hi): Use gen_lowpart instead of
9737 gen_rtx_SUBREG to access QImode components.
9738 * config/arm/arm.md: Disable zero_extend split for QImode
9739 subregs in BIG_ENDIAN mode.
9740 (storehi_bigend): Match use of least significant byte.
9741 (storeinthi): Remove extraneous SUBREG.
9742 Add missing construction of operands[2].
9743 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9744 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9745 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9747 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
9749 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9752 2002-03-17 Richard Henderson <rth@redhat.com>
9754 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9757 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9759 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9760 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9762 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9764 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9766 * predict.c (estimate_bb_frequencies): Delete unused variables.
9768 2002-03-17 Richard Henderson <rth@redhat.com>
9770 * config/ia64/ia64.c (ia64_attribute_table): Move before
9771 targetm definition. Make static.
9773 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
9775 * c-common.h (yyparse, c_common_parse_file): New.
9776 * c-lang.c: Include c-common.h.
9777 (LANG_HOOKS_PARSE_FILE): Redefine.
9778 * c-lex.c: Include c-common.h.
9779 (yyparse): Rename c_common_parse_file. Call yyparse.
9780 * c-parse.in (yyparse): Remove macro.
9781 * c-tree.h (yyparse_1): Remove.
9782 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9783 (LANG_HOOKS_INITIALIZER): Update.
9784 * langhooks.h (struct lang_hoooks): New hook parse_file.
9785 * toplev.c (compile_file): Use parse_file hook.
9786 * tree.h (yyparse): Remove.
9787 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9789 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9791 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9792 float_truncate, not fix.
9793 ("*truncdfsf2_real"): Ditto.
9794 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9796 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9798 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
9800 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9801 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
9802 where appropriate. Make the second reference to
9803 leaf_function_p a function call, as intended. Reindented.
9805 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9806 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9808 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9809 add register to non-constant into sp.
9811 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9812 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9813 (mips16_gp_pseudo_rtx): Lose.
9814 (INIT_EXPANDERS): Deleted.
9815 * config/mips/mips.c (mips_init_machine_status): New.
9816 (mips_free_machine_status): New.
9817 (mips_mark_machine_status): New.
9818 (override_options): Set them.
9819 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9820 (struct machine_function): ... new. Replaced all references.
9821 (mips_add_gc_roots): Don't mark them.
9822 (embedded_pic_fnaddr_reg): New, extracted from...
9823 (embedded_pic_offset): ... here.
9824 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9827 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9829 * cppinit.c: Revert -MD removal.
9831 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9833 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9834 soft registers by default for 68HC12.
9835 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9836 when compiling with -fomit-frame-pointer.
9837 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9838 (expand_epilogue): Likewise.
9839 (m68hc11_gen_rotate): Use exg when rotating by 8.
9841 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9843 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9844 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9845 (splits): Remove unused add splits.
9846 ("*addhi3_68hc12"): Tune constraints.
9847 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9848 constant fits in 8-bits and D is dead use abx/aby instructions.
9849 ("*addhi3"): Remove extern declaration of ix_reg.
9850 ("*subsi3"): Optimize and provide new split.
9851 ("subhi3"): Cleanup.
9852 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9853 (arith splits): For 68hc12 save the address register on the stack
9854 and do the arithmetic operation with a pop.
9856 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9858 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9859 allocating QImode in address registers.
9860 ("*movqi_m68hc11"): Likewise.
9862 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9864 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9866 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9868 * cppinit.c (print_help): Display -MD and -MMD.
9869 Don't display usage string. Update assertion syntax and
9871 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9872 (cpp_handle_option): Update.
9874 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9876 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9877 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9878 and define it so that regardless of target CPU size,
9879 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9880 of "int" rather than "long."
9882 2002-03-15 Richard Henderson <rth@redhat.com>
9884 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9887 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9889 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9890 ("tstqi" split): Avoid using memory for tstqi on address register.
9891 (splits): Remove constraints.
9892 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9893 ("cmpdf", "cmpsf"): Remove since not used.
9894 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9895 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9897 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9899 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9900 ("neghi2"): Tighten constraints.
9901 ("one_cmplsi2"): Optimize and simplify split.
9902 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9904 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9906 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9907 and split of AND operation to clear the upper bits.
9908 ("*logicalsi3_zextqi"): Likewise.
9909 ("*logicallhi3_zexthi_ashift8"): Likewise.
9910 ("*logicalsi3_silshr16"): Likewise.
9911 ("logicalsi3_silshl16"): Likewise.
9912 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9914 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9916 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9917 (m68hc11_indirect_p): New function.
9918 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9919 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9921 (asm_print_register): Likewise.
9922 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9923 (m68hc11_indirect_p): Declare.
9924 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9925 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9926 (TARGET_SWITCHES): New option -mrelax.
9927 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9929 ("iorsi3", "xorsi3"): Likewise.
9930 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9931 ("*andhi3_mem"): New to handle destination in memory with bclr
9932 and a scratch register.
9933 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9934 ("*andhi3_const"): New when operand2 is constant.
9935 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9936 ("*andhi3_gen"): Cleanup of the old "andhi3".
9937 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9938 ("xorqi3"): Update constraints.
9940 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9942 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9943 for reg_equiv_memory_loc when the operand is a register that does
9944 not get a hard register (stack location).
9945 (tst_operand): After reload, accept all memory operand.
9946 (symbolic_memory_operand): Fix detection of symbolic references.
9947 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9948 accept symbols and any constant.
9950 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9952 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9953 note on the insn that sets the soft frame register.
9954 (must_parenthesize): ix and iy are also reserved names.
9955 (print_operand_address): One more place where parenthesis are required
9956 to avoid confusion with register names.
9957 (m68hc11_gen_movhi): Allow push of stack pointer.
9958 (m68hc11_check_z_replacement): Fix handling of parallel with a
9960 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9961 the replacement register is.
9962 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9963 and D8_REGS classes.
9964 (MODES_TIEABLE_P): All modes are tieable except QImode.
9966 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9968 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9969 (___subdi3): Likewise.
9970 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9971 (__map_data_section): Optimize 68hc11 case.
9973 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9975 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9976 than a shift to avoid adding a register with itself.
9977 (m68hc11_memory_move_cost): Take into account NO_REGS.
9978 (m68hc11_register_move_cost): Update and use memory move cost
9980 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9981 it gives more opportunities to cse to optimize.
9982 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9983 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9985 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9987 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9988 * c-common.def (CLEANUP_STMT): New tree node.
9989 * c-common.h (CLEANUP_DECL): New macro.
9990 (CLEANUP_EXPR): Likewise.
9991 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9992 * expr.c (expand_expr): Tidy.
9993 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9994 * tree-inline.c (initialize_inlined_parameters): Clean up
9995 new local variables.
9997 2002-03-15 Jakub Jelinek <jakub@redhat.com>
10000 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
10001 before movrXX only, use reg_overlap_mentioned_p.
10002 Only special case NE if just one insn can be generated.
10004 2002-03-15 Jason Merrill <jason@redhat.com>
10006 * varasm.c (assemble_variable): Call resolve_unique_section before
10007 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
10008 of error_mark_node.
10010 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
10013 * arm.md (split pattern for thumb shiftable immediates): Add comment
10014 explaining non-obvious test.
10016 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
10019 * arm.md (movaddr, movaddr_insn): Delete.
10021 2002-03-15 Jason Merrill <jason@redhat.com>
10023 * toplev.c (wrapup_global_declarations): Clarify variable handling.
10024 -fkeep-static-consts doesn't apply to comdats.
10026 2002-03-14 Richard Henderson <rth@redhat.com>
10028 * c-decl.c: Include c-pragma.h.
10029 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
10030 (finish_function): Tidy.
10031 * c-pragma.c: Include c-common.h.
10032 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
10033 (handle_pragma_weak): Use them.
10034 (init_pragma): Register pending_weaks.
10035 * c-pragma.h (maybe_apply_pragma_weak): Declare.
10036 * print-tree.c (print_node): Print DECL_WEAK.
10037 * varasm.c (mark_weak_decls): Remove.
10038 (remove_from_pending_weak_list): Remove.
10039 (add_weak): Remove.
10040 (asm_emit_uninitialised): Call globalize_decl for weak commons.
10041 (weak_decls): Make a tree_list.
10042 (declare_weak): Cons weak_decls directly.
10043 (globalize_decl): Remove weak_decls elements directly.
10044 (weak_finish): Simplify weak_decls walk. Don't weaken unused
10045 symbols. Don't pretend to handle aliases.
10046 (init_varasm_once): Update weak_decls registry.
10047 * Makefile.in: Update dependencies.
10049 2002-03-14 Richard Henderson <rth@redhat.com>
10052 * config/ia64/ia64.c: Include tm_p.h last.
10053 (gen_nop_type): Remove duplicate definition.
10054 (cycle_end_fill_slots): Set sched_data for second L slot.
10055 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
10056 (nop_cycles_until): Fix typos.
10058 2002-03-15 Jakub Jelinek <jakub@redhat.com>
10060 PR optimization/5891
10061 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
10063 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
10065 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
10066 descriptors correctly.
10068 2002-03-14 Michael Meissner <meissner@redhat.com>
10070 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
10071 100, allowing MAX_UNROLLED_INSNS to be overridden.
10073 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
10076 * unroll.c (params.h): Include.
10077 (MAX_UNROLLED_INSNS): Delete, now in params.h.
10079 * doc/invoke.texi (--param max-unroll-insns): Document.
10081 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
10083 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
10085 * arm.md: Fix warnings about constraints in peepholes and splits.
10087 2002-03-14 Zack Weinberg <zack@codesourcery.com>
10089 * cpphash.h (struct lexer_state): Remove line_extension member.
10090 * cpplib.c (dequote_string, do_linemarker): New functions.
10091 (linemarker_dir): New data object.
10092 (DIRECTIVE_TABLE): No longer need to interpret #line in
10093 preprocessed source. Delete obsolete comment about return
10094 values of handlers.
10095 (end_directive, directive_diagnostics, _cpp_handle_directive):
10096 Don't muck with line_extension.
10097 (directive_diagnostics): No need to issue warnings for
10099 (_cpp_handle_directive): Issue warnings for linemarkers here,
10100 when appropriate. Dispatch linemarkers to do_linemarker, not
10102 (do_line): Code to handle linemarkers split out to do_linemarker.
10103 Convert escape sequences in filename argument, both places.
10105 * cppmacro.c (quote_string): Rename cpp_quote_string and
10106 export. All callers changed.
10107 * cpplib.h (cpp_quote_string): Prototype.
10108 * cppmain.c (print_line): Call cpp_quote_string on to_file
10109 before printing it.
10111 * doc/cpp.texi: Document that escapes are now interpreted in
10112 #line and in linemarkers, and that non-printing characters are
10113 converted to octal escapes when linemarkers are generated.
10115 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
10117 * emit-rtl.c (try_split): Use delete_insns.
10118 * recog.c (split_all_insns): Fix terminating condition.
10120 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
10121 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10124 * arm.c (arm_output_epilogue): Fix floating-point register save
10125 adjustment when using a frame pointer.
10127 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
10129 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
10130 * config/mips/mips.c (compute_frame_size): Retrofit them here.
10131 (save_restore_insns, mips_expand_epilogue): And here.
10132 (build_mips16_call_stub): And here.
10133 (mips_function_value): Use the new macros to decide whether a single
10134 or complex float can be returned in floating-point registers. Return
10135 a parallel rtx in the complex case.
10137 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
10139 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
10140 call after liveness analysis.
10142 * recog.c (split_insn): Use delete_insn_and_edges.
10144 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
10145 instructions to have branch prediction notes.
10146 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
10148 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
10150 * configure.in: Don't pass -Wno-long-long to a ADA compiler
10151 that doesn't support it.
10152 * configure: Regenerate.
10154 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10157 * config/sparc/sparc.md (normal_branch, inverted_branch,
10158 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10159 inverted_fp_branch): Adjust calls to output_cbranch.
10160 Set length attribute.
10161 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
10162 output_v9branch. Set length attribute.
10163 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
10165 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
10166 (output_cbranch): Likewise. Handle far branches.
10167 (output_v9branch): Handle far branches.
10168 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
10170 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
10171 noov_compare64_op predicates.
10173 2002-03-13 Jason Merrill <jason@redhat.com>
10175 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
10176 into the function and constify it.
10177 * gthr-dce.h, gthr-solaris.h: Likewise.
10179 2002-03-13 David Edelsohn <edelsohn@gnu.org>
10181 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
10182 * config/rs6000/rs6000.c (rs6000_va_arg): Use
10183 std_expand_builtin_va_arg if not ABI_V4.
10185 2002-03-13 Jason Merrill <jason@redhat.com>
10187 * varasm.c (globalize_decl): New fn.
10188 (assemble_start_function): Use it.
10189 (asm_emit_uninitialized): Use it.
10190 (assemble_alias): Use it.
10191 (assemble_variable): Use it.
10193 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
10195 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
10196 2002-03-12 internal visibility change.
10197 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
10198 visibility into SYMBOL_REF_FLAG.
10200 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
10202 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
10203 VOIDmode operand. Add compile-time optimization for constant results.
10205 2002-03-12 Jason Merrill <jason@redhat.com>
10207 * c-typeck.c (convert_for_assignment): Don't allow conversions
10208 between pointers and references. Only allow lvalues to convert to
10211 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
10213 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10214 before prologue, to avoid scheduling problems.
10216 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10218 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10219 (ELIMINABLE_REGS): Add sfp->sp.
10220 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10222 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10224 PR optimization/5892
10225 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10227 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10229 * loop.c (basic_induction_var): Don't call convert_modes if mode
10230 classes are different.
10232 2002-03-12 Richard Henderson <rth@redhat.com>
10234 PR optimization/5901
10235 * function.c (reposition_prologue_and_epilogue_notes): Position
10236 the markers after/before the last/first insn not deleted.
10238 2002-03-12 Richard Henderson <rth@redhat.com>
10240 PR optimization/5878
10241 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10242 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10243 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10245 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10246 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10247 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10249 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10250 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10251 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10252 also. Don't set it if not flag_pic.
10253 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10254 to be INVALID_REGNUM when not used.
10256 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
10258 * expmed.c (store_bit_field): Reset alias set for memory.
10259 (extract_bit_field): Same.
10261 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10263 * c-common.c (c_tree_code_type, c_tree_code_length,
10264 c_tree_code_name, add_c_tree_codes): Delete.
10265 * c-common.h (add_c_tree_codes): Delete.
10266 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10268 * c-objc-common.c (c_objc_common_init): Don't call
10269 add_c_tree_codes, instead set lang_unsafe_for_reeval.
10270 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10271 objc_tree_code_name, add_objc_tree_codes): Delete.
10272 (objc_init): Don't call add_objc_tree_codes.
10273 * objc/objc-lang.c (tree_code_type, tree_code_length,
10274 tree_code_name): Define.
10275 * toplev.c (lang_independent_init): Don't set
10276 tree_code_length[IDENTIFIER_NODE].
10277 * tree.c (tree_code_type, tree_code_length, tree_code_name):
10278 Delete definitions, moved to language front-ends.
10279 * tree.def (IDENTIFIER_NODE): Hardwire the length.
10280 * tree.h (tree_code_type, tree_code_length, tree_code_name):
10282 (tree_code_length): Change type to unsigned char.
10284 2002-03-12 Richard Henderson <rth@redhat.com>
10286 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10287 internal visibility change.
10289 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10291 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10292 validize_mem() instead of change_address to avoid clobbering
10295 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
10297 * c-lex.h (position_after_whitespace): Remove.
10299 2002-03-12 Jakub Jelinek <jakub@redhat.com>
10301 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10302 (lex_string): Use unsigned char pointers.
10304 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
10306 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10307 is not a valid memory_operand.
10309 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10311 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10312 * config/xtensa/lib1funcs.asm: Fix copyright to include
10313 special case for libgcc files.
10314 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10315 (__divsi3): Likewise.
10316 (__umodsi3): Likewise.
10317 (__modsi3): Likewise.
10318 * config/xtensa/lib2funcs.S: Fix copyright to include
10319 special case for libgcc files.
10321 2002-03-12 Tom Rix <trix@redhat.com>
10323 * collect2.c (resolve_lib_name): Move outside of
10324 OBJECT_FORMAT_COFF ifdef.
10325 (ignore_library): Same.
10327 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10329 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10331 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10333 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10334 to function_section before writing out the constant pool.
10336 2002-03-12 David Edelsohn <edelsohn@gnu.org>
10338 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10340 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10342 2002-03-12 Alan Modra <amodra@bigpond.net.au>
10344 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10345 (adddi3): Likewise.
10348 (cmpsi splitter): Likewise.
10349 (modsi3): Fail if <= 0.
10350 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10351 redundant test when HOST_BITS_PER_WIDE_INT != 32.
10352 (reg_or_sub_cint64_operand): Likewise.
10353 (num_insns_constant_wide): Optimize sign extension.
10354 (rs6000_legitimize_address): Likewise.
10356 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
10358 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10359 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10361 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
10363 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10364 address calculation.
10366 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
10368 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10369 scratch register to DImode / TImode.
10370 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10371 register used does not overlap the target.
10373 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10375 * Makefile.in (debug.o): Depend on debug.h.
10376 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10377 * debug.c (do_nothing_debug_hooks): Likewise.
10378 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10379 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10380 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10381 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10382 * dwarfout.c (dwarf_debug_hooks): Likewise.
10383 * integrate.c (output_inline_function): Likewise.
10384 * objc/objc-act.c (synth_module_prologue): Likewise.
10385 * sdbout.c (sdb_debug_hooks): Likewise.
10386 * toplev.c (debug_hooks): Likewise.
10387 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10389 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10391 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10392 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10393 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10394 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10395 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10396 * defaults.h (POINTER_SIZE): Define.
10397 * doc/tm.texi (POINTER_SIZE): Document default.
10399 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10401 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10403 2002-03-11 Richard Henderson <rth@redhat.com>
10405 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10406 if rebuild_label_notes_after_reload.
10408 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
10410 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
10411 emit pic register load if "internal" visibility.
10412 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10413 (cris_expand_builtin_va_arg): Do all computations on trees.
10415 2002-03-11 Richard Henderson <rth@redhat.com>
10417 * rtlanal.c: Include recog.h.
10418 (keep_with_call_p): Fix thinko.
10419 * Makefile.in (rtlanal.o): Update dependencies.
10421 2002-03-11 Chris Meyer <cmeyer@gatan.com>
10423 * genflags.c (gen_insn): Use IS_VSPACE.
10424 * genoutput.c (output_insn_data): Likewise.
10425 (process_template): Likewise.
10427 2002-03-11 Richard Henderson <rth@redhat.com>
10429 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10431 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
10433 * Makefile.in: Update.
10434 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10435 Update documentation.
10436 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10437 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10439 2002-03-11 Zack Weinberg <zack@codesourcery.com>
10441 * Makefile.in: Give texi2pod its input file as a command line
10442 argument, not on stdin.
10444 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
10445 Daniel Berlin <dan@dberlin.org>
10447 C++ alias analysis improvement.
10448 * alias.c (record_component_aliases): Record aliases for base
10451 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10453 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10455 2002-03-11 Douglas B Rupp <rupp@gnat.com>
10457 * toplev.c (vms_fopen): Remove, not needed.
10459 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10461 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10463 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10464 for FP, already done later.
10466 * toplev.c (debug_args): Add entry for VMS_DEBUG.
10467 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10469 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
10471 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10472 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10473 LARGEST_EXPONENT_IS_NORMAL for the given mode.
10474 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10475 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10476 (ediv, emul, eldexp, esqrt): Likewise.
10477 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10478 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10479 (saturate): New function.
10480 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10481 (make_nan): Use a saturation value instead of a NaN if
10482 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
10483 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10484 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
10485 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
10486 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10487 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10488 !ROUND_TOWARDS_ZERO.
10489 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10490 (ROUND_TOWARDS_ZERO): Document.
10492 2002-03-11 Andreas Jaeger <aj@suse.de>
10494 * cfg.c (dump_flow_info): Remove unused variable.
10496 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
10498 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10499 computations on trees.
10501 2002-03-10 Richard Henderson <rth@redhat.com>
10504 * reload.c (copy_replacements_1): New.
10505 (copy_replacements): Use it to recurse through the rtx.
10507 2002-03-10 Richard Henderson <rth@redhat.com>
10509 * loop.c (strength_reduce): Compute number of iterations as
10510 unsigned HOST_WIDE_INT.
10512 2002-03-10 Richard Henderson <rth@redhat.com>
10514 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10515 to move away from the end of the block.
10517 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
10519 PR preprocessor/5899
10520 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10522 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10524 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10526 * attribs.c (decl_attributes): Fix signed/unsigned warning.
10528 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
10530 * config/mmix/mmix.c: Improve comments.
10531 (mmix_target_asm_function_prologue): Drop variable
10532 empty_stack_frame. Don't allocate unused slot above fp.
10533 (mmix_target_asm_function_epilogue): Mirror prologue changes.
10534 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10535 brace in first column.
10536 (enum reg_class): Ditto.
10537 (FIRST_PARM_OFFSET): Now 0.
10538 (USER_LABEL_PREFIX): Remove #if 0:d definition.
10540 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10542 * combine.c (make_extraction): Fix error in last change.
10544 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10546 * c4x.c (c4x_fp_reglist): Const-ify.
10547 * cris.c (cris_print_operand): Likewise.
10548 * i386.c (ix86_va_arg): Likewise.
10549 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10550 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10551 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10552 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10553 * mcore.h (regno_reg_class): Likewise.
10554 * mips.c (gen_int_relational): Likewise.
10555 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10556 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10557 * pdp11.c (move_costs): Likewise.
10558 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10559 * s390.c (s390_branch_condition_mnemonic, regclass_map):
10561 * s390.h (regclass_map): Likewise.
10562 * sh.c (shift_amounts): Likewise.
10563 * sh.md (rotlsi3): Likewise.
10565 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10567 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10568 (ne0+5): Use new clobber to generate proper shift pattern.
10569 Patch by Michael Matz <matz@kde.org>.
10571 2002-03-09 Andreas Schwab <schwab@suse.de>
10573 * gcc.c (validate_all_switches): Also handle `%W{...}'.
10575 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10577 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10579 2002-03-09 Jakub Jelinek <jakub@redhat.com>
10582 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10583 even for non-representable constants.
10585 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10587 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10588 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10589 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10590 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10591 (pop_function_context): Compute MAY_SHARE parameter for
10593 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10594 (gen_mem_addressof): Call fixup_var_refs with new parm.
10596 * combine.c (make_extraction): Don't make extension of CONST_INT.
10598 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10600 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10601 in o32 and o64 ABIs.
10602 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10603 but getting fixed-size structs passed in registers regardless of
10604 padding in o32 and o64 ABIs.
10606 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10607 offset before loading address of argument passed by transparent
10610 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10612 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10614 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10616 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10617 marker such that registers after it are saved.
10619 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10621 * sparc.c (arith_4096_operand): Fix error in last change.
10623 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10625 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10626 defaults for MEABI.
10628 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10630 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10633 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10635 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10637 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
10639 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10640 removed; fix return value.
10641 * combine.c (combine_instructions): Dirtify blocks where we failed to
10642 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10643 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10645 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10647 * gcse.c (insert_insn_end_bb): Fix typo in last change.
10649 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
10651 * recog.c (peephole2_optimize): Re-distribute EH edges.
10653 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
10655 * expr.c (expand_expr): Use unsave lang hook.
10656 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10657 (LANG_HOOKS_INITIALIZER): Update.
10658 * langhooks.h (struct lang_hooks): New hook unsave.
10659 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10660 (unsave_expr_1): Remove unused lang_unsave_expr_now.
10661 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
10662 (unsave_expr_now): Remove.
10663 * tree.h (unsave_expr_now, lang_unsave,
10664 lang_unsave_expr_now): Remove.
10667 2002-03-08 Andreas Jaeger <aj@suse.de>
10669 * flow.c (propagate_block_delete_insn): Remove unused variable.
10671 2002-03-08 Kazu Hirata <kazu@hxi.com>
10673 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10674 insn length for memory load/store.
10676 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
10678 * doc/install.texi (--with-libiconv-prefix): Document.
10680 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
10682 * doc/sourcebuild.texi: Fix typo.
10684 2002-03-08 Jakub Jelinek <jakub@redhat.com>
10687 * builtins.c (std_expand_builtin_va_arg): Do all computations on
10690 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10692 * rtl.c (copy_most_rtx): Move from here ...
10693 * emit-rtl.c (copy_most_rtx): ... to here.
10695 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10697 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10698 SUBTARGET_CPP_SIZE_SPEC.
10699 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10701 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10703 2002-03-07 Matt Hiller <hiller@redhat.com>
10705 * gensupport.c (first_dir_md_include): Renamed from include;
10706 change all references.
10707 (last_dir_md_include): Renamed from last_include; change all
10709 (init_md_reader): Unconditionally initialize base_dir whether or
10710 not filename is a relative path.
10712 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
10714 * config/fp-bit.c (_unord_f2): Compile it in even if
10715 US_SOFTWARE_GOFAST is enabled.
10717 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10718 NULL_RTX. Set all HFmode operations as NULL_RTX.
10719 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10720 NULL_RTX, try reversing the comparison and the operands.
10722 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10724 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10725 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10728 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
10730 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10732 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10734 * basic-block.h (fixup_abnormal_edges): Declare.
10735 * reload1.c (fixup_abnormal_edges): New function.
10736 * reg-stack.c (convert_regs): Use it.
10738 * gcse.c (insert_insn_end_bb): Handle trapping insns.
10740 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10742 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
10744 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10745 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10746 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10747 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10748 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10749 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10750 unless x and y could be infinite.
10751 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10752 Check that the common type of both arguments is a real, even for
10753 targets without unordered comparisons. Allow an integer argument
10754 to be compared against a real.
10755 (expand_tree_builtin): Use expand_unordered_cmp.
10756 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10757 * cse.c (fold_rtx): Likewise. Fix indentation.
10758 * fold-const.c (fold_real_zero_addition_p): New.
10759 (fold): Use it, and the new HONOR_... macros.
10760 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10761 * jump.c (reversed_comparison_code_parts): After searching for
10762 the true comparison mode, use HONOR_NANS to decide whether it
10763 can be safely reversed.
10764 (reverse_condition_maybe_unordered): Remove IEEE check.
10765 * simplify-rtx.c (simplify_binary_operation): Use the new macros
10766 to decide which simplifications are valid. Allow the following
10767 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10768 and (a - -b) to (a + b).
10769 (simplify_relational_operation): Use HONOR_NANS.
10770 * doc/tm.texi: Document the MODE_HAS_... macros.
10772 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10774 * combine.c (simplify_comparison): If simplifying a logical shift
10775 right and compare with constant, force the comparison to unsigned.
10777 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
10779 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10781 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10783 (alt_reg_names): Remove % for vrsave.
10785 2002-03-06 Richard Henderson <rth@redhat.com>
10787 PR optimization/5844
10788 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
10789 if used indicates we've already emitted one copy of an operand.
10790 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10791 (gen_split): Supply a non-null used.
10793 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10795 * reload1.c (reload): Unshare all rtl after reload is done.
10797 * simplify-rtx.c (simplify_plus_minus): Do not abort,
10798 but simply fail if the expression is too complex to simplify.
10799 (simplify_gen_binary): Handle simplify_plus_minus failures.
10801 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
10803 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10804 consistently call delete_trivially_dead_insns after CSE and GCSE;
10805 fix DFI_life dumping; do jump threading after liveness; do crossjumping
10806 after liveness2; update comment in last crossjumping.
10807 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10809 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
10811 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10812 after completing fast dead code elimination.
10814 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10817 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
10819 * version.c: Fix misplaced leading blanks on first line.
10821 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10823 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10825 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10827 * cfgcleanup.c (mentions_nonequal_regs): New function.
10828 (thread_jump): Use it.
10829 * toplev.c (rest_of_compilation): Run jump threading after
10832 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10834 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10837 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10839 * predict.c (estimate_bb_frequencies): Do not reload the
10840 frequencies from notes.
10842 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10844 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10845 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10847 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10848 delete_noop_moves): Return indeger.
10849 * flow.c (ndead): New variable.
10850 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10851 BB argument; update callers.
10852 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10853 (life_analysis): Do not call purge_all_dead_edges.
10854 (update_life_info): Return number of deleted insns; print statistics.
10855 (update_life_info_in_dirty_blocks): likewise.
10856 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10857 return number of insns deleted.
10859 * cse.c: Include timevar.h
10860 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10861 iterate until stabilizes; print statistics; return number of killed
10863 * Makefile.in: (cse.o): Add timevar.h dependency
10864 * rtl.h (delete_trivially_dead_insns): New.
10865 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10866 * toplev.c (rest_of_compilation): Update callers.
10868 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10869 (try_optimize_cfg): Do not update liveness.
10870 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10871 removal stabilizes; use delete_trivially_dead_insns.
10873 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10875 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10877 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10878 callbacks when processing assembly language.
10880 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10882 * pa.h (ASM_FILE_END): Define.
10883 * som.h (ASM_FILE_END): Delete.
10885 * pa.c (function_arg): Don't pass floats in general registers in
10886 indirect calls if TARGET_ELF32.
10888 2002-03-05 Richard Henderson <rth@redhat.com>
10890 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10892 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
10894 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10896 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10898 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10899 -r command line. Don't hide any symbols if not building
10902 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
10904 * cfg.c (dump_flow_info): Warn about profile mismatches.
10905 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10906 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10908 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10910 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10911 wide volatile memory by parts.
10913 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10915 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10918 2002-03-05 Richard Henderson <rth@redhat.com>
10920 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10922 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10924 * toplev.c (documented_lang_options): Document more
10925 language-specific options.
10926 * doc/invoke.texi (Warning Options): Correct documentation for
10927 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10928 * c-decl.c (c_decode_option): Use a table to handle warning options.
10930 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
10932 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10933 parameter to mmix_encode_section_info.
10934 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10935 relocatably. Always produce ELF, not mmo if linking relocatably.
10936 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10937 first is non-zero, don't add symbol prefix.
10938 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10939 prototype accordingly.
10941 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10943 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10945 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10947 * configure.in: Increase required makeinfo version to 4.1.
10948 * configure: Regenerate.
10950 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10952 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10955 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10957 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10958 * doc/invoke.texi: Fix @math uses.
10960 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10962 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10965 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10967 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10968 (powerpc-*-eabisimaltivec*): Same.
10970 * config/rs6000/t-ppcendian: New.
10972 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10974 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10975 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10976 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10978 2002-03-03 Richard Henderson <rth@redhat.com>
10980 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10982 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10984 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10985 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10986 tree.c, config/m68k/m68k.c:
10987 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10988 REAL_ARITHMETIC blocks unconditional. Delete some further
10989 #ifdef blocks predicated on REAL_ARITHMETIC.
10990 * flags.h, toplev.c: Delete remaining references to
10991 flag_pretend_float.
10993 * doc/invoke.texi: Remove documentation of -fpretend-float.
10994 * doc/tm.texi: Describe the various REAL_* macros as provided by
10995 real.h, not by the target configuration files.
10997 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10998 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10999 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11000 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
11001 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
11002 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
11003 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
11004 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
11005 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11006 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
11007 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11008 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
11009 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
11010 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
11011 config/xtensa/xtensa.h:
11012 Do not define, undefine, or mention in comments any of
11013 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
11014 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
11015 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
11016 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
11017 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
11018 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
11019 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
11020 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
11021 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
11023 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11025 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
11026 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
11027 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
11028 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
11029 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
11030 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
11032 * defaults.h (BITS_PER_WORD): Define.
11033 * doc/tm.texi (BITS_PER_WORD): Document default value.
11035 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
11036 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
11037 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
11039 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11041 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
11042 lieu of explicit sizeof/sizeof.
11043 * i386.c (override_options, ix86_init_mmx_sse_builtins,
11044 ix86_expand_builtin): Likewise.
11045 * mips.c (mips_add_gc_roots): Likewise.
11046 * mmix.c (mmix_output_condition): Likewise.
11047 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
11048 altivec_init_builtins): Likewise.
11049 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
11050 * cppexp.c (Nsuff, parse_number): Likewise.
11051 * cppinit.c (builtin_array_end): Likewise.
11052 * gcc.c (n_default_compilers, process_command): Likewise.
11053 * genpreds.c (output_predicate_decls): Likewise.
11054 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
11055 * lcm.c (N_ENTITIES): Likewise.
11056 * stor-layout.c (set_sizetype): Likewise.
11058 2002-03-03 Richard Henderson <rth@redhat.com>
11060 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
11061 for types or labels.
11063 2002-03-03 Richard Henderson <rth@redhat.com>
11065 * c-decl.c (start_decl): Initialized variables are not common.
11067 2002-03-02 Per Bothner <per@bothner.com>
11069 * gcc.c (option_map): Suport new --bootclasspath option.
11070 --CLASSPATH is now just an alias for --classpath.
11072 2002-03-02 Richard Henderson <rth@redhat.com>
11074 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
11075 load if "internal" visibility.
11076 * doc/extend.texi: Document visibility meanings.
11078 2002-03-02 Richard Henderson <rth@redhat.com>
11080 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
11081 to functions as well.
11083 2002-03-02 Richard Henderson <rth@redhat.com>
11085 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
11086 (handle_visibility_attribute): Don't call assemble_visibility.
11087 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
11088 without asmspec. Invoke assemble_alias when needed.
11089 * varasm.c (maybe_assemble_visibility): New.
11090 (assemble_start_function, assemble_variable, assemble_alias): Use it.
11092 2002-03-02 Richard Henderson <rth@redhat.com>
11094 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
11095 invoke ENCODE_SECTION_INFO with first call flag.
11097 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
11098 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
11099 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
11100 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
11101 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
11102 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11103 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
11104 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
11105 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
11106 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
11107 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11108 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
11109 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
11110 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
11111 config/mcore/mcore-protos.h, config/mcore/mcore.c,
11112 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
11113 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
11114 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11115 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
11116 config/sh/sh.h, config/sparc/sparc.h,
11117 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
11118 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
11119 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
11120 FIRST argument. As needed, examine it and do nothing.
11122 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
11123 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11124 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
11126 * config/arm/t-pe (pe.o): Add dependencies.
11128 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11130 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
11131 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
11132 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
11133 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
11134 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
11135 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
11136 * defaults.h (BITS_PER_UNIT): Define.
11137 * doc/tm.texi (BITS_PER_UNIT): Document default value.
11139 2002-03-02 Kazu Hirata <kazu@hxi.com>
11141 * config/h8300/h8300-protos.h: Add a prototype for
11142 compute_a_shift_length.
11143 * config/h8300/h8300.c (h8300_asm_insn_count): New.
11144 (compute_a_shift_length): Likewise.
11145 (h8300_adjust_insn_length): Do not adjust insn length of shift
11147 * config/h8300/h8300.md (anonymous shift patterns): Use
11148 compute_a_shift_length.
11150 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11152 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
11153 trunc_int_for_mode.
11155 * emit-rtl.c (offset_address): Call update_temp_slot_address.
11157 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11159 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
11160 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
11161 * flags.h (flag_zero_initialized_in_bss): Declare.
11162 * toplev.c (flag_zero_initialized_in_bss): New flag.
11163 (lang_independent_options): Add flag_zero_initialized_in_bss.
11164 * tree.c (initializer_zerop): New function.
11165 * tree.h (initializer_zerop): Declare.
11166 * varasm.c (assemble_variable): If we can emit bss, put zero
11167 initializers in the bss section.
11169 2002-03-02 Alan Modra <amodra@bigpond.net.au>
11171 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
11172 like more than one symbol per .weak directive.
11174 2002-03-01 Richard Henderson <rth@redhat.com>
11176 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
11177 adjust argument_pointer by pretend_args_size.
11178 (ia64_va_start): Adjust va_start address by -pretend_args_size.
11180 2002-03-01 Kazu Hirata <kazu@hxi.com>
11182 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
11184 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
11186 * toplev.c (rest_of_compilation): Delete dead jumptables before
11188 * flow.c (delete_dead_jumptables): Make global.
11189 * rtl.h (delete_dead_jumptables): Declare.
11191 2002-03-01 David Edelsohn <edelsohn@gnu.org>
11193 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
11194 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
11195 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
11197 2002-03-01 Kazu Hirata <kazu@hxi.com>
11199 * config/h8300/h8300-protos.h: Fix formatting.
11200 * config/h8300/h8300.c: Likewise.
11201 * config/h8300/h8300.h: Likewise.
11203 2002-03-01 Kazu Hirata <kazu@hxi.com>
11205 * config/h8300/h8300.c (print_operand): Support 16-bit
11206 constant addresses.
11207 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
11209 2002-02-28 Richard Henderson <rth@redhat.com>
11211 * expmed.c (store_bit_field): Prevent generation of CONCATs;
11212 pun complex values as integers; use gen_lowpart instead of
11214 (extract_bit_field): Likewise.
11216 2002-03-01 Alan Modra <amodra@bigpond.net.au>
11217 David Edelsohn <edelsohn@gnu.org>
11219 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11220 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11221 (SUPPORTS_WEAK): Likewise.
11222 * output.h (add_weak): Add tree param.
11223 * varasm.c (add_weak): Likewise. Save decl.
11224 (struct weak_syms): Add decl field.
11225 (mark_weak_decls): New function.
11226 (init_varasm_once): ggc_add_root mark_weak_decls.
11227 (assemble_start_function): Use ASM_WEAKEN_DECL.
11228 (assemble_variable): Likewise.
11229 (assemble_alias): Likewise.
11230 (declare_weak): Pass decl to add_weak.
11231 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11232 (remove_from_pending_weak_list): Declare and define for
11234 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11235 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11236 * defaults.h (SUPPORTS_WEAK): Likewise.
11237 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11238 .weak for code sym. Do emit .size for descriptor sym.
11239 (ASM_DECLARE_FUNCTION_SIZE): Define.
11240 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11241 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
11242 .lglobl unless TARGET_XCOFF. Formatting fixes.
11243 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11244 .weak for code sym.
11245 (HANDLE_PRAGMA_WEAK): Remove.
11246 (ASM_WEAKEN_LABEL): Remove.
11247 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11249 2002-03-01 Jason Merrill <jason@redhat.com>
11251 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11252 (TARGET_EXPR_CLEANUP): New macro.
11254 2002-02-28 Steve Ellcey <sje@cup.hp.com>
11256 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11257 to take ptr_extend into account as third type of extension.
11258 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11259 fields used by SUBREG_PROMOTED_UNSIGNED_P.
11260 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11261 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11262 * calls.c (precompute_arguments): Use new macro.
11263 (expand_call): Ditto.
11264 * combine.c (nonzero_bits): Ditto.
11265 (record_promoted_value): Ditto.
11266 * expr.c (store_expr): Ditto.
11267 (expand_expr): Ditto.
11268 * function.c (assign_parms): Ditto.
11270 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
11272 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11273 override -shared and -shared-libgcc.
11275 2002-02-28 David O'Brien <obrien@FreeBSD.org>
11277 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11279 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
11282 2002-02-28 Richard Henderson <rth@redhat.com>
11284 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11285 4 cycle latency from MM producers.
11286 (ia64_internal_sched_reorder): Likewise with pipeline flush.
11288 2002-02-28 Jakub Jelinek <jakub@redhat.com>
11290 * mklibgcc.in: Don't use GNU make extension.
11292 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11294 * c-parse.in (STATIC): New terminal.
11295 (scspec): New non-terminal. Update productions accordingly.
11296 (program): Remove bogus ifc / end ifc.
11297 (array_declarator): Simplify production using STATIC.
11299 2002-02-28 Jim Meyering <meyering@lucent.com>
11301 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11302 \a still means TARGET_BELL.
11304 2002-02-28 Richard Henderson <rth@redhat.com>
11306 * haifa-sched.c (sched_emit_insn): New.
11307 (schedule_block): Use last_scheduled_insn to track last insn.
11308 * sched-int.h (sched_emit_insn): Prototype.
11309 * config/ia64/ia64.c (last_issued): Remove.
11310 (ia64_variable_issue): Don't set it.
11311 (nop_cycles_until): Use sched_emit_insn.
11313 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
11315 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11316 extended constants.
11318 2002-02-28 Kazu Hirata <kazu@hxi.com>
11320 * config/h8300/h8300.c: Fix formatting.
11321 * config/h8300/h8300.h: Likewise.
11323 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
11325 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11326 which may overwrite the high byte of the frame pointer.
11328 2002-02-28 Bo Thorsen <bo@suse.de>
11330 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11331 (STARTFILE_SPEC): Add 64 bit files.
11332 (ENDFILE_SPEC): Likewise.
11334 2002-02-28 Jason Merrill <jason@redhat.com>
11336 * c-decl.c (finish_function): Only warn about missing return
11337 statement with -Wreturn-type.
11339 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
11341 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11343 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11344 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11346 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
11348 * basic-block.h (BB_REACHABLE): Renumber.
11349 (BB_DIRTY, BB_NEW): New flags.
11350 (clear_bb_flags): Declare.
11351 (update_life_info_in_dirty_blocks): Declare.
11352 * cfg.c (clear_bb_flags): New function.
11353 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11354 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11355 reorder_insns, emit_insn_after): Mark block as dirty.
11356 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11357 (update_life_info_in_dirty_blocks): New function.
11358 * recog.c (apply_change_group): Dirtify block.
11360 * cse.c (cse_insn): Reorder emitting of jump insn to keep
11362 * gcse.c (delete_null_pointer_checks): Likewise.
11364 * toplev.c (dump_file_index): Move cse2 after bp,
11366 (dump_file_info): Similary.
11367 (rest_of_compilation): Avoid most of CFG rebuilds;
11368 do first if converision after null pointer checks, do cse2
11369 after branch prediction; avoid full liveness rebuild after
11370 initializing subregs.
11371 * invoke.texi (-d options): Document -du, renumber.
11373 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11374 (notice_new_block): Do not set BB_UPDATE_LIFE.
11375 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11376 merge_blocks_move_successor_nojumps, merge_blocks,
11377 try_crossjump_to_edge): Likewise.
11378 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11379 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11380 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11381 (merge_of_block): Do not use life_data_ok.
11382 (find_if_case_1): Do not use SET_UPDATE_LIFE.
11383 (if_convert): Use BB_DIRTY mechanizm to update life.
11384 * lcm.c (optimize_mode_switching): Update
11385 update_life_info_in_dirty_blocks
11387 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11389 * Makefile.in (integrate.o): Update.
11390 * c-decl.c (copy_lang_decl): Rename.
11391 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11392 * integrate.c: Include langhooks.h.
11393 (copy_decl_for_inlining): Update to use langhook.
11394 * langhooks-def.h (lhd_do_nothing_t,
11395 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11396 (LANG_HOOKS_INITIALIZER): Update.
11397 * langhooks.c (lhd_do_nothing_t): New.
11398 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11399 * tree.h (copy_lang_decl): Remove.
11401 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11403 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
11405 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11406 POST_DEC, and POST_MODIFY.
11408 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11410 * c-typeck.c (digest_init): Remove unused parameter; all
11413 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
11415 * expmed.c (expand_shift): Correctly test for low part of a
11418 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
11420 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11421 insn UIDs with insn addresses.
11423 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11425 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11426 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11427 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11428 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11429 gcc.c, toplev.c: Delete code implementing -traditional mode.
11431 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11432 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11433 Document removal of -traditional mode for compilation, and
11434 remove documentation only relevant to that mode.
11436 * config/nextstep.h, config/ptx4.h, config/svr4.h,
11437 config/convex/convex.h, config/d30v/d30v.h,
11438 config/i386/dgux.h, config/i386/osf1elf.h,
11439 config/i386/osfelf.h, config/i386/osfrose.h,
11440 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11441 config/m68k/hp310.h, config/m88k/dgux.h,
11442 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11443 config/m88k/m88k.h, config/m88k/openbsd.h,
11444 config/mips/abi64.h, config/mips/osfrose.h,
11445 config/mips/svr4-5.h, config/mips/svr4-t.h,
11446 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11447 config/stormy16/stormy16.h: Remove all references to
11448 -traditional from target specs. Delete all mention of the
11449 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
11450 delete a couple of commented-out definitions of
11451 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11454 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11455 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11457 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11459 * mklibgcc.in: Don't use \n in a line subject to
11460 interpretation by echo.
11462 2002-02-27 Graham Stott <grahams@redhat.com>
11464 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11467 * loop.c (prescan_loop): Handle PARALLEL.
11469 * unroll.c (loop_iterations): Return 0 if the add_val for
11472 * final.c (output_operand_lossage): Constify PFX_STR.
11474 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11476 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
11478 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11479 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11481 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
11483 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11485 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
11487 * cpplex.c (_cpp_lex_token): Handle directives in macro
11489 * cpplib.c (_cpp_handle_directive): Save and restore state
11490 if parsing macro args when entering a directive.
11491 * cppmacro.c (collect_args): No need to handle directives
11492 in macro arguments.
11493 (enter_macro_context, replace_args): Use the original macro
11494 definition in case it was redefined whilst collecting arguments.
11496 * cpp.texi: Update.
11498 2002-02-26 David Edelsohn <edelsohn@gnu.org>
11500 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11501 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11502 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11504 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11505 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11506 (load_toc_v4_PIC_2): Same.
11508 2002-02-26 Alan Modra <amodra@bigpond.net.au>
11510 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11512 2002-02-26 Richard Henderson <rth@redhat.com>
11514 * config/alpha/alpha.md (ashldi_se): Re-enable.
11516 2002-02-26 Richard Henderson <rth@redhat.com>
11518 * config/alpha/alpha.c (alpha_encode_section_info): Examine
11519 MODULE_LOCAL_P; improve commentary.
11521 2002-02-26 Zack Weinberg <zack@codesourcery.com>
11523 * doc/cpp.texi: Clarify documentation of relationship between
11524 #line and #include.
11526 2002-02-26 Kazu Hirata <kazu@hxi.com>
11528 * config/h8300/h8300-protos.h: Update the prototype for
11529 compute_logical_op_length. Add the prototype for
11530 compute_logical_op_cc.
11531 * config/h8300/h8300.c (compute_logical_op_length): Figure out
11532 code from operands.
11533 (compute_logical_op_cc): New.
11534 * config/h8300/h8300.md: Combine all the logical op patterns
11535 in HImode and SImode. Use compute_logical_op_cc.
11537 2002-02-26 Kelley Cook <kelleycook@comcast.net>
11539 * config/i386/i386.c (print_operand): Don't append ATT-style
11540 length suffixs to x87 opcodes when in Intel mode.
11542 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
11544 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11545 (init_emit_once): Update calls.
11546 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11547 (init_syntax_once): Prototype.
11549 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11551 * pa-linux.h (LIB_SPEC): Update definition.
11552 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11554 2002-02-26 Richard Henderson <rth@redhat.com>
11556 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11557 if we emitted a stop bit.
11559 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11561 * configure.in (libgcc_visibility): Substitute.
11562 * configure: Rebuilt.
11563 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11564 defined symbols .hidden.
11566 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11568 * attribs.c (c_common_attribute_table): Add visibility.
11569 (handle_visibility_attribute): New function.
11570 * varasm.c (assemble_visibility): New function.
11571 * output.h (assemble_visibility): Add prototype.
11572 * tree.h (MODULE_LOCAL_P): Define.
11573 * crtstuff.c (__dso_handle): Use visibility attribute.
11574 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11575 for MODULE_LOCAL_P symbols too.
11576 * config/ia64/ia64.c (ia64_encode_section_info): Handle
11577 MODULE_LOCAL_P symbols the same way as local symbols.
11578 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11579 into .sdata/.sbss by the user.
11580 * doc/extend.texi (Function Attributes): Document visibility
11583 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11586 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11587 STRING_CST initializer spanning the whole variable without
11589 If expand_expr returned MEM, don't use it.
11591 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
11593 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11594 generate a die for the lexical block.
11596 2002-02-26 Kazu Hirata <kazu@hxi.com>
11598 * config/h8300/h8300-protos.h: Add a prototype for
11599 compute_logical_op_length.
11600 * config/h8300/h8300.c (compute_logical_op_length): New.
11601 * config/h8300/h8300.md (anonymous logical patterns): Use
11602 compute_logical_op_length for length.
11604 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11606 * dwarf2out.c (modified_type_die): Do not call type_main_variant
11608 (gen_type_die): Same.
11610 * attribs.c (handle_vector_size_attribute): Set debug information.
11612 2002-02-26 Daniel Egger <degger@fhm.edu>
11614 * config/rs6000/rs6000.md: Swap define_insn attributes to
11615 fix incorrect generation of merge high instructions instead
11618 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11620 * c-typeck.c (really_start_incremental_init): Use
11621 bitsize_zero_node for vectors.
11623 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11625 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11626 ("*set_vrsave_internal"): Same.
11628 2002-02-25 Richard Henderson <rth@redhat.com>
11630 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11631 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
11633 2002-02-25 Jakub Jelinek <jakub@redhat.com>
11636 * config/i386/i386.c (ix86_return_pops_args): Only pop
11637 fake structure return argument if it was passed on the stack.
11639 2002-02-25 Jason Merrill <jason@redhat.com>
11641 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11644 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11646 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11647 link with shared_name only.
11648 * doc/invoke.texi (Link Options): Document new behavior.
11650 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11652 * c-typeck.c (push_init_level): Handle vectors.
11654 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11656 * config/sparc/sparc.c (const64_high_operand): Zero-extend
11657 operands of SPARC_SETHI_P.
11658 (input_operand): Likewise.
11659 (sparc_emit_set_const32): Likewise.
11660 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11661 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11662 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
11663 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11664 (movdi_insn_sp64_vis): Likewise.
11665 (movdi split, movdf split): Use SETHI32.
11666 * doc/md.texi: Document SPARC constraints L, M and N.
11668 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11670 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11671 ("*set_vrsave_internal"): use mfspr for Darwin.
11673 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11674 gen_get_vrsave_internal.
11676 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11678 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11680 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
11682 * cpplex.c (cpp_interpret_charconst): Get signedness or
11683 otherwise of wide character constants correct.
11684 * cppexp.c (lex): Get signedness of wide charconsts correct.
11686 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11688 * optabs.c (widen_operand): Only call convert_modes for
11689 promoted SUBREG if signedness matches.
11690 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11692 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11694 * cpplib.c (glue_header_name): Use local buffer to build up
11697 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11699 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11701 2002-02-23 Kazu Hirata <kazu@hxi.com>
11703 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11704 H8/300[HS] separately.
11705 * config/h8300/h8300.md: Remove the early clobber constraint
11706 from bit field patterns.
11708 2002-02-23 Kazu Hirata <kazu@hxi.com>
11710 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11712 (mulhisi3): Likewise.
11713 (umulqisi3): Likewise.
11714 (umulhisi3): Likewise.
11716 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11718 * cppinit.c (output_deps): Correct test for stdout output.
11719 (init_dependency_output): Cure warning.
11721 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11723 * expr.c (store_expr): When converting expression to promoted
11724 equivalent type, allow using SUBREG_REG of TARGET as the target
11725 of the expansion of EXP.
11726 * loop.c (basic_induction_var, case SUBREG): Always look inside.
11727 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11728 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11729 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11730 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11732 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
11734 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11735 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11736 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11738 2002-02-23 Jakub Jelinek <jakub@redhat.com>
11740 PR optimization/5747
11741 * loop.c (scan_loop): Update reg info if move_movables created new
11744 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11746 * gcc.c (init_gcc_spec): Revert last change.
11748 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11750 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11751 gpc_reg_operand constraint.
11753 2002-02-23 Alan Modra <amodra@bigpond.net.au>
11755 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11756 Simplify comparison of `low'.
11757 (add_operand): Fix formatting.
11758 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11759 (mask_operand): Disallow mask to wrap in 64-bit mode.
11760 (rs6000_stack_info): Remove redundant test setting push_p.
11761 (output_toc): Fix formatting.
11762 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11763 cc_reg_not_cr0_operand constraint.
11764 (booldi3, boolcdi3 splitters): Same.
11766 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
11768 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11770 2002-02-22 David Edelsohn <edelsohn@gnu.org>
11772 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11773 gcc invoked with -shared-libgcc.
11775 2002-02-22 Jakub Jelinek <jakub@redhat.com>
11778 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11779 decl if any of elements was TREE_USED.
11781 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
11783 * config/sparc/sol2.h: Don't include sys/mman.h.
11784 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11785 (arith_4096_operand): Don't throw high bits away.
11786 (const64_operand): Take sign extension of CONST_INTs into account.
11787 (const64_high_operand, sparc_emit_set_const32): Likewise.
11788 (GEN_HIGHINT64): Likewise.
11789 (sparc_emit_set_const64_quick1): Likewise.
11790 (const64_is_2insns): Likewise.
11791 (print_operand): Use trunc_int_for_mode for sign extension.
11792 * config/sparc/sparc.h (SMALL_INT32): Likewise.
11793 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11794 chars. Assume CONST_INT is already properly sign-extended.
11795 (movdi split): Sign-extend each SImode part.
11796 (andsi3 split): Don't mask high bits off, so that result
11797 remains properly sign-extend.
11798 (iorsi3 split): Likewise.
11799 (xorsi3 split): Likewise.
11801 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
11803 * fold-const.c (fold): Fix typo in comments.
11805 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11807 * Makefile.in (langhooks.o): Update dependencies.
11809 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11811 * langhooks.c: Include flags.h.
11813 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
11815 * testsuite/gcc.dg/attr-alwaysinline.c: New.
11817 * c-common.c (c_common_post_options): Set inline trees by
11820 * doc/extend.texi (Function Attributes): Document always_inline
11822 Update documentation about inlining when not optimizing.
11824 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11826 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11827 unless DECL_ALWAYS_INLINE.
11829 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11830 unless DECL_ALWAYS_INLINE.
11831 (c_disregard_inline_limits): Disregard if always_inline set.
11833 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11834 Disregard if always_inline set.
11835 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11836 unless DECL_ALWAYS_INLINE.
11838 * attribs.c (handle_always_inline_attribute): New.
11839 (c_common_attribute_table): Add always_inline.
11841 * config/rs6000/altivec.h: Add prototypes for builtins
11842 requiring the always_inline attribute.
11844 2002-02-21 Eric Christopher <echristo@redhat.com>
11846 * expmed.c (store_bit_field): Try to simplify the subreg
11847 before generating a new one when when the mode size of
11848 value is less than maxmode.
11850 2002-02-21 Richard Henderson <rth@redhat.com>
11852 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11853 than gen_rtx_PLUS to form the sum.
11854 * explow.c (force_reg): Rearrange to not allocate new pseudo
11855 when force_operand returns a register.
11856 * expr.c (expand_assignment): Allow offset_rtx expansion to
11857 return a sum. Do not force addresses into registers.
11858 (expand_expr): Likewise.
11859 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11860 to canonicalize arithmetic that didn't simpify.
11861 (simplify_plus_minus): New argument force; update
11862 all callers. Don't split CONST unless we can do something with it,
11863 and wouldn't lose the constness of the operands.
11865 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11866 that we generated earlier.
11868 2002-02-21 Tom Tromey <tromey@redhat.com>
11870 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11871 (output_line_info): Use constant `1', with a long explanatory
11873 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11875 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11877 * jump.c (redirect_jump): If old label has no UID, don't try to
11880 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11882 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11883 If input is constant, do shifts at compile time.
11885 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11887 * doc/extend.texi: Fix some more overfull hboxes.
11889 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11891 PR optimization/4994
11892 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11895 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11898 * expr.h (expand_and): Add mode argument.
11899 * expmed.c (expand_and): Add mode argument.
11900 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11901 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11902 * except.c (expand_builtin_extract_return_addr): Likewise.
11903 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11904 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11905 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11906 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11907 * config/c4x/c4x.md: Use GEN_INT (x) instead of
11908 gen_rtx (CONST_INT, VOIDmode, x).
11910 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11913 * stmt.c (warn_if_unused_value): Move side effects test once more.
11915 2002-02-20 Torbjorn Granlund <tege@swox.com>
11917 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11918 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11920 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
11922 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11923 SUBREG or ZERO_EXTEND.
11925 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
11927 * sh.h (current_function_anonymous_args): Remove.
11928 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11929 of current_function_varargs and current_function_stdarg is set.
11930 * sh.c (sh_expand_prologue): Check current_function_varargs /
11931 current_function_stdarg / TARGET_SH5 instead of
11932 current_function_anonymous_args.
11934 * sh64.h (TARGET_VERSION): Define.
11936 2002-02-20 David Edelsohn <edelsohn@gnu.org>
11938 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11939 VRSAVE_REGNO on TARGET_ALTIVEC.
11941 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11943 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11944 bits of SImode const_int.
11945 (includes_rshift_p): Likewise.
11946 (print_operand): Call mask_operand and mask64_operand with correct
11948 (rs6000_output_function_epilogue): Pad traceback table to word.
11949 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11950 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11951 mask64_operand with correct mode.
11952 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11954 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11957 * varasm.c (get_pool_constant_mark): New.
11958 * rtl.h (get_pool_constant_mark): Add prototype.
11959 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11960 be represented if it has not been output.
11962 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11964 * combine.c (do_SUBST): Sanity check substitutions of
11965 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11966 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11967 CONST_INT into its operand.
11968 (known_cond): Likewise, for ZERO_EXTEND.
11969 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11970 allow for simplification of wide modes. Reject CONST_INTs in
11971 ZERO_EXTEND when their actual mode is not given.
11973 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11975 * c-decl.c (pushdecl): If no global declaration is found for an
11976 extern declaration in block scope, try a limbo one.
11978 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11981 * c-common.c (pointer_int_sum): Moved from...
11982 * c-typeck.c (pointer_int_sum): ...here.
11983 * c-common.h (pointer_int_sum): Add prototype.
11985 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11988 * c-decl.c (duplicate_decls): Return 0 if issued error about
11991 2002-02-20 Roger Sayle <roger@eyesopen.com>
11992 Jakub Jelinek <jakub@redhat.com>
11995 * tree.c (host_integerp): Ensure that the constant integer is
11996 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11997 when pos is zero or non-zero respectively. Clarify comment.
11998 * c-format.c (check_format_info_recurse): Fix host_integerp
11999 usage; the pos argument should be zero when assigning to a
12000 signed HOST_WIDE_INT.
12002 2002-02-20 Richard Henderson <rth@redhat.com>
12004 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
12005 of the operand, rather than assuming TImode.
12006 (ix86_expand_binop_builtin): Cope with commutative patterns
12007 using nonimmediate_operand for both operands.
12008 (ix86_expand_timode_binop_builtin): Likewise.
12009 (ix86_expand_store_builtin): Validate operand 1.
12010 (ix86_expand_unop1_builtin): Likewise.
12012 2002-02-20 Philip Blundell <philb@gnu.org>
12015 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
12017 2002-02-20 Richard Henderson <rth@redhat.com>
12020 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
12022 2002-02-20 Tom Tromey <tromey@redhat.com>
12024 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12025 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12026 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12027 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12028 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
12031 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
12033 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
12034 for (const_int 0) in X not just INTVAL.
12036 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
12038 * doc/extend.texi: Avoid or reduce overfull hboxes.
12040 2002-02-20 Diego Novillo <dnovillo@redhat.com>
12042 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
12043 operations if the field does not start at a mode boundary.
12045 2001-02-20 Joel Sherrill <joel@OARcorp.com>
12047 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
12048 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
12049 Also done for -Acpu and -Amachine.
12051 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
12053 * cppinit.c (init_dependency_output): Take deps output file
12054 from -o if none given with -MF. Suppress normal output.
12055 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
12056 * doc/cpp.texi, doc/invoke.texi: Update.
12058 2002-02-19 Zack Weinberg <zack@codesourcery.com>
12060 * toplev.c (output_quoted_string): Write unprintable
12061 characters with octal escapes.
12063 2002-02-19 David Edelsohn <edelsohn@gnu.org>
12065 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
12066 really_call_used[VRSAVE_REGNO] if not Altivec.
12068 2002-02-19 Alan Modra <amodra@bigpond.net.au>
12070 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
12072 (constant_pool_expr_1): Fix formatting.
12073 (rs6000_legitimize_reload_address): Likewise.
12075 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12077 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
12078 now that we have one.
12080 2002-02-19 Zack Weinberg <zack@codesourcery.com>
12082 * tree.h (struct tree_common): Remove aux. Add unused_0 at
12083 end of first block of bitfields (which was only seven bits);
12084 rename dummy to unused_1; remove comment which is no longer true.
12086 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
12088 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
12090 2002-02-19 Philip Blundell <pb@nexus.co.uk>
12093 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
12097 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
12098 arm_is_longcall_p rather than inspecting call-type cookie
12100 (call_value_insn) [TARGET_THUMB]: Likewise.
12102 2002-02-19 Graham Stott <grahams@redhat.com>
12104 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
12106 2002-02-19 David Edelsohn <edelsohn@gnu.org>
12108 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
12109 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
12110 (FP_SAVE_INLINE): Delete.
12112 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
12113 * config/rs6000/eabi.asm: Remove ABI save restore routines.
12114 * config/rs6000/t-ppccomm: Build crtsavres.o.
12115 * config/rs6000/crtsavres.asm: New file.
12117 2002-02-19 Philip Blundell <philb@gnu.org>
12119 * config/arm/arm.c (use_return_insn): Don't reject interrupt
12121 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
12122 (output_return_instruction): Allow interrupt functions to return with
12123 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
12124 (arm_expand_prologue): Subtract 4 before stacking LR in an
12125 interrupt function.
12127 2002-02-19 Philip Blundell <pb@nexus.co.uk>
12129 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
12130 decl, not just FUNCTION_DECL.
12131 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
12132 (arm_assemble_integer): Likewise.
12133 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
12136 2002-02-19 matthew green <mrg@eterna.com.au>
12138 * config.gcc (sparc-*-netbsdelf*): Enable target.
12139 (sparc64-*-netbsd*): New target.
12140 * config/sparc/netbsd-elf.h: New file.
12141 * config/sparc/t-netbsd64: New file.
12143 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
12145 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
12147 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
12149 * doc/invoke.texi: explicitly list the style guidelines that
12150 -Weffc++ checks for.
12152 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
12154 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
12156 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
12159 * gcc.c (cpp_unique_options): Treat -o as indicating object file
12160 only if not -E. If -E, pass -o through to the preprocessor.
12162 2002-02-19 Kazu Hirata <kazu@hxi.com>
12164 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
12165 register number with an appropriate macro.
12167 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12169 * doc/rtl.texi (Constants): Close @code tag.
12171 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
12173 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
12174 ("mmx_uavgv4hi3"): Same.
12175 ("pmulhrwv4hi3"): Same.
12177 * tree-inline.c (walk_tree): Handle vectors.
12179 * c-common.c (constant_expression_warning): Handle vectors.
12180 (overflow_warning): Same.
12182 * sched-deps.c (sched_analyze_2): Handle vectors.
12184 * rtlanal.c (rtx_unstable_p): Handle vectors.
12185 (rtx_varies_p): Same.
12186 (count_occurrences): Same.
12187 (regs_set_between_p): Same.
12188 (modified_between_p): Same.
12189 (modified_in_p): Same.
12190 (volatile_insn_p): Same.
12191 (volatile_refs_p): Same.
12192 (side_effects_p): Same.
12193 (may_trap_p): Same.
12194 (inequality_comparisons_p): Same.
12195 (replace_regs): Same.
12196 (computed_jump_p_1): Same.
12198 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
12200 (inner_mode_array): New.
12201 (copy_rtx): Handle vectors.
12202 (copy_most_rtx): Same.
12203 (rtx_equal_p): Same.
12204 (get_mode_alignment): Adjust for vectors.
12206 * resource.c (mark_referenced_resources): Handle vectors.
12207 (mark_set_resources): Same.
12209 * reload1.c (eliminate_regs): Handle vectors.
12210 (elimination_effects): Same.
12211 (scan_paradoxical_subregs): Same.
12213 * reload.c (subst_reg_equivs): Handle vectors.
12215 * regrename.c (scan_rtx): Handle vectors.
12217 * regclass.c (reg_scan_mark_refs): Handle vectors.
12219 * recog.c (find_single_use_1): Handle vectors.
12221 * local-alloc.c (equiv_init_varies_p): Handle vectors.
12222 (contains_replace_regs): Same.
12223 (memref_referenced_p): Same.
12225 * integrate.c (copy_rtx_and_substitute): Handle vectors.
12226 (subst_constants): Same.
12228 * genattrtab.c (attr_copy_rtx): Handle vectors.
12229 (encode_units_mask): Same.
12230 (clear_struct_flag): Same.
12231 (count_sub_rtxs): Same.
12233 * gcse.c (want_to_gcse_p): Handle vectors.
12234 (oprs_unchanged_p): Same.
12235 (hash_expr_1): Same.
12236 (oprs_not_set_p): Same.
12237 (expr_killed_p): Same.
12238 (compute_transp): Same.
12239 (store_ops_ok): Same.
12241 * function.c (purge_addressof_1): Do not allow paradoxical subregs
12243 (fixup_var_refs_1): Same.
12244 (instantiate_virtual_regs_1): Same.
12246 * fold-const.c (operand_equal_p): Handle vectors.
12248 (rtl_expr_nonnegative_p): Same.
12250 * flow.c (mark_used_regs): Handle vectors.
12252 * df.c (df_uses_record): Handle vectors.
12254 * cselib.c (cselib_subst_to_values): Handle vectors.
12255 (cselib_mem_conflict_p): Same.
12258 * cse.c (canon_reg): Handle vectors.
12260 (cse_process_notes): Same.
12261 (count_reg_usage): Same.
12262 (canon_hash): Same.
12264 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12266 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12268 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12269 (gen_rtx): Handle CONST_VECTOR.
12270 (gen_const_vector_0): New.
12271 (copy_rtx_if_shared): CONST_VECTORs can be shared.
12272 (reset_used_flags): Same.
12273 (copy_insn_1): Same.
12274 (initializer_constant_valid_p): Handle VECTOR_CST.
12276 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12278 * doc/rtl.texi (Constants): Document const_vector.
12279 (CONST0_RTX): Update for vectors.
12280 (RTL sharing): Same.
12282 * print-tree.c (print_node): Add case for VECTOR_CST.
12284 * tree.h (TREE_VECTOR_CST_ELTS): New.
12285 (struct tree_vector): New.
12286 (union tree_node): Add vector node.
12287 (build_vector): Add prototype.
12289 * tree.def (VECTOR_CST): New.
12291 * tree.c (build_vector): New.
12293 * expmed.c (make_tree): Handle CONST_VECTOR.
12295 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12296 (CONST_VECTOR_ELT): New.
12297 (CONST_VECTOR_NUNITS): New.
12299 * machmode.h (GET_MODE_INNER): New.
12300 (DEF_MACHMODE): Accept 8th arg.
12302 * machmode.def: Add 8th argument for vector inner mode.
12303 Add inner vector modes for vectors.
12305 * rtl.def (VEC_CONST): Remove.
12306 (CONST_VECTOR): New.
12308 * expr.c (clear_storage): Allow vectors.
12309 (is_zeros_p): Handle VECTOR_CST.
12311 * varasm.c (output_constant_pool): Handle vectors.
12312 (rtx_const): Add veclo and vechi fields.
12313 (kind): Add RTX_VECTOR.
12314 (decode_rtx_const): Add case for vector.
12316 * config/rs6000/rs6000-protos.h: Add zero_constant.
12318 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12319 constants. Force easy vector constants into memory.
12320 (easy_vector_constant): New.
12321 (emit_easy_vector_constant): New.
12322 (rs6000_legitimize_reload_address): Do not generate bad reloads on
12325 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12327 ("altivec_lvxl"): Same.
12328 (altivec_lvebx): Same.
12329 (altivec_lvehx): Same.
12330 (altivec_lvewx): Same.
12331 ("*movv4si_const0"): New.
12332 ("*movv4sf_const0"): New.
12333 ("*movv8hi_const0"): New.
12334 ("*movv16qi_const0"): New.
12336 2002-02-18 Kazu Hirata <kazu@hxi.com>
12338 * config/h8300/h8300.c (notice_update_cc): Use
12341 2002-02-18 Kazu Hirata <kazu@hxi.com>
12343 * config/h8300/h8300.md (divmod patterns): Change the
12344 constraints for operands[1] to register_operand.
12346 2002-02-18 Kazu Hirata <kazu@hxi.com>
12348 * config/h8300/h8300-protos.h: Remove the prototype for
12350 * config/h8300/h8300.c (p_operand): Remove.
12351 * config/h8300/h8300.md: Replace p_operand with
12354 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12356 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12358 (output_return_instruction): Allow use of LDR to unstack
12359 return addresss even for interrupt handlers or when
12360 interworking. If compiling for ARMv5, use interworking-safe
12361 return instructions by default. Remove duplicated code and
12362 lengthy "strcat" sequences.
12364 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12366 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12367 (LINK_EH_SPEC): Define.
12368 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12370 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
12372 * config/s390/s390.c (s390_emit_prologue): Do not set the
12373 frame_related flag for call-clobbered registers.
12375 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
12377 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12378 (construct_container): Fix handling of SSE operands.
12379 (ix86_expand_builtin): Fix handling of 64bit pointers.
12380 (mmx_maskmovq_rex): New pattern.
12382 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
12384 * regrename.c (kill_set_value): Handle subregs properly.
12386 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
12388 * objc/objc-act.c (handle_impent): Remove leading '*'
12389 from objc_class_name.
12391 2002-02-17 Richard Henderson <rth@redhat.com>
12393 * config/alpha/alpha.c (some_small_symbolic_operand,
12394 some_small_symbolic_operand_1, split_small_symbolic_operand,
12395 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12396 Handle small SYMBOL_REFs anywhere, not just inside memories.
12397 * config/alpha/alpha-protos.h: Update.
12398 * config/alpha/alpha.h (PREDICATE_CODES): Update.
12399 * config/alpha/alpha.md (small symbolic operand splitter): Update.
12401 2002-02-17 Roland McGrath <roland@frob.com>
12403 * config.gcc (powerpc-*-gnu-gnualtivec*,
12404 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12405 * config/rs6000/gnu.h: New file.
12406 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12407 Grok "gnu" in rs6000_abi_name.
12408 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12409 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12410 Grok -mcall-gnu analogous to -mcall-linux et al.
12411 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12412 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12413 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12415 2002-02-17 Jakub Jelinek <jakub@redhat.com>
12418 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12421 2002-02-17 Philipp Thomas <pthomas@suse.de>
12423 * config/cris/cris.h: Undefine STARTFILE_SPEC and
12424 ENDFILE_SPEC before (re)defining them.
12426 2002-02-17 Kazu Hirata <kazu@hxi.com>
12428 * config/h8300/h8300.c: Fix formatting.
12429 * config/h8300/h8300.h: Likewise.
12431 2002-02-17 Philipp Thomas <pthomas@suse.de>
12433 * doc/tm.texi: Explain why empty strings should not be
12434 marked for translation.
12436 2002-02-17 Philipp Thomas <pthomas@suse.de>
12438 * final.c (output_operand_lossage): Changed to accept
12439 printf style arguments. Change calls where necessary.
12440 * output.h (output_operand_lossage): Change declaration
12441 accordingly. Update copyright.
12442 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12443 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12444 Update copyright date where necessary.
12446 * config/i386/i386.c (print_operand): Likewise. Remove use of
12449 * config/cris/cris.c (cris_operand_lossage): Likewise.
12450 Rename parameter so that exgettext recognizes it as
12451 translatable message.
12452 (LOSE_AND_RETURN): Rename parameter to msgid.
12454 2002-02-17 Kazu Hirata <kazu@hxi.com>
12456 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12457 hard coded register number with an appropriate macro.
12458 (HARD_REGNO_MODE_OK): Likewise.
12459 (ARG_POINTER_REGNUM): Likewise.
12460 (STATIC_CHAIN_REGNUM): Likewise.
12461 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12462 * config/h8300/h8300.md (define_constants): Define more
12465 2002-02-17 Philipp Thomas <pthomas@suse.de>
12467 * config/i386/i386.h: Don't mark empty strings for translation.
12469 2002-02-16 H.J. Lu <hjl@gnu.org>
12471 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12473 2002-02-16 Zack Weinberg <zack@codesourcery.com>
12475 * cppinit.c (merge_include_chains): Check for brack being
12476 NULL before attempting to merge it with qtail.
12478 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12480 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12483 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12485 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12487 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12489 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12490 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12491 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12493 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12495 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12496 now only if !TARGET_FIX.
12497 (*movsi_nt_vms_fix): New pattern.
12499 2002-02-16 Douglas B Rupp <rupp@gnat.com>
12501 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12502 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12503 (alpha_sa_mask, alpha_sa_size): Reflect above change.
12504 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12505 (alpha_start_function, alpha_expand_epilogue): Likewise.
12506 (unicosmk_gen_dsib): Likewise.
12508 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12510 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12512 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
12514 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12515 check_and_change_labels, s390_final_chunkify): Delete.
12516 (s390_split_branches, s390_chunkify_pool): New functions.
12517 (s390_function_prologue): Call them.
12519 * config/s390/s390.h (S390_REL_MAX): Delete.
12520 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12522 * config/s390/s390.md (cjump, icjump, jump): Fix length
12523 attribute calculation.
12526 2002-02-15 David Edelsohn <edelsohn@gnu.org>
12528 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12529 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12531 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12533 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12534 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12535 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12537 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12539 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12541 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12543 * reload.c (find_dummy_reload): Check that an output register
12544 is valid for its mode.
12546 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
12548 * combine.c (known_cond): After replacing the REG of a SUBREG, try
12551 * function.c (assign_parms): Demote promoted argument passed by
12552 transparent reference.
12554 2001-02-14 Joel Sherrill <joel@OARcorp.com>
12556 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12557 -Acpu() and -Amachine() to eliminate warnings.
12559 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
12561 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12563 2002-02-14 Kazu Hirata <kazu@hxi.com>
12565 * config/h8300/h8300-protos.h: Update the prototype for
12567 * config/h8300/h8300.c (const_costs): Treat SET as a little
12568 more expensive operation.
12569 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12570 reference to const_costs.
12572 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
12574 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12576 2002-02-14 Jakub Jelinek <jakub@redhat.com>
12579 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12580 use arguments from newtype.
12582 2002-02-13 Eric Christopher <echristo@redhat.com>
12584 * config/mips/mips.c (override_options): Add check for march/mipsX
12585 on the same command line. Fix error message in cpu processing.
12586 Remove architecture and ISA checks.
12588 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12590 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12592 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12594 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12596 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12598 ("*movv8hi_internal1"): Same.
12599 ("*movv16qi_internal1"): Same.
12600 ("*movv4sf_internal1"): Same.
12602 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12603 not push_reload for altivec modes.
12605 2002-02-13 Joel Sherrill <joel@OARcorp.com>
12607 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12608 all RTEMS targets including removal of #includes from config/*/rtems*.h
12609 file and adding them to tm_file setting. Added xm_defines=POSIX to
12611 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12612 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12613 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12614 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12615 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12616 config/m68k/rtemself.h: Ditto.
12617 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12618 config/mips/rtems64.h: Ditto.
12619 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12620 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12622 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12623 config/sparc/rtemself.h: Ditto.
12624 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12625 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12626 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12628 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12629 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12630 target made more similar to i386-elf.
12631 * config/i386/t-rtems-i386: Added soft float support and multilibs.
12632 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12633 be similar to config/m68k/t-m68kelf.
12634 * gthr-rtems.h: Encapsulate with extern "C" for C++.
12636 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
12638 * regmove.c (kill_value): Handle subregs.
12640 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
12642 * i386.md (mul patterns): Allow memory operand to be first;
12643 add expanders where needed; fix constraints.
12644 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12645 Allow memory operand to be the first.
12647 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12650 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12653 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12656 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12658 PR optimization/5547:
12659 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12660 all valid IA-32 address modes involving non-scaled %ebx and
12661 GOT/GOTOFF as displacement.
12663 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
12665 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12666 after emitting ltorg insns.
12668 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12669 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12670 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12671 *abssf2): Fix "op_type" attribute.
12673 2002-02-13 Douglas B Rupp <rupp@gnat.com>
12675 * mkconfig.sh: Avoid using a subshell redirect.
12676 ($output.T): Change to $(output)T.
12677 (ENABLE_NLS): Remove unneeded undef.
12679 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12680 * config/alpha/x-vms (libsubdir): Define.
12682 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12683 register frame procedures. Optimize retrieving context.
12685 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12686 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12687 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12689 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12691 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12692 Make same change as for find_base_value.
12694 2002-02-13 Kazu Hirata <kazu@hxi.com>
12696 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12697 of QImode and SImode.
12699 2002-02-13 Kazu Hirata <kazu@hxi.com>
12701 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12702 length computation of movsi.
12703 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12705 2002-02-13 Kazu Hirata <kazu@hxi.com>
12707 * config/h8300/h8300.md (subqi3): Tighten the predicate for
12708 operands[2] to register_operand.
12710 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
12712 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12714 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
12716 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12717 for altivec_lvx* and altivec_stvx*.
12718 ("*movv4si_internal"): Add constraint for loading from GPRs.
12719 ("*movv8hi_internal1"): Same.
12720 ("*movv16qi_internal1"): Same.
12721 ("*movv4sf_internal1"): Same.
12723 * config/rs6000/rs6000.c (altivec_register_operand): New.
12725 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12726 altivec_register_operand.
12728 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
12730 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12733 2002-02-13 Stan Shebs <shebs@apple.com>
12735 * c-typeck.c (digest_init): Handle vectors.
12736 (really_start_incremental_init): Same.
12737 (pop_init_level): Same.
12738 (process_init_element): Same.
12740 * varasm.c (output_constant): Same.
12742 * expr.c (clear_storage): Same.
12743 (store_constructor): Same.
12745 2002-02-12 Eric Christopher <echristo@redhat.com>
12747 * explow.c (hard_function_value): Add comment explaining
12748 signed/unsigned comparison.
12750 2002-02-12 Jakub Jelinek <jakub@redhat.com>
12752 * jump.c (never_reached_warning): Add finish argument.
12753 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12754 real insn after end.
12755 * rtl.h (never_reached_warning): Adjust prototype.
12756 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12757 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12758 never_reached_warning.
12760 2002-02-12 Graham Stott <grahams@redhat.com>
12762 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12764 2002-02-12 Kazu Hirata <kazu@hxi.com>
12766 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12767 logical shifts on H8/300.
12768 (shift_alg_si): Improve several shifts on H8/300.
12769 (get_shift_alg): Likewise.
12771 2002-02-12 Graham Stott <grahams@redhat.com>
12773 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12775 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12777 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12778 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12780 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
12782 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12783 non-CONST_INT through default_assemble_integer.
12784 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12785 <case 8>: Abort for CONST_DOUBLE.
12787 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12789 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12791 * config/pa/pa-linux.h (LIB_SPEC): Delete.
12792 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12794 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
12796 * config/stormy16/stormy16.md (zero_extendqihi2): New.
12798 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
12800 * regrename.c (regrename_optimize): Don't accept a
12801 part-clobbered register if the replaced register is not part
12804 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12805 take padding into account when computing the argument value.
12807 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12809 * combine.c (try_combine): Apply substitutions in
12810 CALL_INSN_FUNCTION_USAGE too.
12812 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
12814 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12815 __builtin_altivec_abs*.
12818 * config/rs6000/rs6000.h (rs6000_builtins): Add
12819 ALTIVEC_BUILTIN_ABS*.
12821 * config/rs6000/altivec.h: Use const char for builtins expecting
12823 (vec_abs): New versions for C and C++.
12826 2002-02-10 Kazu Hirata <kazu@hxi.com>
12828 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12831 2002-02-10 Kazu Hirata <kazu@hxi.com>
12833 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12834 constant definition from h8300.md.
12835 (FRAME_POINTER_REGNUM): Likewise.
12836 * config/h8300/h8300.md (define_constants): Add FP_REG.
12838 2002-02-10 Kazu Hirata <kazu@hxi.com>
12840 * config/h8300/h8300.c (print_operand): Remove redundant code.
12842 2002-02-10 Kazu Hirata <kazu@hxi.com>
12844 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12845 * config/h8300/h8300.c (byte_reg): Make it static.
12847 2002-02-10 Richard Henderson <rth@redhat.com>
12850 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12852 2002-02-10 Richard Henderson <rth@redhat.com>
12855 * tree.c (append_random_chars): Don't abort if main_input_filename
12858 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12860 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12862 2002-02-10 Kazu Hirata <kazu@hxi.com>
12864 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12865 (pushhi1): Likewise.
12867 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12869 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12870 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12872 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12874 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12876 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12878 2002-02-09 Kazu Hirata <kazu@hxi.com>
12880 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12881 a half of an SImode register on H8/300.
12883 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12885 * i386.md (movdi_2): Add missing '!'.
12887 2002-02-09 Kazu Hirata <kazu@hxi.com>
12889 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12892 2002-02-09 Kazu Hirata <kazu@hxi.com>
12894 * config/h8300/h8300.md (length): Correct the distance valid
12895 for the short branch.
12897 2002-02-09 Kazu Hirata <kazu@hxi.com>
12899 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12901 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12903 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12904 registers in SImode.
12905 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12908 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12911 Contribute sh64-elf.
12912 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12913 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12914 (sh_cannot_modify_jumps_p): New function.
12915 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12916 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12917 (sh_ms_bitfield_layout_p): New function.
12918 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
12919 Zack Weinberg <zack@codesourcery.com>
12920 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12921 expand_simple_binop instead of expand_binop.
12922 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
12923 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12924 use of .quad and .uaquad.
12925 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12926 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12927 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12928 * config/sh/sh.md (movdi_const, movdi_const_32bit,
12929 movdi_const_16bit): Make sure all CONSTs have modes.
12930 (sym2PIC): Ditto, but by adjusting all callers.
12931 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12932 if the prologue calls the SHmedia argument decoder or register
12934 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12935 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12936 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12937 (sh_expand_epilogue): Don't emit USE of return target register.
12938 (prepare_move_operands): Legitimize DImode PIC addresses.
12939 (sh_media_register_for_return): Skip tr0, used to initialize the
12941 (sh_expand_prologue): Remove explicit USE of return register.
12942 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12943 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12944 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12945 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12946 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12947 EXTRA_CONSTRAINT_T.
12948 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12949 (MOVI_SHORI_BASE_OPERAND_P): New.
12950 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12951 (EXTRA_CONSTRAINT_T): Define in terms of them.
12952 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12953 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12954 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12955 alternatives supporting TARGET_REGS.
12956 (UNSPEC_GOTPLT): New constant.
12957 (movdi split): Move incrementing of LABEL_NUSES...
12958 (movdi_const, movdi_const_32bit): Here. Use
12959 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12960 (movdi_const_16bit): New.
12961 (call, call_value) [flag_pic]: Use GOTPLT.
12962 (call_pop, call_value_pop): New expands.
12963 (call_pop_compact, call_pop_rettramp): New insns.
12964 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12965 (sibcall) [flag_pic]: Use GOT.
12966 (builtint_setjmp_receiver): Remove bogus, unused expand.
12967 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12968 (*pt, *ptb, ptrel): New insns.
12969 (sym2GOT): Handle DImode GOT.
12970 (sym2GOTPLT, symGOTPLT2reg): New expands.
12971 (sym2PIC): New expand.
12972 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12973 (shcompact_return_tramp_i): Use return register explicitly.
12974 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12975 disable flag_reorder_blocks.
12976 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12977 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12978 clobbers, for clarity.
12979 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12980 restoring of r0 in macl as MAYBE_DEAD.
12981 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12982 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12983 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12984 alter_subreg all over.
12985 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12986 reload, instead of emitting instructions that would require
12988 (casesi_load_media): Add missing modes.
12989 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12990 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12991 as used if the argument decoder is called.
12992 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12993 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12994 Pmode, then extend it to DImode if necessary.
12995 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12996 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12997 constants in FPU-enabled SHmedia, let them be loaded from memory.
12998 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12999 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
13000 Adjust whitespace in assembly output templates.
13001 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
13002 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
13003 mode of if_then_else.
13004 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
13005 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
13007 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
13008 Joern Rennecke <amylaar@redhat.com>
13009 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
13010 (SUBTARGET_CPP_PTR_SPEC): New.
13011 (SUBTARGET_CPP_SPEC): Remove.
13012 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
13013 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
13014 Fix typo in previous checkin.
13015 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
13016 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
13017 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
13018 Alexandre Oliva <aoliva@redhat.com>
13019 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
13020 what single FP register can hold for SHmedia target.
13021 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
13022 Alexandre Oliva <aoliva@redhat.com>
13023 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
13024 Do not split into SUBREG.
13025 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
13026 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
13027 and added new functions as specified in SH5 ABI r9.
13028 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
13029 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
13031 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
13032 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
13033 gen_consttable_4 and gen_consttable_8. Emit multiple labels
13034 and consttable_window_ends.
13035 2001-06-03 Graham Stott <grahams@redhat,com>
13036 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
13037 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
13038 * config/sh/sh.c (print_operand): Handle floating-point pair,
13039 vector and matrix registers.
13040 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
13041 vector modes into account.
13042 * config/sh/sh.md (movv2sf): Split move between registers into
13044 (movv4sf, movv16sf): Introduce insns that get split only after
13046 * config/sh/shmedia.h: Fix Copyright dates.
13047 * config/sh/ushmedia.h: Likewise. Move loop counter
13048 declarations into conditionals that uses them.
13049 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
13051 * config/sh/sshmedia.h: Fix Copyright dates.
13052 (sh_media_PUTCFG): Fix constraints.
13053 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
13054 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
13055 ptrmemfunc_vbit_in_delta for SH5.
13056 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
13057 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
13058 * invoke.texi: Likewise.
13059 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
13060 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
13061 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
13062 GCC_pop_shmedia_regs_nofpu): New global symbols.
13063 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
13064 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
13065 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
13066 compact function with nonlocal labels.
13067 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
13068 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
13069 (initial_elimination_offset): Account for their stack space.
13070 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
13071 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
13072 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
13073 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
13074 least one of the operands to be a register.
13075 (movv2sf): Likewise. Renamed to movv2sf_i.
13076 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
13077 prepare_move_operands() before emitting SHmedia insns.
13078 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
13079 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
13080 Don't save nor initialize r12. Don't mis-align the stack.
13081 Pad the code with a nop.
13082 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
13084 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
13085 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
13086 [__SHMEDIA__]: Implement.
13087 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
13088 * config/sh/sh.md: Set latency of `pt' closer to reality.
13089 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
13090 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
13091 Set move, load and store type attributes.
13092 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
13093 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
13095 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
13096 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
13097 * config/sh/sh.c (sh_media_register_for_return): New function.
13098 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
13099 branch-target register.
13100 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
13101 * config/sh/sh.md (return_media_i): Use any call-clobbered
13102 branch-target register.
13103 (return_media): If r18 wasn't copied in the prologue, copy it
13105 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
13106 Clear class FP0_REGS.
13107 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
13109 2001-03-08 DJ Delorie <dj@redhat.com>
13110 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
13111 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
13112 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
13113 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
13114 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
13115 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
13116 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
13117 return value correctly for call_cookie.
13118 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
13119 * config/sh/crt1.asm (start): Modified so as to call
13120 ___setup_argv_and_call_main.
13121 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
13122 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
13124 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
13125 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
13126 (STRIP_NAME_ENCODING): Use it.
13127 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
13128 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
13129 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
13130 prepare_scc_operands().
13131 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
13132 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
13133 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
13134 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
13135 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
13136 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
13137 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
13138 used in shcompact_incoming_args.
13139 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
13141 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
13143 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
13144 Adjust accordingly.
13145 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
13146 Simplify. Adjust. Add sanity check.
13147 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
13149 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
13151 (udivsi3, divsi3): Use them.
13152 (force_mode_for_call): New insn.
13153 (call, call_value, sibcall_value): Emit it before SHcompact
13155 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
13156 * config/sh/sh.md (call, call_value, sibcall): Make sure the
13157 call cookie is non-NULL before taking its value.
13158 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
13159 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
13160 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
13161 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
13163 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
13164 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
13165 temporary for stack adjusts. Use MACL and MACH to pass
13166 arguments to shcompact_incoming_args.
13167 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
13169 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
13170 (nested_trampoline): Load static chain address into r1.
13171 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
13172 2001-01-07 Alexandre Oliva <aoliva@redhat.com
13173 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
13174 fp_arith_reg_operand().
13175 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
13176 * config/sh/sh.md (casesi): Sign-extend the first two operands,
13177 and use signed compares for them.
13178 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
13179 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
13180 ones properly aligned.
13181 (find_barrier): Account for extra alignment needed for 8-byte wide
13183 (machine_dependent_reorg): Require a label for the second 4-byte
13184 constant after an 8-byte one.
13185 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
13187 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
13188 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
13189 last_float when switching float modes.
13190 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
13191 auto-increment for general-purpose registers.
13192 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
13194 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
13196 * config/sh/sh.c (sh_builtin_saveregs): Support using all
13197 registers for varargs.
13198 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
13199 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
13200 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
13201 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
13202 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
13203 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
13204 call_cookie accordingly.
13205 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
13206 (SHCOMPACT_BYREF): Likewise.
13207 (SHCOMPACT_FORCE_ON_STACK): New macro.
13208 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
13209 (sh_builtin_saveregs): Likewise.
13210 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13211 shcompact_incoming_args): Use new shift values. Support
13212 sequences of consecutive and non-consecutive pushes/pops.
13213 * config/sh/sh.md (return): Don't explicitly use PR_REG.
13214 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
13215 * config/sh/sh.h (TEXT_SECTION): Define.
13216 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13217 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
13218 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13219 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13220 return values on FPU-enabled SHmedia.
13221 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13222 FPU-enabled SHmedia.
13223 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13224 value is returned in a non-FP reg and is not returned by
13226 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13228 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
13229 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13230 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13231 quad-aligned to be passed by callee-copy reference.
13232 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
13233 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13234 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13235 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
13236 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13237 copying low-numbered FP regs to r7 and r8.
13238 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13239 FP regs to general-purpose regs only if the copy was passed on the
13241 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13242 copying FP reg to r9.
13243 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13244 copy FP regs to general-purpose regs only in outgoing calls.
13245 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13246 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
13248 * config/sh/sh.h (struct sh_args): Document all fields.
13249 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13250 passed partially on the stack should not consider making
13252 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13253 stack_regs only for incoming calls. When passing FP args,
13254 make sure there are FP regs available before modifying
13256 (SHCOMPACT_BYREF): Pass double args in general-purpose
13257 registers by reference.
13258 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
13259 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13260 attempt to generate sibcalls if the caller got any arguments
13262 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13263 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13264 to 8-byte boundaries.
13265 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13266 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13267 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13268 stored in the stack.
13269 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13270 for the offsets to have the ISA bit set.
13271 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
13272 invocation. Use beq instead of bgt to mark end of sequence of
13274 (shcompact_incoming_args): Fix store of r2. Use beq instead of
13275 bgt to mark end of sequence of stores.
13276 * config/sh/sh.c (arith_operand): Don't check whether
13277 CONST_OK_FOR_J for now.
13278 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13279 instead of long for conversion.
13280 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
13281 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13282 before passing it to fprintf.
13283 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
13284 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13285 Call set_fpscr before reading/writing SR.
13286 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13288 * config/sh/lib1funcs.asm: Add `.align 2' directives before
13290 (FMOVD_WORKS): Define on SH5 with FPU.
13291 (set_fpscr): Define on SH5. Remove separate _fpscr_values
13293 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13295 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
13296 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13298 (ia_main_table): Ditto.
13299 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
13300 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13301 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13302 the definitions from sh.h.
13303 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13305 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13306 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13307 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13308 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
13309 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13310 Increment LABEL_NUSES.
13312 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13314 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13316 * config/sh/elf.h (SIZE_TYPE): Likewise.
13317 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13318 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13319 shcompact_incoming_args): Load switch table addresses using
13321 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13322 (NO_BUILTIN_SIZE_TYPE): Define.
13323 (SIZE_TYPE): Don't define.
13324 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13325 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13326 definition of __SH5__=32 for -m5-compact-nofpu.
13327 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13329 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
13330 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13331 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
13332 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13333 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13334 (INSN_LENGTH_ALIGNMENT): Likewise.
13335 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13336 * config/sh/sh.md (call, call_value, sibcall): Simplify
13337 copying of non-branch-target register.
13338 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13339 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
13340 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13341 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13342 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13343 floating-point values as structs.
13344 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13345 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13346 general-purpose register.
13347 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13348 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
13349 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13350 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13351 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13352 (ENCODE_SECTION_INFO): Enclose variables and constants in
13354 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13355 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13356 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13357 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13358 only for LABEL_REFs. For SYMBOL_REFs, prepend
13359 SH_DATALABEL_ENCODING to the symbol name.
13360 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13362 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
13363 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13365 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13366 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13367 (DATALABEL_REF_P): Don't require CONST.
13368 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13370 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
13371 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13373 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
13374 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13375 Use shallow_copy_rtx and PUT_MODE to change the mode of
13376 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13377 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13378 on SHmedia using GENERAL_REGs.
13379 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13380 bltu_media_i): Fix reversion of conditions.
13381 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
13382 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13383 * config/sh/sh.c (output_far_jump): Save r13 in macl.
13384 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
13385 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13386 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
13387 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13388 (GCC_nested_trampoline): Likewise.
13389 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13390 * config/sh/sh.c (gen_datalabel_ref): Define.
13391 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13392 (INITIALIZE_TRAMPOLINE): Likewise.
13393 (TRAMPOLINE_ADJUST_ADDRESS): Define.
13394 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13395 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13396 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13397 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13398 (ic_invalidate): Adjust for SH5.
13399 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13400 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13401 _nested_trampoline.
13402 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
13403 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13404 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13405 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
13406 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13407 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13408 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
13409 * config/sh/sh.c (target_reg_operand): Match only target-branch
13410 registers and pseudos that aren't virtual registers.
13411 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13412 Copy operands that don't match target_reg_operand to pseudos.
13413 (call_media, call_value_media, sibcall_media): Use
13414 target_reg_operand instead of target_operand.
13415 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
13416 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13417 * config/sh/sh.c (target_reg_operand): Match hardware registers
13418 other than branch-target registers.
13419 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13420 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13421 (fpscr_values) [SH5 == 32]: Define.
13422 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13423 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13424 Handle function addresses coming in SUBREGs.
13425 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
13426 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13427 shcompact_return_trampoline): Use datalabel where appropriate.
13428 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
13429 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13430 general-purpose register to copy one branch-target register to
13432 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13433 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13434 SYMBOL_REFs with VOIDmode.
13435 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13436 bltu_media_i): New insns.
13437 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13438 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13439 (INIT_CUMULATIVE_ARGS): Likewise.
13440 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
13441 * machmode.def (V16SFmode): New mode.
13442 * c-common.c (type_for_mode): Support V2SF and V16SF.
13443 * tree.c (build_common_tree_nodes_2): Likewise.
13444 * tree.h (tree_index): Likewise.
13445 * calls.c (emit_call_1): Take args_so_far. Adjust all
13446 callers. Introduce CALL_POPS_ARGS.
13447 * tm.texi (CALL_POPS_ARGS): Document.
13448 * config/sh/crt1.asm: Implement in SHmedia mode.
13449 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13450 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13451 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13452 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13453 Implement divsi and udivsi in SHmedia mode. Introduce
13454 SHcompact trampolines.
13455 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13457 (regno_reg_class): Rewrite.
13458 (fp_reg_names): Remove.
13459 (sh_register_names, sh_additional_register_names): New.
13460 (print_operand): Added `u'. Support SUBREGs in addresses.
13461 Add parentheses around shifted CONSTs.
13462 (output_file_start): Output .mode and .abi directives.
13463 (shiftcosts, addsubcosts, multcosts): Adjust.
13464 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
13465 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
13466 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
13467 bytes, not registers. Take into account the need for the
13468 SHcompact incoming args trampoline. Adjust all callers.
13469 (sh_expand_prologue): Take stack_regs into account. Call
13470 incoming args trampoline. Keep stack aligned as per SH5 ABI.
13471 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
13472 stack aligned as per SH5 ABI.
13473 (sh_builtin_saveregs): Support SH5 ABI.
13474 (sh_build_va_list, sh_va_start): Likewise.
13475 (initial_elimination_offset): Take alignment into account.
13476 Compute location of PR according to the SH5 stack frame.
13477 (arith_reg_operand): Reject branch-target registers.
13478 (shmedia_6bit_operand): New.
13479 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13480 (target_reg_operand): Match DImode only. Accept SUBREGs.
13481 (target_operand): New.
13482 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13483 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
13484 SIBCALL_REGS for SHmedia.
13485 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13486 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13487 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13488 (TARGET_SWITCHES): New SH5 flags.
13489 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
13490 VALID_REGISTER_P to disable unsupported registers.
13491 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13492 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13493 (FUNCTION_ARG_PADDING): Define.
13494 (FASTEST_ALIGNMENT): Adjust.
13495 (SH_REGISTER_NAMES_INITIALIZER): New.
13496 (sh_register_names): Declare.
13497 (DEBUG_REGISTER_NAMES): Define.
13498 (REGISTER_NAMES): Define based on sh_register_names.
13499 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13500 (sh_additional_register_names): Declare.
13501 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13502 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13503 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13504 (REGISTER_NATURAL_MODE): Define.
13505 (FIRST_PSEUDO_REGISTER): Adjust.
13506 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13507 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13508 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13509 (VECTOR_MODE_SUPPORTED_P): Define.
13510 (REG_CLASS_CONTENTS): Adjust.
13511 (SMALL_REGISTER_CLASSES): Adjust.
13512 (REG_ALLOC_ORDER): Adjust.
13513 (INDEX_REG_CLASS): Adjust.
13514 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13515 (CONST_OK_FOR_LETTER_P): Adjust.
13516 (PREFERRED_RELOAD_CLASS): Adjust.
13517 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13518 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13519 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13520 (FIRST_FP_PARM_REG): Adjust.
13521 (CALL_POPS_ARGS): Define.
13522 (FUNCTION_ARG_REGNO_P): Adjust.
13523 (struct sh_args): New fields.
13524 (GET_SH_ARG_CLASS): Adjust.
13525 (INIT_CUMULATIVE_ARGS): Adjust.
13526 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13527 (FUNCTION_ARG_ADVANCE): Adjust.
13528 (FUNCTION_ARG): Adjust.
13529 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13530 (FUNCTION_ARG_CALLEE_COPIES): Define.
13531 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13532 (STRICT_ARGUMENT_NAMING): Define.
13533 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13534 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13535 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13536 (SETUP_INCOMING_VARARGS): Adjust.
13537 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13538 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13539 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13540 (SUBREG_OK_FOR_INDEX_P): Adjust.
13541 (EXTRA_CONSTRAINT_S): Update.
13542 (EXTRA_CONSTRAINT_T): New.
13543 (EXTRA_CONSTRAINT): Adjust.
13544 (GO_IF_LEGITIMATE_INDEX): Adjust.
13545 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13546 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13547 (MOVE_MAX): Adjust.
13548 (MAX_MOVE_MAX): Define.
13550 (CONST_COSTS): Adjust.
13551 (REGISTER_MOVE_COST): Adjust.
13552 (BRANCH_COST): Adjust.
13553 (TEXT_SECTION_ASM_OP): Adjust.
13554 (DBX_REGISTER_NUMBER): Adjust.
13555 (ASM_OUTPUT_DOUBLE_INT): New.
13556 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13557 (PREDICATE_CODES): Adjust.
13558 (PROMOTE_MODE): Adjust.
13559 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13560 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13561 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13562 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13563 (DR0_REG, DR2_REG, DR4_REG): Renumber.
13564 (TR0_REG, TR1_REG, TR2_REG): New.
13565 (XD0_REG): Renumber.
13566 (UNSPEC_COMPACT_ARGS): New.
13567 (type): Added pt and ptabs.
13568 (length): Default to 4 on SHmedia. Default pt length to 12
13569 and 20 on SHmedia32 and SHmedia64, respectively.
13570 (pt): New function unit.
13571 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
13572 Add whitespace between operands of SHmedia instructions.
13574 (adddi3_media, addsi3_media): Adjust constraints.
13575 (subsi3) [SHmedia]: Force operand 1 into a register.
13576 (udivsi3_i1_media, udivsi3_i4_media): New.
13577 (udivsi3): Support SHmedia.
13578 (divsi3_i1_media, divsi3_i4_media): New.
13579 (divsi3): Support SHmedia.
13580 (anddi3, iordi3, xordi3): Adjust constraints.
13581 (zero_extendhidi2, zero_extendqidi2): New.
13582 (extendsidi2, extendhidi2, extendqidi2): New.
13583 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13584 (pop_e, pop_fpul, pop_4): Likewise.
13585 (movsi_media): Support FP and BT registers.
13586 (movsi_media_nofpu): New. Adjust splits to DImode.
13587 (lduw, ldub): Renamed to zero_extend* above.
13588 (movqi_media): Fix typo.
13589 (movdi_media): Support FP and BT registers.
13590 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
13591 (movdi_const_32bit): New.
13592 (shori_media): Require immediate operand. Use `u' for output.
13593 (movdf_media, movsf_media): Simplified.
13594 (movdf_media_nofpu, movsf_media_nofpu): New.
13595 (movdf, movsf): Adjust
13596 (movv2sf, movv2sf, movv16sf): New.
13597 (beq_media, beq_media_i): Adjust constraints. Don't use
13598 scratch BT register.
13599 (bne_media, bne_media_i): Likewise.
13600 (bgt_media, bgt_media_i): Likewise.
13601 (bge_media, bge_media_i): Likewise.
13602 (bgtu_media, bgtu_media_i): Likewise.
13603 (bgeu_media, bgeu_media_i): Likewise.
13604 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13605 bunordered): Emit jump insn. Force operands to registers when
13607 (jump_media, jump): Simplify.
13608 (call_compact, call_compact_rettramp): New.
13609 (call_value_compact, call_value_compact_rettramp): New.
13610 (call_media, call_value_media): Simplify.
13611 (sibcall_compact, sibcall_media): New.
13612 (call, call_value): Adjust for SHmedia and SHcompact.
13613 (sibcall, sibcall_value, untyped_call): Likewise.
13614 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13615 (indirect_jump): Adjust for SHmedia.
13616 (casesi_jump_media): New.
13617 (nop): Re-enable for SHmedia.
13618 (call_site): Restrict to SH1.
13619 (casesi): Adjust for SHmedia.
13620 (casesi_shift_media, casesi_load_media): New.
13621 (return): Explicitly use PR register. Call return trampoline
13623 (return_i): Explicitly use PR register.
13624 (shcompact_return_tramp, shcompact_return_tramp_i): New.
13625 (return_media): Adjust.
13626 (shcompact_incoming_args): New.
13627 (epilogue): Adjust.
13628 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13629 (movstrsi): Disable on SH5.
13630 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13631 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13632 (subsf3, subsf3_media): Likewise.
13633 (mulsf3, mulsf3_media, mac_media): Likewise.
13634 (divsf3, divsf3_media): Likewise.
13635 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
13636 (floatsisf2, fux_truncsfsi2): Likewise.
13637 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
13639 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13640 (cmpunsf_media, cmpsf): Likewise.
13641 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13642 (abssf2, abssf2_media): Likewise.
13643 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13644 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13645 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
13646 (floatsidf2, fix_truncdfsi2): Likewise.
13647 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
13649 (cmpeqdf_media, cmpgtdf_media): Likewise.
13650 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13651 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13652 (absdf2, absdf2_media): Likewise.
13653 (extendsfdf2, extendsfdf2_media): Likewise.
13654 (truncsfdf2, truncsfdf2_media): Likewise.
13655 * config/sh/sh64.h: New file.
13656 * config/sh/t-sh64: New file.
13657 * config/sh/shmedia.h: New file.
13658 * config/sh/ushmedia.h: New file.
13659 * config/sh/sshmedia.h: New file.
13660 * configure.in: Added sh64-*-elf.
13661 * configure: Rebuilt.
13662 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
13663 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13664 (reg_class_from_letter): Use `b' for TARGET_REGS.
13665 (print_operand): Support `%M', `%m', `AND' and
13666 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
13667 (andcosts): Adjust for SHmedia.
13668 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13670 (target_reg_operand): New function.
13671 * config/sh/sh-protos.h (target_reg_operand): Declare.
13672 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13673 FP registers on SH5.
13674 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13676 (TARGET_REGISTER_P): New macro.
13677 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13678 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13679 (EXTRA_CONSTRAINT_S): New macro.
13680 (EXTRA_CONSTRAINT): Adjust.
13681 (FLOAT_TYPE_SIZE): Define to 32.
13682 (Pmode): DImode on SHmedia.
13683 (CONST_COSTS): Adjust for SHmedia literals.
13684 (PREDICATE_CODES): Added target_reg_operand.
13685 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13686 * config/sh/sh.md: Remove all attrs from SHmedia insns.
13687 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13688 (cmpdi): Accept SHmedia.
13689 (movdicc_false, movdicc_true): New insns.
13690 (movdicc): New expand.
13691 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13693 (addsi3_media): Match `S' constraint.
13694 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13695 (negdi2): Expand for SHmedia.
13696 (one_cmpldi2): New expand.
13697 (zero_extendsidi2): Change from expand to insn.
13698 (extendsidi2): Add constraints.
13699 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
13700 LD/ST address. Fix SI immediate loading split.
13701 (movhi_media, movqi_media, lduw, ldub): New insns.
13702 (movhi, movqi): Accept SHmedia.
13703 (shori_media, movdi_media): Relax input constraints. Split
13704 symbolic constants.
13705 (movdf_media, movsf_media): New insn. New split to movdi.
13706 (movdf, movsf): Match on SHmedia.
13707 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13708 bgeu_media): New insns and splits. New insns with `_i' suffix.
13709 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13710 (bunordered): New expand.
13711 (jump_compact): Renamed from `jump'.
13712 (jump_media): New insn.
13713 (jump): New expand.
13714 (call_media, call_value_media): New insns.
13715 (call, call_value): Adjust.
13716 (indirect_jump_compact): Renamed from `indirect_jump'.
13717 (indirect_jump_media): New insn.
13718 (indirect_jump): New expand.
13719 (untyped_call, return): Accept SHmedia.
13720 (return_media): New insn.
13721 (prologue, epilogue, blockage): Accept SHmedia.
13722 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13723 (sunordered): New expand.
13724 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13725 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13726 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13727 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13728 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13729 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13730 abssf2_media): New insns.
13731 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13732 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13733 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13734 floatdidf2, floatsidf2_media, fix_truncdfdi2,
13735 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13736 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13737 absdf2_media): New insns.
13738 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13739 (extendsfdf2_media, truncdfsf2_media): New insns.
13740 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
13741 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13742 * config/sh/sh.h (CONST_OK_FOR_J): Document.
13743 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13744 * config/sh/sh.md (adddi3): New expand.
13745 (adddi3_media, adddi3z_media): New insns.
13746 (adddi3_compact): Renamed from adddi3.
13747 (addsi3_media): Use add.l r63 to add constant zero.
13748 (subdi3): New expand.
13749 (subdi3_media): New insn.
13750 (subdi3_compact): Renamed from subdi3.
13751 (mulsidi3): New expand.
13752 (mulsidi3_media): New insn.
13753 (mulsidi3_compact): Renamed from mulsidi3.
13754 (umulsidi3): New expand.
13755 (umulsidi3_media): New insn.
13756 (umulsidi3_compact): Renamed from umulsidi3.
13757 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13758 (ashlsi3, ashrsi3, lshrsi3): Use them.
13759 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13760 (ashldi3, ashrdi3, lshrdi3): Use them.
13761 (zero_extendsidi2): New expand.
13762 (extendsidi2): New insn.
13763 (movsi_media): New insn. Split to movdi to load constants.
13764 (movsi): Enable for shmedia.
13765 (movdi_media): New insn. Use shori_media to load wide constants.
13766 (short_media): New insn.
13767 (movdi): Enable for shmedia.
13768 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
13769 * config/sh/sh.h (CPP_SPEC): Added `m5'.
13770 (SUBTARGET_CPP_SPEC): Added `!m5'.
13771 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13772 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
13773 to all other SH variants.
13774 (TARGET_DEFAULT): Set to SH1_BIT.
13775 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13776 (BITS_PER_WORD): Raise to 64 on shmedia.
13777 (MAX_BITS_PER_WORD): Change to 64.
13778 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13779 (INT_TYPE_SIZE): Keep as 32.
13780 (UNITS_PER_WORD): Raise to 8 on shmedia.
13781 (MIN_UNITS_PER_WORD): Keep as 4.
13782 (POINTER_SIZE): Raise to 64 on shmedia.
13783 (CONST_OK_FOR_J): New macro.
13784 (CONST_OK_FOR_LETTER_P): Use it.
13785 (processor_type): Add PROCESSOR_SH5.
13786 * config/sh/sh.md: Conditionalize all expands, insns and
13787 splits to TARGET_SH1.
13789 (addsi3_compact): Renamed from...
13790 (addsi3): Now an expand.
13791 (addsi3_media, subsi3_media): New insns.
13792 (subsi3): Don't negate constants with SHmedia.
13794 * hooks.c: New file.
13795 * hooks.h: New file.
13796 * Makefile.in (HOOKS_H): New.
13797 (TARGET_DEF_H): Added $(HOOKS_H).
13798 (OBJS): Added hooks.o.
13799 (cfgcleanup.o, bb-reorder.o): Added target.h.
13800 (hooks.o): Added dependencies.
13801 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13802 (TARGET_INITIALIZER): this.
13803 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13804 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13805 * bb-reorder.c: Include target.h.
13806 (reorder_basic_blocks): Skip if cannot modify jumps.
13807 * cfgcleanup.c: Include target.h.
13808 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13810 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13812 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13813 Protect jump delay slot instructions with .set noreorder and
13816 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13818 * config/mips/mips.md (casesi_internal_di): Calculate
13819 the index into the target offset table correctly.
13821 2002-02-08 Richard Henderson <rth@redhat.com>
13823 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13824 * final.c (output_addr_const): Accept and discard SUBREG.
13825 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13826 mark them unknown instead.
13827 (simplify_subtraction): Handle RTX_UNKNOWN.
13828 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13830 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13832 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13834 2002-02-08 Richard Henderson <rth@redhat.com>
13836 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13838 2002-02-08 Andreas Jaeger <aj@suse.de>
13840 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13841 * config/i386/t-linux64: New file.
13843 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13845 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13846 * c-parse.in (compstmt): Clear last_expr_type.
13848 2002-02-07 Richard Henderson <rth@redhat.com>
13850 * loop.c (strength_reduce): Sink final_value when not
13853 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13855 * config/sparc/freebsd.h: Fix mismatched spec {.
13857 2002-02-07 Richard Henderson <rth@redhat.com>
13859 * cfgrtl.c: Include recog.h and insn-config.h.
13860 (keep_with_call_p): Fix general_operand invocation.
13861 * Makefile.in (cfgrtl.o): Update dependencies.
13863 2002-02-07 Kazu Hirata <kazu@hxi.com>
13865 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13866 comment. Accept HImode only if TARGET_H8300.
13868 2002-02-07 Eric Christopher <echristo@redhat.com>
13870 * config/mips/crtn.asm: Cleanup #ifdefs.
13872 2002-02-07 Eric Christopher <echristo@redhat.com>
13874 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13875 register 7 as RA instead of $31.
13876 * config/mips/crtn.asm: Ditto.
13877 * config/mips/mips.c (mips_move_2words): Add case for
13878 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13879 (compute_frame_size): Fix typo.
13880 (save_restore_insns): Ditto. Make documentation about using
13881 register $7 as return register more precise.
13882 (mips_expand_epilogue): Fix comment. Add code to work around not
13883 being able to add to the stack pointer directly.
13884 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13885 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13888 2002-02-07 Tom Rix <trix@redhat.com>
13890 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13891 immediates in ldu and stdu DS opcode field.
13892 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13893 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13894 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13896 2002-02-07 Jeff Sturm <jsturm@one-point.com>
13898 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13899 offset for stack bias.
13901 2002-02-07 H.J. Lu <hjl@gnu.org>
13903 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13905 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
13907 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13909 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
13911 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13912 * i386.c (x86_order_regs_for_local_alloc): New global function.
13913 * i386.h (REG_ALLOC_ORDER): CLeanup.
13914 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13916 2002-02-07 Richard Henderson <rth@redhat.com>
13918 PR optimization/2463
13919 * alias.c (find_base_value): Recall base values for fixed hard regs.
13920 * loop.c (loop_regs_update): Don't use single_set on non-insns.
13922 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
13924 * config/mips/mips.md (define_delay) [mips16]: Adjust required
13927 2002-02-06 Richard Henderson <rth@redhat.com>
13930 * stmt.c (resolve_operand_name_1): Take more care with mixed
13931 named and unnamed operands.
13933 2002-02-06 Janis Johnson <janis187@us.ibm.com>
13934 Jan Hubicka <jh@suse.cz>
13936 * loop.c (remove_constant_addition): Avoid clobbering a shared
13939 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13941 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13942 * config/s390/t-linux64: New file.
13943 * config/s390/libgcc-glibc.ver: New file.
13945 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13947 * config/s390/linux64.h: Delete file.
13948 * config/s390/s390x.h: New file.
13949 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13950 as target header file.
13951 * config/s390/linux.h (TARGET_VERSION): Define depending on
13952 DEFAULT_TARGET_64BIT.
13953 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13954 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13955 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13956 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13957 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13958 (EXTRA_SPEC): New define.
13959 * config/s390/s390.h (TARGET_VERSION): Define depending on
13960 DEFAULT_TARGET_64BIT.
13961 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13963 2002-02-06 Jason Merrill <jason@redhat.com>
13965 * c-decl.c (finish_function): Warn about a non-void function with
13966 no return statement and no abnormal exit.
13967 (current_function_returns_abnormally): New variable.
13968 (start_function): Clear it.
13969 (struct c_language_function): Add returns_abnormally.
13970 (push_c_function_context): Save it.
13971 (pop_c_function_context): Restore it.
13972 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13973 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13974 an explicit return type.
13975 * c-tree.h: Declare current_function_returns_abnormally.
13976 (C_FUNCTION_IMPLICIT_INT): New macro.
13977 * c-typeck.c (build_function_call): Set it.
13978 (c_expand_return): Set current_function_returns_value even if the
13979 value is erroneous.
13981 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13984 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13985 unsafe for reevaluation.
13987 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13990 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13991 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13993 2002-02-06 Richard Henderson <rth@redhat.com>
13995 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13996 be a general_operand. Dest for function value must be a pseudo.
13998 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
14000 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
14001 as SYMBOL_REFs from the constant pool.
14003 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
14005 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
14006 passed by invisible reference.
14008 2002-02-05 Richard Henderson <rth@redhat.com>
14010 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
14012 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
14014 Implement using "base addresses" in insn operands as default.
14015 * config/mmix/mmix.c (mmix_conditional_register_usage): if
14016 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
14017 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
14018 used to read the rtx value.
14019 (mmix_target_asm_function_epilogue): Fix spacing.
14020 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
14021 (mmix_legitimate_address): Ditto.
14022 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
14023 should be loaded with a GETA insn. Don't allocate needless extra
14024 char for nul termination and fix misleading comment.
14025 (mmix_print_operand_address): Handle constants if
14026 TARGET_BASE_ADDRESSES.
14027 (mmix_output_register_setting): Use base addressing if
14028 TARGET_BASE_ADDRESSES and the number of insns is 3.
14029 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
14030 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
14031 to use R as constraint, add LDA to match s.
14032 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
14033 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
14034 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
14035 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
14036 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
14037 order with other fixed registers.
14038 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
14039 other parameter/call-clobbered registers.
14040 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
14041 -mbase-addresses, -mno-base-addresses.
14042 (MMIX Options): Ditto.
14044 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
14046 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
14048 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
14050 * config/rs6000/altivec.h: Change elem to _S_elem.
14052 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
14054 * config/netbsd.h (WCHAR_TYPE): Define.
14055 (WCHAR_TYPE_SIZE): Ditto.
14056 (WINT_TYPE): Ditto.
14057 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
14058 (WCHAR_UNSIGNED): Ditto.
14059 (WCHAR_TYPE_SIZE): Ditto.
14060 (WINT_TYPE): Ditto.
14061 * config/arm/netbsd.h: Likewise.
14062 * config/i386/netbsd-elf.h: Likewise.
14063 * config/i386/netbsd.h: Likewise.
14064 * config/m68k/netbsd-elf.h: Likewise.
14065 * config/m68k/netbsd.h: Likewise.
14066 * config/ns32k/netbsd.h: Likewise.
14067 * config/sparc/netbsd.h: Likewise.
14068 * config/vax/netbsd.: Likewise.
14070 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
14072 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
14073 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
14074 (TARGET_INITIALIZER): this.
14075 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
14076 (BITFIELD_NBYTES_LIMITED): Markup fix.
14077 * tree.h (default_ms_bitfield_layout_p): Declare.
14078 (record_layout_info): Added prev_field.
14079 * tree.c (default_ms_bitfield_layout_p): New fn.
14080 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
14081 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
14082 * stor-layout.c: Include target.h.
14083 (start_record_layout): Initialize prev_field.
14084 (place_field): Handle MS bit-field layout, and disregard
14085 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
14086 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
14087 * Makefile.in (stor-layout.o): Adjust dependencies.
14089 2002-02-05 Jason Merrill <jason@redhat.com>
14091 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
14093 2002-02-05 Andreas Jaeger <aj@suse.de>
14095 * crtstuff.c: Fix comments.
14097 2002-02-05 Richard Henderson <rth@redhat.com>
14100 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
14101 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
14104 * config/mips/mips.c (function_arg): Handle TImode.
14105 (function_arg_advance): Likewise.
14107 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14109 * config/rs6000/altivec.h (vec_step_help): Rename to
14112 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14114 * config/rs6000/altivec.h: Fix typos.
14116 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
14118 * config/arm/netbsd.h: Correct a comment.
14120 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14122 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
14123 building void typed builtins.
14125 * config/rs6000/altivec.h (vec_ld*): Fix typos.
14126 (vec_step): Implement for C++.
14128 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14130 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
14132 2002-02-04 Richard Henderson <rth@redhat.com>
14134 * combine.c (nonzero_bits): Re-introduce special case for
14135 sp/fp/ap wrt REGNO_POINTER_ALIGN.
14137 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14139 * doc/extend.texi: Warn about unsupported usage of altivec
14142 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
14143 (altivec_predicate_*): New.
14145 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
14146 Add C++ version of vec_*() functions.
14148 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
14149 (bdesc_2arg): Remove altivec predicates.
14150 (altivec_expand_builtin): Handle predicates.
14151 (altivec_init_builtins): Handle predicates.
14152 (altivec_expand_predicate_builtin): New.
14154 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14156 * pa.c (DO_FRAME_NOTES): Move forward.
14157 (store_reg): Revise handling of frame notes.
14158 (load_reg): Likewise.
14159 (set_reg_plus_d): Likewise.
14160 (hppa_expand_prologue): Likewise.
14161 (hppa_expand_epilogue): Likewise.
14163 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14165 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
14167 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14169 PR c/4475, c++/3780:
14170 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
14171 * c-common.h (SWITCH_TYPE): Define.
14172 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
14173 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
14174 Rename spareness variable to sparseness.
14175 (expand_end_case_type): Renamed from expand_end_case, use orig_type
14176 if non-NULL instead of TREE_TYPE (orig_index).
14177 * tree.h (expand_end_case_type): Renamed from expand_end_case.
14178 (expand_end_case): Define using expand_end_case_type.
14179 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
14180 to expand_end_case_type.
14181 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
14183 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14185 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
14186 (BIGGEST_ALIGNMENT): Change to 128.
14188 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14190 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
14192 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14194 * pa.md (call_internal_reg_64bit): Remove unused variable.
14196 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
14198 * config/arm/arm.h (machine_function): Add uses_anonymous_args
14200 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
14201 * config/arm/arm.c (current_function_anonymous_args): Delete,
14202 replace uses with cfun->machine->uses_anonymous_args.
14203 (arm_reorg): Do not reset uses_anonymous_args.
14205 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
14206 any geenral register.
14208 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
14210 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
14213 2002-02-04 Richard Henderson <rth@redhat.com>
14215 * combine.c (force_to_mode): Remove STACK_BIAS code.
14216 (nonzero_bits): Likewise. Replace sp/fp special case with
14217 REGNO_POINTER_ALIGN.
14219 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14220 (HARD_FRAME_POINTER_REGNUM): New.
14221 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14222 (FIXED_REGS, CALL_USED_REGS): Update.
14223 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14224 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14225 (HARD_REGNO_NREGS): Update for SFP.
14226 (STACK_POINTER_OFFSET): Include bias here ...
14227 (FIRST_PARM_OFFSET): ... not here.
14228 (STACK_BIAS): Remove.
14229 (INIT_EXPANDERS): New.
14230 (STARTING_FRAME_OFFSET): Do not include bias.
14231 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14232 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14233 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14234 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14235 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14236 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14237 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14238 (MUST_SAVE_REGISTER): Likewise.
14239 (sparc_flat_function_prologue): Likewise.
14240 (sparc_flat_function_epilogue): Likewise.
14241 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14242 (sparc_init_modes): SFP is GENERAL_REGS.
14243 (sparc_builtin_saveregs): SFP does not have bias applied.
14245 2002-02-04 Richard Henderson <rth@redhat.com>
14247 * config/alpha/alpha.c (current_function_is_thunk): Don't check
14248 current_function_is_thunk.
14249 (alpha_sa_mask): Distinguish between current_function_is_thunk
14250 called from ASM_OUTPUT_MI_THUNK and not.
14251 (alpha_does_function_need_gp): Thunks always need gp.
14252 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14253 (alpha_output_mi_thunk_osf): New.
14254 * config/alpha/alpha-protos.h: Update.
14255 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14257 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
14259 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14260 function types, not when they're taken away.
14262 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
14264 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14265 CODE_LABEL and jump table when replacing a table jump with a
14268 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14270 * config/s390/s390-protos.h (legitimize_la_operand,
14271 s390_secondary_input_reload_class, s390_plus_operand,
14272 s390_expand_plus_operand): Add prototypes.
14274 config/s390/s390.c (s390_secondary_input_reload_class,
14275 s390_plus_operand, s390_expand_plus_operand): New functions.
14277 (struct s390_address): New member 'pointer'.
14278 (s390_decompose_address): Compute it.
14279 (legitimate_la_operand_p): Use it.
14280 (legitimize_la_operand): New function.
14281 (movti, movdi, movdf splitters): Call it.
14283 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14284 (PREDICATE_CODES): Add s390_plus_operand.
14286 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14287 (la_ccclobber): Allow GENERAL_REGS as output operand.
14289 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14290 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14291 (*la_64, *la_31, reload_indi, reload_insi): ... these.
14293 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14295 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14296 register names for regular asm () construct.
14298 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14300 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14303 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14305 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14308 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
14310 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14311 constant pool to be identical by string address and index.
14313 2002-02-04 Anthony Green <green@redhat.com>
14315 * output.h (SECTION_OVERRIDE): Define.
14316 * varasm.c (named_section): Obey SECTION_OVERRIDE.
14318 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
14320 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14321 by existing arm*-*-netbsd* (a.out) target.
14322 (ns32k-*-netbsdelf*): Likewise.
14323 (sparc-*-netbsdelf*): Likewise.
14324 (vax-*-netbsdelf*): Likewise.
14326 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
14328 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14329 headers and libobjc headers.
14331 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
14333 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14334 (_mingw.h): Remove duplicate include.
14336 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
14338 * config.gcc: Set cpu_type to m68k for 68010, as well.
14339 (m68010-*-netbsdelf*): New...
14340 (m68k*-*-netbsdelf*): ...targets.
14341 * config/m68k/netbsd-elf.h: New file.
14343 2002-02-02 Kazu Hirata <kazu@hxi.com>
14345 * config/h8300/h8300.c (hand_list): Move inside function_arg.
14347 2002-02-02 Kazu Hirata <kazu@hxi.com>
14349 * config/h8300/h8300.c (h8_push_ops): Move inside
14351 (h8_pop_ops): Likewise.
14352 (h8_move_ops): Likewise.
14354 2002-02-02 Kazu Hirata <kazu@hxi.com>
14356 * config/h8300/h8300.c (os_task): Make it static.
14357 (monitor): Likewise.
14358 (pragma_saveall): Likewise.
14360 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
14362 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14363 constant is a valid sign-extension for Pmode.
14365 2002-02-02 Kazu Hirata <kazu@hxi.com>
14367 * config/h8300/h8300.c: Fix formatting.
14369 2002-02-02 Kazu Hirata <kazu@hxi.com>
14371 * config/h8300/h8300.md: Fix formatting.
14373 2002-02-02 Kazu Hirata <kazu@hxi.com>
14375 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14376 predicates of operands[1]. Split the patterns for each
14379 2002-02-02 Kazu Hirata <kazu@hxi.com>
14381 * config/h8300/h8300.md (xor patterns): Tighten the predicates
14382 of operands[1] to register_operand.
14384 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
14386 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14387 * cpphash.c (_cpp_init_hashtable): Similarly.
14388 * cppinit.c (cpp_create_reader): Default the signed_char flag.
14389 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14390 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14391 (cpp_handle_option): Handle the new options.
14392 * cpplex.c (cpp_interpret_charconst): Use new flag.
14393 * cpplib.h (struct cpp_options): New member signed_char.
14394 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14395 (cpp_options): Handle -fsigned-char and -funsigned-char.
14396 (static_specs): Remove signed_char_spec.
14397 (do_spec1): Don't handle %c.
14398 * system.h: Poison SIGNED_CHAR_SPEC.
14399 * tradcif.y (yylex): Use flag_signed_char.
14400 * tradcpp.h (flag_signed_char): New.
14401 * tradcpp.c (flag_signed_char): New.
14402 (main): Handle new command-line options.
14403 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14405 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14406 * avr/avr.h: Remove old comments.
14407 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14408 (CC1_SPEC): Pass -fsigned-char if -mic*.
14409 (SIGNED_CHAR_SPEC): Remove.
14411 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14413 2002-02-01 Eric Christopher <echristo@redhat.com>
14415 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14416 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14417 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14418 (ASM_OUTPUT_REG_POP): Ditto.
14420 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
14422 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14425 2002-02-02 Jakub Jelinek <jakub@redhat.com>
14427 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14429 2002-02-02 Jakub Jelinek <jakub@redhat.com>
14432 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14435 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14437 * cfganal.c: Include tm_p.h.
14438 (keep_with_call_p): Fix the test that determines if a register holds
14439 the return value of a call.
14441 2002-02-01 DJ Delorie <dj@redhat.com>
14443 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14444 we are given conflicting registers, switch to the other one we
14445 had allocated for us.
14446 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14447 as TImode so we know when the "other" register is available.
14449 2002-02-01 David O'Brien <obrien@FreeBSD.org>
14451 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14454 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14456 * cfganal.c (keep_with_call_p): New function.
14457 (flow_call_edges_add): Prevent splitting a block between a call and
14458 a single-set instruction that should be kept in the same block.
14460 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
14462 * doc/install.texi (avr): Update outdated URL.
14464 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
14466 * config/stormy16/stormy16.md (pushqi): New.
14470 (movhi): Remove stack operands.
14472 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14473 nonimmediate_nonstack_operand.
14474 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14476 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14479 2002-01-31 Jason Merrill <jason@redhat.com>
14481 * Makefile.in (c-parse.c): Handle .output file.
14482 * objc/Make-lang.in (objc-parse.c): Likewise.
14484 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
14486 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14487 the -me[lb] option is given. Don't output the default flag
14490 2002-01-31 Zack Weinberg <zack@codesourcery.com>
14492 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14493 the primary source file; this has not been done yet.
14494 * c-decl.c (c_expand_body): Reset input_filename from
14495 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14497 2002-01-31 Kazu Hirata <kazu@hxi.com>
14499 * rtlanal.c (subreg_regno_offset): Do not use
14500 SUBREG_REGNO_OFFSET.
14501 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14502 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14504 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14506 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
14507 version rather than GNATS version in --version output.
14509 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
14511 * ifcvt.c (noce_process_if_block): Make a copy of the destination
14512 when copying back from a temporary.
14514 2002-01-30 Richard Henderson <rth@redhat.com>
14516 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14517 and new_dest are the same.
14519 2002-01-30 Richard Henderson <rth@redhat.com>
14522 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14523 * rtl.c (note_insn_name): Update.
14524 * emit-rtl.c (remove_unnecessary_notes): Kill it.
14525 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
14526 to perform loop rotation.
14527 (expand_exit_loop_top_cond): New.
14528 * tree.h (expand_exit_loop_top_cond): Declare it.
14529 * c-semantics.c (genrtl_while_stmt): Use it.
14530 (genrtl_for_stmt): Likewise.
14532 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
14534 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14535 arguments to 64-bit boundaries on 64-bit ABIs.
14537 2002-01-30 Steve Ellcey <sje@cup.hp.com>
14539 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14541 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14543 * c-decl.c (grokdeclarator): Handle type being a typedef for an
14546 2002-01-30 David O'Brien <obrien@FreeBSD.org>
14548 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14549 * config/sparc/sparc_bi.h: Remove file.
14550 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14552 2002-01-30 Richard Henderson <rth@redhat.com>
14554 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14556 2002-01-30 Zack Weinberg <zack@codesourcery.com>
14558 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14560 2002-01-30 Jason Merrill <jason@redhat.com>
14562 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14563 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14564 (reg_save): Use DW_CFA_offset_extended_sf instead.
14566 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14568 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14570 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14573 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
14575 * rs6000.md ("*call_value_local32"): Remove constraints.
14576 ("*call_value_local64"): Same.
14577 ("*call_value_indirect_nonlocal_aix32"): Same.
14578 ("*call_value_nonlocal_aix32"): Same.
14579 ("*call_value_indirect_nonlocal_aix64"): Same.
14580 ("*call_value_nonlocal_aix64"): Same.
14581 ("*call_value_nonlocal_sysv"): Same.
14583 2002-01-29 Richard Henderson <rth@redhat.com>
14585 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14587 2002-01-29 Richard Henderson <rth@redhat.com>
14589 * expr.c (force_operand): Ignore flag_pic for detecting pic
14591 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14592 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14593 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14594 instead of open-coded loop.
14595 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14596 be fixed when in use.
14598 2002-01-29 Richard Henderson <rth@redhat.com>
14600 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14601 * sched-rgn.c (propagate_deps): Update them.
14602 * sched-deps.c (sched_analyze_insn): Update them. Flush the
14603 clobbers list when either gets too long.
14605 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14607 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14608 and INDEX_REGS the same as GENERAL_REGS.
14609 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14611 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14613 * tree.c (build_nonstandard_integer_type): Correct prototype.
14615 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
14617 * config/s390/s390.md (movstrsico, movstrdix_64,
14618 movstrsix_31): Remove, replace by ...
14619 (movstrdi_short, movstrsi_short, movstrdi_long,
14620 movstrsi_long): ... these. New.
14621 (movstrdi, movstrsi): Adapt.
14623 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14624 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14625 Remove unnecessary CC clobber.
14626 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14627 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14629 (divmoddi4): Don't partially initialize TImode register.
14631 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
14633 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14635 2002-01-29 Richard Henderson <rth@redhat.com>
14637 * flow.c (print_rtl_and_abort): Remove.
14638 (print_rtl_and_abort_fcn): Remove.
14639 (verify_local_live_at_start): Use dump_bb instead.
14640 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14641 (verify_wide_reg_1): Return 2 on mode test failure.
14643 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14645 PR c/3325, c/3326, c/2511, c/3347
14646 * c-decl.c (enum_decl_context): Remove BITFIELD.
14647 (grokdeclarator): Take bitfield width as an input.
14648 Ensure bitfields are given the correct type. Perform
14649 bitfield width validation with build_bitfield_integer_type
14650 rather than waiting for finish_struct.
14651 (grok_typename, grok_typename_in_parm_context, start_decl,
14652 push_parmdecl, grokfield, start_function): Update calls to
14654 (build_bitfield_integer_type): New function.
14655 (finish_struct): Move bitfield validation to grokdeclarator
14656 and build_bitfield_integer_type.
14657 * tree.c (build_nonstandard_integer_type): New function.
14658 * tree.h (build_nonstandard_integer_type): New prototype.
14660 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14662 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14665 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14666 don't ignore unrecognized -W* options.
14667 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14668 * cpplib.h (cpp_handle_option): Adjust prototype.
14669 * c-decl.c (c_decode_options): Pass 0 as last argument to
14673 * gcc.c (cpp_unique_options): Split from cpp_options.
14674 (cpp_options): Source cpp_unique_options.
14675 (default_compilers): Use cpp_unique_options instead of cpp_options
14676 when used together with cc1_options.
14677 (static_specs): Add cpp_unique_options.
14678 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14679 when used together with cc1_options.
14681 2002-01-29 Kazu Hirata <kazu@hxi.com>
14683 * config/h8300/h8300-protos.h: Update the prototype of
14685 * config/h8300/h8300.c (output_a_shift): Remove an unused
14686 argument 'insn'. Remove redundant code.
14687 * config/h8300/h8300.md: Adust to the new prototype of
14690 2002-01-29 Kazu Hirata <kazu@hxi.com>
14692 * config/h8300/h8300-protos.h: Update the prototypes of
14693 emit_a_rotate and expand_a_rotate.
14694 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14695 first argument to 'enum rtx_code'.
14696 (expand_a_rotate): Likewise.
14698 2002-01-28 Kazu Hirata <kazu@hxi.com>
14700 * config/h8300/h8300-protos.h: Update the prototype of
14702 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14704 * config/h8300/h8300.md: Adjust to the new prototype.
14706 2002-01-28 Kazu Hirata <kazu@hxi.com>
14708 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14711 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14713 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14714 is a fixed register before returning pic_offset_table_rtx.
14715 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14716 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14718 2002-01-28 Jason Merrill <jason@redhat.com>
14720 * dwarf2.h: Sync with src version.
14722 2002-01-28 Paul Koning <pkoning@equallogic.com>
14724 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14725 BT_FN_VOID_PTR_VAR.
14726 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14727 * doc/extend.texi (__builtin_prefetch): Update documentation:
14728 first argument is now const void ptr.
14730 2002-01-28 Kazu Hirata <kazu@hxi.com>
14732 * config/h8300/h8300-protos.h: Remove an unused prototype.
14734 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
14736 * toplev.c (lang_independent_init): Round up identifier size.
14738 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14740 * config.gcc: Revert previous change.
14742 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
14744 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14746 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14748 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14749 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
14750 other non-elf netbsd config frags.
14751 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14752 collect2 will does that.
14753 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14754 shared-lib frobbing will work.
14756 2002-01-28 Kazu Hirata <kazu@hxi.com>
14758 * config/h8300/h8300.h: Fix formatting.
14759 * config/h8300/h8300.md: Likewise.
14761 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
14763 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14764 the old, removed AAA_standards fix.
14765 * fixinc/fixincl.x: Rebuilt.
14767 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
14769 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14770 atexit call in crtbegin, hooked in after call to frame_dummy;
14771 register EH before registering __fini__start.
14773 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
14775 * config/rs6000/altivec.h: Remove spurious semicolons.
14777 2002-01-27 Kazu Hirata <kazu@hxi.com>
14779 * config/h8300/h8300.md: Replace dead bit extraction patterns
14780 with ones that work.
14782 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14784 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14785 if not STRICT_ALIGNMENT.
14786 * rtl.h (MEM_ALIGN): Likewise.
14788 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
14790 * doc/invoke.texi (-fdump-translation-unit): Revert this
14791 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
14793 2002-01-27 Kazu Hirata <kazu@hxi.com>
14795 * config/h8300/h8300.md (define_constants): New.
14796 (anonymous patterns) Use defined constants appropriately.
14798 2002-01-27 Kazu Hirata <kazu@hxi.com>
14800 * config/h8300/h8300.c (function_arg): Remove redundant code.
14802 2002-01-26 Richard Henderson <rth@redhat.com>
14804 * sched-deps.c (reg_pending_uses_head): New.
14805 (reg_pending_barrier): Rename from reg_pending_sets_all.
14806 (find_insn_list): Don't mark inline.
14807 (find_insn_mem_list): Remove.
14808 (add_dependence_list, add_dependence_list_and_free): New.
14809 (flush_pending_lists): Replace only_write param with separate
14810 for_read and for_write parameters. Update all callers. Use
14811 add_dependence_list_and_free.
14812 (sched_analyze_1): Do not add reg dependencies here; just set
14813 the pending bits. Use add_dependence_list.
14814 (sched_analyze_2): Likewise.
14815 (sched_analyze_insn): Replace schedule_barrier_found with
14816 reg_pending_barrier. Add all dependencies for pending reg
14817 uses, sets, and clobbers.
14818 (sched_analyze): Don't add reg dependencies for calls, just
14819 set pending bits. Use regs_invalidated_by_call. Treat
14820 sched_before_next_call as a normal list, not a fake insn.
14821 (init_deps): No funny init for sched_before_next_call.
14822 (free_deps): Free pending mems lists. Don't zero reg_last.
14823 (init_deps_global): Init reg_pending_uses.
14824 (finish_deps_global): Free it.
14825 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14826 (find_insn_mem_list): Remove.
14827 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14828 (propagate_deps): Use them. Zero temp mem lists.
14830 2002-01-26 Richard Henderson <rth@redhat.com>
14832 * Makefile.in (CRTSTUFF_CFLAGS): New.
14833 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14834 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14835 crtstuff.c instead of alpha assembly version.
14836 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14837 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14838 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14839 (__do_global_dtors_aux): Mark used.
14840 (frame_dummy, __do_global_ctors_aux): Mark used.
14841 (fini_dummy, init_dummy): Remove.
14843 * config/alpha/crtbegin.asm: Remove file.
14844 * config/alpha/crtend.asm: Remove file.
14845 * config/alpha/t-crtbe: Remove file.
14846 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14847 (LINK_EH_SPEC): New.
14849 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14850 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14851 calling constructors.
14852 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14854 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14855 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14856 CRT_END_INIT_DUMMY hack.
14857 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14858 FORCE_{INIT,FINI}_SECTION_ALIGN.
14860 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14861 FORCE_{INIT,FINI}_SECTION_ALIGN.
14863 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14864 invocation sequence.
14865 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14867 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14868 (FORCE_CODE_SECTION_ALIGN): New.
14870 2002-01-26 Richard Henderson <rth@redhat.com>
14872 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14874 2002-01-26 Richard Henderson <rth@redhat.com>
14876 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14877 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14879 2002-01-26 Kazu Hirata <kazu@hxi.com>
14881 * config/h8300/h8300.md: Remove bit extraction patterns that
14882 cannot be triggered.
14883 Restrict each bit extraction pattern to a variant on which the
14886 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14888 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14890 2002-01-26 Kazu Hirata <kazu@hxi.com>
14892 * config/h8300/h8300.md: Remove bit test patterns that cannot
14894 Restrict each bit test pattern to a variant on which the
14897 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14899 * builtins.c (expand_builtin_strncat): Remove redundant check for
14902 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14904 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14906 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14909 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14911 * dbxout.c (dbxout_init): Use assemble_name rather than just
14912 stripping off the first character.
14913 (dbxout_source_file): Likewise.
14915 2002-01-25 DJ Delorie <dj@redhat.com>
14917 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14918 using rtx_equal_p, not by comparing pointers.
14920 2002-01-25 Steve Ellcey <sje@cup.hp.com>
14922 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14923 for PIC_OFFSET_TABLE_REGNUM.
14924 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14926 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14928 * config.gcc (x86_64-*-freebsd*): New target.
14929 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14931 (i[34567]86-*-freebsd*): Don't include svr4.h.
14932 * config/i386/freebsd64.h: New file.
14934 2002-01-25 Douglas B Rupp <rupp@gnat.com>
14936 * config/alpha/x-vms (version): Make static.
14938 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14939 in previous checkin.
14941 * Makefile.in (install-headers-cp): New target.
14942 * config.gcc (alpha-dec-*vms*): Install headers with
14945 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14947 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14950 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14952 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14953 of compare_tree_int.
14954 (expand_builtin_strncat): Likewise.
14955 * c-decl.c (finish_struct): Use tree_low_cst.
14956 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14957 * tree.c (compare_tree_int): Likewise.
14959 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14961 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14962 adjustments even if they are implemented by more than two insns.
14964 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14966 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14967 * df.h (struct ref): Kill B.
14968 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14970 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14971 * flow.c (propagate_one_insn): Use it.
14972 (mark_used_regs): Handle NIL.
14974 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14976 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14979 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14981 * rs6000.md (prefetch): Make address V4SI mode so that the address
14982 is restricted to legitimate form for instruction.
14984 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14986 * doc/install.texi (xtensa-*-elf): New target.
14987 (xtensa-*-linux*): New target.
14988 * doc/contrib.texi: Add myself.
14990 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14992 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14993 purpose register to hold an SImode (or smaller) value.
14995 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14997 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14999 * crtstuff.c: Likewise.
15001 2002-01-25 Kazu Hirata <kazu@hxi.com>
15003 * config/h8300/h8300.md (negation patterns): Tighten
15004 predicates to register_operand.
15006 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
15008 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
15011 * builtins.c (expand_builtin_prefetch): Same.
15013 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15015 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
15018 2002-01-24 Kazu Hirata <kazu@hxi.com>
15020 * config/h8300/h8300.c (print_operand): Remove support for
15021 operand character 'A'.
15022 * config/h8300/h8300.md (three anonymous patterns): Replace
15023 operand character 'A' with either 'T' or 'S'.
15025 2002-01-24 Kazu Hirata <kazu@hxi.com>
15027 * config/h8300/h8300.c (print_operand): Remove support for
15028 operand character 'U'.
15030 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
15032 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
15034 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
15036 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
15037 values to be assigned to the stack pointer.
15039 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15041 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
15042 to const_double needs to be done right for big-endian systems.
15044 2002-01-24 Jason Merrill <jason@redhat.com>
15047 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
15048 to can_throw_internal.
15050 2002-01-23 Richard Henderson <rth@redhat.com>
15052 * fold-const.c (fold): Change UINT_MAX test to check vs precision
15053 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
15055 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15057 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
15058 (symGOT2reg): Use them, then set as GOT value as unchanging.
15059 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
15060 as a temporary, if possible.
15061 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
15062 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
15064 2002-01-23 Kazu Hirata <kazu@hxi.com>
15066 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
15067 accept to accept 0x80 as operands[2].
15069 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15071 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
15073 2002-01-23 Richard Henderson <rth@redhat.com>
15075 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
15077 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
15079 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
15080 (parmlist_or_identifiers_1): Verify that only a parmlist follows
15083 2002-01-23 Richard Henderson <rth@redhat.com>
15085 * expr.c (move_by_pieces_1): Extend size before negation.
15087 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
15088 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
15089 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
15090 * config/m68k/t-m68kelf: Likewise.
15092 2002-01-23 Bob Wilson <bob.wilson@acm.org>
15094 * config/xtensa/elf.h: New file.
15095 * config/xtensa/lib1funcs.asm: New file.
15096 * config/xtensa/lib2funcs.S: New file.
15097 * config/xtensa/linux.h: New file.
15098 * config/xtensa/t-xtensa: New file.
15099 * config/xtensa/xtensa-config.h: New file.
15100 * config/xtensa/xtensa-protos.h: New file.
15101 * config/xtensa/xtensa.c: New file.
15102 * config/xtensa/xtensa.h: New file.
15103 * config/xtensa/xtensa.md: New file.
15104 * config.gcc (xtensa-*-elf*): New target.
15105 (xtensa-*-linux*): New target.
15106 * cse.c (canon_hash): Compare rtx pointers instead of register
15107 numbers. This is required for the Xtensa port.
15108 * integrate.c (copy_insn_list): Handle case where the static
15109 chain is in memory and the memory address has to be copied to
15111 * doc/invoke.texi (Option Summary): Add Xtensa options.
15112 (Xtensa Options): New node.
15113 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
15115 2002-01-23 Zack Weinberg <zack@codesourcery.com>
15117 * diagnostic.c (internal_error): Do ICE suppression only
15118 when ENABLE_CHECKING is not defined.
15120 * c-typeck.c (require_complete_type): Return error_mark_node
15121 if type is error_mark_node.
15123 2002-01-23 Janis Johnson <janis187@us.ibm.com>
15125 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
15126 -Os and issue a warning.
15128 2002-01-23 Zack Weinberg <zack@codesourcery.com>
15130 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
15131 current (lack of) need for host configuration by hand.
15133 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
15134 references. Documentation of some target macros moved from
15135 hostconfig.texi to tm.texi.
15137 2002-01-23 Will Cohen <wcohen@redhat.com>
15139 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
15142 2002-01-23 Kazu Hirata <kazu@hxi.com>
15144 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
15147 2002-01-23 Jason Merrill <jason@redhat.com>
15149 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
15151 * function.c (assign_parms): Don't put args of inline functions
15152 into registers when not optimizing.
15154 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
15156 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
15157 (prologue_use): New pattern.
15158 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
15159 preference to gen_rtx_USE.
15160 (thumb_expand_prologue): Use gen_prologue_use in preference to
15162 (thumb_expand_epilogue): Use gen_prologue_use in preference to
15165 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
15167 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
15169 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
15172 * doc/extend.texi: Correct documentation of __alignof__.
15174 2002-01-22 Zack Weinberg <zack@codesourcery.com>
15176 * params.h: Rename arguments of DEFPARAM so that it will be
15177 recognized as a translation keyword.
15179 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15181 * extend.texi: Document altivec functions.
15182 Fix N-bit adjectives in X86 builtin documentation.
15184 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
15186 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
15187 auto_inc_dec values.
15189 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
15191 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
15193 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
15195 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
15197 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
15199 2002-01-22 Richard Henderson <rth@redhat.com>
15201 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
15202 copy_insn not copy_rtx.
15204 2002-01-23 Alan Modra <amodra@bigpond.net.au>
15206 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
15207 "nonzero" as that might add "1" bits. Ensure "constop" is
15208 properly sign extened.
15209 (force_to_mode): Tweak for sign extended constop.
15211 2002-01-22 Richard Henderson <rth@redhat.com>
15213 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15214 for_each_rtx instead of assuming we're already looking at the MEM.
15215 (split_small_symbolic_mem_operand): Likewise.
15216 * config/alpha/alpha.h (PREDICATE_CODES): Update.
15217 * config/alpha/alpha.md (small symbolic memory splitters): Update.
15219 2002-01-22 Richard Henderson <rth@redhat.com>
15221 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15222 sequence number for the literal.
15223 (divmoddi_internal_er): Likewise.
15225 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
15228 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15229 in LIBICONV variable.
15230 * configure: Regenerated.
15232 2002-01-22 Krister Walfridsson <cato@df.lth.se>
15234 * dependence.c (build_def_use): Remove array_idx.
15236 * dwarfout.c (last_filename): Remove.
15237 (output_compile_unit_die): Remove last_filename.
15239 2002-01-22 Roger Sayle <roger@eyesopen.com>
15240 Richard Henderson <rth@redhat.com>
15243 * fold-const.c (fold): Optimize unsigned comparisons against
15244 UINT_MAX (and similar unsigned constants).
15246 2002-01-22 Janis Johnson <janis187@us.ibm.com>
15248 * Makefile.in (loop.o): Depend on OPTABS_H.
15249 * loop.c (emit_prefetch_instructions): Check the prefetch operand
15250 against the predicate.
15253 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15254 for the address operand.
15256 2002-01-22 Richard Henderson <rth@redhat.com>
15258 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15260 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
15263 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15264 preprocessor flags.
15266 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
15268 * config.gcc (x86_64-*-netbsd*): New target.
15269 * config/i386/netbsd64.h: New file.
15271 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15273 * regrename.c (kill_value): Fix typo.
15275 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15277 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15279 * config/rs6000/rs6000.h: Same.
15281 * function.c (instantiate_virtual_regs): Remove
15282 STARTING_FRAME_PHASE.
15283 (assign_stack_local_1): Same.
15284 Calculate frame phase.
15286 2002-01-22 Nick Clifton <nickc@redhat.com>
15288 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15289 variable declaration to outer scope in order to simplify
15291 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15292 arm_hard_regno_mode_ok.
15293 * config/arm/arm-protos.h: Add a prototype for
15294 arm_hard_regno_mode_ok.
15295 * config/arm/arm.c (soft_df_operand): Remove now redundant
15296 check for DImode values using IP_REGNUM.
15297 (nonimmediate_soft_df_operand): Remove now redundant check for
15298 DImode values using IP_REGNUM.
15299 (arm_hard_regno_mode_ok): New function. New check: make sure
15300 that DImode values are not stored in IP_REGNUM.
15302 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15304 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15306 2002-01-22 Jason Merrill <jason@redhat.com>
15308 * c-semantics.c (genrtl_compound_stmt): Only check nesting
15309 consistency if this COMPOUND_STMT is scoped.
15311 2002-01-22 Kazu Hirata <kazu@hxi.com>
15313 * predict.c: Fix formatting.
15314 * print-tree.c: Likewise.
15315 * protoize.c: Likewise.
15316 * real.h: Likewise.
15318 * sbitmap.h: Likewise.
15319 * scan.c: Likewise.
15320 * sched-deps.c: Likewise.
15321 * sched-vis.c: Likewise.
15322 * sdbout.c: Likewise.
15323 * sibcall.c: Likewise.
15325 * ssa-ccp.c: Likewise.
15326 * ssa-dce.c: Likewise.
15327 * stmt.c: Likewise.
15328 * stor-layout.c: Likewise.
15329 * system.h: Likewise.
15331 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15333 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15334 if fits in bounds of base type.
15336 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15337 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15338 (add_bound_info, default): If can't find a context, make a
15340 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15342 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
15344 * c-typeck.c (parser_build_binary_op): If result from
15345 build_binary_op is ERROR_MARK just return error_mark_node without
15346 further processing.
15348 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
15350 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15351 Split a.out-specific bits into...
15352 * config/netbsd-aout.h: ...this.
15353 * config/netbsd-elf.h: New file.
15354 * config/alpha/netbsd-elf.h: Remove.
15355 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15356 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15357 (STARTFILE_SPEC): Remove redundant definition.
15358 (ENDFILE_SPEC): Likewise.
15359 (LINK_SPEC): Likewise.
15360 (CPP_SPEC): Likewise.
15361 (ASM_SPEC): Likewise.
15362 (LIB_SPEC): Likewise.
15363 (SWITCH_TAKES_ARG): Likewise.
15364 (TARGET_MEM_FUNCTIONS): Likewise.
15365 (CPP_PREDEFINES): Redefine.
15366 (ASM_FINAL_SPEC): Remove redefinition.
15367 (ASM_COMMENT_START): Redefine.
15368 (FUNCTION_PROFILER): Define.
15369 (TARGET_VERSION): Redefine.
15370 Comment and formatting cleanup.
15371 * config/i386/netbsd.h: Include <netbsd-aout.h>.
15372 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15373 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15374 big- or little-endian.
15375 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15376 * config.gcc (*-*-netbsd*): Add definitions common to all
15378 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15379 gnu_ld definitions. Add netbsd-elf.h to and remove
15380 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
15381 tmake_file, and don't lose previous tmake_file contents.
15382 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15383 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15384 gnu_ld definitions. Add netbsd-elf.h to tm_file.
15385 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15386 (mipsel-*-netbsd*): Rename this to...
15387 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
15388 mips/little.h to tm_file for mips*el-*.
15389 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15390 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15391 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15393 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
15395 * pa-protos.h (reg_before_reload_operand): New function prototype.
15396 * pa.c (reg_before_reload_operand): New function implementation.
15397 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
15398 contraints to "*m".
15400 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15402 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15404 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
15406 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15407 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15408 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15409 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15410 (ENDFILE_SPEC): Undefine.
15411 (STARTFILE_SPEC): Redefine for PA.
15413 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15415 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15417 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
15419 * config.gcc: Add entries to supported PowerPC --with-cpu
15422 2002-01-21 Jakub Jelinek <jakub@redhat.com>
15424 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15425 true for 64-bit mode only SSE registers in 32-bit mode.
15427 2002-01-21 Kazu Hirata <kazu@hxi.com>
15429 * unwind-dw2.c: Fix formatting.
15430 * unwind-dw2-fde.c: Likewise.
15431 * unwind-dw2-fde.h: Likewise.
15432 * unwind-pe.h: Likewise.
15433 * varasm.c: Likewise.
15434 * varray.h: Likewise.
15436 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
15438 Remove workaround for register stack overwrite bug in mmix.
15439 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15440 support for TARGET_REG_STACK_FILL_BUG.
15441 * config/mmix/mmix.h: Remove member has_call_without_parameters.
15442 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15444 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15445 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15446 -mno-reg-stack-fill-bug-workaround.
15447 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15448 machine member has_call_without_parameters.
15449 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15450 -mreg-stack-fill-bug-workaround and
15451 -mno-reg-stack-fill-bug-workaround.
15452 (MMIX Options): Ditto.
15454 2002-01-21 Kazu Hirata <kazu@hxi.com>
15456 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15458 Remove redundant code.
15460 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
15462 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15463 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15464 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15465 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15466 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15467 out target macro definitions and non-target-specific comments
15468 mostly taken from old versions of the manual.
15470 2002-01-20 Kazu Hirata <kazu@hxi.com>
15472 * config/h8300/h8300.h: Fix comment formatting.
15473 * config/ia64/aix.h: Likewise.
15474 * config/ia64/ia64-protos.h: Likewise.
15475 * config/ia64/ia64.c: Likewise.
15476 * config/ia64/ia64.h: Likewise.
15477 * config/ia64/ia64intrin.h: Likewise.
15478 * config/ia64/linux.h: Likewise.
15479 * config/ia64/unwind-aix.c: Likewise.
15480 * config/ia64/unwind-ia64.c: Likewise.
15482 2002-01-20 Kazu Hirata <kazu@hxi.com>
15484 * config/h8300/h8300.c: Revise comments about shift code.
15486 2002-01-20 Kazu Hirata <kazu@hxi.com>
15488 * config/h8300/h8300.c (function_arg): Update a comment.
15490 2002-01-20 Kazu Hirata <kazu@hxi.com>
15492 * config/h8300/h8300.md: Update the comments at the beginning
15495 2002-01-20 Kazu Hirata <kazu@hxi.com>
15497 * config/i370/i370.c: Fix comment formatting.
15498 * config/i370/i370.h: Likewise.
15499 * config/i370/i370.md: Likewise.
15500 * config/i370/linux.h: Likewise.
15502 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15504 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15506 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15507 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15508 in incomplete case.
15510 2002-01-20 Graham Stott <grahams@redhat.com>
15512 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15514 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
15516 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15518 2002-01-19 Tom Rix <trix@redhat.com>
15520 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15522 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
15524 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15526 * function.c (assign_stack_local_1): Adjust x_frame_offset with
15527 STARTING_FRAME_PHASE.
15528 (STARTING_FRAME_PHASE): New.
15529 (instantiate_virtual_regs): Check saneness of
15530 STARTING_FRAME_PHASE.
15532 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15534 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
15536 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15538 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
15540 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15541 be used for bootstrapping GCC 3.0.
15543 2002-01-18 Kazu Hirata <kazu@hxi.com>
15545 * config/h8300/h8300.md: Fix an insn length.
15547 2002-01-18 Kazu Hirata <kazu@hxi.com>
15549 * bitmap.h: Fix comment formatting.
15550 * combine.c: Likewise.
15551 * cppfiles.c: Likewise.
15552 * c-pragma.h: Likewise.
15553 * c-typeck.c: Likewise.
15555 * dwarf2out.c: Likewise.
15556 * function.c: Likewise.
15558 * genattrtab.c: Likewise.
15559 * gthr-win32.h: Likewise.
15560 * haifa-sched.c: Likewise.
15561 * predict.c: Likewise.
15562 * rtlanal.c: Likewise.
15564 * unwind-dw2-fde.h: Likewise.
15565 * unwind-pe.h: Likewise.
15566 * vmsdbgout.c: Likewise.
15568 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15570 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15571 if type_required and passed decl.
15573 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
15575 * config.gcc (cpu_type): Include altivec.h in powerpc
15579 * config/rs6000/altivec.h: New.
15581 2002-01-17 David Edelsohn <edelsohn@gnu.org>
15583 * doc/install.texi (*-ibm-aix*): Update assembler and exception
15584 handling information.
15585 * doc/trouble.texi (Interoperation): Add libstdc++ information
15587 (Misunderstandings): Add template instantiation and static template
15588 member information for AIX.
15590 2002-01-17 Jason Merrill <jason@redhat.com>
15592 * dbxout.c (dbxout_type): Support const and volatile.
15594 * except.c (add_partial_entry): Remove backwards compatibility code.
15595 (end_protect_partials): Likewise.
15597 2002-01-17 Jakub Jelinek <jakub@redhat.com>
15599 * config/ia64/ia64.md (prologue_use): New.
15600 * config/ia64/ia64.c (ia64_expand_prologue): Use
15601 gen_prologue_use instead of gen_rtx_USE.
15602 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15603 as CODE_FOR_pred_rel_mutex.
15604 (ia64_sched_reorder2): Likewise.
15606 2002-01-16 Eric Christopher <echristo@redhat.com>
15608 * config/mips/r3900.h: Reformat.
15609 (SUBTARGET_CPP_SIZE_SPEC): Remove.
15610 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15611 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15612 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15613 * config/mips/t-elf: Remove mips3 multilib.
15615 2002-01-16 H.J. Lu <hjl@gnu.org>
15617 * config/mips/linux.h: Include "mips/abi64.h".
15619 2002-01-16 H.J. Lu <hjl@gnu.org>
15621 * config/mips/t-linux: New.
15623 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15625 * config/mips/linux.h: Don't include "gofast.h".
15626 (INIT_SUBTARGET_OPTABS): Removed.
15628 2002-01-16 Kazu Hirata <kazu@hxi.com>
15630 * config/h8300/h8300-protos.h: Replace emit_a_shift with
15632 * config/h8300/h8300.c: Likewise.
15633 * config/h8300/h8300.md: Likewise.
15635 2002-01-16 Kazu Hirata <kazu@hxi.com>
15637 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15638 spaces after an opcode name.
15639 (pushqi1_h8300hs): Likewise.
15640 (pushhi1_h8300hs): Likewise.
15642 2002-01-16 Kazu Hirata <kazu@hxi.com>
15644 * doc/extend.texi: Replace "option" with "attribute"
15647 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15649 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15650 (and:DI () (const_int -8)).
15651 (split_small_symbolic_mem_operand): Split
15652 (mem (and:DI () (const_int -8)).
15654 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15657 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15658 same way as TYPE_IMUL.
15659 (ultrasparc_sched_reorder): Likewise.
15660 * config/sparc/sparc.md (type): Add comment to update
15661 ultrasparc_sched_reorder when making changes.
15663 2002-01-16 Kazu Hirata <kazu@hxi.com>
15665 * doc/invoke.texi: Change the dump file name of block
15666 reordering pass from 28.bbro to 29.bbro.
15667 Mention -dk option.
15669 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
15671 * i386.md (minsf splitter): Fix pasto.
15673 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15675 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15676 to frame pointer initialisation instruction.
15677 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15678 initialisation instruction.
15679 (soft_df_operand): Do not accept the IP register.
15680 (nonimmediate_soft_df_operand): Do not accept the IP register.
15682 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15685 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15686 MASK_V8 being both set.
15688 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
15690 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15691 insn for GOT register; add REG_MAYBE_DEAD notes instead.
15692 config/s390/s390.md (call, call_value): Add GOT register to
15693 CALL_INSN_FUNCTION_USAGE where needed.
15694 (call_exp, call_value_exp): New.
15696 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15698 * config/arm/arm.c: General formatting tidy up.
15700 2002-01-16 Graham Stott <grahams@redhat.com>
15702 * calls.c (try_to_integrate): Use "(size_t)" intermediate
15703 cast and when casting an integer literal to "rtx" pointer.
15704 (expand_call): Likewise.
15705 * flow.c (try_pre_increment): Likewise.
15706 (find_use_as_address): Likewise.
15707 * integrate.c (expand_iline_function): Likewise.
15708 * regmove.c (try_auto_increment): Likewise.
15710 2002-01-16 Graham Stott <grahams@redhat.com>
15712 * sched-rgn.c (passed): Use sbitmap_free.
15713 (header): Likewise.
15715 (in_queue): Likewise.
15716 (in_stack): Likewise.
15718 2002-01-15 Eric Christopher <echristo@redhat.com>
15720 * flow.c (propagate_one_insn): Change to use fatal_insn.
15722 2002-01-15 Kazu Hirata <kazu@hxi.com>
15724 * expmed.c (extract_fixed_bit_field): Remove unused code.
15725 * system.h: Poison SLOW_ZERO_EXTEND.
15726 * doc/tm.texi: Remove.
15727 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15728 * config/arm/arm.h: Likewise.
15729 * config/avr/avr.h: Likewise.
15730 * config/clipper/clipper.h: Likewise.
15731 * config/convex/convex.h: Likewise.
15732 * config/d30v/d30v.h: Likewise.
15733 * config/dsp16xx/dsp16xx.h: Likewise.
15734 * config/elxsi/elxsi.h: Likewise.
15735 * config/fr30/fr30.h: Likewise.
15736 * config/h8300/h8300.h: Likewise.
15737 * config/i370/i370.h: Likewise.
15738 * config/i386/i386.h: Likewise.
15739 * config/m68k/m68k.h: Likewise.
15740 * config/mips/mips.h: Likewise.
15741 * config/ns32k/ns32k.h: Likewise.
15742 * config/pdp11/pdp11.h: Likewise.
15743 * config/pj/pj.h: Likewise.
15744 * config/s390/s390.h: Likewise.
15745 * config/sh/sh.h: Likewise.
15746 * config/stormy16/stormy16.h: Likewise.
15747 * config/v850/v850.h: Likewise.
15748 * config/vax/vax.h: Likewise.
15749 * config/we32k/we32k.h: Likewise.
15751 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15753 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15754 (altivec_lvsl): Change constraint to b.
15755 (altivec_lvsr): Same.
15756 (altivec_lvebx): Same.
15757 (altivec_lvehx): Same.
15758 (altivec_lvewx): Same.
15759 (altivec_lvxl): Same.
15760 (altivec_lvx): Same.
15761 (altivec_stvx): Add parallel.
15762 (altivec_stvxl): Same.
15763 (altivec_stvehx): Same.
15764 (altivec_stvebx): Same.
15765 (altivec_stvebx): Same.
15767 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15769 * config.gcc: Change altivec.h to altivec-defs.h.
15771 * config/rs6000/altivec.h: Delete.
15773 * config/rs6000/altivec-defs.h: Add.
15775 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15777 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15780 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15781 less than or equal to eight bytes.
15783 * vax.md (andsi3): Remove constraints and change SET destination
15784 operand type to nonimmediate_operand.
15785 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
15786 when it is a CONST_INT.
15788 2002-01-15 Jason Merrill <jason@redhat.com>
15790 * c-common.def (FILE_STMT): New code.
15791 * c-common.c (statement_code_p): It's a statement.
15792 * c-common.h (stmt_tree_s): Add x_last_filename.
15793 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15794 (last_expr_filename): New macro.
15795 * c-semantics.c (begin_stmt_tree): Initialize it.
15796 (add_stmt): If the filename changed, also insert a
15798 (expand_stmt): Handle seeing one.
15800 2002-01-15 Eric Christopher <echristo@redhat.com>
15802 * flow.c (propagate_one_insn): Add error message and print out
15803 insn for debugging.
15805 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15807 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15808 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15809 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15810 TRAMPOLINE_ALIGNMENT.
15811 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
15813 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15814 PCC_BITFIELD_TYPE_MATTERS.
15815 * config/interix.h (STDC_VALUE): Remove. Use
15816 STDC_0_IN_SYSTEM_HEADERS.
15817 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15818 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15819 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15821 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15823 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15824 not work on this platform currently.
15826 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15828 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15829 readonly_warning in _().
15831 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15833 * gcc.c (delete_if_ordinary): Backout previous change.
15835 2002-01-15 Kazu Hirata <kazu@hxi.com>
15837 * config/h8300/h8300.c (print_operand): Remove support for
15838 unused operand characters.
15840 * read-rtl.c: Fix formatting.
15841 * real.c: Likewise.
15842 * recog.c: Likewise.
15843 * regclass.c: Likewise.
15844 * regmove.c: Likewise.
15845 * reg-stack.c: Likewise.
15846 * reload1.c: Likewise.
15847 * rtlanal.c: Likewise.
15849 2002-01-15 Kazu Hirata <kazu@hxi.com>
15851 * config/i386/i386.c: Fix formatting.
15853 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15855 * c-typeck.c (process_init_element): Don't save_expr
15856 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15858 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15860 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15861 emit optional traceback table if optimize_size or TARGET_ELF.
15862 * config/rs6000/rs6000.md (prefetch): New.
15864 2002-01-15 Andreas Jaeger <aj@suse.de>
15866 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15868 2002-01-15 Kazu Hirata <kazu@hxi.com>
15870 * mips-tfile.c: Fix formatting.
15872 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15874 * unroll.c (final_reg_note_copy): Fix previous commit.
15876 2002-01-14 Kazu Hirata <kazu@hxi.com>
15878 * config/h8300/h8300-protos.h: Remove the prototype for
15880 * config/h8300/h8300.c (eq_operator): Remove.
15882 2002-01-14 Richard Henderson <rth@redhat.com>
15884 * config/i386/i386.md (prefetch): Tidy.
15885 (prefetch_3dnow): Fix locality operand.
15887 2002-01-14 Richard Henderson <rth@redhat.com>
15889 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15890 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15892 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
15894 * reload1.c (reload_combine): Pass reg_sum replacement through
15895 copy_rtx in loop performing multiple changes.
15897 2002-01-14 Jakub Jelinek <jakub@redhat.com>
15899 * except.c (remove_unreachable_regions): New.
15900 (free_eh_status): Clear exception_handler_labels.
15901 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15902 (find_exception_handler_labels): Don't add the same label more than
15904 (remove_exception_handler_label): Don't die if
15905 find_exception_handler_labels hasn't been called for the current
15908 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
15910 * toplev.c (rest_of_compilation): Rebuild jump labels after
15913 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
15915 * doc/extend.texi: Move documentation of X86 built-in functions
15917 * doc/invoke.texi: From here.
15918 * doc/sourcebuild.texi: Document location of documentation for
15919 machine built-in functions.
15921 2002-01-13 Christopher Faylor <cgf@redhat.com>
15923 * cppfiles.c (TEST_THRESHOLD): New macro.
15924 (SHOULD_MMAP): Ditto.
15925 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15928 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
15930 * unroll.c (final_reg_note_copy): Properly handle
15932 (unroll_loops): Fix LOOP_CONDITION heuristics.
15934 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
15936 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15937 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15939 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
15941 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15944 2002-01-14 Tom Rix <trix@redhat.com>
15946 * config/rs6000/rs6000.md: Fix typo with sradi.
15948 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15950 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15951 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15952 (clrstrdi, clrstrsi): Adapt callers.
15954 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15956 (movti splitter): Never use register 0 as base register.
15958 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15960 * combine.c (simplify_shift_const): Always generate new rtx
15961 for shift expression instead of reusing given expression.
15963 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15965 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15966 alpha_legitimize_address unless mode is Pmode.
15968 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15970 * doc/md.texi (Modifiers): Document the '*' constraint for the
15973 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15974 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15977 2002-01-13 Richard Henderson <rth@redhat.com>
15979 * reload.c (find_reloads): Use a hard reg destination as reload reg
15980 for an input reload of the source.
15982 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15984 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15987 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15989 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15990 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15992 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15994 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15996 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15998 2002-01-12 Tom Rix <trix@redhat.com>
16000 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
16003 2002-01-12 Richard Henderson <rth@redhat.com>
16005 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
16007 * doc/invoke.texi: Update Alpha options.
16009 * doc/invoke.texi: Update i386 built-in function lists.
16011 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
16013 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
16014 referencing outside.
16016 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16018 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
16019 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
16020 offsets, and change line folding.
16021 * optabs.c (expand_binop): Remove warnings.
16022 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
16024 2002-01-12 Graham Stott <grahams@redhat.com>
16026 * attribs.c (handle_deprecated_attribute): constify WHAT.
16027 * diagnostic.c (warn_deprecated_use): Add braces, fixes
16028 dangling else warning and constify WHAT.
16029 * except.h (struct function, struct inline_remap): Move
16030 struct tag forward defs before all prototypes.
16031 (duplicate_eh_regions): Whitespace.
16033 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
16035 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16036 MODE_BASE_REG_CLASS.
16037 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
16039 2002-01-12 Richard Henderson <rth@redhat.com>
16041 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
16042 (ix86_expand_vector_move): New.
16043 (bdesc_2arg): Remove andps, andnps, orps, xorps.
16044 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
16045 Remove old prefetch builtins. Special case the logicals removed above.
16046 (ix86_expand_builtin): Likewise.
16047 (safe_vector_operand): Use V4SFmode, not TImode.
16048 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
16049 (ix86_expand_timode_binop_builtin): New.
16050 * config/i386/i386-protos.h: Update.
16051 * config/i386/i386.h (enum ix86_builtins): Update.
16052 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
16053 Use ix86_expand_vector_move in vector move expanders.
16054 (movti_internal, movti_rex64): Add xorps alternative.
16055 (sse_clrv4sf): Rename and adjust from sse_clrti.
16056 (prefetch): Don't work so hard.
16057 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
16058 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
16059 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
16061 2002-01-11 Richard Henderson <rth@redhat.com>
16063 * config/i386/mmintrin.h: New file.
16064 * config/i386/xmmintrin.h: New file.
16065 * config.gcc (i?86-*-*): Add extra_headers.
16066 * simplify-rtx.c (simplify_unary_operation): Handle saturating
16068 (simplify_binary_operation): Handle saturating arithmetic codes.
16069 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
16070 not the lowpart subreg.
16071 (ix86_expand_builtin): Return a TImode dummy register instead of 0
16073 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
16075 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16077 * conflict.c (conflict_graph_compute): Free regsets when finished.
16078 * ssa.c (compute_coalesced_reg_partition): Likewise.
16080 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16082 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
16083 every where we allocate a register.
16085 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16087 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
16088 * lcm.c (compute_earliest, compute_farthest): Likewise.
16090 2002-01-11 Janis Johnson <janis187@us.ibm.com>
16092 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
16094 2002-01-11 Janis Johnson <janis187@us.ibm.com>
16096 * doc/rtl.texi (Insns): Fix 2 typos.
16098 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
16100 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
16101 options. Use @table @gcctabopt for MMIX options. Add index
16102 entries for MMIX options. Start new paragraph with first
16103 heading of the machine-dependent options.
16105 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
16108 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
16109 * combine.c (force_to_mode): Same.
16110 * reload1.c (clear_reload_reg_in_use): Same.
16112 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
16114 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
16117 2002-01-11 Andreas Jaeger <aj@suse.de>,
16118 Brad Lucier <lucier@math.purdue.edu>
16120 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
16123 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
16125 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
16126 Protect with IN_LIBGCC.
16127 (LINK_EH_SPEC): Add required trailing space.
16129 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
16131 * c-tree.h: Move function declarations so that they are listed
16132 under the filename which contains them.
16133 (check_identifier, finish_decl_top_level,
16134 lookup_name_current_level_global, shadow_record_fields): Remove.
16136 2002-01-11 Andreas Jaeger <aj@suse.de>
16138 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
16141 2002-01-10 Richard Henderson <rth@redhat.com>
16143 * config/alpha/alpha.c (print_operand): Add 'J'.
16144 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
16145 new operand with the sequence number for the lituse. When splitting
16146 the insns, use gen_movdi_er_high_g and generate a sequence number.
16147 (gen_movdi_er_high_g): Print the sequence number if non-zero.
16149 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
16151 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
16152 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
16154 (altivec_expand_builtin): Same.
16155 (altivec_expand_stv_builtin): New.
16157 * config/rs6000/rs6000.h (rs6000_builtins): Same.
16159 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
16160 ("altivec_lvehx"): New.
16161 ("altivec_lvewx"): New.
16162 ("altivec_lvxl"): New.
16163 ("altivec_lvx"): New.
16164 ("altivec_stvx"): New.
16165 ("altivec_stvebx"): New.
16166 ("altivec_stvehx"): New.
16167 ("altivec_stvewx"): New.
16168 ("altivec_stvxl"): New.
16170 2002-01-10 Richard Henderson <rth@redhat.com>
16172 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
16173 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
16174 care not to delete instructions twice.
16176 2002-01-10 Zack Weinberg <zack@codesourcery.com>
16178 * toplev.c: Don't declare environ (it's not used anywhere).
16179 * configure.in: Don't check for declaration of environ.
16180 * config/i386/xm-mingw32.h: Don't #define environ.
16181 * config.in, configure: Regenerate.
16183 2002-01-10 Zack Weinberg <zack@codesourcery.com>
16185 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
16186 * configure: Regenerate.
16188 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
16189 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
16190 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
16192 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
16193 LIMITS_H_TEST here, not in m68k/x-next.
16194 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
16195 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
16197 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
16198 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
16199 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
16201 * config/i386/x-djgpp: Renamed i386/t-djgpp.
16202 * config/m88k/x-dolph: Renamed m88k/t-dolph.
16203 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
16204 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
16205 replacement of quadlib.asm with quadlib.c.
16207 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
16208 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
16209 config/rs6000/xm-beos.h: Delete file.
16211 * config.gcc: Update to match above changes.
16213 2002-01-10 Kazu Hirata <kazu@hxi.com>
16215 * config/h8300/h8300.h: Fix comment typos.
16216 * config/h8300/h8300.md: Likewise.
16217 * config/h8300/lib1funcs.asm: Likewise.
16219 2002-01-10 Dale Johannesen <dalej@apple.com>
16221 PR optimization/5269
16222 * unroll.c (precondition_loop_p): Make *increment be the correct
16223 sign when n_iterations known, to avoid confusing caller.
16225 2002-01-10 Kazu Hirata <kazu@hxi.com>
16227 * doc/extend.texi (deprecated): Fix a typo.
16229 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
16231 * basic-block.h (update_br_prob_note): Declare.
16232 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16233 (try_forward_edges): Care negative frequencies and update note.
16234 (outgoing_edges_match): Tweek conditional merging heuristics.
16235 (try_crossjump_to_edge): use update_br_prob_note.
16236 * cfglayout.c (fixup_reorder_chain): Likewise.
16237 * cfrtl.c (update_br_prob_note): New.
16238 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16240 * i386.c (ix86_decompose_address): Return -1 if address contains
16242 (legitimate_address_p): Require ix86_decompose_address to return 1.
16244 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16245 (cprop_insn): Likewise.
16247 2002-01-10 Kazu Hirata <kazu@hxi.com>
16249 * toplev.c: Fix formatting.
16250 * tree.c: Likewise.
16251 * tree-dump.c: Likewise.
16252 * unroll.c: Likewise.
16253 * unwind-dw2.c: Likewise.
16254 * unwind-dw2-fde.c: Likewise.
16255 * unwind-dw2-fde-glibc.c: Likewise.
16256 * unwind-sjlj.c: Likewise.
16258 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
16260 * doc/invoke.texi: Document PDP-11 options.
16262 2002-01-10 Kazu Hirata <kazu@hxi.com>
16264 * config/h8300/h8300.h: Fix formatting.
16266 2002-01-10 Ira Ruben <ira@apple.com>
16268 Add __attribute__ ((deprecated)).
16269 * extend.texi: Document __attribute__ ((deprecated)).
16270 * invoke.texi: Document -Wno-deprecated-declarations.
16271 * testsuite/g++.dg/other/deprecated.C: New C++ test.
16272 * testsuite/gcc.dg/deprecated.c: New C test.
16273 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16274 (c_common_attribute_table): Add "deprecated" entry.
16275 (handle_deprecated_attribute): New function.
16276 * c-decl.c (deprecated_states): New enum.
16277 deprecated_state: State of "deprecated" handling.
16278 (start_decl): Set deprecated_state based on attributes.
16279 (grokdeclarator): Test for deprecated uses, propagate attribute.
16280 * c-typeck.c (build_component_ref): Test for deprecated fields.
16281 (build_external_ref): Test for deprecated primaries.
16282 * diagnostic.c (warn_deprecated_use) New function to issue
16283 warnings about __attribute__ ((depricated)) references.
16284 * flags.h (warn_deprecated_decl): Extern declared for
16285 -W[no-]deprecated-declarations option.
16286 * print-tree.c (print_node): Show deprecated flag status.
16287 * toplev.c (warn_deprecated_decl): Defined.
16288 (W_options): Added "deprecated-declaration".
16289 * toplev.h (warn_deprecated_use): Extern declared.
16290 * tree.h (struct tree_common): Define deprecated_flag.
16291 (TREE_DEPRECATED): New macro to access flag.
16292 * cp/call.c (build_call): Test for deprecated calls.
16293 * cp/class.c (add_implicitly_declared_members): Set global
16294 flag to tell grokdeclarator to not issue deprecated warnings.
16295 * cp/cp-tree.h: Add extern for adding_implicit_members.
16296 * cp/decl.c (deprecated_states): New enum.
16297 (start_decl): Set deprecated_state based on attributes.
16298 (grokdeclarator): Test for deprecated uses, propagate attribute.
16299 * cp/lex.c (do_identifier): Test for deprecated primaries.
16300 * cp/typeck.c (build_component_ref): Test for deprecated fields.
16302 2002-01-10 Ira Ruben <ira@apple.com>
16304 Fix to assign attributes to inline member functions.
16305 * cp/decl.c (start_method): Handle attrlist.
16307 2002-01-10 Kazu Hirata <kazu@hxi.com>
16309 * combine.c (expand_field_assignment): Use subreg_lsb().
16311 2002-01-10 David Edelsohn <edelsohn@gnu.org>
16313 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16314 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16315 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16316 Recurse for any operand of AND as long as constant is non-zero.
16318 2002-01-10 Kazu Hirata <kazu@hxi.com>
16320 * config/h8300/h8300.md: Remove constraints from expanders.
16322 2002-01-10 Kazu Hirata <kazu@hxi.com>
16324 * varasm.c: Fix formatting.
16325 * varray.c: Likewise.
16326 * vmsdbgout.c: Likewise.
16327 * xcoffout.c: Likewise.
16329 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
16331 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16332 update edge probabilities to match.
16334 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
16336 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16338 * doc/languages.texi, doc/sourcebuild.texi: New files.
16339 * doc/configfiles.texi: Make a subsubsection. Update.
16340 * doc/configterms.texi: Add @node. Remove warning that this isn't
16341 instructions for building GCC.
16342 * doc/makefile.texi: Make a subsection.
16343 * doc/gccint.texi: Update.
16345 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
16347 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16349 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
16351 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16353 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
16355 * optabs.c (expand_fix): Look for wider integer modes first.
16357 * i386.md (mov?f): Avoid the fake const double trick for medium
16359 (min?f*/max?f*): Prohibit memory operands for i387 variant.
16360 (fop_df_4): Disable for SSE compilation.
16362 2002-01-10 Graham Stott <grahams@redhat.com>
16364 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16365 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16367 2002-01-10 Richard Henderson <rth@redhat.com>
16369 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16371 2002-01-10 Richard Henderson <rth@redhat.com>
16373 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16374 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
16376 2002-01-10 Kazu Hirata <kazu@hxi.com>
16378 * combine.c (can_combine_p): Fix a comment typo.
16380 2002-01-09 Zack Weinberg <zack@codesourcery.com>
16382 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16383 empty list correctly. Change loop index $t to $f for
16384 consistency with rest of Makefile.
16386 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
16388 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16389 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16391 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16392 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16393 (altivec_init_builtins): Same.
16394 (altivec_expand_unop_builtin): Return NULL_RTX on error.
16395 (altivec_expand_binop_builtin): Same.
16396 (altivec_expand_ternop_builtin): Same.
16399 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16400 ("altivec_vctuxs"): Fix typo.
16401 ("altivec_vnmsubfp"): Same.
16402 ("altivec_dssall"): New.
16403 ("altivec_mfvscr"): New.
16404 ("altivec_dss"): New.
16405 ("altivec_lvsl"): New.
16406 ("altivec_lvsr"): New.
16407 ("altivec_dstt"): New.
16408 ("altivec_dstst"): New.
16409 ("altivec_dststt"): New.
16410 ("altivec_dst"): New.
16412 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16413 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16415 2002-01-09 Richard Henderson <rth@redhat.com>
16417 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16419 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
16421 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16423 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16425 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16427 2002-01-09 Kazu Hirata <kazu@hxi.com>
16429 * read-rtl.c: Fix formatting.
16430 * real.c: Likewise.
16431 * regclass.c: Likewise.
16432 * regrename.c: Likewise.
16433 * reg-stack.c: Likewise.
16434 * reload1.c: Likewise.
16435 * reload.c: Likewise.
16438 2002-01-09 Kazu Hirata <kazu@hxi.com>
16440 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16441 to extract items in the expr_list chain.
16443 2002-01-09 Richard Henderson <rth@redhat.com>
16445 * config/vax/vax.c (vax_rtx_cost): Never abort.
16447 * config/vax/vax.h (REAL_ARITHMETIC): Define.
16449 2002-01-09 Jan Hubicka <jh@suse.cz>
16451 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16453 2002-01-09 Richard Henderson <rth@redhat.com>
16455 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16456 Unify code from various alternatives.
16458 2002-01-09 Richard Henderson <rth@redhat.com>
16460 * regrename.c (copy_value): Ignore the copy if the source register
16461 is present in the value chain with a narrower mode.
16463 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16465 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16466 for the c4x target. Also improve layout.
16468 2002-01-09 Richard Henderson <rth@redhat.com>
16470 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16471 * config/m32r/m32r.md (and ior xor splitters): Swap operands
16472 to match insn patterns.
16474 2002-01-09 Richard Henderson <rth@redhat.com>
16476 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16477 (copyprop_hardreg_forward_1): Likewise.
16479 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
16481 * pa.md (decrement_and_branch_until_zero): Change predicate for
16482 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16484 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
16486 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16487 gets undefined. For Darwin.
16489 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16491 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16493 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16495 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16497 2002-01-08 Richard Henderson <rth@redhat.com>
16499 * regrename.c (copy_value): Ignore overlapping copies.
16501 2002-01-08 Richard Henderson <rth@redhat.com>
16503 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16504 as needed to avoid shared structure.
16506 2002-01-08 Kazu Hirata <kazu@hxi.com>
16508 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16511 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16513 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16514 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16515 documentation of obsolete macros.
16516 * system.h: Poison these macros.
16517 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16518 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16519 config/c4x/c4x.h, config/clipper/clipper.h,
16520 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16521 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16522 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16523 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16524 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16525 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16526 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16527 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16528 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16529 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16530 config/sparc/sparc.h, config/stormy16/stormy16.h,
16531 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16532 definitions and commented out definitions of obsolete macros.
16533 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16534 of MAX_INT_TYPE_SIZE.
16536 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16538 * config/s390/s390.c (s390_preferred_reload_class): Never
16539 return ADDR_REGS if it isn't a subset of the given class.
16540 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16541 FP_REGS, but all superclasses as well.
16543 * config/s390/s390.c (s390_function_profiler): Fix thinko.
16545 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16546 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16547 must not be a const_int.
16549 2002-01-08 Richard Henderson <rth@redhat.com>
16551 * Makefile.in (toplev.o): Depend on options.h.
16552 (gcc.o): Depend on specs.h.
16554 2002-01-08 Jakub Jelinek <jakub@redhat.com>
16556 * expr.c (store_expr): Convert VOIDmode constants back to target's
16559 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16561 * doc/invoke.texi: Markup gcc as @command. Refer to
16562 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16563 of http://gcc.gnu.org/thanks.html.
16565 2002-01-08 Dale Johannesen <dalej@apple.com>
16567 * config/rs6000/rs6000.md: Add missing int register
16568 target case to movdf_low.
16570 2002-01-08 Zack Weinberg <zack@codesourcery.com>
16572 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16573 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
16574 (cppinit.o): Depend on except.h.
16575 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16576 s-specs): New rules.
16578 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16579 Don't create specs.h/options.h/gencheck.h here. Remove
16580 unnecessary variable settings from last argument of AC_OUTPUT.
16581 * config.in, configure: Regenerate.
16582 * intl.c: Hardcode package name as "gcc".
16584 * cppinit.c: Include except.h.
16585 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16587 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16588 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16589 (!)USING_SJLJ_EXCEPTIONS.
16590 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16592 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16594 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16595 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16596 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16597 documentation of obsolete macros.
16598 * system.h: Poison these macros.
16599 * config/d30v/d30v.h, config/ns32k/encore.h,
16600 config/stormy16/stormy16.h: Remove definitions and commented out
16601 definitions of obsolete macros.
16603 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
16605 * objc/objc-act.c (handle_class_ref): Mark the declaration of
16606 %sobjc_class_ref_%s as used - to prevent unwanted compiler
16609 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16611 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16612 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16613 to insn adjusting stack/frame pointer.
16614 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16615 accept operands that cause the insn to be non-splittable.
16617 2002-01-08 Graham Stott <grahams@redhat.com>
16619 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16620 (C_TYPE_FIELDS_VOLATILE): Likewise.
16621 (C_TYPE_BEING_DEFINED): Likewise.
16622 (C_IS_RESERVED_WORD): Likewise.
16623 (C_TYPE_VARIABLE_SIZE): Likewise.
16624 (C_DECL_VARIABLE_SIZE): Likewise.
16625 (C_MISSING_PROTOTYPE_WARNED): Likewise.
16626 (C_SET_EXP_ORIGINAL_CODE): Likewise.
16627 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16629 (C_DECL_ANTICIPATED): Likewise.
16630 (c_build_type_variant): Add parenthesis.
16632 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16634 * gcc.c (option_map): Remove --version.
16635 (process_command): Handle -fversion following the GNU Coding
16636 Standards. Partially addresses PR other/704.
16638 2002-01-08 Graham Stott <grahams@redhat.com>
16640 * combine.c (combine_instructions): Fix typo.
16642 2002-01-08 Graham Stott <grahams@redhat.com>
16644 * debug.h: Use "tree" and "rtx" throughout.
16646 * debug.c: Likewise.
16648 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
16650 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16651 constant pool, use the pool's version of the symbol instead.
16653 2002-01-07 Richard Henderson <rth@redhat.com>
16655 * regrename.c (find_oldest_value_reg): Ignore the value chain if
16656 the original register was copied in a mode with a fewer number of
16657 hard registers than the desired mode.
16658 (copyprop_hardreg_forward_1): Likewise.
16659 (debug_value_data): Fix loop test.
16660 * toplev.c (parse_options_and_default_flags): Reenable
16661 -fcprop-registers at -O1.
16663 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16665 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16666 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16668 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16671 * config/rs6000/rs6000.md: Add altivec predicate patterns.
16673 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
16675 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16676 (pa_output_function_prologue): Output local label at the beginning of
16677 the prologue when profiling.
16678 (hppa_profile_hook): Use the local label rather than the function label.
16679 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16681 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16683 * config/rs6000/rs6000.c (print_operand): Remove extra space.
16684 (altivec_expand_unop_builtin): Fix thinko.
16685 (altivec_expand_binop_builtin): Same.
16686 (altivec_expand_ternop_builtin): Same.
16687 (altivec_expand_builtin): Same.
16689 2002-01-07 Richard Henderson <rth@redhat.com>
16691 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16693 2002-01-07 Jason Merrill <jason@redhat.com>
16695 * unwind-dw2.c (execute_cfa_program): Use < again.
16697 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16699 * predict.c (combine_predictions_for_insn): Avoid division by zero.
16701 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16703 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16704 Don't allow -1 - x -> ~x simplifications in the first pass.
16706 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16708 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16710 (altivec_expand_binop_builtin): Same.
16711 (altivec_expand_unop_builtin): Same.
16712 (print_operand): Fix typo.
16713 (bdesc_1arg): Add vupk* variants.
16715 * rs6000.h (rs6000_builtins): Add vupk* enums.
16717 * rs6000.md: Add altivec_vupk* variants.
16719 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
16721 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16722 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16723 and last update dates.
16725 2002-01-07 Janis Johnson <janis187@us.ibm.com>
16727 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16729 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
16731 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16732 * config/avr/avr.h (CPP_SPEC): Likewise.
16733 (LINK_SPEC): Likewise.
16734 (CRT_BINUTILS_SPECS): Likewise.
16735 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16736 * doc/invoke.texi (AVR Options): Document them.
16738 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
16740 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16743 2002-01-07 Graham Stott <grahams@redhat.com>
16745 * config/i386/i386.h: Update copyright date.
16746 (HALF_PIC_PTR): Add parenthesis.
16747 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16748 (CONSTANT_ALIGNMENT): Add parenthesis.
16749 (DATA_ALIGNMENT): Likewise.
16750 (LOCAL_ALIGNMENT): Likewise.
16751 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16752 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16753 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16754 (HARD_REGNO_NREGS): Add paranethesis.
16755 (VALID_SSE_REG_MODE): Whitespace.
16756 (VALID_MMX_REG_MODE): Whitespace.
16757 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16758 (ix86_hard_regno_mode_ok): Add parenthesis.
16759 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16760 (RETURN_IN_MEMORY): Whitespace.
16761 (N_REG_CLASSES): Add parenthesis.
16762 (INTEGER_CLASS_P): Add parenthesis and wrap.
16763 (FLOAT_CLASS_P): Likewise.
16764 (SSE_CLASS_P): Likewise.
16765 (MMX_CLASS_P): Likewise.
16766 (MAYBE_INTEGER_CLASS_P): Likewise.
16767 (MAYBE_FLOAT_CLASS_P): Likewise.
16768 (MAYBE_SSE_CLASS_P): Likewise.
16769 (MAYBE_MMX_CLASS_P): Likewise.
16770 (Q_CLASS_P): Likewise.
16771 (GENERAL_REGNO_P): Uppercase macro parameter.
16772 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16773 (FP_REGNO_P): Likewise.
16774 (ANY_FP_REGNO_P): Uppercase macro parameter.
16775 (SSE_REGNO_P): Likewise.
16776 (SSE_REGNO): Likewise.
16777 (SSE_REG_P): Likewise.
16778 (SSE_FLOAT_MODE_P): Likewise.
16779 (MMX_REGNO_P): Likewise.
16780 (MMX_REG_P):Likewise.
16781 (STACK_REG_P): Likewise.
16782 (NON_STACK_REG_P): Likewise.
16783 (STACK_TOP_P): Likewise.
16784 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16785 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16786 (SECONDARY_MEMORY_NEEDED): Likewise.
16787 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16788 (MD_ASM_CLOBBERS): Whitespace and wrap.
16789 (MUST_PASS_IN_STACK): Whitespace and wrap.
16790 (RETURN_POPS_ARGS): Add parenthesis.
16791 (INIT_CUMULATIVE_ARGS): Likewise.
16792 (FUNCTION_ARG): Likewise.
16793 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16794 (SETUP_INCOMING_VARARGS): Likewise.
16795 (BUILD_VA_LIST_TYPE): Add parenthesis.
16796 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16798 (EXPAND_BUILTIN_VA_ARG): Likewise.
16799 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16800 (INITIALIZE_TRAMPOLINE): Add parenthesis.
16801 (INITIAL_ELIMINATION_OFFSET): Likewise.
16802 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16803 (REGNO_OK_FOR_BASE_P): Likewise.
16804 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16805 (REGNO_OK_FOR_DIREG_P): Likewise.
16806 (REG_OK_FOR_INDEX_P): Whitespace.
16807 (REG_OK_FOR_BASE_P): Whitespace.
16808 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16810 (FIND_BASE_TERM): Fix typo.
16811 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
16812 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16813 (SYMBOLIC_CONST; Whitespace.
16814 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
16815 (ENCODE_SECTION_INFO): Whitespace.
16816 (FINALIZE_PIC): Remove do { ... } while (0).
16817 (PROMOTE_MODE): Wrap in do { ... } while (0).
16818 (CONST_COSTS): Whitespace.
16819 (RTX_COSTS): Add paramethesis, whitespace and wrap.
16820 (REGISTER_MOVE_COST): Add parenthesis.
16821 (MEMORY_MOVE_COST): Likewise.
16822 (EXTRA_CC_MODES): Whitespace.
16823 (SELECT_CC_MODE): Add parenthesis and whitespace.
16824 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16825 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16826 (ASM_OUTPUT_LABEL): Add paramethesis.
16827 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16828 (ASM_OUTPUT_REG_POP): Likewise.
16829 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16830 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16832 * config/i386/i386.c: Update copyright.
16833 (CHECK_STACK_LIMIT): Add parenthesis.
16834 (AT_BP): Uppercase macro parameter.
16835 (x86_64_int_parameter_registers): Constify.
16836 (x86_64_int_return_registers): Likewise.
16837 (ix86_compare_op0): Use rtx.
16838 (construct_container): Constify INTREG parameter.
16839 (function_arg): Use rtx.
16841 * diagnostic.h: Update copyright date.
16842 (output_buffer_state): Add parenthesis.
16843 (output_buffer_format_args): Likewise.
16845 * combine.c (combine_instructions): Replace XEXP (links, 0)
16848 2002-01-06 H.J. Lu <hjl@gnu.org>
16850 * cfgcleanup.c (thread_jump): Fix 2 typos.
16852 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16854 * config.gcc: Add support for --enable-altivec.
16856 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16858 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16860 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16862 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16863 __objc_class_name_*.
16865 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16867 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16869 2002-01-06 Richard Henderson <rth@redhat.com>
16871 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16872 nop them out. Increment label reference count for REG_LABEL.
16873 (fill_slots_from_thread): Frob label reference count around
16874 delete_related_insns.
16876 2002-01-05 Richard Henderson <rth@redhat.com>
16878 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16881 2002-01-05 Richard Henderson <rth@redhat.com>
16883 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16884 * integrate.c (output_inline_function): Likewise.
16885 * toplev.c (rest_of_compilation): Do it here instead. Move call
16886 to remove_unnecessary_notes after emitting abstract instance.
16887 Force an emitted nested function to have its parent emited as well.
16888 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16890 (rtl_for_decl_location): Do not look at reload data structures
16891 before reload has run.
16893 2002-01-05 Kazu Hirata <kazu@hxi.com>
16895 * cse.c: Fix formatting.
16896 * dwarf2asm.c: Likewise.
16897 * dwarf2out.c: Likewise.
16898 * explow.c: Likewise.
16899 * expmed.c: Likewise.
16900 * function.c: Likewise.
16901 * gcov.c: Likewise.
16902 * gencheck.c: Likewise.
16903 * genrecog.c: Likewise.
16904 * ggc-common.c: Likewise.
16905 * ggc-page.c: Likewise.
16906 * global.c: Likewise.
16908 2002-01-05 Kazu Hirata <kazu@hxi.com>
16910 * combine.c: Fix formatting.
16912 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
16915 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16917 2002-01-05 David Edelsohn <edelsohn@gnu.org>
16919 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16920 as 1 for __powerpc64__ as well.
16922 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16924 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16927 2002-01-05 Daniel Berlin <dan@dberlin.org>
16929 * lcm.c: Revert change, due to performance regression it causes on
16930 SPEC because it's slightly more conservative (sigh, I hate
16933 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
16935 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16937 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
16939 * doc/cppinternals.texi: Update.
16941 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16943 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16944 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16946 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16947 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16948 kludge for pre-october-14th mmix versions to handle new-found bug
16949 with PUSHJ/PUSHGO and the register stack.
16950 * config/mmix/mmix.h (struct machine_function): Rename member
16951 has_call_value_without_parameters to has_call_without_parameters.
16952 All referers changed.
16953 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16954 TARGET_MASK_BRANCH_PREDICT): New macros.
16955 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16956 -mno-reg-stack-fill-bug-workaround.
16957 * config/mmix/mmix.md ("call"): Set struct machine member
16958 has_call_without_parameters.
16960 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16962 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16964 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16966 * cfgcleanup.c: Include tm_p.h
16967 (mark_effect): Fix handling of hard register; fix handling of SET
16969 2002-01-04 Kazu Hirata <kazu@hxi.com>
16971 * config/h8300/h8300.md (anonymous patterns): Check that
16972 operands are registers before using REGNO on them.
16974 2002-01-03 Roland McGrath <roland@frob.com>
16976 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16978 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16980 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16981 * c-common.h (genrtl_expr_stmt_value): Likewise.
16982 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16983 (expand_expr_stmt_value): Add maybe_last argument.
16984 Don't warn about statement with no effect if it is the last statement
16985 in expression statement.
16986 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16987 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16988 expand_expr_stmt_value.
16989 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16990 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16991 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16992 as maybe_last to expand_expr_stmt_value.
16994 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16996 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16997 be passed in, do not build it.
16998 (c_begin_if_stmt): New function.
16999 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
17000 * c-common.h (c_expand_start_cond): Update prototype.
17001 (c_begin_if_stmt): Prototype new function.
17002 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
17003 * c-parse.in (if_prefix): Use c_begin_if_stmt,
17004 c_begin_while_stmt and c_finish_while_stmt_cond.
17006 2002-01-04 William Cohen <wcohen@redhat.com>
17008 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
17009 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17010 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17011 * config/pa/som.h (ASM_FILE_START): Likewise.
17013 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
17015 * lcm.c: Include df.h.
17016 Add available_transfer_function prototype.
17017 (compute_available): Rework to use iterative dataflow framework.
17018 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
17019 with bb_info in df.h
17020 (available_transfer_function): New function.
17022 * Makefile.in (lcm.o): add df.h to dependencies.
17024 2002-01-04 Richard Henderson <rth@redhat.com>
17026 * config/alpha/alpha.c (some_operand): Accept HIGH.
17027 (input_operand): Likewise; accept simple references to globals.
17028 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
17029 (alpha_const_double_ok_for_letter_p): Likewise.
17030 (alpha_extra_constraint): Likewise.
17031 (alpha_preferred_reload_class): Likewise. Do not force
17032 symbolic constants to memory.
17033 (alpha_legitimate_address_p): Accept simple references
17034 to small_symbolic_operand.
17035 (alpha_legitimize_address): New arg scratch. Be prepared to be
17036 called when no_new_pseudos. Emit simple symbolic references.
17037 Split integers into low, high, and rest.
17038 (alpha_expand_mov): Use alpha_legitimize_address.
17039 (some_small_symbolic_mem_operand): New.
17040 (split_small_symbolic_mem_operand): New.
17041 * config/alpha/alpha-protos.h: Update.
17042 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
17043 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
17044 (EXTRA_CONSTRAINT): Likewise.
17045 (PREFERRED_RELOAD_CLASS): Likewise.
17046 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
17047 (PREDICATE_CODES): Update.
17048 * config/alpha/alpha.md: New post-reload splitters to convert
17049 simplfied symbolic operands to the form that references $29.
17050 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
17051 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
17053 2002-01-03 Richard Henderson <rth@redhat.com>
17055 * local-alloc.c (function_invariant_p): Update commentary.
17057 2002-01-04 H.J. Lu <hjl@gnu.org>
17059 * toplev.c (rest_of_compilation): Fix a typo when calling
17062 2002-01-03 Kazu Hirata <kazu@hxi.com>
17064 * c-common.c: Fix formatting.
17065 * diagnostic.c: Likewise.
17066 * doloop.c: Likewise.
17067 * dwarf2out.c: Likewise.
17069 2002-01-03 Kazu Hirata <kazu@hxi.com>
17071 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
17072 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
17074 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
17076 * cpperror.c: Update comments and copyright.
17077 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
17078 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
17080 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
17082 * collect2.c (main): Use strcmp when testing for "-shared".
17084 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
17086 * cppmacro.c: Don't include intl.h. Update comments.
17087 (new_number_token): Allocate enough buffer for 64-bit unsigned
17088 integers; update prototype.
17089 * cppmain.c: Update comments.
17091 2002-01-03 William Cohen <wcohen@redhat.com>
17093 * function.h (struct function): Add profile.
17094 (current_function_profile): New.
17095 doc/extend.texi: Update documentation.
17096 * final.c (final_start_function): Use current_function_profile
17097 instead of profile_flag.
17098 (profile_after_prologue): Likewise.
17099 * function.c (expand_function_start): Likewise.
17100 (expand_function_start): Likewise.
17101 * config/alpha/alpha.c (direct_call_operand):
17102 (alpha_does_function_need_gp): Likewise.
17103 (alpha_expand_prologue): Likewise.
17104 * config/arm/arm.c (arm_expand_prologue): Likewise.
17105 thumb_expand_prologue: Likewise.
17106 * config/d30v/d30v.c (d30v_stack_info): Likewise.
17107 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
17108 (fr30_expand_prologue): Likewise.
17109 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
17110 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
17111 * config/i386/i386.h (FINALIZE_PIC): Likewise.
17112 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
17113 * config/i960/i960.c (i960_output_function_prologue): Likewise.
17114 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
17115 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
17116 (m32r_expand_prologue): Likewise.
17117 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
17118 (m88k_expand_prologue): Likewise.
17119 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
17120 * config/mips/mips.c (compute_frame_size): Likewise.
17121 (mips_expand_prologue): Likewise.
17122 (mips_can_use_return_insn): Likewise.
17123 * config/pa/elf.h (ASM_FILE_START): Likewise.
17124 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17125 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17126 * config/pa/som.h (ASM_FILE_START): Likewise.
17127 * config/romp/romp.c (romp_using_r14): Likewise.
17128 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
17129 (rs6000_stack_info): Likewise.
17130 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17131 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
17132 * config/v850/v850.c (compute_register_save_size): Likewise.
17134 2002-01-03 Jakub Jelinek <jakub@redhat.com>
17136 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
17137 gen_lowpart_common fails, use gen_lowpart_SUBREG.
17139 2002-01-03 Turly O'Connor <turly@apple.com>
17141 * darwin.c (machopic_output_possible_stub_label): Don't generate
17142 stub routines for pseudo-stubs which we've just defined.
17144 2002-01-03 Kazu Hirata <kazu@hxi.com>
17146 * builtins.c: Fix formatting.
17147 * c-typeck.c: Likewise.
17148 * combine.c: Likewise.
17149 * expr.c: Likewise.
17150 * loop.c: Likewise.
17152 2002-01-03 Andreas Schwab <schwab@suse.de>
17154 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
17155 and return true if _cpp_push_next_buffer pushed a new include
17157 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
17158 _cpp_pop_file_buffer did not push a new file.
17159 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
17161 2002-01-02 Eric Christopher <echristo@redhat.com>
17163 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
17164 FIND_REG_INC_NOTE call. Update copyright.
17165 * loop.c (canonicalize_condition): Ditto.
17166 * reorg.c (delete_scheduled_jump): Ditto.
17168 2002-01-03 Kazu Hirata <kazu@hxi.com>
17170 * gcse.c: Fix formatting.
17172 2002-01-03 Graham Stott <grahams@redhat.com>
17174 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
17175 forward defs for struct tags rtx_def, union_tree, rtvec_def
17176 also output corresponding typedefs for rtx, tree, and rtvec.
17178 * system.h: Move forward defs for struct tags rtx_def, union_tree,
17179 rtvec_def along with corresponding typedefs for rtx, tree, and
17180 rtvec to config.h, hconfig.h, tconfig.h.
17182 2002-01-03 Graham Stott <grahams@redhat.com>
17184 * tree.h: Update copyright date.
17185 (IS_EXPR_CODE_CLASS): Add parenthesis.
17186 (TREE_SET_CODE): Add whitespace.
17187 (TREE_CHECK): Add parenthesis.
17188 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
17189 (CST_OR_CONSTRUCTOR_CHECK):
17190 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
17191 (TREE_SYMBOL_REFERENCED): Whitespace.
17192 (INT_CST_LT): Likewise.
17193 (INT_CST_LT_UNSIGNED): Likewise.
17194 (tree_real_cst): Unwrap comment.
17195 (tree_string): Likewise.
17196 (tree_complex): Likewise.
17197 (IDENTIFIER_POINTER): correct cast.
17198 (SAVE_EXPR_CONTEXT): Whitespace.
17199 (EXPR_WFL_FILENAME_NODE): Likewise.
17200 (EXPR_WFL_FILENAME): Remove parenthesis.
17201 (DECL_ORIGIN): Add parenthesis.
17202 (DECL_FROM_INLINE): Use NULL_TREE.
17203 (build_int_2): Whitespace.
17204 (build_type_variant): Add parenthesis.
17206 * gcc/jcf-parse.c: Update copyright date.
17207 (yyparse): Constify resource_filename.
17209 2002-01-03 Graham Stott <grahams@redhat.com>
17211 * rtl.h: Update copyright date.
17212 (RTL_CHECK1): Wrap long line.
17213 (RTL_CHECK2): Likewise.
17214 (RTL_CHECKC1): Wrap long line and whitespace.
17215 (RTL_CHECKC2): Likewise.
17216 (XWINT): Whitespace.
17222 (XBITMAP): Likewise.
17224 (XBBDEF): Likewise.
17226 (X0WINT): Likewise.
17228 (X0UINT): Likewise.
17232 (X0MODE): Likewise.
17233 (X0BITMAP): Likewise.
17234 (X0TREE): Likewise.
17235 (X0BBDEF): Likewise.
17236 (X0ADVFLAGS): Likewise.
17237 (X0CSELIB): Likewise.
17238 (X0MEMATTR): Likewise.
17239 (XCWINT): Likewise.
17241 (XCUINT): Likewise.
17245 (XCMODE): Likewise.
17246 (XCBITMAP): Likewise.
17247 (XCTREE): Likewise.
17248 (XCBBDEF): Likewise.
17249 (XCADVFLAGS): Likewise.
17250 (XCCSELIB): Likewise.
17251 (XC2EXP): Likewise.
17252 (INSN_UID): Likewise.
17253 (PREV_INSN): Likewise.
17254 (PATTERN): Likewise.
17255 (INSN_CODE): Likewise.
17256 (PUT_REG_NOTE_KIND): Likewise.
17257 (CODE_LABEL_NUMBER): Likewise.
17258 (NOTE_SOURCE_FILE): Likewise.
17259 (NOTE_BLOCK): Likewise.
17260 (NOTE_EH_HANDLER): Likewise.
17261 (NOTE_RANGE_INFO): Likewise.
17262 (NOTE_LIVE_INFO): Likewise.
17263 (NOTE_BASIC_BLOCK): Likewise.
17264 (NOTE_EXPECTED_VALUE): Likewise.
17265 (NOTE_LINE_NUMBER): Likewise.
17266 (LABEL_NAME): Likewise.
17267 (LABEL_NUSES): Likewise.
17268 (LABEL_ALTERNATE_NAME): Likewise.
17269 (ADDRESSOF_DECL): Likewise.
17270 (JUMP_LABEL): Likewise.
17271 (LABEL_NEXTREF): Likewise.
17273 (ORIGINAL_REGNO: Likewise.
17274 (HARD_REGISTER_NUM_P): Add parenthesis.
17275 (SUBREG_REG): Whitespace.
17276 (SUBREG_BYTE): Likewise.
17277 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17278 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17279 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17280 (ASM_OPERANDS_INPUT_VEC): Likewise.
17281 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17282 (ASM_OPERANDS_INPUT): Likewise.
17283 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17284 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17285 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17286 (ASM_OPERANDS_INPUT_MODE): Likewise.
17287 (ASM_OPERANDS_SOURCE_FILE): Likewise.
17288 (ASM_OPERANDS_SOURCE_LINE): Likewise.
17289 (MEM_SET_IN_STRUCT_P): Minor reformat.
17290 (TRAP_CONDITION): Whitespace.
17291 (TRAP_CODE): Likewise.
17292 (COND_EXEC_TEST): Likewise.
17293 (COND_EXEC_CODE): Likewise.
17294 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17295 (PHI_NODE_P): Add parenthesis.
17296 (plus_constant): Whitespace and add parenthesis.
17298 2002-01-03 Kazu Hirata <kazu@hxi.com>
17300 * config/avr/avr.c: Fix comment typos.
17301 * config/c4x/c4x.md: Likewise.
17302 * config/dsp16xx/dsp16xx.h: Likewise.
17303 * config/dsp16xx/dsp16xx.md: Likewise.
17304 * config/i386/i386.md: Likewise.
17305 * config/ia64/ia64.c: Likewise.
17306 * config/m32r/m32r.h: Likewise.
17307 * config/m68hc11/m68hc11.md: Likewise.
17308 * config/mmix/mmix.c: Likewise.
17309 * config/mn10200/mn10200.c: Likewise.
17310 * config/romp/romp.c: Likewise.
17311 * config/sh/sh.c: Likewise.
17312 * config/stormy16/stormy16.c: Likewise.
17313 * config/stormy16/stormy16.h: Likewise.
17314 * config/stormy16/stormy16.md: Likewise.
17316 2002-01-03 Graham Stott <grahams@redhat.com>
17318 * loop.h: Update copyright date.
17319 (LOOP_MOVABLES): Fix typo.
17320 (LOOP_REGS): Likewise.
17321 (LOOP_IVS): Likewise.
17323 2002-01-03 Graham Stott <grahams@redhat.com>
17325 * cppinit.c: Update copyright date.
17326 Don't include output.h
17327 * Makefile.in: Update copyright date.
17330 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
17333 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17334 (-pthread) Add to RS/6000 options.
17336 2002-01-02 Kazu Hirata <kazu@hxi.com>
17338 * except.c: Fix comment typos.
17339 * loop.c: Likewise.
17340 * varasm.c: Likewise.
17341 * doc/tm.texi: Fix a typo.
17343 2002-01-02 Jakub Jelinek <jakub@redhat.com>
17345 * c-typeck.c (output_init_element): Allow initializing static storage
17346 duration objects with compound literals.
17348 2002-01-02 Richard Henderson <rth@redhat.com>
17350 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17353 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17355 * gcc.c (default_compilers): Const-ify.
17356 * mips-tdump.c (stab_names): Likewise.
17357 * mips-tfile.c (map_coff_types, map_coff_storage,
17358 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17359 pseudo_ops_t, pseudo_ops): Likewise.
17360 * protoize.c (default_include): Likewise
17362 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17363 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17364 Add array size in declaration.
17365 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17366 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17367 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17368 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17369 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17370 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17371 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17372 emtens, make_nan): Const-ify.
17373 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17374 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17376 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
17378 * config.gcc (ia64-*-*): Set extra_headers.
17379 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
17380 * config/alpha/t-osf: Remove.
17381 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17383 2002-01-02 David Edelsohn <edelsohn@gnu.org>
17385 * config/rs6000/t-aix43: Revert previous change.
17387 2002-01-02 Jason Merrill <jason@redhat.com>
17389 * c-decl.c (c_expand_body): Call outlining_inline_function when
17390 emitting an inline function out of line.
17392 2002-01-02 Richard Henderson <rth@redhat.com>
17394 * dwarf2out.c (limbo_die_node): Add created_for member.
17395 (new_die): New argument created_for. Update all callers.
17396 (mark_limbo_die_list): New.
17397 (dwarf2out_init): Register limbo_die_list as a root.
17398 (dwarf2out_finish): Force insert limbo dies into their function
17401 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
17404 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17406 2002-01-02 Kazu Hirata <kazu@hxi.com>
17408 * config/h8300/fixunssfsi.c: Update copyright.
17411 * config/h8300/h8300.c: Update copyright.
17412 Eliminate warnings.
17414 2002-01-02 Kazu Hirata <kazu@hxi.com>
17416 * config/romp/romp.c: Fix comment formatting.
17417 * config/romp/romp.h: Likewise.
17418 * config/romp/romp.md: Likewise.
17419 * config/s390/s390.c: Likewise.
17420 * config/stormy16/stormy16.c: Likewise.
17421 * config/stormy16/stormy16.h: Likewise.
17423 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
17425 * c-common.h (genrtl_expr_stmt_value): Declare.
17426 * c-semantics.c (genrtl_goto_stmt): Redirect to...
17427 (genrtl_goto_stmt_value): ... this new function. Pass new
17428 argument down to expand_expr_stmt_value, taking
17429 TREE_ADDRESSABLE into account.
17430 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17431 STMT_EXPR as addressable, i.e., one whose result we want.
17432 * expr.c (expand_expr): Don't save expression statement value
17433 of labeled_blocks or loop_exprs.
17434 * stmt.c (expand_expr_stmt): Redirect to...
17435 (expand_expr_stmt_value): ... this new function. Use new
17436 argument to tell whether to save expression value.
17437 (expand_end_stmt_expr): Reset last_expr_type and
17438 last_expr_value if we don't have either.
17439 * tree-inline.c (declare_return_variable): Mark its use
17440 statement as addressable.
17441 * tree.h: Document new use of TREE_ADDRESSABLE.
17442 (expand_expr_stmt_value): Declare.
17444 2002-01-01 Tom Rix <trix@redhat.com>
17446 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17447 rs6000_emit_allocate_stack.
17449 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
17451 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17452 ${srcdir}/ginclude/ to every entry in extra_headers.
17453 * configure: Regenerate.
17454 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17455 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17456 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17457 * ginclude/proto.h: Rename to config/convex/proto.h.
17459 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17461 * attribs.c (handle_vector_size_attribute): Use host_integerp
17462 and tree_int_cst; remove warnings.
17463 * caller-save.c (insert_restore): Add cast to get rid of warning.
17464 (insert_save): Likewise.
17465 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17466 * regmove.c (find_matches): Add temporary var to kill a warning.
17468 2002-01-01 Douglas B Rupp <rupp@gnat.com>
17470 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17471 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17472 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17473 (vms-dwarf2eh.o): Add Makefile rule.
17474 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17475 * config/alpha/vms-dwarf2eh.asm: New file.
17477 * gcc.c (delete_if_ordinary): Delete all versions.
17479 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
17481 * config/mmix/mmix.md: Update FIXME to not mention
17483 (MMIX_rJ_REGNUM): New define_constants constant.
17484 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17485 "*movdicc_real"): Adjust contraints formatting.
17486 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17487 for branch prediction.
17488 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17490 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17491 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17492 number. Delete related FIXMEs.
17493 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17494 from number to MMIX_rJ_REGNUM.
17495 (TARGET_MASK_BRANCH_PREDICT): New.
17496 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17497 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
17498 value. Add -mbranch-predict and -mno-branch-predict.
17499 (TARGET_VERSION): Drop date.
17500 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17501 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17502 for finding out global symbols.
17503 (mmix_asm_output_labelref): Revert condition for global symbol.
17504 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17505 (mmix_print_operand_punct_valid_p): A '+' is valid.
17507 See ChangeLog.6 for earlier changes.