1 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
4 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
5 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
6 (TARGET_VERSION_CPU): Define according to the
8 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
10 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
12 (LINK_DEFAULT_CPU_EMUL): Define according to the
14 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
15 (SUBTARGET_LINK_SPEC): Define.
16 (LINK_SPEC): Use SH_LINK_SPEC.
18 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
19 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
20 and TARGET_SHMEDIA64 which abort, for now.
21 * config/sh/t-netbsd-sh5: New file.
22 * config/sh/t-netbsd-sh5-32: New file.
23 * config/sh/t-netbsd-sh5-64: New file.
25 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
26 Richard Henderson <rth@redhat.com>
28 * config/alpha/alpha.c (reg_or_const_int_operand): New.
29 (some_operand, input_operand): Accept CONST_VECTOR.
30 (alpha_extra_constraint): Add 'W'.
31 (alpha_expand_zap_mask): New.
32 (alpha_expand_builtin_vector_binop): New.
33 (enum alpha_builtin): New.
34 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
35 (alpha_init_builtins, alpha_expand_builtin): New.
36 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
37 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
38 (PREDICATE_CODES): Update.
39 * config/alpha/alpha-protos.h: Update.
40 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
41 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
42 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
43 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
44 (movv2si, movv2si_fix, movv2si_nofix): New.
45 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
46 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
47 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
48 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
49 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
50 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
51 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
52 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
53 builtin_unpkbw, unpkbw): New.
54 * doc/extend.texi (Alpha Built-in Functions): New.
56 2002-06-03 Richard Henderson <rth@redhat.com>
58 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
59 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
61 2002-06-03 Richard Henderson <rth@redhat.com>
63 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
65 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
66 (const0_operand): New.
67 (reg_or_fp0_operand, fp0_operand): Remove.
68 * config/alpha/alpha.h (PREDICATE_CODES): Update.
69 * config/alpha/alpha-protos.h: Update.
70 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
71 and fp0_operand with reg_or_0_operand and const0_operand.
73 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
75 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
77 2002-06-03 Roger Sayle <roger@eyesopen.com>
79 * gcse.c (cprop_jump): Use single_set to get the pattern
80 from the setcc argument.
82 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
84 * diagnostic.h (diagnostic_count): Move from output_buffer to
86 (diagnostic_kind_count): Adjust definition.
88 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
90 * except.c (except.c): Do not rebuild CFG.
91 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
94 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
96 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
97 * toplev.c: Include cfglahout.h
98 * Makefile.in (toplev.c): Add dependnecy.
100 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
102 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
103 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
104 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
106 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
108 * config/ns32k/netbsd.h: Update copyright years.
109 (TARGET_OS_CPP_BUILTINS): Define.
110 (CPP_PREDEFINES): Remove.
111 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
112 (TARGET_CPU_CPP_BUILTINS): Define.
114 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
116 * emit-rtl.c: Likewise.
117 * errors.h: Likewise.
118 * except.c: Likewise.
119 * explow.c: Likewise.
120 * expmed.c: Likewise.
124 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
126 * config/h8300/elf.h: Fix formatting.
127 * config/h8300/rtems.h: Likewise.
129 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
131 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
133 2002-06-02 Tom Tromey <tromey@redhat.com>
135 * fixinc/fixincl.x: Rebuilt.
136 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
138 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
141 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
142 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
146 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
148 * final.c (final): Allow notes to not have computed addresses;
149 kill no longer needed STACK_REGS ifdef.
151 2002-06-02 Richard Henderson <rth@redhat.com>
153 * gcse.c (bypass_conditional_jumps): Fix typo last change.
155 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
157 * loop.c (emit_prefetch_instructions): Properly place the address
160 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
162 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
163 (set_block_for_insn): Turn into macro.
164 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
165 * cfglayout.c (insn_scopes): Kill.
166 (scope_to_insns_initialize): Do not use insn_scopes.
167 (scope_to_insns_finalize): Likewise.
168 (duplicate_insn_chain): Likewise.
169 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
170 * cfgrtl.c (basic_block_for_insn): Kill.
171 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
172 (create_basic_block_structure): Use reorder_insns.
173 (compute_bb_for_insn): Do not use basic_block_for_insn.
174 (merge_blocks_nomove): Likewise.
175 (update_bb_for_insn): Likewise.
176 (verify_flow_info): Likewise.
177 (set_block_for_insn): Kill.
178 * combine.c (try_combine): Update gen_rtx_INSN call.
179 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
180 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
182 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
183 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
185 (emit_insns_after): Simplify.
186 (emit_copy_of_insn_after): Copy scope.
187 * final.c (final_start_function): Lower scopes.
188 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
189 * integrate.c (copy_insn_list): Cope scopes.
190 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
191 * loop.c (loop_optimize): Do not care block notes.
192 * print-rtl.c (print_rtx): Print BB.
193 * recog.c (apply_change_group): Simplify.
194 * rtl.c (copy_rtx): Handle 'B'.
195 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
196 * rtl.h (Field accessors): Update indexes.
197 * sched-ebb.c (schedule_ebbs): Do not lower notes.
198 * sched-rgn.c (schedule_insns): Likewise.
199 * toplev.c (rest_of_compilation): Lower notes.
200 * unroll.c (unroll_loop): Do not care scoping notes.
201 (copy_loop_body): Copy scopes.
203 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
206 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
208 * rtems.h: Similarly.
209 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
210 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
211 (TARGET_CPU_CPP_BUILTINS): Use.
213 2002-06-02 Richard Henderson <rth@redhat.com>
215 * alias.c: Include target.h.
216 (mark_constant_function): Use targetm.binds_local_p instead
217 of checking TREE_PUBLIC ourselves.
218 * Makefile.in (alias.o): Add TARGET_H.
220 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
222 * c-lex.c: Update copyright and file description.
224 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
226 * config/fr30/fr30.h: Update to new CPP macros.
228 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
230 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
232 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
233 Zack Weinberg <zack@codesourcery.com>
235 * c-common.c (c_common_init): Override cpplib's default
236 warn_long_long setting.
237 * c-lex.c (lex_number): Replace with interpret_integer,
238 interpret_float, narrowest_unsigned_type and
239 narrowest_signed_type, taking advantage of the new
240 cpplib functionality.
241 * cpperror.c (_cpp_begin_message): If a warning is turned
242 into an error, avoid printing "warning:".
243 * cppexp.c (cpp_num_sign_extend): New.
244 * cppinit.c: Update comment.
245 * cpplib.h (cpp_num_sign_extend): New.
246 * tree.h: Update comment.
248 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
250 * diagnostic.h (struct diagnostic_context): Add new member
252 (internal_error_function): Remove declaration.
253 * diagnostic.c (internal_error_function): Remove definition..
254 (internal_error): Adjust use.
256 2002-06-02 Richard Henderson <rth@redhat.com>
258 * rtl.h (CC0_P): New.
259 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
260 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
261 (bypass_block): Save old dest block for dump text.
262 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
263 Allow only true SET insns, not single_set.
265 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
267 * diagnostic.c (diagnostic_finish): Rename to output_flush.
268 (clear_disgnostic_info): Rename to output_clear_data. Use false
269 instead of 0 for boolean value.
270 Adjust function call throughout.
272 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
274 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
275 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
277 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
279 * d30v.h (CPP_PREDEFINES): Replace with
280 (TARGET_CPU_CPP_BUILTINS): New.
282 2002-06-02 Roger Sayle <roger@eyesopen.com>
284 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
286 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
288 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
290 2002-06-02 Richard Henderson <rth@redhat.com>
292 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
294 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
296 Support for C++ constructors/destructors.
297 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
298 instead of looping if main() returns.
299 (asm_file_start): Output global symbols that cause .data and .bss
300 initialization code to be linked in, unconditionally for now.
301 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
302 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
303 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
305 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
306 (__tablejump__): New.
307 (__do_copy_data, __do_clear_bss): New.
308 (__do_global_ctors, __do_global_dtors): New.
309 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
312 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
314 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
315 (CPP_SPEC, CPP_PREDEFINES): Kill.
316 * c4x/rtems.h (CPP_PREDEFINES): Kill.
317 (TARGET_OS_CPP_BUILTINS): New.
319 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
321 * Makefile.in (tracer.o): New.
322 * params.def (TRACER_*): New options.
323 * rtl.h (tracer): Declare.
324 * timevar.def (TV_TRACER): New.
325 * toplev.c (dump_file_index): Add DFI_tracer.
326 (dump_file_info): Add tracer.
328 (lang_indepdenent_options): Add tracer.
329 (rest_of_compilation): Call tracer.
330 * tracer.c: New file.
331 * invoke.texi (-ftracer): Document.
332 (--param tracer-*): Document.
334 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
336 * tree-inline.c (expand_call_inline): Make the statement
337 expression we generate have a COMPOUND_STMT.
339 2002-06-01 Roger Sayle <roger@eyesopen.com>
341 * gcse.c (cprop_cc0_jump): Function deleted.
342 (cprop_jump): Take an additional argument which is the possibly
343 NULL cc setting insn immediately before the conditional jump.
344 When a MODE_CC set is present, substitute it into the JUMP_INSN
345 before attempting the constant propagation.
346 (cprop_insn): Recognize cc setters followed by conditional jumps
347 as a special case. Use cprop_jump instead of cprop_cc0_jump.
348 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
349 (find_bypass_set): New function based upon find_avail_set used by
350 cprop, but finds constant expressions available at the end of
352 (bypass_block): New function. Given a basic block that begins
353 with a conditional jump and multiple incoming edges, perform
354 the jump bypass optimization.
355 (bypass_conditional_jumps): New function. Call bypass_block with
356 each suitable basic block in the CFG using a simple single pass.
358 2002-06-01 Roger Sayle <roger@eyesopen.com>
360 * tree.c (real_minus_onep): New function to test for -1.0.
361 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
363 2002-06-01 Roger Sayle <roger@eyesopen.com>
365 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
366 and "!p && !q" into "(p|q) == 0" under suitable conditions.
368 2002-06-01 Andreas Jaeger <aj@suse.de>
370 * cppexp.c (cpp_classify_number): Cast precission to int for
371 correct printf format.
373 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
375 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
376 expected, but don't really exist: atmega83, atmega85, attiny10.
377 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
378 emulations for all devices.
379 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
380 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
382 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
384 * config/h8300/h8300-protos.h: Add a prototype for
385 h8300_shift_needs_scratch_p.
386 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
387 * config/h8300/h8300.h (OK_FOR_R): New.
388 (OK_FOR_S): Likewise.
389 (OK_FOR_T): Likewise.
390 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
391 * config/h8300/h8300.md (anonymous shift patterns): Use
392 constraints R, S, and T.
394 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
396 * basic-block.h (struct basic_block_def): New field loop_father.
397 (BB_VISITED): New flag.
398 (struct loop): New field pred, removed field shared.
399 (struct loops): New field parray.
400 (LOOP_EXITS_DOMS): Removed.
401 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
402 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
403 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
404 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
405 verify_loop_structure): Declare.
406 * cfg.c (entry_exit_blocks): Initialize loop_father field.
407 * cfganal.c (dfs_enumerate_from): New function.
408 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
409 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
410 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
411 flow_loop_dump, flow_loops_dump, flow_loops_free,
412 flow_loop_tree_node_add, flow_loop_level_compute,
413 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
414 flow_loop_outside_edge_p): Modified for new infrastructure.
415 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
416 redirect_edge_with_latch_update, flow_loop_free): New static functions.
417 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
418 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
419 find_common_loop, verify_loop_structure, loop_latch_edge,
420 loop_preheader_edge): New functions.
421 (flow_loops_cfg_dump): Do not show dominators, as this information
422 does not remain up to date long.
423 (flow_loops_find): Store results in new format.
424 * predict.c (propagate_freq, estimate_probability,
425 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
428 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
430 * except.c (nothrow_function_p): Walk epilogue delay list
431 checking the insn, not the chain for potential throws.
433 2002-05-31 Zack Weinberg <zack@codesourcery.com>
435 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
436 (install): Refer to install-cpp directly.
437 (uninstall-cpp): Folded into uninstall rule.
438 * configure.in: Delete all code relating to --disable-cpp.
439 * configure: Regenerate.
440 * config/t-install-cpp: Delete.
442 2002-05-31 Richard Henderson <rth@redhat.com>
444 * configure.in (HAVE_AS_TLS): Add alpha tests.
445 * configure: Rebuild.
446 * config/alpha/alpha.c (TARGET_AS_TLS): New.
447 (alpha_tls_size, alpha_tls_size_string): New.
448 (overide_options): Set it. Always install machine_status hooks.
449 (input_operand): Accept got tls predicates.
450 (local_symbol_p): Merge into ...
451 (local_symbolic_operand): ... here. Reject tls symbols.
452 (global_symbolic_operand): Likewise.
453 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
454 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
455 (tp16_symbolic_operand, tp32_symbolic_operand): New.
456 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
457 (alpha_encode_section_info): Handle TLS symbols.
458 (alpha_strip_name_encoding): Likewise.
459 (alpha_legitimate_address_p): Likewise.
460 (alpha_legitimize_address): Likewise.
461 (alpha_expand_mov): Early exit to avoid nop moves.
462 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
463 (alpha_init_machine_status, alpha_mark_machine_status,
464 alpha_free_machine_status): Always define.
465 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
466 (print_operand, print_operand_address): Add TLS relocs.
467 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
468 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
469 (TARGET_SWITCHES): Add -mtls-kernel.
470 (alpha_tls_size, alpha_tls_size_string): New.
471 (TARGET_OPTIONS): Add -mtls-size=.
472 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
473 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
474 (ASM_OUTPUT_LABELREF): Skip %.
475 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
476 (PREDICATE_CODES): Update.
477 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
478 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
479 UNSPEC_TP, UNSPECV_SET_TP): New.
480 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
481 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
482 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
483 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
484 (call_value_osf_2_er): Accept anything as op4.
485 * config/alpha/alpha-protos.h: Update.
486 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
488 2002-05-31 Zack Weinberg <zack@codesourcery.com>
490 * cppinit.c (append_include_chain): Always pay attention to
491 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
494 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
496 * target.h: Fix formatting.
497 * timevar.h: Likewise.
499 * toplev.c: Likewise.
500 * toplev.h: Likewise.
502 * tree-dump.h: Likewise.
504 * tree-inline.h: Likewise.
505 * unroll.c: Likewise.
506 * unwind-dw2.c: Likewise.
507 * unwind-dw2-fde.c: Likewise.
508 * unwind-dw2-fde-glibc.c: Likewise.
509 * unwind-dw2-fde.h: Likewise.
510 * unwind.h: Likewise.
511 * unwind-sjlj.c: Likewise.
512 * varasm.c: Likewise.
513 * varray.h: Likewise.
514 * vmsdbg.h: Likewise.
515 * vmsdbgout.c: Likewise.
516 * xcoffout.h: Likewise.
518 2002-05-31 Igor Shevlyakov <igor@microunity.com>
520 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
521 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
523 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
525 * gcc.c (cpp_unique_options): Remove "-d" options.
526 (cpp_debug_options): New spec string.
527 (default_compilers): Use it.
528 * objc/lang-specs.h: Likewise.
530 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
532 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
533 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
534 * gcc/mklibgcc.in: Likewise.
535 * gcc/config/arc/t-arc: Likewise.
536 * gcc/configure.in: Likewise.
537 * gcc/configure: Regenerate.
539 2002-05-31 Stan Shebs <shebs@apple.com>
540 Turly O'Connor <turly@apple.com>
542 * c-decl.c (struct binding_level): Change int field n_incomplete
543 to tree list incomplete_list.
544 (clear_binding_level): Init field with NULL.
545 (pushdecl): Add incomplete type to list.
546 (mark_binding_level): Mark the incomplete list.
547 (finish_struct): Scan the incomplete list for types instead
548 of all decls in the current binding level.
550 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
552 * pa.c (output_millicode_call): Add missing '%' characters.
553 (output_call): Likewise.
555 2002-05-31 David Edelsohn <edelsohn@gnu.org>
557 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
558 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
560 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
562 * varasm.c (mark_constant_pool): Walk epilogue delay list
563 checking the insn, not the chain for potential constants.
565 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
567 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
569 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
571 * i386.c (classify_argument): Properly handle base types.
573 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
574 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
577 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
579 * gcse.c (gcse_emit_move_after): New.
580 (pre_delete, hoist_store): Use it.
582 * reload1.c (emit_input_reload_insns): Use constrain_operands
583 instead of constraint_accepts_reg_p to verify optimization.
584 (constraint_accepts_reg_p): Kill
586 * reload1.c (reload_cse_delete_noop_set): Kill.
587 (reload_cse_simplify): use delte_insn_and_edges.
589 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
591 * cfgloop.c (flow_loops_find): Initialize first and last fields
594 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
596 * c-common.c (builtin_define_std): Correct logic.
598 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
600 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
601 (output_call): Likewise.
603 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
605 * pa.c: Move output.h include after tree.h include.
606 (pa_asm_output_mi_thunk): Constify identifier lab.
608 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
610 * config/ns32k/ns32k.h: Define named constants for the
611 bits in target_flags and use them.
612 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
614 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
616 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
617 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
618 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
619 default scheduling model.
620 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
621 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
622 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
623 * doc/install.texi (hppa*-*-*): Document default scheduling.
625 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
627 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
629 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
631 * config.gcc (ns32k-*-netbsd*): Set tm_file to
632 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
633 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
634 netbsd.h, or netbsd-aout.h.
636 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
638 * longlong.h (count_trailing_zeros): Add missing \, and clean up
639 whitespace in __ns32000__ case.
641 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
643 * expr.c (expand_expr): Output partially zeroed out vectors with
646 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
648 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
650 (shl*-*-netbsdelf*): New targets.
651 * config/sh/netbsd-elf.h: New file.
652 * config/sh/t-netbsd: New file.
654 2002-05-30 Richard Henderson <rth@redhat.com>
655 Eric Botcazou <ebotcazou@multimania.com>
658 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
659 to unsigned int for op1 comparisons. Use gen_int_mode.
661 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
663 * expmed.c (const_mult_add_overflow_p): New.
664 * expr.h: Declare it.
665 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
666 Don't eliminate the biv if the giv has a constant multiplier and
667 the rhs argument of the comparison does satisfy the predicate.
668 Use expand_mult_add to compute the replacement constant.
670 2002-05-30 Osku Salerma <osku@iki.fi>
672 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
673 (c_common_get_alias_set): Handle it.
674 * doc/extend.texi: Document it.
676 2002-05-30 Richard Henderson <rth@redhat.com>
678 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
679 * toplev.c (process_options): Don't check it.
680 * doc/tm.texi: Don't document it.
681 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
682 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
683 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
684 frame pointer optimization if current_function_profile.
686 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
688 * langhooks.c: Fix formatting.
689 * langhooks.h: Likewise.
691 * libgcc2.c: Likewise.
693 * local-alloc.c: Likewise.
697 2002-05-30 Marc Espie <espie@openbsd.org>
699 * config.gcc (sparc64-*-openbsd*): New.
700 * config/sparc/openbsd1-64.h: New.
701 * config/sparc/openbsd64.h: New.
703 2002-05-30 Jeff Law <law@redhat.com>
705 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
706 a dead insn with a REG_RETVAL note when the entire libcall is not
707 dead and remove the associated REG_LIBCALL note at the same time.
709 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
711 * lcm.c (output.h): #include.
712 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
713 as an ordinary block.
714 (optimize_mode_switching): Don't pretend that the exit block is
715 an ordinary block, or handle sucessors of entry block specially.
716 Instead, split edges from entry block and to exit block, and
717 put a computing definition on the thus gained post-entry-block,
718 and a need on the pre-exit-block.
720 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
722 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
723 * rtl.texi: Document 'B'
725 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
727 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
729 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
731 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
733 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
734 const0_rtx instead of NULL_RTX when in error.
735 (altivec_expand_abs_builtin): Same.
736 (rs6000_expand_binop_builtin): Same.
737 (altivec_expand_predicate_builtin): Same.
738 (altivec_expand_stv_builtin): Same.
739 (rs6000_expand_ternop_builtin): Same.
740 (altivec_expand_builtin): Same.
742 2002-05-29 David S. Miller <davem@redhat.com>
744 * rtl.h (clear_emit_caches): Delete.
745 * integrate.c (output_inline_function): Don't call it.
746 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
747 (clear_emit_caches): Delete definition.
748 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
750 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
752 * config/mmix/mmix.c: Include real.h.
753 (mmix_constant_address_p): Remove redundant test before switch.
755 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
757 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
758 only if not already defined.
760 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
762 * config/h8300/h8300-protos.h: Remove prototypes for
763 ok_for_bclr and small_power_of_two.
764 * config/h8300/h8300.c (small_power_of_two): Remove.
765 (ok_for_blcr): Likewise.
766 (fix_bit_operand): Make WHAT deal with an integer instead of a
767 constraint character.
768 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
769 (CONST_OK_FOR_P): Likewise.
770 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
771 CONST_OK_FOR_P any more.
772 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
777 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
779 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
780 (CPP_PREDEFINES): Make sure this is undefined.
781 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
782 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
783 or -U__MIPSEB__ before defining one or the other. Instead,
784 use %(subtarget_endian_default) if neither -EB nor -EL are
786 (SUBTARGET_EXTRA_SPECS): Define.
787 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
790 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
792 * doc/md.texi (Patterns): Note pattern condition pitfall
795 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
797 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
798 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
799 ternary operations from here...
800 (rs6000_expand_builtin): ...to here.
801 New argument expandedp.
802 Change all instances of altivec_expand_binop_builtin to
803 rs6000_expand_binop_builtin.
804 (altivec_expand_unop_builtin): Rename to
805 rs6000_expand_unop_builtin.
806 (altivec_expand_binop_builtin): Rename to
807 rs6000_expand_binop_builtin.
808 (altivec_expand_ternop_builtin): Rename to
809 rs6000_expand_ternop_builtin.
811 2002-05-29 Richard Henderson <rth@redhat.com>
813 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
814 (TARGET_BI_ARCH): Likewise.
815 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
816 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
817 (TARGET_64BIT_DEFAULT): Default to 0.
818 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
820 2002-05-29 Richard Henderson <rth@redhat.com>
822 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
823 (get_pc_thunk_name): New.
824 (output_set_got): Use it.
825 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
826 into linkonce sections.
828 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
830 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
831 (CPP_PREDEFINES): Make sure this is undefined.
832 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
833 (CPP_SUBTARGET_SPEC): Don't provide different versions for
834 default-32 and default-64. Just always use %(netbsd_cpp_spec).
835 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
836 cpp_subtarget_spec64. Add netbsd_cpp_spec.
837 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
838 (CPP_PREDEFINES): Make sure this is undefined.
839 (SUBTARGET_EXTRA_SPECS): Define.
840 (CPP_SPEC): Use %(netbsd_cpp_spec).
842 2002-05-29 Jeff Law <law@redhat.com>
844 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
846 * flow.c (propagate_one_insn): Do not remove a dead insn if it
847 contains a REG_RETVAL note.
849 * haifa-sched (sched_analyze): Remove another useless clearing
850 of SCHED_GROUP_P I missed yesterday.
852 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
853 * pa.c (pa_asm_output_mi_thunk): New function.
854 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
856 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
857 Marek Michalkiewicz <marekm@amelek.gda.pl>
859 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
860 (avr_asm_only_p): Make non-static.
861 (enum avr_arch): Remove.
862 (avr_arch_types): New.
863 (avr_mcu_types): Update.
864 (avr_override_options): Use avr_arch_types table instead of switch.
865 * avr.h (CPP_PREDEFINES): Die.
866 (avr_base_arch_macro, avr_extra_arch_macro): New.
867 (TARGET_CPU_CPP_BUILTINS): New.
868 (CPP_SPEC, EXTRA_SPECS): Simplify.
869 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
872 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
874 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
875 NETBSD_OS_CPP_BUILTINS_AOUT.
876 (SUBTARGET_EXTRA_SPECS): Define.
877 (CPP_SPEC): Use %(netbsd_cpp_spec).
879 2002-05-29 Richard Henderson <rth@redhat.com>
881 * config/i386/i386.c (ix86_output_function_epilogue): New.
882 (TARGET_ASM_FUNCTION_EPILOGUE): New.
883 (pic_label_name): Remove.
884 (pic_labels_used): New.
885 (ix86_asm_file_end): Emit one pc load stub for each register used.
886 (output_set_got): Generate deep pc load to any register.
887 (ix86_select_alt_pic_regnum): New.
888 (ix86_save_reg): Don't save pic register if we can find a valid
889 call-clobbered replacement.
890 (ix86_expand_prologue): If we found a valid replacement, renumber
891 pic_offset_table_rtx.
892 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
893 pic_offset_table_rtx after reload.
894 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
895 * config/i386/i386.md (set_got): Make insn, not expander.
896 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
898 2002-05-29 Richard Henderson <rth@redhat.com>
900 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
901 alignment for alloca.
903 2002-05-29 Richard Henderson <rth@redhat.com>
905 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
906 (print_operand_address): Only add rip for symbolic addresses
907 for which we do not have another relocation type.
909 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
911 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
912 (EXTRA_SPECS): Add netbsd_cpp_spec.
913 (CPP_SPEC): Use %(netbsd_cpp_spec).
914 (CPP_PREDEFINES): Remove.
915 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
916 (EXTRA_SPECS): Define.
917 (CPP_SPEC): Use %(netbsd_cpp_spec).
918 (CPP_PREDEFINES): Remove.
920 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
923 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
926 2002-05-29 Eric Christopher <echristo@redhat.com>
928 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
929 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
931 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
933 * config/fr30/fr30.md: Remove previous restriction on splits.
934 Enforce conformance through gen_lowpart and cont_int_operand.
935 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
936 as the assembler does not support ".bss".
938 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
940 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
941 (CPP_PREDEFINES): Remove.
942 (SUBTARGET_EXTRA_SPECS): Define.
943 (CPP_SPEC): Use %(netbsd_cpp_spec).
944 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
945 (CPP_PREDEFINES): Remove.
946 (SUBTARGET_EXTRA_SPECS): Define.
947 (CPP_SPEC): Use %(netbsd_cpp_spec).
948 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
949 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
950 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
952 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
954 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
955 Zack Weinberg <zack@codesourcery.com>
957 * cppexp.c (cpp_num): Move to cpplib.h.
959 (interpret_float_suffix, interpret_int_suffix): New.
960 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
961 (cpp_classify_number, cpp_interpret_integer): New.
962 (interpret_number): Remove.
963 (eval_token): Update to use new routines.
964 * cpphash.h (cpp_num_part): Move to cpplib.h.
965 * cppinit.c (cpp_post_options): Set warn_long_long.
966 * cpplib.h (struct cpp_options): Add warn_long_long.
967 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
968 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
969 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
970 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
971 cpp_interpret_integer): New.
973 2002-05-29 Joel Sherrill <joel@OARcorp.com>
975 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
977 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
979 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
980 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
981 (CPP_SUBTARGET_SPEC): Define.
982 (SUBTARGET_EXTRA_SPECS): Define.
985 2002-05-29 Chris Lattner <sabre@nondot.org>
987 * ssa.c (rename_insn_1): Rename uses of undefined registers to
988 prevent confusion if/when the register is defined.
990 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
993 * config/cris/cris.md: Fix typos and thinkos in comments.
994 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
996 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
997 ("*mov_sideqi_mem"): Similar, but for operand 3.
998 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
999 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
1000 Remove spurious mode specifier on operand 2.
1002 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
1004 * config/h8300/h8300-protos.h: Remove the prototype for
1006 Add prototypes for single_one_operand and single_zero_operand.
1007 * config/h8300/h8300.c (o_operand): Remove.
1008 (single_one_operand): New.
1009 (single_zero_operand): Likewise.
1010 (print_operand): For 'V' operand, and the operand with 0xff.
1011 For 'V' and 'W' operands, do not and the bit position with 7.
1012 * config/h8300/h8300.md (various anonymous patterns): Replace
1013 use of exact_log2 with single_one_operand/single_zero_operand.
1015 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
1017 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
1019 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
1021 * config/s390/s390.c (legitimate_pic_operand_p): Do not
1022 accept symbolic LARL operands.
1023 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
1026 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
1028 * config/s390/s390.md (cmpstr_64/31): Mark whole
1029 input registers as used.
1031 2002-05-28 Richard Henderson <rth@redhat.com>
1033 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
1034 not current_function_uses_pic_offset_table and
1035 current_function_uses_const_pool; examine current_function_profile.
1036 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
1037 input to blockage if needed.
1038 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
1039 (legitimize_pic_address): Likewise. Set regs_ever_live for
1040 pic_offset_table_rtx when invoked during reload.
1041 * config/i386/i386.h (FINALIZE_PIC): Remove.
1042 * config/i386/i386.md (tablejump): Reformat. Do not set
1043 current_function_uses_pic_offset_table.
1044 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
1045 (blockage): Accept anything as operand 0.
1047 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
1049 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
1050 common CPP built-ins for all NetBSD a.out targets.
1051 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
1052 common CPP built-ins for all NetBSD ELF targets.
1053 * config/netbsd.h: Add missing notice.
1054 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
1055 for all NetBSD targets.
1056 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
1057 for all NetBSD targets using an LP64 code model.
1058 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
1061 2002-05-28 Richard Henderson <rth@redhat.com>
1063 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
1064 update if UPDATE_LIFE_LOCAL.
1066 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1068 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
1070 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1071 Jason R. Thorpe <thorpej@wasabisystems.com>
1073 config/sh reorganization to factor out endianness and coff:
1075 * config/sh/little.h: New file.
1076 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
1077 defined, define to 0 to select big-endian.
1078 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
1079 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
1080 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
1081 * config/sh/t-be: New file.
1082 * config/sh/t-le: New file.
1084 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
1085 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
1086 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
1087 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
1088 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
1089 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
1090 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
1091 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
1092 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
1093 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
1094 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
1095 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
1096 (LINK_SPEC): Define to SH_LINK_SPEC.
1097 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
1098 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
1099 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
1100 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
1101 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
1102 * config/sh/coff.h: New file.
1103 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
1104 (TARGET_OBJFMT_CPP_BUILTINS): Define.
1105 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
1106 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
1107 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
1108 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
1109 (PTRDIFF_TYPE): Likewise.
1110 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
1111 (CPP_PREDEFINES): Don't define.
1112 (TARGET_OBJFMT_CPP_BUILTINS): Define.
1113 (LINK_SPEC): Define to SH_LINK_SPEC.
1114 (LINK_EMUL_PREFIX): Redefine.
1115 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
1116 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
1117 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
1118 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
1119 (TARGET_OS_CPP_BUILTINS): Define.
1120 (TARGET_DEFAULT): Redefine.
1121 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
1122 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
1123 (LINK_SPEC): Don't redefine.
1124 (LINK_DEFAULT_CPU_EMUL): Redefine.
1125 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
1126 * sh.c (sh_asm_named_section): Don't declare / define.
1127 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
1128 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
1129 (sh64-*-elf* tm_file): Likewise.
1130 (sh-*-rtemself* tm_file): Likewise.
1131 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
1132 (sh-*-linux* tmake_file): Add sh/t-le.
1133 (sh-*-rtems* tm_file): Add sh/coff.h
1134 (sh-*-* tm_file): Likewise.
1136 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1138 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
1139 CONSTANT_POOL_ADDRESS_P.
1141 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
1143 2002-05-28 David Edelsohn <edelsohn@gnu.org>
1144 Jeff Law <law@redhat.com>
1146 * optabs.c (expand_binop): Fix nwords sign warnings.
1147 generate pseudo for add_optab.
1149 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
1150 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
1152 2002-05-28 Marc Espie <espie@openbsd.org>
1154 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
1155 inherited from gas.h.
1156 (ASM_QUAD): Undef. OpenBSD does not support it.
1158 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
1160 * doc/install.texi (binaries): Change mingw binaries
1161 link to www.mingw.org.
1163 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1165 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
1167 2002-05-28 Richard Henderson <rth@redhat.com>
1169 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
1170 bottom alignment for leaf functions.
1172 2002-05-28 Zack Weinberg <zack@codesourcery.com>
1174 * config/pa/milli32.S, config/pa/lib1funcs.asm,
1175 config/sparc/sol2-g1.asm: Delete unused files.
1177 2002-05-28 Richard Henderson <rth@redhat.com>
1179 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
1181 * flow.c (calculate_global_regs_live): Rename call_used to
1182 invalidated_by_call. Initialize from regs_invalidated_by_call
1183 instead of call_used_regs.
1185 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
1188 2002-05-28 Zack Weinberg <zack@codesourcery.com>
1190 * tree.h: Don't include real.h.
1191 Forward-declare struct realvaluetype.
1192 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
1194 (TREE_REAL_CST_PTR): New accessor.
1195 (TREE_REAL_CST): Update.
1196 * real.h: Include machmode.h.
1197 (realvaluetype): Make it struct realvaluetype, not a typedef.
1198 (build_real): Prototype here.
1200 * tree.c: Include real.h.
1201 (build_real): Allocate the REAL_VALUE_TYPE as a separate
1202 object in GC memory, set TREE_REAL_CST_PTR to point to it.
1203 (build_real_from_int_cst): Use build_real.
1204 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
1207 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
1208 fold-const.c, print-tree.c, real.c: Include real.h.
1209 * Makefile.in: Update dependency lists.
1211 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1213 * basic-block.h (last_basic_block): Declare.
1214 (expunge_block_nocompact): Declaration removed.
1215 (compact_blocks): Declare.
1216 * cfg.c (last_basic_block): New variable.
1217 (expunge_block_nocompact): Removed.
1218 (expunge_block): Do not compact basic blocks.
1219 (compact_blocks): New.
1220 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
1222 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
1224 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
1225 real positions of blocks.
1226 (delete_unreachable_blocks): Simplified -- quadratic behavior now
1228 (cleanup_cfg): Compact blocks.
1229 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
1230 basic_block_info varray.
1231 (flow_delete_block): Comment update.
1232 (back_edge_of_syntactic_loop_p): Modify position check code.
1233 (verify_flow_info): Update checking.
1234 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
1235 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1236 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
1237 indices no longer change.
1238 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
1240 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
1241 * profile.c (branch_prob): Compact blocks.
1242 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
1245 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
1247 * config/h8300/h8300.md (two anonymous patterns): New.
1249 2002-05-28 David S. Miller <davem@redhat.com>
1251 * config/sparc/sparc.md (cpu): Tidy.
1252 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
1254 (in_call_delay): Delete reference to 'return' type.
1255 (eligible_for_return_delay, in_return_delay, define_delay
1256 referencing those): Delete.
1257 (rest of file): Use new type attributes as appropriate.
1258 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
1259 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
1260 * config/sparc/ultra1_2.md (us1_single): New reservation.
1261 (us1_ialuX): Likewise.
1262 * config/sparc/ultra3.md (us3_single): Likewise.
1263 (us3_ialuX): Likewise.
1264 (us3_imul, us3_idiv): Tweak.
1266 2002-05-28 Richard Henderson <rth@redhat.com>
1268 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
1271 2002-05-28 Richard Henderson <rth@redhat.com>
1273 * config.gcc: Obsolete mn10200.
1275 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
1277 * cppexp.c (interpret_number): Optimize for single-digit
1278 and less-than-half-precision cases.
1279 (num_trim, num_positive, num_div_op): Cast constants.
1281 2002-05-27 Bo Thorsen <bo@suse.de>
1283 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
1284 3.1 branch. The file was made by Jakub Jelinek.
1285 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1286 support so multilib doesn't break. And don't define this at all
1287 when -Dinhibit_libc is used.
1288 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
1289 * config/i386/t-linux64: Implement full multilib support. Patch
1290 originally done by Andreas Jaeger and Jakub Jelinek.
1292 2002-05-27 Roger Sayle <roger@eyesopen.com>
1294 * c-common.c: Add support for __attribute__((nothrow)) to specify
1295 that a function cannot throw an exception (using TREE_NOTHROW).
1296 (handle_nothrow_attribute): New function to process this attribute.
1298 * doc/extend.texi: Document the new nothrow function attribute.
1300 2002-05-27 H.J. Lu (hjl@gnu.org)
1302 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
1303 (num_positive): Likewise.
1304 (num_div_op): Likewise.
1306 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1308 * c-common.c (c_common_init): Always use intmax_t.
1310 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1312 * c-common.c (c_common_init): Use intmax_t for now.
1314 2002-05-24 Andrew Haley <aph@redhat.com>
1316 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
1317 if T is a boolean type.
1319 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1321 * basic-block.h (last_basic_block): Defined as synonym for
1323 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1324 flow_depth_first_order_compute, flow_preorder_transversal_compute,
1325 flow_dfs_compute_reverse_init): Replaced relevant occurences of
1326 n_basic_blocks with last_basic_block.
1327 * cfgbuild.c (make_edges): Likewise.
1328 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1329 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1330 * combine.c (combine_instructions): Likewise.
1331 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1332 iterative_dataflow_bitmap): Likewise.
1333 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1334 calc_idoms, idoms_to_doms): Likewise.
1335 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1337 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1338 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1339 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1340 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1341 delete_null_pointer_checks, compute_code_hoist_vbeinout,
1342 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1343 compute_store_table, build_store_vectors): Likewise.
1344 * haifa-sched.c (sched_init): Likewise.
1345 * ifcvt.c (if_convert): Likewise.
1346 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1347 pre_edge_lcm, compute_available, compute_nearerout,
1348 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1350 * predict.c (estimate_probability, process_note_prediction,
1351 note_prediction_to_br_prob): Likewise.
1352 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1353 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1354 * regrename.c (copyprop_hardreg_forward): Likewise.
1355 * resource.c (init_resource_info): Likewise.
1356 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1357 init_regions, schedule_insns): Likewise.
1358 * ssa-ccp.c (ssa_const_prop): Likewise.
1359 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1360 * ssa.c (compute_dominance_frontiers,
1361 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1363 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1364 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1367 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
1369 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1371 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1372 hoist_insn_after, hoist_insn_to_edge): New.
1374 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
1376 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1377 (PROP_FINAL): Include.
1378 * flow.c (life_analysis, update_life_info,
1379 init_propagate_block_info, mark_set_1, mark_used_rgs):
1380 Support SCAN_DEAD_STORE.
1382 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1384 * c-common.c (c_common_init): Set CPP arithmetic precision.
1385 * cppexp.c (cpp_num_part): Move typedef ...
1386 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1387 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1388 (sanity_checks): Update.
1390 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
1392 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1393 (mkheaders): New rule.
1394 (install-mkheaders): New rule.
1395 * configure.in (all_outputs): Add mkheaders.
1396 * configure: Regenerate.
1397 * mkheaders.in: New file.
1399 2002-05-26 Jakub Jelinek <jakub@redhat.com>
1401 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1403 2002-05-26 Andreas Jaeger <aj@suse.de>
1405 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1407 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
1409 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1410 right_shift): Remove.
1411 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1413 (struct op): Use cpp_num.
1414 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1415 num_part_mul, num_unary_op, num_binary_op, num_negate,
1416 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1417 num_div_op, num_lshift, num_rshift, append_digit): New.
1418 (interpret_number, parse_defined, eval_token, reduce): Update
1419 for two-integer arithmetic.
1420 (binary_handler): New typedef.
1422 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1423 (_cpp_parse_expr, reduce): Update to handle two-integers.
1424 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1426 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
1428 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1429 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1430 branch insn into account, do not assume 1.
1431 (avr_out_sbxx_branch): New function. Optimize cases of skipping
1432 over single word insn. Handle upper half of I/O space too.
1433 * config/avr/avr.md (*sbrx_branch): Use it.
1434 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1435 (*sbix_branch, *sbix_branch_bit7): Likewise.
1436 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1437 Use RTL peepholes to optimize register operand sign tests.
1439 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
1441 * config/avr/avr.c (avr_asm_only_p): New variable.
1442 (avr_override_options): Set it here if AVR1.
1443 (asm_file_start): Test it here, report an error if set.
1445 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
1447 * alias.c: Fix formatting.
1448 * attribs.c: Likewise.
1449 * bb-reorder.c: Likewise.
1450 * bitmap.c: Likewise.
1451 * bitmap.h: Likewise.
1452 * builtins.c: Likewise.
1454 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
1456 * reload.c (find_valid_class): Accept new argument DEST,
1457 choose class accordingly.
1458 (push_reload): Update callers.
1460 2002-05-26 Andreas Jaeger <aj@suse.de>
1462 * combine.c (combine_instructions): Do not indent #if for
1465 2002-05-25 Richard Henderson <rth@redhat.com>
1467 * c-pragma.c (apply_pragma_weak): Convert value identifier to
1468 string for decl_attributes.
1469 (handle_pragma_weak): Call assemble_alias if we're modifying
1472 2002-05-25 Richard Henderson <rth@redhat.com>
1475 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1476 using rtl instead of fprintf.
1477 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1478 * config/sparc/sparc-protos.h: Update.
1480 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
1482 * Makefile.in (C_COMMON_H): Fix.
1483 Update other targets.
1484 * c-common.c: Don't include c-lex.h.
1485 (builtin_define_with_value): Make static and prototype.
1486 (builtin_define_std): Move from c-lex.h.
1487 * c-common.h (init_c_lex): Move from c-lex.h.
1488 * c-decl.c: Don't include c-lex.h.
1489 (make_pointer_declarator): Move from c-parse.in.
1490 * c-lex.c: Don't include c-lex.h.
1492 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1493 (make_pointer_declarator): Move to c-decl.c.
1494 * c-pragma.c: Don't include c-lex.h.
1495 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1496 * c-tree.h (make_pointer_declarator): New.
1498 * passes.texi, tm.texi: Update.
1500 * Make-lang.in: Update and correct.
1501 * objc-act.c: Don't include c-lex.h or cpplib.h.
1503 * treetree.c: Don't include c-lex.h.
1505 * darwin-c.c: Don't include c-lex.h.
1506 * c4x/c4x-c.c: Don't include c-lex.h.
1507 * c4x/t-c4x: Update.
1508 * i370/i370-c.c: Don't include c-lex.h.
1509 * i370/t-i370: Update.
1510 * i960/i960-c.c: Don't include c-lex.h.
1511 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1512 * i960/t-960bare: Update.
1513 * i960/t-vxworks: Update.
1514 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1515 * rs6000/t-darwin: Update.
1516 * rs6000/t-rs6000-c-rule: Update.
1517 * v850/v850-c.c: Don't include c-lex.h.
1518 * v850/v850.c: Don't include c-lex.h or cpplib.h.
1521 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1523 * tree.def: Fix typos.
1524 * doc/install.texi: Likewise.
1526 2002-05-25 Richard Henderson <rth@redhat.com>
1528 * configure.in (HAVE_AS_TLS): Add ia64 test.
1529 * configure: Rebuild.
1530 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1531 (override_options): Set it.
1532 (TARGET_HAVE_TLS): New.
1533 (sdata_symbolic_operand): Look for 's'.
1534 (tls_symbolic_operand): New.
1535 (ia64_expand_load_address): Abort for tls symbols.
1536 (gen_tls_get_addr): New.
1537 (gen_thread_pointer): New.
1538 (ia64_expand_move): Split out from movdi. Handle tls symbols.
1539 (rtx_needs_barrier): Add new unspecs.
1540 (ia64_encode_section_info): Handle tls symbols.
1541 (ia64_strip_name_encoding): Strip two encoding chars.
1542 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1543 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1544 (TARGET_OPTIONS): Add tls-size.
1545 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1546 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1547 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1548 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1549 (movsf, movdf): Likewise.
1550 (movdi_symbolic): Use match_scratch. Don't split if we won't
1551 have a scratch availiable.
1552 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1553 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1554 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1555 * config/ia64/ia64-protos.h: Update.
1556 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1557 sdata_symbolic_operand.
1558 (ASM_OUTPUT_LABELREF): Strip two characters.
1560 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1562 * combine.c (simplify_set): Remove an unnecessary subreg.
1564 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
1566 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1568 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1570 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1572 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
1574 2002-05-25 Roger Sayle <roger@eyesopen.com>
1576 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1577 (cond (compare x y) 0) into the equivalent (cond x y).
1579 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1581 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
1583 2002-05-24 Zack Weinberg <zack@codesourcery.com>
1585 * config.gcc: Remove all stanzas for previously obsoleted
1586 systems. Where necessary, add explicit error stanzas to
1587 prevent removed systems from being misidentified as something
1588 else. Begin a fresh obsoletions list, with the systems that
1589 were reprieved last round.
1590 * doc/install.texi: Remove all mention of dead targets.
1591 * fixinc/mkfixinc.sh: Likewise.
1593 * config/arm/arm.h: Bit 31 of target_flags is no longer
1596 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1597 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1598 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1599 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1600 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1601 config/alpha/osf12.h, config/alpha/osf2or3.h,
1602 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1603 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1604 config/clipper/clipper-protos.h, config/clipper/clipper.c,
1605 config/clipper/clipper.h, config/clipper/clipper.md,
1606 config/clipper/clix.h, config/convex/convex-protos.h,
1607 config/convex/convex.c, config/convex/convex.h,
1608 config/convex/convex.md, config/convex/fixinc.convex,
1609 config/convex/proto.h, config/elxsi/elxsi-protos.h,
1610 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1611 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1612 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1613 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1614 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1615 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1616 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1617 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1618 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1619 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1620 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1621 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1622 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1623 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1624 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1625 config/m68k/altos3068.h, config/m68k/apollo68.h,
1626 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1627 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1628 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1629 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1630 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1631 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1632 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1633 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1634 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1635 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1636 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1637 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1638 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1639 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1640 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1641 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1642 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1643 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1644 config/mips/dec-osf1.h, config/mips/elflorion.h,
1645 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1646 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1647 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1648 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1649 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1650 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1651 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1652 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1653 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1654 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1655 config/ns32k/sequent.h, config/ns32k/tek6000.h,
1656 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1657 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1658 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1659 config/sparc/rtems.h, config/we32k/we32k-protos.h,
1660 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1663 2002-05-24 Richard Henderson <rth@redhat.com>
1665 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1666 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1667 * config/i386/i386.c (tls_model_chars): Add leading space.
1668 (tls_symbolic_operand): Don't bias by 1.
1669 (legitimize_address): Don't unbias by 1.
1671 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1673 * lcm.c (optimize_mode_switching): Change bb used as indices
1676 2002-05-24 Richard Henderson <rth@redhat.com>
1678 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1679 of update_life_info_in_dirty_blocks.
1681 2002-05-24 Jakub Jelinek <jakub@redhat.com>
1684 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1686 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
1688 PR preprocessor/6780
1689 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1691 2002-05-24 Jim Blandy <jimb@redhat.com>
1693 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1694 entry with a type code of zero, marking the end of the compilation
1697 2002-05-24 Richard Henderson <rth@redhat.com>
1699 * varasm.c (asm_output_bss): Always output one byte.
1700 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1702 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1704 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1707 2002-05-24 Andreas Jaeger <aj@suse.de>
1709 * ggc-page.c (alloc_page): Cast variables of type size_t to
1710 unsigned long, adjust printf format string.
1711 (ggc_alloc): Likewise.
1712 (ggc_print_statistics): Likewise.
1713 (ggc_print_statistics): Correct printf format string for SCALE to
1716 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
1718 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1720 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
1721 Zack Weinberg <zack@codesourcery.com>
1723 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1725 * dwarf2out.c (lookup_filename): Properly quote filename in .file
1726 directive in assembly file.
1727 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1728 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1729 * config/pj/pj.h (ASM_FILE_START): Likewise.
1730 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1731 * config/avr/avr.c (asm_file_end): Likewise.
1732 * toplev.c (output_quoted_string): Handle possibly signed plain
1734 * toplev.h (output_clean_symbol_name): Declare
1735 * toplev.c (output_clean_symbol_name): Define.
1736 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1737 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1739 2002-05-24 Alan Modra <amodra@bigpond.net.au>
1741 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1743 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
1745 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1746 of size of unsigned.
1748 2002-05-23 Richard Henderson <rth@redhat.com>
1750 * configure.in (HAVE_AS_TLS): New test.
1751 * config.in, configure: Rebuild.
1752 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1753 (ix86_tls_dialect_string, ix86_tls_dialect): New.
1754 (override_options): Set it.
1755 (tls_model_chars, tls_symbolic_operand): New.
1756 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1757 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1758 (local_exec_symbolic_operand): New.
1759 (get_pic_label_name): Merge into output_set_got.
1760 (ix86_asm_file_end): Emit pic_label_name if defined.
1761 (legitimate_constant_p, constant_address_p): New.
1762 (legitimate_pic_operand_p): New.
1763 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1764 (legitimate_address_p): Likewise.
1765 (ix86_encode_section_info): Rename from i386_; handle tls decls.
1766 (ix86_strip_name_encoding): New.
1767 (get_thread_pointer): New.
1768 (legitimize_address): Handle tls symbols.
1769 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1771 (struct machine_function): Add some_ld_name.
1772 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1773 (print_operand) [&]: Use it. Handle UNSPEC_TP.
1774 (output_addr_const_extra): New.
1775 (maybe_get_pool_constant): New.
1776 (ix86_split_to_parts): Use it.
1777 (ix86_expand_move): Handle tls symbols.
1778 (ix86_tls_get_addr): New.
1779 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1780 (TARGET_OPTIONS): Add tls-dialect.
1781 (CONSTANT_ADDRESS_P): Use new out-of-line function.
1782 (LEGITIMATE_CONSTANT_P): Likewise.
1783 (LEGITIMATE_PIC_OPERAND_P): Likewise.
1784 (TARGET_STRIP_NAME_ENCODING): New.
1785 (ASM_OUTPUT_LABELREF): New.
1786 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1787 (OUTPUT_ADDR_CONST_EXTRA): New.
1788 (PREDICATE_CODES): Update.
1789 (ix86_tls_dialect, ix86_tls_dialect_string): New.
1790 * config/i386/i386.md: Regroup and renumber unspec constants.
1791 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1792 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1793 (tls_global_dynamic, tls_local_dynamic_base): New.
1794 (tls_local_dynamic_once): New.
1795 * config/i386/i386-protos.h: Update.
1797 2002-05-23 Richard Henderson <rth@redhat.com>
1799 * genemit.c (gen_insn): Print file:lineno comment before function.
1801 * gensupport.c (struct queue_elem): Add filename member.
1802 (queue_pattern): Initialize it; update all callers.
1803 (process_include): Don't free filename.
1804 (read_md_rtx): Set read_rtx_filename.
1806 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
1808 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1810 2002-05-23 Richard Henderson <rth@redhat.com>
1812 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1814 2002-05-23 Richard Henderson <rth@redhat.com>
1816 * doc/extend.texi (C++98 Thread-Local Edits): Update with
1817 commentary from Mark.
1819 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1821 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1822 Use FOR_EACH_BB macros to iterate over basic block chain.
1823 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1824 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1826 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1827 find_unreachable_blocks, create_edge_list, verify_edge_list,
1828 remove_fake_edges, add_noreturn_fake_exit_edges,
1829 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1831 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1832 find_sub_basic_blocks): Likewise.
1833 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1835 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1837 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1839 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1840 commit_edge_insertions, commit_edge_insertions_watch_calls,
1841 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1842 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1843 * conflict.c (conflict_graph_compute): Likewise.
1844 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1845 df_modified_p, df_refs_unlink, df_dump): Likewise.
1846 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1847 * final.c (compute_alignments): Likewise.
1848 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1849 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1850 count_or_remove_death_notes): Likewise.
1851 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1852 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1853 classic_gcse, compute_transp, cprop, compute_pre_data,
1854 compute_transpout, invalidate_nonnull_info,
1855 delete_null_pointer_checks_1, delete_null_pointer_checks,
1856 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1857 compute_store_table, build_store_vectors, store_motion): Likewise.
1858 * global.c (global_conflicts, mark_elimination): Likewise.
1859 * graph.c (print_rtl_graph_with_bb): Likewise.
1860 * haifa-sched.c (sched_init): Likewise.
1861 * ifcvt.c (if_convert): Likewise.
1862 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1863 compute_available, compute_nearerout, compute_rev_insert_delete,
1864 optimize_mode_switching): Likewise.
1865 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1866 * predict.c (estimate_probability, note_prediction_to_br_prob,
1867 propagate_freq, counts_to_freqs, expensive_function_p,
1868 estimate_bb_frequencies): Likewise.
1869 * profile.c (instrument_edges, get_exec_counts,
1870 compute_branch_probabilities, compute_checksum, branch_prob,
1871 find_spanning_tree): Likewise.
1872 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1873 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1875 * regclass.c (scan_one_insn, regclass): Likewise.
1876 * regmove.c (mark_flags_life_zones, regmove_optimize,
1877 record_stack_memrefs): Likewise.
1878 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1879 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1880 * resource.c (find_basic_block): Likewise.
1881 * sched-ebb.c (schedule_ebbs): Likewise.
1882 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1883 find_single_block_region, find_rgns, schedule_insns)
1884 * sibcall.c (optimize_sibling_and_tail_recursive_call)
1885 * ssa-ccp.c (optimize_unexecutable_edges,
1886 ssa_ccp_df_delete_unreachable_insns): Likewise.
1887 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1888 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1889 rename_block, convert_to_ssa, compute_conservative_reg_partition,
1890 compute_coalesced_reg_partition, rename_equivalent_regs,
1891 convert_from_ssa): Likewise.
1892 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1893 process_for_unwind_directive): Likewise.
1895 * df.c (FOR_ALL_BBS): Removed.
1896 * gcse.c (struct null_pointer_info): Type of current_block field
1898 (struct reg_avail_info): Type of last_bb field changed.
1899 * config/ia64/ia64.c (block_num): Removed.
1900 (need_copy_state): Type changed.
1903 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1905 * cppinit.c (mark_named_operators): Split out from init_builtins.
1906 (cpp_finish_options): Call it from here instead.
1908 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1910 * builtin-attrs.def: Update copyright years.
1911 (ATTR_NONNULL): New attribute identifier.
1912 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1913 attribute tree lists.
1914 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1916 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1917 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1918 attribute lists. Chain the appropriate nonnull attribute.
1919 * c-format.c (check_format_arg): Remove null format string
1921 * testsuite/gcc.dg/format/null-1.c: New test.
1923 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1925 * Makefile.in (ADAC): Define.
1927 (.SUFFIXES): Move before language makefile fragments.
1928 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1930 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1932 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1935 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1937 * cfg.c (dump_flow_info): Print results of
1938 maybe_hot/probably_never_executed predicates.
1939 * toplev.c (open_dump_file): Print function frequency.
1941 2002-05-23 David S. Miller <davem@redhat.com>
1943 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1946 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1948 * c-common.c (warn_nonnull): Declare.
1949 (c_common_attribute_table): Add "nonnull" attribute.
1950 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1951 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1952 check_function_arguments_recurse): New functions.
1953 * c-common.h (warn_nonnull): Declare extern.
1954 (check_function_arguments, check_function_arguments_recurse): New
1956 * c-decl.c (c_decode_option): Add -Wnonnull option.
1957 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1959 (format_check_context): New structure.
1960 (check_format_info_recurse): Remove recursion and rename to...
1961 (check_format_arg): ...this. Update comment.
1962 (check_format_info): Use check_function_arguments_recurse.
1963 * c-typeck.c (build_function_call): Call check_function_arguments
1964 instead of check_function_format.
1965 * doc/extend.texi: Document "nonnull" attribute.
1966 * doc/invoke.texi: Docuemnt -Wnonnull option.
1967 * testsuite/gcc.dg/nonnull-1.c: New test.
1968 * testsuite/gcc.dg/nonnull-2.c: New test.
1970 2002-05-23 David S. Miller <davem@redhat.com>
1972 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1973 * cfgcleanup.c (cleanup_cfg): If it is set do not
1974 attempt to delete trivially dead insns.
1975 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1976 * toplev.c (rest_of_compilation): Document non-trivial aspect
1977 the RTL before optimize_save_area_alloca is run.
1979 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1981 * c-lex.c (indent_level): Remove.
1982 (cb_file_change, c_lex): Remove indent level handling.
1983 * c-lex.h (indent_level): Remove.
1984 * input.h (struct file_stack): Remove indent_level.
1985 * toplev.c (push_srcloc): Remove indent_level handling.
1987 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1990 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1991 of x in constraints for clarity.
1992 (sse_mov?fcc split): abort if op2 == op3.
1993 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1994 sse_movsfcc_const0_4): Add earlyclobber.
1995 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1996 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1997 Use Y instead of x in constraints.
1999 2002-05-23 Richard Henderson <rth@redhat.com>
2001 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
2002 (C++98 Thread-Local Edits): New subsection.
2004 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
2005 (ix86_arch): Set type to enum processor_type.
2007 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
2008 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
2010 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2012 * configure.in: Fix as version test for binutils 2.12.1 releases
2014 * configure: Rebuilt.
2016 2002-05-23 Richard Henderson <rth@redhat.com>
2018 * config/i386/i386.c (get_pic_label_name): New.
2019 (load_pic_register): Remove.
2020 (output_set_got): New.
2021 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
2022 * config/i386/i386.md (UNSPEC_SET_GOT): New.
2023 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
2024 (prologue_set_got, prologue_get_pc): Remove.
2025 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
2026 (builtin_setjmp_receiver): Use gen_set_got.
2027 * config/i386/i386-protos.h: Update.
2029 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
2031 * gcse.c (hash_expr): Do not use alias set for hashing.
2033 2002-05-22 Kevin Buettner <kevinb@redhat.com>
2035 * dbxout.c (dbxout_class_name_qualifiers): New function.
2036 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
2038 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
2040 * cpperror.c (_cpp_begin_message): No special casing
2042 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
2043 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
2044 * cpplib.c (do_include_common): Use DL_ERROR.
2045 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
2047 * fix-header.c (read_scan_file): Update.
2049 2002-05-22 Richard Henderson <rth@redhat.com>
2051 * config/i386/i386.c (ix86_expand_call): New function, extracted
2052 from md call patterns. Add pic_offset_table_rtx to
2053 CALL_INSN_FUNCTION_USAGE when needed.
2054 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
2055 (call_value_pop, call_value, untyped_call): Likewise.
2056 (call_exp, call_value_exp): Remove.
2057 * config/i386/i386-protos.h: Update.
2059 2002-05-22 Richard Henderson <rth@redhat.com>
2061 * varasm.c (default_section_type_flags): Check for VAR_DECL
2062 before using DECL_THREAD_LOCAL.
2064 2002-05-22 David Edelsohn <edelsohn@gnu.org>
2066 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
2067 (STARTFILE_SPEC): Delete PE crt0.o.
2068 * config/rs6000/aix51.h: Same.
2069 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
2070 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
2071 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
2072 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
2073 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
2075 2002-05-22 Richard Henderson <rth@redhat.com>
2077 * varasm.c (default_section_type_flags): Handle tls data and
2079 (default_unique_section): Handle tls sections.
2081 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2083 * configure.in (CROSS): Define NATIVE_CROSS.
2084 * configure: Regenerate.
2085 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
2086 (startfile_prefix_spec): New var.
2087 (static_specs): Add startfile_prefix_spec.
2088 (do_spec_2): Split out from..
2090 (main): Process startfile_prefix_spec.
2091 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
2093 (STARTFILE_PREFIX_SPEC): Define.
2094 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
2097 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
2099 * cpperror.c: Fix formatting.
2100 * cppexp.c: Likewise.
2101 * cppfiles.c: Likewise.
2102 * cpphash.c: Likewise.
2103 * cpphash.h: Likewise.
2104 * cppinit.c: Likewise.
2105 * cpplex.c: Likewise.
2106 * cpplib.c: Likewise.
2107 * cppmacro.c: Likewise.
2108 * cppmain.c: Likewise.
2109 * cppspec.c: Likewise.
2111 2002-05-22 Jakub Jelinek <jakub@redhat.com>
2113 * combine.c (force_to_mode): Use gen_int_mode.
2114 Don't clear CONST_INT bits outside of mode.
2116 2002-05-22 Richard Henderson <rth@redhat.com>
2118 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
2119 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2121 2002-05-22 Jakub Jelinek <jakub@redhat.com>
2124 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
2125 if DECL_SIZE_UNIT is INTEGER_CST.
2127 2002-05-22 Richard Henderson <rth@redhat.com>
2129 * flow.c (life_analysis): Delete broken reg_label check.
2131 2002-05-22 Richard Henderson <rth@redhat.com>
2133 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
2134 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2136 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2138 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
2139 (embed-bb.c): New rule.
2140 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
2141 * config/sh/embed_bb.c: Delete.
2143 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
2145 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
2147 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
2149 * config/h8300/h8300.md (*andorqi3): New.
2151 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
2153 PR preprocessor/6517
2154 * Makefile.in: Update.
2155 * c-common.c (c_common_post_options): Add preprocessor
2156 errors to the error count.
2157 * c-lang.c (c_post_options): Kill.
2158 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2159 * hooks.h: Add header guards.
2160 * langhooks-def.h: Include hooks.h.
2161 (LANG_HOOKS_POST_OPTIONS): Update.
2162 * langhooks.h (struct lang_hooks): Update post_options.
2163 * toplev.c (parse_options_and_default_flags): Update.
2165 * objc-lang.c (objc_post_options): Kill.
2166 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2168 2002-05-21 Bruce Korb <bkorb@gnu.org>
2170 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
2171 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
2172 * fixinc/fixincl.x: regen.
2174 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
2176 * cfgbuild.c: Fix formatting.
2178 * cfgcleanup.c: Likewise.
2179 * cfglayout.c: Likewise.
2180 * cfgloop.c: Likewise.
2181 * cfgrtl.c: Likewise.
2183 2002-05-21 Richard Henderson <rth@redhat.com>
2185 * c-common.h (enum rid): Add RID_THREAD.
2186 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
2187 (grokdeclarator): Grok __thread.
2188 * c-parse.in (reswords): Add __thread.
2189 (rid_to_yy): Add RID_THREAD.
2191 * tree.h (DECL_THREAD_LOCAL): New.
2192 (struct tree_decl): Add thread_local_flag.
2193 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
2194 * tree.c (staticp): TLS variables are not static.
2196 * target-def.h (TARGET_HAVE_TLS): New.
2197 * target.h (have_tls): New.
2198 * output.h (SECTION_TLS): New.
2199 * varasm.c (assemble_variable): TLS variables can't be common for now.
2200 (default_section_type_flags): Handle .tdata and .tbss.
2201 (default_elf_asm_named_section): Handle SECTION_TLS.
2202 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
2204 * flags.h (flag_tls_default): Declare.
2205 * toplev.c (flag_tls_default): Define.
2206 (display_help): Display help for it.
2207 (decode_f_option): Set it.
2209 * doc/extend.texi (Thread-Local): New node describing language-level
2210 thread-local storage.
2211 * doc/invoke.texi (-ftls-model): Document.
2213 * fixinc/inclhack.def (thread_keyword): New.
2214 * fixinc/fixincl.x: Rebuild.
2216 2002-05-21 Jeffrey A Law <law@redhat.com>
2218 * optabs.c (expand_binop): For double-word integer multiplies,
2219 do not compute intermediate results into something that is
2220 not a register (such as a SUBREG or MEM).
2222 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
2223 (ix86_sched_reorder): Make sure to initialize scheduling
2224 data even when there's only one insn in the ready queue.
2226 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
2228 * genautomata.c (reserv_sets_hash_value): Fix a typo.
2230 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
2232 * genautomata.c (reserv_sets_hash_value): Define hash_value as
2233 set_el_t. Transform the hash value into unsigned.
2234 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
2235 (transform_3): Add code to process `(A,B)+(D,E)'.
2237 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
2239 * reload1.c (do_output_reload): Run delete_output_reload
2242 2002-05-21 Roger Sayle <roger@eyesopen.com>
2245 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
2246 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
2247 (can_store_by_pieces): ... and here to limit the largest mode used.
2248 Add a comment to document this function.
2250 2002-05-21 Richard Henderson <rth@redhat.com>
2252 * flow.c (life_analysis): Fix test for deleted label.
2254 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
2256 * doc/tm.texi: Fix typo.
2258 2002-05-21 Zack Weinberg <zack@codesourcery.com>
2260 * c-common.c (c_common_init): Set options->unsigned_char from
2262 (cb_register_builtins): Define __STRICT_ANSI__ and
2263 __CHAR_UNSIGNED__ here...
2264 * cppinit.c (init_builtins): Not here.
2265 (cpp_create_reader): unsigned_char option defaults to 0, not
2266 !DEFAULT_SIGNED_CHAR.
2267 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
2268 and -funsigned-char.
2270 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
2271 * cpphash.c (_cpp_init_hashtable): Don't set it.
2272 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
2273 directly. Clarify comment.
2275 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2277 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
2278 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
2279 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
2280 BASIC_BLOCK (n_basic_blocks - 1).
2281 * cfganal.c (can_fallthru, flow_call_edges_add,
2282 flow_preorder_transversal_compute): Too.
2283 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
2284 find_sub_basic_blocks): Too.
2285 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
2286 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
2287 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
2288 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
2289 * combine.c (this_basic_block): Type changed to basic_block.
2290 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
2291 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2292 get_last_value, distribute_notes, distribute_links): Too.
2293 * final.c (compute_alignments): Too.
2294 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
2295 * function.c (thread_prologue_and_epilogue_insns): Too.
2296 * gcse.c (compute_code_hoist_vbeinout): Too.
2297 * global.c (build_insn_chain): Too.
2298 * ifcvt.c (find_if_block, find_cond_trap): Too.
2299 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
2300 * regmove.c (regmove_optimize): Too.
2301 * resource.c (find_basic_block): Too.
2302 * sched-ebb.c (schedule_ebbs): Too.
2303 * ssa-dce.c (find_control_dependence, find_pdom): Too.
2305 2002-05-21 Andreas Jaeger <aj@suse.de>
2307 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
2309 2002-05-21 Richard Henderson <rth@redhat.com>
2311 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
2312 unspec names, not numbers.
2314 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
2316 * doc/sourcebuild.texi: Mention snapshot-README and
2317 snapshot-index.html as needing updating for new front ends.
2319 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2321 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2322 disabling checking, and avoid multiple evaluation of RTX.
2324 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
2326 * bitmap.c (bitmap_find_bit): Return early if we have the correct
2329 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2331 * profile.c (gen_edge_profiler): Set alias set before the memory is
2334 2002-05-20 David S. Miller <davem@redhat.com>
2336 * cselib.c (max_value_regs): New.
2337 (cselib_lookup, cselib_invalidate_regno): Initialize it when
2338 adding new entries to the REG_VALUES table and we are dealing with
2340 (clear_table): Initialize it.
2341 (cselib_invalidate_regno): Use it to determine which hard
2342 registers to scan when mode is not VOIDmode.
2344 2002-05-20 Duraid Madina <duraid@fl.net.au>
2346 * tradcpp.c (fixup_newlines): Use old-style function header.
2348 2002-05-20 Krister Walfridsson <cato@df.lth.se>
2350 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2352 2002-05-20 H.J. Lu (hjl@gnu.org)
2354 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2356 * config/mips/mips.h (DFMODE_NAN): Defined.
2357 (SFMODE_NAN): Likewise.
2359 2002-05-20 Dale Johannesen <dalej@apple.com>
2361 * combine.c (cant_combine_insn_p): Back out my
2364 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2366 * params.c: Fix formatting.
2367 * params.h: Likewise.
2368 * predict.c: Likewise.
2369 * prefix.c: Likewise.
2370 * print-rtl.c: Likewise.
2371 * print-tree.c: Likewise.
2372 * profile.c: Likewise.
2374 2002-05-20 H.J. Lu (hjl@gnu.org)
2376 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2378 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
2380 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2381 switches straight on to the assembler, do not abbreviate them.
2382 * config/arm/elf.h (ASM_SPEC): As above.
2383 * config/arm/semi.h (ASM_SPEC): As above.
2384 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2385 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2386 -mcpu=xscale on to the assembler by default.
2387 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2389 2002-05-20 Richard Henderson <rth@redhat.com>
2391 * cse.c (canon_hash): Reorder do_not_record test. Always
2392 allow pic_offset_table_rtx.
2394 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
2396 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2397 (expand_binop): Ditto (3 times).
2399 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
2401 * Makefile.in (distclean): Remove QMTest stuff.
2402 (QMTEST_PATH): New variable.
2403 (QMTESTFLAGS): Likewise.
2404 (QMTESTRUNFLAGS): Likewise.
2406 (QMTEST_GPP_TESTS): Likewise.
2407 (QMTEST_DIR): Likewise.
2408 (QMTEST_DIR/context): New target.
2409 (qmtest-g++): Likeise.
2410 (qmtest-gui): Likewise.
2411 (QMTEST_DIR/gpp-expected.qmr): Likewise.
2413 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
2415 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2416 an altivec register if TARGET_ALTIVEC.
2418 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2419 to ALTIVEC_VECTOR_MODE.
2420 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2421 (rs6000_va_arg): Vectors may go in registers if they are not
2424 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
2426 * protoize.c: Fix formatting.
2428 2002-05-19 Richard Henderson <rth@redhat.com>
2430 * gensupport.c (init_include_reader): Merge into ...
2431 (process_include): ... here. Simplify composite path creation.
2432 Plug memory leaks. Fix file/line number tracking. Do not
2433 process_define_cond_exec. Return void.
2434 (process_rtx): Don't check process_include return value.
2436 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2438 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2440 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2441 traversing basic block chain.
2442 (create_basic_block_structure, create_basic_block): Declaration changed.
2443 (link_block, unlink_block): Declare.
2444 * cfg.c (entry_exit_blocks): Initialize new fields.
2445 (link_block, unlink_block): New.
2446 (expunge_block_nocompact): Unlink basic block.
2447 (dump_flow_info): Print prev_bb/next_bb fields.
2448 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2449 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2450 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2451 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2452 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2453 (verify_flow_info): Check that list agrees with numbering.
2455 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
2457 * c-common.c (preprocessing_asm): New macro.
2458 * c-lex.h (builtin_define, builtin_assert): Use pfile.
2462 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2463 (CPP_SPEC): Simplify.
2464 (TARGET_CPU_CPP_BUILTINS): Update.
2465 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2466 (CPP_SPEC): Simplify.
2467 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2468 (TARGET_OS_CPP_BUILTINS): Update.
2469 * osf.h (CPP_XFLOAT_SPEC): Kill.
2470 (TARGET_OS_CPP_BUILTINS): Update.
2471 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2472 * osf5.h (CPP_XFLOAT_SPEC): Kill.
2473 * vms.h (CPP_SUBTARGET_SPEC): Kill.
2474 (TARGET_OS_CPP_BUILTINS): Update.
2476 2002-05-19 Richard Henderson <rth@redhat.com>
2478 * varasm.c (default_binds_local_p): Fix typo.
2480 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
2482 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2483 CONST_INT operand to the correct mode after adding 1 to it.
2485 2002-05-19 Mark Mitchell <mark@codesourcery.com>
2487 * config.gcc (powerpc-wrs-windiss*): New target.
2489 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2491 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2494 2002-05-18 Mark Mitchell <mark@codesourcery.com>
2496 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2498 * config.in: Regenerated.
2499 * configure: Regenerated.
2501 2002-05-19 Richard Henderson <rth@redhat.com>
2503 * target-def.h (TARGET_BINDS_LOCAL_P): New.
2504 * target.h (struct gcc_target): Move boolean fields to the end.
2506 * varasm.c (default_binds_local_p): New.
2507 * output.h: Declare it.
2509 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2510 * config/cris/cris.c (cris_encode_section_info): Likewise.
2511 * config/i386/i386.c (i386_encode_section_info): Likewise.
2512 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2513 * config/sh/sh.c (sh_encode_section_info): Likewise.
2515 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2516 (TARGET_BINDS_LOCAL_P): New.
2518 2002-05-19 Richard Henderson <rth@redhat.com>
2520 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2521 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2522 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2524 * toplev.c (display_help): Kill -a -ax help.
2526 * config/1750a/1750a.h, config/alpha/alpha.h,
2527 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2528 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2529 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2530 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2532 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2533 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2535 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2536 (ix86_output_function_block_profiler): Kill.
2537 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2538 (m68hc11_function_block_profiler): Kill.
2539 * config/m68hc11/m68hc11-protos.h: Update.
2540 * config/m88k/m88k.c (output_block_profiler): Kill.
2541 (output_function_block_profiler): Kill.
2542 * config/m88k/m88k-protos.h: Update.
2544 2002-05-19 Richard Henderson <rth@redhat.com>
2546 * system.h (STRIP_NAME_ENCODING): Poison it.
2547 * output.h (STRIP_NAME_ENCODING): Remove.
2548 (default_strip_name_encoding): Declare.
2549 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2550 * target.h (strip_name_encoding): New.
2551 * varasm.c (default_strip_name_encoding): New.
2553 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2554 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2555 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2556 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2557 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2558 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2559 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2560 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2561 config/v850/v850.h: Use the hook, not the macro.
2563 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2564 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2565 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2566 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2567 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2568 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2569 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2570 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2571 config/v850/v850.c, config/v850/v850.h:
2572 Move STRIP_NAME_ENCODING to out-of-line function and add
2573 TARGET_STRIP_NAME_ENCODING.
2575 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2576 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2577 with TARGET_STRIP_NAME_ENCODING referencing existing function;
2578 make function static.
2580 * xcoffout.c: Include target.h
2581 * Makefile.in (xcoffout.o): Update.
2583 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2584 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2585 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2586 reloc argument unused.
2587 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2589 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2590 STRIP_NAME_ENCODING docs.
2592 2002-05-19 Andreas Jaeger <aj@suse.de>
2594 * gengenrtl.c: Add prototype for excluded_rtx.
2596 * real.h: Add prototype for exact_real_truncate.
2598 2002-05-18 Richard Henderson <rth@redhat.com>
2600 * system.h (ENCODE_SECTION_INFO): Poison it.
2601 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2602 * target.h (encode_section_info): New.
2603 * varasm.c (make_decl_rtl, output_constant_def): Use it.
2604 * hooks.c (hook_tree_int_void): New.
2605 * hooks.h: Declare it.
2607 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2608 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2609 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2610 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2611 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2612 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2613 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2614 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2615 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2616 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2617 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2618 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2619 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2620 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2621 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2622 referencing existing function. Make function static.
2624 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2625 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2626 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2627 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2628 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2629 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2630 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2631 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2632 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2633 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2634 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2635 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2636 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2637 Move ENCODE_SECTION_INFO to out-of-line function and add
2638 TARGET_ENCODE_SECTION_INFO.
2640 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2641 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2643 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2645 (switch_to_section): Replace in_rdata case with in_readonly_data.
2647 * config/h8300/h8300.c (h8300_encode_label): Make static.
2648 * config/h8300/h8300-protos.h: Update.
2650 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2651 from rs6000_encode_section_info; make static.
2652 (rs6000_xcoff_encode_section_info): New.
2654 * config/v850/v850.c (v850_encode_data_area): Make static.
2655 * config/v850/v850-protos.h: Update.
2657 * config/vax/vax.c: Include flags.h.
2658 (vms_select_section): Fix typo.
2660 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2661 ENCODE_SECTION_INFO docs.
2663 2002-05-18 Richard Henderson <rth@redhat.com>
2665 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2666 REGISTER_TARGET_PRAGMAS.
2667 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2669 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2671 2002-05-18 Richard Henderson <rth@redhat.com>
2673 * system.h (SELECT_RTX_SECTION): Poison.
2674 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2675 * target.h (select_rtx_section): New.
2676 * varasm.c (output_constant_pool): Use it.
2677 (default_select_rtx_section, default_elf_select_rtx_section): New.
2678 * output.h: Declare them.
2680 * config/darwin.h (SELECT_RTX_SECTION): Move ...
2681 * config/darwin.c (machopic_select_rtx_section): ... here.
2682 * config/darwin-protos.h: Update.
2684 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2685 * config/nextstep.c (machopic_select_rtx_section): ... here.
2686 (nextstep_select_section): Rename variable to avoid macro clash.
2687 * config/nextstep-protos.h: Update.
2689 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2690 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2691 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2692 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2693 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2694 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2695 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2696 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2697 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2698 (SELECT_RTX_SECTION): Remove.
2700 * config/darwin.h, config/elfos.h, config/nextstep.h,
2701 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2702 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2703 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2704 config/sparc/lynx.h, config/xtensa/xtensa.c
2705 (TARGET_ASM_SELECT_RTX_SECTION): New.
2707 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2708 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2709 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2710 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2711 (ia64_aix_select_rtx_section): New.
2712 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2714 * config/mips/mips.c (mips_select_rtx_section): Make static.
2715 Support ELF SHF_MERGE features.
2716 * config/mips/mips-protos.h: Update.
2717 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2718 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2719 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2720 make static, fall back to default_elf_select_rtx_section.
2721 * config/rs6000/rs6000-protos.h: Update.
2722 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2723 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2724 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2725 * config/romp/romp.c (romp_select_rtx_section): New.
2726 * config/s390/s390.c (s390_select_rtx_section): New.
2727 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
2728 declarations before target macro definition.
2729 (xtensa_emit_call): Use static buffer.
2730 (xtensa_select_rtx_section): New.
2731 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2732 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2733 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2735 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2736 SELECT_RTX_SECTION docs.
2738 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
2740 * i386.md (movsi/movdi): Fix template.
2741 (sse2 patterns): Set attributes consistently.
2743 * i386.md (pushqi2, ashrqi_*): Fix constraint.
2745 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
2747 * optabs.c (complex_part_zero_p): New.
2748 * (expand_cmplxdiv_straight): Use it.
2749 * (expand_cmplxdiv_wide): Ditto.
2750 * (expand_binop): Ditto.
2752 2002-05-18 Richard Henderson <rth@redhat.com>
2754 * final.c (HAVE_READONLY_DATA_SECTION): New.
2755 (shorten_branches): Use it instead of ifdefs.
2756 * varasm.c (enum in_section): Add in_readonly_data.
2757 (text_section, data_section): Tidy.
2758 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2760 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2761 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2762 (READONLY_DATA_SECTION): Don't undef.
2764 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2765 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2766 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2768 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2769 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2770 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2771 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2773 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2774 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2775 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2776 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2777 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2778 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2779 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2780 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2781 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2783 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2784 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2785 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2786 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2787 config/pa/pa64-hpux.h, config/sparc/litecoff.h
2788 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2790 * config/elfos.h, config/netware.h, config/svr3.h,
2791 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2792 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2793 config/h8300/h8300.h, config/i386/i386-interix.h,
2794 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2795 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2797 * config/elfos.h, config/netware.h, config/svr3.h,
2798 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2799 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2800 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2801 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2803 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2804 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2805 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2806 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2807 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2808 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2809 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2810 config/rs6000/sysv4.h, config/v850/v850.h
2811 (EXTRA_SECTIONS): Remove in_const/in_rdata.
2812 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2814 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2815 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2816 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2817 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2818 * config/alpha/alpha.c (alpha_start_function): Likewise.
2819 (alpha_write_linkage): Likewise.
2820 * config/m32r/m32r.c (m32r_select_section): Likewise.
2821 * config/m88k/m88k.c (m88k_select_section): Likewise.
2822 * config/mips/mips.c (mips_select_rtx_section): Likewise.
2823 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2824 (rs6000_elf_select_section): Likewise.
2825 * config/v850/v850.c (v850_select_section): Likewise.
2827 * config/1750a/1750a.h, config/i860/sysv3.h
2828 (READONLY_DATA_SECTION_ASM_OP): New.
2829 READONLY_DATA_SECTION_ASM_OP.
2830 * config/i386/interix.c, config/i386/winnt.c
2831 (i386_pe_unique_section): Always use .rdata prefix.
2832 * config/pa/som.h (readonly_data): Always switch to read-only section.
2833 (READONLY_DATA_SECTION): Predicate on flag_pic.
2834 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2835 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2836 (READONLY_DATA_SECTION): Update.
2838 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
2840 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2841 is used without -Wformat.
2842 * c-common.h (warn_format_zero_length): Declare extern.
2843 * c-decl.c (warn_options): Add "format-zero-length".
2844 * c-format.c (warn_format_zero_length): Declare.
2845 (set_Wformat): Set warn_format_zero_length for -Wformat.
2846 (check_format_info): Only warn about zero-length formats if
2847 warn_format_zero_length is true. Include the format type
2848 name in the warning message.
2849 * doc/invoke.texi: Document -Wformat-zero-length.
2850 * testsuite/gcc.dg/format/zero-length-1.c: New test.
2852 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2854 * timevar.c: Fix formatting.
2855 * tlink.c: Likewise.
2856 * toplev.c: Likewise.
2857 * tree-dump.c: Likewise.
2858 * tree-inline.c: Likewise.
2860 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2862 * cppinit.c (cpp_post_options): If preprocessed, turn off
2863 traditional. If traditional, turn off column numbers.
2864 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2865 * cpptrad.c (handle_newline): Update line_base.
2866 (skip_comment): Handle -Wcomment.
2868 2002-05-17 Zack Weinberg <zack@codesourcery.com>
2870 * cppinit.c (struct builtin): Remove unused fields.
2871 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2872 (operator_array): New - was second half of builtin_array.
2873 (init_builtins): Simplify loop over builtin_array/operator_array.
2875 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2877 * defaults.h (UNIQUE_SECTION): Remove.
2878 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2880 2002-05-17 Richard Henderson <rth@redhat.com>
2882 * expr.c (init_expr_once): Don't use start/end_sequence.
2883 Use rtx_alloc instead of emit_insn.
2884 * toplev.c (lang_dependent_init): Run init_expr_once here ...
2885 (lang_independent_init): ... not here.
2887 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2889 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2891 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2893 * config/avr/avr.c (avr_regs_to_save): New function. Also check
2894 for fixed registers, possibly used for global register variables.
2895 (initial_elimination_offset, avr_output_function_prologue,
2896 avr_output_function_epilogue): Move common code to avr_regs_to_save.
2898 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2900 * Makefile.in: Update for cpptrad.c.
2901 * cpphash.h (struct cpp_buffer): New members for buffer
2903 (struct cpp_reader): New members for traditional output.
2904 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2905 * cppinit.c (cpp_create_reader): Set trad_line.
2906 (cpp_destroy): Free trad_out_base if used.
2907 (cpp_read_main_file): Overlay an empty buffer if traditional.
2908 (cpp_finish_options): Don't do builtins.
2909 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2910 (cpp_handle_option): Handle it.
2911 * cpplex.c (continue_after_nul): New.
2912 (_cpp_lex_direct): Use handle_nul.
2913 * cpplib.h (struct cpp_options): New traditional option.
2914 * cpptrad.c: New file.
2916 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2918 * c-common.c (c_common_init_options): Use C89 for Objective-C,
2919 and set the options flag.
2920 * cppinit.c (lang_flags): Remove objc.
2921 (lang_defaults): Remove OBJC and OBJCXX.
2923 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2924 (cpp_handle_option): Remove -+ and -lang-objc++.
2925 For ObjC, just set a flag.
2926 (print_help): Update.
2927 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2929 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2931 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2932 bootstrap with -mips3.
2934 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2936 * final.c: Fix formatting.
2937 * fix-header.c: Likewise.
2939 * fold-const.c: Likewise.
2940 * function.c: Likewise.
2942 2002-05-17 David S. Miller <davem@redhat.com>
2944 PR c/6689, PR optimization/6615
2945 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2946 and make it a pointer to rtx. Update comments.
2947 (update_equiv_regs): When scanning for equivalences, record
2948 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2949 it while making the equiv replacements.
2951 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2953 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2955 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2957 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2958 when encoding visibility into SYMBOL_REF_FLAG.
2960 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2962 * expr.c (force_operand): Fix reversed move.
2964 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2966 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2967 that can be ignored.
2969 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2971 * doc/install.texi (Final install): Recommend to install into a
2972 "clean" target directory.
2974 2002-05-17 Richard Henderson <rth@redhat.com>
2976 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2977 for code blocks. Tidy whitespace.
2979 2002-05-17 Richard Henderson <rth@redhat.com>
2981 * hooks.c (hook_tree_bool_false): New.
2982 * hooks.h: Declare it.
2983 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2984 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2985 * target.h (select_section, unique_section): New.
2986 (in_small_data_p): New.
2987 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2988 (variable_section, output_constant_def_contents): Likewise.
2989 (default_select_section, default_unique_section): New.
2990 (categorize_decl_for_section, default_elf_select_section): New.
2991 * output.h: Declare them.
2993 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2994 (TARGET_ASM_SELECT_SECTION): New.
2995 (SELECT_SECTION): Move ...
2996 * config/darwin.c (machopic_select_section): ... here.
2997 * config/darwin-protos.h: Update.
2999 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
3000 (SELECT_SECTION): Move ...
3001 * config/nextstep.c (nextstep_select_section): ... here.
3002 * config/nextstep-protos.h: Update.
3004 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
3005 (TARGET_ASM_SELECT_SECTION): New.
3006 * config/svr3.h (SELECT_SECTION): Remove.
3008 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
3009 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
3010 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
3011 (alpha_encode_section_info): Use it.
3012 * config/alpha/alpha-protos.h: Update.
3013 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
3014 (SELECT_SECTION, UNIQUE_SECTION): Remove.
3015 (TARGET_ASM_SELECT_SECTION): New.
3016 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
3018 * config/arm/pe.h (UNIQUE_SECTION): Remove.
3019 (TARGET_ASM_UNIQUE_SECTION): New.
3021 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
3022 (avr_unique_section): Rename from unique_section; make static.
3023 * config/avr/avr-protos.h: Update.
3024 * config/avr/avr.h (UNIQUE_SECTION): Remove.
3026 * config/c4x/c4x.h (SELECT_SECTION): Remove.
3028 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
3029 (TARGET_ASM_UNIQUE_SECTION): New.
3030 * config/i386/i386-interix.h: Likewise.
3031 * config/i386/win32.h: Likewise.
3032 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
3033 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
3034 * config/i386/sco5.h (SELECT_SECTION): Remove.
3035 (TARGET_ASM_SELECT_SECTION): New.
3036 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
3038 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
3039 instead of SELECT_SECTION.
3040 * config/m68k/dpx2.h: Likewise.
3041 * config/rs6000/lynx.h: Likewise.
3043 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
3044 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
3045 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
3046 (ia64_in_small_data_p): New.
3047 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
3048 (ia64_aix_select_section, ia64_aix_unique_section): New.
3049 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
3050 (SELECT_SECTION, UNIQUE_SECTION): Remove.
3052 * config/m32r/m32r.h (SELECT_SECTION): Remove.
3053 (TARGET_ASM_SELECT_SECTION): New.
3054 * config/m32r/m32r.c (m32r_select_section): Take align argument.
3055 * config/m32r/m32r-protos.h: Update.
3057 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
3058 (SELECT_SECTION): Move ...
3059 * config/m88k/m88k.c (m88k_select_section): ... here.
3061 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
3062 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
3063 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
3064 (mcore_unique_section): Make static.
3065 * config/mcore/mcore-protos.h: Update.
3067 * config/mips/elf.h (UNIQUE_SECTION): Remove.
3068 (TARGET_ASM_UNIQUE_SECTION): New.
3069 * config/mips/elf64.h: Likewise.
3070 * config/mips/iris6gld.h: Likewise.
3071 * config/mips/linux.h: Likewise.
3072 * config/mips/mips-protos.h: Update.
3073 * config/mips/mips.c (mips_select_section): Add align argument.
3074 * config/mips/mips.h (SELECT_SECTION): Remove.
3075 (TARGET_ASM_SELECT_SECTION): New.
3077 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
3078 * config/mmix/mmix.c (mmix_select_section): Remove.
3079 (mmix_unique_section): Remove.
3080 * config/mmix/mmix-protos.h: Update.
3082 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
3083 (SELECT_SECTION): Move ...
3084 * config/pa/pa.c (pa_select_section): ... here.
3085 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
3087 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
3088 from rs6000_select_section and make static.
3089 (rs6000_elf_unique_section): Similarly.
3090 (rs6000_xcoff_select_section): From xcoff.h.
3091 (rs6000_xcoff_unique_section): Likewise.
3092 * config/rs6000/rs6000-protos.h: Update.
3093 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
3094 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
3095 * config/rs6000/xcoff.h: Likewise.
3097 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
3098 (SELECT_SECTION): Move ...
3099 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
3101 * config/v850/v850.h (SELECT_SECTION): Move ...
3102 * config/v850/v850.c (v850_select_section): ... here.
3103 (TARGET_ASM_SELECT_SECTION): New.
3105 * config/vax/vms.h (SELECT_SECTION): Move ...
3106 * config/vax/vax.c (vms_select_section): ... here.
3107 (TARGET_ASM_SELECT_SECTION): New.
3109 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
3110 for the target hooks.
3112 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
3114 * config/arm/arm.c (emit_multi_reg_push): Do not set
3115 RTX_FRAME_RELATED_P on the SEQUENCE.
3117 2002-05-16 Richard Henderson <rth@redhat.com>
3119 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
3120 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
3122 2002-05-16 Richard Henderson <rth@redhat.com>
3124 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
3126 * config/ia64/ia64.c (saveable_obstack): Do not declare.
3128 2002-05-16 Richard Henderson <rth@redhat.com>
3130 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
3131 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
3132 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
3133 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
3134 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
3135 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
3136 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
3137 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
3138 Revert "Basic block renumbering removal", and two followup patches.
3140 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
3142 * lcm.c (optimize_mode_switching): Revert previous change.
3144 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3146 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
3147 with only extant block numbers.
3149 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
3151 * lcm.c (optimize_mode_switching): Fix typo.
3153 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3155 * flow.c (calculate_global_regs_live): Queue blocks in program order.
3157 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3159 * doc/install.texi (Configuration): Document PWDCMD.
3161 2002-05-16 Dale Johannesen <dalej@apple.com>
3163 * combine.c (cant_combine_insn_p): Reenable combinations
3164 involving hard regs unless CLASS_LIKELY_SPILLED_P.
3166 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3168 * c-common.c (cb_register_builtins): Handle more built-ins
3169 here rather than in gcc.c specs.
3170 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
3171 (cpp_options): Pass -O flags even when only preprocessing.
3172 * toplev.c (set_fast_math_flags): New prototype.
3173 (fast_math_flags_set_p): New.
3174 (set_no_fast_math_flags): Remove.
3175 (decode_f_option): Update.
3176 * toplev.h (set_fast_math_flags): Update.
3177 (fast_math_flags_set_p): New.
3178 (set_no_fast_math_flags): Remove.
3180 * c4x/c4x.c (c4x_override_options): Update.
3182 2002-05-16 Zack Weinberg <zack@codesourcery.com>
3184 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
3185 Default-define here.
3186 (builtin_define_with_value): Can now wrap the expansion in
3187 quotation marks if such is wanted.
3188 (cb_register_builtins): Update calls to builtin_define_with_value.
3189 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
3191 (c_common_init): Set options->stdc_0_in_system_headers.
3192 * c-lex.h: Update prototype of builtin_define_with_value.
3193 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
3194 and REGISTER_PREFIX.
3196 * cppinit.c (VERS, ULP, C, X): Kill.
3197 (builtin_array): Remove entries for __VERSION__,
3198 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
3199 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
3201 (init_builtins): Kill off a bunch of now-dead code.
3202 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
3203 -fno-leading-underscore.
3204 (cpp_handle_option): Remove code to set user_label_prefix.
3205 (cpp_post_options): Likewise.
3207 * cpplib.h (struct cpp_options): Remove user_label_prefix.
3208 (stdc_0_in_system_headers): New.
3209 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
3210 stdc_0_in_system_headers) too to decide the value of __STDC__.
3212 * tradcpp.c (user_label_prefix): Kill.
3213 (main): Remove code handling -f(no-)leading-underscore.
3214 (initialize_builtins): Don't define __REGISTER_PREFIX__
3215 or __USER_LABEL_PREFIX__.
3216 (install_value): Wrap compound statement in dummy loop so the
3217 macro works properly in an if statement.
3220 2002-05-16 Janis Johnson <janis187@us.ibm.com>
3222 * loop.h (struct loop_info): Add member has_prefetch.
3223 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
3224 (prescan_loop): Initialize has_prefetch.
3225 (struct prefetch_info): Change prefetch_in_loop and
3226 prefetch_before_loop from bit fields to ints.
3227 (emit_prefetch_instructions): Several small fixes.
3228 (check_dbra_loop): Don't reverse loop that uses prefetch.
3230 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3232 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
3233 * configure.in: Likewise.
3234 * fixinc/check.tpl: Likewise.
3235 * fixinc/fixinc.dgux: Likewise.
3236 * fixinc/fixinc.svr4: Likewise.
3237 * fixinc/fixinc.winnt: Likewise.
3238 * fixinc/fixincl.sh: Likewise.
3239 * fixproto: Likewise.
3240 * configure: Regenerate.
3242 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3244 Basic block renumbering removal:
3245 * basic_block.h (struct basic_block_def): Renamed index to sindex,
3246 added prev_bb and next_bb fields.
3247 (n_basic_blocks): Renamed to num_basic_blocks.
3248 (last_basic_block): New, index of last basic block.
3249 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3250 traversing basic block chain.
3251 (BLOCK_NUM): index -> sindex.
3252 (create_basic_block_structure, create_basic_block): Declaration changed.
3253 (debug_num2bb): Declare.
3254 (expunge_block_nocompact): Declaration removed.
3255 (link_block, unlink_block, compact_blocks): Declare.
3256 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
3257 * cfg.c (entry_exit_blocks): Initialize new fields.
3258 (clear_edges, alloc_block, expunge_block, cached_make_edge,
3259 redirect_edge_pred, dump_flow_info, dump_edge_info,
3260 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
3261 free_aux_for_edges): Modified.
3262 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
3263 (expunge_block_nocompact): Removed.
3264 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
3265 find_unreachable_blocks, create_edge_list, print_edge_list,
3266 verify_edge_list, flow_edge_list_print, remove_fake_successors,
3267 remove_fake_edges, flow_reverse_top_sort_order_compute,
3268 flow_depth_first_order_compute, flow_preorder_transversal_compute,
3269 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
3270 flow_dfs_compute_reverse_execute): Modified.
3271 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
3272 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
3274 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3275 merge_blocks_move_predecessor_nojumps,
3276 merge_blocks_move_successor_nojumps, merge_blocks,
3277 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
3278 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
3279 * cfglayout.c (skip_insns_after_block, label_for_bb,
3280 record_effective_endpoints, scope_to_insns_finalize,
3281 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
3282 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
3283 cfg_layout_duplicate_bb): Modified.
3284 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
3285 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3286 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
3287 flow_loops_find, flow_loop_outside_edge_p): Modified.
3288 * cfgrtl.c (create_basic_block_structure, create_basic_block,
3289 flow_delete_block, compute_bb_for_insn, split_block,
3290 try_redirect_by_replacing_jump, redirect_edge_and_branch,
3291 force_nonfallthru_and_redirect, tidy_fallthru_edge,
3292 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
3293 commit_edge_insertions, commit_edge_insertions_watch_calls,
3294 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3295 purge_all_dead_edges): Modified.
3296 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
3297 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3298 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
3300 * conflict.c (conflict_graph_compute): Modified.
3301 * df.c (FOR_ALL_BBS): Removed.
3302 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3303 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
3304 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
3305 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
3306 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3307 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
3308 * final.c (compute_alignments, final_scan_insn): Modified.
3309 * flow.c (verify_local_live_at_start, update_life_info,
3310 update_life_info_in_dirty_blocks, free_basic_block_vars,
3311 delete_noop_moves, calculate_global_regs_live,
3312 initialize_uninitialized_subregs, allocate_bb_life_data,
3313 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
3314 mark_used_reg, count_or_remove_death_notes): Modified.
3315 * function.c (thread_prologue_and_epilogue_insns): Modified.
3316 * gcse.c (struct null_pointer_info): Change typo of current_block
3318 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3319 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3320 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3321 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3322 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3323 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3324 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3325 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3326 pre_delete, one_pre_gcse_pass, compute_transpout,
3327 invalidate_nonnull_info, delete_null_pointer_checks_1,
3328 free_code_hoist_mem, compute_code_hoist_vbeinout,
3329 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3330 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3331 compute_store_table, build_store_vectors, insert_insn_start_bb,
3332 insert_store, replace_store_insn, free_store_memory, store_motion):
3334 * global.c (global_alloc, global_conflicts, mark_elimination,
3335 build_insn_chain): Modified.
3336 * graph.c (print_rtl_graph_with_bb): Modified.
3337 * haifa-sched.c (sched_init): Modified.
3338 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3339 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3340 if_convert): Modified.
3341 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3342 compute_insert_delete, pre_edge_lcm, compute_available,
3343 compute_farthest, compute_nearerout, compute_rev_insert_delete,
3344 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3346 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3347 * loop.c (loop_dump_aux): Modified.
3348 * predict.c (combine_predictions_for_insn, estimate_probability,
3349 last_basic_block_p, process_note_prediction, process_note_predictions,
3350 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3351 expensive_function_p, estimate_bb_frequencies,
3352 compute_function_frequency): Modified.
3353 * print-rtl.c (print_rtx): Modified.
3354 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3355 get_exec_counts, compute_branch_probabilities, compute_checksum,
3356 branch_prob, find_spanning_tree): Modified.
3357 * recog.c (split_all_insns, peephole2_optimize): Modified.
3358 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3359 convert_regs_1, convert_regs_2, convert_regs): Modified.
3360 * regclass.c (scan_one_insn, regclass): Modified.
3361 * regmove.c (mark_flags_life_zones, regmove_optimize,
3362 combine_stack_adjustments): Modified.
3363 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3364 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3365 * reorg.c (dbr_schedule): Modified.
3366 * resource.c (find_basic_block, init_resource_info): Modified.
3367 * sbitmap.c (sbitmap_intersection_of_succs,
3368 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3369 sbitmap_union_of_preds): Modified.
3370 * sched-deps.c (init_dependency_caches): Modified.
3371 * sched-ebb.c (schedule_ebbs): Modified.
3372 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3373 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3374 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3375 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3376 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3377 ssa_const_prop): Modified.
3378 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3379 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3380 * ssa.c (remove_phi_alternative, find_evaluations,
3381 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3382 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3383 make_regs_equivalent_over_bad_edges,
3384 make_equivalent_phi_alternatives_equival,
3385 compute_conservative_reg_partition,
3386 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3387 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3390 2002-05-16 Mark Mitchell <mark@codesourcery.com>
3392 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3394 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
3396 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3397 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3398 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3399 calling CONSTANT_POOL_ADDRESS_P.
3400 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3401 to decide whether to define __arm__ or __thumb.
3402 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3403 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3405 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3407 * config/arc/arc.h (CPP_PREDEFINES): Remove.
3409 (TARGET_CPU_CPP_BUILTINS): New.
3411 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3413 * cpphash.h (cpp_macro): Move here, and make expansion a union.
3414 * cppmacro.c (cpp_macro): Remove.
3415 (enter_macro_context, replace_args, warn_of_redefinition,
3416 _cpp_create_definition, cpp_macro_definition): Update.
3418 2002-05-16 Jason Merrill <jason@redhat.com>
3420 * config/mips/mips.c (mips_output_external): Don't do sdata
3421 optimization for a variable with DECL_COMDAT set.
3423 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3425 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3426 Cleanups for accepting modifiers on pointers.
3427 Fix predicate typos.
3428 Allow long pointers as well as int pointers.
3430 2002-05-15 Richard Henderson <rth@redhat.com>
3432 * varasm.c (merge_weak): Remove special case for extern and common.
3434 2002-05-15 Matt Hiller <hiller@redhat.com>
3436 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3438 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3439 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3440 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3441 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3442 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3443 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3445 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3447 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3449 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3451 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3452 ("altivec_mfvscr"): Read from VSCR.
3454 Add vscr sets for the following insns: altivec_vctuxs,
3455 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3456 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3457 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3458 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3459 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3460 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3461 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3462 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3463 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3464 altivec_vsum2sws, altivec_vsumsws.
3466 * config/rs6000/rs6000.h: Add VSCR fixed register.
3467 (CALL_REALLY_USED_REGISTERS): Add vscr.
3468 (CALL_USED_REGISTERS): Same.
3469 (FIXED_REGISTERS): Same.
3470 (REG_ALLOC_ORDER): Same.
3471 (reg_class): Add VSCR_REGS.
3472 (REG_CLASS_NAMES): Same.
3473 (REG_CLASS_CONTENTS): Same.
3475 (REGISTER_NAMES): Add vscr.
3476 (DEBUG_REGISTER_NAMES): Same.
3477 (ADDITIONAL_REGISTER_NAMES): Same.
3478 (FIRST_PSEUDO_REGISTER): Increment.
3479 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3481 2002-05-15 Jakub Jelinek <jakub@redhat.com>
3483 * fold-const.c (fold): Fix a typo.
3485 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
3487 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3488 comparison against the highest or lowest integer value before
3489 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3490 transformation and that of an unsigned comparison against 0
3493 2002-05-15 Richard Henderson <rth@redhat.com>
3495 * varasm.c (merge_weak): Error for any weakening after definition.
3496 Adjust weakening after use warning to catch more cases.
3497 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3498 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3500 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
3502 * invoke.texi (-malign-double): Re-add lost warning.
3504 * i386-protos.h (x86_output_mi_thunk): Declare.
3505 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3506 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3508 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3509 when flag_asynchronous_unwind_tables is set.
3511 * flags.h (flag_reorder_functions): Declare.
3512 * function.c (prepare_function_start): Initialize frequnecy.
3513 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3514 * Makefile.in (predict.o): Add dependency on target.h and params.h
3515 * defaults.h (HOT_TEXT_SECTION_NAME,
3516 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3517 * predict.c (choose_function_section): New function.
3518 (estimate_bb_frequencies): Use it.
3519 * toplev.c (flag_reorder_functions): New global variable.
3520 (lang_independent_options): New.
3521 (parse_options_and_default_flags): Set.
3522 * varasm.c (assemble_start_function): Bypass functdion alignment
3523 for never executed functions.
3524 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3525 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3526 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3529 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
3531 * predict.c: Inlude profile.h
3532 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3533 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3534 Use the information about maximal counter in the program.
3536 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
3538 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3539 probably_never_executed_bb_p): New functions.
3540 * cfgcleanup.c (outgoing_edges_match): Use them.
3541 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3542 (maybe_hot_bb_p, probably_cold_bb_p,
3543 probably_never_executed_bb_p): New functions.
3545 * function.h (function): Add new field function_frequency.
3546 * predict.c (compute_function_frequency): New function.
3547 (estimate_probability): Call it.
3549 2002-03-09 Jakub Jelinek <jakub@redhat.com>
3551 PR optimization/5172, optimization/5200
3552 * gcse.c (gcse_main): Disable store_motion.
3554 2002-05-14 Zack Weinberg <zack@codesourcery.com>
3556 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3557 (c_common_nodes_and_builtins): Use it.
3558 (builtin_define_with_value): New function.
3559 (cb_register_builtins): Define __SIZE_TYPE__,
3560 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3561 using builtin_define_with_value. Use consistent notation when
3562 defining __GXX_WEAK__.
3563 (WCHAR_TYPE_SIZE): Don't redefine.
3564 (combine_strings): Don't use WCHAR_TYPE_SIZE.
3566 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3567 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3568 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3569 * tradcpp.c (initialize_builtins): Likewise.
3570 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3572 * c-lex.h (builtin_define_with_value): Prototype.
3573 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3574 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3575 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3577 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3578 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3579 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3580 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3581 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3582 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3583 config/sparc/sol2-bi.h, config/sparc/sparc.h:
3584 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
3585 to __SIZE_TYPE__ etc from all spec strings. When this makes
3586 extra specs empty, delete them.
3588 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
3590 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3591 for PA8000 or generating dwarf2 call frame information.
3592 (output_call): Remove DO_FRAME_NOTES check from return pointer
3594 (following_call): Return 0 when scheduling for PA8000 or generating
3595 dwarf2 call frame information. Revise comment.
3597 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3600 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3601 and __IEEE_FP_INEXACT as appropriate.
3602 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3603 (CPP_SPEC): Remove ieee defines.
3604 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3606 2002-05-14 Richard Henderson <rth@redhat.com>
3608 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3609 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3611 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3613 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3615 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3616 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3617 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3618 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3619 (EXTRA_SPECS): Update.
3620 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3621 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3622 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3623 define TARGET_OS_CPP_BUILTINS if necessary.
3625 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3627 * gcc.c (cpp_options): Must pass -m* and -f* options
3628 to the front end even when only preprocessing.
3629 (cc1_options): Remove redundant -lang-c.
3630 * tradcpp.c (main): Ignore -m options.
3632 * lang-specs.h: Similarly.
3634 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
3636 * genautomata.c (transform_3): Add code for transformation
3637 `(A,B,...)+C -> A+C,B,...'.
3639 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
3641 * final.c (end_final): Do not output profile_arcs constructor, when
3642 no functions are instrumented.
3644 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
3646 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3648 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3650 * doc/install.texi: Remove special markup originally required for
3651 HTML generation with texi2html.
3653 2002-05-14 Andreas Schwab <schwab@suse.de>
3655 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3657 (UNIQUE_SECTION): Define to get small data correctly.
3659 * varasm.c (resolve_unique_section): Add third parameter
3660 flag_function_or_data_sections and use it instead of
3661 flag_function_sections.
3662 (assemble_start_function): Pass flag_function_sections.
3663 (asm_emit_uninitialised): Pass flag_data_sections.
3664 (assemble_variable): Likewise.
3666 2002-05-14 Richard Henderson <rth@redhat.com>
3668 * config/i386/i386.md: Use define_constants for unspec numbers.
3669 * config/i386/i386.c: Likewise.
3671 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3673 * doc/contrib.texi: Update my entry.
3675 2002-05-13 Mark Mitchell <mark@codesourcery.com>
3677 * fixinc/inclhack.def (winidss_valist): Limit applicability.
3678 * fixinc/fixincl.x: Regenerated.
3679 * fixinc/tests/base/math.h: Update.
3680 * fixinc/tests/base/testing.h: Likewise.
3682 2002-05-13 Zack Weinberg <zack@codesourcery.com>
3684 * genattr.c (gen_attr): Don't emit a comma after the last
3687 2002-05-13 Richard Henderson <rth@redhat.com>
3689 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3691 * recog.c (peephole2_optimize): Likewise.
3693 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
3695 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3698 2002-05-13 Jeffrey A Law (law@redhat.com)
3700 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3701 Update prototype and callers.
3702 (propagate_one_insn): Stack pointer adjustments kill MEMs on
3703 the mem_set_list which reference the stack pointer, as do
3704 calls to constant functions as they may clobber outgoing
3707 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3709 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3710 (ia32_multipass_dfa_lookahead): New function.
3712 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3714 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3715 (translate_options): Remove 'V'.
3716 (process_command): Similarly.
3718 * invoke.texi: Remove documentation of 'V'.
3720 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3722 * config/s390/linux.h: Revert 2002-04-22 changes.
3724 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
3726 * config/fr30/fr30.md: Only allow splits of immediate loads
3727 if the destination is a register.
3729 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3731 * Makefile.in (c-common.o, cppinit.o): Update.
3732 * c-common.c: Include except.h.
3733 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3734 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3735 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3736 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3737 CPP_PREDEFINES): Handle here.
3739 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3740 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3741 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3742 TARGET_OS_CPP_BUILTINS.
3743 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3744 (CPP_SPEC, EXTRA_SPECS): Update.
3745 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3746 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3747 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3748 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3749 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3751 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3752 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3754 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3756 * emit-rtl.c (global_rtl): Update comment.
3757 (const_double_htab, const_double_htab_hash,
3758 const_double_htab_hash, lookup_const_double): New.
3759 (const_int_htab_hash, const_int_htab_eq): Remove const
3760 qualifiers, which cause tons of warnings with RTL checking on.
3761 (gen_rtx_CONST_DOUBLE): Deleted.
3762 (const_double_from_real_value): New function - bears some
3763 resemblance to the former immed_real_const_1.
3764 (immed_double_const): Moved here from varasm.c and
3766 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3767 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3768 (gen_rtx): Use immed_double_const.
3769 (init_emit_once): Initialize the const_double_htab. Use
3770 REAL_VALUE_FROM_INT where possible. Can now use
3771 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3772 * varasm.c (struct varasm_status): Remove x_const_double_chain.
3773 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3774 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3775 (init_varasm_status, mark_varasm_status): Don't touch
3776 x_const_double_chain.
3778 * output.h: Delete prototype for clear_const_double_mem.
3779 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
3780 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
3781 const_double_from_real_value, not immed_real_const_1, and use
3782 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
3784 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3785 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3786 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3787 (gen_rtx_REG): Second arg is unsigned.
3789 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3790 (excluded_rtx): New, return true for CONST_DOUBLE.
3791 (genmacro): Write nothing for excluded codes.
3792 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3793 * expr.c (expand_expr): Likewise.
3794 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3796 * toplev.c (rest_of_compilation): Don't call
3797 clear_const_double_mem.
3799 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3800 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3801 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3802 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3803 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3804 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3805 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3806 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3808 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3810 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3812 2002-05-12 Tom Tromey <tromey@redhat.com>
3814 * tree.h (copy_node): Don't mention TREE_PERMANENT.
3816 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3818 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3819 (scan_comma_elt): New function. Accepts whitespace in comma lists.
3820 * gensupport.h: Prototype new routines.
3821 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
3823 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3824 (next_comma_elt): Use scan_comma_elt.
3826 * config/i386/i386.md: Use new attribute notation to break up
3827 long lines in define_attr forms.
3829 2002-05-12 Richard Henderson <rth@redhat.com>
3831 * expr.c (compress_float_constant): New.
3832 (emit_move_insn): Use it.
3833 (float_extend_from_mem): New.
3834 (init_expr_once): Initialize it.
3835 * real.c (exact_real_truncate): New.
3837 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3838 dropped into memory; penalize for size.
3839 (RTX_COSTS): FLOAT_EXTEND is free.
3840 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3841 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3843 2002-05-12 Richard Henderson <rth@redhat.com>
3845 * profile.h (profile_info): Add missing extern to declaration.
3846 * profile.c (profile_info): Define it.
3848 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3850 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3851 used for DImode and TImode.
3853 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3855 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3858 2002-05-11 Zack Weinberg <zack@codesourcery.com>
3860 * config/rs6000/rs6000.c (rs6000_default_long_calls,
3861 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3862 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3863 (rs6000_override_options): Handle -m(no-)longcall.
3864 (init_cumulative_args, output_mi_thunk): Check for both
3865 longcall and shortcall attributes on the function.
3866 (rs6000_attribute_table): Add "shortcall".
3867 (rs6000_handle_longcall_attribute): Update comment.
3868 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3869 altivec_expand_ternop_builtin): Add default clauses to switches
3870 to silence warnings.
3872 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3873 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
3874 (TARGET_OPTIONS): Add longcall and no-longcall.
3876 * config/rs6000/rs6000.md (call_nonlocal_sysv,
3877 call_value_nonlocal_sysv): Split by alternatives. One pair
3878 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3879 the call cookie. The other pair accepts only LR/CTR and has
3882 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3883 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3885 * config/rs6000/rs6000-c.c: New file.
3886 * config/rs6000/t-rs6000-c-rule: New file.
3887 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3888 Prototype rs6000_pragma_longcall.
3890 * doc/extend.texi: Document shortcall attribute.
3891 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3893 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3895 * reorg.c (dbr_schedule): Remove unnecessary test.
3897 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3899 * i386.md (testsi to testqi spliters): New.
3901 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
3903 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3905 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3907 * basic-block.h: New flag EDGE_CAN_FALLTHRU
3908 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3909 that can be made fallthru.
3911 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
3913 * cfglayout.c (cleanup_unconditional_jumps): New static function.
3914 (cfg_layout_initialize): Use it.
3916 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
3918 * config/avr/avr.c (avr_mcu_types): Update supported devices.
3919 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3920 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3922 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3924 * dbxout.c: Fix formatting.
3925 * dependence.c: Likewise.
3927 * diagnostic.c: Likewise.
3928 * doloop.c: Likewise.
3929 * dominance.c: Likewise.
3930 * doschk.c: Likewise.
3931 * dwarf2asm.c: Likewise.
3932 * dwarf2out.c: Likewise.
3933 * dwarfout.c: Likewise.
3935 2002-05-10 Richard Henderson <rth@redhat.com>
3937 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3938 Convert integers constants as needed. Replace "nwords" field with
3940 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3941 * function.h: Fix typo in comment.
3942 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3944 2002-05-10 Roger Sayle <roger@eyesopen.com>
3946 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3947 into the equivalent (signed char)c > 0.
3949 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3951 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3952 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3953 (struct prefetch_info): Fix spelling of member bytes_accessed.
3954 (emit_prefetch_instructions): Make dump messages more regular;
3955 restructure code to add more dump messages; use new macros for
3956 heuristics. (There are no code generation changes in any of this).
3958 2002-05-10 David S. Miller <davem@redhat.com>
3960 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3961 (struct rtx_def): Update unchanging flag comment.
3962 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3963 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3964 to be handled to INSN too.
3965 (dbr_schedule): Likewise.
3966 * resource.c (next_insn_no_annul): Likewise.
3968 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3971 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3973 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3974 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3975 (possibly) work around broken /bin/sh.
3977 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3979 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3980 . as N64/N32 libgcc_s.so subdirs.
3982 2002-05-10 David S. Miller <davem@redhat.com>
3984 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3986 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3988 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3990 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3991 * doc/rtl.texi: Document these macros more accurately.
3992 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3993 JUMP_INSNs and CALL_INSNs.
3994 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3995 or INSN_FROM_TARGET_P if the code is appropriate.
3997 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3999 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
4000 before using SYMBOL_REF_FLAG (addr).
4002 * config/avr/avr-protos.h (avr_io_address_p): Declare.
4003 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
4004 Make non-static. Update all callers.
4005 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
4006 New insns to clear/set/test a single bit in I/O address space.
4008 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4010 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
4012 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
4014 * Makefile.in: Update.
4015 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
4016 builtin_define_std): New.
4017 (c_common_init): Register CPP builtins callback.
4018 * c-common.h (flag_iso, flag_undef): New.
4019 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
4020 * c-lex.c: Don't include target.h.
4021 (cb_register_builtins): Move to c-common.c.
4022 (init_c_lex): Don't register hook here.
4023 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
4024 (cpp_define, cpp_assert): Remove.
4025 * gcc.c (cc1_options): Pass -undef to front end.
4026 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
4027 (TARGET_INITIALIZER): Update.
4028 * target.h (struct cpp_reader): Don't predeclare.
4029 (struct gcc_target): Remove cpp builtin hook.
4030 * tree.c (default_register_cpp_builtins): Remove.
4034 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
4036 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
4038 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4040 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
4041 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
4043 2002-05-09 Jakub Jelinek <jakub@redhat.com>
4045 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
4046 * config/sparc/libgcc-sparc-glibc.ver: New file.
4047 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
4048 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
4050 2002-05-09 Jakub Jelinek <jakub@redhat.com>
4053 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
4054 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
4055 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
4057 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
4058 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
4059 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
4060 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
4062 2002-05-09 Richard Henderson <rth@redhat.com>
4064 * config/ia64/ia64.md: Use define_constants for unspec numbers.
4065 * config/ia64/ia64.c: Likewise.
4067 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
4069 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
4070 (save_restore_insns): Likewise.
4071 (mips_expand_prologue, mips_expand_epilogue): Update callers.
4072 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
4074 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
4076 * athlon.md, k6.md, pentium.md, ppro.md): New files.
4077 * i386.md: Move scheduling information into new files.
4079 * i386.md (type attribute): Add "rotate" for rotate insns.
4080 (rotate insns): Set type to "rotate".
4081 (various attributes and function units): Treat rotate like shift.
4082 (pent_pair attribute): Only rotates by one bit position are
4084 (sbb insns): Explicitly set pent_pair attribute on a couple
4085 that were missing it.
4087 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
4089 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
4090 make sure that buffer starts on odd word address.
4091 (sh_va_arg): Skip odd fp registers when reading a double precision
4094 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
4096 * tree.h (preserve_data, object_permanent_p, type_precision):
4099 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
4101 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
4102 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
4104 * cpp.texi: Update for removal of obsolete features.
4106 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
4107 Jeffrey A Law (law@redhat.com)
4109 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
4110 the DFA interface for Pentium processors.
4111 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
4112 (attr_pent_pair, ix86_pent_find_pair): Remove.
4113 (ix86_sched_reorder_pentium): Remove.
4114 (ix86_sched_reorder): Remove reordering for Pentium.
4115 * i386.md (Pentium scheduling): Rewrite using DFA description.
4117 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
4119 * cfganal.c (can_fallthru): Fix fast path.
4120 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
4121 with edges to the next block.
4123 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
4124 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
4126 * final.c (end_final): Use C trees to output data structures for profiling.
4128 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
4129 (profile.o): New dependency profile.h
4130 (final.o): New dependency profile.h
4131 * profile.h: New file. New global structure profile_info.
4132 * final.h (count_edges_instrumented_now): Declare.
4133 (current_function_cfg_checksum): Declare.
4134 (function_list): New structure.
4135 (functions_head, functions_tail): New static variables.
4136 (end_final): Emits more data, removed some -ax stuff.
4137 (final): Stores function names and chcksums.
4138 * gcov-io.h (__write_gcov_string): New function.
4139 (__read_gcov_string): New function.
4140 * gcov.c (read_profile): New function.
4141 (create_program_flow_graph): Uses read_profile instead of reading
4143 (read_files): Removed da_file checking, it's done by read_profile now.
4144 * libgcc2.c (bb_function_info): New structure.
4145 (bb): New field in structure, removed some -ax stuff.
4146 (__bb_exit_func): Changed structure of da_file.
4147 * profile.c (count_edges_instrumented_now): New global variable.
4148 (current_function_cfg_checksum): New global variable.
4149 (max_counter_in_program): New global variable.
4150 (get_exec_counts): New function.
4151 (compute_checksum): New function.
4152 (instrument_edges): Sets count_edges_instrumented_now.
4153 (compute_branch_probabilities): Uses get_exec_counts instead of
4155 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
4156 (init_branch_prob): Removed da_file checking, done in get_exec_counts
4158 (end_branch_prob): Removed da_file checking, done in get_exec_counts
4160 * gcov.texi: Updated information about gcov file format.
4162 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4164 * sbitmap.c: Fix formatting.
4166 * scan-decls.c: Likewise.
4167 * sched-deps.c: Likewise.
4168 * sched-ebb.c: Likewise.
4169 * sched-rgn.c: Likewise.
4170 * sched-vis.c: Likewise.
4171 * sdbout.c: Likewise.
4172 * sibcall.c: Likewise.
4173 * simplify-rtx.c: Likewise.
4175 * ssa-ccp.c: Likewise.
4176 * ssa-dce.c: Likewise.
4178 * stor-layout.c: Likewise.
4179 * stringpool.c: Likewise.
4181 2002-05-09 David S. Miller <davem@redhat.com>
4183 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
4185 2002-05-07 David S. Miller <davem@redhat.com>
4187 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
4188 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
4189 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
4190 library implementation clobbers the output before the inputs
4191 are fully consumed, use stack temporary for the output.
4193 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
4195 * config/netbsd.h (CPP_SPEC): Remove.
4196 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
4197 * config/i386/netbsd.h (CPP_SPEC): Define.
4198 * config/ns32k/netbsd.h (CPP_SPEC): Define.
4199 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
4200 * config/sparc/netbsd.h (CPP_SPEC): Define.
4201 * config/vax/netbsd.h (CPP_SPEC): Define.
4203 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4205 * read-rtl.c: Fix formatting.
4207 * recog.c: Likewise.
4208 * regclass.c: Likewise.
4209 * regmove.c: Likewise.
4210 * reg-stack.c: Likewise.
4211 * reload1.c: Likewise.
4212 * reload.c: Likewise.
4213 * resource.c: Likewise.
4214 * rtlanal.c: Likewise.
4216 * rtl-error.c: Likewise.
4218 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
4220 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
4221 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
4223 2002-05-08 Bernd Schmidt <bernds@redhat.com>
4225 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
4226 use __SSE2__ macro instead.
4227 * config/i386/xmmintrin.h: Likewise.
4229 2002-05-08 Janis Johnson <janis187@us.ibm.com>
4231 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
4232 and use it in all invocations of these macros. Clean up comments.
4233 * rtl.c (rtl_check_failed_flag): Add an argument for the name
4234 of the flag access macro whose check failed.
4235 * doc/rtl.texi (Flags): Document additional flag uses.
4237 2002-05-08 Robert Spier <rspier@pobox.com>
4238 Neil Booth <neil@daikokuya.demon.co.uk>
4240 PR preprocessor/6521
4241 * cppfiles.c (handle_missing_header): Don't do anything
4242 different for <> includes.
4244 * cppopts.texi: Update documentation for -MG.
4246 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
4248 * cpplex.c (cpp_interpret_charconst): Truncate as well as
4251 * cpp.texi: Clarify multichar charconst valuation.
4253 2002-05-08 Mark Mitchell <mark@codesourcery.com>
4255 * doc/invoke.texi: Document -mwindiss option.
4257 2002-05-08 Jason Merrill <jason@redhat.com>
4259 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
4261 * dwarf2out.c (gen_type_die): Abort on broken recursion.
4264 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
4267 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
4269 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
4270 little-endian multilibs to override arm/thumb multilibs.
4271 Do not build hardware floating point multilibs, nor apcs-26
4272 multilibs for the Thumb.
4274 2002-05-08 Mark Mitchell <mark@codesourcery.com>
4277 * varasm.c (mark_weak): New function.
4278 (merge_weak): Use it. Do not call declare_weak.
4279 (declare_weak): Use merge_weak.
4281 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4283 * cse.c (dead_libcall_p): Update counts.
4284 (delete_trivially_dead_insns): Update call of dead_libcall_p.
4286 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
4288 * cfglayout.c (function_tail_eff_head): Rename to ...
4289 (function_footer): ... this one.
4290 (unlink_insn_chain): New functions.
4291 (label_for_bb): Only call block_label and emit debug message.
4292 (record_effective_endpoints): Actually unlink the headers and footers.
4293 (fixup_reorder_cahin): Re-insert the unlinked sequences.
4294 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
4295 * cfglayout.h (struct reorder_block_def): New fields footer/header;
4296 remove eff_head/eff_end.
4297 * rtl.h (set_first_insn): Declare.
4298 * emit-rtl.c (set_first_insn): New function.
4300 * cfglayout.c (fixup_reorder_chain): Dump duplicated
4301 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4302 cfg_layout_duplicate_bb): New global function.
4303 (duplicate_insn_chain): New static function.
4304 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4305 cfg_layout_duplicate_bb): Declare.
4306 (struct reorder_block_def): Add "original" field.
4307 * emit-rtl.c (emit_copy_of_insn_after): New function.
4308 * rtl.h (emit_copy_of_insn_after): Declare.
4310 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
4311 (fixup_reorder_chain): properly handle edges to exit block.
4313 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4314 Jan Hubicka <jh@suse.cz>
4316 * basic-block.h (note_prediction_to_br_prob): declare.
4317 * c-semantics.c: Inlucde predit.h
4318 (expand_stmt): predict GOTO_STMT as not taken.
4319 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4320 (cleanup_cfg): Do not free tail_recursion_list.
4321 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4322 (flow_delete_block): Kill predictions past end of basic block.
4323 * output.h (delete_unreachable_blocks): Declare.
4324 * predict.c (predicted_by_p, process_note_predictions,
4325 process_note_prediction, last_block_p): New function.
4326 (estimate_probability): Bypass loop on PRED_CONTINUE;
4327 do not handle noreturn heuristics; kill PRED_RETURN; add
4329 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4330 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4331 * predict.h (IS_TAKEN): New constant.
4332 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4333 * rtl.c (NOTE_INSN_PREDICTION): New.
4334 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4336 (insn_note): add NOTE_INSN_PREDICTION.
4337 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4338 CFG; free tail_recursion_label_list.
4339 * stmt.c: Include predict.h;
4340 (return_prediction): New.
4341 (expand_value_return): Use it.
4342 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4344 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
4346 * config/mips/mips.md: Name the unspecs with define_constant.
4347 (*HILO_delay): Rename to 'hilo_delay' (no star).
4348 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4349 (reload_outdi, reload_outsi): Likewise.
4351 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4353 * toplev.c: Fix formatting.
4355 2002-05-07 Janis Johnson <janis187@us.ibm.com>
4357 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4358 * configure.in (ac_rtlflag_checking): New.
4359 * doc/install.texi (--enable-checking): Document RTL flag checking.
4361 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
4363 * c-common.c (c_common_init): Set options->unsigned_wchar.
4364 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4365 group target dependencies.
4366 (init_builtins, cpp_handle_option): Update.
4367 * cpplex.c (cpp_interpret_charconst): Update.
4368 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4369 signed_char to unsigned_char, group target dependencies.
4370 * defaults.h (WCHAR_UNSIGNED): Remove.
4371 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4373 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4374 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4375 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4376 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4377 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4379 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4381 2002-05-07 Mark Mitchell <mark@codesourcery.com>
4383 * fixinc/inclhack.def (windiss_math1): New fix.
4384 (windiss_math2): Likewise.
4385 (windiss_valist): Likewise.
4386 * fixinc/fixincl.x: Regenerated.
4388 2002-05-07 Andreas Jaeger <aj@suse.de>
4390 * genautomata.c (output_internal_min_issue_delay_func): Add
4391 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4392 (output_internal_trans_func): Likewise.
4394 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
4396 * pa.c (hppa_profile_hook): Use force_reg to get the address
4397 of the profile hook into an appropriate pseudo register.
4399 2002-05-07 Mark Mitchell <mark@codesourcery.com>
4401 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4402 (LINK_START_SPEC): Handle it.
4403 (LINK_OS_SPEC): Likewise.
4404 (CPP_SPEC): Likewise.
4405 (STARTFILE_SPEC): Likewise.
4406 (LIB_SPEC): Likewise.
4407 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
4409 (CRTSAVRES_DEFAULT_SPEC): New macro.
4410 (LIB_WINDISS_SPEC): New macro.
4411 (CPP_OS_WINDISS_SPEC): Likewise.
4412 (STARTFILE_WINDISS_SPEC): Likewise.
4413 (ENDFILE_WINDISS_SPEC): Likewise.
4414 (LINK_START_WINDISS_SPEC): Likewise.
4415 (LINK_OS_WINDISS_SPEC): Likewise.
4416 * config/rs6000/windiss.h: New file.
4418 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
4420 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4422 2002-05-06 David S. Miller <davem@redhat.com>
4424 * config/sparc/sparc.md (shift insns): Do not mask off
4425 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4428 2002-05-06 Richard Henderson <rth@redhat.com>
4431 * expr.c (highest_pow2_factor_for_type): New.
4432 (expand_assignment): Use it.
4434 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
4436 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4438 ("altivec_mfvscr"): Same.
4440 2002-05-06 Janis Johnson <janis187@us.ibm.com>
4442 * rtl.h (struct rtx_def): Update comments.
4443 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
4444 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
4445 RTL_FLAG_CHECK macros with list of expected RTL codes.
4446 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4447 (rtl_check_failed_flag): New.
4448 * reload1.c (reload): Use REG macro before changing rtx to MEM.
4449 (reload_cse_noop_set_p): Check rtx code before using access macro.
4450 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4451 before using access macro.
4453 2002-05-06 Janis Johnson <janis187@us.ibm.com>
4455 * doc/rtl.texi (Flags): Update to reflect current usage.
4457 2002-05-06 Roger Sayle <roger@eyesopen.com>
4460 * fold-const.c (sign_bit_p): New function.
4461 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4462 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4463 Reapply fold when converting (A & C) == C into (A & C) != 0.
4464 (fold_binary_op_with_conditional_arg): Fix typo in comment.
4466 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
4468 * c-common.c (warn_multichar): New.
4469 (c_common_init): Set CPP's warn_multichar.
4470 * c-common.h (warn_multichar): New.
4471 * c-decl.c (warn_multichar): Remove.
4472 * c-lex.c (lex_charconst): Update.
4473 * c-tree.h (warn_multichar): Remove.
4474 * cppexp.c (eval_token): Sign-extend charconst value.
4475 * cppinit.c (cpp_create_reader): Set warn_multichar.
4476 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4477 each character. Update prototype. Sign-extend the result.
4478 * cpplib.h: Fix conditions.
4479 (struct cpp_options): Add new warning flag.
4480 (cpp_interpret_charconst): Update prototype.
4482 * cpp.texi: Update documentation.
4484 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
4486 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4487 Fix typo in usage of allof instead of unit.
4489 2002-05-06 Richard Henderson <rth@redhat.com>
4491 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4492 and any jump or call for IN.
4494 2002-05-06 Bernd Schmidt <bernds@redhat.com>
4496 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4498 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4500 2002-05-06 Roger Sayle <roger@eyesopen.com>
4502 * fold-const.c (lshift-double): Cast the high word to an unsigned
4503 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4504 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4505 avoid compiler warning. (fold): Remove redundant code from
4506 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4508 2002-05-06 Jeff Law <law@redhat.com>
4510 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4511 * pa.c (pa_adjust_cost): Remove all true dependency cost
4512 adjustments. Also remove support for non-DFA scheduling.
4513 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4514 to adjust true dependency costs. Update various comments.
4515 (7100lc, 7200, 7300 scheduling): Simplify by combining the
4516 FP ALU & MPY units into a single unit.
4518 2002-05-06 Catherine Moore <clm@redhat.com>
4520 * config/v850/v850.c (compute_register_save_size): Make sure
4521 to count all of the registers that will be saved.
4523 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4525 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4527 2002-05-06 David S. Miller <davem@redhat.com>
4529 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4530 allow result to overlap input operands in memory.
4532 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
4535 * cpp.texi: Update multichar charconst docs.
4537 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
4539 * cpplex.c (cpp_interpret_charconst): Sign-extend each
4540 character. Don't ignore excess characters. Treat
4541 multicharacter character constants as signed.
4542 (cpp_parse_escape): Clarify diagnostic.
4544 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4546 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4547 use add instead of shift.
4548 (ashldi3_sp64): Likewise.
4549 (ashlsi3_const1, ashldi3_const1): Remove.
4550 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4551 * config/sparc/sparc.c (const1_operand): New.
4553 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
4555 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4557 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4560 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4562 2002-05-05 Richard Henderson <rth@redhat.com>
4564 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4565 memory latency adjustments.
4566 (alpha_variable_issue): Remove.
4567 (alpha_use_dfa_pipeline_interface): New.
4568 (alpha_multipass_dfa_lookahead): New.
4569 * config/alpha/alpha.md: Remove define_function_unit scheduling;
4570 include new dfa scheduling.
4571 (attr type): Add none.
4573 * config/alpha/ev4.md: New.
4574 * config/alpha/ev5.md: New.
4575 * config/alpha/ev6.md: New.
4577 2002-05-05 David S. Miller <davem@redhat.com>
4579 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4581 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
4583 * cse.c: Fix formatting.
4584 * emit-rtl.c: Likewise.
4586 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4588 * genautomata.c (initiate_states): Add additional guard to
4589 initialize `units_array'.
4591 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4593 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4594 process_unit_to_form_the_same_automaton_unit_lists,
4595 form_the_same_automaton_unit_lists
4596 check_unit_distributions_to_automata): New prototypes and
4598 (check_automata): Rename it into `check_automata_insn_issues'.
4599 (unit_decl): New fields `the_same_automaton_unit' and
4600 `the_same_automaton_message_reported_p'.
4601 (unit_decl_t): New typedef.
4602 (the_same_automaton_lists): New gloval variable.
4603 (unit_regexp, unit_set_el, units_array, units_cmp,
4604 output_get_cpu_unit_code_func): Use the typedef.
4605 (evaluate_max_reserv_cycles): Increment
4606 `description->max_insn_reserv_cycles'.
4607 (initiate_states): Don't increment `max_cycles_num'.
4608 (transform_insn_regexps): Move code around transformation of
4609 regexps from `generate'.
4610 (generate): Remove call of `transform_insn_regexps'.
4611 (expand_automata): Call `transform_insn_regexps' and
4612 `check_unit_distributions_to_automata'. Check errors before
4615 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4616 automaton `ultrasparc3_1'.
4618 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
4620 * c-common.c (c_common_init): Set up CPP arithmetic.
4621 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4622 something reasonable for the host.
4623 (sanity_checks): Add checks.
4624 (cpp_read_main_file): Call sanity_checks() from here...
4625 (cpp_post_options): ... not here.
4626 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4627 * cpplib.h (struct cpp_options): New member int_precision.
4629 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4631 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4633 2002-05-04 David S. Miller <davem@redhat.com>
4635 * config/sparc/linux.h, config/sparc/linux64.h
4636 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4638 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4640 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4642 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4645 2002-05-05 Tim Josling <tej@melbpc.org.au>
4647 * treelang; New directory for new sample language treelang.
4649 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4651 * Makefile.in (c-lex.o): Update.
4652 * c-lex.c: Include target.h.
4653 (cb_register_builtins): New.
4654 (init_c_lex): Set builtins callback.
4655 * c-lex.h (cpp_define, cpp_assert): New prototypes.
4656 * cppinit.c (init_builtins): Use callback, including for
4658 * cpplib.h (struct cpp_callbacks): New member.
4659 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4660 (TARGET_INITIALIZER): Update.
4661 * target.h (struct gcc_target): New hook.
4662 * tree.c (default_register_cpp_builtins): New.
4663 * tree.h (default_register_cpp_builtins): New.
4665 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4667 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4669 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4670 (cpp_post_options): Move sanity checks to...
4671 (sanity_checks): New.
4672 * cpplex.c (maybe_read_ucs): Fix prototype.
4673 (parse_string, cpp_parse_escape): Cast for %c format specifier.
4674 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4677 2002-05-04 Bernd Schmidt <bernds@redhat.com>
4679 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4680 builtins. Use V2DI patterns instead of TI for logical operations.
4681 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4682 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4683 (ix86_expand_builtins): Change the pattern used for movntdq.
4684 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4685 sse2_nandv2di3): New patterns.
4686 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4688 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4689 (cvtdq2pd): Correct mode on operand 1.
4690 (sse2_umulsidi3): Describe without unspec.
4691 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4693 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4694 (ashlv2di3): Likewise, from sse2_ashlv2di3.
4695 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4696 ashlv4si3, ashlv2di3): Use SImode for shift count.
4697 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4698 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4700 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4702 (__m128i, __m128d): New macros.
4703 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4704 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4705 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4706 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4707 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4708 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4709 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4710 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4711 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4712 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4713 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4714 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4715 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4716 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4717 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4718 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4719 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4720 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4721 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4722 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4723 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4724 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4725 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4726 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4727 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4728 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4729 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4730 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4731 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4732 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4733 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4734 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4735 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4736 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4737 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4738 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4739 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4741 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4742 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4744 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4746 * dwarf2out.c: Fix formatting.
4747 * varasm.c: Likewise.
4749 2002-05-04 David Edelsohn <edelsohn@gnu.org>
4752 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4753 clobber and use result as temporary value.
4755 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4757 * expr.c (force_operand): Use expand_simple_* to handle more
4760 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4762 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4764 (lex_charconst): Update for change in prototype of
4765 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
4767 * cpphash.h (BITS_PER_CPPCHAR_T): New.
4768 * cppinit.c (cpp_create_reader): Initialize them for no
4769 change in semantics.
4770 (cpp_post_options): Add sanity checks.
4771 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4772 and truncation issues. Calculate in type cppchar_t.
4773 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4774 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
4775 run-time dependent precision correctly. Return whether the
4776 result is signed or not.
4777 * cpplib.c (dequote_string): Use cppchar_t; update.
4778 * cpplib.h (cppchar_signed_t): New.
4779 struct cpp_options): New precision members.
4780 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4781 * cppexp.c (eval_token): Update.
4783 2002-05-03 David S. Miller <davem@redhat.com>
4785 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4786 * config/sparc/sparc.c (sparc_rtx_costs): New function
4787 implementing RTX_COSTS and CONST_COSTS.
4788 * config/sparc/sparc.h (CONST_COSTS): Delete.
4789 (RTX_COSTS_CASES): Define.
4790 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4793 * config/sparc/sparc.md (DFA schedulers): Split out...
4794 * config/sparc/cypress.md, config/sparc/hypersparc.md,
4795 config/sparc/sparclet.md, config/sparc/supersparc.md,
4796 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4798 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4799 checks on it, always defined for Sparc.
4801 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4802 Tweak, and add more detailed comments.
4804 2002-05-03 Zack Weinberg <zack@codesourcery.com>
4806 * Re-apply patch accidentally reverted with
4807 DFA scheduler merge: remove all rules and variables to slurp
4808 source files out of libiberty and rebuild them with HOST_CC.
4809 ($(HOST_PREFIX_1)varray.o): New rule.
4810 (genattrtab rule): Word wrap.
4812 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4814 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4815 (CPP_SUBTARGET_SPEC): Define.
4816 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4817 cpp_subtarget specs.
4818 (CPP_SPEC): Redefine to include %(cpp_subtarget).
4820 2002-05-03 David S. Miller <davem@redhat.com>
4822 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4823 * target.h (struct gcc_target): Delete cycle_display member.
4825 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4826 (rtx_needs_barrier): Delete reference to cycle_display unspec.
4827 (ia64_sched_reorder2): Mention need for cycle display handling
4828 once such notes exist.
4830 2002-05-03 Richard Henderson <rth@redhat.com>
4832 * real.c (etoasc): Strip most trailing zeros for clarity.
4833 * sched-vis.c: Include real.h.
4834 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4835 * Makefile.in (sched-vis.o): Add real.h.
4837 2002-05-03 David S. Miller <davem@redhat.com>
4839 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4842 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
4844 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4845 when we get an out of range literal.
4846 (altivec_expand_ternop_builtin): Same.
4847 (altivec_expand_unop_builtin): Same.
4848 (altivec_expand_builtin): Same, for dss.
4849 (altivec_expand_builtin): Use trees instead of rtl when
4850 determining literal argument validity.
4852 2002-05-03 David S. Miller <davem@redhat.com>
4854 Delete cycle display scheduling hook.
4855 * config/ia64/ia64.c (ia64_cycle_display,
4856 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4857 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4858 and use emit_insn_before instead of ia64_emit_insn_before.
4859 * config/ia64/ia64.md (unspec usage): Delete cycle display.
4860 (cycle_display): Delete insn pattern.
4861 * config/sparc/sparc.md (unspec usage): Delete cycle display.
4862 (cycle_display): Delete insn pattern.
4863 * config/sparc/sparc.c (sparc_cycle_display,
4864 TARGET_SCHED_CYCLE_DISPLAY): Delete.
4865 * doc/md.texi (cycle_display): Don't mention.
4866 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4868 2002-05-03 Richard Henderson <rth@redhat.com>
4870 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4871 * recog.h: Declare them.
4873 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4874 * config/sparc/sparc.md: Use store_data_bypass_p instead.
4875 * config/sparc/sparc-protos.h: Update.
4877 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4879 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4880 -D__arch64__. Add -D_LP64.
4881 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4883 (CPP_ARCH64_SPEC): Likewise.
4884 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4885 (NO_BUILTIN_SIZE_TYPE): Undef.
4887 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
4889 * genautomata.c (min_issue_delay_pass_states): Change return type
4891 (min_issue_delay_pass_states): Change the algorithm.
4892 (min_issue_delay): Set up min_insn_issue_delay for the state.
4893 (output_min_issue_delay_table): Interchange the nested loops and
4894 and initiate min_insn_issue_delay for states.
4896 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
4898 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
4901 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4903 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
4906 2002-05-03 Richard Henderson <rth@redhat.com>
4909 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4910 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4911 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4912 code before JUMP, not EARLIEST.
4914 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
4916 * c-format.c (check_format_info_main): Don't check for presence of
4917 parameter for * width until after operand number has been read,
4918 and only check for it if format parameters are available.
4921 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4923 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4924 (LINK_SPEC): Undef before defining.
4926 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4928 PR preprocessor/6489
4929 * tradcpp.c (fixup_newlines): New.
4930 (main, finclude): Use it.
4932 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4934 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4935 * config/mips/mips.c (mips_unique_section): Strip encoding from
4938 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4940 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4943 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4945 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4946 (Specific): Removed buildstats references.
4947 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4948 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4949 Accomodate Solaris versions beyond 8.
4950 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4951 (Specific, *-*-solaris2.8): Removed, obsolete.
4953 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4956 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4957 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4958 fill leaf_reg_remap with identity.
4959 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4961 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4963 * config/h8300/crti.asm: Remove trailing spaces.
4964 * config/h8300/h8300.c: Likewise.
4965 * config/h8300/lib1funcs.asm: Likewise.
4967 2002-05-02 Jason Merrill <jason@redhat.com>
4969 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4970 * c-decl.c (c_init_decl_processing): Use it.
4971 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4972 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4973 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4975 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4977 * regrename.c: Fix formatting.
4980 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4982 * i386.md (attribute memory): Handle compares properly.
4984 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4986 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4989 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4991 * function.c: Fix formatting.
4993 2002-05-02 Jan Hubicka <jh@suse.cz>
4995 * haifa-sched.c (schedule_insn): Print table of instructions and
4997 (sched_block): Do not print ready list at verbosity level 1.
4998 * sched-vis.c (print_insn): Make global.
4999 * sched-ebb.c (ebb_print_insn): Rename from...
5000 (print_insn): ... this one.
5001 * sched-int.h (print_insn): Declare
5003 2002-05-02 Richard Henderson <rth@redhat.com>
5005 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
5006 emitted by cycle_display.
5008 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
5010 * doc/install.texi (*-*-freebsd*): Update to latest status.
5012 2002-05-02 Jakub Jelinek <jakub@redhat.com>
5015 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
5016 * config/float-sparc.h: Assume 128-bit long double if
5017 __LONG_DOUBLE_128__ is defined.
5019 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
5021 * genattrtab.c (write_function_unit_info): Add a dummy element
5022 when num_units == 0.
5024 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5026 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
5027 TYPE_MODE (double_type_node) instead of DFmode.
5029 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
5031 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
5033 * toplev.c (rest_of_compilation): Revert Richard's patch.
5035 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
5037 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
5039 2002-05-02 Catherine Moore <clm@redhat.com>
5041 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
5043 2002-05-02 Kazu Hirata <kazu@hxi.com>
5045 * combine.c: Fix comment typos.
5047 * genautomata.c: Likewise.
5051 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
5053 * doc/install.texi: State GNAT version requirements.
5055 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
5057 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
5058 of the frame pointer or arg pointer register which strict register
5059 checking is not enabled.
5061 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
5063 * gcc.dg/altivec-8.c: New.
5065 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
5066 PRE_INC and PRE_DEC for altivec modes.
5068 2002-05-01 Bruce Korb <bkorb@gnu.org>
5070 * fixinc/check.tpl(set-writable): make sure the function exists first
5071 * fixinc/inclhack.def(alpha_assert): fix test_text
5072 * fixinc/tests/base/assert.h: add in missing result
5074 2002-05-01 Jeff Law <law@redhat.com>
5076 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
5079 2002-05-01 Joel Brobecker <brobecker@gnat.com>
5081 * dbxout.c (dbxout_type): Emit size information for range types,
5082 as well, but only when using GDB extensions.
5084 2002-05-01 Richard Henderson <rth@redhat.com>
5086 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
5087 target-independent gnu binutils date test.
5089 2002-05-01 Richard Henderson <rth@redhat.com>
5091 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
5092 info before expunging the block.
5094 2002-05-01 Jakub Jelinek <jakub@redhat.com>
5096 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
5097 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
5098 -M -or -MM is in effect.
5100 2002-05-01 Zack Weinberg <zack@codesourcery.com>
5102 * config.gcc: Correct test of --enable-obsolete. Obsolete all
5103 A29k configurations.
5104 * doc/install.texi: Update to match.
5106 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5109 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
5110 for duplicates. Always loop over whole list.
5112 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5114 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
5116 2002-05-01 Joel Sherrill <joel@OARcorp.com>
5118 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
5121 2002-05-01 Joel Sherrill <joel@OARcorp.com>
5123 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
5125 2002-05-01 David Edelsohn <edelsohn@gnu.org>
5127 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
5128 (nabs_nopower): Same.
5129 (floatdisf2): New pattern.
5130 (absdi2): Convert to define_insn_and_split.
5135 (fix_trunctfdi2): Same.
5136 (fix_trunctfsi2): Same.
5138 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
5140 * doc/install.texi: Update Texinfo version requirement
5143 2002-05-01 Jakub Jelinek <jakub@redhat.com>
5145 PR target/6512, PR target/5628
5146 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
5147 when memory is not aligned.
5148 (movdf_insn_v9only_vis): Likewise.
5149 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
5150 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
5151 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
5153 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
5155 * gcc.dg/altivec-7.c: New.
5157 * config/rs6000/altivec.h: Cleanup.
5159 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
5161 * doc/invoke.texi (Option Summary): Add -mvrsave=.
5162 (RS/6000 and PowerPC Options): Document -mvrsave=.
5164 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
5165 (rs6000_altivec_vrsave_string): Same.
5166 (rs6000_override_options): Call rs6000_parse_vrsave_option.
5167 (rs6000_parse_vrsave_option): New.
5168 (rs6000_stack_info): Only generate vrsave instructions when
5169 TARGET_ALTIVEC_VRSAVE.
5171 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
5172 (rs6000_altivec_vrsave_string): Define extern.
5173 (rs6000_altivec_vrsave): Same.
5174 (TARGET_ALTIVEC_VRSAVE): New.
5176 2002-04-30 Richard Henderson <rth@redhat.com>
5179 * toplev.c (rest_of_compilation): Don't run cross-jump before
5182 2002-04-30 Tom Rix <trix@redhat.com>
5184 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
5185 check which_alternative.
5187 2002-04-30 Kazu Hirata <kazu@hxi.com>
5189 * cpplex.c: Fix comment formatting.
5190 * function.c: Likewise.
5191 * integrate.c: Likewise.
5192 * regrename.c: Likewise.
5193 * sibcall.c: Likewise.
5194 * simplify-rtx.c: Likewise.
5195 * tree-inline.c: Likewise.
5197 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
5199 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
5200 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
5201 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
5202 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
5203 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
5204 * pa/x-ada: New file. Define ADA_CFLAGS.
5206 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
5208 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
5209 from MMIX_LAST_REGISTER_FILE_REGNUM.
5210 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
5211 (struct machine_function): New member highest_saved_stack_register
5212 previously static variable in mmix.c.
5213 (MACHINE_DEPENDENT_REORG): Define.
5214 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
5215 (MMIX_OUTPUT_REGNO): New.
5216 (mmix_target_asm_function_prologue): Move calculation of last used
5217 saved-stack-register into...
5218 (mmix_machine_dependent_reorg): New function. Update to also handle
5220 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
5221 register names, simplify somewhat by new variable regno.
5222 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
5224 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
5225 emitting register names.
5226 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
5227 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
5229 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
5232 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
5234 2002-04-30 Richard Henderson <rth@redhat.com>
5236 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5237 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
5238 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
5239 emit_tfmode_cvt): New.
5240 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
5241 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
5242 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
5243 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
5244 * config/sparc/sparc-protos.h: Update.
5246 2002-04-30 Janis Johnson <janis187@us.ibm.com>
5248 * install.texi (Final install): Add to the list of info to include
5249 in a report of a successful bootstrap, and add link to 3.1 list.
5251 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
5253 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
5254 (mode): Add vector modes
5255 (i387): Kill attribute.
5256 (unit): New attribute.
5257 (length_immediate): Grok new types.
5258 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
5259 (modrm): Use "unit".
5260 (memory): Handle MMX/SSE properly.
5261 (scheduling descriptions): Kill uses of fop1.
5262 (sse, mmx, fp patterns): Set type and mode properly.
5264 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
5266 * pa.c (override_options): Default to PA8000 scheduling.
5267 * doc/invoke.texi (HP-PA options): Mention newly added 7300
5268 scheduling parameter.
5270 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
5271 handling of double precision multiplies.
5273 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
5274 fpdiv and fpsqrt instructions.
5275 (7200 & 7300 scheduling): Fix typo in handling of
5276 store-load and store-store penalties.
5278 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5280 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
5281 mips. Add two missing commas.
5283 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
5285 * doc/contrib.texi (Contributors): Update Paolo Carlini's
5286 and Benjamin Kosnik's entries.
5288 2002-04-29 David S. Miller <davem@redhat.com>
5290 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
5291 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5292 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
5293 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5295 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5297 * combine.c (find_split_point): Use gen_int_mode.
5299 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
5301 Merging code from dfa-branch:
5303 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
5305 * genautomata.c (output_reserv_sets): Fix typo.
5307 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
5309 * genautomata.c (output_reserv_sets): Remove
5310 next_cycle_output_flag.
5312 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
5314 * sched-rgn.c (init_ready_list): Make the DFA code handle
5315 USE/CLOBBER insns in the same way as the traditional
5317 (new_ready): Similarly..
5319 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
5321 * haifa-sched.c (schedule_block): Change the DFA state only after
5324 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
5326 * pa.c (hppa_use_dfa_pipeline_interface): New function.
5327 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5328 (override_options): Add PA7300 scheduling support.
5329 (pa_adjust_cost): Update various comments. Properly
5330 handle anti and output dependencies when using the
5332 (pa_issue_rate): Add PA7300 scheduling support.
5333 (pa_can_combine_p): Call extract_insn before calling
5334 constrain_operands (taken from mainline tree).
5335 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5336 * pa.md (cpu attr): Add 7300. Rewrite pipeline
5337 descriptions using DFA descriptions. Add PA7300
5340 2002-03-30 David S. Miller <davem@redhat.com>
5342 Add UltraSPARC-III DFA scheduling support.
5343 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5344 Update FP conditional move on register insn patterns to use it, as
5346 (define_attr cpu): Add ultrasparc3.
5347 (define_attr us3load_type): New, update integer load patterns to
5348 set it, as appropriate.
5349 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5350 (rest): Add UltraSPARC3 scheduling description.
5351 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5352 (PROCESSOR_ULTRASPARC3): New.
5353 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5354 ({ASM,CPP}_CPU_SPEC): Likewise.
5355 (REGISTER_MOVE_COST): Likewise.
5356 (RTX_COSTS): Likewise.
5357 * config/sparc/sparc.c (sparc_override_options,
5358 sparc_initialize_trampoline, sparc64_initialize_trampoline,
5359 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5360 sparc_issue_rate): Likewise.
5361 * config/sparc/sol2.h: Likewise.
5362 * config/sparc/sol2-sld-64.h: Likewise.
5363 * config/sparc/linux64.h: Likewise.
5365 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
5367 * doc/md.texi: Add comments about usage the latency time for the
5368 different dependencies and about case when two or more conditions
5369 in different define_insn_reservations returns TRUE for an insn.
5371 * doc/md.texi: Add reference for automaton based pipeline
5374 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
5376 * doc/passes.texi: Add missed information about genattrtab.
5378 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
5380 * genautomata.c (output_automata_list_transition_code): Check
5381 automata_list on NULL.
5383 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
5385 * genautomata.c (output_insn_code_cases,
5386 output_automata_list_min_issue_delay_code,
5387 output_automata_list_transition_code,
5388 output_automata_list_state_alts_code): Comment the functions.
5390 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
5392 * genautomata.c (automata_list_el_t): New typedef.
5393 (get_free_automata_list_el,free_automata_list_el,
5394 free_automata_list, automata_list_hash, automata_list_eq_p,
5395 initiate_automata_lists, automata_list_start, automata_list_add,
5396 automata_list_finish, finish_automata_lists,
5397 output_insn_code_cases, output_automata_list_min_issue_delay_code,
5398 output_automata_list_transition_code,
5399 output_automata_list_state_alts_code, add_automaton_state,
5400 form_important_insn_automata_lists): New functions and prototypes.
5401 (insn_reserv_decl): Add members important_automata_list and
5403 (ainsn): Add members important_p.
5404 (automata_list_el): New structure.
5405 (first_free_automata_list_el, current_automata_list,
5406 automata_list_table): New global variables.
5407 (create_ainsns): Initiate member important_p.
5408 (output_internal_min_issue_delay_func): Generate the switch and
5409 call output_insn_code_cases.
5410 (output_internal_trans_func, output_internal_state_alts_func):
5412 (generate): Call initiate_automata_lists.
5413 (automaton_states): New global variable.
5414 (expand_automata): Call form_important_insn_automata_lists.
5415 (write_automata): Call finish_automata_lists.
5417 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
5419 * genautomata.c (add_excls, add_presence_absence): Check that
5420 cpu units in the sets belong the same automaton.
5422 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5423 about that cpu units in the sets belong the same automaton.
5425 * doc/md.texi: Ditto.
5427 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
5428 Nitin Gupta <niting@noida.hcltech.com>
5430 * config/sh/sh.c (sh_use_dfa_interface): New function.
5432 (sh_issue_rate): New Function.
5433 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5434 TARGET_SCHED_ISSUE_RATE: define.
5436 * config/sh/sh.md: Add DFA based pipeline description for SH4.
5438 (define_attr insn_class): New attribute used for DFA
5440 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5441 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5442 cmpeqdi_t): Likewise.
5444 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5445 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5447 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5449 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
5451 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5454 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
5456 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5457 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5459 (output_dfa_start_func): Initiate new variable insn_codes_length,
5460 (write_automata): Output definition of the new variable.
5462 2001-10-02 David S. Miller <davem@redhat.com>
5464 * haifa-sched.c (advance_one_cycle): New function.
5465 (schedule_block): Use it.
5466 (queue_to_ready): Use it, and also make sure to advance the DFA
5467 state on all stall cycles, not just those where insn_queue links
5470 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
5472 * haifa-sched.c (max_issue): Remove last_p argument. Only return
5473 non-zero if the highest-priority instruction could be scheduled.
5474 (choose_ready): Remove last argument from max_issue call.
5476 2001-09-28 David S. Miller <davem@redhat.com>
5478 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5479 ultrasparc and 3 for other multi-issue sparcs.
5481 2001-09-27 David S. Miller <davem@redhat.com>
5483 * config/sparc/sparc.md (cycle_display): New pattern.
5484 * config/sparc/sparc.c (sparc_cycle_display): New.
5485 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5487 2001-09-25 David S. Miller <davem@redhat.com>
5489 Convert all of Sparc scheduling to DFA
5490 * config/sparc/sparc.md: Kill all define_function_unit
5491 directives and replace with DFA equivalent.
5492 * config/sparc/sparc.c (ultrasparc_adjust_cost,
5493 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5494 ultra_fpmode_conflict_exists, ultra_find_type,
5495 ultra_build_types_avail, ultra_flush_pipeline,
5496 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5497 ultrasparc_variable_issue, ultrasparc_sched_init,
5498 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5499 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5500 ultra_cur_hist, ultra_cycles_elapsed): Kill.
5501 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5502 ultrasparc_store_bypass_p): New.
5503 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5506 2001-09-24 David S. Miller <davem@redhat.com>
5508 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5509 ready->vec[foo] not ready[foo].
5511 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
5513 * doc/md.texi: Correct examples for define_insn_reservations
5516 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
5518 * genautomata.c (create_automata): Print message about creation of
5520 (generate): Remove printing meease about creation of
5523 2001-09-05 David S. Miller <davem@redhat.com>
5525 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5526 * config/sparc/linux64.h: Likewise.
5528 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
5530 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5531 schedule_block, sched_init, sched_finish): Add missed calls of
5532 use_dfa_pipeline_interface.
5534 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5537 * sched-vis.c (get_visual_tbl_length): Ditto.
5539 2001-08-27 Richard Henderson <rth@redhat.com>
5541 * genattr.c (main): Emit state_t even when not doing scheduling.
5543 2001-08-27 Richard Henderson <rth@redhat.com>
5545 * genautomata.c (expand_automata): Always create a description.
5547 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
5549 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5550 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5551 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5554 * genattr.c (main): New variable num_insn_reservations. Increase
5555 it if there is DEFINE_INSN_RESERVATION. Output automaton based
5556 pipeline hazard recognizer interface.
5558 * genattrtab.h: New file.
5560 * genattrtab.c: Include genattrtab.h.
5561 (attr_printf, check_attr_test, make_internal_attr,
5562 make_numeric_value): Move protypes into genattrtab.h. Define them
5564 (num_dfa_decls): New global variable.
5565 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5566 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5567 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5568 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
5570 * genautomata.c: New file.
5572 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5574 * sched-int.h: (curr_state): Add the external definition for
5575 automaton pipeline interface.
5576 (haifa_insn_data): Add comments for members blockage and units.
5578 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5579 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5580 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5581 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5582 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5583 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5584 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5586 (TARGET_SCHED): Use the new macros.
5588 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5589 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5590 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5591 dfa_bubble): New members in gcc_target.sched.
5593 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5594 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5595 (insn_queue): Redefine it as pointer to array.
5596 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5598 (max_insn_queue_index_macro_value): New variable.
5599 (curr_state, dfa_state_size, ready_try): New varaibles for
5600 automaton interface.
5601 (ready_element, ready_remove, max_issue): New function prototypes
5602 for automaton interface.
5603 (choose_ready): New function prototype.
5604 (insn_unit, blockage_range): Add comments.
5605 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5606 FUNCTION_UNITS_SIZE == 0.
5607 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5608 actual_hazard, potential_hazard): Add comments.
5609 (insn_cost): Use cost -1 as undefined value. Remove
5610 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
5612 (ready_element, ready_remove): New functions for automaton
5614 (schedule_insn): Add new code for automaton pipeline interface.
5615 (queue_to_ready): Add new code for automaton pipeline interface.
5616 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5617 (debug_ready_list): Print newline when the queue is empty.
5618 (max_issue): New function for automaton pipeline interface.
5619 (choose_ready): New function.
5620 (schedule_block): Add new code for automaton pipeline interface.
5621 Print ready list before scheduling each insn.
5622 (sched_init): Add new code for automaton pipeline interface.
5623 Initiate insn cost by -1.
5624 (sched_finish): Free the current automaton state and finalize
5625 automaton pipeline interface.
5627 * sched-rgn.c: Include target.h.
5628 (init_ready_list, new_ready, debug_dependencies): Add new code for
5629 automaton pipeline interface.
5631 * sched-vis.c: Include target.h.
5632 (get_visual_tbl_length): Add code for automaton interface.
5633 (target_units, print_block_visualization): Add comments.
5635 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5636 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5637 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5638 (getruntime.o, genautomata.o): New entries.
5639 (genattrtab.o): Add new dependency file genattrtab.h.
5640 (genattrtab): Add new dependencies. Link it with `libm.a'.
5641 (getruntime.o, hashtab.o): New entries for canadian cross.
5643 * doc/md.texi: Description of automaton based model.
5645 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5647 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5648 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5649 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5650 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5651 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5652 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5653 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5655 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5656 MAX_DFA_ISSUE_RATE): New macro descriptions.
5658 * doc/contrib.texi: Add dfa based scheduler contribution.
5660 * doc/gcc.texi: Add more information about genattrtab.
5662 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5664 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5665 adjust_address_nv call.
5667 2002-04-29 Janis Johnson <janis187@us.ibm.com>
5669 * doc/install.texi (Testing): Provide additional information, and
5670 a stronger encouragement, for running the testsuites.
5672 2002-04-29 DJ Delorie <dj@redhat.com>
5674 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5675 given in upper case.
5677 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5679 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5680 Solaris 2 <widec.h> if missing.
5681 * fixinc/fixincl.x: Regenerate.
5682 * fixinc/tests/base/widec.h: New file.
5684 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
5686 * toplev.c (f_options): Add "profile" switch so that
5687 -fno-profile can be used to disable -p.
5689 2002-04-29 Bernd Schmidt <bernds@redhat.com>
5691 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5693 * tree.c (build_common_tree_nodes_2): Likewise.
5694 * tree.h (enum tree_index): Likewise.
5695 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5697 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5699 (init_mmx_sse_builtins): Initialize SSE2 builtins.
5700 (ix86_expand_builtin): Add support for SSE2 builtins.
5701 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5702 (VALID_SSE_REG_MODE): Use it.
5703 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5704 (enum ix86_builtins): Add SSE2 builtins.
5705 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5706 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5707 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5708 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5709 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5710 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5711 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5712 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5713 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5714 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5715 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5716 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5717 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5718 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5719 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5720 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5721 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5722 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5723 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5724 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5725 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5726 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5727 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5728 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5729 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5730 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5731 lfence_insn): New patterns.
5732 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5733 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5735 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
5737 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5739 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5741 * doc/contrib.texi (Contributors): Add Paolo Carlini and
5743 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5744 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5745 and CPU instead of cpu.
5747 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5749 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5751 (lang_independent_options): Add -fif-conversion, -fif-conversion2
5752 (rest_of_compilation): Do if conversion only when asked for.
5753 (parse_options_and_default_flags): Set new variables to 1 for -O1
5754 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5756 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5758 * i386.c (dbx64_register_map): Fix typo.
5760 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5762 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5763 real_one_half, real_bb_freq_max): New static variables.
5764 (debug_profile_bbauxs): Kill.
5765 (process_note_predictions): Kill unused variable.
5766 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5768 (propagate_freq): Use REAL_ARITHMETICS.
5769 (estimate_bb_frequencies): Likevise; init new static variables.
5770 * Makefile.in (predict.o): Add dependency on real.h
5772 2002-04-28 David S. Miller <davem@redhat.com>
5775 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5776 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
5777 several {reads,writes} instead.
5778 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5781 2002-04-27 David S. Miller <davem@redhat.com>
5784 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5787 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5788 including signal.h and sys/ucontext.h, not needed.
5790 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
5792 * varasm.c (output_constant_def): Correct test for not calling
5793 ENCODE_SECTION_INFO for INTEGER_CST.
5795 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
5797 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5798 keep most cases as function eval_token.
5799 (eval_token): New function.
5800 (_cpp_parse_expr): Read token here for improved diagnostics.
5801 Don't use op_as_text. Detect bad ':' here.
5802 (reduce): Don't detect bad ':' here.
5803 (op_as_text): Remove.
5804 * cpphash.h (_cpp_test_assertion): Change prototype.
5805 * cpplib.c (_cpp_test_assertion): Change prototype.
5807 2002-04-28 Richard Henderson <rth@redhat.com>
5810 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5811 (ggc_mark_rtx_children): New.
5813 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5816 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5817 after call peepholes for UltraSPARC.
5818 (call + jump 64-bit peepholes): Remove.
5820 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5823 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5824 result as temporary value.
5826 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5829 * toplev.c (rest_of_compilation): Only run regrename and copy
5830 propagation if optimizing.
5832 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5834 PR optimization/6475
5835 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5836 register of REGNO_DECL (i).
5837 * Makefile.in (reload1.o): Add $(TREE_H).
5839 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
5841 * cppexp.c (lex): Update to use state.skip_eval.
5842 (struct op): Remove prio and flags members.
5843 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5844 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5845 (LEFT_ASSOC): New macro.
5846 (optab): New table of operator priorities and flags.
5848 (_cpp_parse_expr): Clean up logic. Return bool. Use a
5849 malloc-ed parser stack.
5850 (reduce): New; reduce the operator stack.
5851 (_cpp_expand_op_stack): Expand the operator stack as necessary.
5852 * cpphash.h (struct op): Predeclare.
5853 (struct cpp_reader): New members op_stack, op_limit.
5854 (struct lexer_state): New member skip_eval.
5855 (_cpp_parse_expr): Update.
5856 (_cpp_expand_op_stack): New.
5857 * cpplib.c (do_if): Update.
5858 * cppinit.c (cpp_create_reader): Create op stack.
5859 (cpp_destroy): And destroy it.
5860 * cpplib.h (CPP_LAST_CPP_OP): Correct.
5861 (TTYPE_TABLE): Correct.
5863 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5866 * c-decl.c (duplicate_decls): Call merge_weak.
5867 * c-pragma.c (apply_pragma_weak): Warn about misuse.
5868 * output.h (merge_weak): Prototype merge_weak.
5869 * varasm.c (merge_weak): New function.
5870 (declare_weak): Make sure we don't give an error on VAR_DECLs.
5871 Mark RTL with SYMBOL_REF_WEAK.
5873 2002-04-27 Kurt Garloff <garloff@suse.de>
5875 * tree-inline.c (inlinable_function_p): Improve heuristics
5876 by using a smoother function to cut down allowable inlinable size.
5877 * param.def: Add parameters max-inline-insns-single,
5878 max-inline-slope, min-inline-insns that determine the exact
5879 shape of the above function.
5880 * param.h: Likewise.
5882 2002-04-26 Richard Henderson <rth@redhat.com>
5884 * c-parse.in (malloced_yyss, malloced_yyvs): New.
5885 (yyoverflow): Re-add. Set them.
5886 (free_parser_stacks): New.
5887 * c-common.h: Declare it.
5888 * c-lex.c (c_common_parse_file): Call it.
5890 2002-04-26 Richard Henderson <rth@redhat.com>
5892 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5893 for fallthru search.
5895 2002-04-26 Eric Christopher <echristo@redhat.com>
5897 PR optimization/3700
5898 * config/mips/mips.c (mips_issue_rate): Define. New function.
5899 (TARGET_SCHED_ISSUE_RATE): Use.
5901 2002-04-25 David S. Miller <davem@redhat.com>
5904 * reorg.c (optimize_skip): Do not allow exception causing
5905 instructions to be considered for delay slots.
5906 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5907 (relax_delay_slots): Do not try to consider exception causing
5908 instructions as redundant.
5910 2002-04-26 Richard Henderson <rth@redhat.com>
5913 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5915 2002-04-26 Mark Mitchell <mark@codesourcery.com>
5918 * config/i386/i386.md (untyped_call): Return the value in a float
5919 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5922 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
5924 * tree.c (tree_int_cst_lt): Compare constants whose types differ
5925 in unsigned-ness correctly.
5927 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5929 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5930 portable runtime model.
5932 2002-04-26 Richard Henderson <rth@redhat.com>
5934 * c-parse.in (yyoverflow): Revert.
5936 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5937 Richard Henderson <rth@redhat.com>
5939 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5940 result as temporary value.
5942 2002-04-26 Richard Henderson <rth@redhat.com>
5945 * c-common.c (fix_string_type): Split out of ...
5946 (combine_strings): ... here. Take a varray, not a tree list.
5947 (c_expand_builtin_printf): Use fix_string_type.
5948 * c-common.h: Update decls.
5949 * c-parse.in (string): Remove. Update all uses to use STRING
5950 instead, and not call combine_strings.
5953 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5954 (build_asm_stmt): Likewise.
5955 * objc/objc-act.c (my_build_string): Use fix_string_type.
5956 (build_objc_string_object): Build varray for combine_strings.
5958 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5960 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5963 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5965 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5966 (HAVE_NO_R_OPERAND): Remove.
5967 (HAVE_VALUE): Remove.
5968 (op_to_prio): Update.
5969 (UNARY): Don't alter flags.
5970 (_cpp_parse_expr): want_value used to indicate whether
5971 a number or unary operator is expected next. Distinguish
5972 unary and binary +/-.
5973 (op_as_text): Update for unary operators.
5975 2002-04-25 Richard Henderson <rth@redhat.com>
5978 * c-parse.in (yyoverflow): New.
5980 2002-04-25 Richard Henderson <rth@redhat.com>
5983 * c-common.c (shorten_compare): Simplfy conditions leading to
5984 the generation of a warning.
5986 2002-04-25 Richard Henderson <rth@redhat.com>
5989 * expmed.c (extract_bit_field): Fall through to generic code rather
5990 than aborting on subreg special case.
5992 2002-04-25 David S. Miller <davem@redhat.com>
5994 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5995 for DECL being NULL.
5997 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5999 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
6001 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
6003 * c-decl.c (grokdeclarator): Remove outdated ??? note
6004 on invalid declaration of flexible array members.
6006 2002-04-25 Richard Henderson <rth@redhat.com>
6008 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
6010 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6012 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
6013 needed by the compiler, even if they are used as global regs.
6015 2002-04-25 Matt Hiller <hiller@redhat.com>
6017 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
6019 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
6020 of the corresponding functions.
6021 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
6024 2002-04-25 Matt Hiller <hiller@redhat.com>
6026 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
6028 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
6029 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
6030 registers, adjust comment accordingly.
6031 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
6032 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
6033 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
6034 for coprocessor registers.
6035 (ADDITIONAL_REGISTER_NAMES): Include
6036 ALL_COP_ADDITIONAL_REGISTER_NAMES.
6038 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
6039 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
6040 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
6041 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
6042 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
6044 (mips_char_to_class): Adjust comment to include coprocessor
6047 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
6049 (mips_reg_names, mips_regno_to_class): Include coprocessor
6051 (mips_sw_reg_names): Ditto, make non-static.
6052 (mips_move_1word): Handle moves to and from coprocessor registers.
6053 (mips_move_2words): Handle moves to and from coprocessor
6055 (mips_class_max_nregs, mips_register_move_cost): Handle
6056 coprocessor register classes.
6057 (override_options): Initialize mips_char_to_class and
6058 mips_hard_regno_mode_ok properly for coprocessor registers.
6060 * config/mips/mips.md (movdi_internal, movdi_internal2,
6061 movsi_internal1, movsi_internal2): Add constraint-sets for
6062 coprocessor registers.
6063 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
6064 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
6066 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
6067 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
6069 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
6070 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
6072 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
6073 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
6076 * doc/tm.texi: Document feature.
6078 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
6080 * integrate.c (function_attribute_inlinable_p): Simplify.
6081 Check the table pointer is not NULL.
6083 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
6085 * doc/c-tree.texi: Fix typo in introduction.
6087 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
6089 * c-common.h (c_common_parse_file): Update.
6090 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
6091 * c-lex.c (YYDEBUG): Get from c-lex.h.
6092 (c_common_parse_file): Update.
6093 * c-lex.h (YYDEBUG, yydebug): New.
6094 * c-parse.in (YYDEBUG): Get from c-lex.h.
6095 (c_set_yydebug): Remove.
6096 * c-tree.h (c_set_yydebug): Remove.
6097 * langhooks-def.h (lhd_do_nothing_i): New.
6098 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
6099 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
6100 * langhooks.c (lhd_do_nothing_i): New.
6101 (lhd_set_yydebug): Remove.
6102 * langhooks.h (struct lang_hooks): Update.
6103 * toplev.c (set_yydebug): New.
6104 (compile_file): Update call to parse_file hook.
6105 (decode_d_option): Update.
6107 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
6109 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
6111 * loop.c (load_mems): Don't change the interface of called functions.
6113 * calls.c (expand_call): Take current_function_pretend_args_size
6114 into account when setting argblock for sibcalls.
6116 2002-04-24 Matt Hiller <hiller@redhat.com>
6118 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
6121 * cpplex.c (skip_line_comment): Process comment one multibyte
6122 character at a time rather than one char at a time, if
6124 (parse_string): Process string one multibyte character at a time
6125 rather than one char at a time, if appropriate.
6126 * c-lex.c (lex_string): Lex and copy multibyte strings
6128 * cpplib.h (cppchar_t): Change to unsigned.
6130 2002-04-24 Richard Henderson <rth@redhat.com>
6133 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
6136 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
6138 * sh.c (sh_va_arg): If argument was passed by reference,
6139 dereference the pointer.
6141 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6143 * sh.md (divsi3_i4_media): Use match_operand for input values
6144 rather than hard registers.
6145 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
6146 unnecessarily through hard registers. Keep copies of pseudo
6147 registers outside of the libcall sequence.
6149 * sh.md (casesi_shift_media): Add modes.
6151 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
6154 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
6156 * attribs.c (c_common_attribute_table): Move table and handlers
6158 (format_attribute_table, lang_attribute_table,
6159 lang_attribute_common): Remove.
6160 (init_attributes): Replace NULL pointers with pointers to the
6162 (handle_packed_attribute, handle_nocommon_attribute,
6163 handle_common_attribute, handle_noreturn_attribute,
6164 handle_noinline_attribute, handle_always_inline_attribute,
6165 handle_used_attribute, handle_unused_attribute,
6166 handle_const_attribute, handle_transparent_union_attribute,
6167 handle_constructor_attribute, handle_destructor_attribute,
6168 handle_mode_attribute, handle_section_attribute,
6169 handle_aligned_attribute, handle_weak_attribute,
6170 handle_alias_attribute, handle_visibility_attribute,
6171 handle_no_instrument_function_attribute, handle_malloc_attribute,
6172 handle_no_limit_stack_attribute, handle_pure_attribute,
6173 handle_deprecated_attribute, handle_vector_size_attribute,
6174 vector_size_helper): Move to c-common.c.
6175 * c-common.c (c_common_attribute_table,
6176 handle_packed_attribute, handle_nocommon_attribute,
6177 handle_common_attribute, handle_noreturn_attribute,
6178 handle_noinline_attribute, handle_always_inline_attribute,
6179 handle_used_attribute, handle_unused_attribute,
6180 handle_const_attribute, handle_transparent_union_attribute,
6181 handle_constructor_attribute, handle_destructor_attribute,
6182 handle_mode_attribute, handle_section_attribute,
6183 handle_aligned_attribute, handle_weak_attribute,
6184 handle_alias_attribute, handle_visibility_attribute,
6185 handle_no_instrument_function_attribute, handle_malloc_attribute,
6186 handle_no_limit_stack_attribute, handle_pure_attribute,
6187 handle_deprecated_attribute, handle_vector_size_attribute,
6188 vector_size_helper): Move from attribs.c.
6189 * c-common.h (c_common_attribute_table,
6190 c_common_format_attribute_table): New.
6191 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6192 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6193 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
6194 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
6195 (LANG_HOOKS_INITIALIZER): Update.
6196 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
6197 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
6198 * target.h: Update comment.
6199 * tree.c (default_target_attribute_table): Remove.
6200 * tree.h (default_target_attribute_table, format_attribute_table,
6201 lang_attribute_table, lang_attribute_common): Remove.
6203 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6204 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6206 2002-04-24 Jason Merrill <jason@redhat.com>
6208 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
6209 * dwarf2out.c (dwarf_attr_name): Support it.
6210 (gen_array_type_die): Emit it.
6211 (lookup_type_die): No special handling for VECTOR_TYPE.
6212 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
6214 2002-04-24 Richard Henderson <rth@redhat.com>
6216 * config/mips/mips.md (movdi_usd): Renumber.
6218 2002-04-24 David S. Miller <davem@redhat.com>
6221 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
6222 32-bit Sparc and current_function_returns_struct is true.
6224 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
6226 * loop.c (canonicalize_condition): Use gen_int_mode.
6228 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
6230 * config/rs6000/altivec.h: Cleanup file. Add non individual
6252 (vec_vcmpequb): New.
6253 (vec_vcmpequh): New.
6254 (vec_vcmpequw): New.
6255 (vec_vcmpeqfp): New.
6256 (vec_vcmpgefp): New.
6257 (vec_vcmpgtub): New.
6258 (vec_vcmpgtsb): New.
6259 (vec_vcmpgtuh): New.
6260 (vec_vcmpgtsh): New.
6261 (vec_vcmpgtuw): New.
6262 (vec_vcmpgtsw): New.
6263 (vec_vcmpgtfp): New.
6264 (vec_vcmpgefp): New.
6269 (vec_vexptefp): New.
6274 (vec_lde): Add vector float variant.
6279 (vec_vmhaddshs): New.
6301 (vec_vmladduhm): New.
6302 (vec_vmhraddshs): New.
6304 (vec_vmsummbm): New.
6305 (vec_vmsumuhm): New.
6306 (vec_vmsumshm): New.
6307 (vec_vmsumuhs): New.
6308 (vec_vmsumshs): New.
6317 (vec_vnmsubfp): New.
6335 (vec_vrsqrtefp): New.
6346 (vec_vspltisb): New.
6347 (vec_vspltish): New.
6348 (vec_vspltisw): New.
6373 (vec_vsum4ubs): New.
6374 (vec_vsum4sbs): New.
6375 (vec_vsum4shs): New.
6376 (vec_vsum2sws): New.
6387 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
6390 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6391 added literals from substracted literals.
6392 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6393 (fold) [associate]: Preserve MINUS_EXPR if needed.
6395 2002-04-23 Zack Weinberg <zack@codesourcery.com>
6397 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6400 2002-04-23 Tom Tromey <tromey@redhat.com>
6402 * gcc.c: Added --resource. For PR java/6314.
6404 2002-04-23 David O'Brien <obrien@FreeBSD.org>
6406 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6407 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6410 2002-04-23 David O'Brien <obrien@FreeBSD.org>
6412 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6414 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
6416 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6418 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6419 (ix86_expand_clrstr): Fix typo.
6420 * loop.c (gen_load_of_final_value): New.
6421 (loop_givs_rescan, strength_reduce, check_dbra_loop):
6424 2002-04-23 Roger Sayle <roger@eyesopen.com>
6426 * builtins.c (builtin_memset_gen_str): New function.
6427 (expand_builtin_memset): Optimize the case of constant length, but
6430 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
6432 * config/rs6000/altivec.h (vec_step): Remove extraneous
6434 (vec_ctu): Cast return.
6436 2002-04-23 Alan Modra <amodra@bigpond.net.au>
6439 * function.h: (struct function): Add profile_label_no field.
6440 (current_function_profile_label_no): Define.
6441 * function.c: (profile_label_no): New static var.
6442 (expand_function_start): Increment it, and copy to
6443 current_function_profile_label_no.
6444 * output.h (profile_label_no): Delete.
6445 * final.c (profile_label_no): Delete.
6446 (profile_function): Use current_function_profile_label_no.
6447 (final_end_function): Don't increment profile_label_no here.
6448 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6449 profile_label_no with current_function_profile_label_no.
6450 * config/pa/pa.c (current_function_number): Delete.
6451 (pa_output_function_prologue): Don't output profile label here.
6452 (hppa_profile_hook): Use label_no param rather than
6453 current_function_number.
6454 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6455 * config/pa/pa.h: .. here.
6456 (FUNCTION_PROFILER): Output profile label here.
6458 2002-04-22 Eric Christopher <echristo@redhat.com>
6460 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6461 patch of 2002-04-09 due to binutils issues.
6462 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6464 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6466 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6467 constraint to 'o' for m=r and r=m alternatives.
6468 ("*movv8hi_internal1"): Same.
6469 ("*movv16qi_internal1"): Same.
6470 ("*movv4sf_internal1"): Same.
6472 2002-04-22 Janis Johnson <janis187@us.ibm.com>
6474 * rtl.h (RTX_FLAG): New macro.
6475 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6476 * final.c (alter_subreg): Use macro to access rtx flag.
6477 * integrate.c (copy_rtx_and_substitute): Use new access macro.
6478 * print-rtl.c (print_rtx): Use new access macro.
6480 * cse.c (insert): Check rtx code before accessing flag.
6482 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6483 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6484 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6485 convert_const_symbol_ref, make_canonical, make_alternative_compare,
6486 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6487 simplify_test_exp, optimize_attrs, simplify_by_exploding,
6488 find_and_mark_used_attributes, unmark_used_attributes,
6489 add_values_to_cover, simplify_with_current_value,
6490 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6491 copy_rtx_unchanging, main): Use new access macros.
6493 2002-04-22 Tom Rix <trix@redhat.com>
6495 * expmed.c (init_expmed): Generate shifted constant once.
6497 2002-04-22 Zack Weinberg <zack@codesourcery.com>
6499 * c-lex.c (lex_charconst): Call convert to get constant in
6500 proper type; don't just smash the type field.
6503 * config.gcc: Add list of obsolete configurations. Disallow
6504 building these without --enable-obsolete.
6505 * doc/install.texi: Document --enable-obsolete and obsoletion
6506 policy. Mention obsoletion of individual targets in
6509 2002-04-22 Richard Henderson <rth@redhat.com>
6511 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6513 2002-04-22 Mark Mitchell <mark@codesourcery.com>
6516 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6517 (walk_fixup_memory_subreg): Likewise.
6518 (fixup_var_refs_insn): Adjust accordingly.
6519 (fixup_var_refs_1): Likewise.
6521 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
6523 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6524 LIBPATH_ARCH64_SPEC): Define.
6525 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6526 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6527 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6528 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6530 2002-04-22 Joel Sherrill <joel@OARcorp.com>
6532 * gthr-rtems.h: Correct prototypes to remove warnings.
6534 2002-04-22 Richard Henderson <rth@redhat.com>
6537 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6539 * gcse.c (free_insn_expr_list_list): New.
6540 (clear_modify_mem_tables): Use it. Fix bit set usage.
6541 (canon_list_insert): Use EXPR_LISTs for expressions.
6542 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6544 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
6546 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
6547 file change and include code to _cpp_pop_buffer.
6548 * cpphash.h (struct pending_option): Predeclare.
6549 (struct cpp_reader): New member next_include_file.
6550 (_cpp_pop_file_buffer): Update.
6551 (_cpp_push_next_buffer): Update, rename.
6552 * cppinit.c (cpp_destroy): Free include chain and pending here.
6553 (cpp_finish_options): Simplify.
6554 (_cpp_push_next_buffer): Rename and clean up.
6555 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6557 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6559 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6561 * config/rs6000/altivec.h (vec_xor): Add variant for both args
6562 being vector signed int.
6564 (vec_xor): Add variant for both args being vector signed char.
6565 Remove redundant variant.
6568 2002-04-21 David S. Miller <davem@redhat.com>
6570 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6571 compare mode in output RTL.
6573 2002-04-22 David Edelsohn <edelsohn@gnu.org>
6575 * config/rs6000/rs6000.c (rs6000_override_options): Correct
6576 style and formatting of previous patch.
6578 2002-04-22 Alan Modra <amodra@bigpond.net.au>
6580 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6581 flag_pic for ABI_AIX.
6583 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6585 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6586 * cppfiles.c (read_include_file): Similarly.
6587 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6588 uxstrdup ustrchr, ufputs): Similarly.
6589 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6590 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6591 cpp_ideq, parse_identifier, parse_number): Similarly.
6592 * cpplib.c (struct directive, dequote_string, D, run_directive,
6593 cpp_push_buffer): Similarly.
6594 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6595 _cpp_create_definition, check_trad_stringification,
6596 cpp_macro_definition): Similarly.
6598 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6600 * cppmacro.c (funlike_invocation_p): Don't step back
6603 2002-04-21 David Edelsohn <edelsohn@gnu.org>
6605 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6608 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
6610 * doc/invoke.texi: Remove Chill references.
6611 * doc/gcc.texi: Update last modified date.
6613 2002-04-20 Kazu Hirata <kazu@hxi.com>
6615 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6616 push and pop. Replace add.l with add.w.
6618 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6620 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6621 multiply instructions for H8/300H case.
6623 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6625 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6626 Bum three instructions from each routine.
6628 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
6630 * Makefile.in: Update.
6631 * decl.c (push_c_function_context, pop_c_function_context,
6632 mark_c_function_context): Rename for consistency.
6633 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6634 * c-tree.h (push_c_function_context, pop_c_function_context,
6635 mark_c_function_context): Rename for consistency.
6636 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6637 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6638 * function.c (init_lang_status, save_lang_status,
6639 restore_lang_status, mark_lang_status, free_lang_status):
6640 Move to langhooks.h.
6641 (push_function_context_to, pop_function_context_from,
6642 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6644 * function.h (init_lang_status, save_lang_status,
6645 restore_lang_status, mark_lang_status, free_lang_status):
6646 Move to langhooks.h.
6647 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6648 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6649 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6650 LANG_HOOKS_FUNCTION_INITIALIZER): New.
6651 (LANG_HOOKS_INITIALIZER): Update.
6652 (lhd_do_nothing_f): New.
6653 * langhooks.h (struct lang_hooks_for_functions): New.
6654 (struct lang_hooks): New hooks.
6655 * langhooks.c (lhd_do_nothing_f): New.
6657 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6658 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6660 2002-04-19 David S. Miller <davem@redhat.com>
6662 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6663 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6665 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6667 PR optimization/3756
6668 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6669 x = ((int) y < 0) ? cst1 : cst2.
6671 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6674 * function.c: Reapply patch for c/6358.
6675 (expand_function_end): Copy decl_rtl's mode, not
6676 current_function_return_rtx mode.
6678 2002-04-19 Joel Sherrill <joel@OARcorp.com>
6680 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6683 2002-04-19 Tom Tromey <tromey@redhat.com>
6685 * doc/install.texi (Specific): Update status of Solaris 2.8.
6688 2002-04-19 Andreas Schwab <schwab@suse.de>
6690 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6691 (PUT_REAL): Restore old definition.
6693 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6694 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6696 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6697 binutils 2.11.2 and higher generate smaller binaries than Sun's
6700 2002-04-19 Mark Mitchell <mark@codesourcery.com>
6703 * toplev.c (rest_of_compilation): Do not defer functions for which
6704 TREE_SYMBOL_REFERENCED has already been set.
6706 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
6708 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6711 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
6713 * builtins.c: Include langhooks.h.
6714 (lang_type_promotes_to): Remove.
6715 (expand_builtin_va_arg): Use new hook.
6716 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6717 (simple_type_promotes_to): Move to c-typeck.c.
6718 * c-common.h (simple_type_promotes_to): Remove.
6719 * c-decl.c (duplicate_decls, grokdeclarator): Update.
6720 * c-format.c: Include langhooks.h.
6721 (check_format_types): Update.
6722 * c-tree.h (c_type_promotes_to): New.
6723 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6724 (type_lists_compatible_p): Update.
6725 * langhooks-def.h (lhd_type_promotes_to): New.
6726 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6727 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6728 * langhooks.c (lhd_type_promotes_to): New.
6729 * langhooks.h (struct lang_hooks_for_types): New hook.
6730 * tree.h (lang_type_promotes_to): Remove.
6732 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6734 2002-04-18 Richard Henderson <rth@redhat.com>
6736 * function.c: Revert patch for c/6358.
6738 2002-04-18 Richard Henderson <rth@redhat.com>
6740 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6741 blocks. Handle multiple references to the TRAP block. Handle
6742 non-adjacent THEN and OTHER blocks.
6744 2002-04-18 Richard Henderson <rth@redhat.com>
6746 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6747 crash with no type for by-mode libcalls.
6749 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6751 2002-04-18 Bob Wilson <bob.wilson@acm.org>
6753 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6754 __xtensa_nonlocal_goto): Use a syscall instructions to flush
6755 the register windows.
6757 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6759 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6760 appropriate. Document need for extended precision even when
6761 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
6762 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
6763 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
6764 instead of relying on later syntax error when REAL_WIDTH > 5.
6765 * real.c: Define NE based only on whether or not we have a
6766 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6767 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
6768 define GET_REAL and PUT_REAL as simple memcpy operations; no
6769 need to byteswap or round.
6770 Use #error instead of #ifdef-ing out the entire file, for
6771 prompt error detection.
6773 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6775 2002-04-18 David S. Miller <davem@redhat.com>
6777 * config/sparc/sparc.h (BRANCH_COST): Define.
6779 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6782 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
6784 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6785 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6786 propagate_block calls after relaxation loop using new variable
6787 stabilized_prop_flags.
6789 2002-04-18 Richard Henderson <rth@redhat.com>
6791 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6792 (ia64_va_arg): Expect variable sized types by reference.
6793 * config/ia64/ia64-protos.h: Update.
6794 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6795 ia64_function_arg_pass_by_reference.
6797 2002-04-18 Richard Henderson <rth@redhat.com>
6799 * ifcvt.c: Include except.h.
6800 (block_has_only_trap): Break out from find_cond_trap.
6801 (find_cond_trap): Use it. Always delete the trap block.
6802 (merge_if_block): Allow then block null. Be less simplistic about
6803 what insns can end a block.
6804 * Makefile.in (ifcvt.o): Depend on except.h.
6806 * config/ia64/ia64.md (trap, conditional_trap): New.
6808 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6811 * function.c (assign_parms): Assign hard current_function_return_rtx
6813 (expand_function_end): ...not here.
6815 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
6817 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6818 * c-tree.h (c_incomplete_type_error): New.
6819 * c-typeck.c (require_complete_type, build_component_ref): Update.
6820 (incomplete_type_error): Rename.
6821 * langhooks-def.h (lhd_incomplete_type_error): New.
6822 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6823 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6824 * langhooks.c (lhd_incomplete_type_error): New.
6825 * langhooks.h (struct lang_hooks_for_types): New hook.
6826 * tree.c (size_in_bytes): Use new hook.
6827 * tree.h (incomplete_type_error): Remove.
6829 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6831 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6833 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6834 TARGET_FLOAT_FORMAT blocks.
6836 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6838 * doc/install.texi (Downloading the source): Do not mention Chill
6839 any longer, but mention Ada.
6840 (Configuration): Do not mention Chill any longer.
6842 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
6844 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6846 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
6848 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6851 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6853 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6854 instead of unsigned_type.
6856 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6858 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6859 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6862 2002-04-18 Bernd Schmidt <bernds@redhat.com>
6864 * attribs.c (vector_type_node_list): New static variable.
6865 (handle_vector_size_attribute): Use it to avoid generating a
6866 new type node each time we are called.
6868 * combine.c (subst): Avoid trying to make a vector mode subreg of
6869 an integer constant.
6870 (gen_lowpart_for_combine): Likewise.
6872 2002-04-18 Roger Sayle <roger@eyesopen.com>
6873 Jakub Jelinek <jakub@redhat.com>
6875 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6876 for integer constant c (if x has unsigned type or sign bit is not
6877 set in c). This folds the zero/sign extension into the bit-wise and
6880 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6883 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6886 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
6888 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6890 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
6892 * gcc.c (read_specs): Detect and fail if an attempt is made to
6893 rename a spec string to an already existing string.
6895 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6897 * config/s390/s390.c (legitimize_pic_address): Do not generate
6898 illegal address constant without CONST.
6900 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6902 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6903 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6905 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6907 PR optimization/6305
6908 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6909 to make sure previous reloads are taken into account. Generate
6910 better code if one operand is an in-range immediate constant.
6912 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
6914 * doc/install.texi (Building): libgcj requires GNU make.
6916 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6919 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6920 even if hard quad and register is not floating.
6921 (movtf reg<-mem split): Disallow splitting if hard quad and
6922 register is floating.
6923 (movtf mem<-reg split): Likewise.
6924 * config/sparc/sparc.c (fp_register_operand): New predicate.
6925 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6927 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6929 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6930 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6931 (unprotoize.o): Ditto. Build from protoize.c. Define
6932 UNPROTOIZE on command line.
6933 * protoize.c: Include cppdefault.h. Delete include_defaults.
6934 (in_system_include_dir): Use cpp_include_defaults (defined in
6936 * unprotoize.c: Delete file.
6938 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6940 * config/rs6000/altivec.h (vec_ld): Add array variants.
6944 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6945 Aldy Hernandez <aldyh@redhat.com>
6947 * config/rs6000/altivec.h: Define __ALTIVEC__.
6954 Add parentheses to all macro arguments.
6956 2002-04-16 Richard Henderson <rth@redhat.com>
6959 * except.c (remove_eh_handler): Insert inner regions at beginning
6960 of sibling chain. Refactor expressions.
6962 2002-04-16 Richard Henderson <rth@redhat.com>
6964 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6965 * config/sparc/sol2-gas-bi.h: New file.
6966 * config.gcc (sparc*-solaris): Add it as needed.
6967 * configure.in (AS_SPARC64_FLAG): Remove check.
6968 * config.in, configure: Regenerate.
6970 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6972 2002-04-16 Richard Henderson <rth@redhat.com>
6974 * config/mips/mips.c (override_options): Don't override N32 for
6978 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6979 (HILO_delay): Set can_delay false.
6981 2002-04-16 Dale Johannesen <dalej@apple.com>
6983 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6984 instruction addresses.
6985 (rs6000_output_function_epilogue): Likewise.
6987 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6989 * c-parse.in (poplevel, compstmt_start,
6990 compstmt_primary_start): Add ending ';', in accordance
6993 2002-04-16 Richard Henderson <rth@redhat.com>
6995 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6996 Adjust tm_file order to get TARGET_DEFAULT set properly.
6997 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6998 * doc/install.texi (sparc-solaris): Update.
7000 2002-04-16 Dale Johannesen <dalej@apple.com>
7002 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
7003 comparison operands do not match each other or if modes of
7004 conditions do not match result.
7006 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
7009 * config/s390/s390.md (mulsidi3): Set both subregs of the
7012 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
7014 * config/rs6000/altivec.h (vec_addc): Type check.
7016 2002-04-16 Jakub Jelinek <jakub@redhat.com>
7019 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
7021 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
7023 2002-04-15 Richard Henderson <rth@redhat.com>
7025 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
7026 call_really_used_regs too.
7028 2002-04-15 Richard Henderson <rth@redhat.com>
7030 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
7032 2002-04-15 David S. Miller <davem@redhat.com>
7034 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
7037 2002-04-16 Jakub Jelinek <jakub@redhat.com>
7040 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
7041 CONST_VECTOR is { 0, ... 0 }.
7043 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
7045 * doc/install.texi (Installing GCC: Configuration): Clarify
7046 the only supported ways to configure gcc.
7048 2002-04-15 Roland McGrath <roland@frob.com>
7050 * config.gcc (alpha*-*-gnu*): New target configuration.
7051 * config/alpha/gnu.h: New file for it.
7052 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
7054 2002-04-16 Mark Mitchell <mark@codesourcery.com>
7056 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
7057 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
7058 * tree.h (expand_start_stmt_expr): Update prototype.
7059 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
7060 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
7061 on the STMT_EXPR created for the inline function.
7063 2002-04-15 Richard Henderson <rth@redhat.com>
7065 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
7066 config/i386/linux-aout.h, config/i386/linux-oldld.h,
7067 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
7068 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
7069 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
7070 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
7071 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
7072 Define __gnu_linux__, not gnu_linux.
7073 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
7075 2002-04-15 Mark Mitchell <mark@codesourcery.com>
7077 Remove Chill front end.
7078 * gcc.c (default_compilers): Remove Chill entries.
7079 * ch: Remove directory.
7080 * doc/frontends.texi: Remove information about Chill.
7081 * doc/sourcebuild.texi: Likewise.
7082 * doc/standards.texi: Likewise.
7084 2002-04-15 Douglas B Rupp <rupp@gnat.com>
7086 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
7087 (LONGLONG_STANDALONE): Define.
7089 2002-04-15 David S. Miller <davem@redhat.com>
7091 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
7092 Call emit_library_call with LCT_NORMAL.
7093 (sparc_initialize_trampoline): Use LCT_foo instead of
7094 magic constant in emit_library_call invocations.
7095 (sparc64_initialize_trampoline): Likewise.
7096 (sparc_profile_hook): Likewise.
7097 * config/sparc/sparc.md: Likewise.
7099 * config/sparc/sparc.c (sparc_extra_constraint_check):
7100 Fix type of argument 'c'.
7101 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
7104 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
7106 * diagnostic.h (output_buffer_state): Redefine.
7107 (output_format_decoder): New macro.
7108 (output_prefixing_rule): Likewise.
7109 (output_line_cutoff): Likewise.
7110 (diagnostic_format_decoder): Adjust.
7111 (diagnostic_prefixing_rule): Likewise.
7112 (diagnostic_line_cutoff): Likewise.
7113 (diagnostic_state): Likewise.
7114 (diagnostic_kind_count): Likewise.
7115 (diagnostic_buffer): Now a macro.
7117 * diagnostic.c (diagnostic_buffer): Remove definition.
7118 (output_is_line_wrapping): Adjust.
7119 (set_real_maximum_length): Likewise.
7120 (output_set_maximum_length): Likewise.
7121 (init_output_buffer): Likewise.
7122 (lhd_print_error_function): Likewise.
7123 (output_do_verbatim): Likewise.
7125 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
7127 * cpperror.c (print_location): Don't print include chain
7129 (cpp_begin_message): Update to use DL_ macros.
7130 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7131 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7132 cpp_notice, cpp_notice_from_errno): Remove.
7133 (cpp_error, cpp_error_with_line): Update to take a diagnostic
7136 * cppexp.c (CPP_ICE): Remove.
7137 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
7138 lex, integer_overflow, _cpp_parse_expr): Update.
7139 * cppfiles.c (read_include_file, find_include_file,
7140 handle_missing_header, _cpp_read_file, remap_filename): Update.
7141 * cpphash.h (enum error_type): Remove.
7142 (_cpp_begin_message): Update.
7143 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
7144 cpp_handle_option, cpp_post_options): Update.
7145 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
7146 skip_whitespace, parse_identifier, parse_slow, parse_string,
7147 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
7148 cpp_interpret_charconst): Update.
7149 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
7150 lex_macro_node, do_undef, glue_header_name, parse_include,
7151 do_include_common, read_flag, do_line, do_linemarker, do_ident,
7152 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
7153 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
7154 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
7155 _cpp_pop_buffer, do_diagnostic): Update.
7156 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
7157 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
7158 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7159 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7160 cpp_notice, cpp_notice_from_errno): Remove.
7161 (cpp_error, cpp_error_with_line): Update to take a diagnostic
7164 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
7165 collect_args, enter_macro_context, save_parameter, parse_params,
7166 _cpp_create_definition, check_trad_stringification,
7167 cpp_macro_definition): Update.
7168 * cppmain.c (cpp_preprocess_file): Update.
7169 * fix-header.c (read_scan_file): Update.
7171 2002-04-14 Andreas Schwab <schwab@suse.de>
7173 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
7175 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7177 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
7179 2002-04-13 Mark Mitchell <mark@codesourcery.com>
7181 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
7184 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
7186 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
7188 2002-04-13 Joel Sherrill <joel@OARcorp.com>
7190 * config/sparc/t-elf: Enable v8 multilibs. Impacts
7191 sparc-elf and sparc-rtems targets.
7193 2002-04-13 Mark Mitchell <mark@codesourcery.com>
7195 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
7196 defined, and __gnu_hurd__ wherever __GNU__ is defined.
7197 * arm/linux-elf.h: Likewise.
7198 * cris/aout.h: Likewise.
7199 * cris/linux.h: Likewise.
7200 * i370/linux.h: Likewise.
7201 * i386/gnu.h: Likewise.
7202 * i386/linux-aout.h: Likewise.
7203 * i386/linux-oldld.h: Likewise.
7204 * i386/linux.h: Likewise.
7205 * i386/linux64.h: Likewise.
7206 * ia64/linux.h: Likewise.
7207 * m68k/linux-aout.h: Likewise.
7208 * m68k/linux.h: Likewise.
7209 * mips/linux.h: Likewise.
7210 * pa/pa-linux.h: Likewise.
7211 * pj/linux.h: Likewise.
7212 * rs6000/sysv4.h: Likewise.
7213 * s390/linux.h: Likewise.
7214 * sh/linux.h: Likewise.
7215 * sparc/linux-aout.h: Likewise.
7216 * sparc/linux.h: Likewise.
7217 * sparc/linux64.h: Likewise.
7218 * xtensa/linux.h: Likewise.
7220 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
7222 * stmt.c (check_unique_operand_names): Expect operand names to
7223 be strings rather than identifiers. Use simple_cst_equal to
7225 (resolve_operand_name_1): Make same identifier to string change here.
7226 * c-parse.in (asm_operand): Convert a named operand into a string.
7227 * cp/parse.y (asm_operand): Likewise.
7229 2002-04-13 Andreas Schwab <schwab@suse.de>
7231 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
7233 2002-04-12 Mark Mitchell <mark@codesourcery.com>
7235 Revert these changes:
7237 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7240 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7242 2002-04-12 Richard Henderson <rth@redhat.com>
7244 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
7245 (sparc*-*-solaris): Clean up header files.
7246 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
7247 and plan on generating 64-bit code.
7248 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
7249 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
7250 * config/sparc/sol2-sld-64.h: Rename ...
7251 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
7252 for AS_SPARC64_FLAG not defined.
7253 * config/sparc/sol2-gld-bi.h: New.
7254 * config/sparc/sol2-sld.h: Remove.
7255 * config/sparc/sol26-sld.h: New.
7256 * config/sparc/sol2.h: Tidy comments.
7257 * doc/install.texi: Document sparc-solaris configury changes.
7259 2002-04-12 Richard Henderson <rth@redhat.com>
7261 * recog.c (offsettable_address_p): Match the logic in adjust_address.
7263 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
7264 in 64-bit mode only. Use only for 32-bit or MEDLOW.
7266 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7268 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
7270 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
7272 * pa.c (pa_can_combine_p): Call extract_insn before calling
7275 2002-04-12 Douglas B Rupp <rupp@gnat.com>
7277 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
7278 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
7279 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7280 (CPP_PREDEFINES): Handle __declspec.
7281 * config/i386/t-interix (USER_H): Remove.
7283 2002-04-12 DJ Delorie <dj@redhat.com>
7285 * integrate.c (compare_blocks): Make comparisons safe for when
7286 sizeof(int) < sizeof(char *).
7287 (find_block): Likewise.
7289 2002-04-12 Jan Hubicka <jh@suse.cz>
7290 David Edelsohn <edelsohn@gnu.org>
7292 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
7294 (symbol_ref_operand): New.
7295 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
7296 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
7298 2002-04-12 Andreas Schwab <schwab@suse.de>
7300 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
7301 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
7302 overrides the definition in config/svr4.h.
7304 2002-04-12 Eric Norum <eric.norum@usask.ca>
7306 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
7307 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
7308 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
7309 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
7310 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
7311 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
7312 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
7313 definitions to config/rtems.h and make the targets more similar.
7315 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7317 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7318 POINTERS_EXTEND_UNSIGNED.
7319 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7320 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7322 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7325 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
7327 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7328 depends on TARGET_SHMEDIA, not TARGET_SH5.
7330 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
7332 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7333 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7335 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
7337 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7340 2002-04-12 Andreas Schwab <schwab@suse.de>
7342 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7344 2002-04-12 Richard Henderson <rth@redhat.com>
7347 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7349 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7350 modes spanning multiple hard regs.
7352 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7354 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7356 * pa.c (pa_output_function_prologue): Don't accumulate the total
7357 number of code bytes when using TARGET_64BIT, or gas, SOM and not
7358 the portable runtime.
7359 (output_deferred_plabels): Handle 64bit plabels.
7360 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7361 generating pic code using the GAS assembler for object formats that
7362 are not SOM (ie., ELF32 and ELF64).
7363 (output_millicode_call): Check attribute type if attribute length is 28.
7364 Likewise use $PIC_pcrel$0. Only call get_attr_length and
7365 dbr_sequence_length once.
7366 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7367 dbr_sequence_length once.
7368 * pa.h (TARGET_SOM): Define if not defined.
7369 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7370 with GAS and not SOM.
7371 (jump, call_internal_reg, call_value_internal_reg): Likewise.
7372 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
7374 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7376 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7377 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7378 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7379 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7380 elfos.h and dbxelf.h values are fine now.
7381 * config/i386/freebsd.h, config/alpha/freebsd.h
7382 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7384 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7386 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7387 or set Acpu or Amachine. Reformat.
7388 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7390 (LINK_SPEC): Do not need to undef.
7391 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7392 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7393 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7395 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7396 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7397 (LINK_SPEC): Do not need to undef.
7398 (DONT_USE_BUILTIN_SETJMP): Do not define.
7399 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7400 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
7401 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7402 Remove trailing spaces.
7403 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7404 __ELF__, or set Acpu or Amachine. Reformat.
7405 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7408 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7410 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7411 all other *-*-freebsd* targets.
7413 2002-04-11 Richard Henderson <rth@redhat.com>
7415 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7417 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7419 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7420 Include {cpu}/{cpu}.h thru tm_file.
7421 (alpha*-*-linux*ecoff): Remove target.
7422 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7423 (LINK_SPEC): Remove, is not OS independent.
7424 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7425 (LINK_SPEC): Do not need to #undef any longer.
7426 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7428 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7430 (LINK_SPEC): Moved here from alpha/elf.h.
7431 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7433 * config/alpha/linux-ecoff.h: Remove.
7434 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7435 (CPP_SPEC): Define _POSIX_SOURCE as needed.
7436 (CPP_SUBTARGET_SPEC): Do not define.
7437 (LINK_SPEC): Do not need to #undef any longer.
7438 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7439 * config/alpha/vms.h: Likewise.
7441 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
7443 * doc/extend.texi: Remove old claim that typedefs cannot have
7444 an alignment attribute.
7446 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7448 PR optimization/6177
7449 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7450 bitpos is 0 and bitsize CONCAT size.
7452 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7455 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7457 2002-04-10 David O'Brien <obrien@FreeBSD.org>
7459 * config/alpha/freebsd.h: Minor reformatting.
7460 (CPP_SPEC): Define ELF and add cpp_subtarget.
7461 (ASM_SPEC): No longer needed.
7463 2002-04-11 Richard Henderson <rth@redhat.com>
7465 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7466 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
7467 (dimode mem/zero splitter): New.
7469 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
7471 * config/cris/cris.c (cris_override_options): Tweak error message
7472 for PIC not implemented.
7474 * config/cris/cris.h: Tweak comments related to parameter-passing.
7476 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7478 2002-04-10 Richard Henderson <rth@redhat.com>
7480 * except.c (add_ehl_entry): Allow duplicates after landing pad
7483 2002-04-10 David Edelsohn <edelsohn@gnu.org>
7485 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7487 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
7489 * c-decl.c (c_init_decl_processing): Move generation of
7490 decls for g77_integer_type_node and friends from here ...
7491 * c-common.c (c_common_nodes_and_builtins): ... to here.
7493 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
7495 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7496 is only used as frame pointer when frame_pointer_needed is true.
7498 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
7501 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7502 for the fact that the pool entry uses two words.
7503 (movdf_hard_insn): Similarly. Also, ADR instruction can span
7505 (movdf_soft_insn): Similarly.
7506 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7507 for the fact that the pool entry uses three words.
7509 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
7511 * config/mips/mips.c (mips_va_arg): When using the struct version
7512 of the EABI va_list, allow arguments in the register save area to
7513 take up less room than a stack argument.
7515 2002-04-10 Richard Henderson <rth@redhat.com>
7517 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7518 if EXPAND_INITIALIZER.
7520 2002-04-09 Richard Henderson <rth@redhat.com>
7522 * config/alpha/alpha.md (movdi_er_maybe_g): New.
7523 * config/alpha/alpha.c (alpha_expand_mov): Use it.
7525 2002-04-10 Alan Modra <amodra@bigpond.net.au>
7527 PR optimization/6233
7528 * rtlanal.c (pure_call_p): New function.
7529 * rtl.h (pure_call_p): Declare.
7530 * loop.c (prescan_loop): Use it to set has_nonconst_call.
7531 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7533 2002-04-09 Eric Christopher <echristo@redhat.com>
7535 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7536 information to .comm directive.
7538 2002-04-09 Richard Henderson <rth@redhat.com>
7541 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7543 2002-04-09 Richard Henderson <rth@redhat.com>
7545 * basic-block.h (flow_delete_block_noexpunge): Declare.
7546 (expunge_block_nocompact): Declare.
7547 * cfg.c (expunge_block_nocompact): Split out from ...
7548 (expunge_block): ... here.
7549 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7550 (flow_delete_block_noexpunge): Split out from ...
7551 (flow_delete_block): ... here.
7552 * cfgcleanup.c (delete_unreachable_blocks): Compact while
7553 removing dead blocks.
7554 * except.c (exception_handler_labels): Remove.
7555 (exception_handler_label_map): New.
7556 (struct eh_region): Add aka member.
7557 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7558 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7559 (for_each_eh_label, for_each_eh_label_1): New.
7560 (init_eh): Register exception_handler_label_map.
7561 (free_eh_status): Use free_region.
7562 (find_exception_handler_labels): Use the map, not the list.
7563 (remove_exception_handler_label): Likewise.
7564 (maybe_remove_eh_handler): Likewise.
7565 (remove_eh_handler): Use the region aka bitmap.
7566 * except.h (exception_handler_labels): Remove.
7567 (for_each_eh_label): Declare.
7568 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7569 * loop.c (invalidate_loops_containing_label): New.
7570 (find_and_verify_loops): Use it. Use for_each_eh_label.
7571 * sched-rgn.c (is_cfg_nonregular): Use
7572 current_function_has_exception_handlers.
7574 2002-04-09 Richard Henderson <rth@redhat.com>
7576 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7577 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7578 Do not return changed status.
7579 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7580 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7581 New functions that do return changed status.
7582 * sbitmap.h: Update decls.
7583 * gcse.c, lcm.c: Use _cg functions as needed.
7585 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7587 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7588 (sh64-*-elf*, sh-*-rtemself*): Likewise.
7589 * config/sh/embed_bb.c: New file.
7590 * config/sh/embed-elf.h: New file.
7591 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7592 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
7593 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7595 (SUBTARGET_CPP_PTR_SPEC): Don't define.
7596 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7597 Add subtarget_asm_endian_spec.
7598 (ASM_SPEC): Use subtarget_asm_endian_spec.
7599 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7600 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7601 (WCHAR_UNSIGNED): Define.
7602 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7603 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7604 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7606 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7607 (sh_adjust_cost): Likewise.
7608 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7610 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7611 (WCHAR_TYPE_SIZE): Likewise.
7612 (ASM_SPEC): Use subtarget_asm_endian_spec.
7613 (SH_ELF_WCHAR_TYPE): #undef/ #define.
7614 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7615 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7616 (MAX_WCHAR_TYPE_SIZE): Don't #define .
7617 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7618 (USER_LABEL_PREFIX): Don't #undef /#define .
7619 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7620 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7621 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7622 (ASM_SPEC): Likewise.
7623 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7624 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7625 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7626 (LIB2FUNCS_EXTRA): Define.
7627 * t-sh64 (LIB2FUNCS_EXTRA): Define.
7628 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7629 (LIB1ASMFUNCS_CACHE): Define.
7630 (LIB2FUNCS_EXTRA): Redefine empty.
7632 2002-04-08 Richard Henderson <rth@redhat.com>
7634 * reorg.c (get_branch_condition): Use reversed_comparison_code.
7636 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7638 * config/m68hc11/larith.asm (__map_data_section): Fix condition
7639 and optimize for size.
7640 (__do_global_ctors): Fix pointer comparison.
7641 (__do_global_dtors): Likewise.
7643 2002-04-09 David S. Miller <davem@redhat.com>
7645 * config/sparc/sparc.c (sparc_extra_constraint_check): New
7646 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
7647 allow reloading pseudos.
7648 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7649 * config/sparc/sparc-protos.h: Declare it.
7651 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7652 unsigned comparison warning.
7653 (output_restore_regs): Mark leaf_function as unused.
7655 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7657 * expr.c (is_aligning_offset): New function.
7658 (expand_expr, case COMPONENT_EXPR): Call it.
7660 2002-04-08 David S. Miller <davem@redhat.com>
7663 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7665 Make init_priority work on Sparc when using GNU ld.
7666 * config/sparc/linux.h, config/sparc/linux64.h,
7667 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7668 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7669 * config/sparc/sol2-gld.h: New file to do the same.
7670 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7671 sparc/sol2-gld.h to tm_file.
7673 PR optimization/4328
7674 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7675 * doc/md.texi: Document it.
7676 * config/sparc/sparc.md (movdi_insn_sp64_novis,
7677 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7678 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7679 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7680 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7682 2002-04-08 Andreas Jaeger <aj@suse.de>
7684 * stmt.c (expand_asm_operands): Revert last patch from Richard
7687 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7689 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7690 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
7692 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7694 * doc/contrib.texi (Contributors): Add David O'Brien.
7696 2002-04-08 Alan Modra <amodra@bigpond.net.au>
7698 * configure.in (auto-build.h): Use target_alias and build_alias
7699 when running configure.
7700 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7701 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7702 * configure: Regenerate.
7704 2002-04-07 David S. Miller <davem@redhat.com>
7706 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7708 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
7711 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7712 generating 32-bit pic code.
7714 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
7716 * cppinit.c (cpp_create_reader): Initialize
7717 discard_comments_in_macro_exp.
7718 (COMMAND_LINE_OPTIONS): Add "-CC" option.
7719 (cpp_handle_option): Handle "-CC" option.
7720 * cpplex.c (save_comment): If saving a C++ comment in
7721 a directive, convert it to a C comment.
7722 (_cpp_lex_direct): Pass second comment start character to
7723 save_comment to indicate comment type.
7724 * cpplib.c (_cpp_handle_directive): If processing
7725 a "#define" directive and discard_comments_in_macro_exp
7726 is false, re-enable saving of comments.
7727 (lex_macro_node): If discard_comments_in_macro_exp is false,
7728 discard any comments before the macro identifier.
7729 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7731 * cppmacro.c (cpp_get_token): If expanding a macro while
7732 processing a directive, discard any comments we might encounter.
7733 (parse_params): If discard_comments_in_macro_exp is false,
7734 ignore comments in the macro parameter list.
7735 * gcc.c (cpp_unique_options): Add "-CC" option.
7736 (option_map): Map "--comments-in-macros" to "-CC".
7737 * doc/cppopts.texi: Document "-CC" option.
7738 * f/lang-specs.h: Add "-CC" option.
7739 * testsuite/gcc.dg/cpp/maccom1.c: New test.
7740 * testsuite/gcc.dg/cpp/maccom2.c: New test.
7741 * testsuite/gcc.dg/cpp/maccom3.c: New test.
7742 * testsuite/gcc.dg/cpp/maccom4.c: New test.
7743 * testsuite/gcc.dg/cpp/maccom5.c: New test.
7744 * testsuite/gcc.dg/cpp/maccom6.c: New test.
7746 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7749 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7751 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7754 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7757 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7758 RTX_UNCHANGING_P for the functions arguments when a tail call
7761 2002-04-06 Jason Merrill <jason@redhat.com>
7763 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7764 (parse_options_and_default_flags): Set them appropriately.
7765 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7767 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
7769 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7772 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7775 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7776 types come in by-reference. Fix typo in comment.
7778 2002-04-05 David S. Miller <davem@redhat.com>
7780 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7781 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7782 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7783 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7785 2002-04-05 David S. Miller <davem@redhat.com>
7787 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7788 are not going to emit return instructions, emit at least a nop
7789 for the sake of sane backtraces.
7791 2002-04-05 Richard Henderson <rth@redhat.com>
7793 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7795 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
7797 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7799 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
7801 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7802 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7803 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7805 2002-04-05 Andreas Schwab <schwab@suse.de>
7807 * c-convert.c: Include c-common.h.
7808 * Makefile.in (c-convert.o): Updated.
7810 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7812 * mklibgcc.in: Use separate libgcc.map for each multilib.
7813 * Makefile.in (distclean): Don't remove libgcc.map here.
7815 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7817 * Makefile.in (s-mlib): Handle --disable-multilib by separate
7818 genmultilib invocation.
7820 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
7822 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7823 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
7824 to num_gprs for symmetry.
7825 * config/mips/mips.c: Adjust accordingly.
7827 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
7829 * c-common.c (truthvalue_conversion): Rename, update.
7830 * c-common.h (c_common_truthvalue_conversion): New.
7831 * c-convert.c (convert): Update.
7832 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7833 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7834 * c-typeck.c (build_binary_op, build_unary_op,
7835 build_conditional_expr): Update.
7836 * fold-const.c (constant_boolean_node, fold): Use langhook.
7837 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7838 * langhooks.h (struct lang_hooks): New hook.
7839 * stmt.c (expand_decl_cleanup): Use langhook.
7840 * tree.h (truthvalue_conversion): Remove.
7842 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7844 2002-04-05 Alan Modra <amodra@bigpond.net.au>
7846 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7847 Add rules to make null object file.
7849 2002-04-04 Jim Blandy <jimb@redhat.com>
7851 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7852 macro formal parameter names.
7854 2002-04-04 David S. Miller <davem@redhat.com>
7856 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7858 2002-04-04 Richard Henderson <rth@redhat.com>
7861 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7862 Support copies into and out of memory. Don't accept allows_reg
7863 and allows_mem as gospel.
7865 2002-04-04 Richard Henderson <rth@redhat.com>
7868 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7869 (write_dependence_p): Likewise.
7871 2002-04-04 Richard Henderson <rth@redhat.com>
7873 * predict.c (estimate_bb_frequencies): Do frequency calculation
7874 with a volatile temporary.
7876 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
7878 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7880 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7883 * final.c (final_start_function): Don't bump profile_label_no here...
7884 (final_end_function): ...but here.
7886 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7888 * config/sparc/sparc.md (pic): New attribute.
7889 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7891 (split after do_builtin_setjmp_setup): New.
7893 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7896 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7899 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7901 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7902 UNITS_PER_WORD for zero sized aggregates.
7904 2002-04-03 David S. Miller <davem@redhat.com>
7906 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7907 one-character spec for this, just use %(link_gcc_c_sequence).
7909 2002-04-03 David S. Miller <davem@redhat.com>
7911 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7914 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7916 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7917 (DWARF_FRAME_RETURN_COLUMN): Move.
7918 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7919 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7920 * pa.c (except.h, predict.h): Include.
7922 (store_reg_modify, set_reg_plus_d): Revise prototypes.
7923 (output_ascii): Add cast.
7924 (store_reg_modify): Revise to add frame notes.
7925 (set_reg_plus_d): Likewise.
7926 (compute_frame_size): Include space for eh data registers in frame if
7927 the current function calls eh_return.
7928 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7929 function calls eh_return. Save eh data registers if the current
7930 function calls eh_return. Fix code to add frame notes. Emit
7931 blockage to prevent insns with frame notes being scheduled in the
7932 delay slot of calls.
7933 (hppa_expand_epilogue): Restore eh data registers and do final stack
7934 adjustment if the current function calls eh_return. Don't add frame
7936 (output_call): Revise for change in length of call insn. Don't do
7937 return pointer adjustment for an unconditional jump in the delay slot
7938 of a call when using frame notes.
7939 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7940 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7941 (ARG_POINTER_CFA_OFFSET): Define.
7942 * pa.md (return_external_pic): New pattern.
7943 (prologue): Correct formatting. Use return_external_pic if current
7944 function calls eh_return.
7945 (call_internal_symref, call_value_internal_symref,
7946 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7947 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7949 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7951 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7952 list of targets to check using "nop" insn.
7953 * configure: Rebuilt.
7955 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7957 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7959 2002-04-03 David S. Miller <davem@redhat.com>
7961 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7962 library sequence passed to the linker.
7963 (LINK_COMMAND_SPEC): Use it.
7964 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7965 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7966 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7968 2002-04-03 Jason Merrill <jason@redhat.com>
7970 * except.c (struct eh_status): Remove protect_list.
7971 (begin_protect_partials, end_protect_partials): Remove.
7972 (add_partial_entry): Remove.
7973 * except.h: Remove prototypes.
7975 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7976 expand_decl_cleanup_eh.
7979 * tree.h (CLEANUP_EH_ONLY): New macro.
7980 * stmt.c (expand_decl_cleanup_eh): New fn.
7981 (expand_cleanups): Check CLEANUP_EH_ONLY.
7982 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7983 Use expand_decl_cleanup_eh.
7984 (expand_stmt): Adjust.
7985 * c-common.h: Adjust prototype.
7987 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7989 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7990 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7991 (cris_target_asm_function_epilogue): Ditto.
7992 (cris_initial_frame_pointer_offset): Ditto.
7993 (cris_simple_epilogue): Ditto.
7994 (cris_expand_builtin_va_arg): Variable-size types come in
7997 2002-04-03 David S. Miller <davem@redhat.com>
7999 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
8001 (set_fast_math): Correct 'fsr' type.
8003 2002-04-03 Richard Henderson <rth@redhat.com>
8006 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
8007 * toplev.c (check_global_declarations): Use it.
8008 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
8009 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
8010 (LANG_HOOKS_DECLS): Add it.
8011 * langhooks.c (lhd_warn_unused_global_decl): New.
8012 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
8013 * c-objc-common.c (c_warn_unused_global_decl): New.
8014 * c-tree.h (c_warn_unused_global_decl): Declare.
8015 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
8017 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
8019 * langhooks-def.h (lhd_set_decl_assembler_name,
8020 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
8021 (LANG_HOOKS_INITIALIZER): Update.
8022 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
8023 * langhooks.h (struct lang_hooks): New hook.
8024 * tree.c (set_decl_assembler_name): Move to langhooks.c.
8025 (lang_set_decl_assembler_name): Remove.
8026 (init_obstacks): Don't set hook.
8027 (decl_assembler_name): New function.
8028 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
8029 (decl_assembler_name): New.
8030 (lang_set_decl_assembler_name): Remove.
8032 2002-04-03 Jakub Jelinek <jakub@redhat.com>
8034 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
8035 works properly with .hidden symbols.
8036 * configure: Rebuilt.
8037 * config.in: Rebuilt.
8038 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
8039 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
8040 properly with .hidden symbols.
8042 2002-04-03 Jakub Jelinek <jakub@redhat.com>
8045 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
8048 2002-04-03 Richard Henderson <rth@redhat.com>
8051 * sched-rgn.c (sets_likely_spilled): New.
8052 (sets_likely_spilled_1): New.
8053 (add_branch_dependences): Use it.
8055 2002-04-02 Richard Henderson <rth@redhat.com>
8058 * loop.h (LOOP_FIRST_PASS): New.
8059 * loop.c (strength_reduce): Mind it when deciding to unroll.
8060 * toplev.c (rest_of_compilation): Set it.
8062 2002-04-02 David S. Miller <davem@redhat.com>
8064 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
8065 mems_ok_for_ldd_peep when the order of the loads being examined
8067 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
8068 existing comment to increase comprehension of this situation.
8070 2002-04-02 Zack Weinberg <zack@codesourcery.com>
8072 * config/sh/sh.md: Don't use union real_extract.
8074 2002-04-02 Richard Henderson <rth@redhat.com>
8076 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
8078 2002-04-02 David O'Brien <obrien@FreeBSD.org>
8080 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
8081 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
8082 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
8083 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
8084 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
8085 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
8086 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
8087 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
8088 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
8089 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
8090 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
8091 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
8092 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
8093 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
8094 Include as many configury headers via tm_file as possible. This
8095 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
8096 * config/openbsd-oldgas.h: New file.
8097 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
8098 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
8099 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
8100 config/i386/i386-coff.h, config/i386/i386-interix.h,
8101 config/i386/iscdbx.h, config/i386/linux-aout.h,
8102 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
8103 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
8104 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
8105 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
8106 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
8107 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
8108 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
8109 config/i386/vxi386.h: Do not directly include configury headers.
8110 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
8111 Directly include configury headers that are no longer automatically
8112 included by the above headers.
8113 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
8114 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
8115 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
8116 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
8117 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
8118 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
8119 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
8120 (TARGET_VERSION): Define.
8121 * config/i386/beos-elf.h, config/i386/freebsd.h,
8122 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
8123 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
8124 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
8125 config/i386/sco5.h, config/i386/sysv4.h
8126 (TARGET_VERSION): Do not need to protect.
8127 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
8128 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
8129 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
8130 config/i386/i386-interix.h, config/i386/linux-aout.h,
8131 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
8132 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
8133 (YES_UNDERSCORES): Do not define - not needed.
8134 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
8135 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8136 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
8137 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
8138 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8139 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
8140 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
8141 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
8143 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
8144 Richard Henderson <rth@redhat.com>
8147 * function.c (assign_temp): Accept either type or decl argument.
8148 Detect variables whose size is too large to fit into an integer.
8149 * stmt.c (expand_decl): Pass the decl, not the type.
8151 2002-04-02 David O'Brien <obrien@FreeBSD.org>
8153 * protoize.c: Match include directory usage with cppdefault.c.
8155 2002-04-03 Jeffrey A Law (law@redhat.com)
8156 Hans-Peter Nilsson <hp@bitrange.com>
8158 * combine.c (simplify_comparison): Avoid narrowing a comparison
8159 with a paradoxical subreg when doing so would drop signficant bits.
8161 2002-04-02 Steve Ellcey <sje@cup.hp.com>
8163 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
8164 if POINTERS_EXTEND_UNSIGNED is defined.
8166 2002-04-02 Richard Henderson <rth@redhat.com>
8169 * local-alloc.c (contains_replace_regs): LO_SUM may contain
8172 2002-04-02 Richard Henderson <rth@redhat.com>
8174 * doc/standards.texi: Document required freestanding libc entry points.
8176 2002-04-02 Alan Modra <amodra@bigpond.net.au>
8178 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
8179 associated splitter. Remove MQ constraint.
8180 (ctrdi_internal4): Correct CCmode clobber.
8182 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
8184 * milli64.S ($$dyncall): New function.
8185 * t-linux (LIB1ASMFUNCS): Revise module list.
8186 (LIB1ASMSRC): Use pa/milli64.S.
8188 2002-04-02 Richard Henderson <rth@redhat.com>
8190 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
8191 rename solaris_sys_varargs_h.
8193 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8195 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
8196 the same mode as its component.
8198 2002-04-02 Richard Henderson <rth@redhat.com>
8201 * final.c (this_is_asm_operands): Export.
8202 * output.h (this_is_asm_operands): Declare.
8203 * config/i386/i386.c (print_operand): Error odd asm operands.
8205 2002-04-02 Richard Henderson <rth@redhat.com>
8208 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
8210 2002-04-01 Richard Henderson <rth@redhat.com>
8213 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
8214 * fixinc/fixincl.x: Rebuild.
8216 2002-04-01 Richard Henderson <rth@redhat.com>
8218 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
8219 (atomic_alloc, atomic_free): New.
8220 (SIZE, MASK_FOR, PTR_IN): New.
8221 (emergency_reg_state, emergency_reg_state_free): New.
8222 (emergency_labeled_state, emergency_labeled_state_free): New.
8223 (reg_state_alloced, labeled_state_alloced): New.
8224 (alloc_reg_state, free_reg_state): New.
8225 (alloc_label_state, free_label_state, free_label_states): New.
8226 (push, pop, dup_state_stack, free_state_stack): Use them.
8227 (desc_label_state): Likewise.
8228 (uw_frame_state_for): Free label states and state stack.
8229 (uw_update_reg_address): Eliminate warnings.
8231 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
8233 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
8234 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
8236 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8238 * c-decl.c (grokdeclarator): Update.
8239 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8240 * c-tree.h (c_mark_addressable): New.
8241 * c-typeck.c (default_function_array_conversion, build_unary_op,
8242 build_array_ref, convert_for_assignment): Update.
8243 (mark_addressable): Rename.
8244 * calls.c (try_to_integrate, expand_call): Use langhook.
8245 * expr.c (expand_expr): Use langhook.
8246 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
8247 * langhooks.h (struct lang_hooks): New hook.
8248 * stmt.c (expand_asm_operands): Use langhook.
8249 * tree.h (mark_addressable): Remove.
8251 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8253 2002-04-01 Bob Wilson <bob.wilson@acm.org>
8255 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
8258 2002-04-01 Bob Wilson <bob.wilson@acm.org>
8260 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
8261 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
8263 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8265 * c-common.c (unsigned_conversion_warning, convert_and_check,
8266 unsigned_type, signed_type, shorten_compare,
8267 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
8268 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
8269 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
8271 * c-decl.c (grokdeclarator): Update.
8272 * c-format.c (check_format_types): Update.
8273 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8274 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8275 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
8276 * convert.c (convert_to_integer): Use new hooks.
8277 * expmed.c (make_tree): Use new hooks.
8278 * expr.c (store_expr): Use new hooks.
8279 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
8280 all_ones_mask_p, unextend, fold): Use new hooks.
8281 * langhooks.h (struct lang_hooks_for_types): New hooks.
8282 * tree.h (signed_or_unsigned_type, signed_type,
8283 unsigned_type): Remove.
8285 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8286 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8288 2002-03-31 Richard Henderson <rth@redhat.com>
8290 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
8291 (desc_frgr_mem): Fix reference to f16-f31.
8293 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8295 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
8296 RTVEC_ELT): Const-ify.
8297 * varray.h (VARRAY_CHECK): Const-ify.
8298 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
8299 ggc_mark_rtvec, ggc_mark): Const-ify.
8301 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8303 * diagnostic.c: Include langhooks-def.h.
8304 * Makefile.in (diagnostic.o): Update.
8306 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
8308 * c-common.c (c_unsafe_for_reeval): Rename.
8309 * c-common.h (c_unsafe_for_reeval): Rename.
8310 * c-decl.c (finish_incomplete_decl): Rename.
8311 (c_init_decl_processing): Don't set langhook.
8312 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8313 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8314 * c-objc-common.c (c_objc_common_init): Don't set langhook.
8315 * c-tree.h (finish_incomplete_decl): Rename.
8316 * langhooks-def.h (lhd_unsafe_for_reeval): New.
8317 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8318 (LANG_HOOKS_INITIALIZER): Update.
8319 * langhooks.c (lhd_unsafe_For_reeval): New.
8320 * langhooks.h (struct langhooks): New hooks.
8321 * toplev.c (incomplete_decl_finalize_hook): Remove.
8322 (wrapup_global_declarations): Update.
8323 * tree.c (lang_unsafe_for_reeval): Remove.
8324 (unsafe_for_reeval): Update.
8325 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8328 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8329 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8331 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
8333 * diagnostic.c (print_error_function): Remove.
8334 (default_print_error_function): Rename.
8335 (report_error_function): Update.
8336 * diagnostic.h (print_error_function): Remove.
8337 (default_print_error_function): Remove.
8338 * langhooks-def.h (struct diagnostic_context): Predeclare.
8339 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8340 (LANG_HOOKS_INITIALIZER): Update.
8341 * langhooks.h (struct diagnostic context): Predeclare.
8342 (struct lang_hooks): New hook.
8344 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8346 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8347 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8349 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8350 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8351 of PIC_OFFSET_TABLE_REGNUM thruout.
8352 * config/rs6000/rs6000.md: Likewise.
8353 * config/rs6000/darwin.h: Likewise.
8355 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8357 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8358 unsigned HOST_WIDE_INT, not unsigned int.
8360 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8362 PR middle-end/6096, middle-end/6098, middle-end/6099
8363 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8365 (fill_slots_from_thread): Likewise.
8367 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8369 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8370 floating fields in float regs.
8371 (function_arg_record_value_2): Likewise.
8373 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8375 * config/mmix/mmix.md (define_constants): Remove misleading
8376 FIXME. Add MMIX_fp_rO_OFFSET.
8377 ("nonlocal_goto_receiver"): Don't have stack-frame address of
8378 saved rO as part of the pattern. Remove FIXME.
8379 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
8380 here, at output-time.
8382 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8385 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8387 (output_v9branch): Likewise.
8389 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
8391 * gcc.c: Revert previous patch for now.
8392 * config/i386/djgpp.h: Likewise.
8394 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8396 * config/mmix/crti.asm (_init): Register _fini with atexit.
8397 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8399 2002-03-31 Richard Henderson <rth@redhat.com>
8402 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8403 (ASM_OUTPUT_DEF_FROM_DECLS): New.
8405 2002-03-31 Richard Henderson <rth@redhat.com>
8407 * libgcc2.c (__bb_exit_func): Make static.
8409 * config/alpha/alpha.md (trap): New.
8411 2002-03-31 Richard Henderson <rth@redhat.com>
8413 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8414 promoted argument types; build trap.
8415 (expand_builtin_trap): New.
8416 (expand_builtin): Use it.
8417 * stmt.c (expand_nl_goto_receivers): Likewise.
8418 * expr.h (expand_builtin_trap): Declare.
8419 * libfuncs.h (LTI_abort, abort_libfunc): New.
8420 * optabs.c (init_optabs): Init abort_libfunc.
8422 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
8424 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8425 (LINK_COMMAND_SPEC): ... from here.
8426 (init_gcc_specs): Duplicate it here too, omitting
8427 shared_name in the second copy.
8428 (init_spec): Test for duplicate
8429 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8431 2002-03-30 David S. Miller <davem@redhat.com>
8433 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8434 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8436 2002-03-30 Roger Sayle <roger@eyesopen.com>
8437 Richard Henderson <rth@redhat.com>
8439 * regmove.c (combine_stack_adjustments_for_block): Avoid
8440 emitting a stack adjustment of zero bytes. Let delete_insn
8443 2002-03-30 Richard Henderson <rth@redhat.com>
8445 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8446 (sparc_emitting_epilogue): New.
8447 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8448 * config/sparc/sparc-protos.h: Update.
8449 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8450 (TARGET_SWITCHES): Update.
8451 * config/sparc/sparc.md (return): Remove.
8452 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8453 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8454 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8455 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8456 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8457 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8458 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8459 Remove MASK_EPILOGUE.
8460 * doc/invoke.texi: Update.
8462 2002-03-30 Daniel Berlin <dan@dberlin.org>
8464 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8465 CPP will start the file for us.
8467 2002-03-30 Richard Henderson <rth@redhat.com>
8470 * config/ia64/ia64.c (group_barrier_needed_p): Special case
8471 prologue_allocate_stack.
8472 (ia64_single_set): Use insn codes for recognition of special
8473 cases, not rtl matching.
8474 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8476 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
8478 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8480 2002-03-30 Richard Henderson <rth@redhat.com>
8483 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8484 or -fomit-frame-pointer with profiling.
8485 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8486 (FUNCTION_PROFILER): Do nothing.
8487 (PROFILE_HOOK): New.
8488 * config/sparc/sparc.c (sparc_override_options): Don't check
8489 code models for profiling.
8490 (sparc_function_profiler): Remove.
8491 (sparc_profile_hook): New.
8492 * config/sparc/sparc-protos.h: Update.
8494 2002-03-30 Jakub Jelinek <jakub@redhat.com>
8496 PR optimization/6086
8497 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8498 of SUBREG of volatile MEM or because the MEM was mode dependent,
8499 return CLOBBER instead of unmodified SUBREG.
8501 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
8503 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8504 when not optimizing.
8506 * toplev.c (rest_of_compilation): Cann mark_constant_function
8507 only when optimizing.
8509 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8512 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8513 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8514 (try_optimize_cfg): clear all AUX fields.
8516 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8517 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8518 (ix86_address_cost): Be prepared for SUBREGed registers.
8519 (legitimate_address_p): Accept SUBREGed registers.
8521 2002-03-29 Richard Henderson <rth@redhat.com>
8524 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8526 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8528 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8529 for aggregate and TFmode types.
8531 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8533 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8535 2002-03-29 Richard Henderson <rth@redhat.com>
8538 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8539 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8541 2002-03-29 Richard Henderson <rth@redhat.com>
8544 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8545 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8546 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8547 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8549 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8551 2002-03-29 Dale Johannesen <dalej@apple.com>
8553 * loop.c (combine_movables): Do allow combination of pseudos.
8555 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
8557 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8558 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8559 No functional change except ...
8560 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
8561 * doc/install.texi (*-*-freebsd*): Document port configuration.
8563 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8565 * Makefile.in (convert.o, calls.o, expmed.o): Update.
8566 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8568 * builtin-types.def (BT_PTRMODE): Update.
8569 * c-common.c (type_for_size): Rename c_common_type_for_size.
8570 (type_for_mode): Similarly.
8571 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8573 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8574 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8575 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8577 * c-typeck.c (common_type, comptypes, default_conversion):
8579 * calls.c: Include langhooks.h.
8580 (emit_library_call_value_1): Use new hooks. Avoid redundant
8582 * convert.c: Include langhooks.h
8583 (convert_to_pointer, convert_to_integer): Use new hooks.
8584 * except.c (init_eh): Similarly.
8585 * expmed.c: Include langhooks.h.
8586 (expand_mult_add): Use new hooks.
8587 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8588 try_casesi): Similarly.
8589 * fold-const.c (optimize_bit_field_compare, make_range,
8590 decode_field_reference, fold_truthop, fold): Similarly.
8591 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8592 put_var_into_stack): Similarly.
8593 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8594 LANG_HOOKS_TYPE_FOR_SIZE): New.
8595 (LANG_HOOKS_TYPES_INITIALIZER): Update.
8596 * langhooks.h (lang_hooks_for_types): New hooks.
8597 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8598 * tree.c (get_unwidened, get_narrower): Similarly.
8599 * tree.h (type_for_mode, type_for_size): Remove.
8600 * varasm.c (force_const_mem): Use new hooks.
8601 * utils2.c (nonbinary_modular_operation): Update.
8603 * objc-act.c (handle_impent): Update.
8604 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8607 2002-03-29 Steve Ellcey <sje@cup.hp.com>
8609 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8610 * config/ia64/ia64.c (basereg_operand): New.
8611 * config/ia64/ia64-protos.h (basereg_operand): Declare.
8612 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8614 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8616 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8617 unwind information when frame_pointer_needed.
8618 (mmix_assemble_integer): Tweak wording in comment.
8620 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8622 * Makefile.in (except.o): Update.
8623 * except.c: Include langhooks.h.
8624 (init_eh): Use langhook.
8625 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8626 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8627 (LANG_HOOKS_INITIALIZER): Update.
8628 * langhooks.h (lang_hooks_for_types): New.
8629 (struct lang_hooks): Add it.
8630 * tree.c (make_lang_type_fn, make_lang_type): Remove.
8631 * tree.h (make_lang_type_fn, make_lang_type): Remove.
8633 * alpha/alpha.c: Include langhooks.h.
8634 (alpha_build_va_list): Use langhook.
8635 * d30v/d30v.c: Include langhooks.h.
8636 (d30v_build_va_list): Use langhook.
8637 * i386/i386.c: Include langhooks.h.
8638 (ix86_build_va_list): Use langhook.
8639 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8640 * s390/s390.c: Include langhooks.h.
8641 (s390_build_va_list): Use langhook.
8642 * stormy16/stormy16.c: Include langhooks.h.
8643 (stormy16_build_va_list): Use langhook.
8645 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8648 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8650 (length): Compute variable length for branches/calls/jumps here.
8651 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8652 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8653 define branch_type attribute.
8654 (divsi3_sp32): Maximum length is 6 not 7.
8655 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8656 call_address_untyped_struct_value_sp32,
8657 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8658 * config/sparc/sparc.c (empty_delay_slot): New function.
8659 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8660 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8662 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8664 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8665 nonzero_bits if not needed.
8666 (nonzero_bits) [XOR]: Likewise.
8667 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8668 reg_last_set_mode and mode are both MODE_INT, but not equal.
8669 (record_value_for_reg): Compute reg_last_set_nonzero_bits
8670 in nonzero_bits_mode for MODE_INT modes.
8672 2002-03-28 Richard Henderson <rth@redhat.com>
8675 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8676 to GAS. Correct drift between alternatives.
8678 2002-03-28 Richard Henderson <rth@redhat.com>
8681 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8683 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
8685 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8686 emulation to the linker.
8688 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
8690 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8691 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8693 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
8695 * combine.c (simplify_and_const_int): Make sure to apply mask
8696 when force_to_mode returns a constant integer. PR3311.
8698 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8700 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8702 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8704 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8705 and Objective-C Dialect Options.
8707 2002-03-28 Richard Henderson <rth@redhat.com>
8709 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8710 comparison should be done vs !=0 not >0 return code. Tidy cases.
8712 2002-03-28 Richard Henderson <rth@redhat.com>
8714 * c-decl.c (finish_function): New arg can_defer_p. Pass it
8715 on to c_expand_body.
8716 * c-tree.h (finish_function): Update decl.
8717 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8719 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
8721 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8723 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
8725 * rtlanal.c: Include flags.h
8726 (may_trap_p): Do not mark FP operations if trapping
8727 if !flag_trapping_math
8728 * Makefile.in (rtlanal.o): Add dependency on flag.h
8729 * ifcvt.c (noce_operand_ok): Avoid the lameness.
8731 2002-03-27 Zack Weinberg <zack@codesourcery.com>
8733 * mips.md: Use dconst1, not 1.0, as first argument of
8734 REAL_VALUE_LDEXP. Don't use union real_extract.
8736 2002-03-28 Alan Modra <amodra@bigpond.net.au>
8738 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8739 rather than $target. Heed program_prefix and
8740 program_transform_name. Search for gas in cross-compiler case too.
8741 "test -x" rather than "test -f".
8742 (gcc_cv_ld): Likewise.
8743 (gcc_cv_nm): Heed program_prefix and program_transform_name.
8744 (gcc_cv_objdump): Likewise.
8745 * configure: Regenerate.
8747 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8749 * Makefile.in (attribs.o): Update.
8750 * attribs.c: Include langhooks.h.
8751 (decl_attributes): Use langhook.
8752 * c-decl.c (insert_default_attributes): Rename.
8753 * c-tree.h (c_insert_default_attributes): New.
8754 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8755 (LANG_HOOKS_INITIALIZER): Update.
8756 * langhooks.h (struct lang_hooks): New hook.
8757 * tree.h (insert_default_attributes): Remove.
8759 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8761 2002-03-27 Andreas Schwab <schwab@suse.de>
8763 * config/i386/i386.c (classify_argument): Also check for
8766 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8768 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8771 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
8773 * i960.md (ret): Set PC.
8774 (nonlocal_goto): Fix expander.
8775 * builtins.c (epxand_builin_longjmp): Check that we've emitted
8778 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
8780 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8783 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8785 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8786 assigning to BLOCK_FOR_INSN directly.
8788 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
8790 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8792 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8794 * c-common.c (c_expand_expr): Fix prototype.
8795 * c-common.h (c_expand_expr): Always declare, update.
8796 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8797 * c-objc-common.c (c_objc_common_init): No global hook.
8798 * expr.c (expand_expr): Use langhook.
8799 * expr.h (enum expand_modifier): Conditionally declare.
8800 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8801 (LANG_HOOKS_INITIALIZER): Update.
8802 * langhooks.c (lhd_expand_expr): New.
8803 * langhooks.h (struct lang_hooks): New hook.
8804 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8805 (lang_independent_init): Don't default hook.
8807 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8809 2002-03-27 Richard Henderson <rth@redhat.com>
8812 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8813 TARGET_CONST_GP. Simplify conditions.
8815 2002-03-27 Richard Henderson <rth@redhat.com>
8817 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8818 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8819 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8821 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
8823 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8824 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8825 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8826 Remove unnecessary masks.
8827 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8828 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8829 -mwindows, -mdll switches and their negations.
8831 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8833 * gcc-common.c (lang_mark_false_label_stack): Remove.
8834 * ggc.h (lang_mark_false_label_stack): Similarly.
8836 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
8838 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8840 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8841 or __rtems_ is defined.
8843 2002-03-26 Richard Henderson <rth@redhat.com>
8845 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8846 if a non-trivial load was emitted.
8847 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
8848 in high+extra+low case.
8850 2002-03-26 Richard Henderson <rth@redhat.com>
8852 * config.gcc (sparc*-solaris): Use float_format=sparc.
8854 2002-03-26 Richard Henderson <rth@redhat.com>
8856 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8857 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8858 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8859 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8860 (WINT_TYPE_SIZE): Fix at 32.
8862 2002-03-26 Richard Henderson <rth@redhat.com>
8864 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8865 until after eh landing pad generation.
8866 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8867 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8869 2002-03-26 Richard Henderson <rth@redhat.com>
8871 * expr.h (ADD_PARM_SIZE): One more convert for INC.
8873 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
8875 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
8876 and warning switches.
8877 (cc1_options): Likewise.
8879 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
8881 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8882 Restore more of the signal context. Set no_reg_stack_frame.
8883 * config/ia64/unwind-ia64.c (unw_state_record):
8884 Add no_reg_stack_frame, comments.
8885 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8886 (uw_update_context): Adjust bsp when unwinding from leaf,
8887 but not signal frame.
8889 2002-03-26 David Edelsohn <edelsohn@gnu.org>
8891 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8893 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8895 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8897 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8900 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8901 "Add a pool_range attribute", which was lost during the ARM/Thumb
8904 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8906 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8907 a register into the MAC16 accumulator.
8909 2002-03-26 Andrew Cagney <ac131313@redhat.com>
8911 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8912 (Warning Options): Document -Wswitch-enum.
8913 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
8915 (warn_switch_enum): Define variables.
8916 * flags.h (warn_switch_enum): Declare variables.
8917 * stmt.c (expand_end_case_type): When warn_switch_enum /
8918 -Wswitch-enum, perform switch checks.
8921 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8923 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8924 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8925 (reload_muladdsi_compare0_scratch): Delete.
8927 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8929 * doc/install.texi (*-*-freebsd*): Update.
8931 2002-03-26 Richard Henderson <rth@redhat.com>
8933 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8934 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8936 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8937 types from the normal argument frame.
8939 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8940 variable sized objects by reference.
8941 (sparc_va_arg): Receive them by reference too.
8943 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8945 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8946 code to not restoring global registers.
8948 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8950 * Makefile.in (ggc-common.o): Update.
8951 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8952 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8953 * c-tree.h (c_mark_tree): New.
8954 * ggc-common.c: Include langhooks.h.
8955 (gcc_mark_trees): Use new langhook.
8956 * ggc-callbacks.c: Delete file.
8957 * ggc.h (lang_mark_tree): Remove.
8958 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8959 (LANG_HOOKS_INITIALIZER): Update.
8960 * langhooks.h (struct lang_hooks): New hook.
8962 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8964 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8966 * doc/cpp.texi: Exclude entire Top node from printed manual.
8967 Move option index after directive index. Insert page breaks
8968 before GFDL and concept index. Index environment variables
8969 with command line options.
8970 * doc/cppenv.texi: Use @vtable for environment variable list.
8971 Add paragraph explaining semantics of empty elements in path
8972 variables. Exclude a cross-reference to Fishkill from the
8973 manpage. Remove an unnecessary cross-reference of the entry
8974 right above the referer. Don't use @anchor in text that goes
8976 * doc/cppopts.texi: Cross-reference the environment variables
8977 section, not the specific environment variable, for consistency.
8979 2002-03-25 Richard Henderson <rth@redhat.com>
8981 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8982 anywhere in the block. Don't refer to insns that have been
8983 removed from the chain. Iterate backward through the new insns.
8984 Don't refer to edges that have been removed.
8986 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8988 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8989 test for overflow of constant.
8991 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8994 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8995 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8996 these patterns on arm_archv4.
8998 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
9000 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
9003 2002-03-25 Zack Weinberg <zack@codesourcery.com>
9005 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
9006 float_handled, float_handler, float_signal, set_float_handler,
9007 and do_float_handler. Set handler for SIGFPE to crash_signal.
9008 * toplev.h: Don't prototype do_float_handler.
9010 * c-lex.c: Fold parse_float into lex_number. Make warning
9011 about portability of hex float constants more informative, and
9012 don't issue it on top of a syntax error.
9013 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
9015 * real.h: Define REAL_VALUE_ABS here...
9016 * simplify-rtx.c: ... not here. Fold check_fold_consts,
9017 simplify_unary_real, simplify_binary_real, and
9018 simplify_binary_is2orm1 into their callers.
9019 * tree.c: Fold build_real_from_int_cst_1 into caller.
9021 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
9023 * tsystem.h: Include float.h here...
9024 * libgcc2.c: ... not here.
9026 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
9028 Fixes for: PR bootstrap/3591, target/5676
9029 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
9030 defined. Do not disable exceptions or rtti.
9031 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
9032 mcore.h. Disable exceptions and rtti, since they are not
9035 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
9037 * c-decl.c (maybe_build_cleanup): Remove.
9038 * expr.c (expand_expr): Use langhook.
9039 * langhooks-def.h (lhd_return_null_tree,
9040 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
9041 (LANGHOOKS_INITIALIZER): Update.
9042 * langhooks.c (lhd_return_null_tree): New.
9043 * langhooks.h (struct lang_hooks): New hook.
9044 * tree-inline.c (initialize_inlined_parameters): Use langhook.
9045 * tree.h (maybe_build_cleanup): Remove.
9047 2002-03-25 Jakub Jelinek <jakub@redhat.com>
9049 * regrename.c (build_def_use): Move recog_memoized
9050 before extract_insn.
9052 2002-03-25 Jakub Jelinek <jakub@redhat.com>
9055 * expr.c (emit_group_store): Handle storing into CONCAT.
9057 2002-03-25 Jakub Jelinek <jakub@redhat.com>
9059 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
9060 corresponding MATCH_DUP.
9062 2002-03-24 Richard Henderson <rth@redhat.com>
9064 * unroll.c (unroll_loop): Zero label_map.
9066 * gcse.c: Include except.h.
9067 * Makefile.in (gcse.o): Update.
9069 2002-03-24 Richard Henderson <rth@redhat.com>
9071 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
9072 Do resolve_unique_section before shared data clause.
9074 2002-03-24 Richard Henderson <rth@redhat.com>
9076 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
9078 2002-03-24 Richard Henderson <rth@redhat.com>
9080 * recog.c (peephole2_optimize): Split blocks when EH insns are
9081 generated in the middle of a block. Do global life update if
9084 2002-03-24 Richard Henderson <rth@redhat.com>
9086 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
9088 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
9091 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
9092 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
9093 (init_dependency_output): Don't make no_output decision here.
9095 2002-03-24 Andrew Cagney <ac131313@redhat.com>
9097 * stmt.c (check_for_full_enumeration_handling): Remove tests of
9098 warn_switch. Update description.
9099 (expand_end_case_type): Call check_for_full_enumeration_handling
9102 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9104 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
9105 (m68hc11_split_move): Call it to see if the source and destination
9106 operands use the same direction auto inc/dec mode, otherwise make the
9107 source an offsetable memory operand and generate an add.
9109 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9111 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
9112 register for operand 2.
9113 ("*subsi3_zero_extendqi"): Likewise.
9114 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
9115 bits so that it is compatible with a pop.
9116 ("*andhi3_gen"): Likewise.
9117 ("xorhi3"): Likewise.
9119 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
9121 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
9123 (cpp_post_options): ... not here.
9125 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
9126 Aldy Hernandez <aldyh@redhat.com>
9128 Removal of separate preprocessor cpp0.
9130 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
9131 cpp0, install-common): Update.
9132 * c-common.c (flag_preprocess_only): New.
9133 (c_common_init): Preprocess for -E.
9134 * c-common.h (flag_preprocess_only): New.
9135 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
9136 * c-objc-common.c (c_init_decl_processing): Exit quickly
9137 for NULL return from c_common_init.
9138 * cpplib.h (cpp_preprocess_file): New.
9139 * cppmain.c (main, general_init, pfile, progname): Remove.
9140 (do_preprocessing): Rename cpp_preprocess_file, don't call
9141 cpp_finish. Don't close stdout here.
9142 (setup_callbacks): Update prototype.
9143 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
9145 * tradcpp.c (main): Ignore -quiet.
9147 * lang-specs.h (default_compilers): Preprocess with cc1obj.
9149 2002-03-24 Richard Henderson <rth@redhat.com>
9151 PR optimization/5742
9152 * machmode.def: Add inner mode field to complex modes.
9153 * config/mips/mips.c (mips_function_value): Always define. Add
9154 new argument to handle libcalls.
9155 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
9156 (FUNCTION_VALUE): Likewise.
9157 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
9158 * config/mips/mips-protos.h: Update.
9160 2002-03-23 Richard Henderson <rth@redhat.com>
9162 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
9163 * config/sparc/sparc-protos.h: Update.
9164 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
9166 2002-03-23 Richard Henderson <rth@redhat.com>
9168 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
9169 _start or _init begins the text segment.
9171 2002-03-23 David Edelsohn <edelsohn@gnu.org>
9173 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
9174 not HOST_WIDEST_INT.
9175 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
9177 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
9180 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
9181 operand argument to output_return_instruction.
9182 * arm.c (arm_print_operand, case 'd'): If the operand is
9183 const_true_rtx then just return.
9184 (arm_print_operand, case 'D'): If the operand is const_true_rtx
9187 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9189 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
9190 (Warning Options): Document -Wswitch-default.
9191 * toplev.c (W_options): Add -Wswitch-default. Update comment on
9193 (warn_switch_default): Define variable.
9194 (warn_switch): Update comment.
9195 * flags.h (warn_switch_default): Declare variable.
9196 (warn_switch): Update comment.
9197 * stmt.c (expand_end_case): Check for and, when
9198 warn_switch_no_default, warn of a missing default case.
9200 2002-03-23 Alan Modra <amodra@bigpond.net.au>
9202 * real.h (N): Special case 128 bit doubles.
9204 * combine.c (simplify_comparison): When widening modes, ignore
9205 sign extension on CONST_INTs.
9207 2002-03-22 Bob Wilson <bob.wilson@acm.org>
9209 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
9210 passed to adjust_address. Fix comment formatting.
9213 2002-03-22 Zack Weinberg <zack@codesourcery.com>
9215 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
9216 Always make REAL_VALUE_TYPE a struct containing an array of
9217 HOST_WIDE_INT, not a double. Tidy up the code deciding how
9218 big it is. Don't declare or use union real_extract.
9220 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
9221 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
9222 (print_operand), config/arm/arm.c (output_move_double),
9223 config/arm/arm.md (consttable_4, consttable_8),
9224 config/romp/romp.c (output_fpops), config/s390/s390.h
9225 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
9226 (xtensa_output_literal): Don't use union real_extract.
9228 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
9229 (sfmode_constant_to_ulong), config/ns32k/merlin.h
9230 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
9231 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
9232 (PRINT_OPERAND): Don't use local version of union
9235 * config/convex/convex.c (check_float_value), config/vax/vax.c
9236 (vax_float_literal), config/m88k/m88k.md (divdf3),
9237 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
9238 config/pdp11/pdp11.c (output_move_quad): Don't do host
9239 arithmetic on target floating point quantities.
9241 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
9242 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
9244 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
9245 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
9247 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
9248 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
9250 * print-rtl.c (print_rtx): Disable code which needs
9251 floating-point emulator.
9252 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
9253 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
9254 depending on HOST_FLOAT_FORMAT to be defined properly.
9256 * config/1750a/1750a.c (get_double, float_label): Delete.
9257 (print_operand): Delete huge commented-out chunk. Use
9258 REAL_VALUE_TO_DECIMAL.
9259 * config/1750a/1750a-protos.h: Delete prototypes of deleted
9261 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
9263 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
9264 Use REAL_VALUE_TO_DECIMAL as ELF version does.
9265 * config/m88k/m88k.c (real_power_of_2_operand,
9266 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
9267 real_extract out of the union; run the input through
9268 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
9269 from that into the union.
9270 * config/pdp11/pdp11.c (output_move_double): Rearrange
9271 parentheses to make automatic indenter happy.
9273 * doc/tm.texi (Cross-compilation): Rename node to "Floating
9274 Point" and rewrite to describe current situation. Also adjust
9275 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
9277 * doc/rtl.texi: Adjust cross reference.
9279 2002-03-22 Bob Wilson <bob.wilson@acm.org>
9281 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
9282 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
9283 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
9284 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
9285 prevent use of sp as a reload register.
9286 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
9287 non_acc_reg_operand.
9288 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
9289 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
9290 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
9291 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
9293 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
9295 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
9296 * cpplex.c (unterminated): Delete.
9297 (parse_string): No string literal may extend over multiple
9298 lines. Suppress the error when preprocessing assembly.
9299 * cppmain.c (scan_translation_unit): Strings are single-line.
9301 * doc/cpp.texi: Update to match.
9303 2002-03-22 Jakub Jelinek <jakub@redhat.com>
9305 PR optimization/5854
9306 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
9308 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
9309 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
9310 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
9311 const0 if scratch register was not allocated.
9312 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
9313 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
9315 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
9316 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
9317 with GEN_INT (...) everywhere. Remove constraints in define_split
9319 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9320 require scratch register for setting 0 into regs/non-pushable memory.
9322 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
9324 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9325 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9327 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
9329 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
9330 * cppinit.c (cpp_create_reader): On by default.
9331 (cpp_handle_option): Handle -W[no-]endif-labels.
9332 (cpp_post_options): Also enable if -pedantic.
9333 * cpplib.c (do_else): Use it.
9334 (do_endif): Likewise.
9335 * doc/cppopts.texi: Document new option.
9336 * doc/invoke.texi: Document new option.
9338 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
9340 * config/i386/i386.c, config/i386/i386.md: Change all occurences
9341 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9343 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
9345 * flow.c (calculate_global_regs_live): Clear aux fields of
9348 2002-03-22 Jakub Jelinek <jakub@redhat.com>
9350 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9351 REG or MEM subregs, pass rtx * instead of rtx to it.
9352 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9353 rtx * instead of rtx to alter_subreg.
9354 * config/m32r/m32r.c (gen_split_move_double): Likewise.
9355 * config/pj/pj.c (pj_output_rval): Likewise.
9357 2002-03-22 Richard Henderson <rth@redhat.com>
9360 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9361 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9362 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9363 (ia64_expand_prologue): Look at int_regs, not words, for number
9364 of incomming int regs.
9366 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
9368 * expr.c (expand_expr): A RESULT_DECL is part of a call.
9370 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
9372 * toplev.c (flag_loop_optimize, flag_crossjumping):
9373 New static variables.
9374 (rest_of_compilation): Conditionalize crossjumping and
9376 (parse_options_and_default_flags): Default loop_optimize and
9378 (lang_independent_options): Add -fcrossjumping and -floop-optimize
9379 * invoke.texi (crossjumping, loop-optimize): Document.
9381 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9383 * real.c (eiisneg): Move outside #ifdef NANS.
9385 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
9387 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9388 frequencies match; avoid match on different loop depths.
9389 (try_crossjump_to_bb): Kill tests that no longer brings time
9391 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9393 (split_edge): Likewise.
9395 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9398 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9399 * cfgrtl.c: Include insn-config.h
9400 (split_block) Dirtify block in presence of conditional execution
9402 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9404 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9405 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9406 (function_arg): Constify CUMULATIVE_ARGS.
9407 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9408 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9409 (UNITS_PER_DOUBLE): New macro.
9410 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
9411 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
9412 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
9413 fp_regs and stack_words.
9414 (EABI_FLOAT_VARARGS_P): New macro.
9415 * config/mips/mips.c (struct mips_arg_info): New.
9416 (mips_arg_info): New function.
9417 (function_arg_advance): Use it. Add adjustment instructions here
9418 rather than in function_arg.
9419 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
9420 for VOIDmode at the beginning of the function.
9421 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
9422 (function_arg_pass_by_reference): Likewise.
9423 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9424 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9425 (mips_va_start): Likewise. Use the new stack_words field of
9426 CUMULATIVE_ARGS to set up overflow area. Reformat.
9427 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
9428 doubles and other types, aligning the overflow pointer for non-doubles
9429 too. Remove some code duplication. Replace hard-coded constants.
9431 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9433 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9434 (CLASS_UNITS): Undefine.
9435 (CLASS_MAX_NREGS): Use FP_INC.
9436 * config/mips/mips.c (compute_frame_size): Likewise.
9437 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9439 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
9441 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9442 prototype, and handle lexing numbers and identifiers.
9443 (parse_identifier): Update to new form of parse_slow.
9444 (parse_number): Fast path only, use parse_slow otherwise.
9445 (_cpp_lex_direct): Update calls to parse_number.
9447 2002-03-21 DJ Delorie <dj@redhat.com>
9449 * bb-reorder.c (make_reorder_chain_1): Protect against
9450 when redundant edges are omitted.
9451 * predict.c (dump_prediction): Likewise.
9453 2002-03-21 Richard Henderson <rth@redhat.com>
9456 * fixinc/inclhack.def (solaris_stdio_tag): New.
9457 * fixinc/fixincl.x: Regenerate.
9459 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
9462 * c-typeck.c (process_init_element): Flag non-static
9463 initialization of a flexible array member as illegal.
9465 2002-03-22 Alan Modra <amodra@bigpond.net.au>
9467 * config/rs6000/t-linux64: New.
9468 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9469 t-ppccomm. Use t-rs6000 and t-linux64.
9470 (powerpc64-*-gnu* <tmake_file>): Likewise.
9471 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9472 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9473 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9475 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
9477 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9478 flag_really_no_inline instead of optimize == 0.
9480 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9482 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9484 * flags.h (flag_really_no_inline): New.
9486 * c-common.c (c_common_post_options): Initialize
9487 flag_really_no_inline.
9489 * toplev.c (flag_really_no_inline): New.
9491 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9493 * config/avr/avr.md (length): Fix length computation for
9494 conditional branches.
9496 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
9498 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9499 sdbout.o, profile.o): Update.
9500 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9502 * c-common.h (gettags): Move here from tree.h.
9503 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9504 insert_block, getdecls, kept_level_p, global_bindings_p): New.
9505 * dbxout.c (dbxout_init): Use getdecls langhook.
9506 * expr.c (expand_expr): Use insert_block langhook.
9507 * fold-const.c: Include langhooks.h.
9508 (fold_range_test, fold_binary_op_with_conditional_arg,
9509 fold): Use global_bindings_p langhook.
9510 * integrate.c (expand_inline_function): Use insert_block langhook.
9511 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9512 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9513 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9514 LANG_HOOKS_GETDECLS): New.
9515 (LANG_HOOKS_INITIALIZER): Update.
9516 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9518 * langhooks.h (struct lang_hooks_for_decls): New.
9519 (struct lang_hooks): Update.
9520 * profile.c: Include langhooks.h.
9521 (output_func_start_profiler): Use new langhooks.
9522 * sdbout.c: Include langhooks.h.
9523 (sdbout_init, sdbout_finish): Use getdecls langhook.
9524 * stmt.c: Include langhooks.h.
9525 (expand_fixup, fixup_gotos): Use new langhooks.
9526 * stor-layout.c: Include langhooks.h.
9527 (variable_size): Use global_bindings_p langhook.
9528 * toplev.c (compile_file): Use getdecls langhook.
9529 * tree-inline.c (remap_block): Use insert_block langhook.
9530 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9531 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9533 2002-03-21 Richard Henderson <rth@redhat.com>
9535 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9536 constants in .data when -fpic.
9538 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9540 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9543 2002-03-21 Tom Tromey <tromey@redhat.com>
9545 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
9547 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9549 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9551 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9553 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
9554 Richard Henderson <rth@redhat.com>
9557 * c-common.c (c_expand_expr): Preserve result of a statement
9558 expression if needed.
9560 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9563 * genrecog.c (maybe_both_true_mode): Remove.
9564 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9565 * machmode.def (Pmode): Likewise.
9567 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
9569 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9570 (nonlocal_mentioned_p_1): New function.
9571 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9572 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9573 (mark_constant_function): Recognize pure functions.
9574 * rtl.h (global_reg_mentioned_p): New prototype.
9575 * rtlanal.c (global_reg_mentioned_p,
9576 global_reg_mentioned_p_1): New function.
9578 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9580 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9582 * fixinc/fixincl.x: Regenerate.
9584 2002-03-20 Jason Merrill <jason@redhat.com>
9586 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9588 2002-03-20 Michael Meissner <meissner@redhat.com>
9590 * doc/invoke.texi (Optimize Options): Document that -O2 sets
9593 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9595 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9596 ".literal_position" directive before the constant pool.
9598 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9600 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9601 Add Craig Rodrigues.
9602 Add Brad Lucier to testers.
9604 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9607 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9609 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9610 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9611 instead of insn_extract.
9613 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9616 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9618 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9619 stmt if some case has been output.
9621 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9624 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9625 movsfcc_1, movdfcc_1): Add %O2.
9626 * config/i386/i386.c (print_operand): Handle %ON.
9627 Print . before float condition codes in Sun as cmov syntax.
9628 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9629 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9632 2002-03-20 Philip Blundell <pb@nexus.co.uk>
9634 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9635 return instruction if PC was popped.
9637 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9639 * config/xtensa/xtensa.md: Remove unused type attributes.
9640 (adddi_carry, subddi_carry): Change type attribute to "multi".
9642 2002-03-19 Dale Johannesen <dalej@apple.com>
9644 PR optimization/5999, middle-end/5731
9645 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9646 multiplications by reciprocals.
9648 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
9650 * Makefile.in: Update.
9651 * c-common.c: Include langhooks.h.
9652 (inline_forbidden_p): Use new hook.
9653 * diagnostic.c: Include langhooks.h.
9654 (format_with_decl, announce_function,
9655 default_print_error_function): Use new hook.
9656 * dwarf2out.c (dwarf2_name): Use new hook.
9657 * function.c: Include langhooks.h.
9658 (init_function_start): Use new hook.
9659 * langhooks-def.h (lhd_decl_printable_name): New.
9660 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9661 (LANGHOOKS_INITIALIZER): Update.
9662 * langhooks.c (lhd_decl_printable_name): New.
9663 * langhooks.h (struct lang_hooks): New hook.
9664 * toplev.c (decl_name, decl_printable_name): Remove.
9665 (open_dump_file): Use new hook.
9666 (process_options): Remove old hook.
9667 * tree.h (decl_printable_name): Remove.
9669 * objc-act.c (objc_init): Remove old hook.
9670 (objc_printable_name): Export.
9671 * objc-act.h (objc_printable_name): New.
9672 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9674 2002-03-19 Jim Blandy <jimb@redhat.com>
9676 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9677 the start_source_file debug hook, not the current line number.
9679 2002-03-19 Richard Henderson <rth@redhat.com>
9681 * flow.c (EH_USES): Provide default.
9682 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9683 * doc/tm.texi (EH_USES): New.
9685 * config/ia64/ia64.c (ia64_eh_uses): New.
9686 * config/ia64/ia64-protos.h: Update.
9687 * config/ia64/ia64.h (EH_USES): New.
9689 2002-03-19 Richard Henderson <rth@redhat.com>
9691 * varasm.c (output_constant_def): Fix stupid typo.
9693 2002-03-19 Richard Henderson <rth@redhat.com>
9696 * except.c (current_function_has_exception_handlers): New.
9697 * except.h: Declare it.
9698 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9699 Combine tests that disable all sibcalls for the function.
9701 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
9703 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9706 2002-03-19 Richard Henderson <rth@redhat.com>
9709 * config/ia64/ia64.c: Revert 2002-03-01 patch.
9710 * config/ia64/ia64.h (INIT_EXPANDERS): New.
9712 2002-03-19 Jim Blandy <jimb@redhat.com>
9714 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9715 name, even if the replacement list contains no tokens, as required
9718 2002-03-19 Jason Merrill <jason@redhat.com>
9720 * varasm.c (globalize_decl): Get the name from the RTL, not
9721 DECL_ASSEMBLER_NAME.
9723 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9725 2002-03-19 Bob Wilson <bob.wilson@acm.org>
9727 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9728 subdi_carry): Define.
9730 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9732 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9733 about -fpic/-fPIC if extra_warnings set.
9735 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9737 * expr.c (expand_expr): Sign-extend CONST_INT generated from
9738 TREE_STRING_POINTER.
9739 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9741 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9743 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9744 in favor of SP if FRAME_POINTER_REQUIRED is false.
9746 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
9748 * emit-rtl.c (gen_int_mode): New function.
9749 * rtl.h: Prototype for it.
9750 * combine.c (make_extraction, simplify_comparison), expmed.c
9751 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9752 (convert_modes, store_field), optabs.c (expand_fix),
9753 simplify-rtx.c (neg_const_int, simplify_unary_real),
9755 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9756 Use it instead of GEN_INT (trunc_int_for_mode (...)).
9758 2002-03-19 Jakub Jelinek <jakub@redhat.com>
9761 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9762 convert_parm_for_inlining.
9763 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9765 * langhooks-def.h: Likewise.
9766 * objc/objc-lang.c: Likewise.
9767 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9769 * tree-inline.c (initialize_inlined_parameters):
9770 Call convert_parm_for_inlining lang hook if needed.
9771 * c-typeck.c (c_convert_parm_for_inlining): New function.
9772 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9774 2002-03-18 Mark Mitchell <mark@codesourcery.com>
9776 * calls.c (precompute_arguments): Do not assume that temporaries
9777 can be destroyed after expanding the argument.
9778 (expand_call): Likewise.
9780 2002-03-15 Eric Christopher <echristo@redhat.com>
9782 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9783 Fix register preference on last change.
9784 * config/mips/mips.c (mips_return_in_memory): New function.
9785 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9786 * config/mips/mips-protos.h: Declare.
9787 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9788 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9790 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
9792 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9794 (anddi3, iorsi3): Likewise.
9796 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9797 use %gprel for symbols that are going to be placed in linkonce
9800 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9801 RETURN_ADDRESS_POINTER_REGNUM to $ra.
9802 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9803 not needed. Disregard leaf_function_p().
9804 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9805 mips16 frame pointer.
9806 * config/mips/mips.md (store ra): Only to small SP offsets.
9807 2001-08-22 Graham Stott <grahams@redhat.com>
9808 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9809 return a REG rtx for the return address register.
9811 2002-03-18 Bob Wilson <bob.wilson@acm.org>
9813 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9814 constant-pool addresses as "mode-dependent".
9815 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9817 2002-03-18 Jakub Jelinek <jakub@redhat.com>
9820 * expr.c (emit_group_load): Use extract_bit_field if
9821 needed for CONCAT arguments.
9823 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
9826 * arm.md (tablejump): Make this a define_expand. For PIC add the
9827 offset to the base of the table.
9828 (thumb_tablejump): Matcher for Thumb tablejump insn.
9829 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9830 as the difference of two labels.
9831 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9832 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9834 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9835 * arm.c (get_jump_table_size): If the table is not in the text
9836 section, return zero.
9838 2002-03-18 Bernd Schmidt <bernds@redhat.com>
9840 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9842 (arm_reload_out_hi): Use gen_lowpart instead of
9843 gen_rtx_SUBREG to access QImode components.
9844 * config/arm/arm.md: Disable zero_extend split for QImode
9845 subregs in BIG_ENDIAN mode.
9846 (storehi_bigend): Match use of least significant byte.
9847 (storeinthi): Remove extraneous SUBREG.
9848 Add missing construction of operands[2].
9849 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9850 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9851 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9853 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
9855 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9858 2002-03-17 Richard Henderson <rth@redhat.com>
9860 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9863 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9865 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9866 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9868 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9870 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9872 * predict.c (estimate_bb_frequencies): Delete unused variables.
9874 2002-03-17 Richard Henderson <rth@redhat.com>
9876 * config/ia64/ia64.c (ia64_attribute_table): Move before
9877 targetm definition. Make static.
9879 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
9881 * c-common.h (yyparse, c_common_parse_file): New.
9882 * c-lang.c: Include c-common.h.
9883 (LANG_HOOKS_PARSE_FILE): Redefine.
9884 * c-lex.c: Include c-common.h.
9885 (yyparse): Rename c_common_parse_file. Call yyparse.
9886 * c-parse.in (yyparse): Remove macro.
9887 * c-tree.h (yyparse_1): Remove.
9888 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9889 (LANG_HOOKS_INITIALIZER): Update.
9890 * langhooks.h (struct lang_hoooks): New hook parse_file.
9891 * toplev.c (compile_file): Use parse_file hook.
9892 * tree.h (yyparse): Remove.
9893 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9895 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9897 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9898 float_truncate, not fix.
9899 ("*truncdfsf2_real"): Ditto.
9900 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9902 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9904 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
9906 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9907 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
9908 where appropriate. Make the second reference to
9909 leaf_function_p a function call, as intended. Reindented.
9911 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9912 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9914 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9915 add register to non-constant into sp.
9917 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9918 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9919 (mips16_gp_pseudo_rtx): Lose.
9920 (INIT_EXPANDERS): Deleted.
9921 * config/mips/mips.c (mips_init_machine_status): New.
9922 (mips_free_machine_status): New.
9923 (mips_mark_machine_status): New.
9924 (override_options): Set them.
9925 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9926 (struct machine_function): ... new. Replaced all references.
9927 (mips_add_gc_roots): Don't mark them.
9928 (embedded_pic_fnaddr_reg): New, extracted from...
9929 (embedded_pic_offset): ... here.
9930 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9933 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9935 * cppinit.c: Revert -MD removal.
9937 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9939 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9940 soft registers by default for 68HC12.
9941 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9942 when compiling with -fomit-frame-pointer.
9943 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9944 (expand_epilogue): Likewise.
9945 (m68hc11_gen_rotate): Use exg when rotating by 8.
9947 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9949 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9950 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9951 (splits): Remove unused add splits.
9952 ("*addhi3_68hc12"): Tune constraints.
9953 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9954 constant fits in 8-bits and D is dead use abx/aby instructions.
9955 ("*addhi3"): Remove extern declaration of ix_reg.
9956 ("*subsi3"): Optimize and provide new split.
9957 ("subhi3"): Cleanup.
9958 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9959 (arith splits): For 68hc12 save the address register on the stack
9960 and do the arithmetic operation with a pop.
9962 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9964 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9965 allocating QImode in address registers.
9966 ("*movqi_m68hc11"): Likewise.
9968 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9970 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9972 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9974 * cppinit.c (print_help): Display -MD and -MMD.
9975 Don't display usage string. Update assertion syntax and
9977 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9978 (cpp_handle_option): Update.
9980 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9982 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9983 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9984 and define it so that regardless of target CPU size,
9985 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9986 of "int" rather than "long."
9988 2002-03-15 Richard Henderson <rth@redhat.com>
9990 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9993 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9995 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9996 ("tstqi" split): Avoid using memory for tstqi on address register.
9997 (splits): Remove constraints.
9998 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9999 ("cmpdf", "cmpsf"): Remove since not used.
10000 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
10001 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
10003 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10005 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
10006 ("neghi2"): Tighten constraints.
10007 ("one_cmplsi2"): Optimize and simplify split.
10008 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
10010 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10012 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
10013 and split of AND operation to clear the upper bits.
10014 ("*logicalsi3_zextqi"): Likewise.
10015 ("*logicallhi3_zexthi_ashift8"): Likewise.
10016 ("*logicalsi3_silshr16"): Likewise.
10017 ("logicalsi3_silshl16"): Likewise.
10018 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
10020 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10022 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
10023 (m68hc11_indirect_p): New function.
10024 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
10025 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
10027 (asm_print_register): Likewise.
10028 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
10029 (m68hc11_indirect_p): Declare.
10030 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
10031 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
10032 (TARGET_SWITCHES): New option -mrelax.
10033 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
10035 ("iorsi3", "xorsi3"): Likewise.
10036 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
10037 ("*andhi3_mem"): New to handle destination in memory with bclr
10038 and a scratch register.
10039 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
10040 ("*andhi3_const"): New when operand2 is constant.
10041 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
10042 ("*andhi3_gen"): Cleanup of the old "andhi3".
10043 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
10044 ("xorqi3"): Update constraints.
10046 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10048 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
10049 for reg_equiv_memory_loc when the operand is a register that does
10050 not get a hard register (stack location).
10051 (tst_operand): After reload, accept all memory operand.
10052 (symbolic_memory_operand): Fix detection of symbolic references.
10053 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
10054 accept symbols and any constant.
10056 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10058 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
10059 note on the insn that sets the soft frame register.
10060 (must_parenthesize): ix and iy are also reserved names.
10061 (print_operand_address): One more place where parenthesis are required
10062 to avoid confusion with register names.
10063 (m68hc11_gen_movhi): Allow push of stack pointer.
10064 (m68hc11_check_z_replacement): Fix handling of parallel with a
10066 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
10067 the replacement register is.
10068 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
10069 and D8_REGS classes.
10070 (MODES_TIEABLE_P): All modes are tieable except QImode.
10072 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10074 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
10075 (___subdi3): Likewise.
10076 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
10077 (__map_data_section): Optimize 68hc11 case.
10079 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10081 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
10082 than a shift to avoid adding a register with itself.
10083 (m68hc11_memory_move_cost): Take into account NO_REGS.
10084 (m68hc11_register_move_cost): Update and use memory move cost
10085 for soft registers.
10086 (m68hc11_address_cost): Make cost of valid offset not 0 so that
10087 it gives more opportunities to cse to optimize.
10088 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
10089 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
10091 2002-03-15 Mark Mitchell <mark@codesourcery.com>
10093 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
10094 * c-common.def (CLEANUP_STMT): New tree node.
10095 * c-common.h (CLEANUP_DECL): New macro.
10096 (CLEANUP_EXPR): Likewise.
10097 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
10098 * expr.c (expand_expr): Tidy.
10099 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
10100 * tree-inline.c (initialize_inlined_parameters): Clean up
10101 new local variables.
10103 2002-03-15 Jakub Jelinek <jakub@redhat.com>
10106 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
10107 before movrXX only, use reg_overlap_mentioned_p.
10108 Only special case NE if just one insn can be generated.
10110 2002-03-15 Jason Merrill <jason@redhat.com>
10112 * varasm.c (assemble_variable): Call resolve_unique_section before
10113 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
10114 of error_mark_node.
10116 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
10119 * arm.md (split pattern for thumb shiftable immediates): Add comment
10120 explaining non-obvious test.
10122 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
10125 * arm.md (movaddr, movaddr_insn): Delete.
10127 2002-03-15 Jason Merrill <jason@redhat.com>
10129 * toplev.c (wrapup_global_declarations): Clarify variable handling.
10130 -fkeep-static-consts doesn't apply to comdats.
10132 2002-03-14 Richard Henderson <rth@redhat.com>
10134 * c-decl.c: Include c-pragma.h.
10135 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
10136 (finish_function): Tidy.
10137 * c-pragma.c: Include c-common.h.
10138 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
10139 (handle_pragma_weak): Use them.
10140 (init_pragma): Register pending_weaks.
10141 * c-pragma.h (maybe_apply_pragma_weak): Declare.
10142 * print-tree.c (print_node): Print DECL_WEAK.
10143 * varasm.c (mark_weak_decls): Remove.
10144 (remove_from_pending_weak_list): Remove.
10145 (add_weak): Remove.
10146 (asm_emit_uninitialised): Call globalize_decl for weak commons.
10147 (weak_decls): Make a tree_list.
10148 (declare_weak): Cons weak_decls directly.
10149 (globalize_decl): Remove weak_decls elements directly.
10150 (weak_finish): Simplify weak_decls walk. Don't weaken unused
10151 symbols. Don't pretend to handle aliases.
10152 (init_varasm_once): Update weak_decls registry.
10153 * Makefile.in: Update dependencies.
10155 2002-03-14 Richard Henderson <rth@redhat.com>
10158 * config/ia64/ia64.c: Include tm_p.h last.
10159 (gen_nop_type): Remove duplicate definition.
10160 (cycle_end_fill_slots): Set sched_data for second L slot.
10161 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
10162 (nop_cycles_until): Fix typos.
10164 2002-03-15 Jakub Jelinek <jakub@redhat.com>
10166 PR optimization/5891
10167 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
10169 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
10171 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
10172 descriptors correctly.
10174 2002-03-14 Michael Meissner <meissner@redhat.com>
10176 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
10177 100, allowing MAX_UNROLLED_INSNS to be overridden.
10179 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
10182 * unroll.c (params.h): Include.
10183 (MAX_UNROLLED_INSNS): Delete, now in params.h.
10185 * doc/invoke.texi (--param max-unroll-insns): Document.
10187 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
10189 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
10191 * arm.md: Fix warnings about constraints in peepholes and splits.
10193 2002-03-14 Zack Weinberg <zack@codesourcery.com>
10195 * cpphash.h (struct lexer_state): Remove line_extension member.
10196 * cpplib.c (dequote_string, do_linemarker): New functions.
10197 (linemarker_dir): New data object.
10198 (DIRECTIVE_TABLE): No longer need to interpret #line in
10199 preprocessed source. Delete obsolete comment about return
10200 values of handlers.
10201 (end_directive, directive_diagnostics, _cpp_handle_directive):
10202 Don't muck with line_extension.
10203 (directive_diagnostics): No need to issue warnings for
10205 (_cpp_handle_directive): Issue warnings for linemarkers here,
10206 when appropriate. Dispatch linemarkers to do_linemarker, not
10208 (do_line): Code to handle linemarkers split out to do_linemarker.
10209 Convert escape sequences in filename argument, both places.
10211 * cppmacro.c (quote_string): Rename cpp_quote_string and
10212 export. All callers changed.
10213 * cpplib.h (cpp_quote_string): Prototype.
10214 * cppmain.c (print_line): Call cpp_quote_string on to_file
10215 before printing it.
10217 * doc/cpp.texi: Document that escapes are now interpreted in
10218 #line and in linemarkers, and that non-printing characters are
10219 converted to octal escapes when linemarkers are generated.
10221 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
10223 * emit-rtl.c (try_split): Use delete_insns.
10224 * recog.c (split_all_insns): Fix terminating condition.
10226 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
10227 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10230 * arm.c (arm_output_epilogue): Fix floating-point register save
10231 adjustment when using a frame pointer.
10233 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
10235 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
10236 * config/mips/mips.c (compute_frame_size): Retrofit them here.
10237 (save_restore_insns, mips_expand_epilogue): And here.
10238 (build_mips16_call_stub): And here.
10239 (mips_function_value): Use the new macros to decide whether a single
10240 or complex float can be returned in floating-point registers. Return
10241 a parallel rtx in the complex case.
10243 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
10245 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
10246 call after liveness analysis.
10248 * recog.c (split_insn): Use delete_insn_and_edges.
10250 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
10251 instructions to have branch prediction notes.
10252 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
10254 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
10256 * configure.in: Don't pass -Wno-long-long to a ADA compiler
10257 that doesn't support it.
10258 * configure: Regenerate.
10260 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10263 * config/sparc/sparc.md (normal_branch, inverted_branch,
10264 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10265 inverted_fp_branch): Adjust calls to output_cbranch.
10266 Set length attribute.
10267 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
10268 output_v9branch. Set length attribute.
10269 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
10271 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
10272 (output_cbranch): Likewise. Handle far branches.
10273 (output_v9branch): Handle far branches.
10274 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
10276 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
10277 noov_compare64_op predicates.
10279 2002-03-13 Jason Merrill <jason@redhat.com>
10281 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
10282 into the function and constify it.
10283 * gthr-dce.h, gthr-solaris.h: Likewise.
10285 2002-03-13 David Edelsohn <edelsohn@gnu.org>
10287 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
10288 * config/rs6000/rs6000.c (rs6000_va_arg): Use
10289 std_expand_builtin_va_arg if not ABI_V4.
10291 2002-03-13 Jason Merrill <jason@redhat.com>
10293 * varasm.c (globalize_decl): New fn.
10294 (assemble_start_function): Use it.
10295 (asm_emit_uninitialized): Use it.
10296 (assemble_alias): Use it.
10297 (assemble_variable): Use it.
10299 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
10301 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
10302 2002-03-12 internal visibility change.
10303 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
10304 visibility into SYMBOL_REF_FLAG.
10306 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
10308 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
10309 VOIDmode operand. Add compile-time optimization for constant results.
10311 2002-03-12 Jason Merrill <jason@redhat.com>
10313 * c-typeck.c (convert_for_assignment): Don't allow conversions
10314 between pointers and references. Only allow lvalues to convert to
10317 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
10319 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10320 before prologue, to avoid scheduling problems.
10322 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10324 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10325 (ELIMINABLE_REGS): Add sfp->sp.
10326 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10328 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10330 PR optimization/5892
10331 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10333 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10335 * loop.c (basic_induction_var): Don't call convert_modes if mode
10336 classes are different.
10338 2002-03-12 Richard Henderson <rth@redhat.com>
10340 PR optimization/5901
10341 * function.c (reposition_prologue_and_epilogue_notes): Position
10342 the markers after/before the last/first insn not deleted.
10344 2002-03-12 Richard Henderson <rth@redhat.com>
10346 PR optimization/5878
10347 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10348 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10349 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10351 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10352 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10353 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10355 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10356 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10357 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10358 also. Don't set it if not flag_pic.
10359 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10360 to be INVALID_REGNUM when not used.
10362 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
10364 * expmed.c (store_bit_field): Reset alias set for memory.
10365 (extract_bit_field): Same.
10367 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10369 * c-common.c (c_tree_code_type, c_tree_code_length,
10370 c_tree_code_name, add_c_tree_codes): Delete.
10371 * c-common.h (add_c_tree_codes): Delete.
10372 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10374 * c-objc-common.c (c_objc_common_init): Don't call
10375 add_c_tree_codes, instead set lang_unsafe_for_reeval.
10376 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10377 objc_tree_code_name, add_objc_tree_codes): Delete.
10378 (objc_init): Don't call add_objc_tree_codes.
10379 * objc/objc-lang.c (tree_code_type, tree_code_length,
10380 tree_code_name): Define.
10381 * toplev.c (lang_independent_init): Don't set
10382 tree_code_length[IDENTIFIER_NODE].
10383 * tree.c (tree_code_type, tree_code_length, tree_code_name):
10384 Delete definitions, moved to language front-ends.
10385 * tree.def (IDENTIFIER_NODE): Hardwire the length.
10386 * tree.h (tree_code_type, tree_code_length, tree_code_name):
10388 (tree_code_length): Change type to unsigned char.
10390 2002-03-12 Richard Henderson <rth@redhat.com>
10392 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10393 internal visibility change.
10395 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10397 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10398 validize_mem() instead of change_address to avoid clobbering
10401 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
10403 * c-lex.h (position_after_whitespace): Remove.
10405 2002-03-12 Jakub Jelinek <jakub@redhat.com>
10407 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10408 (lex_string): Use unsigned char pointers.
10410 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
10412 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10413 is not a valid memory_operand.
10415 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10417 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10418 * config/xtensa/lib1funcs.asm: Fix copyright to include
10419 special case for libgcc files.
10420 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10421 (__divsi3): Likewise.
10422 (__umodsi3): Likewise.
10423 (__modsi3): Likewise.
10424 * config/xtensa/lib2funcs.S: Fix copyright to include
10425 special case for libgcc files.
10427 2002-03-12 Tom Rix <trix@redhat.com>
10429 * collect2.c (resolve_lib_name): Move outside of
10430 OBJECT_FORMAT_COFF ifdef.
10431 (ignore_library): Same.
10433 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10435 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10437 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10439 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10440 to function_section before writing out the constant pool.
10442 2002-03-12 David Edelsohn <edelsohn@gnu.org>
10444 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10446 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10448 2002-03-12 Alan Modra <amodra@bigpond.net.au>
10450 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10451 (adddi3): Likewise.
10454 (cmpsi splitter): Likewise.
10455 (modsi3): Fail if <= 0.
10456 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10457 redundant test when HOST_BITS_PER_WIDE_INT != 32.
10458 (reg_or_sub_cint64_operand): Likewise.
10459 (num_insns_constant_wide): Optimize sign extension.
10460 (rs6000_legitimize_address): Likewise.
10462 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
10464 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10465 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10467 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
10469 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10470 address calculation.
10472 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
10474 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10475 scratch register to DImode / TImode.
10476 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10477 register used does not overlap the target.
10479 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10481 * Makefile.in (debug.o): Depend on debug.h.
10482 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10483 * debug.c (do_nothing_debug_hooks): Likewise.
10484 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10485 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10486 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10487 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10488 * dwarfout.c (dwarf_debug_hooks): Likewise.
10489 * integrate.c (output_inline_function): Likewise.
10490 * objc/objc-act.c (synth_module_prologue): Likewise.
10491 * sdbout.c (sdb_debug_hooks): Likewise.
10492 * toplev.c (debug_hooks): Likewise.
10493 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10495 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10497 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10498 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10499 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10500 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10501 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10502 * defaults.h (POINTER_SIZE): Define.
10503 * doc/tm.texi (POINTER_SIZE): Document default.
10505 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10507 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10509 2002-03-11 Richard Henderson <rth@redhat.com>
10511 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10512 if rebuild_label_notes_after_reload.
10514 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
10516 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
10517 emit pic register load if "internal" visibility.
10518 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10519 (cris_expand_builtin_va_arg): Do all computations on trees.
10521 2002-03-11 Richard Henderson <rth@redhat.com>
10523 * rtlanal.c: Include recog.h.
10524 (keep_with_call_p): Fix thinko.
10525 * Makefile.in (rtlanal.o): Update dependencies.
10527 2002-03-11 Chris Meyer <cmeyer@gatan.com>
10529 * genflags.c (gen_insn): Use IS_VSPACE.
10530 * genoutput.c (output_insn_data): Likewise.
10531 (process_template): Likewise.
10533 2002-03-11 Richard Henderson <rth@redhat.com>
10535 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10537 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
10539 * Makefile.in: Update.
10540 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10541 Update documentation.
10542 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10543 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10545 2002-03-11 Zack Weinberg <zack@codesourcery.com>
10547 * Makefile.in: Give texi2pod its input file as a command line
10548 argument, not on stdin.
10550 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
10551 Daniel Berlin <dan@dberlin.org>
10553 C++ alias analysis improvement.
10554 * alias.c (record_component_aliases): Record aliases for base
10557 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10559 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10561 2002-03-11 Douglas B Rupp <rupp@gnat.com>
10563 * toplev.c (vms_fopen): Remove, not needed.
10565 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10567 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10569 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10570 for FP, already done later.
10572 * toplev.c (debug_args): Add entry for VMS_DEBUG.
10573 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10575 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
10577 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10578 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10579 LARGEST_EXPONENT_IS_NORMAL for the given mode.
10580 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10581 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10582 (ediv, emul, eldexp, esqrt): Likewise.
10583 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10584 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10585 (saturate): New function.
10586 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10587 (make_nan): Use a saturation value instead of a NaN if
10588 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
10589 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10590 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
10591 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
10592 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10593 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10594 !ROUND_TOWARDS_ZERO.
10595 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10596 (ROUND_TOWARDS_ZERO): Document.
10598 2002-03-11 Andreas Jaeger <aj@suse.de>
10600 * cfg.c (dump_flow_info): Remove unused variable.
10602 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
10604 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10605 computations on trees.
10607 2002-03-10 Richard Henderson <rth@redhat.com>
10610 * reload.c (copy_replacements_1): New.
10611 (copy_replacements): Use it to recurse through the rtx.
10613 2002-03-10 Richard Henderson <rth@redhat.com>
10615 * loop.c (strength_reduce): Compute number of iterations as
10616 unsigned HOST_WIDE_INT.
10618 2002-03-10 Richard Henderson <rth@redhat.com>
10620 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10621 to move away from the end of the block.
10623 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
10625 PR preprocessor/5899
10626 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10628 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10630 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10632 * attribs.c (decl_attributes): Fix signed/unsigned warning.
10634 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
10636 * config/mmix/mmix.c: Improve comments.
10637 (mmix_target_asm_function_prologue): Drop variable
10638 empty_stack_frame. Don't allocate unused slot above fp.
10639 (mmix_target_asm_function_epilogue): Mirror prologue changes.
10640 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10641 brace in first column.
10642 (enum reg_class): Ditto.
10643 (FIRST_PARM_OFFSET): Now 0.
10644 (USER_LABEL_PREFIX): Remove #if 0:d definition.
10646 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10648 * combine.c (make_extraction): Fix error in last change.
10650 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10652 * c4x.c (c4x_fp_reglist): Const-ify.
10653 * cris.c (cris_print_operand): Likewise.
10654 * i386.c (ix86_va_arg): Likewise.
10655 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10656 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10657 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10658 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10659 * mcore.h (regno_reg_class): Likewise.
10660 * mips.c (gen_int_relational): Likewise.
10661 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10662 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10663 * pdp11.c (move_costs): Likewise.
10664 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10665 * s390.c (s390_branch_condition_mnemonic, regclass_map):
10667 * s390.h (regclass_map): Likewise.
10668 * sh.c (shift_amounts): Likewise.
10669 * sh.md (rotlsi3): Likewise.
10671 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10673 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10674 (ne0+5): Use new clobber to generate proper shift pattern.
10675 Patch by Michael Matz <matz@kde.org>.
10677 2002-03-09 Andreas Schwab <schwab@suse.de>
10679 * gcc.c (validate_all_switches): Also handle `%W{...}'.
10681 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10683 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10685 2002-03-09 Jakub Jelinek <jakub@redhat.com>
10688 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10689 even for non-representable constants.
10691 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10693 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10694 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10695 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10696 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10697 (pop_function_context): Compute MAY_SHARE parameter for
10699 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10700 (gen_mem_addressof): Call fixup_var_refs with new parm.
10702 * combine.c (make_extraction): Don't make extension of CONST_INT.
10704 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10706 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10707 in o32 and o64 ABIs.
10708 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10709 but getting fixed-size structs passed in registers regardless of
10710 padding in o32 and o64 ABIs.
10712 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10713 offset before loading address of argument passed by transparent
10716 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10718 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10720 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10722 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10723 marker such that registers after it are saved.
10725 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10727 * sparc.c (arith_4096_operand): Fix error in last change.
10729 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10731 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10732 defaults for MEABI.
10734 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10736 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10739 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10741 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10743 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
10745 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10746 removed; fix return value.
10747 * combine.c (combine_instructions): Dirtify blocks where we failed to
10748 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10749 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10751 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10753 * gcse.c (insert_insn_end_bb): Fix typo in last change.
10755 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
10757 * recog.c (peephole2_optimize): Re-distribute EH edges.
10759 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
10761 * expr.c (expand_expr): Use unsave lang hook.
10762 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10763 (LANG_HOOKS_INITIALIZER): Update.
10764 * langhooks.h (struct lang_hooks): New hook unsave.
10765 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10766 (unsave_expr_1): Remove unused lang_unsave_expr_now.
10767 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
10768 (unsave_expr_now): Remove.
10769 * tree.h (unsave_expr_now, lang_unsave,
10770 lang_unsave_expr_now): Remove.
10773 2002-03-08 Andreas Jaeger <aj@suse.de>
10775 * flow.c (propagate_block_delete_insn): Remove unused variable.
10777 2002-03-08 Kazu Hirata <kazu@hxi.com>
10779 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10780 insn length for memory load/store.
10782 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
10784 * doc/install.texi (--with-libiconv-prefix): Document.
10786 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
10788 * doc/sourcebuild.texi: Fix typo.
10790 2002-03-08 Jakub Jelinek <jakub@redhat.com>
10793 * builtins.c (std_expand_builtin_va_arg): Do all computations on
10796 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10798 * rtl.c (copy_most_rtx): Move from here ...
10799 * emit-rtl.c (copy_most_rtx): ... to here.
10801 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10803 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10804 SUBTARGET_CPP_SIZE_SPEC.
10805 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10807 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10809 2002-03-07 Matt Hiller <hiller@redhat.com>
10811 * gensupport.c (first_dir_md_include): Renamed from include;
10812 change all references.
10813 (last_dir_md_include): Renamed from last_include; change all
10815 (init_md_reader): Unconditionally initialize base_dir whether or
10816 not filename is a relative path.
10818 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
10820 * config/fp-bit.c (_unord_f2): Compile it in even if
10821 US_SOFTWARE_GOFAST is enabled.
10823 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10824 NULL_RTX. Set all HFmode operations as NULL_RTX.
10825 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10826 NULL_RTX, try reversing the comparison and the operands.
10828 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10830 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10831 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10834 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
10836 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10838 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10840 * basic-block.h (fixup_abnormal_edges): Declare.
10841 * reload1.c (fixup_abnormal_edges): New function.
10842 * reg-stack.c (convert_regs): Use it.
10844 * gcse.c (insert_insn_end_bb): Handle trapping insns.
10846 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10848 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
10850 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10851 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10852 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10853 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10854 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10855 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10856 unless x and y could be infinite.
10857 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10858 Check that the common type of both arguments is a real, even for
10859 targets without unordered comparisons. Allow an integer argument
10860 to be compared against a real.
10861 (expand_tree_builtin): Use expand_unordered_cmp.
10862 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10863 * cse.c (fold_rtx): Likewise. Fix indentation.
10864 * fold-const.c (fold_real_zero_addition_p): New.
10865 (fold): Use it, and the new HONOR_... macros.
10866 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10867 * jump.c (reversed_comparison_code_parts): After searching for
10868 the true comparison mode, use HONOR_NANS to decide whether it
10869 can be safely reversed.
10870 (reverse_condition_maybe_unordered): Remove IEEE check.
10871 * simplify-rtx.c (simplify_binary_operation): Use the new macros
10872 to decide which simplifications are valid. Allow the following
10873 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10874 and (a - -b) to (a + b).
10875 (simplify_relational_operation): Use HONOR_NANS.
10876 * doc/tm.texi: Document the MODE_HAS_... macros.
10878 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10880 * combine.c (simplify_comparison): If simplifying a logical shift
10881 right and compare with constant, force the comparison to unsigned.
10883 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
10885 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10887 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10889 (alt_reg_names): Remove % for vrsave.
10891 2002-03-06 Richard Henderson <rth@redhat.com>
10893 PR optimization/5844
10894 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
10895 if used indicates we've already emitted one copy of an operand.
10896 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10897 (gen_split): Supply a non-null used.
10899 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10901 * reload1.c (reload): Unshare all rtl after reload is done.
10903 * simplify-rtx.c (simplify_plus_minus): Do not abort,
10904 but simply fail if the expression is too complex to simplify.
10905 (simplify_gen_binary): Handle simplify_plus_minus failures.
10907 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
10909 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10910 consistently call delete_trivially_dead_insns after CSE and GCSE;
10911 fix DFI_life dumping; do jump threading after liveness; do crossjumping
10912 after liveness2; update comment in last crossjumping.
10913 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10915 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
10917 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10918 after completing fast dead code elimination.
10920 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10923 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
10925 * version.c: Fix misplaced leading blanks on first line.
10927 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10929 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10931 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10933 * cfgcleanup.c (mentions_nonequal_regs): New function.
10934 (thread_jump): Use it.
10935 * toplev.c (rest_of_compilation): Run jump threading after
10938 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10940 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10943 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10945 * predict.c (estimate_bb_frequencies): Do not reload the
10946 frequencies from notes.
10948 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10950 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10951 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10953 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10954 delete_noop_moves): Return indeger.
10955 * flow.c (ndead): New variable.
10956 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10957 BB argument; update callers.
10958 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10959 (life_analysis): Do not call purge_all_dead_edges.
10960 (update_life_info): Return number of deleted insns; print statistics.
10961 (update_life_info_in_dirty_blocks): likewise.
10962 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10963 return number of insns deleted.
10965 * cse.c: Include timevar.h
10966 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10967 iterate until stabilizes; print statistics; return number of killed
10969 * Makefile.in: (cse.o): Add timevar.h dependency
10970 * rtl.h (delete_trivially_dead_insns): New.
10971 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10972 * toplev.c (rest_of_compilation): Update callers.
10974 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10975 (try_optimize_cfg): Do not update liveness.
10976 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10977 removal stabilizes; use delete_trivially_dead_insns.
10979 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10981 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10983 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10984 callbacks when processing assembly language.
10986 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10988 * pa.h (ASM_FILE_END): Define.
10989 * som.h (ASM_FILE_END): Delete.
10991 * pa.c (function_arg): Don't pass floats in general registers in
10992 indirect calls if TARGET_ELF32.
10994 2002-03-05 Richard Henderson <rth@redhat.com>
10996 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10998 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
11000 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
11002 2002-03-05 Jakub Jelinek <jakub@redhat.com>
11004 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
11005 -r command line. Don't hide any symbols if not building
11008 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
11010 * cfg.c (dump_flow_info): Warn about profile mismatches.
11011 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
11012 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
11014 2002-03-05 Jakub Jelinek <jakub@redhat.com>
11016 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
11017 wide volatile memory by parts.
11019 2002-03-05 Jakub Jelinek <jakub@redhat.com>
11021 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
11024 2002-03-05 Richard Henderson <rth@redhat.com>
11026 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
11028 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
11030 * toplev.c (documented_lang_options): Document more
11031 language-specific options.
11032 * doc/invoke.texi (Warning Options): Correct documentation for
11033 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
11034 * c-decl.c (c_decode_option): Use a table to handle warning options.
11036 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
11038 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
11039 parameter to mmix_encode_section_info.
11040 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
11041 relocatably. Always produce ELF, not mmo if linking relocatably.
11042 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
11043 first is non-zero, don't add symbol prefix.
11044 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
11045 prototype accordingly.
11047 2002-03-04 Krister Walfridsson <cato@df.lth.se>
11049 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
11051 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
11053 * configure.in: Increase required makeinfo version to 4.1.
11054 * configure: Regenerate.
11056 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
11058 * .cvsignore: Remove *.info* and genrtl*; these files are generated
11061 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
11063 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
11064 * doc/invoke.texi: Fix @math uses.
11066 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
11068 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
11071 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
11073 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
11074 (powerpc-*-eabisimaltivec*): Same.
11076 * config/rs6000/t-ppcendian: New.
11078 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11080 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
11081 nonimmediate_src_operand and nonimmediate_lsrc_operand to
11082 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
11084 2002-03-03 Richard Henderson <rth@redhat.com>
11086 * toplev.c (rest_of_decl_compilation): Revert last two changes.
11088 2002-03-03 Zack Weinberg <zack@codesourcery.com>
11090 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
11091 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
11092 tree.c, config/m68k/m68k.c:
11093 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
11094 REAL_ARITHMETIC blocks unconditional. Delete some further
11095 #ifdef blocks predicated on REAL_ARITHMETIC.
11096 * flags.h, toplev.c: Delete remaining references to
11097 flag_pretend_float.
11099 * doc/invoke.texi: Remove documentation of -fpretend-float.
11100 * doc/tm.texi: Describe the various REAL_* macros as provided by
11101 real.h, not by the target configuration files.
11103 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
11104 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
11105 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11106 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
11107 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
11108 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
11109 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
11110 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
11111 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11112 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
11113 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11114 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
11115 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
11116 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
11117 config/xtensa/xtensa.h:
11118 Do not define, undefine, or mention in comments any of
11119 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
11120 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
11121 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
11122 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
11123 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
11124 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
11125 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
11126 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
11127 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
11129 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11131 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
11132 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
11133 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
11134 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
11135 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
11136 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
11138 * defaults.h (BITS_PER_WORD): Define.
11139 * doc/tm.texi (BITS_PER_WORD): Document default value.
11141 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
11142 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
11143 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
11145 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11147 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
11148 lieu of explicit sizeof/sizeof.
11149 * i386.c (override_options, ix86_init_mmx_sse_builtins,
11150 ix86_expand_builtin): Likewise.
11151 * mips.c (mips_add_gc_roots): Likewise.
11152 * mmix.c (mmix_output_condition): Likewise.
11153 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
11154 altivec_init_builtins): Likewise.
11155 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
11156 * cppexp.c (Nsuff, parse_number): Likewise.
11157 * cppinit.c (builtin_array_end): Likewise.
11158 * gcc.c (n_default_compilers, process_command): Likewise.
11159 * genpreds.c (output_predicate_decls): Likewise.
11160 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
11161 * lcm.c (N_ENTITIES): Likewise.
11162 * stor-layout.c (set_sizetype): Likewise.
11164 2002-03-03 Richard Henderson <rth@redhat.com>
11166 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
11167 for types or labels.
11169 2002-03-03 Richard Henderson <rth@redhat.com>
11171 * c-decl.c (start_decl): Initialized variables are not common.
11173 2002-03-02 Per Bothner <per@bothner.com>
11175 * gcc.c (option_map): Suport new --bootclasspath option.
11176 --CLASSPATH is now just an alias for --classpath.
11178 2002-03-02 Richard Henderson <rth@redhat.com>
11180 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
11181 load if "internal" visibility.
11182 * doc/extend.texi: Document visibility meanings.
11184 2002-03-02 Richard Henderson <rth@redhat.com>
11186 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
11187 to functions as well.
11189 2002-03-02 Richard Henderson <rth@redhat.com>
11191 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
11192 (handle_visibility_attribute): Don't call assemble_visibility.
11193 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
11194 without asmspec. Invoke assemble_alias when needed.
11195 * varasm.c (maybe_assemble_visibility): New.
11196 (assemble_start_function, assemble_variable, assemble_alias): Use it.
11198 2002-03-02 Richard Henderson <rth@redhat.com>
11200 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
11201 invoke ENCODE_SECTION_INFO with first call flag.
11203 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
11204 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
11205 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
11206 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
11207 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
11208 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11209 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
11210 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
11211 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
11212 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
11213 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11214 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
11215 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
11216 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
11217 config/mcore/mcore-protos.h, config/mcore/mcore.c,
11218 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
11219 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
11220 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11221 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
11222 config/sh/sh.h, config/sparc/sparc.h,
11223 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
11224 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
11225 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
11226 FIRST argument. As needed, examine it and do nothing.
11228 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
11229 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11230 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
11232 * config/arm/t-pe (pe.o): Add dependencies.
11234 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11236 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
11237 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
11238 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
11239 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
11240 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
11241 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
11242 * defaults.h (BITS_PER_UNIT): Define.
11243 * doc/tm.texi (BITS_PER_UNIT): Document default value.
11245 2002-03-02 Kazu Hirata <kazu@hxi.com>
11247 * config/h8300/h8300-protos.h: Add a prototype for
11248 compute_a_shift_length.
11249 * config/h8300/h8300.c (h8300_asm_insn_count): New.
11250 (compute_a_shift_length): Likewise.
11251 (h8300_adjust_insn_length): Do not adjust insn length of shift
11253 * config/h8300/h8300.md (anonymous shift patterns): Use
11254 compute_a_shift_length.
11256 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11258 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
11259 trunc_int_for_mode.
11261 * emit-rtl.c (offset_address): Call update_temp_slot_address.
11263 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11265 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
11266 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
11267 * flags.h (flag_zero_initialized_in_bss): Declare.
11268 * toplev.c (flag_zero_initialized_in_bss): New flag.
11269 (lang_independent_options): Add flag_zero_initialized_in_bss.
11270 * tree.c (initializer_zerop): New function.
11271 * tree.h (initializer_zerop): Declare.
11272 * varasm.c (assemble_variable): If we can emit bss, put zero
11273 initializers in the bss section.
11275 2002-03-02 Alan Modra <amodra@bigpond.net.au>
11277 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
11278 like more than one symbol per .weak directive.
11280 2002-03-01 Richard Henderson <rth@redhat.com>
11282 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
11283 adjust argument_pointer by pretend_args_size.
11284 (ia64_va_start): Adjust va_start address by -pretend_args_size.
11286 2002-03-01 Kazu Hirata <kazu@hxi.com>
11288 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
11290 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
11292 * toplev.c (rest_of_compilation): Delete dead jumptables before
11294 * flow.c (delete_dead_jumptables): Make global.
11295 * rtl.h (delete_dead_jumptables): Declare.
11297 2002-03-01 David Edelsohn <edelsohn@gnu.org>
11299 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
11300 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
11301 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
11303 2002-03-01 Kazu Hirata <kazu@hxi.com>
11305 * config/h8300/h8300-protos.h: Fix formatting.
11306 * config/h8300/h8300.c: Likewise.
11307 * config/h8300/h8300.h: Likewise.
11309 2002-03-01 Kazu Hirata <kazu@hxi.com>
11311 * config/h8300/h8300.c (print_operand): Support 16-bit
11312 constant addresses.
11313 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
11315 2002-02-28 Richard Henderson <rth@redhat.com>
11317 * expmed.c (store_bit_field): Prevent generation of CONCATs;
11318 pun complex values as integers; use gen_lowpart instead of
11320 (extract_bit_field): Likewise.
11322 2002-03-01 Alan Modra <amodra@bigpond.net.au>
11323 David Edelsohn <edelsohn@gnu.org>
11325 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11326 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11327 (SUPPORTS_WEAK): Likewise.
11328 * output.h (add_weak): Add tree param.
11329 * varasm.c (add_weak): Likewise. Save decl.
11330 (struct weak_syms): Add decl field.
11331 (mark_weak_decls): New function.
11332 (init_varasm_once): ggc_add_root mark_weak_decls.
11333 (assemble_start_function): Use ASM_WEAKEN_DECL.
11334 (assemble_variable): Likewise.
11335 (assemble_alias): Likewise.
11336 (declare_weak): Pass decl to add_weak.
11337 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11338 (remove_from_pending_weak_list): Declare and define for
11340 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11341 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11342 * defaults.h (SUPPORTS_WEAK): Likewise.
11343 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11344 .weak for code sym. Do emit .size for descriptor sym.
11345 (ASM_DECLARE_FUNCTION_SIZE): Define.
11346 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11347 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
11348 .lglobl unless TARGET_XCOFF. Formatting fixes.
11349 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11350 .weak for code sym.
11351 (HANDLE_PRAGMA_WEAK): Remove.
11352 (ASM_WEAKEN_LABEL): Remove.
11353 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11355 2002-03-01 Jason Merrill <jason@redhat.com>
11357 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11358 (TARGET_EXPR_CLEANUP): New macro.
11360 2002-02-28 Steve Ellcey <sje@cup.hp.com>
11362 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11363 to take ptr_extend into account as third type of extension.
11364 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11365 fields used by SUBREG_PROMOTED_UNSIGNED_P.
11366 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11367 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11368 * calls.c (precompute_arguments): Use new macro.
11369 (expand_call): Ditto.
11370 * combine.c (nonzero_bits): Ditto.
11371 (record_promoted_value): Ditto.
11372 * expr.c (store_expr): Ditto.
11373 (expand_expr): Ditto.
11374 * function.c (assign_parms): Ditto.
11376 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
11378 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11379 override -shared and -shared-libgcc.
11381 2002-02-28 David O'Brien <obrien@FreeBSD.org>
11383 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11385 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
11388 2002-02-28 Richard Henderson <rth@redhat.com>
11390 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11391 4 cycle latency from MM producers.
11392 (ia64_internal_sched_reorder): Likewise with pipeline flush.
11394 2002-02-28 Jakub Jelinek <jakub@redhat.com>
11396 * mklibgcc.in: Don't use GNU make extension.
11398 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11400 * c-parse.in (STATIC): New terminal.
11401 (scspec): New non-terminal. Update productions accordingly.
11402 (program): Remove bogus ifc / end ifc.
11403 (array_declarator): Simplify production using STATIC.
11405 2002-02-28 Jim Meyering <meyering@lucent.com>
11407 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11408 \a still means TARGET_BELL.
11410 2002-02-28 Richard Henderson <rth@redhat.com>
11412 * haifa-sched.c (sched_emit_insn): New.
11413 (schedule_block): Use last_scheduled_insn to track last insn.
11414 * sched-int.h (sched_emit_insn): Prototype.
11415 * config/ia64/ia64.c (last_issued): Remove.
11416 (ia64_variable_issue): Don't set it.
11417 (nop_cycles_until): Use sched_emit_insn.
11419 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
11421 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11422 extended constants.
11424 2002-02-28 Kazu Hirata <kazu@hxi.com>
11426 * config/h8300/h8300.c: Fix formatting.
11427 * config/h8300/h8300.h: Likewise.
11429 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
11431 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11432 which may overwrite the high byte of the frame pointer.
11434 2002-02-28 Bo Thorsen <bo@suse.de>
11436 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11437 (STARTFILE_SPEC): Add 64 bit files.
11438 (ENDFILE_SPEC): Likewise.
11440 2002-02-28 Jason Merrill <jason@redhat.com>
11442 * c-decl.c (finish_function): Only warn about missing return
11443 statement with -Wreturn-type.
11445 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
11447 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11449 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11450 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11452 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
11454 * basic-block.h (BB_REACHABLE): Renumber.
11455 (BB_DIRTY, BB_NEW): New flags.
11456 (clear_bb_flags): Declare.
11457 (update_life_info_in_dirty_blocks): Declare.
11458 * cfg.c (clear_bb_flags): New function.
11459 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11460 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11461 reorder_insns, emit_insn_after): Mark block as dirty.
11462 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11463 (update_life_info_in_dirty_blocks): New function.
11464 * recog.c (apply_change_group): Dirtify block.
11466 * cse.c (cse_insn): Reorder emitting of jump insn to keep
11468 * gcse.c (delete_null_pointer_checks): Likewise.
11470 * toplev.c (dump_file_index): Move cse2 after bp,
11472 (dump_file_info): Similary.
11473 (rest_of_compilation): Avoid most of CFG rebuilds;
11474 do first if converision after null pointer checks, do cse2
11475 after branch prediction; avoid full liveness rebuild after
11476 initializing subregs.
11477 * invoke.texi (-d options): Document -du, renumber.
11479 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11480 (notice_new_block): Do not set BB_UPDATE_LIFE.
11481 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11482 merge_blocks_move_successor_nojumps, merge_blocks,
11483 try_crossjump_to_edge): Likewise.
11484 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11485 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11486 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11487 (merge_of_block): Do not use life_data_ok.
11488 (find_if_case_1): Do not use SET_UPDATE_LIFE.
11489 (if_convert): Use BB_DIRTY mechanizm to update life.
11490 * lcm.c (optimize_mode_switching): Update
11491 update_life_info_in_dirty_blocks
11493 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11495 * Makefile.in (integrate.o): Update.
11496 * c-decl.c (copy_lang_decl): Rename.
11497 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11498 * integrate.c: Include langhooks.h.
11499 (copy_decl_for_inlining): Update to use langhook.
11500 * langhooks-def.h (lhd_do_nothing_t,
11501 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11502 (LANG_HOOKS_INITIALIZER): Update.
11503 * langhooks.c (lhd_do_nothing_t): New.
11504 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11505 * tree.h (copy_lang_decl): Remove.
11507 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11509 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
11511 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11512 POST_DEC, and POST_MODIFY.
11514 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11516 * c-typeck.c (digest_init): Remove unused parameter; all
11519 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
11521 * expmed.c (expand_shift): Correctly test for low part of a
11524 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
11526 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11527 insn UIDs with insn addresses.
11529 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11531 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11532 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11533 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11534 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11535 gcc.c, toplev.c: Delete code implementing -traditional mode.
11537 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11538 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11539 Document removal of -traditional mode for compilation, and
11540 remove documentation only relevant to that mode.
11542 * config/nextstep.h, config/ptx4.h, config/svr4.h,
11543 config/convex/convex.h, config/d30v/d30v.h,
11544 config/i386/dgux.h, config/i386/osf1elf.h,
11545 config/i386/osfelf.h, config/i386/osfrose.h,
11546 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11547 config/m68k/hp310.h, config/m88k/dgux.h,
11548 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11549 config/m88k/m88k.h, config/m88k/openbsd.h,
11550 config/mips/abi64.h, config/mips/osfrose.h,
11551 config/mips/svr4-5.h, config/mips/svr4-t.h,
11552 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11553 config/stormy16/stormy16.h: Remove all references to
11554 -traditional from target specs. Delete all mention of the
11555 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
11556 delete a couple of commented-out definitions of
11557 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11560 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11561 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11563 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11565 * mklibgcc.in: Don't use \n in a line subject to
11566 interpretation by echo.
11568 2002-02-27 Graham Stott <grahams@redhat.com>
11570 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11573 * loop.c (prescan_loop): Handle PARALLEL.
11575 * unroll.c (loop_iterations): Return 0 if the add_val for
11578 * final.c (output_operand_lossage): Constify PFX_STR.
11580 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11582 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
11584 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11585 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11587 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
11589 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11591 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
11593 * cpplex.c (_cpp_lex_token): Handle directives in macro
11595 * cpplib.c (_cpp_handle_directive): Save and restore state
11596 if parsing macro args when entering a directive.
11597 * cppmacro.c (collect_args): No need to handle directives
11598 in macro arguments.
11599 (enter_macro_context, replace_args): Use the original macro
11600 definition in case it was redefined whilst collecting arguments.
11602 * cpp.texi: Update.
11604 2002-02-26 David Edelsohn <edelsohn@gnu.org>
11606 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11607 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11608 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11610 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11611 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11612 (load_toc_v4_PIC_2): Same.
11614 2002-02-26 Alan Modra <amodra@bigpond.net.au>
11616 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11618 2002-02-26 Richard Henderson <rth@redhat.com>
11620 * config/alpha/alpha.md (ashldi_se): Re-enable.
11622 2002-02-26 Richard Henderson <rth@redhat.com>
11624 * config/alpha/alpha.c (alpha_encode_section_info): Examine
11625 MODULE_LOCAL_P; improve commentary.
11627 2002-02-26 Zack Weinberg <zack@codesourcery.com>
11629 * doc/cpp.texi: Clarify documentation of relationship between
11630 #line and #include.
11632 2002-02-26 Kazu Hirata <kazu@hxi.com>
11634 * config/h8300/h8300-protos.h: Update the prototype for
11635 compute_logical_op_length. Add the prototype for
11636 compute_logical_op_cc.
11637 * config/h8300/h8300.c (compute_logical_op_length): Figure out
11638 code from operands.
11639 (compute_logical_op_cc): New.
11640 * config/h8300/h8300.md: Combine all the logical op patterns
11641 in HImode and SImode. Use compute_logical_op_cc.
11643 2002-02-26 Kelley Cook <kelleycook@comcast.net>
11645 * config/i386/i386.c (print_operand): Don't append ATT-style
11646 length suffixs to x87 opcodes when in Intel mode.
11648 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
11650 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11651 (init_emit_once): Update calls.
11652 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11653 (init_syntax_once): Prototype.
11655 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11657 * pa-linux.h (LIB_SPEC): Update definition.
11658 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11660 2002-02-26 Richard Henderson <rth@redhat.com>
11662 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11663 if we emitted a stop bit.
11665 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11667 * configure.in (libgcc_visibility): Substitute.
11668 * configure: Rebuilt.
11669 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11670 defined symbols .hidden.
11672 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11674 * attribs.c (c_common_attribute_table): Add visibility.
11675 (handle_visibility_attribute): New function.
11676 * varasm.c (assemble_visibility): New function.
11677 * output.h (assemble_visibility): Add prototype.
11678 * tree.h (MODULE_LOCAL_P): Define.
11679 * crtstuff.c (__dso_handle): Use visibility attribute.
11680 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11681 for MODULE_LOCAL_P symbols too.
11682 * config/ia64/ia64.c (ia64_encode_section_info): Handle
11683 MODULE_LOCAL_P symbols the same way as local symbols.
11684 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11685 into .sdata/.sbss by the user.
11686 * doc/extend.texi (Function Attributes): Document visibility
11689 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11692 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11693 STRING_CST initializer spanning the whole variable without
11695 If expand_expr returned MEM, don't use it.
11697 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
11699 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11700 generate a die for the lexical block.
11702 2002-02-26 Kazu Hirata <kazu@hxi.com>
11704 * config/h8300/h8300-protos.h: Add a prototype for
11705 compute_logical_op_length.
11706 * config/h8300/h8300.c (compute_logical_op_length): New.
11707 * config/h8300/h8300.md (anonymous logical patterns): Use
11708 compute_logical_op_length for length.
11710 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11712 * dwarf2out.c (modified_type_die): Do not call type_main_variant
11714 (gen_type_die): Same.
11716 * attribs.c (handle_vector_size_attribute): Set debug information.
11718 2002-02-26 Daniel Egger <degger@fhm.edu>
11720 * config/rs6000/rs6000.md: Swap define_insn attributes to
11721 fix incorrect generation of merge high instructions instead
11724 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11726 * c-typeck.c (really_start_incremental_init): Use
11727 bitsize_zero_node for vectors.
11729 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11731 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11732 ("*set_vrsave_internal"): Same.
11734 2002-02-25 Richard Henderson <rth@redhat.com>
11736 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11737 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
11739 2002-02-25 Jakub Jelinek <jakub@redhat.com>
11742 * config/i386/i386.c (ix86_return_pops_args): Only pop
11743 fake structure return argument if it was passed on the stack.
11745 2002-02-25 Jason Merrill <jason@redhat.com>
11747 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11750 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11752 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11753 link with shared_name only.
11754 * doc/invoke.texi (Link Options): Document new behavior.
11756 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11758 * c-typeck.c (push_init_level): Handle vectors.
11760 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11762 * config/sparc/sparc.c (const64_high_operand): Zero-extend
11763 operands of SPARC_SETHI_P.
11764 (input_operand): Likewise.
11765 (sparc_emit_set_const32): Likewise.
11766 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11767 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11768 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
11769 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11770 (movdi_insn_sp64_vis): Likewise.
11771 (movdi split, movdf split): Use SETHI32.
11772 * doc/md.texi: Document SPARC constraints L, M and N.
11774 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11776 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11777 ("*set_vrsave_internal"): use mfspr for Darwin.
11779 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11780 gen_get_vrsave_internal.
11782 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11784 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11786 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
11788 * cpplex.c (cpp_interpret_charconst): Get signedness or
11789 otherwise of wide character constants correct.
11790 * cppexp.c (lex): Get signedness of wide charconsts correct.
11792 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11794 * optabs.c (widen_operand): Only call convert_modes for
11795 promoted SUBREG if signedness matches.
11796 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11798 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11800 * cpplib.c (glue_header_name): Use local buffer to build up
11803 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11805 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11807 2002-02-23 Kazu Hirata <kazu@hxi.com>
11809 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11810 H8/300[HS] separately.
11811 * config/h8300/h8300.md: Remove the early clobber constraint
11812 from bit field patterns.
11814 2002-02-23 Kazu Hirata <kazu@hxi.com>
11816 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11818 (mulhisi3): Likewise.
11819 (umulqisi3): Likewise.
11820 (umulhisi3): Likewise.
11822 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11824 * cppinit.c (output_deps): Correct test for stdout output.
11825 (init_dependency_output): Cure warning.
11827 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11829 * expr.c (store_expr): When converting expression to promoted
11830 equivalent type, allow using SUBREG_REG of TARGET as the target
11831 of the expansion of EXP.
11832 * loop.c (basic_induction_var, case SUBREG): Always look inside.
11833 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11834 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11835 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11836 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11838 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
11840 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11841 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11842 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11844 2002-02-23 Jakub Jelinek <jakub@redhat.com>
11846 PR optimization/5747
11847 * loop.c (scan_loop): Update reg info if move_movables created new
11850 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11852 * gcc.c (init_gcc_spec): Revert last change.
11854 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11856 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11857 gpc_reg_operand constraint.
11859 2002-02-23 Alan Modra <amodra@bigpond.net.au>
11861 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11862 Simplify comparison of `low'.
11863 (add_operand): Fix formatting.
11864 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11865 (mask_operand): Disallow mask to wrap in 64-bit mode.
11866 (rs6000_stack_info): Remove redundant test setting push_p.
11867 (output_toc): Fix formatting.
11868 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11869 cc_reg_not_cr0_operand constraint.
11870 (booldi3, boolcdi3 splitters): Same.
11872 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
11874 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11876 2002-02-22 David Edelsohn <edelsohn@gnu.org>
11878 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11879 gcc invoked with -shared-libgcc.
11881 2002-02-22 Jakub Jelinek <jakub@redhat.com>
11884 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11885 decl if any of elements was TREE_USED.
11887 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
11889 * config/sparc/sol2.h: Don't include sys/mman.h.
11890 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11891 (arith_4096_operand): Don't throw high bits away.
11892 (const64_operand): Take sign extension of CONST_INTs into account.
11893 (const64_high_operand, sparc_emit_set_const32): Likewise.
11894 (GEN_HIGHINT64): Likewise.
11895 (sparc_emit_set_const64_quick1): Likewise.
11896 (const64_is_2insns): Likewise.
11897 (print_operand): Use trunc_int_for_mode for sign extension.
11898 * config/sparc/sparc.h (SMALL_INT32): Likewise.
11899 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11900 chars. Assume CONST_INT is already properly sign-extended.
11901 (movdi split): Sign-extend each SImode part.
11902 (andsi3 split): Don't mask high bits off, so that result
11903 remains properly sign-extend.
11904 (iorsi3 split): Likewise.
11905 (xorsi3 split): Likewise.
11907 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
11909 * fold-const.c (fold): Fix typo in comments.
11911 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11913 * Makefile.in (langhooks.o): Update dependencies.
11915 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11917 * langhooks.c: Include flags.h.
11919 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
11921 * testsuite/gcc.dg/attr-alwaysinline.c: New.
11923 * c-common.c (c_common_post_options): Set inline trees by
11926 * doc/extend.texi (Function Attributes): Document always_inline
11928 Update documentation about inlining when not optimizing.
11930 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11932 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11933 unless DECL_ALWAYS_INLINE.
11935 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11936 unless DECL_ALWAYS_INLINE.
11937 (c_disregard_inline_limits): Disregard if always_inline set.
11939 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11940 Disregard if always_inline set.
11941 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11942 unless DECL_ALWAYS_INLINE.
11944 * attribs.c (handle_always_inline_attribute): New.
11945 (c_common_attribute_table): Add always_inline.
11947 * config/rs6000/altivec.h: Add prototypes for builtins
11948 requiring the always_inline attribute.
11950 2002-02-21 Eric Christopher <echristo@redhat.com>
11952 * expmed.c (store_bit_field): Try to simplify the subreg
11953 before generating a new one when when the mode size of
11954 value is less than maxmode.
11956 2002-02-21 Richard Henderson <rth@redhat.com>
11958 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11959 than gen_rtx_PLUS to form the sum.
11960 * explow.c (force_reg): Rearrange to not allocate new pseudo
11961 when force_operand returns a register.
11962 * expr.c (expand_assignment): Allow offset_rtx expansion to
11963 return a sum. Do not force addresses into registers.
11964 (expand_expr): Likewise.
11965 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11966 to canonicalize arithmetic that didn't simpify.
11967 (simplify_plus_minus): New argument force; update
11968 all callers. Don't split CONST unless we can do something with it,
11969 and wouldn't lose the constness of the operands.
11971 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11972 that we generated earlier.
11974 2002-02-21 Tom Tromey <tromey@redhat.com>
11976 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11977 (output_line_info): Use constant `1', with a long explanatory
11979 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11981 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11983 * jump.c (redirect_jump): If old label has no UID, don't try to
11986 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11988 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11989 If input is constant, do shifts at compile time.
11991 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11993 * doc/extend.texi: Fix some more overfull hboxes.
11995 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11997 PR optimization/4994
11998 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
12001 2002-02-21 Jakub Jelinek <jakub@redhat.com>
12004 * expr.h (expand_and): Add mode argument.
12005 * expmed.c (expand_and): Add mode argument.
12006 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
12007 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
12008 * except.c (expand_builtin_extract_return_addr): Likewise.
12009 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
12010 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
12011 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
12012 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
12013 * config/c4x/c4x.md: Use GEN_INT (x) instead of
12014 gen_rtx (CONST_INT, VOIDmode, x).
12016 2002-02-21 Jakub Jelinek <jakub@redhat.com>
12019 * stmt.c (warn_if_unused_value): Move side effects test once more.
12021 2002-02-20 Torbjorn Granlund <tege@swox.com>
12023 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
12024 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
12026 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
12028 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
12029 SUBREG or ZERO_EXTEND.
12031 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
12033 * sh.h (current_function_anonymous_args): Remove.
12034 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
12035 of current_function_varargs and current_function_stdarg is set.
12036 * sh.c (sh_expand_prologue): Check current_function_varargs /
12037 current_function_stdarg / TARGET_SH5 instead of
12038 current_function_anonymous_args.
12040 * sh64.h (TARGET_VERSION): Define.
12042 2002-02-20 David Edelsohn <edelsohn@gnu.org>
12044 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
12045 VRSAVE_REGNO on TARGET_ALTIVEC.
12047 2002-02-20 Alan Modra <amodra@bigpond.net.au>
12049 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
12050 bits of SImode const_int.
12051 (includes_rshift_p): Likewise.
12052 (print_operand): Call mask_operand and mask64_operand with correct
12054 (rs6000_output_function_epilogue): Pad traceback table to word.
12055 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
12056 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
12057 mask64_operand with correct mode.
12058 (FUNCTION_ARG_REGNO_P): Correct parentheses.
12060 2002-02-20 Jakub Jelinek <jakub@redhat.com>
12063 * varasm.c (get_pool_constant_mark): New.
12064 * rtl.h (get_pool_constant_mark): Add prototype.
12065 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
12066 be represented if it has not been output.
12068 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
12070 * combine.c (do_SUBST): Sanity check substitutions of
12071 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
12072 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
12073 CONST_INT into its operand.
12074 (known_cond): Likewise, for ZERO_EXTEND.
12075 * simplify-rtx.c (simplify_unary_operation): Fix condition to
12076 allow for simplification of wide modes. Reject CONST_INTs in
12077 ZERO_EXTEND when their actual mode is not given.
12079 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
12081 * c-decl.c (pushdecl): If no global declaration is found for an
12082 extern declaration in block scope, try a limbo one.
12084 2002-02-20 Jakub Jelinek <jakub@redhat.com>
12087 * c-common.c (pointer_int_sum): Moved from...
12088 * c-typeck.c (pointer_int_sum): ...here.
12089 * c-common.h (pointer_int_sum): Add prototype.
12091 2002-02-20 Jakub Jelinek <jakub@redhat.com>
12094 * c-decl.c (duplicate_decls): Return 0 if issued error about
12097 2002-02-20 Roger Sayle <roger@eyesopen.com>
12098 Jakub Jelinek <jakub@redhat.com>
12101 * tree.c (host_integerp): Ensure that the constant integer is
12102 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
12103 when pos is zero or non-zero respectively. Clarify comment.
12104 * c-format.c (check_format_info_recurse): Fix host_integerp
12105 usage; the pos argument should be zero when assigning to a
12106 signed HOST_WIDE_INT.
12108 2002-02-20 Richard Henderson <rth@redhat.com>
12110 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
12111 of the operand, rather than assuming TImode.
12112 (ix86_expand_binop_builtin): Cope with commutative patterns
12113 using nonimmediate_operand for both operands.
12114 (ix86_expand_timode_binop_builtin): Likewise.
12115 (ix86_expand_store_builtin): Validate operand 1.
12116 (ix86_expand_unop1_builtin): Likewise.
12118 2002-02-20 Philip Blundell <philb@gnu.org>
12121 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
12123 2002-02-20 Richard Henderson <rth@redhat.com>
12126 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
12128 2002-02-20 Tom Tromey <tromey@redhat.com>
12130 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12131 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12132 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12133 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12134 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
12137 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
12139 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
12140 for (const_int 0) in X not just INTVAL.
12142 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
12144 * doc/extend.texi: Avoid or reduce overfull hboxes.
12146 2002-02-20 Diego Novillo <dnovillo@redhat.com>
12148 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
12149 operations if the field does not start at a mode boundary.
12151 2001-02-20 Joel Sherrill <joel@OARcorp.com>
12153 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
12154 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
12155 Also done for -Acpu and -Amachine.
12157 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
12159 * cppinit.c (init_dependency_output): Take deps output file
12160 from -o if none given with -MF. Suppress normal output.
12161 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
12162 * doc/cpp.texi, doc/invoke.texi: Update.
12164 2002-02-19 Zack Weinberg <zack@codesourcery.com>
12166 * toplev.c (output_quoted_string): Write unprintable
12167 characters with octal escapes.
12169 2002-02-19 David Edelsohn <edelsohn@gnu.org>
12171 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
12172 really_call_used[VRSAVE_REGNO] if not Altivec.
12174 2002-02-19 Alan Modra <amodra@bigpond.net.au>
12176 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
12178 (constant_pool_expr_1): Fix formatting.
12179 (rs6000_legitimize_reload_address): Likewise.
12181 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12183 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
12184 now that we have one.
12186 2002-02-19 Zack Weinberg <zack@codesourcery.com>
12188 * tree.h (struct tree_common): Remove aux. Add unused_0 at
12189 end of first block of bitfields (which was only seven bits);
12190 rename dummy to unused_1; remove comment which is no longer true.
12192 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
12194 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
12196 2002-02-19 Philip Blundell <pb@nexus.co.uk>
12199 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
12203 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
12204 arm_is_longcall_p rather than inspecting call-type cookie
12206 (call_value_insn) [TARGET_THUMB]: Likewise.
12208 2002-02-19 Graham Stott <grahams@redhat.com>
12210 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
12212 2002-02-19 David Edelsohn <edelsohn@gnu.org>
12214 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
12215 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
12216 (FP_SAVE_INLINE): Delete.
12218 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
12219 * config/rs6000/eabi.asm: Remove ABI save restore routines.
12220 * config/rs6000/t-ppccomm: Build crtsavres.o.
12221 * config/rs6000/crtsavres.asm: New file.
12223 2002-02-19 Philip Blundell <philb@gnu.org>
12225 * config/arm/arm.c (use_return_insn): Don't reject interrupt
12227 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
12228 (output_return_instruction): Allow interrupt functions to return with
12229 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
12230 (arm_expand_prologue): Subtract 4 before stacking LR in an
12231 interrupt function.
12233 2002-02-19 Philip Blundell <pb@nexus.co.uk>
12235 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
12236 decl, not just FUNCTION_DECL.
12237 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
12238 (arm_assemble_integer): Likewise.
12239 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
12242 2002-02-19 matthew green <mrg@eterna.com.au>
12244 * config.gcc (sparc-*-netbsdelf*): Enable target.
12245 (sparc64-*-netbsd*): New target.
12246 * config/sparc/netbsd-elf.h: New file.
12247 * config/sparc/t-netbsd64: New file.
12249 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
12251 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
12253 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
12255 * doc/invoke.texi: explicitly list the style guidelines that
12256 -Weffc++ checks for.
12258 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
12260 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
12262 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
12265 * gcc.c (cpp_unique_options): Treat -o as indicating object file
12266 only if not -E. If -E, pass -o through to the preprocessor.
12268 2002-02-19 Kazu Hirata <kazu@hxi.com>
12270 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
12271 register number with an appropriate macro.
12273 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12275 * doc/rtl.texi (Constants): Close @code tag.
12277 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
12279 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
12280 ("mmx_uavgv4hi3"): Same.
12281 ("pmulhrwv4hi3"): Same.
12283 * tree-inline.c (walk_tree): Handle vectors.
12285 * c-common.c (constant_expression_warning): Handle vectors.
12286 (overflow_warning): Same.
12288 * sched-deps.c (sched_analyze_2): Handle vectors.
12290 * rtlanal.c (rtx_unstable_p): Handle vectors.
12291 (rtx_varies_p): Same.
12292 (count_occurrences): Same.
12293 (regs_set_between_p): Same.
12294 (modified_between_p): Same.
12295 (modified_in_p): Same.
12296 (volatile_insn_p): Same.
12297 (volatile_refs_p): Same.
12298 (side_effects_p): Same.
12299 (may_trap_p): Same.
12300 (inequality_comparisons_p): Same.
12301 (replace_regs): Same.
12302 (computed_jump_p_1): Same.
12304 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
12306 (inner_mode_array): New.
12307 (copy_rtx): Handle vectors.
12308 (copy_most_rtx): Same.
12309 (rtx_equal_p): Same.
12310 (get_mode_alignment): Adjust for vectors.
12312 * resource.c (mark_referenced_resources): Handle vectors.
12313 (mark_set_resources): Same.
12315 * reload1.c (eliminate_regs): Handle vectors.
12316 (elimination_effects): Same.
12317 (scan_paradoxical_subregs): Same.
12319 * reload.c (subst_reg_equivs): Handle vectors.
12321 * regrename.c (scan_rtx): Handle vectors.
12323 * regclass.c (reg_scan_mark_refs): Handle vectors.
12325 * recog.c (find_single_use_1): Handle vectors.
12327 * local-alloc.c (equiv_init_varies_p): Handle vectors.
12328 (contains_replace_regs): Same.
12329 (memref_referenced_p): Same.
12331 * integrate.c (copy_rtx_and_substitute): Handle vectors.
12332 (subst_constants): Same.
12334 * genattrtab.c (attr_copy_rtx): Handle vectors.
12335 (encode_units_mask): Same.
12336 (clear_struct_flag): Same.
12337 (count_sub_rtxs): Same.
12339 * gcse.c (want_to_gcse_p): Handle vectors.
12340 (oprs_unchanged_p): Same.
12341 (hash_expr_1): Same.
12342 (oprs_not_set_p): Same.
12343 (expr_killed_p): Same.
12344 (compute_transp): Same.
12345 (store_ops_ok): Same.
12347 * function.c (purge_addressof_1): Do not allow paradoxical subregs
12349 (fixup_var_refs_1): Same.
12350 (instantiate_virtual_regs_1): Same.
12352 * fold-const.c (operand_equal_p): Handle vectors.
12354 (rtl_expr_nonnegative_p): Same.
12356 * flow.c (mark_used_regs): Handle vectors.
12358 * df.c (df_uses_record): Handle vectors.
12360 * cselib.c (cselib_subst_to_values): Handle vectors.
12361 (cselib_mem_conflict_p): Same.
12364 * cse.c (canon_reg): Handle vectors.
12366 (cse_process_notes): Same.
12367 (count_reg_usage): Same.
12368 (canon_hash): Same.
12370 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12372 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12374 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12375 (gen_rtx): Handle CONST_VECTOR.
12376 (gen_const_vector_0): New.
12377 (copy_rtx_if_shared): CONST_VECTORs can be shared.
12378 (reset_used_flags): Same.
12379 (copy_insn_1): Same.
12380 (initializer_constant_valid_p): Handle VECTOR_CST.
12382 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12384 * doc/rtl.texi (Constants): Document const_vector.
12385 (CONST0_RTX): Update for vectors.
12386 (RTL sharing): Same.
12388 * print-tree.c (print_node): Add case for VECTOR_CST.
12390 * tree.h (TREE_VECTOR_CST_ELTS): New.
12391 (struct tree_vector): New.
12392 (union tree_node): Add vector node.
12393 (build_vector): Add prototype.
12395 * tree.def (VECTOR_CST): New.
12397 * tree.c (build_vector): New.
12399 * expmed.c (make_tree): Handle CONST_VECTOR.
12401 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12402 (CONST_VECTOR_ELT): New.
12403 (CONST_VECTOR_NUNITS): New.
12405 * machmode.h (GET_MODE_INNER): New.
12406 (DEF_MACHMODE): Accept 8th arg.
12408 * machmode.def: Add 8th argument for vector inner mode.
12409 Add inner vector modes for vectors.
12411 * rtl.def (VEC_CONST): Remove.
12412 (CONST_VECTOR): New.
12414 * expr.c (clear_storage): Allow vectors.
12415 (is_zeros_p): Handle VECTOR_CST.
12417 * varasm.c (output_constant_pool): Handle vectors.
12418 (rtx_const): Add veclo and vechi fields.
12419 (kind): Add RTX_VECTOR.
12420 (decode_rtx_const): Add case for vector.
12422 * config/rs6000/rs6000-protos.h: Add zero_constant.
12424 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12425 constants. Force easy vector constants into memory.
12426 (easy_vector_constant): New.
12427 (emit_easy_vector_constant): New.
12428 (rs6000_legitimize_reload_address): Do not generate bad reloads on
12431 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12433 ("altivec_lvxl"): Same.
12434 (altivec_lvebx): Same.
12435 (altivec_lvehx): Same.
12436 (altivec_lvewx): Same.
12437 ("*movv4si_const0"): New.
12438 ("*movv4sf_const0"): New.
12439 ("*movv8hi_const0"): New.
12440 ("*movv16qi_const0"): New.
12442 2002-02-18 Kazu Hirata <kazu@hxi.com>
12444 * config/h8300/h8300.c (notice_update_cc): Use
12447 2002-02-18 Kazu Hirata <kazu@hxi.com>
12449 * config/h8300/h8300.md (divmod patterns): Change the
12450 constraints for operands[1] to register_operand.
12452 2002-02-18 Kazu Hirata <kazu@hxi.com>
12454 * config/h8300/h8300-protos.h: Remove the prototype for
12456 * config/h8300/h8300.c (p_operand): Remove.
12457 * config/h8300/h8300.md: Replace p_operand with
12460 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12462 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12464 (output_return_instruction): Allow use of LDR to unstack
12465 return addresss even for interrupt handlers or when
12466 interworking. If compiling for ARMv5, use interworking-safe
12467 return instructions by default. Remove duplicated code and
12468 lengthy "strcat" sequences.
12470 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12472 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12473 (LINK_EH_SPEC): Define.
12474 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12476 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
12478 * config/s390/s390.c (s390_emit_prologue): Do not set the
12479 frame_related flag for call-clobbered registers.
12481 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
12483 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12484 (construct_container): Fix handling of SSE operands.
12485 (ix86_expand_builtin): Fix handling of 64bit pointers.
12486 (mmx_maskmovq_rex): New pattern.
12488 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
12490 * regrename.c (kill_set_value): Handle subregs properly.
12492 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
12494 * objc/objc-act.c (handle_impent): Remove leading '*'
12495 from objc_class_name.
12497 2002-02-17 Richard Henderson <rth@redhat.com>
12499 * config/alpha/alpha.c (some_small_symbolic_operand,
12500 some_small_symbolic_operand_1, split_small_symbolic_operand,
12501 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12502 Handle small SYMBOL_REFs anywhere, not just inside memories.
12503 * config/alpha/alpha-protos.h: Update.
12504 * config/alpha/alpha.h (PREDICATE_CODES): Update.
12505 * config/alpha/alpha.md (small symbolic operand splitter): Update.
12507 2002-02-17 Roland McGrath <roland@frob.com>
12509 * config.gcc (powerpc-*-gnu-gnualtivec*,
12510 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12511 * config/rs6000/gnu.h: New file.
12512 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12513 Grok "gnu" in rs6000_abi_name.
12514 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12515 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12516 Grok -mcall-gnu analogous to -mcall-linux et al.
12517 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12518 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12519 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12521 2002-02-17 Jakub Jelinek <jakub@redhat.com>
12524 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12527 2002-02-17 Philipp Thomas <pthomas@suse.de>
12529 * config/cris/cris.h: Undefine STARTFILE_SPEC and
12530 ENDFILE_SPEC before (re)defining them.
12532 2002-02-17 Kazu Hirata <kazu@hxi.com>
12534 * config/h8300/h8300.c: Fix formatting.
12535 * config/h8300/h8300.h: Likewise.
12537 2002-02-17 Philipp Thomas <pthomas@suse.de>
12539 * doc/tm.texi: Explain why empty strings should not be
12540 marked for translation.
12542 2002-02-17 Philipp Thomas <pthomas@suse.de>
12544 * final.c (output_operand_lossage): Changed to accept
12545 printf style arguments. Change calls where necessary.
12546 * output.h (output_operand_lossage): Change declaration
12547 accordingly. Update copyright.
12548 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12549 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12550 Update copyright date where necessary.
12552 * config/i386/i386.c (print_operand): Likewise. Remove use of
12555 * config/cris/cris.c (cris_operand_lossage): Likewise.
12556 Rename parameter so that exgettext recognizes it as
12557 translatable message.
12558 (LOSE_AND_RETURN): Rename parameter to msgid.
12560 2002-02-17 Kazu Hirata <kazu@hxi.com>
12562 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12563 hard coded register number with an appropriate macro.
12564 (HARD_REGNO_MODE_OK): Likewise.
12565 (ARG_POINTER_REGNUM): Likewise.
12566 (STATIC_CHAIN_REGNUM): Likewise.
12567 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12568 * config/h8300/h8300.md (define_constants): Define more
12571 2002-02-17 Philipp Thomas <pthomas@suse.de>
12573 * config/i386/i386.h: Don't mark empty strings for translation.
12575 2002-02-16 H.J. Lu <hjl@gnu.org>
12577 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12579 2002-02-16 Zack Weinberg <zack@codesourcery.com>
12581 * cppinit.c (merge_include_chains): Check for brack being
12582 NULL before attempting to merge it with qtail.
12584 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12586 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12589 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12591 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12593 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12595 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12596 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12597 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12599 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12601 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12602 now only if !TARGET_FIX.
12603 (*movsi_nt_vms_fix): New pattern.
12605 2002-02-16 Douglas B Rupp <rupp@gnat.com>
12607 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12608 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12609 (alpha_sa_mask, alpha_sa_size): Reflect above change.
12610 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12611 (alpha_start_function, alpha_expand_epilogue): Likewise.
12612 (unicosmk_gen_dsib): Likewise.
12614 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12616 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12618 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
12620 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12621 check_and_change_labels, s390_final_chunkify): Delete.
12622 (s390_split_branches, s390_chunkify_pool): New functions.
12623 (s390_function_prologue): Call them.
12625 * config/s390/s390.h (S390_REL_MAX): Delete.
12626 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12628 * config/s390/s390.md (cjump, icjump, jump): Fix length
12629 attribute calculation.
12632 2002-02-15 David Edelsohn <edelsohn@gnu.org>
12634 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12635 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12637 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12639 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12640 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12641 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12643 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12645 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12647 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12649 * reload.c (find_dummy_reload): Check that an output register
12650 is valid for its mode.
12652 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
12654 * combine.c (known_cond): After replacing the REG of a SUBREG, try
12657 * function.c (assign_parms): Demote promoted argument passed by
12658 transparent reference.
12660 2001-02-14 Joel Sherrill <joel@OARcorp.com>
12662 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12663 -Acpu() and -Amachine() to eliminate warnings.
12665 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
12667 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12669 2002-02-14 Kazu Hirata <kazu@hxi.com>
12671 * config/h8300/h8300-protos.h: Update the prototype for
12673 * config/h8300/h8300.c (const_costs): Treat SET as a little
12674 more expensive operation.
12675 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12676 reference to const_costs.
12678 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
12680 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12682 2002-02-14 Jakub Jelinek <jakub@redhat.com>
12685 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12686 use arguments from newtype.
12688 2002-02-13 Eric Christopher <echristo@redhat.com>
12690 * config/mips/mips.c (override_options): Add check for march/mipsX
12691 on the same command line. Fix error message in cpu processing.
12692 Remove architecture and ISA checks.
12694 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12696 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12698 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12700 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12702 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12704 ("*movv8hi_internal1"): Same.
12705 ("*movv16qi_internal1"): Same.
12706 ("*movv4sf_internal1"): Same.
12708 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12709 not push_reload for altivec modes.
12711 2002-02-13 Joel Sherrill <joel@OARcorp.com>
12713 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12714 all RTEMS targets including removal of #includes from config/*/rtems*.h
12715 file and adding them to tm_file setting. Added xm_defines=POSIX to
12717 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12718 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12719 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12720 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12721 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12722 config/m68k/rtemself.h: Ditto.
12723 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12724 config/mips/rtems64.h: Ditto.
12725 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12726 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12728 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12729 config/sparc/rtemself.h: Ditto.
12730 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12731 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12732 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12734 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12735 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12736 target made more similar to i386-elf.
12737 * config/i386/t-rtems-i386: Added soft float support and multilibs.
12738 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12739 be similar to config/m68k/t-m68kelf.
12740 * gthr-rtems.h: Encapsulate with extern "C" for C++.
12742 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
12744 * regmove.c (kill_value): Handle subregs.
12746 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
12748 * i386.md (mul patterns): Allow memory operand to be first;
12749 add expanders where needed; fix constraints.
12750 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12751 Allow memory operand to be the first.
12753 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12756 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12759 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12762 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12764 PR optimization/5547:
12765 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12766 all valid IA-32 address modes involving non-scaled %ebx and
12767 GOT/GOTOFF as displacement.
12769 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
12771 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12772 after emitting ltorg insns.
12774 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12775 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12776 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12777 *abssf2): Fix "op_type" attribute.
12779 2002-02-13 Douglas B Rupp <rupp@gnat.com>
12781 * mkconfig.sh: Avoid using a subshell redirect.
12782 ($output.T): Change to $(output)T.
12783 (ENABLE_NLS): Remove unneeded undef.
12785 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12786 * config/alpha/x-vms (libsubdir): Define.
12788 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12789 register frame procedures. Optimize retrieving context.
12791 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12792 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12793 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12795 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12797 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12798 Make same change as for find_base_value.
12800 2002-02-13 Kazu Hirata <kazu@hxi.com>
12802 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12803 of QImode and SImode.
12805 2002-02-13 Kazu Hirata <kazu@hxi.com>
12807 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12808 length computation of movsi.
12809 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12811 2002-02-13 Kazu Hirata <kazu@hxi.com>
12813 * config/h8300/h8300.md (subqi3): Tighten the predicate for
12814 operands[2] to register_operand.
12816 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
12818 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12820 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
12822 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12823 for altivec_lvx* and altivec_stvx*.
12824 ("*movv4si_internal"): Add constraint for loading from GPRs.
12825 ("*movv8hi_internal1"): Same.
12826 ("*movv16qi_internal1"): Same.
12827 ("*movv4sf_internal1"): Same.
12829 * config/rs6000/rs6000.c (altivec_register_operand): New.
12831 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12832 altivec_register_operand.
12834 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
12836 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12839 2002-02-13 Stan Shebs <shebs@apple.com>
12841 * c-typeck.c (digest_init): Handle vectors.
12842 (really_start_incremental_init): Same.
12843 (pop_init_level): Same.
12844 (process_init_element): Same.
12846 * varasm.c (output_constant): Same.
12848 * expr.c (clear_storage): Same.
12849 (store_constructor): Same.
12851 2002-02-12 Eric Christopher <echristo@redhat.com>
12853 * explow.c (hard_function_value): Add comment explaining
12854 signed/unsigned comparison.
12856 2002-02-12 Jakub Jelinek <jakub@redhat.com>
12858 * jump.c (never_reached_warning): Add finish argument.
12859 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12860 real insn after end.
12861 * rtl.h (never_reached_warning): Adjust prototype.
12862 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12863 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12864 never_reached_warning.
12866 2002-02-12 Graham Stott <grahams@redhat.com>
12868 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12870 2002-02-12 Kazu Hirata <kazu@hxi.com>
12872 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12873 logical shifts on H8/300.
12874 (shift_alg_si): Improve several shifts on H8/300.
12875 (get_shift_alg): Likewise.
12877 2002-02-12 Graham Stott <grahams@redhat.com>
12879 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12881 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12883 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12884 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12886 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
12888 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12889 non-CONST_INT through default_assemble_integer.
12890 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12891 <case 8>: Abort for CONST_DOUBLE.
12893 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12895 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12897 * config/pa/pa-linux.h (LIB_SPEC): Delete.
12898 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12900 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
12902 * config/stormy16/stormy16.md (zero_extendqihi2): New.
12904 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
12906 * regrename.c (regrename_optimize): Don't accept a
12907 part-clobbered register if the replaced register is not part
12910 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12911 take padding into account when computing the argument value.
12913 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12915 * combine.c (try_combine): Apply substitutions in
12916 CALL_INSN_FUNCTION_USAGE too.
12918 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
12920 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12921 __builtin_altivec_abs*.
12924 * config/rs6000/rs6000.h (rs6000_builtins): Add
12925 ALTIVEC_BUILTIN_ABS*.
12927 * config/rs6000/altivec.h: Use const char for builtins expecting
12929 (vec_abs): New versions for C and C++.
12932 2002-02-10 Kazu Hirata <kazu@hxi.com>
12934 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12937 2002-02-10 Kazu Hirata <kazu@hxi.com>
12939 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12940 constant definition from h8300.md.
12941 (FRAME_POINTER_REGNUM): Likewise.
12942 * config/h8300/h8300.md (define_constants): Add FP_REG.
12944 2002-02-10 Kazu Hirata <kazu@hxi.com>
12946 * config/h8300/h8300.c (print_operand): Remove redundant code.
12948 2002-02-10 Kazu Hirata <kazu@hxi.com>
12950 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12951 * config/h8300/h8300.c (byte_reg): Make it static.
12953 2002-02-10 Richard Henderson <rth@redhat.com>
12956 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12958 2002-02-10 Richard Henderson <rth@redhat.com>
12961 * tree.c (append_random_chars): Don't abort if main_input_filename
12964 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12966 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12968 2002-02-10 Kazu Hirata <kazu@hxi.com>
12970 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12971 (pushhi1): Likewise.
12973 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12975 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12976 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12978 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12980 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12982 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12984 2002-02-09 Kazu Hirata <kazu@hxi.com>
12986 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12987 a half of an SImode register on H8/300.
12989 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12991 * i386.md (movdi_2): Add missing '!'.
12993 2002-02-09 Kazu Hirata <kazu@hxi.com>
12995 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12998 2002-02-09 Kazu Hirata <kazu@hxi.com>
13000 * config/h8300/h8300.md (length): Correct the distance valid
13001 for the short branch.
13003 2002-02-09 Kazu Hirata <kazu@hxi.com>
13005 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
13007 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
13009 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
13010 registers in SImode.
13011 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
13014 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
13017 Contribute sh64-elf.
13018 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
13019 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
13020 (sh_cannot_modify_jumps_p): New function.
13021 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
13022 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
13023 (sh_ms_bitfield_layout_p): New function.
13024 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
13025 Zack Weinberg <zack@codesourcery.com>
13026 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
13027 expand_simple_binop instead of expand_binop.
13028 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
13029 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
13030 use of .quad and .uaquad.
13031 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
13032 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
13033 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13034 * config/sh/sh.md (movdi_const, movdi_const_32bit,
13035 movdi_const_16bit): Make sure all CONSTs have modes.
13036 (sym2PIC): Ditto, but by adjusting all callers.
13037 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
13038 if the prologue calls the SHmedia argument decoder or register
13040 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13041 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
13042 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
13043 (sh_expand_epilogue): Don't emit USE of return target register.
13044 (prepare_move_operands): Legitimize DImode PIC addresses.
13045 (sh_media_register_for_return): Skip tr0, used to initialize the
13047 (sh_expand_prologue): Remove explicit USE of return register.
13048 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
13049 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
13050 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
13051 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
13052 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
13053 EXTRA_CONSTRAINT_T.
13054 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
13055 (MOVI_SHORI_BASE_OPERAND_P): New.
13056 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
13057 (EXTRA_CONSTRAINT_T): Define in terms of them.
13058 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
13059 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
13060 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
13061 alternatives supporting TARGET_REGS.
13062 (UNSPEC_GOTPLT): New constant.
13063 (movdi split): Move incrementing of LABEL_NUSES...
13064 (movdi_const, movdi_const_32bit): Here. Use
13065 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
13066 (movdi_const_16bit): New.
13067 (call, call_value) [flag_pic]: Use GOTPLT.
13068 (call_pop, call_value_pop): New expands.
13069 (call_pop_compact, call_pop_rettramp): New insns.
13070 (call_value_pop_compact, call_value_pop_rettramp): New insns.
13071 (sibcall) [flag_pic]: Use GOT.
13072 (builtint_setjmp_receiver): Remove bogus, unused expand.
13073 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
13074 (*pt, *ptb, ptrel): New insns.
13075 (sym2GOT): Handle DImode GOT.
13076 (sym2GOTPLT, symGOTPLT2reg): New expands.
13077 (sym2PIC): New expand.
13078 (shcompact_return_tramp): Use GOTPLT to return trampoline.
13079 (shcompact_return_tramp_i): Use return register explicitly.
13080 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
13081 disable flag_reorder_blocks.
13082 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
13083 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
13084 clobbers, for clarity.
13085 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
13086 restoring of r0 in macl as MAYBE_DEAD.
13087 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
13088 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
13089 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
13090 alter_subreg all over.
13091 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
13092 reload, instead of emitting instructions that would require
13094 (casesi_load_media): Add missing modes.
13095 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
13096 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
13097 as used if the argument decoder is called.
13098 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
13099 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
13100 Pmode, then extend it to DImode if necessary.
13101 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
13102 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
13103 constants in FPU-enabled SHmedia, let them be loaded from memory.
13104 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
13105 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
13106 Adjust whitespace in assembly output templates.
13107 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
13108 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
13109 mode of if_then_else.
13110 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
13111 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
13113 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
13114 Joern Rennecke <amylaar@redhat.com>
13115 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
13116 (SUBTARGET_CPP_PTR_SPEC): New.
13117 (SUBTARGET_CPP_SPEC): Remove.
13118 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
13119 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
13120 Fix typo in previous checkin.
13121 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
13122 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
13123 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
13124 Alexandre Oliva <aoliva@redhat.com>
13125 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
13126 what single FP register can hold for SHmedia target.
13127 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
13128 Alexandre Oliva <aoliva@redhat.com>
13129 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
13130 Do not split into SUBREG.
13131 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
13132 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
13133 and added new functions as specified in SH5 ABI r9.
13134 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
13135 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
13137 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
13138 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
13139 gen_consttable_4 and gen_consttable_8. Emit multiple labels
13140 and consttable_window_ends.
13141 2001-06-03 Graham Stott <grahams@redhat,com>
13142 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
13143 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
13144 * config/sh/sh.c (print_operand): Handle floating-point pair,
13145 vector and matrix registers.
13146 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
13147 vector modes into account.
13148 * config/sh/sh.md (movv2sf): Split move between registers into
13150 (movv4sf, movv16sf): Introduce insns that get split only after
13152 * config/sh/shmedia.h: Fix Copyright dates.
13153 * config/sh/ushmedia.h: Likewise. Move loop counter
13154 declarations into conditionals that uses them.
13155 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
13157 * config/sh/sshmedia.h: Fix Copyright dates.
13158 (sh_media_PUTCFG): Fix constraints.
13159 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
13160 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
13161 ptrmemfunc_vbit_in_delta for SH5.
13162 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
13163 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
13164 * invoke.texi: Likewise.
13165 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
13166 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
13167 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
13168 GCC_pop_shmedia_regs_nofpu): New global symbols.
13169 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
13170 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
13171 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
13172 compact function with nonlocal labels.
13173 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
13174 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
13175 (initial_elimination_offset): Account for their stack space.
13176 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
13177 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
13178 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
13179 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
13180 least one of the operands to be a register.
13181 (movv2sf): Likewise. Renamed to movv2sf_i.
13182 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
13183 prepare_move_operands() before emitting SHmedia insns.
13184 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
13185 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
13186 Don't save nor initialize r12. Don't mis-align the stack.
13187 Pad the code with a nop.
13188 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
13190 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
13191 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
13192 [__SHMEDIA__]: Implement.
13193 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
13194 * config/sh/sh.md: Set latency of `pt' closer to reality.
13195 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
13196 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
13197 Set move, load and store type attributes.
13198 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
13199 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
13201 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
13202 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
13203 * config/sh/sh.c (sh_media_register_for_return): New function.
13204 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
13205 branch-target register.
13206 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
13207 * config/sh/sh.md (return_media_i): Use any call-clobbered
13208 branch-target register.
13209 (return_media): If r18 wasn't copied in the prologue, copy it
13211 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
13212 Clear class FP0_REGS.
13213 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
13215 2001-03-08 DJ Delorie <dj@redhat.com>
13216 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
13217 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
13218 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
13219 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
13220 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
13221 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
13222 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
13223 return value correctly for call_cookie.
13224 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
13225 * config/sh/crt1.asm (start): Modified so as to call
13226 ___setup_argv_and_call_main.
13227 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
13228 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
13230 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
13231 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
13232 (STRIP_NAME_ENCODING): Use it.
13233 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
13234 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
13235 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
13236 prepare_scc_operands().
13237 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
13238 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
13239 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
13240 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
13241 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
13242 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
13243 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
13244 used in shcompact_incoming_args.
13245 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
13247 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
13249 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
13250 Adjust accordingly.
13251 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
13252 Simplify. Adjust. Add sanity check.
13253 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
13255 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
13257 (udivsi3, divsi3): Use them.
13258 (force_mode_for_call): New insn.
13259 (call, call_value, sibcall_value): Emit it before SHcompact
13261 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
13262 * config/sh/sh.md (call, call_value, sibcall): Make sure the
13263 call cookie is non-NULL before taking its value.
13264 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
13265 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
13266 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
13267 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
13269 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
13270 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
13271 temporary for stack adjusts. Use MACL and MACH to pass
13272 arguments to shcompact_incoming_args.
13273 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
13275 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
13276 (nested_trampoline): Load static chain address into r1.
13277 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
13278 2001-01-07 Alexandre Oliva <aoliva@redhat.com
13279 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
13280 fp_arith_reg_operand().
13281 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
13282 * config/sh/sh.md (casesi): Sign-extend the first two operands,
13283 and use signed compares for them.
13284 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
13285 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
13286 ones properly aligned.
13287 (find_barrier): Account for extra alignment needed for 8-byte wide
13289 (machine_dependent_reorg): Require a label for the second 4-byte
13290 constant after an 8-byte one.
13291 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
13293 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
13294 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
13295 last_float when switching float modes.
13296 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
13297 auto-increment for general-purpose registers.
13298 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
13300 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
13302 * config/sh/sh.c (sh_builtin_saveregs): Support using all
13303 registers for varargs.
13304 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
13305 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
13306 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
13307 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
13308 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
13309 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
13310 call_cookie accordingly.
13311 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
13312 (SHCOMPACT_BYREF): Likewise.
13313 (SHCOMPACT_FORCE_ON_STACK): New macro.
13314 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
13315 (sh_builtin_saveregs): Likewise.
13316 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13317 shcompact_incoming_args): Use new shift values. Support
13318 sequences of consecutive and non-consecutive pushes/pops.
13319 * config/sh/sh.md (return): Don't explicitly use PR_REG.
13320 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
13321 * config/sh/sh.h (TEXT_SECTION): Define.
13322 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13323 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
13324 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13325 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13326 return values on FPU-enabled SHmedia.
13327 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13328 FPU-enabled SHmedia.
13329 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13330 value is returned in a non-FP reg and is not returned by
13332 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13334 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
13335 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13336 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13337 quad-aligned to be passed by callee-copy reference.
13338 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
13339 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13340 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13341 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
13342 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13343 copying low-numbered FP regs to r7 and r8.
13344 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13345 FP regs to general-purpose regs only if the copy was passed on the
13347 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13348 copying FP reg to r9.
13349 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13350 copy FP regs to general-purpose regs only in outgoing calls.
13351 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13352 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
13354 * config/sh/sh.h (struct sh_args): Document all fields.
13355 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13356 passed partially on the stack should not consider making
13358 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13359 stack_regs only for incoming calls. When passing FP args,
13360 make sure there are FP regs available before modifying
13362 (SHCOMPACT_BYREF): Pass double args in general-purpose
13363 registers by reference.
13364 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
13365 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13366 attempt to generate sibcalls if the caller got any arguments
13368 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13369 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13370 to 8-byte boundaries.
13371 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13372 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13373 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13374 stored in the stack.
13375 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13376 for the offsets to have the ISA bit set.
13377 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
13378 invocation. Use beq instead of bgt to mark end of sequence of
13380 (shcompact_incoming_args): Fix store of r2. Use beq instead of
13381 bgt to mark end of sequence of stores.
13382 * config/sh/sh.c (arith_operand): Don't check whether
13383 CONST_OK_FOR_J for now.
13384 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13385 instead of long for conversion.
13386 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
13387 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13388 before passing it to fprintf.
13389 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
13390 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13391 Call set_fpscr before reading/writing SR.
13392 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13394 * config/sh/lib1funcs.asm: Add `.align 2' directives before
13396 (FMOVD_WORKS): Define on SH5 with FPU.
13397 (set_fpscr): Define on SH5. Remove separate _fpscr_values
13399 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13401 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
13402 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13404 (ia_main_table): Ditto.
13405 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
13406 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13407 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13408 the definitions from sh.h.
13409 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13411 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13412 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13413 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13414 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
13415 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13416 Increment LABEL_NUSES.
13418 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13420 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13422 * config/sh/elf.h (SIZE_TYPE): Likewise.
13423 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13424 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13425 shcompact_incoming_args): Load switch table addresses using
13427 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13428 (NO_BUILTIN_SIZE_TYPE): Define.
13429 (SIZE_TYPE): Don't define.
13430 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13431 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13432 definition of __SH5__=32 for -m5-compact-nofpu.
13433 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13435 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
13436 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13437 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
13438 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13439 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13440 (INSN_LENGTH_ALIGNMENT): Likewise.
13441 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13442 * config/sh/sh.md (call, call_value, sibcall): Simplify
13443 copying of non-branch-target register.
13444 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13445 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
13446 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13447 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13448 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13449 floating-point values as structs.
13450 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13451 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13452 general-purpose register.
13453 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13454 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
13455 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13456 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13457 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13458 (ENCODE_SECTION_INFO): Enclose variables and constants in
13460 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13461 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13462 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13463 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13464 only for LABEL_REFs. For SYMBOL_REFs, prepend
13465 SH_DATALABEL_ENCODING to the symbol name.
13466 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13468 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
13469 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13471 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13472 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13473 (DATALABEL_REF_P): Don't require CONST.
13474 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13476 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
13477 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13479 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
13480 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13481 Use shallow_copy_rtx and PUT_MODE to change the mode of
13482 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13483 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13484 on SHmedia using GENERAL_REGs.
13485 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13486 bltu_media_i): Fix reversion of conditions.
13487 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
13488 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13489 * config/sh/sh.c (output_far_jump): Save r13 in macl.
13490 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
13491 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13492 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
13493 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13494 (GCC_nested_trampoline): Likewise.
13495 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13496 * config/sh/sh.c (gen_datalabel_ref): Define.
13497 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13498 (INITIALIZE_TRAMPOLINE): Likewise.
13499 (TRAMPOLINE_ADJUST_ADDRESS): Define.
13500 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13501 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13502 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13503 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13504 (ic_invalidate): Adjust for SH5.
13505 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13506 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13507 _nested_trampoline.
13508 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
13509 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13510 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13511 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
13512 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13513 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13514 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
13515 * config/sh/sh.c (target_reg_operand): Match only target-branch
13516 registers and pseudos that aren't virtual registers.
13517 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13518 Copy operands that don't match target_reg_operand to pseudos.
13519 (call_media, call_value_media, sibcall_media): Use
13520 target_reg_operand instead of target_operand.
13521 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
13522 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13523 * config/sh/sh.c (target_reg_operand): Match hardware registers
13524 other than branch-target registers.
13525 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13526 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13527 (fpscr_values) [SH5 == 32]: Define.
13528 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13529 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13530 Handle function addresses coming in SUBREGs.
13531 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
13532 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13533 shcompact_return_trampoline): Use datalabel where appropriate.
13534 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
13535 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13536 general-purpose register to copy one branch-target register to
13538 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13539 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13540 SYMBOL_REFs with VOIDmode.
13541 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13542 bltu_media_i): New insns.
13543 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13544 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13545 (INIT_CUMULATIVE_ARGS): Likewise.
13546 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
13547 * machmode.def (V16SFmode): New mode.
13548 * c-common.c (type_for_mode): Support V2SF and V16SF.
13549 * tree.c (build_common_tree_nodes_2): Likewise.
13550 * tree.h (tree_index): Likewise.
13551 * calls.c (emit_call_1): Take args_so_far. Adjust all
13552 callers. Introduce CALL_POPS_ARGS.
13553 * tm.texi (CALL_POPS_ARGS): Document.
13554 * config/sh/crt1.asm: Implement in SHmedia mode.
13555 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13556 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13557 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13558 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13559 Implement divsi and udivsi in SHmedia mode. Introduce
13560 SHcompact trampolines.
13561 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13563 (regno_reg_class): Rewrite.
13564 (fp_reg_names): Remove.
13565 (sh_register_names, sh_additional_register_names): New.
13566 (print_operand): Added `u'. Support SUBREGs in addresses.
13567 Add parentheses around shifted CONSTs.
13568 (output_file_start): Output .mode and .abi directives.
13569 (shiftcosts, addsubcosts, multcosts): Adjust.
13570 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
13571 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
13572 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
13573 bytes, not registers. Take into account the need for the
13574 SHcompact incoming args trampoline. Adjust all callers.
13575 (sh_expand_prologue): Take stack_regs into account. Call
13576 incoming args trampoline. Keep stack aligned as per SH5 ABI.
13577 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
13578 stack aligned as per SH5 ABI.
13579 (sh_builtin_saveregs): Support SH5 ABI.
13580 (sh_build_va_list, sh_va_start): Likewise.
13581 (initial_elimination_offset): Take alignment into account.
13582 Compute location of PR according to the SH5 stack frame.
13583 (arith_reg_operand): Reject branch-target registers.
13584 (shmedia_6bit_operand): New.
13585 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13586 (target_reg_operand): Match DImode only. Accept SUBREGs.
13587 (target_operand): New.
13588 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13589 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
13590 SIBCALL_REGS for SHmedia.
13591 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13592 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13593 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13594 (TARGET_SWITCHES): New SH5 flags.
13595 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
13596 VALID_REGISTER_P to disable unsupported registers.
13597 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13598 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13599 (FUNCTION_ARG_PADDING): Define.
13600 (FASTEST_ALIGNMENT): Adjust.
13601 (SH_REGISTER_NAMES_INITIALIZER): New.
13602 (sh_register_names): Declare.
13603 (DEBUG_REGISTER_NAMES): Define.
13604 (REGISTER_NAMES): Define based on sh_register_names.
13605 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13606 (sh_additional_register_names): Declare.
13607 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13608 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13609 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13610 (REGISTER_NATURAL_MODE): Define.
13611 (FIRST_PSEUDO_REGISTER): Adjust.
13612 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13613 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13614 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13615 (VECTOR_MODE_SUPPORTED_P): Define.
13616 (REG_CLASS_CONTENTS): Adjust.
13617 (SMALL_REGISTER_CLASSES): Adjust.
13618 (REG_ALLOC_ORDER): Adjust.
13619 (INDEX_REG_CLASS): Adjust.
13620 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13621 (CONST_OK_FOR_LETTER_P): Adjust.
13622 (PREFERRED_RELOAD_CLASS): Adjust.
13623 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13624 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13625 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13626 (FIRST_FP_PARM_REG): Adjust.
13627 (CALL_POPS_ARGS): Define.
13628 (FUNCTION_ARG_REGNO_P): Adjust.
13629 (struct sh_args): New fields.
13630 (GET_SH_ARG_CLASS): Adjust.
13631 (INIT_CUMULATIVE_ARGS): Adjust.
13632 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13633 (FUNCTION_ARG_ADVANCE): Adjust.
13634 (FUNCTION_ARG): Adjust.
13635 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13636 (FUNCTION_ARG_CALLEE_COPIES): Define.
13637 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13638 (STRICT_ARGUMENT_NAMING): Define.
13639 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13640 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13641 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13642 (SETUP_INCOMING_VARARGS): Adjust.
13643 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13644 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13645 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13646 (SUBREG_OK_FOR_INDEX_P): Adjust.
13647 (EXTRA_CONSTRAINT_S): Update.
13648 (EXTRA_CONSTRAINT_T): New.
13649 (EXTRA_CONSTRAINT): Adjust.
13650 (GO_IF_LEGITIMATE_INDEX): Adjust.
13651 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13652 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13653 (MOVE_MAX): Adjust.
13654 (MAX_MOVE_MAX): Define.
13656 (CONST_COSTS): Adjust.
13657 (REGISTER_MOVE_COST): Adjust.
13658 (BRANCH_COST): Adjust.
13659 (TEXT_SECTION_ASM_OP): Adjust.
13660 (DBX_REGISTER_NUMBER): Adjust.
13661 (ASM_OUTPUT_DOUBLE_INT): New.
13662 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13663 (PREDICATE_CODES): Adjust.
13664 (PROMOTE_MODE): Adjust.
13665 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13666 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13667 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13668 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13669 (DR0_REG, DR2_REG, DR4_REG): Renumber.
13670 (TR0_REG, TR1_REG, TR2_REG): New.
13671 (XD0_REG): Renumber.
13672 (UNSPEC_COMPACT_ARGS): New.
13673 (type): Added pt and ptabs.
13674 (length): Default to 4 on SHmedia. Default pt length to 12
13675 and 20 on SHmedia32 and SHmedia64, respectively.
13676 (pt): New function unit.
13677 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
13678 Add whitespace between operands of SHmedia instructions.
13680 (adddi3_media, addsi3_media): Adjust constraints.
13681 (subsi3) [SHmedia]: Force operand 1 into a register.
13682 (udivsi3_i1_media, udivsi3_i4_media): New.
13683 (udivsi3): Support SHmedia.
13684 (divsi3_i1_media, divsi3_i4_media): New.
13685 (divsi3): Support SHmedia.
13686 (anddi3, iordi3, xordi3): Adjust constraints.
13687 (zero_extendhidi2, zero_extendqidi2): New.
13688 (extendsidi2, extendhidi2, extendqidi2): New.
13689 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13690 (pop_e, pop_fpul, pop_4): Likewise.
13691 (movsi_media): Support FP and BT registers.
13692 (movsi_media_nofpu): New. Adjust splits to DImode.
13693 (lduw, ldub): Renamed to zero_extend* above.
13694 (movqi_media): Fix typo.
13695 (movdi_media): Support FP and BT registers.
13696 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
13697 (movdi_const_32bit): New.
13698 (shori_media): Require immediate operand. Use `u' for output.
13699 (movdf_media, movsf_media): Simplified.
13700 (movdf_media_nofpu, movsf_media_nofpu): New.
13701 (movdf, movsf): Adjust
13702 (movv2sf, movv2sf, movv16sf): New.
13703 (beq_media, beq_media_i): Adjust constraints. Don't use
13704 scratch BT register.
13705 (bne_media, bne_media_i): Likewise.
13706 (bgt_media, bgt_media_i): Likewise.
13707 (bge_media, bge_media_i): Likewise.
13708 (bgtu_media, bgtu_media_i): Likewise.
13709 (bgeu_media, bgeu_media_i): Likewise.
13710 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13711 bunordered): Emit jump insn. Force operands to registers when
13713 (jump_media, jump): Simplify.
13714 (call_compact, call_compact_rettramp): New.
13715 (call_value_compact, call_value_compact_rettramp): New.
13716 (call_media, call_value_media): Simplify.
13717 (sibcall_compact, sibcall_media): New.
13718 (call, call_value): Adjust for SHmedia and SHcompact.
13719 (sibcall, sibcall_value, untyped_call): Likewise.
13720 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13721 (indirect_jump): Adjust for SHmedia.
13722 (casesi_jump_media): New.
13723 (nop): Re-enable for SHmedia.
13724 (call_site): Restrict to SH1.
13725 (casesi): Adjust for SHmedia.
13726 (casesi_shift_media, casesi_load_media): New.
13727 (return): Explicitly use PR register. Call return trampoline
13729 (return_i): Explicitly use PR register.
13730 (shcompact_return_tramp, shcompact_return_tramp_i): New.
13731 (return_media): Adjust.
13732 (shcompact_incoming_args): New.
13733 (epilogue): Adjust.
13734 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13735 (movstrsi): Disable on SH5.
13736 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13737 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13738 (subsf3, subsf3_media): Likewise.
13739 (mulsf3, mulsf3_media, mac_media): Likewise.
13740 (divsf3, divsf3_media): Likewise.
13741 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
13742 (floatsisf2, fux_truncsfsi2): Likewise.
13743 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
13745 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13746 (cmpunsf_media, cmpsf): Likewise.
13747 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13748 (abssf2, abssf2_media): Likewise.
13749 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13750 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13751 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
13752 (floatsidf2, fix_truncdfsi2): Likewise.
13753 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
13755 (cmpeqdf_media, cmpgtdf_media): Likewise.
13756 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13757 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13758 (absdf2, absdf2_media): Likewise.
13759 (extendsfdf2, extendsfdf2_media): Likewise.
13760 (truncsfdf2, truncsfdf2_media): Likewise.
13761 * config/sh/sh64.h: New file.
13762 * config/sh/t-sh64: New file.
13763 * config/sh/shmedia.h: New file.
13764 * config/sh/ushmedia.h: New file.
13765 * config/sh/sshmedia.h: New file.
13766 * configure.in: Added sh64-*-elf.
13767 * configure: Rebuilt.
13768 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
13769 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13770 (reg_class_from_letter): Use `b' for TARGET_REGS.
13771 (print_operand): Support `%M', `%m', `AND' and
13772 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
13773 (andcosts): Adjust for SHmedia.
13774 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13776 (target_reg_operand): New function.
13777 * config/sh/sh-protos.h (target_reg_operand): Declare.
13778 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13779 FP registers on SH5.
13780 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13782 (TARGET_REGISTER_P): New macro.
13783 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13784 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13785 (EXTRA_CONSTRAINT_S): New macro.
13786 (EXTRA_CONSTRAINT): Adjust.
13787 (FLOAT_TYPE_SIZE): Define to 32.
13788 (Pmode): DImode on SHmedia.
13789 (CONST_COSTS): Adjust for SHmedia literals.
13790 (PREDICATE_CODES): Added target_reg_operand.
13791 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13792 * config/sh/sh.md: Remove all attrs from SHmedia insns.
13793 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13794 (cmpdi): Accept SHmedia.
13795 (movdicc_false, movdicc_true): New insns.
13796 (movdicc): New expand.
13797 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13799 (addsi3_media): Match `S' constraint.
13800 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13801 (negdi2): Expand for SHmedia.
13802 (one_cmpldi2): New expand.
13803 (zero_extendsidi2): Change from expand to insn.
13804 (extendsidi2): Add constraints.
13805 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
13806 LD/ST address. Fix SI immediate loading split.
13807 (movhi_media, movqi_media, lduw, ldub): New insns.
13808 (movhi, movqi): Accept SHmedia.
13809 (shori_media, movdi_media): Relax input constraints. Split
13810 symbolic constants.
13811 (movdf_media, movsf_media): New insn. New split to movdi.
13812 (movdf, movsf): Match on SHmedia.
13813 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13814 bgeu_media): New insns and splits. New insns with `_i' suffix.
13815 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13816 (bunordered): New expand.
13817 (jump_compact): Renamed from `jump'.
13818 (jump_media): New insn.
13819 (jump): New expand.
13820 (call_media, call_value_media): New insns.
13821 (call, call_value): Adjust.
13822 (indirect_jump_compact): Renamed from `indirect_jump'.
13823 (indirect_jump_media): New insn.
13824 (indirect_jump): New expand.
13825 (untyped_call, return): Accept SHmedia.
13826 (return_media): New insn.
13827 (prologue, epilogue, blockage): Accept SHmedia.
13828 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13829 (sunordered): New expand.
13830 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13831 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13832 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13833 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13834 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13835 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13836 abssf2_media): New insns.
13837 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13838 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13839 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13840 floatdidf2, floatsidf2_media, fix_truncdfdi2,
13841 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13842 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13843 absdf2_media): New insns.
13844 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13845 (extendsfdf2_media, truncdfsf2_media): New insns.
13846 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
13847 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13848 * config/sh/sh.h (CONST_OK_FOR_J): Document.
13849 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13850 * config/sh/sh.md (adddi3): New expand.
13851 (adddi3_media, adddi3z_media): New insns.
13852 (adddi3_compact): Renamed from adddi3.
13853 (addsi3_media): Use add.l r63 to add constant zero.
13854 (subdi3): New expand.
13855 (subdi3_media): New insn.
13856 (subdi3_compact): Renamed from subdi3.
13857 (mulsidi3): New expand.
13858 (mulsidi3_media): New insn.
13859 (mulsidi3_compact): Renamed from mulsidi3.
13860 (umulsidi3): New expand.
13861 (umulsidi3_media): New insn.
13862 (umulsidi3_compact): Renamed from umulsidi3.
13863 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13864 (ashlsi3, ashrsi3, lshrsi3): Use them.
13865 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13866 (ashldi3, ashrdi3, lshrdi3): Use them.
13867 (zero_extendsidi2): New expand.
13868 (extendsidi2): New insn.
13869 (movsi_media): New insn. Split to movdi to load constants.
13870 (movsi): Enable for shmedia.
13871 (movdi_media): New insn. Use shori_media to load wide constants.
13872 (short_media): New insn.
13873 (movdi): Enable for shmedia.
13874 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
13875 * config/sh/sh.h (CPP_SPEC): Added `m5'.
13876 (SUBTARGET_CPP_SPEC): Added `!m5'.
13877 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13878 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
13879 to all other SH variants.
13880 (TARGET_DEFAULT): Set to SH1_BIT.
13881 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13882 (BITS_PER_WORD): Raise to 64 on shmedia.
13883 (MAX_BITS_PER_WORD): Change to 64.
13884 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13885 (INT_TYPE_SIZE): Keep as 32.
13886 (UNITS_PER_WORD): Raise to 8 on shmedia.
13887 (MIN_UNITS_PER_WORD): Keep as 4.
13888 (POINTER_SIZE): Raise to 64 on shmedia.
13889 (CONST_OK_FOR_J): New macro.
13890 (CONST_OK_FOR_LETTER_P): Use it.
13891 (processor_type): Add PROCESSOR_SH5.
13892 * config/sh/sh.md: Conditionalize all expands, insns and
13893 splits to TARGET_SH1.
13895 (addsi3_compact): Renamed from...
13896 (addsi3): Now an expand.
13897 (addsi3_media, subsi3_media): New insns.
13898 (subsi3): Don't negate constants with SHmedia.
13900 * hooks.c: New file.
13901 * hooks.h: New file.
13902 * Makefile.in (HOOKS_H): New.
13903 (TARGET_DEF_H): Added $(HOOKS_H).
13904 (OBJS): Added hooks.o.
13905 (cfgcleanup.o, bb-reorder.o): Added target.h.
13906 (hooks.o): Added dependencies.
13907 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13908 (TARGET_INITIALIZER): this.
13909 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13910 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13911 * bb-reorder.c: Include target.h.
13912 (reorder_basic_blocks): Skip if cannot modify jumps.
13913 * cfgcleanup.c: Include target.h.
13914 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13916 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13918 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13919 Protect jump delay slot instructions with .set noreorder and
13922 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13924 * config/mips/mips.md (casesi_internal_di): Calculate
13925 the index into the target offset table correctly.
13927 2002-02-08 Richard Henderson <rth@redhat.com>
13929 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13930 * final.c (output_addr_const): Accept and discard SUBREG.
13931 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13932 mark them unknown instead.
13933 (simplify_subtraction): Handle RTX_UNKNOWN.
13934 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13936 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13938 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13940 2002-02-08 Richard Henderson <rth@redhat.com>
13942 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13944 2002-02-08 Andreas Jaeger <aj@suse.de>
13946 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13947 * config/i386/t-linux64: New file.
13949 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13951 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13952 * c-parse.in (compstmt): Clear last_expr_type.
13954 2002-02-07 Richard Henderson <rth@redhat.com>
13956 * loop.c (strength_reduce): Sink final_value when not
13959 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13961 * config/sparc/freebsd.h: Fix mismatched spec {.
13963 2002-02-07 Richard Henderson <rth@redhat.com>
13965 * cfgrtl.c: Include recog.h and insn-config.h.
13966 (keep_with_call_p): Fix general_operand invocation.
13967 * Makefile.in (cfgrtl.o): Update dependencies.
13969 2002-02-07 Kazu Hirata <kazu@hxi.com>
13971 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13972 comment. Accept HImode only if TARGET_H8300.
13974 2002-02-07 Eric Christopher <echristo@redhat.com>
13976 * config/mips/crtn.asm: Cleanup #ifdefs.
13978 2002-02-07 Eric Christopher <echristo@redhat.com>
13980 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13981 register 7 as RA instead of $31.
13982 * config/mips/crtn.asm: Ditto.
13983 * config/mips/mips.c (mips_move_2words): Add case for
13984 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13985 (compute_frame_size): Fix typo.
13986 (save_restore_insns): Ditto. Make documentation about using
13987 register $7 as return register more precise.
13988 (mips_expand_epilogue): Fix comment. Add code to work around not
13989 being able to add to the stack pointer directly.
13990 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13991 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13994 2002-02-07 Tom Rix <trix@redhat.com>
13996 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13997 immediates in ldu and stdu DS opcode field.
13998 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13999 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
14000 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
14002 2002-02-07 Jeff Sturm <jsturm@one-point.com>
14004 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
14005 offset for stack bias.
14007 2002-02-07 H.J. Lu <hjl@gnu.org>
14009 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
14011 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
14013 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
14015 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
14017 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
14018 * i386.c (x86_order_regs_for_local_alloc): New global function.
14019 * i386.h (REG_ALLOC_ORDER): CLeanup.
14020 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
14022 2002-02-07 Richard Henderson <rth@redhat.com>
14024 PR optimization/2463
14025 * alias.c (find_base_value): Recall base values for fixed hard regs.
14026 * loop.c (loop_regs_update): Don't use single_set on non-insns.
14028 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
14030 * config/mips/mips.md (define_delay) [mips16]: Adjust required
14033 2002-02-06 Richard Henderson <rth@redhat.com>
14036 * stmt.c (resolve_operand_name_1): Take more care with mixed
14037 named and unnamed operands.
14039 2002-02-06 Janis Johnson <janis187@us.ibm.com>
14040 Jan Hubicka <jh@suse.cz>
14042 * loop.c (remove_constant_addition): Avoid clobbering a shared
14045 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14047 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
14048 * config/s390/t-linux64: New file.
14049 * config/s390/libgcc-glibc.ver: New file.
14051 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14053 * config/s390/linux64.h: Delete file.
14054 * config/s390/s390x.h: New file.
14055 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
14056 as target header file.
14057 * config/s390/linux.h (TARGET_VERSION): Define depending on
14058 DEFAULT_TARGET_64BIT.
14059 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
14060 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
14061 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
14062 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
14063 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
14064 (EXTRA_SPEC): New define.
14065 * config/s390/s390.h (TARGET_VERSION): Define depending on
14066 DEFAULT_TARGET_64BIT.
14067 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
14069 2002-02-06 Jason Merrill <jason@redhat.com>
14071 * c-decl.c (finish_function): Warn about a non-void function with
14072 no return statement and no abnormal exit.
14073 (current_function_returns_abnormally): New variable.
14074 (start_function): Clear it.
14075 (struct c_language_function): Add returns_abnormally.
14076 (push_c_function_context): Save it.
14077 (pop_c_function_context): Restore it.
14078 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
14079 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
14080 an explicit return type.
14081 * c-tree.h: Declare current_function_returns_abnormally.
14082 (C_FUNCTION_IMPLICIT_INT): New macro.
14083 * c-typeck.c (build_function_call): Set it.
14084 (c_expand_return): Set current_function_returns_value even if the
14085 value is erroneous.
14087 2002-02-06 Jakub Jelinek <jakub@redhat.com>
14090 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
14091 unsafe for reevaluation.
14093 2002-02-06 Jakub Jelinek <jakub@redhat.com>
14096 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
14097 EXPR_STMT, but COMPOUND_STMT, recurse into it.
14099 2002-02-06 Richard Henderson <rth@redhat.com>
14101 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
14102 be a general_operand. Dest for function value must be a pseudo.
14104 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
14106 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
14107 as SYMBOL_REFs from the constant pool.
14109 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
14111 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
14112 passed by invisible reference.
14114 2002-02-05 Richard Henderson <rth@redhat.com>
14116 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
14118 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
14120 Implement using "base addresses" in insn operands as default.
14121 * config/mmix/mmix.c (mmix_conditional_register_usage): if
14122 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
14123 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
14124 used to read the rtx value.
14125 (mmix_target_asm_function_epilogue): Fix spacing.
14126 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
14127 (mmix_legitimate_address): Ditto.
14128 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
14129 should be loaded with a GETA insn. Don't allocate needless extra
14130 char for nul termination and fix misleading comment.
14131 (mmix_print_operand_address): Handle constants if
14132 TARGET_BASE_ADDRESSES.
14133 (mmix_output_register_setting): Use base addressing if
14134 TARGET_BASE_ADDRESSES and the number of insns is 3.
14135 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
14136 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
14137 to use R as constraint, add LDA to match s.
14138 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
14139 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
14140 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
14141 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
14142 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
14143 order with other fixed registers.
14144 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
14145 other parameter/call-clobbered registers.
14146 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
14147 -mbase-addresses, -mno-base-addresses.
14148 (MMIX Options): Ditto.
14150 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
14152 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
14154 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
14156 * config/rs6000/altivec.h: Change elem to _S_elem.
14158 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
14160 * config/netbsd.h (WCHAR_TYPE): Define.
14161 (WCHAR_TYPE_SIZE): Ditto.
14162 (WINT_TYPE): Ditto.
14163 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
14164 (WCHAR_UNSIGNED): Ditto.
14165 (WCHAR_TYPE_SIZE): Ditto.
14166 (WINT_TYPE): Ditto.
14167 * config/arm/netbsd.h: Likewise.
14168 * config/i386/netbsd-elf.h: Likewise.
14169 * config/i386/netbsd.h: Likewise.
14170 * config/m68k/netbsd-elf.h: Likewise.
14171 * config/m68k/netbsd.h: Likewise.
14172 * config/ns32k/netbsd.h: Likewise.
14173 * config/sparc/netbsd.h: Likewise.
14174 * config/vax/netbsd.: Likewise.
14176 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
14178 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
14179 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
14180 (TARGET_INITIALIZER): this.
14181 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
14182 (BITFIELD_NBYTES_LIMITED): Markup fix.
14183 * tree.h (default_ms_bitfield_layout_p): Declare.
14184 (record_layout_info): Added prev_field.
14185 * tree.c (default_ms_bitfield_layout_p): New fn.
14186 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
14187 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
14188 * stor-layout.c: Include target.h.
14189 (start_record_layout): Initialize prev_field.
14190 (place_field): Handle MS bit-field layout, and disregard
14191 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
14192 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
14193 * Makefile.in (stor-layout.o): Adjust dependencies.
14195 2002-02-05 Jason Merrill <jason@redhat.com>
14197 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
14199 2002-02-05 Andreas Jaeger <aj@suse.de>
14201 * crtstuff.c: Fix comments.
14203 2002-02-05 Richard Henderson <rth@redhat.com>
14206 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
14207 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
14210 * config/mips/mips.c (function_arg): Handle TImode.
14211 (function_arg_advance): Likewise.
14213 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14215 * config/rs6000/altivec.h (vec_step_help): Rename to
14218 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14220 * config/rs6000/altivec.h: Fix typos.
14222 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
14224 * config/arm/netbsd.h: Correct a comment.
14226 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14228 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
14229 building void typed builtins.
14231 * config/rs6000/altivec.h (vec_ld*): Fix typos.
14232 (vec_step): Implement for C++.
14234 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14236 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
14238 2002-02-04 Richard Henderson <rth@redhat.com>
14240 * combine.c (nonzero_bits): Re-introduce special case for
14241 sp/fp/ap wrt REGNO_POINTER_ALIGN.
14243 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14245 * doc/extend.texi: Warn about unsupported usage of altivec
14248 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
14249 (altivec_predicate_*): New.
14251 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
14252 Add C++ version of vec_*() functions.
14254 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
14255 (bdesc_2arg): Remove altivec predicates.
14256 (altivec_expand_builtin): Handle predicates.
14257 (altivec_init_builtins): Handle predicates.
14258 (altivec_expand_predicate_builtin): New.
14260 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14262 * pa.c (DO_FRAME_NOTES): Move forward.
14263 (store_reg): Revise handling of frame notes.
14264 (load_reg): Likewise.
14265 (set_reg_plus_d): Likewise.
14266 (hppa_expand_prologue): Likewise.
14267 (hppa_expand_epilogue): Likewise.
14269 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14271 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
14273 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14275 PR c/4475, c++/3780:
14276 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
14277 * c-common.h (SWITCH_TYPE): Define.
14278 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
14279 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
14280 Rename spareness variable to sparseness.
14281 (expand_end_case_type): Renamed from expand_end_case, use orig_type
14282 if non-NULL instead of TREE_TYPE (orig_index).
14283 * tree.h (expand_end_case_type): Renamed from expand_end_case.
14284 (expand_end_case): Define using expand_end_case_type.
14285 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
14286 to expand_end_case_type.
14287 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
14289 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14291 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
14292 (BIGGEST_ALIGNMENT): Change to 128.
14294 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14296 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
14298 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14300 * pa.md (call_internal_reg_64bit): Remove unused variable.
14302 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
14304 * config/arm/arm.h (machine_function): Add uses_anonymous_args
14306 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
14307 * config/arm/arm.c (current_function_anonymous_args): Delete,
14308 replace uses with cfun->machine->uses_anonymous_args.
14309 (arm_reorg): Do not reset uses_anonymous_args.
14311 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
14312 any geenral register.
14314 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
14316 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
14319 2002-02-04 Richard Henderson <rth@redhat.com>
14321 * combine.c (force_to_mode): Remove STACK_BIAS code.
14322 (nonzero_bits): Likewise. Replace sp/fp special case with
14323 REGNO_POINTER_ALIGN.
14325 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14326 (HARD_FRAME_POINTER_REGNUM): New.
14327 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14328 (FIXED_REGS, CALL_USED_REGS): Update.
14329 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14330 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14331 (HARD_REGNO_NREGS): Update for SFP.
14332 (STACK_POINTER_OFFSET): Include bias here ...
14333 (FIRST_PARM_OFFSET): ... not here.
14334 (STACK_BIAS): Remove.
14335 (INIT_EXPANDERS): New.
14336 (STARTING_FRAME_OFFSET): Do not include bias.
14337 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14338 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14339 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14340 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14341 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14342 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14343 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14344 (MUST_SAVE_REGISTER): Likewise.
14345 (sparc_flat_function_prologue): Likewise.
14346 (sparc_flat_function_epilogue): Likewise.
14347 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14348 (sparc_init_modes): SFP is GENERAL_REGS.
14349 (sparc_builtin_saveregs): SFP does not have bias applied.
14351 2002-02-04 Richard Henderson <rth@redhat.com>
14353 * config/alpha/alpha.c (current_function_is_thunk): Don't check
14354 current_function_is_thunk.
14355 (alpha_sa_mask): Distinguish between current_function_is_thunk
14356 called from ASM_OUTPUT_MI_THUNK and not.
14357 (alpha_does_function_need_gp): Thunks always need gp.
14358 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14359 (alpha_output_mi_thunk_osf): New.
14360 * config/alpha/alpha-protos.h: Update.
14361 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14363 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
14365 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14366 function types, not when they're taken away.
14368 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
14370 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14371 CODE_LABEL and jump table when replacing a table jump with a
14374 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14376 * config/s390/s390-protos.h (legitimize_la_operand,
14377 s390_secondary_input_reload_class, s390_plus_operand,
14378 s390_expand_plus_operand): Add prototypes.
14380 config/s390/s390.c (s390_secondary_input_reload_class,
14381 s390_plus_operand, s390_expand_plus_operand): New functions.
14383 (struct s390_address): New member 'pointer'.
14384 (s390_decompose_address): Compute it.
14385 (legitimate_la_operand_p): Use it.
14386 (legitimize_la_operand): New function.
14387 (movti, movdi, movdf splitters): Call it.
14389 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14390 (PREDICATE_CODES): Add s390_plus_operand.
14392 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14393 (la_ccclobber): Allow GENERAL_REGS as output operand.
14395 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14396 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14397 (*la_64, *la_31, reload_indi, reload_insi): ... these.
14399 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14401 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14402 register names for regular asm () construct.
14404 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14406 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14409 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14411 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14414 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
14416 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14417 constant pool to be identical by string address and index.
14419 2002-02-04 Anthony Green <green@redhat.com>
14421 * output.h (SECTION_OVERRIDE): Define.
14422 * varasm.c (named_section): Obey SECTION_OVERRIDE.
14424 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
14426 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14427 by existing arm*-*-netbsd* (a.out) target.
14428 (ns32k-*-netbsdelf*): Likewise.
14429 (sparc-*-netbsdelf*): Likewise.
14430 (vax-*-netbsdelf*): Likewise.
14432 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
14434 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14435 headers and libobjc headers.
14437 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
14439 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14440 (_mingw.h): Remove duplicate include.
14442 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
14444 * config.gcc: Set cpu_type to m68k for 68010, as well.
14445 (m68010-*-netbsdelf*): New...
14446 (m68k*-*-netbsdelf*): ...targets.
14447 * config/m68k/netbsd-elf.h: New file.
14449 2002-02-02 Kazu Hirata <kazu@hxi.com>
14451 * config/h8300/h8300.c (hand_list): Move inside function_arg.
14453 2002-02-02 Kazu Hirata <kazu@hxi.com>
14455 * config/h8300/h8300.c (h8_push_ops): Move inside
14457 (h8_pop_ops): Likewise.
14458 (h8_move_ops): Likewise.
14460 2002-02-02 Kazu Hirata <kazu@hxi.com>
14462 * config/h8300/h8300.c (os_task): Make it static.
14463 (monitor): Likewise.
14464 (pragma_saveall): Likewise.
14466 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
14468 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14469 constant is a valid sign-extension for Pmode.
14471 2002-02-02 Kazu Hirata <kazu@hxi.com>
14473 * config/h8300/h8300.c: Fix formatting.
14475 2002-02-02 Kazu Hirata <kazu@hxi.com>
14477 * config/h8300/h8300.md: Fix formatting.
14479 2002-02-02 Kazu Hirata <kazu@hxi.com>
14481 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14482 predicates of operands[1]. Split the patterns for each
14485 2002-02-02 Kazu Hirata <kazu@hxi.com>
14487 * config/h8300/h8300.md (xor patterns): Tighten the predicates
14488 of operands[1] to register_operand.
14490 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
14492 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14493 * cpphash.c (_cpp_init_hashtable): Similarly.
14494 * cppinit.c (cpp_create_reader): Default the signed_char flag.
14495 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14496 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14497 (cpp_handle_option): Handle the new options.
14498 * cpplex.c (cpp_interpret_charconst): Use new flag.
14499 * cpplib.h (struct cpp_options): New member signed_char.
14500 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14501 (cpp_options): Handle -fsigned-char and -funsigned-char.
14502 (static_specs): Remove signed_char_spec.
14503 (do_spec1): Don't handle %c.
14504 * system.h: Poison SIGNED_CHAR_SPEC.
14505 * tradcif.y (yylex): Use flag_signed_char.
14506 * tradcpp.h (flag_signed_char): New.
14507 * tradcpp.c (flag_signed_char): New.
14508 (main): Handle new command-line options.
14509 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14511 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14512 * avr/avr.h: Remove old comments.
14513 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14514 (CC1_SPEC): Pass -fsigned-char if -mic*.
14515 (SIGNED_CHAR_SPEC): Remove.
14517 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14519 2002-02-01 Eric Christopher <echristo@redhat.com>
14521 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14522 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14523 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14524 (ASM_OUTPUT_REG_POP): Ditto.
14526 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
14528 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14531 2002-02-02 Jakub Jelinek <jakub@redhat.com>
14533 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14535 2002-02-02 Jakub Jelinek <jakub@redhat.com>
14538 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14541 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14543 * cfganal.c: Include tm_p.h.
14544 (keep_with_call_p): Fix the test that determines if a register holds
14545 the return value of a call.
14547 2002-02-01 DJ Delorie <dj@redhat.com>
14549 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14550 we are given conflicting registers, switch to the other one we
14551 had allocated for us.
14552 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14553 as TImode so we know when the "other" register is available.
14555 2002-02-01 David O'Brien <obrien@FreeBSD.org>
14557 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14560 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14562 * cfganal.c (keep_with_call_p): New function.
14563 (flow_call_edges_add): Prevent splitting a block between a call and
14564 a single-set instruction that should be kept in the same block.
14566 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
14568 * doc/install.texi (avr): Update outdated URL.
14570 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
14572 * config/stormy16/stormy16.md (pushqi): New.
14576 (movhi): Remove stack operands.
14578 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14579 nonimmediate_nonstack_operand.
14580 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14582 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14585 2002-01-31 Jason Merrill <jason@redhat.com>
14587 * Makefile.in (c-parse.c): Handle .output file.
14588 * objc/Make-lang.in (objc-parse.c): Likewise.
14590 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
14592 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14593 the -me[lb] option is given. Don't output the default flag
14596 2002-01-31 Zack Weinberg <zack@codesourcery.com>
14598 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14599 the primary source file; this has not been done yet.
14600 * c-decl.c (c_expand_body): Reset input_filename from
14601 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14603 2002-01-31 Kazu Hirata <kazu@hxi.com>
14605 * rtlanal.c (subreg_regno_offset): Do not use
14606 SUBREG_REGNO_OFFSET.
14607 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14608 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14610 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14612 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
14613 version rather than GNATS version in --version output.
14615 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
14617 * ifcvt.c (noce_process_if_block): Make a copy of the destination
14618 when copying back from a temporary.
14620 2002-01-30 Richard Henderson <rth@redhat.com>
14622 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14623 and new_dest are the same.
14625 2002-01-30 Richard Henderson <rth@redhat.com>
14628 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14629 * rtl.c (note_insn_name): Update.
14630 * emit-rtl.c (remove_unnecessary_notes): Kill it.
14631 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
14632 to perform loop rotation.
14633 (expand_exit_loop_top_cond): New.
14634 * tree.h (expand_exit_loop_top_cond): Declare it.
14635 * c-semantics.c (genrtl_while_stmt): Use it.
14636 (genrtl_for_stmt): Likewise.
14638 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
14640 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14641 arguments to 64-bit boundaries on 64-bit ABIs.
14643 2002-01-30 Steve Ellcey <sje@cup.hp.com>
14645 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14647 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14649 * c-decl.c (grokdeclarator): Handle type being a typedef for an
14652 2002-01-30 David O'Brien <obrien@FreeBSD.org>
14654 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14655 * config/sparc/sparc_bi.h: Remove file.
14656 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14658 2002-01-30 Richard Henderson <rth@redhat.com>
14660 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14662 2002-01-30 Zack Weinberg <zack@codesourcery.com>
14664 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14666 2002-01-30 Jason Merrill <jason@redhat.com>
14668 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14669 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14670 (reg_save): Use DW_CFA_offset_extended_sf instead.
14672 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14674 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14676 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14679 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
14681 * rs6000.md ("*call_value_local32"): Remove constraints.
14682 ("*call_value_local64"): Same.
14683 ("*call_value_indirect_nonlocal_aix32"): Same.
14684 ("*call_value_nonlocal_aix32"): Same.
14685 ("*call_value_indirect_nonlocal_aix64"): Same.
14686 ("*call_value_nonlocal_aix64"): Same.
14687 ("*call_value_nonlocal_sysv"): Same.
14689 2002-01-29 Richard Henderson <rth@redhat.com>
14691 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14693 2002-01-29 Richard Henderson <rth@redhat.com>
14695 * expr.c (force_operand): Ignore flag_pic for detecting pic
14697 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14698 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14699 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14700 instead of open-coded loop.
14701 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14702 be fixed when in use.
14704 2002-01-29 Richard Henderson <rth@redhat.com>
14706 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14707 * sched-rgn.c (propagate_deps): Update them.
14708 * sched-deps.c (sched_analyze_insn): Update them. Flush the
14709 clobbers list when either gets too long.
14711 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14713 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14714 and INDEX_REGS the same as GENERAL_REGS.
14715 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14717 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14719 * tree.c (build_nonstandard_integer_type): Correct prototype.
14721 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
14723 * config/s390/s390.md (movstrsico, movstrdix_64,
14724 movstrsix_31): Remove, replace by ...
14725 (movstrdi_short, movstrsi_short, movstrdi_long,
14726 movstrsi_long): ... these. New.
14727 (movstrdi, movstrsi): Adapt.
14729 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14730 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14731 Remove unnecessary CC clobber.
14732 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14733 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14735 (divmoddi4): Don't partially initialize TImode register.
14737 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
14739 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14741 2002-01-29 Richard Henderson <rth@redhat.com>
14743 * flow.c (print_rtl_and_abort): Remove.
14744 (print_rtl_and_abort_fcn): Remove.
14745 (verify_local_live_at_start): Use dump_bb instead.
14746 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14747 (verify_wide_reg_1): Return 2 on mode test failure.
14749 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14751 PR c/3325, c/3326, c/2511, c/3347
14752 * c-decl.c (enum_decl_context): Remove BITFIELD.
14753 (grokdeclarator): Take bitfield width as an input.
14754 Ensure bitfields are given the correct type. Perform
14755 bitfield width validation with build_bitfield_integer_type
14756 rather than waiting for finish_struct.
14757 (grok_typename, grok_typename_in_parm_context, start_decl,
14758 push_parmdecl, grokfield, start_function): Update calls to
14760 (build_bitfield_integer_type): New function.
14761 (finish_struct): Move bitfield validation to grokdeclarator
14762 and build_bitfield_integer_type.
14763 * tree.c (build_nonstandard_integer_type): New function.
14764 * tree.h (build_nonstandard_integer_type): New prototype.
14766 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14768 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14771 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14772 don't ignore unrecognized -W* options.
14773 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14774 * cpplib.h (cpp_handle_option): Adjust prototype.
14775 * c-decl.c (c_decode_options): Pass 0 as last argument to
14779 * gcc.c (cpp_unique_options): Split from cpp_options.
14780 (cpp_options): Source cpp_unique_options.
14781 (default_compilers): Use cpp_unique_options instead of cpp_options
14782 when used together with cc1_options.
14783 (static_specs): Add cpp_unique_options.
14784 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14785 when used together with cc1_options.
14787 2002-01-29 Kazu Hirata <kazu@hxi.com>
14789 * config/h8300/h8300-protos.h: Update the prototype of
14791 * config/h8300/h8300.c (output_a_shift): Remove an unused
14792 argument 'insn'. Remove redundant code.
14793 * config/h8300/h8300.md: Adust to the new prototype of
14796 2002-01-29 Kazu Hirata <kazu@hxi.com>
14798 * config/h8300/h8300-protos.h: Update the prototypes of
14799 emit_a_rotate and expand_a_rotate.
14800 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14801 first argument to 'enum rtx_code'.
14802 (expand_a_rotate): Likewise.
14804 2002-01-28 Kazu Hirata <kazu@hxi.com>
14806 * config/h8300/h8300-protos.h: Update the prototype of
14808 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14810 * config/h8300/h8300.md: Adjust to the new prototype.
14812 2002-01-28 Kazu Hirata <kazu@hxi.com>
14814 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14817 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14819 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14820 is a fixed register before returning pic_offset_table_rtx.
14821 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14822 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14824 2002-01-28 Jason Merrill <jason@redhat.com>
14826 * dwarf2.h: Sync with src version.
14828 2002-01-28 Paul Koning <pkoning@equallogic.com>
14830 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14831 BT_FN_VOID_PTR_VAR.
14832 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14833 * doc/extend.texi (__builtin_prefetch): Update documentation:
14834 first argument is now const void ptr.
14836 2002-01-28 Kazu Hirata <kazu@hxi.com>
14838 * config/h8300/h8300-protos.h: Remove an unused prototype.
14840 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
14842 * toplev.c (lang_independent_init): Round up identifier size.
14844 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14846 * config.gcc: Revert previous change.
14848 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
14850 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14852 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14854 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14855 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
14856 other non-elf netbsd config frags.
14857 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14858 collect2 will does that.
14859 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14860 shared-lib frobbing will work.
14862 2002-01-28 Kazu Hirata <kazu@hxi.com>
14864 * config/h8300/h8300.h: Fix formatting.
14865 * config/h8300/h8300.md: Likewise.
14867 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
14869 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14870 the old, removed AAA_standards fix.
14871 * fixinc/fixincl.x: Rebuilt.
14873 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
14875 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14876 atexit call in crtbegin, hooked in after call to frame_dummy;
14877 register EH before registering __fini__start.
14879 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
14881 * config/rs6000/altivec.h: Remove spurious semicolons.
14883 2002-01-27 Kazu Hirata <kazu@hxi.com>
14885 * config/h8300/h8300.md: Replace dead bit extraction patterns
14886 with ones that work.
14888 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14890 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14891 if not STRICT_ALIGNMENT.
14892 * rtl.h (MEM_ALIGN): Likewise.
14894 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
14896 * doc/invoke.texi (-fdump-translation-unit): Revert this
14897 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
14899 2002-01-27 Kazu Hirata <kazu@hxi.com>
14901 * config/h8300/h8300.md (define_constants): New.
14902 (anonymous patterns) Use defined constants appropriately.
14904 2002-01-27 Kazu Hirata <kazu@hxi.com>
14906 * config/h8300/h8300.c (function_arg): Remove redundant code.
14908 2002-01-26 Richard Henderson <rth@redhat.com>
14910 * sched-deps.c (reg_pending_uses_head): New.
14911 (reg_pending_barrier): Rename from reg_pending_sets_all.
14912 (find_insn_list): Don't mark inline.
14913 (find_insn_mem_list): Remove.
14914 (add_dependence_list, add_dependence_list_and_free): New.
14915 (flush_pending_lists): Replace only_write param with separate
14916 for_read and for_write parameters. Update all callers. Use
14917 add_dependence_list_and_free.
14918 (sched_analyze_1): Do not add reg dependencies here; just set
14919 the pending bits. Use add_dependence_list.
14920 (sched_analyze_2): Likewise.
14921 (sched_analyze_insn): Replace schedule_barrier_found with
14922 reg_pending_barrier. Add all dependencies for pending reg
14923 uses, sets, and clobbers.
14924 (sched_analyze): Don't add reg dependencies for calls, just
14925 set pending bits. Use regs_invalidated_by_call. Treat
14926 sched_before_next_call as a normal list, not a fake insn.
14927 (init_deps): No funny init for sched_before_next_call.
14928 (free_deps): Free pending mems lists. Don't zero reg_last.
14929 (init_deps_global): Init reg_pending_uses.
14930 (finish_deps_global): Free it.
14931 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14932 (find_insn_mem_list): Remove.
14933 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14934 (propagate_deps): Use them. Zero temp mem lists.
14936 2002-01-26 Richard Henderson <rth@redhat.com>
14938 * Makefile.in (CRTSTUFF_CFLAGS): New.
14939 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14940 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14941 crtstuff.c instead of alpha assembly version.
14942 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14943 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14944 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14945 (__do_global_dtors_aux): Mark used.
14946 (frame_dummy, __do_global_ctors_aux): Mark used.
14947 (fini_dummy, init_dummy): Remove.
14949 * config/alpha/crtbegin.asm: Remove file.
14950 * config/alpha/crtend.asm: Remove file.
14951 * config/alpha/t-crtbe: Remove file.
14952 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14953 (LINK_EH_SPEC): New.
14955 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14956 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14957 calling constructors.
14958 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14960 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14961 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14962 CRT_END_INIT_DUMMY hack.
14963 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14964 FORCE_{INIT,FINI}_SECTION_ALIGN.
14966 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14967 FORCE_{INIT,FINI}_SECTION_ALIGN.
14969 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14970 invocation sequence.
14971 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14973 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14974 (FORCE_CODE_SECTION_ALIGN): New.
14976 2002-01-26 Richard Henderson <rth@redhat.com>
14978 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14980 2002-01-26 Richard Henderson <rth@redhat.com>
14982 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14983 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14985 2002-01-26 Kazu Hirata <kazu@hxi.com>
14987 * config/h8300/h8300.md: Remove bit extraction patterns that
14988 cannot be triggered.
14989 Restrict each bit extraction pattern to a variant on which the
14992 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14994 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14996 2002-01-26 Kazu Hirata <kazu@hxi.com>
14998 * config/h8300/h8300.md: Remove bit test patterns that cannot
15000 Restrict each bit test pattern to a variant on which the
15003 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15005 * builtins.c (expand_builtin_strncat): Remove redundant check for
15008 2002-01-25 David O'Brien <obrien@FreeBSD.org>
15010 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
15012 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
15015 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
15017 * dbxout.c (dbxout_init): Use assemble_name rather than just
15018 stripping off the first character.
15019 (dbxout_source_file): Likewise.
15021 2002-01-25 DJ Delorie <dj@redhat.com>
15023 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
15024 using rtx_equal_p, not by comparing pointers.
15026 2002-01-25 Steve Ellcey <sje@cup.hp.com>
15028 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
15029 for PIC_OFFSET_TABLE_REGNUM.
15030 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
15032 2002-01-25 David O'Brien <obrien@FreeBSD.org>
15034 * config.gcc (x86_64-*-freebsd*): New target.
15035 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
15037 (i[34567]86-*-freebsd*): Don't include svr4.h.
15038 * config/i386/freebsd64.h: New file.
15040 2002-01-25 Douglas B Rupp <rupp@gnat.com>
15042 * config/alpha/x-vms (version): Make static.
15044 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
15045 in previous checkin.
15047 * Makefile.in (install-headers-cp): New target.
15048 * config.gcc (alpha-dec-*vms*): Install headers with
15051 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
15053 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
15056 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15058 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
15059 of compare_tree_int.
15060 (expand_builtin_strncat): Likewise.
15061 * c-decl.c (finish_struct): Use tree_low_cst.
15062 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
15063 * tree.c (compare_tree_int): Likewise.
15065 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
15067 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
15068 adjustments even if they are implemented by more than two insns.
15070 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
15072 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
15073 * df.h (struct ref): Kill B.
15074 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
15076 * basic-block.h (PROP_EQUAL_NOTES): New flag.
15077 * flow.c (propagate_one_insn): Use it.
15078 (mark_used_regs): Handle NIL.
15080 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
15082 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
15085 2002-01-25 David Edelsohn <edelsohn@gnu.org>
15087 * rs6000.md (prefetch): Make address V4SI mode so that the address
15088 is restricted to legitimate form for instruction.
15090 2002-01-25 Bob Wilson <bob.wilson@acm.org>
15092 * doc/install.texi (xtensa-*-elf): New target.
15093 (xtensa-*-linux*): New target.
15094 * doc/contrib.texi: Add myself.
15096 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
15098 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
15099 purpose register to hold an SImode (or smaller) value.
15101 2002-01-25 Jakub Jelinek <jakub@redhat.com>
15103 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
15105 * crtstuff.c: Likewise.
15107 2002-01-25 Kazu Hirata <kazu@hxi.com>
15109 * config/h8300/h8300.md (negation patterns): Tighten
15110 predicates to register_operand.
15112 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
15114 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
15117 * builtins.c (expand_builtin_prefetch): Same.
15119 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15121 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
15124 2002-01-24 Kazu Hirata <kazu@hxi.com>
15126 * config/h8300/h8300.c (print_operand): Remove support for
15127 operand character 'A'.
15128 * config/h8300/h8300.md (three anonymous patterns): Replace
15129 operand character 'A' with either 'T' or 'S'.
15131 2002-01-24 Kazu Hirata <kazu@hxi.com>
15133 * config/h8300/h8300.c (print_operand): Remove support for
15134 operand character 'U'.
15136 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
15138 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
15140 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
15142 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
15143 values to be assigned to the stack pointer.
15145 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15147 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
15148 to const_double needs to be done right for big-endian systems.
15150 2002-01-24 Jason Merrill <jason@redhat.com>
15153 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
15154 to can_throw_internal.
15156 2002-01-23 Richard Henderson <rth@redhat.com>
15158 * fold-const.c (fold): Change UINT_MAX test to check vs precision
15159 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
15161 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15163 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
15164 (symGOT2reg): Use them, then set as GOT value as unchanging.
15165 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
15166 as a temporary, if possible.
15167 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
15168 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
15170 2002-01-23 Kazu Hirata <kazu@hxi.com>
15172 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
15173 accept to accept 0x80 as operands[2].
15175 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15177 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
15179 2002-01-23 Richard Henderson <rth@redhat.com>
15181 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
15183 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
15185 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
15186 (parmlist_or_identifiers_1): Verify that only a parmlist follows
15189 2002-01-23 Richard Henderson <rth@redhat.com>
15191 * expr.c (move_by_pieces_1): Extend size before negation.
15193 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
15194 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
15195 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
15196 * config/m68k/t-m68kelf: Likewise.
15198 2002-01-23 Bob Wilson <bob.wilson@acm.org>
15200 * config/xtensa/elf.h: New file.
15201 * config/xtensa/lib1funcs.asm: New file.
15202 * config/xtensa/lib2funcs.S: New file.
15203 * config/xtensa/linux.h: New file.
15204 * config/xtensa/t-xtensa: New file.
15205 * config/xtensa/xtensa-config.h: New file.
15206 * config/xtensa/xtensa-protos.h: New file.
15207 * config/xtensa/xtensa.c: New file.
15208 * config/xtensa/xtensa.h: New file.
15209 * config/xtensa/xtensa.md: New file.
15210 * config.gcc (xtensa-*-elf*): New target.
15211 (xtensa-*-linux*): New target.
15212 * cse.c (canon_hash): Compare rtx pointers instead of register
15213 numbers. This is required for the Xtensa port.
15214 * integrate.c (copy_insn_list): Handle case where the static
15215 chain is in memory and the memory address has to be copied to
15217 * doc/invoke.texi (Option Summary): Add Xtensa options.
15218 (Xtensa Options): New node.
15219 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
15221 2002-01-23 Zack Weinberg <zack@codesourcery.com>
15223 * diagnostic.c (internal_error): Do ICE suppression only
15224 when ENABLE_CHECKING is not defined.
15226 * c-typeck.c (require_complete_type): Return error_mark_node
15227 if type is error_mark_node.
15229 2002-01-23 Janis Johnson <janis187@us.ibm.com>
15231 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
15232 -Os and issue a warning.
15234 2002-01-23 Zack Weinberg <zack@codesourcery.com>
15236 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
15237 current (lack of) need for host configuration by hand.
15239 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
15240 references. Documentation of some target macros moved from
15241 hostconfig.texi to tm.texi.
15243 2002-01-23 Will Cohen <wcohen@redhat.com>
15245 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
15248 2002-01-23 Kazu Hirata <kazu@hxi.com>
15250 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
15253 2002-01-23 Jason Merrill <jason@redhat.com>
15255 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
15257 * function.c (assign_parms): Don't put args of inline functions
15258 into registers when not optimizing.
15260 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
15262 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
15263 (prologue_use): New pattern.
15264 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
15265 preference to gen_rtx_USE.
15266 (thumb_expand_prologue): Use gen_prologue_use in preference to
15268 (thumb_expand_epilogue): Use gen_prologue_use in preference to
15271 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
15273 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
15275 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
15278 * doc/extend.texi: Correct documentation of __alignof__.
15280 2002-01-22 Zack Weinberg <zack@codesourcery.com>
15282 * params.h: Rename arguments of DEFPARAM so that it will be
15283 recognized as a translation keyword.
15285 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15287 * extend.texi: Document altivec functions.
15288 Fix N-bit adjectives in X86 builtin documentation.
15290 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
15292 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
15293 auto_inc_dec values.
15295 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
15297 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
15299 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
15301 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
15303 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
15305 2002-01-22 Richard Henderson <rth@redhat.com>
15307 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
15308 copy_insn not copy_rtx.
15310 2002-01-23 Alan Modra <amodra@bigpond.net.au>
15312 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
15313 "nonzero" as that might add "1" bits. Ensure "constop" is
15314 properly sign extened.
15315 (force_to_mode): Tweak for sign extended constop.
15317 2002-01-22 Richard Henderson <rth@redhat.com>
15319 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15320 for_each_rtx instead of assuming we're already looking at the MEM.
15321 (split_small_symbolic_mem_operand): Likewise.
15322 * config/alpha/alpha.h (PREDICATE_CODES): Update.
15323 * config/alpha/alpha.md (small symbolic memory splitters): Update.
15325 2002-01-22 Richard Henderson <rth@redhat.com>
15327 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15328 sequence number for the literal.
15329 (divmoddi_internal_er): Likewise.
15331 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
15334 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15335 in LIBICONV variable.
15336 * configure: Regenerated.
15338 2002-01-22 Krister Walfridsson <cato@df.lth.se>
15340 * dependence.c (build_def_use): Remove array_idx.
15342 * dwarfout.c (last_filename): Remove.
15343 (output_compile_unit_die): Remove last_filename.
15345 2002-01-22 Roger Sayle <roger@eyesopen.com>
15346 Richard Henderson <rth@redhat.com>
15349 * fold-const.c (fold): Optimize unsigned comparisons against
15350 UINT_MAX (and similar unsigned constants).
15352 2002-01-22 Janis Johnson <janis187@us.ibm.com>
15354 * Makefile.in (loop.o): Depend on OPTABS_H.
15355 * loop.c (emit_prefetch_instructions): Check the prefetch operand
15356 against the predicate.
15359 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15360 for the address operand.
15362 2002-01-22 Richard Henderson <rth@redhat.com>
15364 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15366 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
15369 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15370 preprocessor flags.
15372 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
15374 * config.gcc (x86_64-*-netbsd*): New target.
15375 * config/i386/netbsd64.h: New file.
15377 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15379 * regrename.c (kill_value): Fix typo.
15381 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15383 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15385 * config/rs6000/rs6000.h: Same.
15387 * function.c (instantiate_virtual_regs): Remove
15388 STARTING_FRAME_PHASE.
15389 (assign_stack_local_1): Same.
15390 Calculate frame phase.
15392 2002-01-22 Nick Clifton <nickc@redhat.com>
15394 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15395 variable declaration to outer scope in order to simplify
15397 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15398 arm_hard_regno_mode_ok.
15399 * config/arm/arm-protos.h: Add a prototype for
15400 arm_hard_regno_mode_ok.
15401 * config/arm/arm.c (soft_df_operand): Remove now redundant
15402 check for DImode values using IP_REGNUM.
15403 (nonimmediate_soft_df_operand): Remove now redundant check for
15404 DImode values using IP_REGNUM.
15405 (arm_hard_regno_mode_ok): New function. New check: make sure
15406 that DImode values are not stored in IP_REGNUM.
15408 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15410 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15412 2002-01-22 Jason Merrill <jason@redhat.com>
15414 * c-semantics.c (genrtl_compound_stmt): Only check nesting
15415 consistency if this COMPOUND_STMT is scoped.
15417 2002-01-22 Kazu Hirata <kazu@hxi.com>
15419 * predict.c: Fix formatting.
15420 * print-tree.c: Likewise.
15421 * protoize.c: Likewise.
15422 * real.h: Likewise.
15424 * sbitmap.h: Likewise.
15425 * scan.c: Likewise.
15426 * sched-deps.c: Likewise.
15427 * sched-vis.c: Likewise.
15428 * sdbout.c: Likewise.
15429 * sibcall.c: Likewise.
15431 * ssa-ccp.c: Likewise.
15432 * ssa-dce.c: Likewise.
15433 * stmt.c: Likewise.
15434 * stor-layout.c: Likewise.
15435 * system.h: Likewise.
15437 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15439 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15440 if fits in bounds of base type.
15442 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15443 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15444 (add_bound_info, default): If can't find a context, make a
15446 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15448 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
15450 * c-typeck.c (parser_build_binary_op): If result from
15451 build_binary_op is ERROR_MARK just return error_mark_node without
15452 further processing.
15454 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
15456 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15457 Split a.out-specific bits into...
15458 * config/netbsd-aout.h: ...this.
15459 * config/netbsd-elf.h: New file.
15460 * config/alpha/netbsd-elf.h: Remove.
15461 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15462 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15463 (STARTFILE_SPEC): Remove redundant definition.
15464 (ENDFILE_SPEC): Likewise.
15465 (LINK_SPEC): Likewise.
15466 (CPP_SPEC): Likewise.
15467 (ASM_SPEC): Likewise.
15468 (LIB_SPEC): Likewise.
15469 (SWITCH_TAKES_ARG): Likewise.
15470 (TARGET_MEM_FUNCTIONS): Likewise.
15471 (CPP_PREDEFINES): Redefine.
15472 (ASM_FINAL_SPEC): Remove redefinition.
15473 (ASM_COMMENT_START): Redefine.
15474 (FUNCTION_PROFILER): Define.
15475 (TARGET_VERSION): Redefine.
15476 Comment and formatting cleanup.
15477 * config/i386/netbsd.h: Include <netbsd-aout.h>.
15478 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15479 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15480 big- or little-endian.
15481 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15482 * config.gcc (*-*-netbsd*): Add definitions common to all
15484 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15485 gnu_ld definitions. Add netbsd-elf.h to and remove
15486 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
15487 tmake_file, and don't lose previous tmake_file contents.
15488 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15489 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15490 gnu_ld definitions. Add netbsd-elf.h to tm_file.
15491 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15492 (mipsel-*-netbsd*): Rename this to...
15493 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
15494 mips/little.h to tm_file for mips*el-*.
15495 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15496 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15497 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15499 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
15501 * pa-protos.h (reg_before_reload_operand): New function prototype.
15502 * pa.c (reg_before_reload_operand): New function implementation.
15503 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
15504 contraints to "*m".
15506 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15508 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15510 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
15512 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15513 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15514 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15515 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15516 (ENDFILE_SPEC): Undefine.
15517 (STARTFILE_SPEC): Redefine for PA.
15519 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15521 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15523 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
15525 * config.gcc: Add entries to supported PowerPC --with-cpu
15528 2002-01-21 Jakub Jelinek <jakub@redhat.com>
15530 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15531 true for 64-bit mode only SSE registers in 32-bit mode.
15533 2002-01-21 Kazu Hirata <kazu@hxi.com>
15535 * unwind-dw2.c: Fix formatting.
15536 * unwind-dw2-fde.c: Likewise.
15537 * unwind-dw2-fde.h: Likewise.
15538 * unwind-pe.h: Likewise.
15539 * varasm.c: Likewise.
15540 * varray.h: Likewise.
15542 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
15544 Remove workaround for register stack overwrite bug in mmix.
15545 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15546 support for TARGET_REG_STACK_FILL_BUG.
15547 * config/mmix/mmix.h: Remove member has_call_without_parameters.
15548 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15550 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15551 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15552 -mno-reg-stack-fill-bug-workaround.
15553 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15554 machine member has_call_without_parameters.
15555 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15556 -mreg-stack-fill-bug-workaround and
15557 -mno-reg-stack-fill-bug-workaround.
15558 (MMIX Options): Ditto.
15560 2002-01-21 Kazu Hirata <kazu@hxi.com>
15562 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15564 Remove redundant code.
15566 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
15568 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15569 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15570 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15571 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15572 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15573 out target macro definitions and non-target-specific comments
15574 mostly taken from old versions of the manual.
15576 2002-01-20 Kazu Hirata <kazu@hxi.com>
15578 * config/h8300/h8300.h: Fix comment formatting.
15579 * config/ia64/aix.h: Likewise.
15580 * config/ia64/ia64-protos.h: Likewise.
15581 * config/ia64/ia64.c: Likewise.
15582 * config/ia64/ia64.h: Likewise.
15583 * config/ia64/ia64intrin.h: Likewise.
15584 * config/ia64/linux.h: Likewise.
15585 * config/ia64/unwind-aix.c: Likewise.
15586 * config/ia64/unwind-ia64.c: Likewise.
15588 2002-01-20 Kazu Hirata <kazu@hxi.com>
15590 * config/h8300/h8300.c: Revise comments about shift code.
15592 2002-01-20 Kazu Hirata <kazu@hxi.com>
15594 * config/h8300/h8300.c (function_arg): Update a comment.
15596 2002-01-20 Kazu Hirata <kazu@hxi.com>
15598 * config/h8300/h8300.md: Update the comments at the beginning
15601 2002-01-20 Kazu Hirata <kazu@hxi.com>
15603 * config/i370/i370.c: Fix comment formatting.
15604 * config/i370/i370.h: Likewise.
15605 * config/i370/i370.md: Likewise.
15606 * config/i370/linux.h: Likewise.
15608 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15610 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15612 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15613 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15614 in incomplete case.
15616 2002-01-20 Graham Stott <grahams@redhat.com>
15618 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15620 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
15622 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15624 2002-01-19 Tom Rix <trix@redhat.com>
15626 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15628 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
15630 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15632 * function.c (assign_stack_local_1): Adjust x_frame_offset with
15633 STARTING_FRAME_PHASE.
15634 (STARTING_FRAME_PHASE): New.
15635 (instantiate_virtual_regs): Check saneness of
15636 STARTING_FRAME_PHASE.
15638 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15640 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
15642 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15644 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
15646 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15647 be used for bootstrapping GCC 3.0.
15649 2002-01-18 Kazu Hirata <kazu@hxi.com>
15651 * config/h8300/h8300.md: Fix an insn length.
15653 2002-01-18 Kazu Hirata <kazu@hxi.com>
15655 * bitmap.h: Fix comment formatting.
15656 * combine.c: Likewise.
15657 * cppfiles.c: Likewise.
15658 * c-pragma.h: Likewise.
15659 * c-typeck.c: Likewise.
15661 * dwarf2out.c: Likewise.
15662 * function.c: Likewise.
15664 * genattrtab.c: Likewise.
15665 * gthr-win32.h: Likewise.
15666 * haifa-sched.c: Likewise.
15667 * predict.c: Likewise.
15668 * rtlanal.c: Likewise.
15670 * unwind-dw2-fde.h: Likewise.
15671 * unwind-pe.h: Likewise.
15672 * vmsdbgout.c: Likewise.
15674 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15676 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15677 if type_required and passed decl.
15679 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
15681 * config.gcc (cpu_type): Include altivec.h in powerpc
15685 * config/rs6000/altivec.h: New.
15687 2002-01-17 David Edelsohn <edelsohn@gnu.org>
15689 * doc/install.texi (*-ibm-aix*): Update assembler and exception
15690 handling information.
15691 * doc/trouble.texi (Interoperation): Add libstdc++ information
15693 (Misunderstandings): Add template instantiation and static template
15694 member information for AIX.
15696 2002-01-17 Jason Merrill <jason@redhat.com>
15698 * dbxout.c (dbxout_type): Support const and volatile.
15700 * except.c (add_partial_entry): Remove backwards compatibility code.
15701 (end_protect_partials): Likewise.
15703 2002-01-17 Jakub Jelinek <jakub@redhat.com>
15705 * config/ia64/ia64.md (prologue_use): New.
15706 * config/ia64/ia64.c (ia64_expand_prologue): Use
15707 gen_prologue_use instead of gen_rtx_USE.
15708 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15709 as CODE_FOR_pred_rel_mutex.
15710 (ia64_sched_reorder2): Likewise.
15712 2002-01-16 Eric Christopher <echristo@redhat.com>
15714 * config/mips/r3900.h: Reformat.
15715 (SUBTARGET_CPP_SIZE_SPEC): Remove.
15716 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15717 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15718 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15719 * config/mips/t-elf: Remove mips3 multilib.
15721 2002-01-16 H.J. Lu <hjl@gnu.org>
15723 * config/mips/linux.h: Include "mips/abi64.h".
15725 2002-01-16 H.J. Lu <hjl@gnu.org>
15727 * config/mips/t-linux: New.
15729 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15731 * config/mips/linux.h: Don't include "gofast.h".
15732 (INIT_SUBTARGET_OPTABS): Removed.
15734 2002-01-16 Kazu Hirata <kazu@hxi.com>
15736 * config/h8300/h8300-protos.h: Replace emit_a_shift with
15738 * config/h8300/h8300.c: Likewise.
15739 * config/h8300/h8300.md: Likewise.
15741 2002-01-16 Kazu Hirata <kazu@hxi.com>
15743 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15744 spaces after an opcode name.
15745 (pushqi1_h8300hs): Likewise.
15746 (pushhi1_h8300hs): Likewise.
15748 2002-01-16 Kazu Hirata <kazu@hxi.com>
15750 * doc/extend.texi: Replace "option" with "attribute"
15753 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15755 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15756 (and:DI () (const_int -8)).
15757 (split_small_symbolic_mem_operand): Split
15758 (mem (and:DI () (const_int -8)).
15760 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15763 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15764 same way as TYPE_IMUL.
15765 (ultrasparc_sched_reorder): Likewise.
15766 * config/sparc/sparc.md (type): Add comment to update
15767 ultrasparc_sched_reorder when making changes.
15769 2002-01-16 Kazu Hirata <kazu@hxi.com>
15771 * doc/invoke.texi: Change the dump file name of block
15772 reordering pass from 28.bbro to 29.bbro.
15773 Mention -dk option.
15775 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
15777 * i386.md (minsf splitter): Fix pasto.
15779 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15781 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15782 to frame pointer initialisation instruction.
15783 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15784 initialisation instruction.
15785 (soft_df_operand): Do not accept the IP register.
15786 (nonimmediate_soft_df_operand): Do not accept the IP register.
15788 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15791 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15792 MASK_V8 being both set.
15794 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
15796 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15797 insn for GOT register; add REG_MAYBE_DEAD notes instead.
15798 config/s390/s390.md (call, call_value): Add GOT register to
15799 CALL_INSN_FUNCTION_USAGE where needed.
15800 (call_exp, call_value_exp): New.
15802 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15804 * config/arm/arm.c: General formatting tidy up.
15806 2002-01-16 Graham Stott <grahams@redhat.com>
15808 * calls.c (try_to_integrate): Use "(size_t)" intermediate
15809 cast and when casting an integer literal to "rtx" pointer.
15810 (expand_call): Likewise.
15811 * flow.c (try_pre_increment): Likewise.
15812 (find_use_as_address): Likewise.
15813 * integrate.c (expand_iline_function): Likewise.
15814 * regmove.c (try_auto_increment): Likewise.
15816 2002-01-16 Graham Stott <grahams@redhat.com>
15818 * sched-rgn.c (passed): Use sbitmap_free.
15819 (header): Likewise.
15821 (in_queue): Likewise.
15822 (in_stack): Likewise.
15824 2002-01-15 Eric Christopher <echristo@redhat.com>
15826 * flow.c (propagate_one_insn): Change to use fatal_insn.
15828 2002-01-15 Kazu Hirata <kazu@hxi.com>
15830 * expmed.c (extract_fixed_bit_field): Remove unused code.
15831 * system.h: Poison SLOW_ZERO_EXTEND.
15832 * doc/tm.texi: Remove.
15833 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15834 * config/arm/arm.h: Likewise.
15835 * config/avr/avr.h: Likewise.
15836 * config/clipper/clipper.h: Likewise.
15837 * config/convex/convex.h: Likewise.
15838 * config/d30v/d30v.h: Likewise.
15839 * config/dsp16xx/dsp16xx.h: Likewise.
15840 * config/elxsi/elxsi.h: Likewise.
15841 * config/fr30/fr30.h: Likewise.
15842 * config/h8300/h8300.h: Likewise.
15843 * config/i370/i370.h: Likewise.
15844 * config/i386/i386.h: Likewise.
15845 * config/m68k/m68k.h: Likewise.
15846 * config/mips/mips.h: Likewise.
15847 * config/ns32k/ns32k.h: Likewise.
15848 * config/pdp11/pdp11.h: Likewise.
15849 * config/pj/pj.h: Likewise.
15850 * config/s390/s390.h: Likewise.
15851 * config/sh/sh.h: Likewise.
15852 * config/stormy16/stormy16.h: Likewise.
15853 * config/v850/v850.h: Likewise.
15854 * config/vax/vax.h: Likewise.
15855 * config/we32k/we32k.h: Likewise.
15857 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15859 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15860 (altivec_lvsl): Change constraint to b.
15861 (altivec_lvsr): Same.
15862 (altivec_lvebx): Same.
15863 (altivec_lvehx): Same.
15864 (altivec_lvewx): Same.
15865 (altivec_lvxl): Same.
15866 (altivec_lvx): Same.
15867 (altivec_stvx): Add parallel.
15868 (altivec_stvxl): Same.
15869 (altivec_stvehx): Same.
15870 (altivec_stvebx): Same.
15871 (altivec_stvebx): Same.
15873 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15875 * config.gcc: Change altivec.h to altivec-defs.h.
15877 * config/rs6000/altivec.h: Delete.
15879 * config/rs6000/altivec-defs.h: Add.
15881 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15883 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15886 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15887 less than or equal to eight bytes.
15889 * vax.md (andsi3): Remove constraints and change SET destination
15890 operand type to nonimmediate_operand.
15891 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
15892 when it is a CONST_INT.
15894 2002-01-15 Jason Merrill <jason@redhat.com>
15896 * c-common.def (FILE_STMT): New code.
15897 * c-common.c (statement_code_p): It's a statement.
15898 * c-common.h (stmt_tree_s): Add x_last_filename.
15899 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15900 (last_expr_filename): New macro.
15901 * c-semantics.c (begin_stmt_tree): Initialize it.
15902 (add_stmt): If the filename changed, also insert a
15904 (expand_stmt): Handle seeing one.
15906 2002-01-15 Eric Christopher <echristo@redhat.com>
15908 * flow.c (propagate_one_insn): Add error message and print out
15909 insn for debugging.
15911 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15913 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15914 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15915 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15916 TRAMPOLINE_ALIGNMENT.
15917 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
15919 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15920 PCC_BITFIELD_TYPE_MATTERS.
15921 * config/interix.h (STDC_VALUE): Remove. Use
15922 STDC_0_IN_SYSTEM_HEADERS.
15923 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15924 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15925 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15927 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15929 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15930 not work on this platform currently.
15932 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15934 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15935 readonly_warning in _().
15937 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15939 * gcc.c (delete_if_ordinary): Backout previous change.
15941 2002-01-15 Kazu Hirata <kazu@hxi.com>
15943 * config/h8300/h8300.c (print_operand): Remove support for
15944 unused operand characters.
15946 * read-rtl.c: Fix formatting.
15947 * real.c: Likewise.
15948 * recog.c: Likewise.
15949 * regclass.c: Likewise.
15950 * regmove.c: Likewise.
15951 * reg-stack.c: Likewise.
15952 * reload1.c: Likewise.
15953 * rtlanal.c: Likewise.
15955 2002-01-15 Kazu Hirata <kazu@hxi.com>
15957 * config/i386/i386.c: Fix formatting.
15959 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15961 * c-typeck.c (process_init_element): Don't save_expr
15962 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15964 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15966 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15967 emit optional traceback table if optimize_size or TARGET_ELF.
15968 * config/rs6000/rs6000.md (prefetch): New.
15970 2002-01-15 Andreas Jaeger <aj@suse.de>
15972 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15974 2002-01-15 Kazu Hirata <kazu@hxi.com>
15976 * mips-tfile.c: Fix formatting.
15978 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15980 * unroll.c (final_reg_note_copy): Fix previous commit.
15982 2002-01-14 Kazu Hirata <kazu@hxi.com>
15984 * config/h8300/h8300-protos.h: Remove the prototype for
15986 * config/h8300/h8300.c (eq_operator): Remove.
15988 2002-01-14 Richard Henderson <rth@redhat.com>
15990 * config/i386/i386.md (prefetch): Tidy.
15991 (prefetch_3dnow): Fix locality operand.
15993 2002-01-14 Richard Henderson <rth@redhat.com>
15995 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15996 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15998 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
16000 * reload1.c (reload_combine): Pass reg_sum replacement through
16001 copy_rtx in loop performing multiple changes.
16003 2002-01-14 Jakub Jelinek <jakub@redhat.com>
16005 * except.c (remove_unreachable_regions): New.
16006 (free_eh_status): Clear exception_handler_labels.
16007 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
16008 (find_exception_handler_labels): Don't add the same label more than
16010 (remove_exception_handler_label): Don't die if
16011 find_exception_handler_labels hasn't been called for the current
16014 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
16016 * toplev.c (rest_of_compilation): Rebuild jump labels after
16019 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
16021 * doc/extend.texi: Move documentation of X86 built-in functions
16023 * doc/invoke.texi: From here.
16024 * doc/sourcebuild.texi: Document location of documentation for
16025 machine built-in functions.
16027 2002-01-13 Christopher Faylor <cgf@redhat.com>
16029 * cppfiles.c (TEST_THRESHOLD): New macro.
16030 (SHOULD_MMAP): Ditto.
16031 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
16034 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
16036 * unroll.c (final_reg_note_copy): Properly handle
16038 (unroll_loops): Fix LOOP_CONDITION heuristics.
16040 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
16042 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
16043 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
16045 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
16047 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
16050 2002-01-14 Tom Rix <trix@redhat.com>
16052 * config/rs6000/rs6000.md: Fix typo with sradi.
16054 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
16056 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
16057 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
16058 (clrstrdi, clrstrsi): Adapt callers.
16060 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
16062 (movti splitter): Never use register 0 as base register.
16064 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
16066 * combine.c (simplify_shift_const): Always generate new rtx
16067 for shift expression instead of reusing given expression.
16069 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16071 * config/alpha/alpha.c (alpha_expand_mov): Don't call
16072 alpha_legitimize_address unless mode is Pmode.
16074 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
16076 * doc/md.texi (Modifiers): Document the '*' constraint for the
16079 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
16080 * doc/extend.texi (Function Attributes): 'interrupt' is valid
16083 2002-01-13 Richard Henderson <rth@redhat.com>
16085 * reload.c (find_reloads): Use a hard reg destination as reload reg
16086 for an input reload of the source.
16088 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16090 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
16093 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
16095 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
16096 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
16098 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
16100 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16102 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
16104 2002-01-12 Tom Rix <trix@redhat.com>
16106 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
16109 2002-01-12 Richard Henderson <rth@redhat.com>
16111 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
16113 * doc/invoke.texi: Update Alpha options.
16115 * doc/invoke.texi: Update i386 built-in function lists.
16117 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
16119 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
16120 referencing outside.
16122 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16124 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
16125 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
16126 offsets, and change line folding.
16127 * optabs.c (expand_binop): Remove warnings.
16128 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
16130 2002-01-12 Graham Stott <grahams@redhat.com>
16132 * attribs.c (handle_deprecated_attribute): constify WHAT.
16133 * diagnostic.c (warn_deprecated_use): Add braces, fixes
16134 dangling else warning and constify WHAT.
16135 * except.h (struct function, struct inline_remap): Move
16136 struct tag forward defs before all prototypes.
16137 (duplicate_eh_regions): Whitespace.
16139 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
16141 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16142 MODE_BASE_REG_CLASS.
16143 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
16145 2002-01-12 Richard Henderson <rth@redhat.com>
16147 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
16148 (ix86_expand_vector_move): New.
16149 (bdesc_2arg): Remove andps, andnps, orps, xorps.
16150 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
16151 Remove old prefetch builtins. Special case the logicals removed above.
16152 (ix86_expand_builtin): Likewise.
16153 (safe_vector_operand): Use V4SFmode, not TImode.
16154 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
16155 (ix86_expand_timode_binop_builtin): New.
16156 * config/i386/i386-protos.h: Update.
16157 * config/i386/i386.h (enum ix86_builtins): Update.
16158 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
16159 Use ix86_expand_vector_move in vector move expanders.
16160 (movti_internal, movti_rex64): Add xorps alternative.
16161 (sse_clrv4sf): Rename and adjust from sse_clrti.
16162 (prefetch): Don't work so hard.
16163 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
16164 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
16165 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
16167 2002-01-11 Richard Henderson <rth@redhat.com>
16169 * config/i386/mmintrin.h: New file.
16170 * config/i386/xmmintrin.h: New file.
16171 * config.gcc (i?86-*-*): Add extra_headers.
16172 * simplify-rtx.c (simplify_unary_operation): Handle saturating
16174 (simplify_binary_operation): Handle saturating arithmetic codes.
16175 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
16176 not the lowpart subreg.
16177 (ix86_expand_builtin): Return a TImode dummy register instead of 0
16179 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
16181 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16183 * conflict.c (conflict_graph_compute): Free regsets when finished.
16184 * ssa.c (compute_coalesced_reg_partition): Likewise.
16186 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16188 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
16189 every where we allocate a register.
16191 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16193 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
16194 * lcm.c (compute_earliest, compute_farthest): Likewise.
16196 2002-01-11 Janis Johnson <janis187@us.ibm.com>
16198 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
16200 2002-01-11 Janis Johnson <janis187@us.ibm.com>
16202 * doc/rtl.texi (Insns): Fix 2 typos.
16204 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
16206 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
16207 options. Use @table @gcctabopt for MMIX options. Add index
16208 entries for MMIX options. Start new paragraph with first
16209 heading of the machine-dependent options.
16211 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
16214 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
16215 * combine.c (force_to_mode): Same.
16216 * reload1.c (clear_reload_reg_in_use): Same.
16218 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
16220 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
16223 2002-01-11 Andreas Jaeger <aj@suse.de>,
16224 Brad Lucier <lucier@math.purdue.edu>
16226 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
16229 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
16231 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
16232 Protect with IN_LIBGCC.
16233 (LINK_EH_SPEC): Add required trailing space.
16235 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
16237 * c-tree.h: Move function declarations so that they are listed
16238 under the filename which contains them.
16239 (check_identifier, finish_decl_top_level,
16240 lookup_name_current_level_global, shadow_record_fields): Remove.
16242 2002-01-11 Andreas Jaeger <aj@suse.de>
16244 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
16247 2002-01-10 Richard Henderson <rth@redhat.com>
16249 * config/alpha/alpha.c (print_operand): Add 'J'.
16250 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
16251 new operand with the sequence number for the lituse. When splitting
16252 the insns, use gen_movdi_er_high_g and generate a sequence number.
16253 (gen_movdi_er_high_g): Print the sequence number if non-zero.
16255 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
16257 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
16258 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
16260 (altivec_expand_builtin): Same.
16261 (altivec_expand_stv_builtin): New.
16263 * config/rs6000/rs6000.h (rs6000_builtins): Same.
16265 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
16266 ("altivec_lvehx"): New.
16267 ("altivec_lvewx"): New.
16268 ("altivec_lvxl"): New.
16269 ("altivec_lvx"): New.
16270 ("altivec_stvx"): New.
16271 ("altivec_stvebx"): New.
16272 ("altivec_stvehx"): New.
16273 ("altivec_stvewx"): New.
16274 ("altivec_stvxl"): New.
16276 2002-01-10 Richard Henderson <rth@redhat.com>
16278 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
16279 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
16280 care not to delete instructions twice.
16282 2002-01-10 Zack Weinberg <zack@codesourcery.com>
16284 * toplev.c: Don't declare environ (it's not used anywhere).
16285 * configure.in: Don't check for declaration of environ.
16286 * config/i386/xm-mingw32.h: Don't #define environ.
16287 * config.in, configure: Regenerate.
16289 2002-01-10 Zack Weinberg <zack@codesourcery.com>
16291 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
16292 * configure: Regenerate.
16294 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
16295 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
16296 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
16298 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
16299 LIMITS_H_TEST here, not in m68k/x-next.
16300 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
16301 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
16303 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
16304 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
16305 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
16307 * config/i386/x-djgpp: Renamed i386/t-djgpp.
16308 * config/m88k/x-dolph: Renamed m88k/t-dolph.
16309 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
16310 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
16311 replacement of quadlib.asm with quadlib.c.
16313 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
16314 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
16315 config/rs6000/xm-beos.h: Delete file.
16317 * config.gcc: Update to match above changes.
16319 2002-01-10 Kazu Hirata <kazu@hxi.com>
16321 * config/h8300/h8300.h: Fix comment typos.
16322 * config/h8300/h8300.md: Likewise.
16323 * config/h8300/lib1funcs.asm: Likewise.
16325 2002-01-10 Dale Johannesen <dalej@apple.com>
16327 PR optimization/5269
16328 * unroll.c (precondition_loop_p): Make *increment be the correct
16329 sign when n_iterations known, to avoid confusing caller.
16331 2002-01-10 Kazu Hirata <kazu@hxi.com>
16333 * doc/extend.texi (deprecated): Fix a typo.
16335 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
16337 * basic-block.h (update_br_prob_note): Declare.
16338 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16339 (try_forward_edges): Care negative frequencies and update note.
16340 (outgoing_edges_match): Tweek conditional merging heuristics.
16341 (try_crossjump_to_edge): use update_br_prob_note.
16342 * cfglayout.c (fixup_reorder_chain): Likewise.
16343 * cfrtl.c (update_br_prob_note): New.
16344 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16346 * i386.c (ix86_decompose_address): Return -1 if address contains
16348 (legitimate_address_p): Require ix86_decompose_address to return 1.
16350 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16351 (cprop_insn): Likewise.
16353 2002-01-10 Kazu Hirata <kazu@hxi.com>
16355 * toplev.c: Fix formatting.
16356 * tree.c: Likewise.
16357 * tree-dump.c: Likewise.
16358 * unroll.c: Likewise.
16359 * unwind-dw2.c: Likewise.
16360 * unwind-dw2-fde.c: Likewise.
16361 * unwind-dw2-fde-glibc.c: Likewise.
16362 * unwind-sjlj.c: Likewise.
16364 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
16366 * doc/invoke.texi: Document PDP-11 options.
16368 2002-01-10 Kazu Hirata <kazu@hxi.com>
16370 * config/h8300/h8300.h: Fix formatting.
16372 2002-01-10 Ira Ruben <ira@apple.com>
16374 Add __attribute__ ((deprecated)).
16375 * extend.texi: Document __attribute__ ((deprecated)).
16376 * invoke.texi: Document -Wno-deprecated-declarations.
16377 * testsuite/g++.dg/other/deprecated.C: New C++ test.
16378 * testsuite/gcc.dg/deprecated.c: New C test.
16379 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16380 (c_common_attribute_table): Add "deprecated" entry.
16381 (handle_deprecated_attribute): New function.
16382 * c-decl.c (deprecated_states): New enum.
16383 deprecated_state: State of "deprecated" handling.
16384 (start_decl): Set deprecated_state based on attributes.
16385 (grokdeclarator): Test for deprecated uses, propagate attribute.
16386 * c-typeck.c (build_component_ref): Test for deprecated fields.
16387 (build_external_ref): Test for deprecated primaries.
16388 * diagnostic.c (warn_deprecated_use) New function to issue
16389 warnings about __attribute__ ((depricated)) references.
16390 * flags.h (warn_deprecated_decl): Extern declared for
16391 -W[no-]deprecated-declarations option.
16392 * print-tree.c (print_node): Show deprecated flag status.
16393 * toplev.c (warn_deprecated_decl): Defined.
16394 (W_options): Added "deprecated-declaration".
16395 * toplev.h (warn_deprecated_use): Extern declared.
16396 * tree.h (struct tree_common): Define deprecated_flag.
16397 (TREE_DEPRECATED): New macro to access flag.
16398 * cp/call.c (build_call): Test for deprecated calls.
16399 * cp/class.c (add_implicitly_declared_members): Set global
16400 flag to tell grokdeclarator to not issue deprecated warnings.
16401 * cp/cp-tree.h: Add extern for adding_implicit_members.
16402 * cp/decl.c (deprecated_states): New enum.
16403 (start_decl): Set deprecated_state based on attributes.
16404 (grokdeclarator): Test for deprecated uses, propagate attribute.
16405 * cp/lex.c (do_identifier): Test for deprecated primaries.
16406 * cp/typeck.c (build_component_ref): Test for deprecated fields.
16408 2002-01-10 Ira Ruben <ira@apple.com>
16410 Fix to assign attributes to inline member functions.
16411 * cp/decl.c (start_method): Handle attrlist.
16413 2002-01-10 Kazu Hirata <kazu@hxi.com>
16415 * combine.c (expand_field_assignment): Use subreg_lsb().
16417 2002-01-10 David Edelsohn <edelsohn@gnu.org>
16419 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16420 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16421 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16422 Recurse for any operand of AND as long as constant is non-zero.
16424 2002-01-10 Kazu Hirata <kazu@hxi.com>
16426 * config/h8300/h8300.md: Remove constraints from expanders.
16428 2002-01-10 Kazu Hirata <kazu@hxi.com>
16430 * varasm.c: Fix formatting.
16431 * varray.c: Likewise.
16432 * vmsdbgout.c: Likewise.
16433 * xcoffout.c: Likewise.
16435 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
16437 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16438 update edge probabilities to match.
16440 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
16442 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16444 * doc/languages.texi, doc/sourcebuild.texi: New files.
16445 * doc/configfiles.texi: Make a subsubsection. Update.
16446 * doc/configterms.texi: Add @node. Remove warning that this isn't
16447 instructions for building GCC.
16448 * doc/makefile.texi: Make a subsection.
16449 * doc/gccint.texi: Update.
16451 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
16453 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16455 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
16457 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16459 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
16461 * optabs.c (expand_fix): Look for wider integer modes first.
16463 * i386.md (mov?f): Avoid the fake const double trick for medium
16465 (min?f*/max?f*): Prohibit memory operands for i387 variant.
16466 (fop_df_4): Disable for SSE compilation.
16468 2002-01-10 Graham Stott <grahams@redhat.com>
16470 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16471 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16473 2002-01-10 Richard Henderson <rth@redhat.com>
16475 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16477 2002-01-10 Richard Henderson <rth@redhat.com>
16479 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16480 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
16482 2002-01-10 Kazu Hirata <kazu@hxi.com>
16484 * combine.c (can_combine_p): Fix a comment typo.
16486 2002-01-09 Zack Weinberg <zack@codesourcery.com>
16488 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16489 empty list correctly. Change loop index $t to $f for
16490 consistency with rest of Makefile.
16492 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
16494 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16495 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16497 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16498 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16499 (altivec_init_builtins): Same.
16500 (altivec_expand_unop_builtin): Return NULL_RTX on error.
16501 (altivec_expand_binop_builtin): Same.
16502 (altivec_expand_ternop_builtin): Same.
16505 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16506 ("altivec_vctuxs"): Fix typo.
16507 ("altivec_vnmsubfp"): Same.
16508 ("altivec_dssall"): New.
16509 ("altivec_mfvscr"): New.
16510 ("altivec_dss"): New.
16511 ("altivec_lvsl"): New.
16512 ("altivec_lvsr"): New.
16513 ("altivec_dstt"): New.
16514 ("altivec_dstst"): New.
16515 ("altivec_dststt"): New.
16516 ("altivec_dst"): New.
16518 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16519 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16521 2002-01-09 Richard Henderson <rth@redhat.com>
16523 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16525 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
16527 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16529 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16531 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16533 2002-01-09 Kazu Hirata <kazu@hxi.com>
16535 * read-rtl.c: Fix formatting.
16536 * real.c: Likewise.
16537 * regclass.c: Likewise.
16538 * regrename.c: Likewise.
16539 * reg-stack.c: Likewise.
16540 * reload1.c: Likewise.
16541 * reload.c: Likewise.
16544 2002-01-09 Kazu Hirata <kazu@hxi.com>
16546 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16547 to extract items in the expr_list chain.
16549 2002-01-09 Richard Henderson <rth@redhat.com>
16551 * config/vax/vax.c (vax_rtx_cost): Never abort.
16553 * config/vax/vax.h (REAL_ARITHMETIC): Define.
16555 2002-01-09 Jan Hubicka <jh@suse.cz>
16557 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16559 2002-01-09 Richard Henderson <rth@redhat.com>
16561 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16562 Unify code from various alternatives.
16564 2002-01-09 Richard Henderson <rth@redhat.com>
16566 * regrename.c (copy_value): Ignore the copy if the source register
16567 is present in the value chain with a narrower mode.
16569 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16571 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16572 for the c4x target. Also improve layout.
16574 2002-01-09 Richard Henderson <rth@redhat.com>
16576 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16577 * config/m32r/m32r.md (and ior xor splitters): Swap operands
16578 to match insn patterns.
16580 2002-01-09 Richard Henderson <rth@redhat.com>
16582 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16583 (copyprop_hardreg_forward_1): Likewise.
16585 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
16587 * pa.md (decrement_and_branch_until_zero): Change predicate for
16588 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16590 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
16592 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16593 gets undefined. For Darwin.
16595 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16597 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16599 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16601 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16603 2002-01-08 Richard Henderson <rth@redhat.com>
16605 * regrename.c (copy_value): Ignore overlapping copies.
16607 2002-01-08 Richard Henderson <rth@redhat.com>
16609 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16610 as needed to avoid shared structure.
16612 2002-01-08 Kazu Hirata <kazu@hxi.com>
16614 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16617 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16619 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16620 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16621 documentation of obsolete macros.
16622 * system.h: Poison these macros.
16623 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16624 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16625 config/c4x/c4x.h, config/clipper/clipper.h,
16626 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16627 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16628 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16629 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16630 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16631 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16632 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16633 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16634 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16635 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16636 config/sparc/sparc.h, config/stormy16/stormy16.h,
16637 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16638 definitions and commented out definitions of obsolete macros.
16639 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16640 of MAX_INT_TYPE_SIZE.
16642 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16644 * config/s390/s390.c (s390_preferred_reload_class): Never
16645 return ADDR_REGS if it isn't a subset of the given class.
16646 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16647 FP_REGS, but all superclasses as well.
16649 * config/s390/s390.c (s390_function_profiler): Fix thinko.
16651 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16652 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16653 must not be a const_int.
16655 2002-01-08 Richard Henderson <rth@redhat.com>
16657 * Makefile.in (toplev.o): Depend on options.h.
16658 (gcc.o): Depend on specs.h.
16660 2002-01-08 Jakub Jelinek <jakub@redhat.com>
16662 * expr.c (store_expr): Convert VOIDmode constants back to target's
16665 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16667 * doc/invoke.texi: Markup gcc as @command. Refer to
16668 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16669 of http://gcc.gnu.org/thanks.html.
16671 2002-01-08 Dale Johannesen <dalej@apple.com>
16673 * config/rs6000/rs6000.md: Add missing int register
16674 target case to movdf_low.
16676 2002-01-08 Zack Weinberg <zack@codesourcery.com>
16678 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16679 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
16680 (cppinit.o): Depend on except.h.
16681 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16682 s-specs): New rules.
16684 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16685 Don't create specs.h/options.h/gencheck.h here. Remove
16686 unnecessary variable settings from last argument of AC_OUTPUT.
16687 * config.in, configure: Regenerate.
16688 * intl.c: Hardcode package name as "gcc".
16690 * cppinit.c: Include except.h.
16691 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16693 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16694 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16695 (!)USING_SJLJ_EXCEPTIONS.
16696 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16698 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16700 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16701 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16702 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16703 documentation of obsolete macros.
16704 * system.h: Poison these macros.
16705 * config/d30v/d30v.h, config/ns32k/encore.h,
16706 config/stormy16/stormy16.h: Remove definitions and commented out
16707 definitions of obsolete macros.
16709 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
16711 * objc/objc-act.c (handle_class_ref): Mark the declaration of
16712 %sobjc_class_ref_%s as used - to prevent unwanted compiler
16715 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16717 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16718 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16719 to insn adjusting stack/frame pointer.
16720 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16721 accept operands that cause the insn to be non-splittable.
16723 2002-01-08 Graham Stott <grahams@redhat.com>
16725 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16726 (C_TYPE_FIELDS_VOLATILE): Likewise.
16727 (C_TYPE_BEING_DEFINED): Likewise.
16728 (C_IS_RESERVED_WORD): Likewise.
16729 (C_TYPE_VARIABLE_SIZE): Likewise.
16730 (C_DECL_VARIABLE_SIZE): Likewise.
16731 (C_MISSING_PROTOTYPE_WARNED): Likewise.
16732 (C_SET_EXP_ORIGINAL_CODE): Likewise.
16733 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16735 (C_DECL_ANTICIPATED): Likewise.
16736 (c_build_type_variant): Add parenthesis.
16738 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16740 * gcc.c (option_map): Remove --version.
16741 (process_command): Handle -fversion following the GNU Coding
16742 Standards. Partially addresses PR other/704.
16744 2002-01-08 Graham Stott <grahams@redhat.com>
16746 * combine.c (combine_instructions): Fix typo.
16748 2002-01-08 Graham Stott <grahams@redhat.com>
16750 * debug.h: Use "tree" and "rtx" throughout.
16752 * debug.c: Likewise.
16754 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
16756 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16757 constant pool, use the pool's version of the symbol instead.
16759 2002-01-07 Richard Henderson <rth@redhat.com>
16761 * regrename.c (find_oldest_value_reg): Ignore the value chain if
16762 the original register was copied in a mode with a fewer number of
16763 hard registers than the desired mode.
16764 (copyprop_hardreg_forward_1): Likewise.
16765 (debug_value_data): Fix loop test.
16766 * toplev.c (parse_options_and_default_flags): Reenable
16767 -fcprop-registers at -O1.
16769 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16771 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16772 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16774 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16777 * config/rs6000/rs6000.md: Add altivec predicate patterns.
16779 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
16781 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16782 (pa_output_function_prologue): Output local label at the beginning of
16783 the prologue when profiling.
16784 (hppa_profile_hook): Use the local label rather than the function label.
16785 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16787 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16789 * config/rs6000/rs6000.c (print_operand): Remove extra space.
16790 (altivec_expand_unop_builtin): Fix thinko.
16791 (altivec_expand_binop_builtin): Same.
16792 (altivec_expand_ternop_builtin): Same.
16793 (altivec_expand_builtin): Same.
16795 2002-01-07 Richard Henderson <rth@redhat.com>
16797 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16799 2002-01-07 Jason Merrill <jason@redhat.com>
16801 * unwind-dw2.c (execute_cfa_program): Use < again.
16803 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16805 * predict.c (combine_predictions_for_insn): Avoid division by zero.
16807 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16809 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16810 Don't allow -1 - x -> ~x simplifications in the first pass.
16812 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16814 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16816 (altivec_expand_binop_builtin): Same.
16817 (altivec_expand_unop_builtin): Same.
16818 (print_operand): Fix typo.
16819 (bdesc_1arg): Add vupk* variants.
16821 * rs6000.h (rs6000_builtins): Add vupk* enums.
16823 * rs6000.md: Add altivec_vupk* variants.
16825 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
16827 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16828 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16829 and last update dates.
16831 2002-01-07 Janis Johnson <janis187@us.ibm.com>
16833 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16835 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
16837 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16838 * config/avr/avr.h (CPP_SPEC): Likewise.
16839 (LINK_SPEC): Likewise.
16840 (CRT_BINUTILS_SPECS): Likewise.
16841 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16842 * doc/invoke.texi (AVR Options): Document them.
16844 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
16846 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16849 2002-01-07 Graham Stott <grahams@redhat.com>
16851 * config/i386/i386.h: Update copyright date.
16852 (HALF_PIC_PTR): Add parenthesis.
16853 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16854 (CONSTANT_ALIGNMENT): Add parenthesis.
16855 (DATA_ALIGNMENT): Likewise.
16856 (LOCAL_ALIGNMENT): Likewise.
16857 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16858 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16859 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16860 (HARD_REGNO_NREGS): Add paranethesis.
16861 (VALID_SSE_REG_MODE): Whitespace.
16862 (VALID_MMX_REG_MODE): Whitespace.
16863 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16864 (ix86_hard_regno_mode_ok): Add parenthesis.
16865 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16866 (RETURN_IN_MEMORY): Whitespace.
16867 (N_REG_CLASSES): Add parenthesis.
16868 (INTEGER_CLASS_P): Add parenthesis and wrap.
16869 (FLOAT_CLASS_P): Likewise.
16870 (SSE_CLASS_P): Likewise.
16871 (MMX_CLASS_P): Likewise.
16872 (MAYBE_INTEGER_CLASS_P): Likewise.
16873 (MAYBE_FLOAT_CLASS_P): Likewise.
16874 (MAYBE_SSE_CLASS_P): Likewise.
16875 (MAYBE_MMX_CLASS_P): Likewise.
16876 (Q_CLASS_P): Likewise.
16877 (GENERAL_REGNO_P): Uppercase macro parameter.
16878 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16879 (FP_REGNO_P): Likewise.
16880 (ANY_FP_REGNO_P): Uppercase macro parameter.
16881 (SSE_REGNO_P): Likewise.
16882 (SSE_REGNO): Likewise.
16883 (SSE_REG_P): Likewise.
16884 (SSE_FLOAT_MODE_P): Likewise.
16885 (MMX_REGNO_P): Likewise.
16886 (MMX_REG_P):Likewise.
16887 (STACK_REG_P): Likewise.
16888 (NON_STACK_REG_P): Likewise.
16889 (STACK_TOP_P): Likewise.
16890 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16891 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16892 (SECONDARY_MEMORY_NEEDED): Likewise.
16893 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16894 (MD_ASM_CLOBBERS): Whitespace and wrap.
16895 (MUST_PASS_IN_STACK): Whitespace and wrap.
16896 (RETURN_POPS_ARGS): Add parenthesis.
16897 (INIT_CUMULATIVE_ARGS): Likewise.
16898 (FUNCTION_ARG): Likewise.
16899 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16900 (SETUP_INCOMING_VARARGS): Likewise.
16901 (BUILD_VA_LIST_TYPE): Add parenthesis.
16902 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16904 (EXPAND_BUILTIN_VA_ARG): Likewise.
16905 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16906 (INITIALIZE_TRAMPOLINE): Add parenthesis.
16907 (INITIAL_ELIMINATION_OFFSET): Likewise.
16908 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16909 (REGNO_OK_FOR_BASE_P): Likewise.
16910 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16911 (REGNO_OK_FOR_DIREG_P): Likewise.
16912 (REG_OK_FOR_INDEX_P): Whitespace.
16913 (REG_OK_FOR_BASE_P): Whitespace.
16914 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16916 (FIND_BASE_TERM): Fix typo.
16917 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
16918 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16919 (SYMBOLIC_CONST; Whitespace.
16920 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
16921 (ENCODE_SECTION_INFO): Whitespace.
16922 (FINALIZE_PIC): Remove do { ... } while (0).
16923 (PROMOTE_MODE): Wrap in do { ... } while (0).
16924 (CONST_COSTS): Whitespace.
16925 (RTX_COSTS): Add paramethesis, whitespace and wrap.
16926 (REGISTER_MOVE_COST): Add parenthesis.
16927 (MEMORY_MOVE_COST): Likewise.
16928 (EXTRA_CC_MODES): Whitespace.
16929 (SELECT_CC_MODE): Add parenthesis and whitespace.
16930 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16931 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16932 (ASM_OUTPUT_LABEL): Add paramethesis.
16933 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16934 (ASM_OUTPUT_REG_POP): Likewise.
16935 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16936 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16938 * config/i386/i386.c: Update copyright.
16939 (CHECK_STACK_LIMIT): Add parenthesis.
16940 (AT_BP): Uppercase macro parameter.
16941 (x86_64_int_parameter_registers): Constify.
16942 (x86_64_int_return_registers): Likewise.
16943 (ix86_compare_op0): Use rtx.
16944 (construct_container): Constify INTREG parameter.
16945 (function_arg): Use rtx.
16947 * diagnostic.h: Update copyright date.
16948 (output_buffer_state): Add parenthesis.
16949 (output_buffer_format_args): Likewise.
16951 * combine.c (combine_instructions): Replace XEXP (links, 0)
16954 2002-01-06 H.J. Lu <hjl@gnu.org>
16956 * cfgcleanup.c (thread_jump): Fix 2 typos.
16958 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16960 * config.gcc: Add support for --enable-altivec.
16962 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16964 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16966 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16968 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16969 __objc_class_name_*.
16971 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16973 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16975 2002-01-06 Richard Henderson <rth@redhat.com>
16977 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16978 nop them out. Increment label reference count for REG_LABEL.
16979 (fill_slots_from_thread): Frob label reference count around
16980 delete_related_insns.
16982 2002-01-05 Richard Henderson <rth@redhat.com>
16984 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16987 2002-01-05 Richard Henderson <rth@redhat.com>
16989 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16990 * integrate.c (output_inline_function): Likewise.
16991 * toplev.c (rest_of_compilation): Do it here instead. Move call
16992 to remove_unnecessary_notes after emitting abstract instance.
16993 Force an emitted nested function to have its parent emited as well.
16994 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16996 (rtl_for_decl_location): Do not look at reload data structures
16997 before reload has run.
16999 2002-01-05 Kazu Hirata <kazu@hxi.com>
17001 * cse.c: Fix formatting.
17002 * dwarf2asm.c: Likewise.
17003 * dwarf2out.c: Likewise.
17004 * explow.c: Likewise.
17005 * expmed.c: Likewise.
17006 * function.c: Likewise.
17007 * gcov.c: Likewise.
17008 * gencheck.c: Likewise.
17009 * genrecog.c: Likewise.
17010 * ggc-common.c: Likewise.
17011 * ggc-page.c: Likewise.
17012 * global.c: Likewise.
17014 2002-01-05 Kazu Hirata <kazu@hxi.com>
17016 * combine.c: Fix formatting.
17018 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
17021 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
17023 2002-01-05 David Edelsohn <edelsohn@gnu.org>
17025 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
17026 as 1 for __powerpc64__ as well.
17028 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
17030 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
17033 2002-01-05 Daniel Berlin <dan@dberlin.org>
17035 * lcm.c: Revert change, due to performance regression it causes on
17036 SPEC because it's slightly more conservative (sigh, I hate
17039 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
17041 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
17043 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
17045 * doc/cppinternals.texi: Update.
17047 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
17049 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
17050 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
17052 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
17053 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
17054 kludge for pre-october-14th mmix versions to handle new-found bug
17055 with PUSHJ/PUSHGO and the register stack.
17056 * config/mmix/mmix.h (struct machine_function): Rename member
17057 has_call_value_without_parameters to has_call_without_parameters.
17058 All referers changed.
17059 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
17060 TARGET_MASK_BRANCH_PREDICT): New macros.
17061 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
17062 -mno-reg-stack-fill-bug-workaround.
17063 * config/mmix/mmix.md ("call"): Set struct machine member
17064 has_call_without_parameters.
17066 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
17068 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
17070 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
17072 * cfgcleanup.c: Include tm_p.h
17073 (mark_effect): Fix handling of hard register; fix handling of SET
17075 2002-01-04 Kazu Hirata <kazu@hxi.com>
17077 * config/h8300/h8300.md (anonymous patterns): Check that
17078 operands are registers before using REGNO on them.
17080 2002-01-03 Roland McGrath <roland@frob.com>
17082 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
17084 2002-01-04 Jakub Jelinek <jakub@redhat.com>
17086 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
17087 * c-common.h (genrtl_expr_stmt_value): Likewise.
17088 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
17089 (expand_expr_stmt_value): Add maybe_last argument.
17090 Don't warn about statement with no effect if it is the last statement
17091 in expression statement.
17092 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
17093 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
17094 expand_expr_stmt_value.
17095 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
17096 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
17097 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
17098 as maybe_last to expand_expr_stmt_value.
17100 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
17102 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
17103 be passed in, do not build it.
17104 (c_begin_if_stmt): New function.
17105 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
17106 * c-common.h (c_expand_start_cond): Update prototype.
17107 (c_begin_if_stmt): Prototype new function.
17108 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
17109 * c-parse.in (if_prefix): Use c_begin_if_stmt,
17110 c_begin_while_stmt and c_finish_while_stmt_cond.
17112 2002-01-04 William Cohen <wcohen@redhat.com>
17114 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
17115 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17116 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17117 * config/pa/som.h (ASM_FILE_START): Likewise.
17119 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
17121 * lcm.c: Include df.h.
17122 Add available_transfer_function prototype.
17123 (compute_available): Rework to use iterative dataflow framework.
17124 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
17125 with bb_info in df.h
17126 (available_transfer_function): New function.
17128 * Makefile.in (lcm.o): add df.h to dependencies.
17130 2002-01-04 Richard Henderson <rth@redhat.com>
17132 * config/alpha/alpha.c (some_operand): Accept HIGH.
17133 (input_operand): Likewise; accept simple references to globals.
17134 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
17135 (alpha_const_double_ok_for_letter_p): Likewise.
17136 (alpha_extra_constraint): Likewise.
17137 (alpha_preferred_reload_class): Likewise. Do not force
17138 symbolic constants to memory.
17139 (alpha_legitimate_address_p): Accept simple references
17140 to small_symbolic_operand.
17141 (alpha_legitimize_address): New arg scratch. Be prepared to be
17142 called when no_new_pseudos. Emit simple symbolic references.
17143 Split integers into low, high, and rest.
17144 (alpha_expand_mov): Use alpha_legitimize_address.
17145 (some_small_symbolic_mem_operand): New.
17146 (split_small_symbolic_mem_operand): New.
17147 * config/alpha/alpha-protos.h: Update.
17148 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
17149 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
17150 (EXTRA_CONSTRAINT): Likewise.
17151 (PREFERRED_RELOAD_CLASS): Likewise.
17152 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
17153 (PREDICATE_CODES): Update.
17154 * config/alpha/alpha.md: New post-reload splitters to convert
17155 simplfied symbolic operands to the form that references $29.
17156 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
17157 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
17159 2002-01-03 Richard Henderson <rth@redhat.com>
17161 * local-alloc.c (function_invariant_p): Update commentary.
17163 2002-01-04 H.J. Lu <hjl@gnu.org>
17165 * toplev.c (rest_of_compilation): Fix a typo when calling
17168 2002-01-03 Kazu Hirata <kazu@hxi.com>
17170 * c-common.c: Fix formatting.
17171 * diagnostic.c: Likewise.
17172 * doloop.c: Likewise.
17173 * dwarf2out.c: Likewise.
17175 2002-01-03 Kazu Hirata <kazu@hxi.com>
17177 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
17178 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
17180 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
17182 * cpperror.c: Update comments and copyright.
17183 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
17184 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
17186 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
17188 * collect2.c (main): Use strcmp when testing for "-shared".
17190 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
17192 * cppmacro.c: Don't include intl.h. Update comments.
17193 (new_number_token): Allocate enough buffer for 64-bit unsigned
17194 integers; update prototype.
17195 * cppmain.c: Update comments.
17197 2002-01-03 William Cohen <wcohen@redhat.com>
17199 * function.h (struct function): Add profile.
17200 (current_function_profile): New.
17201 doc/extend.texi: Update documentation.
17202 * final.c (final_start_function): Use current_function_profile
17203 instead of profile_flag.
17204 (profile_after_prologue): Likewise.
17205 * function.c (expand_function_start): Likewise.
17206 (expand_function_start): Likewise.
17207 * config/alpha/alpha.c (direct_call_operand):
17208 (alpha_does_function_need_gp): Likewise.
17209 (alpha_expand_prologue): Likewise.
17210 * config/arm/arm.c (arm_expand_prologue): Likewise.
17211 thumb_expand_prologue: Likewise.
17212 * config/d30v/d30v.c (d30v_stack_info): Likewise.
17213 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
17214 (fr30_expand_prologue): Likewise.
17215 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
17216 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
17217 * config/i386/i386.h (FINALIZE_PIC): Likewise.
17218 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
17219 * config/i960/i960.c (i960_output_function_prologue): Likewise.
17220 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
17221 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
17222 (m32r_expand_prologue): Likewise.
17223 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
17224 (m88k_expand_prologue): Likewise.
17225 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
17226 * config/mips/mips.c (compute_frame_size): Likewise.
17227 (mips_expand_prologue): Likewise.
17228 (mips_can_use_return_insn): Likewise.
17229 * config/pa/elf.h (ASM_FILE_START): Likewise.
17230 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17231 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17232 * config/pa/som.h (ASM_FILE_START): Likewise.
17233 * config/romp/romp.c (romp_using_r14): Likewise.
17234 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
17235 (rs6000_stack_info): Likewise.
17236 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17237 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
17238 * config/v850/v850.c (compute_register_save_size): Likewise.
17240 2002-01-03 Jakub Jelinek <jakub@redhat.com>
17242 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
17243 gen_lowpart_common fails, use gen_lowpart_SUBREG.
17245 2002-01-03 Turly O'Connor <turly@apple.com>
17247 * darwin.c (machopic_output_possible_stub_label): Don't generate
17248 stub routines for pseudo-stubs which we've just defined.
17250 2002-01-03 Kazu Hirata <kazu@hxi.com>
17252 * builtins.c: Fix formatting.
17253 * c-typeck.c: Likewise.
17254 * combine.c: Likewise.
17255 * expr.c: Likewise.
17256 * loop.c: Likewise.
17258 2002-01-03 Andreas Schwab <schwab@suse.de>
17260 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
17261 and return true if _cpp_push_next_buffer pushed a new include
17263 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
17264 _cpp_pop_file_buffer did not push a new file.
17265 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
17267 2002-01-02 Eric Christopher <echristo@redhat.com>
17269 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
17270 FIND_REG_INC_NOTE call. Update copyright.
17271 * loop.c (canonicalize_condition): Ditto.
17272 * reorg.c (delete_scheduled_jump): Ditto.
17274 2002-01-03 Kazu Hirata <kazu@hxi.com>
17276 * gcse.c: Fix formatting.
17278 2002-01-03 Graham Stott <grahams@redhat.com>
17280 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
17281 forward defs for struct tags rtx_def, union_tree, rtvec_def
17282 also output corresponding typedefs for rtx, tree, and rtvec.
17284 * system.h: Move forward defs for struct tags rtx_def, union_tree,
17285 rtvec_def along with corresponding typedefs for rtx, tree, and
17286 rtvec to config.h, hconfig.h, tconfig.h.
17288 2002-01-03 Graham Stott <grahams@redhat.com>
17290 * tree.h: Update copyright date.
17291 (IS_EXPR_CODE_CLASS): Add parenthesis.
17292 (TREE_SET_CODE): Add whitespace.
17293 (TREE_CHECK): Add parenthesis.
17294 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
17295 (CST_OR_CONSTRUCTOR_CHECK):
17296 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
17297 (TREE_SYMBOL_REFERENCED): Whitespace.
17298 (INT_CST_LT): Likewise.
17299 (INT_CST_LT_UNSIGNED): Likewise.
17300 (tree_real_cst): Unwrap comment.
17301 (tree_string): Likewise.
17302 (tree_complex): Likewise.
17303 (IDENTIFIER_POINTER): correct cast.
17304 (SAVE_EXPR_CONTEXT): Whitespace.
17305 (EXPR_WFL_FILENAME_NODE): Likewise.
17306 (EXPR_WFL_FILENAME): Remove parenthesis.
17307 (DECL_ORIGIN): Add parenthesis.
17308 (DECL_FROM_INLINE): Use NULL_TREE.
17309 (build_int_2): Whitespace.
17310 (build_type_variant): Add parenthesis.
17312 * gcc/jcf-parse.c: Update copyright date.
17313 (yyparse): Constify resource_filename.
17315 2002-01-03 Graham Stott <grahams@redhat.com>
17317 * rtl.h: Update copyright date.
17318 (RTL_CHECK1): Wrap long line.
17319 (RTL_CHECK2): Likewise.
17320 (RTL_CHECKC1): Wrap long line and whitespace.
17321 (RTL_CHECKC2): Likewise.
17322 (XWINT): Whitespace.
17328 (XBITMAP): Likewise.
17330 (XBBDEF): Likewise.
17332 (X0WINT): Likewise.
17334 (X0UINT): Likewise.
17338 (X0MODE): Likewise.
17339 (X0BITMAP): Likewise.
17340 (X0TREE): Likewise.
17341 (X0BBDEF): Likewise.
17342 (X0ADVFLAGS): Likewise.
17343 (X0CSELIB): Likewise.
17344 (X0MEMATTR): Likewise.
17345 (XCWINT): Likewise.
17347 (XCUINT): Likewise.
17351 (XCMODE): Likewise.
17352 (XCBITMAP): Likewise.
17353 (XCTREE): Likewise.
17354 (XCBBDEF): Likewise.
17355 (XCADVFLAGS): Likewise.
17356 (XCCSELIB): Likewise.
17357 (XC2EXP): Likewise.
17358 (INSN_UID): Likewise.
17359 (PREV_INSN): Likewise.
17360 (PATTERN): Likewise.
17361 (INSN_CODE): Likewise.
17362 (PUT_REG_NOTE_KIND): Likewise.
17363 (CODE_LABEL_NUMBER): Likewise.
17364 (NOTE_SOURCE_FILE): Likewise.
17365 (NOTE_BLOCK): Likewise.
17366 (NOTE_EH_HANDLER): Likewise.
17367 (NOTE_RANGE_INFO): Likewise.
17368 (NOTE_LIVE_INFO): Likewise.
17369 (NOTE_BASIC_BLOCK): Likewise.
17370 (NOTE_EXPECTED_VALUE): Likewise.
17371 (NOTE_LINE_NUMBER): Likewise.
17372 (LABEL_NAME): Likewise.
17373 (LABEL_NUSES): Likewise.
17374 (LABEL_ALTERNATE_NAME): Likewise.
17375 (ADDRESSOF_DECL): Likewise.
17376 (JUMP_LABEL): Likewise.
17377 (LABEL_NEXTREF): Likewise.
17379 (ORIGINAL_REGNO: Likewise.
17380 (HARD_REGISTER_NUM_P): Add parenthesis.
17381 (SUBREG_REG): Whitespace.
17382 (SUBREG_BYTE): Likewise.
17383 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17384 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17385 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17386 (ASM_OPERANDS_INPUT_VEC): Likewise.
17387 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17388 (ASM_OPERANDS_INPUT): Likewise.
17389 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17390 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17391 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17392 (ASM_OPERANDS_INPUT_MODE): Likewise.
17393 (ASM_OPERANDS_SOURCE_FILE): Likewise.
17394 (ASM_OPERANDS_SOURCE_LINE): Likewise.
17395 (MEM_SET_IN_STRUCT_P): Minor reformat.
17396 (TRAP_CONDITION): Whitespace.
17397 (TRAP_CODE): Likewise.
17398 (COND_EXEC_TEST): Likewise.
17399 (COND_EXEC_CODE): Likewise.
17400 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17401 (PHI_NODE_P): Add parenthesis.
17402 (plus_constant): Whitespace and add parenthesis.
17404 2002-01-03 Kazu Hirata <kazu@hxi.com>
17406 * config/avr/avr.c: Fix comment typos.
17407 * config/c4x/c4x.md: Likewise.
17408 * config/dsp16xx/dsp16xx.h: Likewise.
17409 * config/dsp16xx/dsp16xx.md: Likewise.
17410 * config/i386/i386.md: Likewise.
17411 * config/ia64/ia64.c: Likewise.
17412 * config/m32r/m32r.h: Likewise.
17413 * config/m68hc11/m68hc11.md: Likewise.
17414 * config/mmix/mmix.c: Likewise.
17415 * config/mn10200/mn10200.c: Likewise.
17416 * config/romp/romp.c: Likewise.
17417 * config/sh/sh.c: Likewise.
17418 * config/stormy16/stormy16.c: Likewise.
17419 * config/stormy16/stormy16.h: Likewise.
17420 * config/stormy16/stormy16.md: Likewise.
17422 2002-01-03 Graham Stott <grahams@redhat.com>
17424 * loop.h: Update copyright date.
17425 (LOOP_MOVABLES): Fix typo.
17426 (LOOP_REGS): Likewise.
17427 (LOOP_IVS): Likewise.
17429 2002-01-03 Graham Stott <grahams@redhat.com>
17431 * cppinit.c: Update copyright date.
17432 Don't include output.h
17433 * Makefile.in: Update copyright date.
17436 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
17439 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17440 (-pthread) Add to RS/6000 options.
17442 2002-01-02 Kazu Hirata <kazu@hxi.com>
17444 * except.c: Fix comment typos.
17445 * loop.c: Likewise.
17446 * varasm.c: Likewise.
17447 * doc/tm.texi: Fix a typo.
17449 2002-01-02 Jakub Jelinek <jakub@redhat.com>
17451 * c-typeck.c (output_init_element): Allow initializing static storage
17452 duration objects with compound literals.
17454 2002-01-02 Richard Henderson <rth@redhat.com>
17456 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17459 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17461 * gcc.c (default_compilers): Const-ify.
17462 * mips-tdump.c (stab_names): Likewise.
17463 * mips-tfile.c (map_coff_types, map_coff_storage,
17464 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17465 pseudo_ops_t, pseudo_ops): Likewise.
17466 * protoize.c (default_include): Likewise
17468 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17469 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17470 Add array size in declaration.
17471 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17472 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17473 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17474 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17475 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17476 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17477 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17478 emtens, make_nan): Const-ify.
17479 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17480 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17482 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
17484 * config.gcc (ia64-*-*): Set extra_headers.
17485 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
17486 * config/alpha/t-osf: Remove.
17487 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17489 2002-01-02 David Edelsohn <edelsohn@gnu.org>
17491 * config/rs6000/t-aix43: Revert previous change.
17493 2002-01-02 Jason Merrill <jason@redhat.com>
17495 * c-decl.c (c_expand_body): Call outlining_inline_function when
17496 emitting an inline function out of line.
17498 2002-01-02 Richard Henderson <rth@redhat.com>
17500 * dwarf2out.c (limbo_die_node): Add created_for member.
17501 (new_die): New argument created_for. Update all callers.
17502 (mark_limbo_die_list): New.
17503 (dwarf2out_init): Register limbo_die_list as a root.
17504 (dwarf2out_finish): Force insert limbo dies into their function
17507 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
17510 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17512 2002-01-02 Kazu Hirata <kazu@hxi.com>
17514 * config/h8300/fixunssfsi.c: Update copyright.
17517 * config/h8300/h8300.c: Update copyright.
17518 Eliminate warnings.
17520 2002-01-02 Kazu Hirata <kazu@hxi.com>
17522 * config/romp/romp.c: Fix comment formatting.
17523 * config/romp/romp.h: Likewise.
17524 * config/romp/romp.md: Likewise.
17525 * config/s390/s390.c: Likewise.
17526 * config/stormy16/stormy16.c: Likewise.
17527 * config/stormy16/stormy16.h: Likewise.
17529 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
17531 * c-common.h (genrtl_expr_stmt_value): Declare.
17532 * c-semantics.c (genrtl_goto_stmt): Redirect to...
17533 (genrtl_goto_stmt_value): ... this new function. Pass new
17534 argument down to expand_expr_stmt_value, taking
17535 TREE_ADDRESSABLE into account.
17536 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17537 STMT_EXPR as addressable, i.e., one whose result we want.
17538 * expr.c (expand_expr): Don't save expression statement value
17539 of labeled_blocks or loop_exprs.
17540 * stmt.c (expand_expr_stmt): Redirect to...
17541 (expand_expr_stmt_value): ... this new function. Use new
17542 argument to tell whether to save expression value.
17543 (expand_end_stmt_expr): Reset last_expr_type and
17544 last_expr_value if we don't have either.
17545 * tree-inline.c (declare_return_variable): Mark its use
17546 statement as addressable.
17547 * tree.h: Document new use of TREE_ADDRESSABLE.
17548 (expand_expr_stmt_value): Declare.
17550 2002-01-01 Tom Rix <trix@redhat.com>
17552 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17553 rs6000_emit_allocate_stack.
17555 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
17557 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17558 ${srcdir}/ginclude/ to every entry in extra_headers.
17559 * configure: Regenerate.
17560 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17561 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17562 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17563 * ginclude/proto.h: Rename to config/convex/proto.h.
17565 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17567 * attribs.c (handle_vector_size_attribute): Use host_integerp
17568 and tree_int_cst; remove warnings.
17569 * caller-save.c (insert_restore): Add cast to get rid of warning.
17570 (insert_save): Likewise.
17571 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17572 * regmove.c (find_matches): Add temporary var to kill a warning.
17574 2002-01-01 Douglas B Rupp <rupp@gnat.com>
17576 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17577 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17578 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17579 (vms-dwarf2eh.o): Add Makefile rule.
17580 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17581 * config/alpha/vms-dwarf2eh.asm: New file.
17583 * gcc.c (delete_if_ordinary): Delete all versions.
17585 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
17587 * config/mmix/mmix.md: Update FIXME to not mention
17589 (MMIX_rJ_REGNUM): New define_constants constant.
17590 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17591 "*movdicc_real"): Adjust contraints formatting.
17592 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17593 for branch prediction.
17594 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17596 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17597 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17598 number. Delete related FIXMEs.
17599 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17600 from number to MMIX_rJ_REGNUM.
17601 (TARGET_MASK_BRANCH_PREDICT): New.
17602 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17603 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
17604 value. Add -mbranch-predict and -mno-branch-predict.
17605 (TARGET_VERSION): Drop date.
17606 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17607 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17608 for finding out global symbols.
17609 (mmix_asm_output_labelref): Revert condition for global symbol.
17610 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17611 (mmix_print_operand_punct_valid_p): A '+' is valid.
17613 See ChangeLog.6 for earlier changes.