1 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
3 * config/h8300/elf.h: Fix formatting.
4 * config/h8300/rtems.h: Likewise.
6 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
8 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
10 2002-06-02 Tom Tromey <tromey@redhat.com>
12 * fixinc/fixincl.x: Rebuilt.
13 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
15 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
18 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
19 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
23 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
25 * final.c (final): Allow notes to not have computed addresses;
26 kill no longer needed STACK_REGS ifdef.
28 2002-06-02 Richard Henderson <rth@redhat.com>
30 * gcse.c (bypass_conditional_jumps): Fix typo last change.
32 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
34 * loop.c (emit_prefetch_instructions): Properly place the address
37 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
39 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
40 (set_block_for_insn): Turn into macro.
41 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
42 * cfglayout.c (insn_scopes): Kill.
43 (scope_to_insns_initialize): Do not use insn_scopes.
44 (scope_to_insns_finalize): Likewise.
45 (duplicate_insn_chain): Likewise.
46 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
47 * cfgrtl.c (basic_block_for_insn): Kill.
48 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
49 (create_basic_block_structure): Use reorder_insns.
50 (compute_bb_for_insn): Do not use basic_block_for_insn.
51 (merge_blocks_nomove): Likewise.
52 (update_bb_for_insn): Likewise.
53 (verify_flow_info): Likewise.
54 (set_block_for_insn): Kill.
55 * combine.c (try_combine): Update gen_rtx_INSN call.
56 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
57 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
59 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
60 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
62 (emit_insns_after): Simplify.
63 (emit_copy_of_insn_after): Copy scope.
64 * final.c (final_start_function): Lower scopes.
65 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
66 * integrate.c (copy_insn_list): Cope scopes.
67 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
68 * loop.c (loop_optimize): Do not care block notes.
69 * print-rtl.c (print_rtx): Print BB.
70 * recog.c (apply_change_group): Simplify.
71 * rtl.c (copy_rtx): Handle 'B'.
72 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
73 * rtl.h (Field accessors): Update indexes.
74 * sched-ebb.c (schedule_ebbs): Do not lower notes.
75 * sched-rgn.c (schedule_insns): Likewise.
76 * toplev.c (rest_of_compilation): Lower notes.
77 * unroll.c (unroll_loop): Do not care scoping notes.
78 (copy_loop_body): Copy scopes.
80 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
83 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
86 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
87 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
88 (TARGET_CPU_CPP_BUILTINS): Use.
90 2002-06-02 Richard Henderson <rth@redhat.com>
92 * alias.c: Include target.h.
93 (mark_constant_function): Use targetm.binds_local_p instead
94 of checking TREE_PUBLIC ourselves.
95 * Makefile.in (alias.o): Add TARGET_H.
97 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
99 * c-lex.c: Update copyright and file description.
101 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
103 * config/fr30/fr30.h: Update to new CPP macros.
105 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
107 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
109 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
110 Zack Weinberg <zack@codesourcery.com>
112 * c-common.c (c_common_init): Override cpplib's default
113 warn_long_long setting.
114 * c-lex.c (lex_number): Replace with interpret_integer,
115 interpret_float, narrowest_unsigned_type and
116 narrowest_signed_type, taking advantage of the new
117 cpplib functionality.
118 * cpperror.c (_cpp_begin_message): If a warning is turned
119 into an error, avoid printing "warning:".
120 * cppexp.c (cpp_num_sign_extend): New.
121 * cppinit.c: Update comment.
122 * cpplib.h (cpp_num_sign_extend): New.
123 * tree.h: Update comment.
125 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
127 * diagnostic.h (struct diagnostic_context): Add new member
129 (internal_error_function): Remove declaration.
130 * diagnostic.c (internal_error_function): Remove definition..
131 (internal_error): Adjust use.
133 2002-06-02 Richard Henderson <rth@redhat.com>
135 * rtl.h (CC0_P): New.
136 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
137 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
138 (bypass_block): Save old dest block for dump text.
139 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
140 Allow only true SET insns, not single_set.
142 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
144 * diagnostic.c (diagnostic_finish): Rename to output_flush.
145 (clear_disgnostic_info): Rename to output_clear_data. Use false
146 instead of 0 for boolean value.
147 Adjust function call throughout.
149 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
151 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
152 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
154 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
156 * d30v.h (CPP_PREDEFINES): Replace with
157 (TARGET_CPU_CPP_BUILTINS): New.
159 2002-06-02 Roger Sayle <roger@eyesopen.com>
161 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
163 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
165 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
167 2002-06-02 Richard Henderson <rth@redhat.com>
169 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
171 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
173 Support for C++ constructors/destructors.
174 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
175 instead of looping if main() returns.
176 (asm_file_start): Output global symbols that cause .data and .bss
177 initialization code to be linked in, unconditionally for now.
178 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
179 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
180 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
182 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
183 (__tablejump__): New.
184 (__do_copy_data, __do_clear_bss): New.
185 (__do_global_ctors, __do_global_dtors): New.
186 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
189 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
191 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
192 (CPP_SPEC, CPP_PREDEFINES): Kill.
193 * c4x/rtems.h (CPP_PREDEFINES): Kill.
194 (TARGET_OS_CPP_BUILTINS): New.
196 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
198 * Makefile.in (tracer.o): New.
199 * params.def (TRACER_*): New options.
200 * rtl.h (tracer): Declare.
201 * timevar.def (TV_TRACER): New.
202 * toplev.c (dump_file_index): Add DFI_tracer.
203 (dump_file_info): Add tracer.
205 (lang_indepdenent_options): Add tracer.
206 (rest_of_compilation): Call tracer.
207 * tracer.c: New file.
208 * invoke.texi (-ftracer): Document.
209 (--param tracer-*): Document.
211 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
213 * tree-inline.c (expand_call_inline): Make the statement
214 expression we generate have a COMPOUND_STMT.
216 2002-06-01 Roger Sayle <roger@eyesopen.com>
218 * gcse.c (cprop_cc0_jump): Function deleted.
219 (cprop_jump): Take an additional argument which is the possibly
220 NULL cc setting insn immediately before the conditional jump.
221 When a MODE_CC set is present, substitute it into the JUMP_INSN
222 before attempting the constant propagation.
223 (cprop_insn): Recognize cc setters followed by conditional jumps
224 as a special case. Use cprop_jump instead of cprop_cc0_jump.
225 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
226 (find_bypass_set): New function based upon find_avail_set used by
227 cprop, but finds constant expressions available at the end of
229 (bypass_block): New function. Given a basic block that begins
230 with a conditional jump and multiple incoming edges, perform
231 the jump bypass optimization.
232 (bypass_conditional_jumps): New function. Call bypass_block with
233 each suitable basic block in the CFG using a simple single pass.
235 2002-06-01 Roger Sayle <roger@eyesopen.com>
237 * tree.c (real_minus_onep): New function to test for -1.0.
238 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
240 2002-06-01 Roger Sayle <roger@eyesopen.com>
242 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
243 and "!p && !q" into "(p|q) == 0" under suitable conditions.
245 2002-06-01 Andreas Jaeger <aj@suse.de>
247 * cppexp.c (cpp_classify_number): Cast precission to int for
248 correct printf format.
250 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
252 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
253 expected, but don't really exist: atmega83, atmega85, attiny10.
254 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
255 emulations for all devices.
256 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
257 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
259 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
261 * config/h8300/h8300-protos.h: Add a prototype for
262 h8300_shift_needs_scratch_p.
263 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
264 * config/h8300/h8300.h (OK_FOR_R): New.
265 (OK_FOR_S): Likewise.
266 (OK_FOR_T): Likewise.
267 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
268 * config/h8300/h8300.md (anonymous shift patterns): Use
269 constraints R, S, and T.
271 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
273 * basic-block.h (struct basic_block_def): New field loop_father.
274 (BB_VISITED): New flag.
275 (struct loop): New field pred, removed field shared.
276 (struct loops): New field parray.
277 (LOOP_EXITS_DOMS): Removed.
278 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
279 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
280 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
281 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
282 verify_loop_structure): Declare.
283 * cfg.c (entry_exit_blocks): Initialize loop_father field.
284 * cfganal.c (dfs_enumerate_from): New function.
285 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
286 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
287 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
288 flow_loop_dump, flow_loops_dump, flow_loops_free,
289 flow_loop_tree_node_add, flow_loop_level_compute,
290 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
291 flow_loop_outside_edge_p): Modified for new infrastructure.
292 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
293 redirect_edge_with_latch_update, flow_loop_free): New static functions.
294 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
295 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
296 find_common_loop, verify_loop_structure, loop_latch_edge,
297 loop_preheader_edge): New functions.
298 (flow_loops_cfg_dump): Do not show dominators, as this information
299 does not remain up to date long.
300 (flow_loops_find): Store results in new format.
301 * predict.c (propagate_freq, estimate_probability,
302 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
305 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
307 * except.c (nothrow_function_p): Walk epilogue delay list
308 checking the insn, not the chain for potential throws.
310 2002-05-31 Zack Weinberg <zack@codesourcery.com>
312 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
313 (install): Refer to install-cpp directly.
314 (uninstall-cpp): Folded into uninstall rule.
315 * configure.in: Delete all code relating to --disable-cpp.
316 * configure: Regenerate.
317 * config/t-install-cpp: Delete.
319 2002-05-31 Richard Henderson <rth@redhat.com>
321 * configure.in (HAVE_AS_TLS): Add alpha tests.
322 * configure: Rebuild.
323 * config/alpha/alpha.c (TARGET_AS_TLS): New.
324 (alpha_tls_size, alpha_tls_size_string): New.
325 (overide_options): Set it. Always install machine_status hooks.
326 (input_operand): Accept got tls predicates.
327 (local_symbol_p): Merge into ...
328 (local_symbolic_operand): ... here. Reject tls symbols.
329 (global_symbolic_operand): Likewise.
330 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
331 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
332 (tp16_symbolic_operand, tp32_symbolic_operand): New.
333 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
334 (alpha_encode_section_info): Handle TLS symbols.
335 (alpha_strip_name_encoding): Likewise.
336 (alpha_legitimate_address_p): Likewise.
337 (alpha_legitimize_address): Likewise.
338 (alpha_expand_mov): Early exit to avoid nop moves.
339 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
340 (alpha_init_machine_status, alpha_mark_machine_status,
341 alpha_free_machine_status): Always define.
342 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
343 (print_operand, print_operand_address): Add TLS relocs.
344 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
345 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
346 (TARGET_SWITCHES): Add -mtls-kernel.
347 (alpha_tls_size, alpha_tls_size_string): New.
348 (TARGET_OPTIONS): Add -mtls-size=.
349 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
350 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
351 (ASM_OUTPUT_LABELREF): Skip %.
352 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
353 (PREDICATE_CODES): Update.
354 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
355 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
356 UNSPEC_TP, UNSPECV_SET_TP): New.
357 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
358 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
359 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
360 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
361 (call_value_osf_2_er): Accept anything as op4.
362 * config/alpha/alpha-protos.h: Update.
363 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
365 2002-05-31 Zack Weinberg <zack@codesourcery.com>
367 * cppinit.c (append_include_chain): Always pay attention to
368 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
371 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
373 * target.h: Fix formatting.
374 * timevar.h: Likewise.
376 * toplev.c: Likewise.
377 * toplev.h: Likewise.
379 * tree-dump.h: Likewise.
381 * tree-inline.h: Likewise.
382 * unroll.c: Likewise.
383 * unwind-dw2.c: Likewise.
384 * unwind-dw2-fde.c: Likewise.
385 * unwind-dw2-fde-glibc.c: Likewise.
386 * unwind-dw2-fde.h: Likewise.
387 * unwind.h: Likewise.
388 * unwind-sjlj.c: Likewise.
389 * varasm.c: Likewise.
390 * varray.h: Likewise.
391 * vmsdbg.h: Likewise.
392 * vmsdbgout.c: Likewise.
393 * xcoffout.h: Likewise.
395 2002-05-31 Igor Shevlyakov <igor@microunity.com>
397 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
398 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
400 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
402 * gcc.c (cpp_unique_options): Remove "-d" options.
403 (cpp_debug_options): New spec string.
404 (default_compilers): Use it.
405 * objc/lang-specs.h: Likewise.
407 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
409 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
410 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
411 * gcc/mklibgcc.in: Likewise.
412 * gcc/config/arc/t-arc: Likewise.
413 * gcc/configure.in: Likewise.
414 * gcc/configure: Regenerate.
416 2002-05-31 Stan Shebs <shebs@apple.com>
417 Turly O'Connor <turly@apple.com>
419 * c-decl.c (struct binding_level): Change int field n_incomplete
420 to tree list incomplete_list.
421 (clear_binding_level): Init field with NULL.
422 (pushdecl): Add incomplete type to list.
423 (mark_binding_level): Mark the incomplete list.
424 (finish_struct): Scan the incomplete list for types instead
425 of all decls in the current binding level.
427 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
429 * pa.c (output_millicode_call): Add missing '%' characters.
430 (output_call): Likewise.
432 2002-05-31 David Edelsohn <edelsohn@gnu.org>
434 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
435 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
437 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
439 * varasm.c (mark_constant_pool): Walk epilogue delay list
440 checking the insn, not the chain for potential constants.
442 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
444 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
446 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
448 * i386.c (classify_argument): Properly handle base types.
450 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
451 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
454 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
456 * gcse.c (gcse_emit_move_after): New.
457 (pre_delete, hoist_store): Use it.
459 * reload1.c (emit_input_reload_insns): Use constrain_operands
460 instead of constraint_accepts_reg_p to verify optimization.
461 (constraint_accepts_reg_p): Kill
463 * reload1.c (reload_cse_delete_noop_set): Kill.
464 (reload_cse_simplify): use delte_insn_and_edges.
466 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
468 * cfgloop.c (flow_loops_find): Initialize first and last fields
471 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
473 * c-common.c (builtin_define_std): Correct logic.
475 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
477 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
478 (output_call): Likewise.
480 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
482 * pa.c: Move output.h include after tree.h include.
483 (pa_asm_output_mi_thunk): Constify identifier lab.
485 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
487 * config/ns32k/ns32k.h: Define named constants for the
488 bits in target_flags and use them.
489 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
491 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
493 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
494 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
495 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
496 default scheduling model.
497 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
498 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
499 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
500 * doc/install.texi (hppa*-*-*): Document default scheduling.
502 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
504 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
506 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
508 * config.gcc (ns32k-*-netbsd*): Set tm_file to
509 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
510 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
511 netbsd.h, or netbsd-aout.h.
513 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
515 * longlong.h (count_trailing_zeros): Add missing \, and clean up
516 whitespace in __ns32000__ case.
518 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
520 * expr.c (expand_expr): Output partially zeroed out vectors with
523 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
525 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
527 (shl*-*-netbsdelf*): New targets.
528 * config/sh/netbsd-elf.h: New file.
530 2002-05-30 Richard Henderson <rth@redhat.com>
531 Eric Botcazou <ebotcazou@multimania.com>
534 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
535 to unsigned int for op1 comparisons. Use gen_int_mode.
537 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
539 * expmed.c (const_mult_add_overflow_p): New.
540 * expr.h: Declare it.
541 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
542 Don't eliminate the biv if the giv has a constant multiplier and
543 the rhs argument of the comparison does satisfy the predicate.
544 Use expand_mult_add to compute the replacement constant.
546 2002-05-30 Osku Salerma <osku@iki.fi>
548 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
549 (c_common_get_alias_set): Handle it.
550 * doc/extend.texi: Document it.
552 2002-05-30 Richard Henderson <rth@redhat.com>
554 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
555 * toplev.c (process_options): Don't check it.
556 * doc/tm.texi: Don't document it.
557 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
558 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
559 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
560 frame pointer optimization if current_function_profile.
562 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
564 * langhooks.c: Fix formatting.
565 * langhooks.h: Likewise.
567 * libgcc2.c: Likewise.
569 * local-alloc.c: Likewise.
573 2002-05-30 Marc Espie <espie@openbsd.org>
575 * config.gcc (sparc64-*-openbsd*): New.
576 * config/sparc/openbsd1-64.h: New.
577 * config/sparc/openbsd64.h: New.
579 2002-05-30 Jeff Law <law@redhat.com>
581 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
582 a dead insn with a REG_RETVAL note when the entire libcall is not
583 dead and remove the associated REG_LIBCALL note at the same time.
585 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
587 * lcm.c (output.h): #include.
588 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
589 as an ordinary block.
590 (optimize_mode_switching): Don't pretend that the exit block is
591 an ordinary block, or handle sucessors of entry block specially.
592 Instead, split edges from entry block and to exit block, and
593 put a computing definition on the thus gained post-entry-block,
594 and a need on the pre-exit-block.
596 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
598 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
599 * rtl.texi: Document 'B'
601 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
603 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
605 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
607 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
609 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
610 const0_rtx instead of NULL_RTX when in error.
611 (altivec_expand_abs_builtin): Same.
612 (rs6000_expand_binop_builtin): Same.
613 (altivec_expand_predicate_builtin): Same.
614 (altivec_expand_stv_builtin): Same.
615 (rs6000_expand_ternop_builtin): Same.
616 (altivec_expand_builtin): Same.
618 2002-05-29 David S. Miller <davem@redhat.com>
620 * rtl.h (clear_emit_caches): Delete.
621 * integrate.c (output_inline_function): Don't call it.
622 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
623 (clear_emit_caches): Delete definition.
624 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
626 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
628 * config/mmix/mmix.c: Include real.h.
629 (mmix_constant_address_p): Remove redundant test before switch.
631 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
633 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
634 only if not already defined.
636 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
638 * config/h8300/h8300-protos.h: Remove prototypes for
639 ok_for_bclr and small_power_of_two.
640 * config/h8300/h8300.c (small_power_of_two): Remove.
641 (ok_for_blcr): Likewise.
642 (fix_bit_operand): Make WHAT deal with an integer instead of a
643 constraint character.
644 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
645 (CONST_OK_FOR_P): Likewise.
646 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
647 CONST_OK_FOR_P any more.
648 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
653 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
655 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
656 (CPP_PREDEFINES): Make sure this is undefined.
657 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
658 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
659 or -U__MIPSEB__ before defining one or the other. Instead,
660 use %(subtarget_endian_default) if neither -EB nor -EL are
662 (SUBTARGET_EXTRA_SPECS): Define.
663 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
666 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
668 * doc/md.texi (Patterns): Note pattern condition pitfall
671 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
673 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
674 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
675 ternary operations from here...
676 (rs6000_expand_builtin): ...to here.
677 New argument expandedp.
678 Change all instances of altivec_expand_binop_builtin to
679 rs6000_expand_binop_builtin.
680 (altivec_expand_unop_builtin): Rename to
681 rs6000_expand_unop_builtin.
682 (altivec_expand_binop_builtin): Rename to
683 rs6000_expand_binop_builtin.
684 (altivec_expand_ternop_builtin): Rename to
685 rs6000_expand_ternop_builtin.
687 2002-05-29 Richard Henderson <rth@redhat.com>
689 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
690 (TARGET_BI_ARCH): Likewise.
691 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
692 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
693 (TARGET_64BIT_DEFAULT): Default to 0.
694 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
696 2002-05-29 Richard Henderson <rth@redhat.com>
698 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
699 (get_pc_thunk_name): New.
700 (output_set_got): Use it.
701 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
702 into linkonce sections.
704 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
706 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
707 (CPP_PREDEFINES): Make sure this is undefined.
708 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
709 (CPP_SUBTARGET_SPEC): Don't provide different versions for
710 default-32 and default-64. Just always use %(netbsd_cpp_spec).
711 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
712 cpp_subtarget_spec64. Add netbsd_cpp_spec.
713 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
714 (CPP_PREDEFINES): Make sure this is undefined.
715 (SUBTARGET_EXTRA_SPECS): Define.
716 (CPP_SPEC): Use %(netbsd_cpp_spec).
718 2002-05-29 Jeff Law <law@redhat.com>
720 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
722 * flow.c (propagate_one_insn): Do not remove a dead insn if it
723 contains a REG_RETVAL note.
725 * haifa-sched (sched_analyze): Remove another useless clearing
726 of SCHED_GROUP_P I missed yesterday.
728 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
729 * pa.c (pa_asm_output_mi_thunk): New function.
730 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
732 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
733 Marek Michalkiewicz <marekm@amelek.gda.pl>
735 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
736 (avr_asm_only_p): Make non-static.
737 (enum avr_arch): Remove.
738 (avr_arch_types): New.
739 (avr_mcu_types): Update.
740 (avr_override_options): Use avr_arch_types table instead of switch.
741 * avr.h (CPP_PREDEFINES): Die.
742 (avr_base_arch_macro, avr_extra_arch_macro): New.
743 (TARGET_CPU_CPP_BUILTINS): New.
744 (CPP_SPEC, EXTRA_SPECS): Simplify.
745 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
748 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
750 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
751 NETBSD_OS_CPP_BUILTINS_AOUT.
752 (SUBTARGET_EXTRA_SPECS): Define.
753 (CPP_SPEC): Use %(netbsd_cpp_spec).
755 2002-05-29 Richard Henderson <rth@redhat.com>
757 * config/i386/i386.c (ix86_output_function_epilogue): New.
758 (TARGET_ASM_FUNCTION_EPILOGUE): New.
759 (pic_label_name): Remove.
760 (pic_labels_used): New.
761 (ix86_asm_file_end): Emit one pc load stub for each register used.
762 (output_set_got): Generate deep pc load to any register.
763 (ix86_select_alt_pic_regnum): New.
764 (ix86_save_reg): Don't save pic register if we can find a valid
765 call-clobbered replacement.
766 (ix86_expand_prologue): If we found a valid replacement, renumber
767 pic_offset_table_rtx.
768 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
769 pic_offset_table_rtx after reload.
770 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
771 * config/i386/i386.md (set_got): Make insn, not expander.
772 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
774 2002-05-29 Richard Henderson <rth@redhat.com>
776 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
777 alignment for alloca.
779 2002-05-29 Richard Henderson <rth@redhat.com>
781 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
782 (print_operand_address): Only add rip for symbolic addresses
783 for which we do not have another relocation type.
785 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
787 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
788 (EXTRA_SPECS): Add netbsd_cpp_spec.
789 (CPP_SPEC): Use %(netbsd_cpp_spec).
790 (CPP_PREDEFINES): Remove.
791 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
792 (EXTRA_SPECS): Define.
793 (CPP_SPEC): Use %(netbsd_cpp_spec).
794 (CPP_PREDEFINES): Remove.
796 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
799 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
802 2002-05-29 Eric Christopher <echristo@redhat.com>
804 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
805 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
807 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
809 * config/fr30/fr30.md: Remove previous restriction on splits.
810 Enforce conformance through gen_lowpart and cont_int_operand.
811 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
812 as the assembler does not support ".bss".
814 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
816 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
817 (CPP_PREDEFINES): Remove.
818 (SUBTARGET_EXTRA_SPECS): Define.
819 (CPP_SPEC): Use %(netbsd_cpp_spec).
820 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
821 (CPP_PREDEFINES): Remove.
822 (SUBTARGET_EXTRA_SPECS): Define.
823 (CPP_SPEC): Use %(netbsd_cpp_spec).
824 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
825 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
826 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
828 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
830 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
831 Zack Weinberg <zack@codesourcery.com>
833 * cppexp.c (cpp_num): Move to cpplib.h.
835 (interpret_float_suffix, interpret_int_suffix): New.
836 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
837 (cpp_classify_number, cpp_interpret_integer): New.
838 (interpret_number): Remove.
839 (eval_token): Update to use new routines.
840 * cpphash.h (cpp_num_part): Move to cpplib.h.
841 * cppinit.c (cpp_post_options): Set warn_long_long.
842 * cpplib.h (struct cpp_options): Add warn_long_long.
843 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
844 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
845 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
846 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
847 cpp_interpret_integer): New.
849 2002-05-29 Joel Sherrill <joel@OARcorp.com>
851 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
853 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
855 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
856 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
857 (CPP_SUBTARGET_SPEC): Define.
858 (SUBTARGET_EXTRA_SPECS): Define.
861 2002-05-29 Chris Lattner <sabre@nondot.org>
863 * ssa.c (rename_insn_1): Rename uses of undefined registers to
864 prevent confusion if/when the register is defined.
866 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
869 * config/cris/cris.md: Fix typos and thinkos in comments.
870 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
872 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
873 ("*mov_sideqi_mem"): Similar, but for operand 3.
874 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
875 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
876 Remove spurious mode specifier on operand 2.
878 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
880 * config/h8300/h8300-protos.h: Remove the prototype for
882 Add prototypes for single_one_operand and single_zero_operand.
883 * config/h8300/h8300.c (o_operand): Remove.
884 (single_one_operand): New.
885 (single_zero_operand): Likewise.
886 (print_operand): For 'V' operand, and the operand with 0xff.
887 For 'V' and 'W' operands, do not and the bit position with 7.
888 * config/h8300/h8300.md (various anonymous patterns): Replace
889 use of exact_log2 with single_one_operand/single_zero_operand.
891 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
893 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
895 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
897 * config/s390/s390.c (legitimate_pic_operand_p): Do not
898 accept symbolic LARL operands.
899 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
902 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
904 * config/s390/s390.md (cmpstr_64/31): Mark whole
905 input registers as used.
907 2002-05-28 Richard Henderson <rth@redhat.com>
909 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
910 not current_function_uses_pic_offset_table and
911 current_function_uses_const_pool; examine current_function_profile.
912 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
913 input to blockage if needed.
914 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
915 (legitimize_pic_address): Likewise. Set regs_ever_live for
916 pic_offset_table_rtx when invoked during reload.
917 * config/i386/i386.h (FINALIZE_PIC): Remove.
918 * config/i386/i386.md (tablejump): Reformat. Do not set
919 current_function_uses_pic_offset_table.
920 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
921 (blockage): Accept anything as operand 0.
923 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
925 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
926 common CPP built-ins for all NetBSD a.out targets.
927 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
928 common CPP built-ins for all NetBSD ELF targets.
929 * config/netbsd.h: Add missing notice.
930 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
931 for all NetBSD targets.
932 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
933 for all NetBSD targets using an LP64 code model.
934 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
937 2002-05-28 Richard Henderson <rth@redhat.com>
939 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
940 update if UPDATE_LIFE_LOCAL.
942 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
944 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
946 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
947 Jason R. Thorpe <thorpej@wasabisystems.com>
949 config/sh reorganization to factor out endianness and coff:
951 * config/sh/little.h: New file.
952 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
953 defined, define to 0 to select big-endian.
954 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
955 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
956 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
957 * config/sh/t-be: New file.
958 * config/sh/t-le: New file.
960 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
961 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
962 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
963 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
964 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
965 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
966 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
967 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
968 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
969 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
970 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
971 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
972 (LINK_SPEC): Define to SH_LINK_SPEC.
973 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
974 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
975 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
976 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
977 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
978 * config/sh/coff.h: New file.
979 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
980 (TARGET_OBJFMT_CPP_BUILTINS): Define.
981 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
982 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
983 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
984 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
985 (PTRDIFF_TYPE): Likewise.
986 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
987 (CPP_PREDEFINES): Don't define.
988 (TARGET_OBJFMT_CPP_BUILTINS): Define.
989 (LINK_SPEC): Define to SH_LINK_SPEC.
990 (LINK_EMUL_PREFIX): Redefine.
991 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
992 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
993 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
994 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
995 (TARGET_OS_CPP_BUILTINS): Define.
996 (TARGET_DEFAULT): Redefine.
997 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
998 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
999 (LINK_SPEC): Don't redefine.
1000 (LINK_DEFAULT_CPU_EMUL): Redefine.
1001 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
1002 * sh.c (sh_asm_named_section): Don't declare / define.
1003 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
1004 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
1005 (sh64-*-elf* tm_file): Likewise.
1006 (sh-*-rtemself* tm_file): Likewise.
1007 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
1008 (sh-*-linux* tmake_file): Add sh/t-le.
1009 (sh-*-rtems* tm_file): Add sh/coff.h
1010 (sh-*-* tm_file): Likewise.
1012 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1014 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
1015 CONSTANT_POOL_ADDRESS_P.
1017 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
1019 2002-05-28 David Edelsohn <edelsohn@gnu.org>
1020 Jeff Law <law@redhat.com>
1022 * optabs.c (expand_binop): Fix nwords sign warnings.
1023 generate pseudo for add_optab.
1025 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
1026 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
1028 2002-05-28 Marc Espie <espie@openbsd.org>
1030 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
1031 inherited from gas.h.
1032 (ASM_QUAD): Undef. OpenBSD does not support it.
1034 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
1036 * doc/install.texi (binaries): Change mingw binaries
1037 link to www.mingw.org.
1039 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1041 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
1043 2002-05-28 Richard Henderson <rth@redhat.com>
1045 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
1046 bottom alignment for leaf functions.
1048 2002-05-28 Zack Weinberg <zack@codesourcery.com>
1050 * config/pa/milli32.S, config/pa/lib1funcs.asm,
1051 config/sparc/sol2-g1.asm: Delete unused files.
1053 2002-05-28 Richard Henderson <rth@redhat.com>
1055 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
1057 * flow.c (calculate_global_regs_live): Rename call_used to
1058 invalidated_by_call. Initialize from regs_invalidated_by_call
1059 instead of call_used_regs.
1061 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
1064 2002-05-28 Zack Weinberg <zack@codesourcery.com>
1066 * tree.h: Don't include real.h.
1067 Forward-declare struct realvaluetype.
1068 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
1070 (TREE_REAL_CST_PTR): New accessor.
1071 (TREE_REAL_CST): Update.
1072 * real.h: Include machmode.h.
1073 (realvaluetype): Make it struct realvaluetype, not a typedef.
1074 (build_real): Prototype here.
1076 * tree.c: Include real.h.
1077 (build_real): Allocate the REAL_VALUE_TYPE as a separate
1078 object in GC memory, set TREE_REAL_CST_PTR to point to it.
1079 (build_real_from_int_cst): Use build_real.
1080 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
1083 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
1084 fold-const.c, print-tree.c, real.c: Include real.h.
1085 * Makefile.in: Update dependency lists.
1087 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1089 * basic-block.h (last_basic_block): Declare.
1090 (expunge_block_nocompact): Declaration removed.
1091 (compact_blocks): Declare.
1092 * cfg.c (last_basic_block): New variable.
1093 (expunge_block_nocompact): Removed.
1094 (expunge_block): Do not compact basic blocks.
1095 (compact_blocks): New.
1096 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
1098 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
1100 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
1101 real positions of blocks.
1102 (delete_unreachable_blocks): Simplified -- quadratic behavior now
1104 (cleanup_cfg): Compact blocks.
1105 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
1106 basic_block_info varray.
1107 (flow_delete_block): Comment update.
1108 (back_edge_of_syntactic_loop_p): Modify position check code.
1109 (verify_flow_info): Update checking.
1110 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
1111 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1112 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
1113 indices no longer change.
1114 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
1116 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
1117 * profile.c (branch_prob): Compact blocks.
1118 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
1121 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
1123 * config/h8300/h8300.md (two anonymous patterns): New.
1125 2002-05-28 David S. Miller <davem@redhat.com>
1127 * config/sparc/sparc.md (cpu): Tidy.
1128 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
1130 (in_call_delay): Delete reference to 'return' type.
1131 (eligible_for_return_delay, in_return_delay, define_delay
1132 referencing those): Delete.
1133 (rest of file): Use new type attributes as appropriate.
1134 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
1135 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
1136 * config/sparc/ultra1_2.md (us1_single): New reservation.
1137 (us1_ialuX): Likewise.
1138 * config/sparc/ultra3.md (us3_single): Likewise.
1139 (us3_ialuX): Likewise.
1140 (us3_imul, us3_idiv): Tweak.
1142 2002-05-28 Richard Henderson <rth@redhat.com>
1144 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
1147 2002-05-28 Richard Henderson <rth@redhat.com>
1149 * config.gcc: Obsolete mn10200.
1151 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
1153 * cppexp.c (interpret_number): Optimize for single-digit
1154 and less-than-half-precision cases.
1155 (num_trim, num_positive, num_div_op): Cast constants.
1157 2002-05-27 Bo Thorsen <bo@suse.de>
1159 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
1160 3.1 branch. The file was made by Jakub Jelinek.
1161 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1162 support so multilib doesn't break. And don't define this at all
1163 when -Dinhibit_libc is used.
1164 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
1165 * config/i386/t-linux64: Implement full multilib support. Patch
1166 originally done by Andreas Jaeger and Jakub Jelinek.
1168 2002-05-27 Roger Sayle <roger@eyesopen.com>
1170 * c-common.c: Add support for __attribute__((nothrow)) to specify
1171 that a function cannot throw an exception (using TREE_NOTHROW).
1172 (handle_nothrow_attribute): New function to process this attribute.
1174 * doc/extend.texi: Document the new nothrow function attribute.
1176 2002-05-27 H.J. Lu (hjl@gnu.org)
1178 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
1179 (num_positive): Likewise.
1180 (num_div_op): Likewise.
1182 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1184 * c-common.c (c_common_init): Always use intmax_t.
1186 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1188 * c-common.c (c_common_init): Use intmax_t for now.
1190 2002-05-24 Andrew Haley <aph@redhat.com>
1192 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
1193 if T is a boolean type.
1195 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1197 * basic-block.h (last_basic_block): Defined as synonym for
1199 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1200 flow_depth_first_order_compute, flow_preorder_transversal_compute,
1201 flow_dfs_compute_reverse_init): Replaced relevant occurences of
1202 n_basic_blocks with last_basic_block.
1203 * cfgbuild.c (make_edges): Likewise.
1204 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1205 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1206 * combine.c (combine_instructions): Likewise.
1207 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1208 iterative_dataflow_bitmap): Likewise.
1209 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1210 calc_idoms, idoms_to_doms): Likewise.
1211 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1213 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1214 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1215 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1216 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1217 delete_null_pointer_checks, compute_code_hoist_vbeinout,
1218 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1219 compute_store_table, build_store_vectors): Likewise.
1220 * haifa-sched.c (sched_init): Likewise.
1221 * ifcvt.c (if_convert): Likewise.
1222 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1223 pre_edge_lcm, compute_available, compute_nearerout,
1224 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1226 * predict.c (estimate_probability, process_note_prediction,
1227 note_prediction_to_br_prob): Likewise.
1228 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1229 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1230 * regrename.c (copyprop_hardreg_forward): Likewise.
1231 * resource.c (init_resource_info): Likewise.
1232 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1233 init_regions, schedule_insns): Likewise.
1234 * ssa-ccp.c (ssa_const_prop): Likewise.
1235 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1236 * ssa.c (compute_dominance_frontiers,
1237 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1239 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1240 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1243 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
1245 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1247 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1248 hoist_insn_after, hoist_insn_to_edge): New.
1250 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
1252 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1253 (PROP_FINAL): Include.
1254 * flow.c (life_analysis, update_life_info,
1255 init_propagate_block_info, mark_set_1, mark_used_rgs):
1256 Support SCAN_DEAD_STORE.
1258 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1260 * c-common.c (c_common_init): Set CPP arithmetic precision.
1261 * cppexp.c (cpp_num_part): Move typedef ...
1262 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1263 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1264 (sanity_checks): Update.
1266 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
1268 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1269 (mkheaders): New rule.
1270 (install-mkheaders): New rule.
1271 * configure.in (all_outputs): Add mkheaders.
1272 * configure: Regenerate.
1273 * mkheaders.in: New file.
1275 2002-05-26 Jakub Jelinek <jakub@redhat.com>
1277 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1279 2002-05-26 Andreas Jaeger <aj@suse.de>
1281 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1283 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
1285 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1286 right_shift): Remove.
1287 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1289 (struct op): Use cpp_num.
1290 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1291 num_part_mul, num_unary_op, num_binary_op, num_negate,
1292 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1293 num_div_op, num_lshift, num_rshift, append_digit): New.
1294 (interpret_number, parse_defined, eval_token, reduce): Update
1295 for two-integer arithmetic.
1296 (binary_handler): New typedef.
1298 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1299 (_cpp_parse_expr, reduce): Update to handle two-integers.
1300 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1302 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
1304 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1305 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1306 branch insn into account, do not assume 1.
1307 (avr_out_sbxx_branch): New function. Optimize cases of skipping
1308 over single word insn. Handle upper half of I/O space too.
1309 * config/avr/avr.md (*sbrx_branch): Use it.
1310 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1311 (*sbix_branch, *sbix_branch_bit7): Likewise.
1312 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1313 Use RTL peepholes to optimize register operand sign tests.
1315 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
1317 * config/avr/avr.c (avr_asm_only_p): New variable.
1318 (avr_override_options): Set it here if AVR1.
1319 (asm_file_start): Test it here, report an error if set.
1321 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
1323 * alias.c: Fix formatting.
1324 * attribs.c: Likewise.
1325 * bb-reorder.c: Likewise.
1326 * bitmap.c: Likewise.
1327 * bitmap.h: Likewise.
1328 * builtins.c: Likewise.
1330 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
1332 * reload.c (find_valid_class): Accept new argument DEST,
1333 choose class accordingly.
1334 (push_reload): Update callers.
1336 2002-05-26 Andreas Jaeger <aj@suse.de>
1338 * combine.c (combine_instructions): Do not indent #if for
1341 2002-05-25 Richard Henderson <rth@redhat.com>
1343 * c-pragma.c (apply_pragma_weak): Convert value identifier to
1344 string for decl_attributes.
1345 (handle_pragma_weak): Call assemble_alias if we're modifying
1348 2002-05-25 Richard Henderson <rth@redhat.com>
1351 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1352 using rtl instead of fprintf.
1353 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1354 * config/sparc/sparc-protos.h: Update.
1356 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
1358 * Makefile.in (C_COMMON_H): Fix.
1359 Update other targets.
1360 * c-common.c: Don't include c-lex.h.
1361 (builtin_define_with_value): Make static and prototype.
1362 (builtin_define_std): Move from c-lex.h.
1363 * c-common.h (init_c_lex): Move from c-lex.h.
1364 * c-decl.c: Don't include c-lex.h.
1365 (make_pointer_declarator): Move from c-parse.in.
1366 * c-lex.c: Don't include c-lex.h.
1368 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1369 (make_pointer_declarator): Move to c-decl.c.
1370 * c-pragma.c: Don't include c-lex.h.
1371 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1372 * c-tree.h (make_pointer_declarator): New.
1374 * passes.texi, tm.texi: Update.
1376 * Make-lang.in: Update and correct.
1377 * objc-act.c: Don't include c-lex.h or cpplib.h.
1379 * treetree.c: Don't include c-lex.h.
1381 * darwin-c.c: Don't include c-lex.h.
1382 * c4x/c4x-c.c: Don't include c-lex.h.
1383 * c4x/t-c4x: Update.
1384 * i370/i370-c.c: Don't include c-lex.h.
1385 * i370/t-i370: Update.
1386 * i960/i960-c.c: Don't include c-lex.h.
1387 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1388 * i960/t-960bare: Update.
1389 * i960/t-vxworks: Update.
1390 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1391 * rs6000/t-darwin: Update.
1392 * rs6000/t-rs6000-c-rule: Update.
1393 * v850/v850-c.c: Don't include c-lex.h.
1394 * v850/v850.c: Don't include c-lex.h or cpplib.h.
1397 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1399 * tree.def: Fix typos.
1400 * doc/install.texi: Likewise.
1402 2002-05-25 Richard Henderson <rth@redhat.com>
1404 * configure.in (HAVE_AS_TLS): Add ia64 test.
1405 * configure: Rebuild.
1406 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1407 (override_options): Set it.
1408 (TARGET_HAVE_TLS): New.
1409 (sdata_symbolic_operand): Look for 's'.
1410 (tls_symbolic_operand): New.
1411 (ia64_expand_load_address): Abort for tls symbols.
1412 (gen_tls_get_addr): New.
1413 (gen_thread_pointer): New.
1414 (ia64_expand_move): Split out from movdi. Handle tls symbols.
1415 (rtx_needs_barrier): Add new unspecs.
1416 (ia64_encode_section_info): Handle tls symbols.
1417 (ia64_strip_name_encoding): Strip two encoding chars.
1418 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1419 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1420 (TARGET_OPTIONS): Add tls-size.
1421 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1422 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1423 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1424 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1425 (movsf, movdf): Likewise.
1426 (movdi_symbolic): Use match_scratch. Don't split if we won't
1427 have a scratch availiable.
1428 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1429 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1430 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1431 * config/ia64/ia64-protos.h: Update.
1432 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1433 sdata_symbolic_operand.
1434 (ASM_OUTPUT_LABELREF): Strip two characters.
1436 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1438 * combine.c (simplify_set): Remove an unnecessary subreg.
1440 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
1442 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1444 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1446 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1448 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
1450 2002-05-25 Roger Sayle <roger@eyesopen.com>
1452 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1453 (cond (compare x y) 0) into the equivalent (cond x y).
1455 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1457 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
1459 2002-05-24 Zack Weinberg <zack@codesourcery.com>
1461 * config.gcc: Remove all stanzas for previously obsoleted
1462 systems. Where necessary, add explicit error stanzas to
1463 prevent removed systems from being misidentified as something
1464 else. Begin a fresh obsoletions list, with the systems that
1465 were reprieved last round.
1466 * doc/install.texi: Remove all mention of dead targets.
1467 * fixinc/mkfixinc.sh: Likewise.
1469 * config/arm/arm.h: Bit 31 of target_flags is no longer
1472 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1473 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1474 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1475 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1476 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1477 config/alpha/osf12.h, config/alpha/osf2or3.h,
1478 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1479 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1480 config/clipper/clipper-protos.h, config/clipper/clipper.c,
1481 config/clipper/clipper.h, config/clipper/clipper.md,
1482 config/clipper/clix.h, config/convex/convex-protos.h,
1483 config/convex/convex.c, config/convex/convex.h,
1484 config/convex/convex.md, config/convex/fixinc.convex,
1485 config/convex/proto.h, config/elxsi/elxsi-protos.h,
1486 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1487 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1488 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1489 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1490 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1491 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1492 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1493 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1494 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1495 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1496 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1497 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1498 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1499 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1500 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1501 config/m68k/altos3068.h, config/m68k/apollo68.h,
1502 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1503 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1504 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1505 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1506 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1507 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1508 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1509 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1510 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1511 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1512 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1513 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1514 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1515 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1516 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1517 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1518 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1519 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1520 config/mips/dec-osf1.h, config/mips/elflorion.h,
1521 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1522 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1523 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1524 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1525 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1526 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1527 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1528 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1529 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1530 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1531 config/ns32k/sequent.h, config/ns32k/tek6000.h,
1532 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1533 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1534 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1535 config/sparc/rtems.h, config/we32k/we32k-protos.h,
1536 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1539 2002-05-24 Richard Henderson <rth@redhat.com>
1541 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1542 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1543 * config/i386/i386.c (tls_model_chars): Add leading space.
1544 (tls_symbolic_operand): Don't bias by 1.
1545 (legitimize_address): Don't unbias by 1.
1547 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1549 * lcm.c (optimize_mode_switching): Change bb used as indices
1552 2002-05-24 Richard Henderson <rth@redhat.com>
1554 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1555 of update_life_info_in_dirty_blocks.
1557 2002-05-24 Jakub Jelinek <jakub@redhat.com>
1560 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1562 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
1564 PR preprocessor/6780
1565 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1567 2002-05-24 Jim Blandy <jimb@redhat.com>
1569 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1570 entry with a type code of zero, marking the end of the compilation
1573 2002-05-24 Richard Henderson <rth@redhat.com>
1575 * varasm.c (asm_output_bss): Always output one byte.
1576 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1578 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1580 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1583 2002-05-24 Andreas Jaeger <aj@suse.de>
1585 * ggc-page.c (alloc_page): Cast variables of type size_t to
1586 unsigned long, adjust printf format string.
1587 (ggc_alloc): Likewise.
1588 (ggc_print_statistics): Likewise.
1589 (ggc_print_statistics): Correct printf format string for SCALE to
1592 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
1594 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1596 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
1597 Zack Weinberg <zack@codesourcery.com>
1599 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1601 * dwarf2out.c (lookup_filename): Properly quote filename in .file
1602 directive in assembly file.
1603 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1604 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1605 * config/pj/pj.h (ASM_FILE_START): Likewise.
1606 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1607 * config/avr/avr.c (asm_file_end): Likewise.
1608 * toplev.c (output_quoted_string): Handle possibly signed plain
1610 * toplev.h (output_clean_symbol_name): Declare
1611 * toplev.c (output_clean_symbol_name): Define.
1612 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1613 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1615 2002-05-24 Alan Modra <amodra@bigpond.net.au>
1617 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1619 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
1621 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1622 of size of unsigned.
1624 2002-05-23 Richard Henderson <rth@redhat.com>
1626 * configure.in (HAVE_AS_TLS): New test.
1627 * config.in, configure: Rebuild.
1628 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1629 (ix86_tls_dialect_string, ix86_tls_dialect): New.
1630 (override_options): Set it.
1631 (tls_model_chars, tls_symbolic_operand): New.
1632 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1633 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1634 (local_exec_symbolic_operand): New.
1635 (get_pic_label_name): Merge into output_set_got.
1636 (ix86_asm_file_end): Emit pic_label_name if defined.
1637 (legitimate_constant_p, constant_address_p): New.
1638 (legitimate_pic_operand_p): New.
1639 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1640 (legitimate_address_p): Likewise.
1641 (ix86_encode_section_info): Rename from i386_; handle tls decls.
1642 (ix86_strip_name_encoding): New.
1643 (get_thread_pointer): New.
1644 (legitimize_address): Handle tls symbols.
1645 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1647 (struct machine_function): Add some_ld_name.
1648 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1649 (print_operand) [&]: Use it. Handle UNSPEC_TP.
1650 (output_addr_const_extra): New.
1651 (maybe_get_pool_constant): New.
1652 (ix86_split_to_parts): Use it.
1653 (ix86_expand_move): Handle tls symbols.
1654 (ix86_tls_get_addr): New.
1655 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1656 (TARGET_OPTIONS): Add tls-dialect.
1657 (CONSTANT_ADDRESS_P): Use new out-of-line function.
1658 (LEGITIMATE_CONSTANT_P): Likewise.
1659 (LEGITIMATE_PIC_OPERAND_P): Likewise.
1660 (TARGET_STRIP_NAME_ENCODING): New.
1661 (ASM_OUTPUT_LABELREF): New.
1662 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1663 (OUTPUT_ADDR_CONST_EXTRA): New.
1664 (PREDICATE_CODES): Update.
1665 (ix86_tls_dialect, ix86_tls_dialect_string): New.
1666 * config/i386/i386.md: Regroup and renumber unspec constants.
1667 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1668 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1669 (tls_global_dynamic, tls_local_dynamic_base): New.
1670 (tls_local_dynamic_once): New.
1671 * config/i386/i386-protos.h: Update.
1673 2002-05-23 Richard Henderson <rth@redhat.com>
1675 * genemit.c (gen_insn): Print file:lineno comment before function.
1677 * gensupport.c (struct queue_elem): Add filename member.
1678 (queue_pattern): Initialize it; update all callers.
1679 (process_include): Don't free filename.
1680 (read_md_rtx): Set read_rtx_filename.
1682 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
1684 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1686 2002-05-23 Richard Henderson <rth@redhat.com>
1688 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1690 2002-05-23 Richard Henderson <rth@redhat.com>
1692 * doc/extend.texi (C++98 Thread-Local Edits): Update with
1693 commentary from Mark.
1695 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1697 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1698 Use FOR_EACH_BB macros to iterate over basic block chain.
1699 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1700 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1702 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1703 find_unreachable_blocks, create_edge_list, verify_edge_list,
1704 remove_fake_edges, add_noreturn_fake_exit_edges,
1705 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1707 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1708 find_sub_basic_blocks): Likewise.
1709 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1711 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1713 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1715 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1716 commit_edge_insertions, commit_edge_insertions_watch_calls,
1717 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1718 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1719 * conflict.c (conflict_graph_compute): Likewise.
1720 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1721 df_modified_p, df_refs_unlink, df_dump): Likewise.
1722 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1723 * final.c (compute_alignments): Likewise.
1724 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1725 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1726 count_or_remove_death_notes): Likewise.
1727 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1728 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1729 classic_gcse, compute_transp, cprop, compute_pre_data,
1730 compute_transpout, invalidate_nonnull_info,
1731 delete_null_pointer_checks_1, delete_null_pointer_checks,
1732 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1733 compute_store_table, build_store_vectors, store_motion): Likewise.
1734 * global.c (global_conflicts, mark_elimination): Likewise.
1735 * graph.c (print_rtl_graph_with_bb): Likewise.
1736 * haifa-sched.c (sched_init): Likewise.
1737 * ifcvt.c (if_convert): Likewise.
1738 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1739 compute_available, compute_nearerout, compute_rev_insert_delete,
1740 optimize_mode_switching): Likewise.
1741 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1742 * predict.c (estimate_probability, note_prediction_to_br_prob,
1743 propagate_freq, counts_to_freqs, expensive_function_p,
1744 estimate_bb_frequencies): Likewise.
1745 * profile.c (instrument_edges, get_exec_counts,
1746 compute_branch_probabilities, compute_checksum, branch_prob,
1747 find_spanning_tree): Likewise.
1748 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1749 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1751 * regclass.c (scan_one_insn, regclass): Likewise.
1752 * regmove.c (mark_flags_life_zones, regmove_optimize,
1753 record_stack_memrefs): Likewise.
1754 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1755 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1756 * resource.c (find_basic_block): Likewise.
1757 * sched-ebb.c (schedule_ebbs): Likewise.
1758 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1759 find_single_block_region, find_rgns, schedule_insns)
1760 * sibcall.c (optimize_sibling_and_tail_recursive_call)
1761 * ssa-ccp.c (optimize_unexecutable_edges,
1762 ssa_ccp_df_delete_unreachable_insns): Likewise.
1763 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1764 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1765 rename_block, convert_to_ssa, compute_conservative_reg_partition,
1766 compute_coalesced_reg_partition, rename_equivalent_regs,
1767 convert_from_ssa): Likewise.
1768 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1769 process_for_unwind_directive): Likewise.
1771 * df.c (FOR_ALL_BBS): Removed.
1772 * gcse.c (struct null_pointer_info): Type of current_block field
1774 (struct reg_avail_info): Type of last_bb field changed.
1775 * config/ia64/ia64.c (block_num): Removed.
1776 (need_copy_state): Type changed.
1779 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1781 * cppinit.c (mark_named_operators): Split out from init_builtins.
1782 (cpp_finish_options): Call it from here instead.
1784 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1786 * builtin-attrs.def: Update copyright years.
1787 (ATTR_NONNULL): New attribute identifier.
1788 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1789 attribute tree lists.
1790 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1792 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1793 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1794 attribute lists. Chain the appropriate nonnull attribute.
1795 * c-format.c (check_format_arg): Remove null format string
1797 * testsuite/gcc.dg/format/null-1.c: New test.
1799 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1801 * Makefile.in (ADAC): Define.
1803 (.SUFFIXES): Move before language makefile fragments.
1804 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1806 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1808 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1811 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1813 * cfg.c (dump_flow_info): Print results of
1814 maybe_hot/probably_never_executed predicates.
1815 * toplev.c (open_dump_file): Print function frequency.
1817 2002-05-23 David S. Miller <davem@redhat.com>
1819 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1822 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1824 * c-common.c (warn_nonnull): Declare.
1825 (c_common_attribute_table): Add "nonnull" attribute.
1826 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1827 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1828 check_function_arguments_recurse): New functions.
1829 * c-common.h (warn_nonnull): Declare extern.
1830 (check_function_arguments, check_function_arguments_recurse): New
1832 * c-decl.c (c_decode_option): Add -Wnonnull option.
1833 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1835 (format_check_context): New structure.
1836 (check_format_info_recurse): Remove recursion and rename to...
1837 (check_format_arg): ...this. Update comment.
1838 (check_format_info): Use check_function_arguments_recurse.
1839 * c-typeck.c (build_function_call): Call check_function_arguments
1840 instead of check_function_format.
1841 * doc/extend.texi: Document "nonnull" attribute.
1842 * doc/invoke.texi: Docuemnt -Wnonnull option.
1843 * testsuite/gcc.dg/nonnull-1.c: New test.
1844 * testsuite/gcc.dg/nonnull-2.c: New test.
1846 2002-05-23 David S. Miller <davem@redhat.com>
1848 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1849 * cfgcleanup.c (cleanup_cfg): If it is set do not
1850 attempt to delete trivially dead insns.
1851 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1852 * toplev.c (rest_of_compilation): Document non-trivial aspect
1853 the RTL before optimize_save_area_alloca is run.
1855 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1857 * c-lex.c (indent_level): Remove.
1858 (cb_file_change, c_lex): Remove indent level handling.
1859 * c-lex.h (indent_level): Remove.
1860 * input.h (struct file_stack): Remove indent_level.
1861 * toplev.c (push_srcloc): Remove indent_level handling.
1863 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1866 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1867 of x in constraints for clarity.
1868 (sse_mov?fcc split): abort if op2 == op3.
1869 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1870 sse_movsfcc_const0_4): Add earlyclobber.
1871 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1872 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1873 Use Y instead of x in constraints.
1875 2002-05-23 Richard Henderson <rth@redhat.com>
1877 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1878 (C++98 Thread-Local Edits): New subsection.
1880 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1881 (ix86_arch): Set type to enum processor_type.
1883 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1884 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1886 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1888 * configure.in: Fix as version test for binutils 2.12.1 releases
1890 * configure: Rebuilt.
1892 2002-05-23 Richard Henderson <rth@redhat.com>
1894 * config/i386/i386.c (get_pic_label_name): New.
1895 (load_pic_register): Remove.
1896 (output_set_got): New.
1897 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1898 * config/i386/i386.md (UNSPEC_SET_GOT): New.
1899 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1900 (prologue_set_got, prologue_get_pc): Remove.
1901 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1902 (builtin_setjmp_receiver): Use gen_set_got.
1903 * config/i386/i386-protos.h: Update.
1905 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1907 * gcse.c (hash_expr): Do not use alias set for hashing.
1909 2002-05-22 Kevin Buettner <kevinb@redhat.com>
1911 * dbxout.c (dbxout_class_name_qualifiers): New function.
1912 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1914 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1916 * cpperror.c (_cpp_begin_message): No special casing
1918 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1919 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1920 * cpplib.c (do_include_common): Use DL_ERROR.
1921 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1923 * fix-header.c (read_scan_file): Update.
1925 2002-05-22 Richard Henderson <rth@redhat.com>
1927 * config/i386/i386.c (ix86_expand_call): New function, extracted
1928 from md call patterns. Add pic_offset_table_rtx to
1929 CALL_INSN_FUNCTION_USAGE when needed.
1930 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1931 (call_value_pop, call_value, untyped_call): Likewise.
1932 (call_exp, call_value_exp): Remove.
1933 * config/i386/i386-protos.h: Update.
1935 2002-05-22 Richard Henderson <rth@redhat.com>
1937 * varasm.c (default_section_type_flags): Check for VAR_DECL
1938 before using DECL_THREAD_LOCAL.
1940 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1942 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1943 (STARTFILE_SPEC): Delete PE crt0.o.
1944 * config/rs6000/aix51.h: Same.
1945 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1946 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1947 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1948 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1949 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1951 2002-05-22 Richard Henderson <rth@redhat.com>
1953 * varasm.c (default_section_type_flags): Handle tls data and
1955 (default_unique_section): Handle tls sections.
1957 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1959 * configure.in (CROSS): Define NATIVE_CROSS.
1960 * configure: Regenerate.
1961 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1962 (startfile_prefix_spec): New var.
1963 (static_specs): Add startfile_prefix_spec.
1964 (do_spec_2): Split out from..
1966 (main): Process startfile_prefix_spec.
1967 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1969 (STARTFILE_PREFIX_SPEC): Define.
1970 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1973 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1975 * cpperror.c: Fix formatting.
1976 * cppexp.c: Likewise.
1977 * cppfiles.c: Likewise.
1978 * cpphash.c: Likewise.
1979 * cpphash.h: Likewise.
1980 * cppinit.c: Likewise.
1981 * cpplex.c: Likewise.
1982 * cpplib.c: Likewise.
1983 * cppmacro.c: Likewise.
1984 * cppmain.c: Likewise.
1985 * cppspec.c: Likewise.
1987 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1989 * combine.c (force_to_mode): Use gen_int_mode.
1990 Don't clear CONST_INT bits outside of mode.
1992 2002-05-22 Richard Henderson <rth@redhat.com>
1994 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1995 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1997 2002-05-22 Jakub Jelinek <jakub@redhat.com>
2000 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
2001 if DECL_SIZE_UNIT is INTEGER_CST.
2003 2002-05-22 Richard Henderson <rth@redhat.com>
2005 * flow.c (life_analysis): Delete broken reg_label check.
2007 2002-05-22 Richard Henderson <rth@redhat.com>
2009 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
2010 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
2012 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2014 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
2015 (embed-bb.c): New rule.
2016 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
2017 * config/sh/embed_bb.c: Delete.
2019 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
2021 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
2023 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
2025 * config/h8300/h8300.md (*andorqi3): New.
2027 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
2029 PR preprocessor/6517
2030 * Makefile.in: Update.
2031 * c-common.c (c_common_post_options): Add preprocessor
2032 errors to the error count.
2033 * c-lang.c (c_post_options): Kill.
2034 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2035 * hooks.h: Add header guards.
2036 * langhooks-def.h: Include hooks.h.
2037 (LANG_HOOKS_POST_OPTIONS): Update.
2038 * langhooks.h (struct lang_hooks): Update post_options.
2039 * toplev.c (parse_options_and_default_flags): Update.
2041 * objc-lang.c (objc_post_options): Kill.
2042 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2044 2002-05-21 Bruce Korb <bkorb@gnu.org>
2046 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
2047 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
2048 * fixinc/fixincl.x: regen.
2050 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
2052 * cfgbuild.c: Fix formatting.
2054 * cfgcleanup.c: Likewise.
2055 * cfglayout.c: Likewise.
2056 * cfgloop.c: Likewise.
2057 * cfgrtl.c: Likewise.
2059 2002-05-21 Richard Henderson <rth@redhat.com>
2061 * c-common.h (enum rid): Add RID_THREAD.
2062 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
2063 (grokdeclarator): Grok __thread.
2064 * c-parse.in (reswords): Add __thread.
2065 (rid_to_yy): Add RID_THREAD.
2067 * tree.h (DECL_THREAD_LOCAL): New.
2068 (struct tree_decl): Add thread_local_flag.
2069 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
2070 * tree.c (staticp): TLS variables are not static.
2072 * target-def.h (TARGET_HAVE_TLS): New.
2073 * target.h (have_tls): New.
2074 * output.h (SECTION_TLS): New.
2075 * varasm.c (assemble_variable): TLS variables can't be common for now.
2076 (default_section_type_flags): Handle .tdata and .tbss.
2077 (default_elf_asm_named_section): Handle SECTION_TLS.
2078 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
2080 * flags.h (flag_tls_default): Declare.
2081 * toplev.c (flag_tls_default): Define.
2082 (display_help): Display help for it.
2083 (decode_f_option): Set it.
2085 * doc/extend.texi (Thread-Local): New node describing language-level
2086 thread-local storage.
2087 * doc/invoke.texi (-ftls-model): Document.
2089 * fixinc/inclhack.def (thread_keyword): New.
2090 * fixinc/fixincl.x: Rebuild.
2092 2002-05-21 Jeffrey A Law <law@redhat.com>
2094 * optabs.c (expand_binop): For double-word integer multiplies,
2095 do not compute intermediate results into something that is
2096 not a register (such as a SUBREG or MEM).
2098 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
2099 (ix86_sched_reorder): Make sure to initialize scheduling
2100 data even when there's only one insn in the ready queue.
2102 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
2104 * genautomata.c (reserv_sets_hash_value): Fix a typo.
2106 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
2108 * genautomata.c (reserv_sets_hash_value): Define hash_value as
2109 set_el_t. Transform the hash value into unsigned.
2110 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
2111 (transform_3): Add code to process `(A,B)+(D,E)'.
2113 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
2115 * reload1.c (do_output_reload): Run delete_output_reload
2118 2002-05-21 Roger Sayle <roger@eyesopen.com>
2121 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
2122 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
2123 (can_store_by_pieces): ... and here to limit the largest mode used.
2124 Add a comment to document this function.
2126 2002-05-21 Richard Henderson <rth@redhat.com>
2128 * flow.c (life_analysis): Fix test for deleted label.
2130 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
2132 * doc/tm.texi: Fix typo.
2134 2002-05-21 Zack Weinberg <zack@codesourcery.com>
2136 * c-common.c (c_common_init): Set options->unsigned_char from
2138 (cb_register_builtins): Define __STRICT_ANSI__ and
2139 __CHAR_UNSIGNED__ here...
2140 * cppinit.c (init_builtins): Not here.
2141 (cpp_create_reader): unsigned_char option defaults to 0, not
2142 !DEFAULT_SIGNED_CHAR.
2143 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
2144 and -funsigned-char.
2146 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
2147 * cpphash.c (_cpp_init_hashtable): Don't set it.
2148 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
2149 directly. Clarify comment.
2151 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2153 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
2154 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
2155 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
2156 BASIC_BLOCK (n_basic_blocks - 1).
2157 * cfganal.c (can_fallthru, flow_call_edges_add,
2158 flow_preorder_transversal_compute): Too.
2159 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
2160 find_sub_basic_blocks): Too.
2161 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
2162 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
2163 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
2164 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
2165 * combine.c (this_basic_block): Type changed to basic_block.
2166 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
2167 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2168 get_last_value, distribute_notes, distribute_links): Too.
2169 * final.c (compute_alignments): Too.
2170 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
2171 * function.c (thread_prologue_and_epilogue_insns): Too.
2172 * gcse.c (compute_code_hoist_vbeinout): Too.
2173 * global.c (build_insn_chain): Too.
2174 * ifcvt.c (find_if_block, find_cond_trap): Too.
2175 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
2176 * regmove.c (regmove_optimize): Too.
2177 * resource.c (find_basic_block): Too.
2178 * sched-ebb.c (schedule_ebbs): Too.
2179 * ssa-dce.c (find_control_dependence, find_pdom): Too.
2181 2002-05-21 Andreas Jaeger <aj@suse.de>
2183 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
2185 2002-05-21 Richard Henderson <rth@redhat.com>
2187 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
2188 unspec names, not numbers.
2190 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
2192 * doc/sourcebuild.texi: Mention snapshot-README and
2193 snapshot-index.html as needing updating for new front ends.
2195 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2197 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2198 disabling checking, and avoid multiple evaluation of RTX.
2200 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
2202 * bitmap.c (bitmap_find_bit): Return early if we have the correct
2205 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2207 * profile.c (gen_edge_profiler): Set alias set before the memory is
2210 2002-05-20 David S. Miller <davem@redhat.com>
2212 * cselib.c (max_value_regs): New.
2213 (cselib_lookup, cselib_invalidate_regno): Initialize it when
2214 adding new entries to the REG_VALUES table and we are dealing with
2216 (clear_table): Initialize it.
2217 (cselib_invalidate_regno): Use it to determine which hard
2218 registers to scan when mode is not VOIDmode.
2220 2002-05-20 Duraid Madina <duraid@fl.net.au>
2222 * tradcpp.c (fixup_newlines): Use old-style function header.
2224 2002-05-20 Krister Walfridsson <cato@df.lth.se>
2226 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2228 2002-05-20 H.J. Lu (hjl@gnu.org)
2230 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2232 * config/mips/mips.h (DFMODE_NAN): Defined.
2233 (SFMODE_NAN): Likewise.
2235 2002-05-20 Dale Johannesen <dalej@apple.com>
2237 * combine.c (cant_combine_insn_p): Back out my
2240 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2242 * params.c: Fix formatting.
2243 * params.h: Likewise.
2244 * predict.c: Likewise.
2245 * prefix.c: Likewise.
2246 * print-rtl.c: Likewise.
2247 * print-tree.c: Likewise.
2248 * profile.c: Likewise.
2250 2002-05-20 H.J. Lu (hjl@gnu.org)
2252 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2254 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
2256 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2257 switches straight on to the assembler, do not abbreviate them.
2258 * config/arm/elf.h (ASM_SPEC): As above.
2259 * config/arm/semi.h (ASM_SPEC): As above.
2260 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2261 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2262 -mcpu=xscale on to the assembler by default.
2263 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2265 2002-05-20 Richard Henderson <rth@redhat.com>
2267 * cse.c (canon_hash): Reorder do_not_record test. Always
2268 allow pic_offset_table_rtx.
2270 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
2272 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2273 (expand_binop): Ditto (3 times).
2275 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
2277 * Makefile.in (distclean): Remove QMTest stuff.
2278 (QMTEST_PATH): New variable.
2279 (QMTESTFLAGS): Likewise.
2280 (QMTESTRUNFLAGS): Likewise.
2282 (QMTEST_GPP_TESTS): Likewise.
2283 (QMTEST_DIR): Likewise.
2284 (QMTEST_DIR/context): New target.
2285 (qmtest-g++): Likeise.
2286 (qmtest-gui): Likewise.
2287 (QMTEST_DIR/gpp-expected.qmr): Likewise.
2289 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
2291 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2292 an altivec register if TARGET_ALTIVEC.
2294 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2295 to ALTIVEC_VECTOR_MODE.
2296 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2297 (rs6000_va_arg): Vectors may go in registers if they are not
2300 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
2302 * protoize.c: Fix formatting.
2304 2002-05-19 Richard Henderson <rth@redhat.com>
2306 * gensupport.c (init_include_reader): Merge into ...
2307 (process_include): ... here. Simplify composite path creation.
2308 Plug memory leaks. Fix file/line number tracking. Do not
2309 process_define_cond_exec. Return void.
2310 (process_rtx): Don't check process_include return value.
2312 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2314 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2316 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2317 traversing basic block chain.
2318 (create_basic_block_structure, create_basic_block): Declaration changed.
2319 (link_block, unlink_block): Declare.
2320 * cfg.c (entry_exit_blocks): Initialize new fields.
2321 (link_block, unlink_block): New.
2322 (expunge_block_nocompact): Unlink basic block.
2323 (dump_flow_info): Print prev_bb/next_bb fields.
2324 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2325 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2326 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2327 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2328 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2329 (verify_flow_info): Check that list agrees with numbering.
2331 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
2333 * c-common.c (preprocessing_asm): New macro.
2334 * c-lex.h (builtin_define, builtin_assert): Use pfile.
2338 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2339 (CPP_SPEC): Simplify.
2340 (TARGET_CPU_CPP_BUILTINS): Update.
2341 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2342 (CPP_SPEC): Simplify.
2343 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2344 (TARGET_OS_CPP_BUILTINS): Update.
2345 * osf.h (CPP_XFLOAT_SPEC): Kill.
2346 (TARGET_OS_CPP_BUILTINS): Update.
2347 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2348 * osf5.h (CPP_XFLOAT_SPEC): Kill.
2349 * vms.h (CPP_SUBTARGET_SPEC): Kill.
2350 (TARGET_OS_CPP_BUILTINS): Update.
2352 2002-05-19 Richard Henderson <rth@redhat.com>
2354 * varasm.c (default_binds_local_p): Fix typo.
2356 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
2358 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2359 CONST_INT operand to the correct mode after adding 1 to it.
2361 2002-05-19 Mark Mitchell <mark@codesourcery.com>
2363 * config.gcc (powerpc-wrs-windiss*): New target.
2365 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2367 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2370 2002-05-18 Mark Mitchell <mark@codesourcery.com>
2372 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2374 * config.in: Regenerated.
2375 * configure: Regenerated.
2377 2002-05-19 Richard Henderson <rth@redhat.com>
2379 * target-def.h (TARGET_BINDS_LOCAL_P): New.
2380 * target.h (struct gcc_target): Move boolean fields to the end.
2382 * varasm.c (default_binds_local_p): New.
2383 * output.h: Declare it.
2385 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2386 * config/cris/cris.c (cris_encode_section_info): Likewise.
2387 * config/i386/i386.c (i386_encode_section_info): Likewise.
2388 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2389 * config/sh/sh.c (sh_encode_section_info): Likewise.
2391 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2392 (TARGET_BINDS_LOCAL_P): New.
2394 2002-05-19 Richard Henderson <rth@redhat.com>
2396 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2397 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2398 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2400 * toplev.c (display_help): Kill -a -ax help.
2402 * config/1750a/1750a.h, config/alpha/alpha.h,
2403 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2404 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2405 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2406 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2408 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2409 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2411 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2412 (ix86_output_function_block_profiler): Kill.
2413 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2414 (m68hc11_function_block_profiler): Kill.
2415 * config/m68hc11/m68hc11-protos.h: Update.
2416 * config/m88k/m88k.c (output_block_profiler): Kill.
2417 (output_function_block_profiler): Kill.
2418 * config/m88k/m88k-protos.h: Update.
2420 2002-05-19 Richard Henderson <rth@redhat.com>
2422 * system.h (STRIP_NAME_ENCODING): Poison it.
2423 * output.h (STRIP_NAME_ENCODING): Remove.
2424 (default_strip_name_encoding): Declare.
2425 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2426 * target.h (strip_name_encoding): New.
2427 * varasm.c (default_strip_name_encoding): New.
2429 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2430 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2431 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2432 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2433 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2434 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2435 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2436 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2437 config/v850/v850.h: Use the hook, not the macro.
2439 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2440 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2441 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2442 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2443 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2444 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2445 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2446 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2447 config/v850/v850.c, config/v850/v850.h:
2448 Move STRIP_NAME_ENCODING to out-of-line function and add
2449 TARGET_STRIP_NAME_ENCODING.
2451 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2452 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2453 with TARGET_STRIP_NAME_ENCODING referencing existing function;
2454 make function static.
2456 * xcoffout.c: Include target.h
2457 * Makefile.in (xcoffout.o): Update.
2459 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2460 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2461 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2462 reloc argument unused.
2463 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2465 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2466 STRIP_NAME_ENCODING docs.
2468 2002-05-19 Andreas Jaeger <aj@suse.de>
2470 * gengenrtl.c: Add prototype for excluded_rtx.
2472 * real.h: Add prototype for exact_real_truncate.
2474 2002-05-18 Richard Henderson <rth@redhat.com>
2476 * system.h (ENCODE_SECTION_INFO): Poison it.
2477 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2478 * target.h (encode_section_info): New.
2479 * varasm.c (make_decl_rtl, output_constant_def): Use it.
2480 * hooks.c (hook_tree_int_void): New.
2481 * hooks.h: Declare it.
2483 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2484 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2485 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2486 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2487 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2488 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2489 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2490 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2491 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2492 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2493 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2494 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2495 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2496 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2497 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2498 referencing existing function. Make function static.
2500 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2501 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2502 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2503 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2504 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2505 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2506 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2507 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2508 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2509 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2510 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2511 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2512 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2513 Move ENCODE_SECTION_INFO to out-of-line function and add
2514 TARGET_ENCODE_SECTION_INFO.
2516 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2517 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2519 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2521 (switch_to_section): Replace in_rdata case with in_readonly_data.
2523 * config/h8300/h8300.c (h8300_encode_label): Make static.
2524 * config/h8300/h8300-protos.h: Update.
2526 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2527 from rs6000_encode_section_info; make static.
2528 (rs6000_xcoff_encode_section_info): New.
2530 * config/v850/v850.c (v850_encode_data_area): Make static.
2531 * config/v850/v850-protos.h: Update.
2533 * config/vax/vax.c: Include flags.h.
2534 (vms_select_section): Fix typo.
2536 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2537 ENCODE_SECTION_INFO docs.
2539 2002-05-18 Richard Henderson <rth@redhat.com>
2541 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2542 REGISTER_TARGET_PRAGMAS.
2543 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2545 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2547 2002-05-18 Richard Henderson <rth@redhat.com>
2549 * system.h (SELECT_RTX_SECTION): Poison.
2550 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2551 * target.h (select_rtx_section): New.
2552 * varasm.c (output_constant_pool): Use it.
2553 (default_select_rtx_section, default_elf_select_rtx_section): New.
2554 * output.h: Declare them.
2556 * config/darwin.h (SELECT_RTX_SECTION): Move ...
2557 * config/darwin.c (machopic_select_rtx_section): ... here.
2558 * config/darwin-protos.h: Update.
2560 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2561 * config/nextstep.c (machopic_select_rtx_section): ... here.
2562 (nextstep_select_section): Rename variable to avoid macro clash.
2563 * config/nextstep-protos.h: Update.
2565 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2566 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2567 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2568 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2569 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2570 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2571 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2572 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2573 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2574 (SELECT_RTX_SECTION): Remove.
2576 * config/darwin.h, config/elfos.h, config/nextstep.h,
2577 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2578 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2579 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2580 config/sparc/lynx.h, config/xtensa/xtensa.c
2581 (TARGET_ASM_SELECT_RTX_SECTION): New.
2583 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2584 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2585 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2586 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2587 (ia64_aix_select_rtx_section): New.
2588 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2590 * config/mips/mips.c (mips_select_rtx_section): Make static.
2591 Support ELF SHF_MERGE features.
2592 * config/mips/mips-protos.h: Update.
2593 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2594 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2595 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2596 make static, fall back to default_elf_select_rtx_section.
2597 * config/rs6000/rs6000-protos.h: Update.
2598 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2599 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2600 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2601 * config/romp/romp.c (romp_select_rtx_section): New.
2602 * config/s390/s390.c (s390_select_rtx_section): New.
2603 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
2604 declarations before target macro definition.
2605 (xtensa_emit_call): Use static buffer.
2606 (xtensa_select_rtx_section): New.
2607 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2608 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2609 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2611 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2612 SELECT_RTX_SECTION docs.
2614 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
2616 * i386.md (movsi/movdi): Fix template.
2617 (sse2 patterns): Set attributes consistently.
2619 * i386.md (pushqi2, ashrqi_*): Fix constraint.
2621 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
2623 * optabs.c (complex_part_zero_p): New.
2624 * (expand_cmplxdiv_straight): Use it.
2625 * (expand_cmplxdiv_wide): Ditto.
2626 * (expand_binop): Ditto.
2628 2002-05-18 Richard Henderson <rth@redhat.com>
2630 * final.c (HAVE_READONLY_DATA_SECTION): New.
2631 (shorten_branches): Use it instead of ifdefs.
2632 * varasm.c (enum in_section): Add in_readonly_data.
2633 (text_section, data_section): Tidy.
2634 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2636 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2637 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2638 (READONLY_DATA_SECTION): Don't undef.
2640 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2641 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2642 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2644 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2645 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2646 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2647 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2649 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2650 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2651 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2652 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2653 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2654 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2655 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2656 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2657 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2659 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2660 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2661 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2662 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2663 config/pa/pa64-hpux.h, config/sparc/litecoff.h
2664 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2666 * config/elfos.h, config/netware.h, config/svr3.h,
2667 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2668 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2669 config/h8300/h8300.h, config/i386/i386-interix.h,
2670 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2671 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2673 * config/elfos.h, config/netware.h, config/svr3.h,
2674 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2675 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2676 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2677 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2679 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2680 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2681 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2682 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2683 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2684 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2685 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2686 config/rs6000/sysv4.h, config/v850/v850.h
2687 (EXTRA_SECTIONS): Remove in_const/in_rdata.
2688 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2690 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2691 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2692 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2693 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2694 * config/alpha/alpha.c (alpha_start_function): Likewise.
2695 (alpha_write_linkage): Likewise.
2696 * config/m32r/m32r.c (m32r_select_section): Likewise.
2697 * config/m88k/m88k.c (m88k_select_section): Likewise.
2698 * config/mips/mips.c (mips_select_rtx_section): Likewise.
2699 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2700 (rs6000_elf_select_section): Likewise.
2701 * config/v850/v850.c (v850_select_section): Likewise.
2703 * config/1750a/1750a.h, config/i860/sysv3.h
2704 (READONLY_DATA_SECTION_ASM_OP): New.
2705 READONLY_DATA_SECTION_ASM_OP.
2706 * config/i386/interix.c, config/i386/winnt.c
2707 (i386_pe_unique_section): Always use .rdata prefix.
2708 * config/pa/som.h (readonly_data): Always switch to read-only section.
2709 (READONLY_DATA_SECTION): Predicate on flag_pic.
2710 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2711 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2712 (READONLY_DATA_SECTION): Update.
2714 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
2716 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2717 is used without -Wformat.
2718 * c-common.h (warn_format_zero_length): Declare extern.
2719 * c-decl.c (warn_options): Add "format-zero-length".
2720 * c-format.c (warn_format_zero_length): Declare.
2721 (set_Wformat): Set warn_format_zero_length for -Wformat.
2722 (check_format_info): Only warn about zero-length formats if
2723 warn_format_zero_length is true. Include the format type
2724 name in the warning message.
2725 * doc/invoke.texi: Document -Wformat-zero-length.
2726 * testsuite/gcc.dg/format/zero-length-1.c: New test.
2728 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2730 * timevar.c: Fix formatting.
2731 * tlink.c: Likewise.
2732 * toplev.c: Likewise.
2733 * tree-dump.c: Likewise.
2734 * tree-inline.c: Likewise.
2736 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2738 * cppinit.c (cpp_post_options): If preprocessed, turn off
2739 traditional. If traditional, turn off column numbers.
2740 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2741 * cpptrad.c (handle_newline): Update line_base.
2742 (skip_comment): Handle -Wcomment.
2744 2002-05-17 Zack Weinberg <zack@codesourcery.com>
2746 * cppinit.c (struct builtin): Remove unused fields.
2747 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2748 (operator_array): New - was second half of builtin_array.
2749 (init_builtins): Simplify loop over builtin_array/operator_array.
2751 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2753 * defaults.h (UNIQUE_SECTION): Remove.
2754 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2756 2002-05-17 Richard Henderson <rth@redhat.com>
2758 * expr.c (init_expr_once): Don't use start/end_sequence.
2759 Use rtx_alloc instead of emit_insn.
2760 * toplev.c (lang_dependent_init): Run init_expr_once here ...
2761 (lang_independent_init): ... not here.
2763 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2765 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2767 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2769 * config/avr/avr.c (avr_regs_to_save): New function. Also check
2770 for fixed registers, possibly used for global register variables.
2771 (initial_elimination_offset, avr_output_function_prologue,
2772 avr_output_function_epilogue): Move common code to avr_regs_to_save.
2774 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2776 * Makefile.in: Update for cpptrad.c.
2777 * cpphash.h (struct cpp_buffer): New members for buffer
2779 (struct cpp_reader): New members for traditional output.
2780 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2781 * cppinit.c (cpp_create_reader): Set trad_line.
2782 (cpp_destroy): Free trad_out_base if used.
2783 (cpp_read_main_file): Overlay an empty buffer if traditional.
2784 (cpp_finish_options): Don't do builtins.
2785 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2786 (cpp_handle_option): Handle it.
2787 * cpplex.c (continue_after_nul): New.
2788 (_cpp_lex_direct): Use handle_nul.
2789 * cpplib.h (struct cpp_options): New traditional option.
2790 * cpptrad.c: New file.
2792 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2794 * c-common.c (c_common_init_options): Use C89 for Objective-C,
2795 and set the options flag.
2796 * cppinit.c (lang_flags): Remove objc.
2797 (lang_defaults): Remove OBJC and OBJCXX.
2799 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2800 (cpp_handle_option): Remove -+ and -lang-objc++.
2801 For ObjC, just set a flag.
2802 (print_help): Update.
2803 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2805 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2807 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2808 bootstrap with -mips3.
2810 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2812 * final.c: Fix formatting.
2813 * fix-header.c: Likewise.
2815 * fold-const.c: Likewise.
2816 * function.c: Likewise.
2818 2002-05-17 David S. Miller <davem@redhat.com>
2820 PR c/6689, PR optimization/6615
2821 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2822 and make it a pointer to rtx. Update comments.
2823 (update_equiv_regs): When scanning for equivalences, record
2824 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2825 it while making the equiv replacements.
2827 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2829 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2831 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2833 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2834 when encoding visibility into SYMBOL_REF_FLAG.
2836 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2838 * expr.c (force_operand): Fix reversed move.
2840 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2842 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2843 that can be ignored.
2845 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2847 * doc/install.texi (Final install): Recommend to install into a
2848 "clean" target directory.
2850 2002-05-17 Richard Henderson <rth@redhat.com>
2852 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2853 for code blocks. Tidy whitespace.
2855 2002-05-17 Richard Henderson <rth@redhat.com>
2857 * hooks.c (hook_tree_bool_false): New.
2858 * hooks.h: Declare it.
2859 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2860 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2861 * target.h (select_section, unique_section): New.
2862 (in_small_data_p): New.
2863 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2864 (variable_section, output_constant_def_contents): Likewise.
2865 (default_select_section, default_unique_section): New.
2866 (categorize_decl_for_section, default_elf_select_section): New.
2867 * output.h: Declare them.
2869 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2870 (TARGET_ASM_SELECT_SECTION): New.
2871 (SELECT_SECTION): Move ...
2872 * config/darwin.c (machopic_select_section): ... here.
2873 * config/darwin-protos.h: Update.
2875 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2876 (SELECT_SECTION): Move ...
2877 * config/nextstep.c (nextstep_select_section): ... here.
2878 * config/nextstep-protos.h: Update.
2880 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2881 (TARGET_ASM_SELECT_SECTION): New.
2882 * config/svr3.h (SELECT_SECTION): Remove.
2884 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2885 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2886 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2887 (alpha_encode_section_info): Use it.
2888 * config/alpha/alpha-protos.h: Update.
2889 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2890 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2891 (TARGET_ASM_SELECT_SECTION): New.
2892 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2894 * config/arm/pe.h (UNIQUE_SECTION): Remove.
2895 (TARGET_ASM_UNIQUE_SECTION): New.
2897 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2898 (avr_unique_section): Rename from unique_section; make static.
2899 * config/avr/avr-protos.h: Update.
2900 * config/avr/avr.h (UNIQUE_SECTION): Remove.
2902 * config/c4x/c4x.h (SELECT_SECTION): Remove.
2904 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2905 (TARGET_ASM_UNIQUE_SECTION): New.
2906 * config/i386/i386-interix.h: Likewise.
2907 * config/i386/win32.h: Likewise.
2908 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2909 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2910 * config/i386/sco5.h (SELECT_SECTION): Remove.
2911 (TARGET_ASM_SELECT_SECTION): New.
2912 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2914 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2915 instead of SELECT_SECTION.
2916 * config/m68k/dpx2.h: Likewise.
2917 * config/rs6000/lynx.h: Likewise.
2919 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2920 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2921 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2922 (ia64_in_small_data_p): New.
2923 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2924 (ia64_aix_select_section, ia64_aix_unique_section): New.
2925 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2926 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2928 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2929 (TARGET_ASM_SELECT_SECTION): New.
2930 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2931 * config/m32r/m32r-protos.h: Update.
2933 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2934 (SELECT_SECTION): Move ...
2935 * config/m88k/m88k.c (m88k_select_section): ... here.
2937 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2938 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2939 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2940 (mcore_unique_section): Make static.
2941 * config/mcore/mcore-protos.h: Update.
2943 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2944 (TARGET_ASM_UNIQUE_SECTION): New.
2945 * config/mips/elf64.h: Likewise.
2946 * config/mips/iris6gld.h: Likewise.
2947 * config/mips/linux.h: Likewise.
2948 * config/mips/mips-protos.h: Update.
2949 * config/mips/mips.c (mips_select_section): Add align argument.
2950 * config/mips/mips.h (SELECT_SECTION): Remove.
2951 (TARGET_ASM_SELECT_SECTION): New.
2953 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2954 * config/mmix/mmix.c (mmix_select_section): Remove.
2955 (mmix_unique_section): Remove.
2956 * config/mmix/mmix-protos.h: Update.
2958 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2959 (SELECT_SECTION): Move ...
2960 * config/pa/pa.c (pa_select_section): ... here.
2961 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2963 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2964 from rs6000_select_section and make static.
2965 (rs6000_elf_unique_section): Similarly.
2966 (rs6000_xcoff_select_section): From xcoff.h.
2967 (rs6000_xcoff_unique_section): Likewise.
2968 * config/rs6000/rs6000-protos.h: Update.
2969 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2970 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2971 * config/rs6000/xcoff.h: Likewise.
2973 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2974 (SELECT_SECTION): Move ...
2975 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2977 * config/v850/v850.h (SELECT_SECTION): Move ...
2978 * config/v850/v850.c (v850_select_section): ... here.
2979 (TARGET_ASM_SELECT_SECTION): New.
2981 * config/vax/vms.h (SELECT_SECTION): Move ...
2982 * config/vax/vax.c (vms_select_section): ... here.
2983 (TARGET_ASM_SELECT_SECTION): New.
2985 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2986 for the target hooks.
2988 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
2990 * config/arm/arm.c (emit_multi_reg_push): Do not set
2991 RTX_FRAME_RELATED_P on the SEQUENCE.
2993 2002-05-16 Richard Henderson <rth@redhat.com>
2995 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2996 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
2998 2002-05-16 Richard Henderson <rth@redhat.com>
3000 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
3002 * config/ia64/ia64.c (saveable_obstack): Do not declare.
3004 2002-05-16 Richard Henderson <rth@redhat.com>
3006 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
3007 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
3008 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
3009 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
3010 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
3011 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
3012 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
3013 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
3014 Revert "Basic block renumbering removal", and two followup patches.
3016 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
3018 * lcm.c (optimize_mode_switching): Revert previous change.
3020 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3022 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
3023 with only extant block numbers.
3025 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
3027 * lcm.c (optimize_mode_switching): Fix typo.
3029 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3031 * flow.c (calculate_global_regs_live): Queue blocks in program order.
3033 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3035 * doc/install.texi (Configuration): Document PWDCMD.
3037 2002-05-16 Dale Johannesen <dalej@apple.com>
3039 * combine.c (cant_combine_insn_p): Reenable combinations
3040 involving hard regs unless CLASS_LIKELY_SPILLED_P.
3042 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3044 * c-common.c (cb_register_builtins): Handle more built-ins
3045 here rather than in gcc.c specs.
3046 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
3047 (cpp_options): Pass -O flags even when only preprocessing.
3048 * toplev.c (set_fast_math_flags): New prototype.
3049 (fast_math_flags_set_p): New.
3050 (set_no_fast_math_flags): Remove.
3051 (decode_f_option): Update.
3052 * toplev.h (set_fast_math_flags): Update.
3053 (fast_math_flags_set_p): New.
3054 (set_no_fast_math_flags): Remove.
3056 * c4x/c4x.c (c4x_override_options): Update.
3058 2002-05-16 Zack Weinberg <zack@codesourcery.com>
3060 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
3061 Default-define here.
3062 (builtin_define_with_value): Can now wrap the expansion in
3063 quotation marks if such is wanted.
3064 (cb_register_builtins): Update calls to builtin_define_with_value.
3065 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
3067 (c_common_init): Set options->stdc_0_in_system_headers.
3068 * c-lex.h: Update prototype of builtin_define_with_value.
3069 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
3070 and REGISTER_PREFIX.
3072 * cppinit.c (VERS, ULP, C, X): Kill.
3073 (builtin_array): Remove entries for __VERSION__,
3074 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
3075 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
3077 (init_builtins): Kill off a bunch of now-dead code.
3078 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
3079 -fno-leading-underscore.
3080 (cpp_handle_option): Remove code to set user_label_prefix.
3081 (cpp_post_options): Likewise.
3083 * cpplib.h (struct cpp_options): Remove user_label_prefix.
3084 (stdc_0_in_system_headers): New.
3085 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
3086 stdc_0_in_system_headers) too to decide the value of __STDC__.
3088 * tradcpp.c (user_label_prefix): Kill.
3089 (main): Remove code handling -f(no-)leading-underscore.
3090 (initialize_builtins): Don't define __REGISTER_PREFIX__
3091 or __USER_LABEL_PREFIX__.
3092 (install_value): Wrap compound statement in dummy loop so the
3093 macro works properly in an if statement.
3096 2002-05-16 Janis Johnson <janis187@us.ibm.com>
3098 * loop.h (struct loop_info): Add member has_prefetch.
3099 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
3100 (prescan_loop): Initialize has_prefetch.
3101 (struct prefetch_info): Change prefetch_in_loop and
3102 prefetch_before_loop from bit fields to ints.
3103 (emit_prefetch_instructions): Several small fixes.
3104 (check_dbra_loop): Don't reverse loop that uses prefetch.
3106 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3108 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
3109 * configure.in: Likewise.
3110 * fixinc/check.tpl: Likewise.
3111 * fixinc/fixinc.dgux: Likewise.
3112 * fixinc/fixinc.svr4: Likewise.
3113 * fixinc/fixinc.winnt: Likewise.
3114 * fixinc/fixincl.sh: Likewise.
3115 * fixproto: Likewise.
3116 * configure: Regenerate.
3118 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3120 Basic block renumbering removal:
3121 * basic_block.h (struct basic_block_def): Renamed index to sindex,
3122 added prev_bb and next_bb fields.
3123 (n_basic_blocks): Renamed to num_basic_blocks.
3124 (last_basic_block): New, index of last basic block.
3125 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3126 traversing basic block chain.
3127 (BLOCK_NUM): index -> sindex.
3128 (create_basic_block_structure, create_basic_block): Declaration changed.
3129 (debug_num2bb): Declare.
3130 (expunge_block_nocompact): Declaration removed.
3131 (link_block, unlink_block, compact_blocks): Declare.
3132 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
3133 * cfg.c (entry_exit_blocks): Initialize new fields.
3134 (clear_edges, alloc_block, expunge_block, cached_make_edge,
3135 redirect_edge_pred, dump_flow_info, dump_edge_info,
3136 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
3137 free_aux_for_edges): Modified.
3138 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
3139 (expunge_block_nocompact): Removed.
3140 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
3141 find_unreachable_blocks, create_edge_list, print_edge_list,
3142 verify_edge_list, flow_edge_list_print, remove_fake_successors,
3143 remove_fake_edges, flow_reverse_top_sort_order_compute,
3144 flow_depth_first_order_compute, flow_preorder_transversal_compute,
3145 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
3146 flow_dfs_compute_reverse_execute): Modified.
3147 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
3148 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
3150 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3151 merge_blocks_move_predecessor_nojumps,
3152 merge_blocks_move_successor_nojumps, merge_blocks,
3153 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
3154 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
3155 * cfglayout.c (skip_insns_after_block, label_for_bb,
3156 record_effective_endpoints, scope_to_insns_finalize,
3157 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
3158 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
3159 cfg_layout_duplicate_bb): Modified.
3160 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
3161 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3162 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
3163 flow_loops_find, flow_loop_outside_edge_p): Modified.
3164 * cfgrtl.c (create_basic_block_structure, create_basic_block,
3165 flow_delete_block, compute_bb_for_insn, split_block,
3166 try_redirect_by_replacing_jump, redirect_edge_and_branch,
3167 force_nonfallthru_and_redirect, tidy_fallthru_edge,
3168 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
3169 commit_edge_insertions, commit_edge_insertions_watch_calls,
3170 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3171 purge_all_dead_edges): Modified.
3172 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
3173 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3174 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
3176 * conflict.c (conflict_graph_compute): Modified.
3177 * df.c (FOR_ALL_BBS): Removed.
3178 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3179 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
3180 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
3181 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
3182 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3183 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
3184 * final.c (compute_alignments, final_scan_insn): Modified.
3185 * flow.c (verify_local_live_at_start, update_life_info,
3186 update_life_info_in_dirty_blocks, free_basic_block_vars,
3187 delete_noop_moves, calculate_global_regs_live,
3188 initialize_uninitialized_subregs, allocate_bb_life_data,
3189 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
3190 mark_used_reg, count_or_remove_death_notes): Modified.
3191 * function.c (thread_prologue_and_epilogue_insns): Modified.
3192 * gcse.c (struct null_pointer_info): Change typo of current_block
3194 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3195 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3196 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3197 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3198 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3199 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3200 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3201 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3202 pre_delete, one_pre_gcse_pass, compute_transpout,
3203 invalidate_nonnull_info, delete_null_pointer_checks_1,
3204 free_code_hoist_mem, compute_code_hoist_vbeinout,
3205 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3206 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3207 compute_store_table, build_store_vectors, insert_insn_start_bb,
3208 insert_store, replace_store_insn, free_store_memory, store_motion):
3210 * global.c (global_alloc, global_conflicts, mark_elimination,
3211 build_insn_chain): Modified.
3212 * graph.c (print_rtl_graph_with_bb): Modified.
3213 * haifa-sched.c (sched_init): Modified.
3214 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3215 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3216 if_convert): Modified.
3217 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3218 compute_insert_delete, pre_edge_lcm, compute_available,
3219 compute_farthest, compute_nearerout, compute_rev_insert_delete,
3220 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3222 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3223 * loop.c (loop_dump_aux): Modified.
3224 * predict.c (combine_predictions_for_insn, estimate_probability,
3225 last_basic_block_p, process_note_prediction, process_note_predictions,
3226 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3227 expensive_function_p, estimate_bb_frequencies,
3228 compute_function_frequency): Modified.
3229 * print-rtl.c (print_rtx): Modified.
3230 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3231 get_exec_counts, compute_branch_probabilities, compute_checksum,
3232 branch_prob, find_spanning_tree): Modified.
3233 * recog.c (split_all_insns, peephole2_optimize): Modified.
3234 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3235 convert_regs_1, convert_regs_2, convert_regs): Modified.
3236 * regclass.c (scan_one_insn, regclass): Modified.
3237 * regmove.c (mark_flags_life_zones, regmove_optimize,
3238 combine_stack_adjustments): Modified.
3239 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3240 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3241 * reorg.c (dbr_schedule): Modified.
3242 * resource.c (find_basic_block, init_resource_info): Modified.
3243 * sbitmap.c (sbitmap_intersection_of_succs,
3244 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3245 sbitmap_union_of_preds): Modified.
3246 * sched-deps.c (init_dependency_caches): Modified.
3247 * sched-ebb.c (schedule_ebbs): Modified.
3248 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3249 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3250 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3251 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3252 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3253 ssa_const_prop): Modified.
3254 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3255 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3256 * ssa.c (remove_phi_alternative, find_evaluations,
3257 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3258 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3259 make_regs_equivalent_over_bad_edges,
3260 make_equivalent_phi_alternatives_equival,
3261 compute_conservative_reg_partition,
3262 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3263 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3266 2002-05-16 Mark Mitchell <mark@codesourcery.com>
3268 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3270 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
3272 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3273 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3274 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3275 calling CONSTANT_POOL_ADDRESS_P.
3276 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3277 to decide whether to define __arm__ or __thumb.
3278 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3279 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3281 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3283 * config/arc/arc.h (CPP_PREDEFINES): Remove.
3285 (TARGET_CPU_CPP_BUILTINS): New.
3287 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3289 * cpphash.h (cpp_macro): Move here, and make expansion a union.
3290 * cppmacro.c (cpp_macro): Remove.
3291 (enter_macro_context, replace_args, warn_of_redefinition,
3292 _cpp_create_definition, cpp_macro_definition): Update.
3294 2002-05-16 Jason Merrill <jason@redhat.com>
3296 * config/mips/mips.c (mips_output_external): Don't do sdata
3297 optimization for a variable with DECL_COMDAT set.
3299 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3301 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3302 Cleanups for accepting modifiers on pointers.
3303 Fix predicate typos.
3304 Allow long pointers as well as int pointers.
3306 2002-05-15 Richard Henderson <rth@redhat.com>
3308 * varasm.c (merge_weak): Remove special case for extern and common.
3310 2002-05-15 Matt Hiller <hiller@redhat.com>
3312 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3314 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3315 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3316 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3317 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3318 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3319 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3321 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3323 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3325 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3327 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3328 ("altivec_mfvscr"): Read from VSCR.
3330 Add vscr sets for the following insns: altivec_vctuxs,
3331 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3332 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3333 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3334 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3335 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3336 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3337 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3338 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3339 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3340 altivec_vsum2sws, altivec_vsumsws.
3342 * config/rs6000/rs6000.h: Add VSCR fixed register.
3343 (CALL_REALLY_USED_REGISTERS): Add vscr.
3344 (CALL_USED_REGISTERS): Same.
3345 (FIXED_REGISTERS): Same.
3346 (REG_ALLOC_ORDER): Same.
3347 (reg_class): Add VSCR_REGS.
3348 (REG_CLASS_NAMES): Same.
3349 (REG_CLASS_CONTENTS): Same.
3351 (REGISTER_NAMES): Add vscr.
3352 (DEBUG_REGISTER_NAMES): Same.
3353 (ADDITIONAL_REGISTER_NAMES): Same.
3354 (FIRST_PSEUDO_REGISTER): Increment.
3355 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3357 2002-05-15 Jakub Jelinek <jakub@redhat.com>
3359 * fold-const.c (fold): Fix a typo.
3361 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
3363 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3364 comparison against the highest or lowest integer value before
3365 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3366 transformation and that of an unsigned comparison against 0
3369 2002-05-15 Richard Henderson <rth@redhat.com>
3371 * varasm.c (merge_weak): Error for any weakening after definition.
3372 Adjust weakening after use warning to catch more cases.
3373 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3374 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3376 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
3378 * invoke.texi (-malign-double): Re-add lost warning.
3380 * i386-protos.h (x86_output_mi_thunk): Declare.
3381 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3382 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3384 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3385 when flag_asynchronous_unwind_tables is set.
3387 * flags.h (flag_reorder_functions): Declare.
3388 * function.c (prepare_function_start): Initialize frequnecy.
3389 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3390 * Makefile.in (predict.o): Add dependency on target.h and params.h
3391 * defaults.h (HOT_TEXT_SECTION_NAME,
3392 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3393 * predict.c (choose_function_section): New function.
3394 (estimate_bb_frequencies): Use it.
3395 * toplev.c (flag_reorder_functions): New global variable.
3396 (lang_independent_options): New.
3397 (parse_options_and_default_flags): Set.
3398 * varasm.c (assemble_start_function): Bypass functdion alignment
3399 for never executed functions.
3400 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3401 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3402 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3405 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
3407 * predict.c: Inlude profile.h
3408 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3409 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3410 Use the information about maximal counter in the program.
3412 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
3414 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3415 probably_never_executed_bb_p): New functions.
3416 * cfgcleanup.c (outgoing_edges_match): Use them.
3417 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3418 (maybe_hot_bb_p, probably_cold_bb_p,
3419 probably_never_executed_bb_p): New functions.
3421 * function.h (function): Add new field function_frequency.
3422 * predict.c (compute_function_frequency): New function.
3423 (estimate_probability): Call it.
3425 2002-03-09 Jakub Jelinek <jakub@redhat.com>
3427 PR optimization/5172, optimization/5200
3428 * gcse.c (gcse_main): Disable store_motion.
3430 2002-05-14 Zack Weinberg <zack@codesourcery.com>
3432 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3433 (c_common_nodes_and_builtins): Use it.
3434 (builtin_define_with_value): New function.
3435 (cb_register_builtins): Define __SIZE_TYPE__,
3436 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3437 using builtin_define_with_value. Use consistent notation when
3438 defining __GXX_WEAK__.
3439 (WCHAR_TYPE_SIZE): Don't redefine.
3440 (combine_strings): Don't use WCHAR_TYPE_SIZE.
3442 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3443 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3444 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3445 * tradcpp.c (initialize_builtins): Likewise.
3446 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3448 * c-lex.h (builtin_define_with_value): Prototype.
3449 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3450 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3451 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3453 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3454 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3455 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3456 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3457 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3458 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3459 config/sparc/sol2-bi.h, config/sparc/sparc.h:
3460 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
3461 to __SIZE_TYPE__ etc from all spec strings. When this makes
3462 extra specs empty, delete them.
3464 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
3466 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3467 for PA8000 or generating dwarf2 call frame information.
3468 (output_call): Remove DO_FRAME_NOTES check from return pointer
3470 (following_call): Return 0 when scheduling for PA8000 or generating
3471 dwarf2 call frame information. Revise comment.
3473 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3476 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3477 and __IEEE_FP_INEXACT as appropriate.
3478 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3479 (CPP_SPEC): Remove ieee defines.
3480 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3482 2002-05-14 Richard Henderson <rth@redhat.com>
3484 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3485 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3487 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3489 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3491 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3492 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3493 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3494 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3495 (EXTRA_SPECS): Update.
3496 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3497 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3498 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3499 define TARGET_OS_CPP_BUILTINS if necessary.
3501 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3503 * gcc.c (cpp_options): Must pass -m* and -f* options
3504 to the front end even when only preprocessing.
3505 (cc1_options): Remove redundant -lang-c.
3506 * tradcpp.c (main): Ignore -m options.
3508 * lang-specs.h: Similarly.
3510 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
3512 * genautomata.c (transform_3): Add code for transformation
3513 `(A,B,...)+C -> A+C,B,...'.
3515 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
3517 * final.c (end_final): Do not output profile_arcs constructor, when
3518 no functions are instrumented.
3520 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
3522 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3524 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3526 * doc/install.texi: Remove special markup originally required for
3527 HTML generation with texi2html.
3529 2002-05-14 Andreas Schwab <schwab@suse.de>
3531 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3533 (UNIQUE_SECTION): Define to get small data correctly.
3535 * varasm.c (resolve_unique_section): Add third parameter
3536 flag_function_or_data_sections and use it instead of
3537 flag_function_sections.
3538 (assemble_start_function): Pass flag_function_sections.
3539 (asm_emit_uninitialised): Pass flag_data_sections.
3540 (assemble_variable): Likewise.
3542 2002-05-14 Richard Henderson <rth@redhat.com>
3544 * config/i386/i386.md: Use define_constants for unspec numbers.
3545 * config/i386/i386.c: Likewise.
3547 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3549 * doc/contrib.texi: Update my entry.
3551 2002-05-13 Mark Mitchell <mark@codesourcery.com>
3553 * fixinc/inclhack.def (winidss_valist): Limit applicability.
3554 * fixinc/fixincl.x: Regenerated.
3555 * fixinc/tests/base/math.h: Update.
3556 * fixinc/tests/base/testing.h: Likewise.
3558 2002-05-13 Zack Weinberg <zack@codesourcery.com>
3560 * genattr.c (gen_attr): Don't emit a comma after the last
3563 2002-05-13 Richard Henderson <rth@redhat.com>
3565 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3567 * recog.c (peephole2_optimize): Likewise.
3569 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
3571 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3574 2002-05-13 Jeffrey A Law (law@redhat.com)
3576 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3577 Update prototype and callers.
3578 (propagate_one_insn): Stack pointer adjustments kill MEMs on
3579 the mem_set_list which reference the stack pointer, as do
3580 calls to constant functions as they may clobber outgoing
3583 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3585 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3586 (ia32_multipass_dfa_lookahead): New function.
3588 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3590 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3591 (translate_options): Remove 'V'.
3592 (process_command): Similarly.
3594 * invoke.texi: Remove documentation of 'V'.
3596 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3598 * config/s390/linux.h: Revert 2002-04-22 changes.
3600 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
3602 * config/fr30/fr30.md: Only allow splits of immediate loads
3603 if the destination is a register.
3605 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3607 * Makefile.in (c-common.o, cppinit.o): Update.
3608 * c-common.c: Include except.h.
3609 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3610 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3611 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3612 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3613 CPP_PREDEFINES): Handle here.
3615 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3616 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3617 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3618 TARGET_OS_CPP_BUILTINS.
3619 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3620 (CPP_SPEC, EXTRA_SPECS): Update.
3621 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3622 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3623 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3624 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3625 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3627 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3628 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3630 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3632 * emit-rtl.c (global_rtl): Update comment.
3633 (const_double_htab, const_double_htab_hash,
3634 const_double_htab_hash, lookup_const_double): New.
3635 (const_int_htab_hash, const_int_htab_eq): Remove const
3636 qualifiers, which cause tons of warnings with RTL checking on.
3637 (gen_rtx_CONST_DOUBLE): Deleted.
3638 (const_double_from_real_value): New function - bears some
3639 resemblance to the former immed_real_const_1.
3640 (immed_double_const): Moved here from varasm.c and
3642 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3643 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3644 (gen_rtx): Use immed_double_const.
3645 (init_emit_once): Initialize the const_double_htab. Use
3646 REAL_VALUE_FROM_INT where possible. Can now use
3647 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3648 * varasm.c (struct varasm_status): Remove x_const_double_chain.
3649 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3650 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3651 (init_varasm_status, mark_varasm_status): Don't touch
3652 x_const_double_chain.
3654 * output.h: Delete prototype for clear_const_double_mem.
3655 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
3656 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
3657 const_double_from_real_value, not immed_real_const_1, and use
3658 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
3660 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3661 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3662 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3663 (gen_rtx_REG): Second arg is unsigned.
3665 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3666 (excluded_rtx): New, return true for CONST_DOUBLE.
3667 (genmacro): Write nothing for excluded codes.
3668 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3669 * expr.c (expand_expr): Likewise.
3670 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3672 * toplev.c (rest_of_compilation): Don't call
3673 clear_const_double_mem.
3675 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3676 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3677 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3678 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3679 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3680 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3681 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3682 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3684 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3686 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3688 2002-05-12 Tom Tromey <tromey@redhat.com>
3690 * tree.h (copy_node): Don't mention TREE_PERMANENT.
3692 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3694 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3695 (scan_comma_elt): New function. Accepts whitespace in comma lists.
3696 * gensupport.h: Prototype new routines.
3697 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
3699 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3700 (next_comma_elt): Use scan_comma_elt.
3702 * config/i386/i386.md: Use new attribute notation to break up
3703 long lines in define_attr forms.
3705 2002-05-12 Richard Henderson <rth@redhat.com>
3707 * expr.c (compress_float_constant): New.
3708 (emit_move_insn): Use it.
3709 (float_extend_from_mem): New.
3710 (init_expr_once): Initialize it.
3711 * real.c (exact_real_truncate): New.
3713 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3714 dropped into memory; penalize for size.
3715 (RTX_COSTS): FLOAT_EXTEND is free.
3716 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3717 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3719 2002-05-12 Richard Henderson <rth@redhat.com>
3721 * profile.h (profile_info): Add missing extern to declaration.
3722 * profile.c (profile_info): Define it.
3724 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3726 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3727 used for DImode and TImode.
3729 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3731 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3734 2002-05-11 Zack Weinberg <zack@codesourcery.com>
3736 * config/rs6000/rs6000.c (rs6000_default_long_calls,
3737 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3738 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3739 (rs6000_override_options): Handle -m(no-)longcall.
3740 (init_cumulative_args, output_mi_thunk): Check for both
3741 longcall and shortcall attributes on the function.
3742 (rs6000_attribute_table): Add "shortcall".
3743 (rs6000_handle_longcall_attribute): Update comment.
3744 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3745 altivec_expand_ternop_builtin): Add default clauses to switches
3746 to silence warnings.
3748 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3749 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
3750 (TARGET_OPTIONS): Add longcall and no-longcall.
3752 * config/rs6000/rs6000.md (call_nonlocal_sysv,
3753 call_value_nonlocal_sysv): Split by alternatives. One pair
3754 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3755 the call cookie. The other pair accepts only LR/CTR and has
3758 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3759 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3761 * config/rs6000/rs6000-c.c: New file.
3762 * config/rs6000/t-rs6000-c-rule: New file.
3763 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3764 Prototype rs6000_pragma_longcall.
3766 * doc/extend.texi: Document shortcall attribute.
3767 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3769 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3771 * reorg.c (dbr_schedule): Remove unnecessary test.
3773 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3775 * i386.md (testsi to testqi spliters): New.
3777 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
3779 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3781 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3783 * basic-block.h: New flag EDGE_CAN_FALLTHRU
3784 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3785 that can be made fallthru.
3787 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
3789 * cfglayout.c (cleanup_unconditional_jumps): New static function.
3790 (cfg_layout_initialize): Use it.
3792 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
3794 * config/avr/avr.c (avr_mcu_types): Update supported devices.
3795 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3796 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3798 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3800 * dbxout.c: Fix formatting.
3801 * dependence.c: Likewise.
3803 * diagnostic.c: Likewise.
3804 * doloop.c: Likewise.
3805 * dominance.c: Likewise.
3806 * doschk.c: Likewise.
3807 * dwarf2asm.c: Likewise.
3808 * dwarf2out.c: Likewise.
3809 * dwarfout.c: Likewise.
3811 2002-05-10 Richard Henderson <rth@redhat.com>
3813 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3814 Convert integers constants as needed. Replace "nwords" field with
3816 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3817 * function.h: Fix typo in comment.
3818 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3820 2002-05-10 Roger Sayle <roger@eyesopen.com>
3822 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3823 into the equivalent (signed char)c > 0.
3825 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3827 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3828 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3829 (struct prefetch_info): Fix spelling of member bytes_accessed.
3830 (emit_prefetch_instructions): Make dump messages more regular;
3831 restructure code to add more dump messages; use new macros for
3832 heuristics. (There are no code generation changes in any of this).
3834 2002-05-10 David S. Miller <davem@redhat.com>
3836 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3837 (struct rtx_def): Update unchanging flag comment.
3838 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3839 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3840 to be handled to INSN too.
3841 (dbr_schedule): Likewise.
3842 * resource.c (next_insn_no_annul): Likewise.
3844 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3847 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3849 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3850 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3851 (possibly) work around broken /bin/sh.
3853 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3855 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3856 . as N64/N32 libgcc_s.so subdirs.
3858 2002-05-10 David S. Miller <davem@redhat.com>
3860 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3862 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3864 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3866 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3867 * doc/rtl.texi: Document these macros more accurately.
3868 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3869 JUMP_INSNs and CALL_INSNs.
3870 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3871 or INSN_FROM_TARGET_P if the code is appropriate.
3873 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3875 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3876 before using SYMBOL_REF_FLAG (addr).
3878 * config/avr/avr-protos.h (avr_io_address_p): Declare.
3879 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3880 Make non-static. Update all callers.
3881 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3882 New insns to clear/set/test a single bit in I/O address space.
3884 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3886 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3888 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3890 * Makefile.in: Update.
3891 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3892 builtin_define_std): New.
3893 (c_common_init): Register CPP builtins callback.
3894 * c-common.h (flag_iso, flag_undef): New.
3895 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3896 * c-lex.c: Don't include target.h.
3897 (cb_register_builtins): Move to c-common.c.
3898 (init_c_lex): Don't register hook here.
3899 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3900 (cpp_define, cpp_assert): Remove.
3901 * gcc.c (cc1_options): Pass -undef to front end.
3902 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3903 (TARGET_INITIALIZER): Update.
3904 * target.h (struct cpp_reader): Don't predeclare.
3905 (struct gcc_target): Remove cpp builtin hook.
3906 * tree.c (default_register_cpp_builtins): Remove.
3910 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3912 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3914 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3916 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3917 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3919 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3921 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3922 * config/sparc/libgcc-sparc-glibc.ver: New file.
3923 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3924 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3926 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3929 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3930 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3931 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3933 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3934 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3935 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3936 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3938 2002-05-09 Richard Henderson <rth@redhat.com>
3940 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3941 * config/ia64/ia64.c: Likewise.
3943 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3945 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3946 (save_restore_insns): Likewise.
3947 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3948 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3950 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
3952 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3953 * i386.md: Move scheduling information into new files.
3955 * i386.md (type attribute): Add "rotate" for rotate insns.
3956 (rotate insns): Set type to "rotate".
3957 (various attributes and function units): Treat rotate like shift.
3958 (pent_pair attribute): Only rotates by one bit position are
3960 (sbb insns): Explicitly set pent_pair attribute on a couple
3961 that were missing it.
3963 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3965 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3966 make sure that buffer starts on odd word address.
3967 (sh_va_arg): Skip odd fp registers when reading a double precision
3970 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3972 * tree.h (preserve_data, object_permanent_p, type_precision):
3975 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3977 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3978 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3980 * cpp.texi: Update for removal of obsolete features.
3982 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
3983 Jeffrey A Law (law@redhat.com)
3985 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
3986 the DFA interface for Pentium processors.
3987 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3988 (attr_pent_pair, ix86_pent_find_pair): Remove.
3989 (ix86_sched_reorder_pentium): Remove.
3990 (ix86_sched_reorder): Remove reordering for Pentium.
3991 * i386.md (Pentium scheduling): Rewrite using DFA description.
3993 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
3995 * cfganal.c (can_fallthru): Fix fast path.
3996 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3997 with edges to the next block.
3999 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
4000 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
4002 * final.c (end_final): Use C trees to output data structures for profiling.
4004 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
4005 (profile.o): New dependency profile.h
4006 (final.o): New dependency profile.h
4007 * profile.h: New file. New global structure profile_info.
4008 * final.h (count_edges_instrumented_now): Declare.
4009 (current_function_cfg_checksum): Declare.
4010 (function_list): New structure.
4011 (functions_head, functions_tail): New static variables.
4012 (end_final): Emits more data, removed some -ax stuff.
4013 (final): Stores function names and chcksums.
4014 * gcov-io.h (__write_gcov_string): New function.
4015 (__read_gcov_string): New function.
4016 * gcov.c (read_profile): New function.
4017 (create_program_flow_graph): Uses read_profile instead of reading
4019 (read_files): Removed da_file checking, it's done by read_profile now.
4020 * libgcc2.c (bb_function_info): New structure.
4021 (bb): New field in structure, removed some -ax stuff.
4022 (__bb_exit_func): Changed structure of da_file.
4023 * profile.c (count_edges_instrumented_now): New global variable.
4024 (current_function_cfg_checksum): New global variable.
4025 (max_counter_in_program): New global variable.
4026 (get_exec_counts): New function.
4027 (compute_checksum): New function.
4028 (instrument_edges): Sets count_edges_instrumented_now.
4029 (compute_branch_probabilities): Uses get_exec_counts instead of
4031 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
4032 (init_branch_prob): Removed da_file checking, done in get_exec_counts
4034 (end_branch_prob): Removed da_file checking, done in get_exec_counts
4036 * gcov.texi: Updated information about gcov file format.
4038 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4040 * sbitmap.c: Fix formatting.
4042 * scan-decls.c: Likewise.
4043 * sched-deps.c: Likewise.
4044 * sched-ebb.c: Likewise.
4045 * sched-rgn.c: Likewise.
4046 * sched-vis.c: Likewise.
4047 * sdbout.c: Likewise.
4048 * sibcall.c: Likewise.
4049 * simplify-rtx.c: Likewise.
4051 * ssa-ccp.c: Likewise.
4052 * ssa-dce.c: Likewise.
4054 * stor-layout.c: Likewise.
4055 * stringpool.c: Likewise.
4057 2002-05-09 David S. Miller <davem@redhat.com>
4059 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
4061 2002-05-07 David S. Miller <davem@redhat.com>
4063 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
4064 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
4065 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
4066 library implementation clobbers the output before the inputs
4067 are fully consumed, use stack temporary for the output.
4069 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
4071 * config/netbsd.h (CPP_SPEC): Remove.
4072 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
4073 * config/i386/netbsd.h (CPP_SPEC): Define.
4074 * config/ns32k/netbsd.h (CPP_SPEC): Define.
4075 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
4076 * config/sparc/netbsd.h (CPP_SPEC): Define.
4077 * config/vax/netbsd.h (CPP_SPEC): Define.
4079 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4081 * read-rtl.c: Fix formatting.
4083 * recog.c: Likewise.
4084 * regclass.c: Likewise.
4085 * regmove.c: Likewise.
4086 * reg-stack.c: Likewise.
4087 * reload1.c: Likewise.
4088 * reload.c: Likewise.
4089 * resource.c: Likewise.
4090 * rtlanal.c: Likewise.
4092 * rtl-error.c: Likewise.
4094 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
4096 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
4097 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
4099 2002-05-08 Bernd Schmidt <bernds@redhat.com>
4101 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
4102 use __SSE2__ macro instead.
4103 * config/i386/xmmintrin.h: Likewise.
4105 2002-05-08 Janis Johnson <janis187@us.ibm.com>
4107 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
4108 and use it in all invocations of these macros. Clean up comments.
4109 * rtl.c (rtl_check_failed_flag): Add an argument for the name
4110 of the flag access macro whose check failed.
4111 * doc/rtl.texi (Flags): Document additional flag uses.
4113 2002-05-08 Robert Spier <rspier@pobox.com>
4114 Neil Booth <neil@daikokuya.demon.co.uk>
4116 PR preprocessor/6521
4117 * cppfiles.c (handle_missing_header): Don't do anything
4118 different for <> includes.
4120 * cppopts.texi: Update documentation for -MG.
4122 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
4124 * cpplex.c (cpp_interpret_charconst): Truncate as well as
4127 * cpp.texi: Clarify multichar charconst valuation.
4129 2002-05-08 Mark Mitchell <mark@codesourcery.com>
4131 * doc/invoke.texi: Document -mwindiss option.
4133 2002-05-08 Jason Merrill <jason@redhat.com>
4135 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
4137 * dwarf2out.c (gen_type_die): Abort on broken recursion.
4140 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
4143 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
4145 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
4146 little-endian multilibs to override arm/thumb multilibs.
4147 Do not build hardware floating point multilibs, nor apcs-26
4148 multilibs for the Thumb.
4150 2002-05-08 Mark Mitchell <mark@codesourcery.com>
4153 * varasm.c (mark_weak): New function.
4154 (merge_weak): Use it. Do not call declare_weak.
4155 (declare_weak): Use merge_weak.
4157 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4159 * cse.c (dead_libcall_p): Update counts.
4160 (delete_trivially_dead_insns): Update call of dead_libcall_p.
4162 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
4164 * cfglayout.c (function_tail_eff_head): Rename to ...
4165 (function_footer): ... this one.
4166 (unlink_insn_chain): New functions.
4167 (label_for_bb): Only call block_label and emit debug message.
4168 (record_effective_endpoints): Actually unlink the headers and footers.
4169 (fixup_reorder_cahin): Re-insert the unlinked sequences.
4170 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
4171 * cfglayout.h (struct reorder_block_def): New fields footer/header;
4172 remove eff_head/eff_end.
4173 * rtl.h (set_first_insn): Declare.
4174 * emit-rtl.c (set_first_insn): New function.
4176 * cfglayout.c (fixup_reorder_chain): Dump duplicated
4177 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4178 cfg_layout_duplicate_bb): New global function.
4179 (duplicate_insn_chain): New static function.
4180 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4181 cfg_layout_duplicate_bb): Declare.
4182 (struct reorder_block_def): Add "original" field.
4183 * emit-rtl.c (emit_copy_of_insn_after): New function.
4184 * rtl.h (emit_copy_of_insn_after): Declare.
4186 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
4187 (fixup_reorder_chain): properly handle edges to exit block.
4189 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4190 Jan Hubicka <jh@suse.cz>
4192 * basic-block.h (note_prediction_to_br_prob): declare.
4193 * c-semantics.c: Inlucde predit.h
4194 (expand_stmt): predict GOTO_STMT as not taken.
4195 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4196 (cleanup_cfg): Do not free tail_recursion_list.
4197 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4198 (flow_delete_block): Kill predictions past end of basic block.
4199 * output.h (delete_unreachable_blocks): Declare.
4200 * predict.c (predicted_by_p, process_note_predictions,
4201 process_note_prediction, last_block_p): New function.
4202 (estimate_probability): Bypass loop on PRED_CONTINUE;
4203 do not handle noreturn heuristics; kill PRED_RETURN; add
4205 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4206 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4207 * predict.h (IS_TAKEN): New constant.
4208 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4209 * rtl.c (NOTE_INSN_PREDICTION): New.
4210 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4212 (insn_note): add NOTE_INSN_PREDICTION.
4213 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4214 CFG; free tail_recursion_label_list.
4215 * stmt.c: Include predict.h;
4216 (return_prediction): New.
4217 (expand_value_return): Use it.
4218 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4220 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
4222 * config/mips/mips.md: Name the unspecs with define_constant.
4223 (*HILO_delay): Rename to 'hilo_delay' (no star).
4224 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4225 (reload_outdi, reload_outsi): Likewise.
4227 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4229 * toplev.c: Fix formatting.
4231 2002-05-07 Janis Johnson <janis187@us.ibm.com>
4233 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4234 * configure.in (ac_rtlflag_checking): New.
4235 * doc/install.texi (--enable-checking): Document RTL flag checking.
4237 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
4239 * c-common.c (c_common_init): Set options->unsigned_wchar.
4240 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4241 group target dependencies.
4242 (init_builtins, cpp_handle_option): Update.
4243 * cpplex.c (cpp_interpret_charconst): Update.
4244 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4245 signed_char to unsigned_char, group target dependencies.
4246 * defaults.h (WCHAR_UNSIGNED): Remove.
4247 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4249 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4250 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4251 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4252 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4253 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4255 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4257 2002-05-07 Mark Mitchell <mark@codesourcery.com>
4259 * fixinc/inclhack.def (windiss_math1): New fix.
4260 (windiss_math2): Likewise.
4261 (windiss_valist): Likewise.
4262 * fixinc/fixincl.x: Regenerated.
4264 2002-05-07 Andreas Jaeger <aj@suse.de>
4266 * genautomata.c (output_internal_min_issue_delay_func): Add
4267 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4268 (output_internal_trans_func): Likewise.
4270 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
4272 * pa.c (hppa_profile_hook): Use force_reg to get the address
4273 of the profile hook into an appropriate pseudo register.
4275 2002-05-07 Mark Mitchell <mark@codesourcery.com>
4277 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4278 (LINK_START_SPEC): Handle it.
4279 (LINK_OS_SPEC): Likewise.
4280 (CPP_SPEC): Likewise.
4281 (STARTFILE_SPEC): Likewise.
4282 (LIB_SPEC): Likewise.
4283 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
4285 (CRTSAVRES_DEFAULT_SPEC): New macro.
4286 (LIB_WINDISS_SPEC): New macro.
4287 (CPP_OS_WINDISS_SPEC): Likewise.
4288 (STARTFILE_WINDISS_SPEC): Likewise.
4289 (ENDFILE_WINDISS_SPEC): Likewise.
4290 (LINK_START_WINDISS_SPEC): Likewise.
4291 (LINK_OS_WINDISS_SPEC): Likewise.
4292 * config/rs6000/windiss.h: New file.
4294 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
4296 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4298 2002-05-06 David S. Miller <davem@redhat.com>
4300 * config/sparc/sparc.md (shift insns): Do not mask off
4301 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4304 2002-05-06 Richard Henderson <rth@redhat.com>
4307 * expr.c (highest_pow2_factor_for_type): New.
4308 (expand_assignment): Use it.
4310 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
4312 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4314 ("altivec_mfvscr"): Same.
4316 2002-05-06 Janis Johnson <janis187@us.ibm.com>
4318 * rtl.h (struct rtx_def): Update comments.
4319 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
4320 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
4321 RTL_FLAG_CHECK macros with list of expected RTL codes.
4322 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4323 (rtl_check_failed_flag): New.
4324 * reload1.c (reload): Use REG macro before changing rtx to MEM.
4325 (reload_cse_noop_set_p): Check rtx code before using access macro.
4326 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4327 before using access macro.
4329 2002-05-06 Janis Johnson <janis187@us.ibm.com>
4331 * doc/rtl.texi (Flags): Update to reflect current usage.
4333 2002-05-06 Roger Sayle <roger@eyesopen.com>
4336 * fold-const.c (sign_bit_p): New function.
4337 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4338 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4339 Reapply fold when converting (A & C) == C into (A & C) != 0.
4340 (fold_binary_op_with_conditional_arg): Fix typo in comment.
4342 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
4344 * c-common.c (warn_multichar): New.
4345 (c_common_init): Set CPP's warn_multichar.
4346 * c-common.h (warn_multichar): New.
4347 * c-decl.c (warn_multichar): Remove.
4348 * c-lex.c (lex_charconst): Update.
4349 * c-tree.h (warn_multichar): Remove.
4350 * cppexp.c (eval_token): Sign-extend charconst value.
4351 * cppinit.c (cpp_create_reader): Set warn_multichar.
4352 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4353 each character. Update prototype. Sign-extend the result.
4354 * cpplib.h: Fix conditions.
4355 (struct cpp_options): Add new warning flag.
4356 (cpp_interpret_charconst): Update prototype.
4358 * cpp.texi: Update documentation.
4360 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
4362 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4363 Fix typo in usage of allof instead of unit.
4365 2002-05-06 Richard Henderson <rth@redhat.com>
4367 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4368 and any jump or call for IN.
4370 2002-05-06 Bernd Schmidt <bernds@redhat.com>
4372 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4374 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4376 2002-05-06 Roger Sayle <roger@eyesopen.com>
4378 * fold-const.c (lshift-double): Cast the high word to an unsigned
4379 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4380 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4381 avoid compiler warning. (fold): Remove redundant code from
4382 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4384 2002-05-06 Jeff Law <law@redhat.com>
4386 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4387 * pa.c (pa_adjust_cost): Remove all true dependency cost
4388 adjustments. Also remove support for non-DFA scheduling.
4389 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4390 to adjust true dependency costs. Update various comments.
4391 (7100lc, 7200, 7300 scheduling): Simplify by combining the
4392 FP ALU & MPY units into a single unit.
4394 2002-05-06 Catherine Moore <clm@redhat.com>
4396 * config/v850/v850.c (compute_register_save_size): Make sure
4397 to count all of the registers that will be saved.
4399 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4401 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4403 2002-05-06 David S. Miller <davem@redhat.com>
4405 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4406 allow result to overlap input operands in memory.
4408 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
4411 * cpp.texi: Update multichar charconst docs.
4413 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
4415 * cpplex.c (cpp_interpret_charconst): Sign-extend each
4416 character. Don't ignore excess characters. Treat
4417 multicharacter character constants as signed.
4418 (cpp_parse_escape): Clarify diagnostic.
4420 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4422 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4423 use add instead of shift.
4424 (ashldi3_sp64): Likewise.
4425 (ashlsi3_const1, ashldi3_const1): Remove.
4426 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4427 * config/sparc/sparc.c (const1_operand): New.
4429 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
4431 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4433 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4436 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4438 2002-05-05 Richard Henderson <rth@redhat.com>
4440 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4441 memory latency adjustments.
4442 (alpha_variable_issue): Remove.
4443 (alpha_use_dfa_pipeline_interface): New.
4444 (alpha_multipass_dfa_lookahead): New.
4445 * config/alpha/alpha.md: Remove define_function_unit scheduling;
4446 include new dfa scheduling.
4447 (attr type): Add none.
4449 * config/alpha/ev4.md: New.
4450 * config/alpha/ev5.md: New.
4451 * config/alpha/ev6.md: New.
4453 2002-05-05 David S. Miller <davem@redhat.com>
4455 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4457 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
4459 * cse.c: Fix formatting.
4460 * emit-rtl.c: Likewise.
4462 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4464 * genautomata.c (initiate_states): Add additional guard to
4465 initialize `units_array'.
4467 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4469 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4470 process_unit_to_form_the_same_automaton_unit_lists,
4471 form_the_same_automaton_unit_lists
4472 check_unit_distributions_to_automata): New prototypes and
4474 (check_automata): Rename it into `check_automata_insn_issues'.
4475 (unit_decl): New fields `the_same_automaton_unit' and
4476 `the_same_automaton_message_reported_p'.
4477 (unit_decl_t): New typedef.
4478 (the_same_automaton_lists): New gloval variable.
4479 (unit_regexp, unit_set_el, units_array, units_cmp,
4480 output_get_cpu_unit_code_func): Use the typedef.
4481 (evaluate_max_reserv_cycles): Increment
4482 `description->max_insn_reserv_cycles'.
4483 (initiate_states): Don't increment `max_cycles_num'.
4484 (transform_insn_regexps): Move code around transformation of
4485 regexps from `generate'.
4486 (generate): Remove call of `transform_insn_regexps'.
4487 (expand_automata): Call `transform_insn_regexps' and
4488 `check_unit_distributions_to_automata'. Check errors before
4491 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4492 automaton `ultrasparc3_1'.
4494 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
4496 * c-common.c (c_common_init): Set up CPP arithmetic.
4497 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4498 something reasonable for the host.
4499 (sanity_checks): Add checks.
4500 (cpp_read_main_file): Call sanity_checks() from here...
4501 (cpp_post_options): ... not here.
4502 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4503 * cpplib.h (struct cpp_options): New member int_precision.
4505 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4507 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4509 2002-05-04 David S. Miller <davem@redhat.com>
4511 * config/sparc/linux.h, config/sparc/linux64.h
4512 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4514 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4516 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4518 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4521 2002-05-05 Tim Josling <tej@melbpc.org.au>
4523 * treelang; New directory for new sample language treelang.
4525 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4527 * Makefile.in (c-lex.o): Update.
4528 * c-lex.c: Include target.h.
4529 (cb_register_builtins): New.
4530 (init_c_lex): Set builtins callback.
4531 * c-lex.h (cpp_define, cpp_assert): New prototypes.
4532 * cppinit.c (init_builtins): Use callback, including for
4534 * cpplib.h (struct cpp_callbacks): New member.
4535 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4536 (TARGET_INITIALIZER): Update.
4537 * target.h (struct gcc_target): New hook.
4538 * tree.c (default_register_cpp_builtins): New.
4539 * tree.h (default_register_cpp_builtins): New.
4541 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4543 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4545 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4546 (cpp_post_options): Move sanity checks to...
4547 (sanity_checks): New.
4548 * cpplex.c (maybe_read_ucs): Fix prototype.
4549 (parse_string, cpp_parse_escape): Cast for %c format specifier.
4550 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4553 2002-05-04 Bernd Schmidt <bernds@redhat.com>
4555 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4556 builtins. Use V2DI patterns instead of TI for logical operations.
4557 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4558 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4559 (ix86_expand_builtins): Change the pattern used for movntdq.
4560 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4561 sse2_nandv2di3): New patterns.
4562 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4564 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4565 (cvtdq2pd): Correct mode on operand 1.
4566 (sse2_umulsidi3): Describe without unspec.
4567 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4569 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4570 (ashlv2di3): Likewise, from sse2_ashlv2di3.
4571 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4572 ashlv4si3, ashlv2di3): Use SImode for shift count.
4573 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4574 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4576 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4578 (__m128i, __m128d): New macros.
4579 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4580 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4581 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4582 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4583 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4584 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4585 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4586 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4587 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4588 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4589 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4590 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4591 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4592 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4593 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4594 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4595 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4596 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4597 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4598 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4599 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4600 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4601 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4602 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4603 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4604 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4605 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4606 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4607 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4608 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4609 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4610 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4611 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4612 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4613 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4614 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4615 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4617 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4618 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4620 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4622 * dwarf2out.c: Fix formatting.
4623 * varasm.c: Likewise.
4625 2002-05-04 David Edelsohn <edelsohn@gnu.org>
4628 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4629 clobber and use result as temporary value.
4631 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4633 * expr.c (force_operand): Use expand_simple_* to handle more
4636 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4638 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4640 (lex_charconst): Update for change in prototype of
4641 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
4643 * cpphash.h (BITS_PER_CPPCHAR_T): New.
4644 * cppinit.c (cpp_create_reader): Initialize them for no
4645 change in semantics.
4646 (cpp_post_options): Add sanity checks.
4647 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4648 and truncation issues. Calculate in type cppchar_t.
4649 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4650 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
4651 run-time dependent precision correctly. Return whether the
4652 result is signed or not.
4653 * cpplib.c (dequote_string): Use cppchar_t; update.
4654 * cpplib.h (cppchar_signed_t): New.
4655 struct cpp_options): New precision members.
4656 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4657 * cppexp.c (eval_token): Update.
4659 2002-05-03 David S. Miller <davem@redhat.com>
4661 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4662 * config/sparc/sparc.c (sparc_rtx_costs): New function
4663 implementing RTX_COSTS and CONST_COSTS.
4664 * config/sparc/sparc.h (CONST_COSTS): Delete.
4665 (RTX_COSTS_CASES): Define.
4666 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4669 * config/sparc/sparc.md (DFA schedulers): Split out...
4670 * config/sparc/cypress.md, config/sparc/hypersparc.md,
4671 config/sparc/sparclet.md, config/sparc/supersparc.md,
4672 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4674 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4675 checks on it, always defined for Sparc.
4677 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4678 Tweak, and add more detailed comments.
4680 2002-05-03 Zack Weinberg <zack@codesourcery.com>
4682 * Re-apply patch accidentally reverted with
4683 DFA scheduler merge: remove all rules and variables to slurp
4684 source files out of libiberty and rebuild them with HOST_CC.
4685 ($(HOST_PREFIX_1)varray.o): New rule.
4686 (genattrtab rule): Word wrap.
4688 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4690 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4691 (CPP_SUBTARGET_SPEC): Define.
4692 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4693 cpp_subtarget specs.
4694 (CPP_SPEC): Redefine to include %(cpp_subtarget).
4696 2002-05-03 David S. Miller <davem@redhat.com>
4698 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4699 * target.h (struct gcc_target): Delete cycle_display member.
4701 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4702 (rtx_needs_barrier): Delete reference to cycle_display unspec.
4703 (ia64_sched_reorder2): Mention need for cycle display handling
4704 once such notes exist.
4706 2002-05-03 Richard Henderson <rth@redhat.com>
4708 * real.c (etoasc): Strip most trailing zeros for clarity.
4709 * sched-vis.c: Include real.h.
4710 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4711 * Makefile.in (sched-vis.o): Add real.h.
4713 2002-05-03 David S. Miller <davem@redhat.com>
4715 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4718 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
4720 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4721 when we get an out of range literal.
4722 (altivec_expand_ternop_builtin): Same.
4723 (altivec_expand_unop_builtin): Same.
4724 (altivec_expand_builtin): Same, for dss.
4725 (altivec_expand_builtin): Use trees instead of rtl when
4726 determining literal argument validity.
4728 2002-05-03 David S. Miller <davem@redhat.com>
4730 Delete cycle display scheduling hook.
4731 * config/ia64/ia64.c (ia64_cycle_display,
4732 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4733 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4734 and use emit_insn_before instead of ia64_emit_insn_before.
4735 * config/ia64/ia64.md (unspec usage): Delete cycle display.
4736 (cycle_display): Delete insn pattern.
4737 * config/sparc/sparc.md (unspec usage): Delete cycle display.
4738 (cycle_display): Delete insn pattern.
4739 * config/sparc/sparc.c (sparc_cycle_display,
4740 TARGET_SCHED_CYCLE_DISPLAY): Delete.
4741 * doc/md.texi (cycle_display): Don't mention.
4742 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4744 2002-05-03 Richard Henderson <rth@redhat.com>
4746 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4747 * recog.h: Declare them.
4749 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4750 * config/sparc/sparc.md: Use store_data_bypass_p instead.
4751 * config/sparc/sparc-protos.h: Update.
4753 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4755 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4756 -D__arch64__. Add -D_LP64.
4757 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4759 (CPP_ARCH64_SPEC): Likewise.
4760 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4761 (NO_BUILTIN_SIZE_TYPE): Undef.
4763 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
4765 * genautomata.c (min_issue_delay_pass_states): Change return type
4767 (min_issue_delay_pass_states): Change the algorithm.
4768 (min_issue_delay): Set up min_insn_issue_delay for the state.
4769 (output_min_issue_delay_table): Interchange the nested loops and
4770 and initiate min_insn_issue_delay for states.
4772 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
4774 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
4777 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4779 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
4782 2002-05-03 Richard Henderson <rth@redhat.com>
4785 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4786 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4787 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4788 code before JUMP, not EARLIEST.
4790 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
4792 * c-format.c (check_format_info_main): Don't check for presence of
4793 parameter for * width until after operand number has been read,
4794 and only check for it if format parameters are available.
4797 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4799 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4800 (LINK_SPEC): Undef before defining.
4802 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4804 PR preprocessor/6489
4805 * tradcpp.c (fixup_newlines): New.
4806 (main, finclude): Use it.
4808 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4810 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4811 * config/mips/mips.c (mips_unique_section): Strip encoding from
4814 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4816 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4819 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4821 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4822 (Specific): Removed buildstats references.
4823 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4824 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4825 Accomodate Solaris versions beyond 8.
4826 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4827 (Specific, *-*-solaris2.8): Removed, obsolete.
4829 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4832 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4833 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4834 fill leaf_reg_remap with identity.
4835 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4837 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4839 * config/h8300/crti.asm: Remove trailing spaces.
4840 * config/h8300/h8300.c: Likewise.
4841 * config/h8300/lib1funcs.asm: Likewise.
4843 2002-05-02 Jason Merrill <jason@redhat.com>
4845 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4846 * c-decl.c (c_init_decl_processing): Use it.
4847 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4848 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4849 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4851 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4853 * regrename.c: Fix formatting.
4856 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4858 * i386.md (attribute memory): Handle compares properly.
4860 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4862 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4865 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4867 * function.c: Fix formatting.
4869 2002-05-02 Jan Hubicka <jh@suse.cz>
4871 * haifa-sched.c (schedule_insn): Print table of instructions and
4873 (sched_block): Do not print ready list at verbosity level 1.
4874 * sched-vis.c (print_insn): Make global.
4875 * sched-ebb.c (ebb_print_insn): Rename from...
4876 (print_insn): ... this one.
4877 * sched-int.h (print_insn): Declare
4879 2002-05-02 Richard Henderson <rth@redhat.com>
4881 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4882 emitted by cycle_display.
4884 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
4886 * doc/install.texi (*-*-freebsd*): Update to latest status.
4888 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4891 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4892 * config/float-sparc.h: Assume 128-bit long double if
4893 __LONG_DOUBLE_128__ is defined.
4895 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
4897 * genattrtab.c (write_function_unit_info): Add a dummy element
4898 when num_units == 0.
4900 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4902 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4903 TYPE_MODE (double_type_node) instead of DFmode.
4905 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
4907 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4909 * toplev.c (rest_of_compilation): Revert Richard's patch.
4911 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4913 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4915 2002-05-02 Catherine Moore <clm@redhat.com>
4917 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4919 2002-05-02 Kazu Hirata <kazu@hxi.com>
4921 * combine.c: Fix comment typos.
4923 * genautomata.c: Likewise.
4927 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4929 * doc/install.texi: State GNAT version requirements.
4931 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4933 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4934 of the frame pointer or arg pointer register which strict register
4935 checking is not enabled.
4937 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4939 * gcc.dg/altivec-8.c: New.
4941 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4942 PRE_INC and PRE_DEC for altivec modes.
4944 2002-05-01 Bruce Korb <bkorb@gnu.org>
4946 * fixinc/check.tpl(set-writable): make sure the function exists first
4947 * fixinc/inclhack.def(alpha_assert): fix test_text
4948 * fixinc/tests/base/assert.h: add in missing result
4950 2002-05-01 Jeff Law <law@redhat.com>
4952 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4955 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4957 * dbxout.c (dbxout_type): Emit size information for range types,
4958 as well, but only when using GDB extensions.
4960 2002-05-01 Richard Henderson <rth@redhat.com>
4962 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4963 target-independent gnu binutils date test.
4965 2002-05-01 Richard Henderson <rth@redhat.com>
4967 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4968 info before expunging the block.
4970 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4972 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4973 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4974 -M -or -MM is in effect.
4976 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4978 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4979 A29k configurations.
4980 * doc/install.texi: Update to match.
4982 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4985 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4986 for duplicates. Always loop over whole list.
4988 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4990 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4992 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4994 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4997 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4999 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
5001 2002-05-01 David Edelsohn <edelsohn@gnu.org>
5003 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
5004 (nabs_nopower): Same.
5005 (floatdisf2): New pattern.
5006 (absdi2): Convert to define_insn_and_split.
5011 (fix_trunctfdi2): Same.
5012 (fix_trunctfsi2): Same.
5014 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
5016 * doc/install.texi: Update Texinfo version requirement
5019 2002-05-01 Jakub Jelinek <jakub@redhat.com>
5021 PR target/6512, PR target/5628
5022 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
5023 when memory is not aligned.
5024 (movdf_insn_v9only_vis): Likewise.
5025 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
5026 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
5027 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
5029 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
5031 * gcc.dg/altivec-7.c: New.
5033 * config/rs6000/altivec.h: Cleanup.
5035 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
5037 * doc/invoke.texi (Option Summary): Add -mvrsave=.
5038 (RS/6000 and PowerPC Options): Document -mvrsave=.
5040 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
5041 (rs6000_altivec_vrsave_string): Same.
5042 (rs6000_override_options): Call rs6000_parse_vrsave_option.
5043 (rs6000_parse_vrsave_option): New.
5044 (rs6000_stack_info): Only generate vrsave instructions when
5045 TARGET_ALTIVEC_VRSAVE.
5047 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
5048 (rs6000_altivec_vrsave_string): Define extern.
5049 (rs6000_altivec_vrsave): Same.
5050 (TARGET_ALTIVEC_VRSAVE): New.
5052 2002-04-30 Richard Henderson <rth@redhat.com>
5055 * toplev.c (rest_of_compilation): Don't run cross-jump before
5058 2002-04-30 Tom Rix <trix@redhat.com>
5060 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
5061 check which_alternative.
5063 2002-04-30 Kazu Hirata <kazu@hxi.com>
5065 * cpplex.c: Fix comment formatting.
5066 * function.c: Likewise.
5067 * integrate.c: Likewise.
5068 * regrename.c: Likewise.
5069 * sibcall.c: Likewise.
5070 * simplify-rtx.c: Likewise.
5071 * tree-inline.c: Likewise.
5073 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
5075 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
5076 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
5077 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
5078 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
5079 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
5080 * pa/x-ada: New file. Define ADA_CFLAGS.
5082 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
5084 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
5085 from MMIX_LAST_REGISTER_FILE_REGNUM.
5086 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
5087 (struct machine_function): New member highest_saved_stack_register
5088 previously static variable in mmix.c.
5089 (MACHINE_DEPENDENT_REORG): Define.
5090 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
5091 (MMIX_OUTPUT_REGNO): New.
5092 (mmix_target_asm_function_prologue): Move calculation of last used
5093 saved-stack-register into...
5094 (mmix_machine_dependent_reorg): New function. Update to also handle
5096 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
5097 register names, simplify somewhat by new variable regno.
5098 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
5100 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
5101 emitting register names.
5102 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
5103 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
5105 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
5108 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
5110 2002-04-30 Richard Henderson <rth@redhat.com>
5112 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5113 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
5114 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
5115 emit_tfmode_cvt): New.
5116 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
5117 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
5118 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
5119 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
5120 * config/sparc/sparc-protos.h: Update.
5122 2002-04-30 Janis Johnson <janis187@us.ibm.com>
5124 * install.texi (Final install): Add to the list of info to include
5125 in a report of a successful bootstrap, and add link to 3.1 list.
5127 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
5129 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
5130 (mode): Add vector modes
5131 (i387): Kill attribute.
5132 (unit): New attribute.
5133 (length_immediate): Grok new types.
5134 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
5135 (modrm): Use "unit".
5136 (memory): Handle MMX/SSE properly.
5137 (scheduling descriptions): Kill uses of fop1.
5138 (sse, mmx, fp patterns): Set type and mode properly.
5140 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
5142 * pa.c (override_options): Default to PA8000 scheduling.
5143 * doc/invoke.texi (HP-PA options): Mention newly added 7300
5144 scheduling parameter.
5146 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
5147 handling of double precision multiplies.
5149 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
5150 fpdiv and fpsqrt instructions.
5151 (7200 & 7300 scheduling): Fix typo in handling of
5152 store-load and store-store penalties.
5154 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5156 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
5157 mips. Add two missing commas.
5159 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
5161 * doc/contrib.texi (Contributors): Update Paolo Carlini's
5162 and Benjamin Kosnik's entries.
5164 2002-04-29 David S. Miller <davem@redhat.com>
5166 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
5167 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5168 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
5169 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5171 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5173 * combine.c (find_split_point): Use gen_int_mode.
5175 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
5177 Merging code from dfa-branch:
5179 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
5181 * genautomata.c (output_reserv_sets): Fix typo.
5183 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
5185 * genautomata.c (output_reserv_sets): Remove
5186 next_cycle_output_flag.
5188 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
5190 * sched-rgn.c (init_ready_list): Make the DFA code handle
5191 USE/CLOBBER insns in the same way as the traditional
5193 (new_ready): Similarly..
5195 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
5197 * haifa-sched.c (schedule_block): Change the DFA state only after
5200 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
5202 * pa.c (hppa_use_dfa_pipeline_interface): New function.
5203 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5204 (override_options): Add PA7300 scheduling support.
5205 (pa_adjust_cost): Update various comments. Properly
5206 handle anti and output dependencies when using the
5208 (pa_issue_rate): Add PA7300 scheduling support.
5209 (pa_can_combine_p): Call extract_insn before calling
5210 constrain_operands (taken from mainline tree).
5211 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5212 * pa.md (cpu attr): Add 7300. Rewrite pipeline
5213 descriptions using DFA descriptions. Add PA7300
5216 2002-03-30 David S. Miller <davem@redhat.com>
5218 Add UltraSPARC-III DFA scheduling support.
5219 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5220 Update FP conditional move on register insn patterns to use it, as
5222 (define_attr cpu): Add ultrasparc3.
5223 (define_attr us3load_type): New, update integer load patterns to
5224 set it, as appropriate.
5225 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5226 (rest): Add UltraSPARC3 scheduling description.
5227 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5228 (PROCESSOR_ULTRASPARC3): New.
5229 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5230 ({ASM,CPP}_CPU_SPEC): Likewise.
5231 (REGISTER_MOVE_COST): Likewise.
5232 (RTX_COSTS): Likewise.
5233 * config/sparc/sparc.c (sparc_override_options,
5234 sparc_initialize_trampoline, sparc64_initialize_trampoline,
5235 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5236 sparc_issue_rate): Likewise.
5237 * config/sparc/sol2.h: Likewise.
5238 * config/sparc/sol2-sld-64.h: Likewise.
5239 * config/sparc/linux64.h: Likewise.
5241 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
5243 * doc/md.texi: Add comments about usage the latency time for the
5244 different dependencies and about case when two or more conditions
5245 in different define_insn_reservations returns TRUE for an insn.
5247 * doc/md.texi: Add reference for automaton based pipeline
5250 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
5252 * doc/passes.texi: Add missed information about genattrtab.
5254 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
5256 * genautomata.c (output_automata_list_transition_code): Check
5257 automata_list on NULL.
5259 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
5261 * genautomata.c (output_insn_code_cases,
5262 output_automata_list_min_issue_delay_code,
5263 output_automata_list_transition_code,
5264 output_automata_list_state_alts_code): Comment the functions.
5266 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
5268 * genautomata.c (automata_list_el_t): New typedef.
5269 (get_free_automata_list_el,free_automata_list_el,
5270 free_automata_list, automata_list_hash, automata_list_eq_p,
5271 initiate_automata_lists, automata_list_start, automata_list_add,
5272 automata_list_finish, finish_automata_lists,
5273 output_insn_code_cases, output_automata_list_min_issue_delay_code,
5274 output_automata_list_transition_code,
5275 output_automata_list_state_alts_code, add_automaton_state,
5276 form_important_insn_automata_lists): New functions and prototypes.
5277 (insn_reserv_decl): Add members important_automata_list and
5279 (ainsn): Add members important_p.
5280 (automata_list_el): New structure.
5281 (first_free_automata_list_el, current_automata_list,
5282 automata_list_table): New global variables.
5283 (create_ainsns): Initiate member important_p.
5284 (output_internal_min_issue_delay_func): Generate the switch and
5285 call output_insn_code_cases.
5286 (output_internal_trans_func, output_internal_state_alts_func):
5288 (generate): Call initiate_automata_lists.
5289 (automaton_states): New global variable.
5290 (expand_automata): Call form_important_insn_automata_lists.
5291 (write_automata): Call finish_automata_lists.
5293 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
5295 * genautomata.c (add_excls, add_presence_absence): Check that
5296 cpu units in the sets belong the same automaton.
5298 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5299 about that cpu units in the sets belong the same automaton.
5301 * doc/md.texi: Ditto.
5303 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
5304 Nitin Gupta <niting@noida.hcltech.com>
5306 * config/sh/sh.c (sh_use_dfa_interface): New function.
5308 (sh_issue_rate): New Function.
5309 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5310 TARGET_SCHED_ISSUE_RATE: define.
5312 * config/sh/sh.md: Add DFA based pipeline description for SH4.
5314 (define_attr insn_class): New attribute used for DFA
5316 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5317 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5318 cmpeqdi_t): Likewise.
5320 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5321 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5323 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5325 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
5327 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5330 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
5332 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5333 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5335 (output_dfa_start_func): Initiate new variable insn_codes_length,
5336 (write_automata): Output definition of the new variable.
5338 2001-10-02 David S. Miller <davem@redhat.com>
5340 * haifa-sched.c (advance_one_cycle): New function.
5341 (schedule_block): Use it.
5342 (queue_to_ready): Use it, and also make sure to advance the DFA
5343 state on all stall cycles, not just those where insn_queue links
5346 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
5348 * haifa-sched.c (max_issue): Remove last_p argument. Only return
5349 non-zero if the highest-priority instruction could be scheduled.
5350 (choose_ready): Remove last argument from max_issue call.
5352 2001-09-28 David S. Miller <davem@redhat.com>
5354 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5355 ultrasparc and 3 for other multi-issue sparcs.
5357 2001-09-27 David S. Miller <davem@redhat.com>
5359 * config/sparc/sparc.md (cycle_display): New pattern.
5360 * config/sparc/sparc.c (sparc_cycle_display): New.
5361 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5363 2001-09-25 David S. Miller <davem@redhat.com>
5365 Convert all of Sparc scheduling to DFA
5366 * config/sparc/sparc.md: Kill all define_function_unit
5367 directives and replace with DFA equivalent.
5368 * config/sparc/sparc.c (ultrasparc_adjust_cost,
5369 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5370 ultra_fpmode_conflict_exists, ultra_find_type,
5371 ultra_build_types_avail, ultra_flush_pipeline,
5372 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5373 ultrasparc_variable_issue, ultrasparc_sched_init,
5374 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5375 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5376 ultra_cur_hist, ultra_cycles_elapsed): Kill.
5377 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5378 ultrasparc_store_bypass_p): New.
5379 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5382 2001-09-24 David S. Miller <davem@redhat.com>
5384 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5385 ready->vec[foo] not ready[foo].
5387 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
5389 * doc/md.texi: Correct examples for define_insn_reservations
5392 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
5394 * genautomata.c (create_automata): Print message about creation of
5396 (generate): Remove printing meease about creation of
5399 2001-09-05 David S. Miller <davem@redhat.com>
5401 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5402 * config/sparc/linux64.h: Likewise.
5404 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
5406 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5407 schedule_block, sched_init, sched_finish): Add missed calls of
5408 use_dfa_pipeline_interface.
5410 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5413 * sched-vis.c (get_visual_tbl_length): Ditto.
5415 2001-08-27 Richard Henderson <rth@redhat.com>
5417 * genattr.c (main): Emit state_t even when not doing scheduling.
5419 2001-08-27 Richard Henderson <rth@redhat.com>
5421 * genautomata.c (expand_automata): Always create a description.
5423 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
5425 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5426 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5427 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5430 * genattr.c (main): New variable num_insn_reservations. Increase
5431 it if there is DEFINE_INSN_RESERVATION. Output automaton based
5432 pipeline hazard recognizer interface.
5434 * genattrtab.h: New file.
5436 * genattrtab.c: Include genattrtab.h.
5437 (attr_printf, check_attr_test, make_internal_attr,
5438 make_numeric_value): Move protypes into genattrtab.h. Define them
5440 (num_dfa_decls): New global variable.
5441 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5442 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5443 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5444 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
5446 * genautomata.c: New file.
5448 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5450 * sched-int.h: (curr_state): Add the external definition for
5451 automaton pipeline interface.
5452 (haifa_insn_data): Add comments for members blockage and units.
5454 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5455 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5456 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5457 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5458 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5459 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5460 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5462 (TARGET_SCHED): Use the new macros.
5464 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5465 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5466 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5467 dfa_bubble): New members in gcc_target.sched.
5469 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5470 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5471 (insn_queue): Redefine it as pointer to array.
5472 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5474 (max_insn_queue_index_macro_value): New variable.
5475 (curr_state, dfa_state_size, ready_try): New varaibles for
5476 automaton interface.
5477 (ready_element, ready_remove, max_issue): New function prototypes
5478 for automaton interface.
5479 (choose_ready): New function prototype.
5480 (insn_unit, blockage_range): Add comments.
5481 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5482 FUNCTION_UNITS_SIZE == 0.
5483 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5484 actual_hazard, potential_hazard): Add comments.
5485 (insn_cost): Use cost -1 as undefined value. Remove
5486 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
5488 (ready_element, ready_remove): New functions for automaton
5490 (schedule_insn): Add new code for automaton pipeline interface.
5491 (queue_to_ready): Add new code for automaton pipeline interface.
5492 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5493 (debug_ready_list): Print newline when the queue is empty.
5494 (max_issue): New function for automaton pipeline interface.
5495 (choose_ready): New function.
5496 (schedule_block): Add new code for automaton pipeline interface.
5497 Print ready list before scheduling each insn.
5498 (sched_init): Add new code for automaton pipeline interface.
5499 Initiate insn cost by -1.
5500 (sched_finish): Free the current automaton state and finalize
5501 automaton pipeline interface.
5503 * sched-rgn.c: Include target.h.
5504 (init_ready_list, new_ready, debug_dependencies): Add new code for
5505 automaton pipeline interface.
5507 * sched-vis.c: Include target.h.
5508 (get_visual_tbl_length): Add code for automaton interface.
5509 (target_units, print_block_visualization): Add comments.
5511 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5512 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5513 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5514 (getruntime.o, genautomata.o): New entries.
5515 (genattrtab.o): Add new dependency file genattrtab.h.
5516 (genattrtab): Add new dependencies. Link it with `libm.a'.
5517 (getruntime.o, hashtab.o): New entries for canadian cross.
5519 * doc/md.texi: Description of automaton based model.
5521 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5523 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5524 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5525 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5526 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5527 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5528 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5529 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5531 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5532 MAX_DFA_ISSUE_RATE): New macro descriptions.
5534 * doc/contrib.texi: Add dfa based scheduler contribution.
5536 * doc/gcc.texi: Add more information about genattrtab.
5538 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5540 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5541 adjust_address_nv call.
5543 2002-04-29 Janis Johnson <janis187@us.ibm.com>
5545 * doc/install.texi (Testing): Provide additional information, and
5546 a stronger encouragement, for running the testsuites.
5548 2002-04-29 DJ Delorie <dj@redhat.com>
5550 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5551 given in upper case.
5553 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5555 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5556 Solaris 2 <widec.h> if missing.
5557 * fixinc/fixincl.x: Regenerate.
5558 * fixinc/tests/base/widec.h: New file.
5560 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
5562 * toplev.c (f_options): Add "profile" switch so that
5563 -fno-profile can be used to disable -p.
5565 2002-04-29 Bernd Schmidt <bernds@redhat.com>
5567 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5569 * tree.c (build_common_tree_nodes_2): Likewise.
5570 * tree.h (enum tree_index): Likewise.
5571 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5573 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5575 (init_mmx_sse_builtins): Initialize SSE2 builtins.
5576 (ix86_expand_builtin): Add support for SSE2 builtins.
5577 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5578 (VALID_SSE_REG_MODE): Use it.
5579 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5580 (enum ix86_builtins): Add SSE2 builtins.
5581 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5582 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5583 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5584 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5585 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5586 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5587 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5588 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5589 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5590 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5591 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5592 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5593 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5594 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5595 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5596 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5597 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5598 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5599 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5600 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5601 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5602 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5603 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5604 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5605 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5606 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5607 lfence_insn): New patterns.
5608 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5609 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5611 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
5613 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5615 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5617 * doc/contrib.texi (Contributors): Add Paolo Carlini and
5619 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5620 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5621 and CPU instead of cpu.
5623 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5625 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5627 (lang_independent_options): Add -fif-conversion, -fif-conversion2
5628 (rest_of_compilation): Do if conversion only when asked for.
5629 (parse_options_and_default_flags): Set new variables to 1 for -O1
5630 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5632 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5634 * i386.c (dbx64_register_map): Fix typo.
5636 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5638 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5639 real_one_half, real_bb_freq_max): New static variables.
5640 (debug_profile_bbauxs): Kill.
5641 (process_note_predictions): Kill unused variable.
5642 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5644 (propagate_freq): Use REAL_ARITHMETICS.
5645 (estimate_bb_frequencies): Likevise; init new static variables.
5646 * Makefile.in (predict.o): Add dependency on real.h
5648 2002-04-28 David S. Miller <davem@redhat.com>
5651 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5652 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
5653 several {reads,writes} instead.
5654 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5657 2002-04-27 David S. Miller <davem@redhat.com>
5660 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5663 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5664 including signal.h and sys/ucontext.h, not needed.
5666 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
5668 * varasm.c (output_constant_def): Correct test for not calling
5669 ENCODE_SECTION_INFO for INTEGER_CST.
5671 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
5673 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5674 keep most cases as function eval_token.
5675 (eval_token): New function.
5676 (_cpp_parse_expr): Read token here for improved diagnostics.
5677 Don't use op_as_text. Detect bad ':' here.
5678 (reduce): Don't detect bad ':' here.
5679 (op_as_text): Remove.
5680 * cpphash.h (_cpp_test_assertion): Change prototype.
5681 * cpplib.c (_cpp_test_assertion): Change prototype.
5683 2002-04-28 Richard Henderson <rth@redhat.com>
5686 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5687 (ggc_mark_rtx_children): New.
5689 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5692 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5693 after call peepholes for UltraSPARC.
5694 (call + jump 64-bit peepholes): Remove.
5696 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5699 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5700 result as temporary value.
5702 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5705 * toplev.c (rest_of_compilation): Only run regrename and copy
5706 propagation if optimizing.
5708 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5710 PR optimization/6475
5711 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5712 register of REGNO_DECL (i).
5713 * Makefile.in (reload1.o): Add $(TREE_H).
5715 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
5717 * cppexp.c (lex): Update to use state.skip_eval.
5718 (struct op): Remove prio and flags members.
5719 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5720 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5721 (LEFT_ASSOC): New macro.
5722 (optab): New table of operator priorities and flags.
5724 (_cpp_parse_expr): Clean up logic. Return bool. Use a
5725 malloc-ed parser stack.
5726 (reduce): New; reduce the operator stack.
5727 (_cpp_expand_op_stack): Expand the operator stack as necessary.
5728 * cpphash.h (struct op): Predeclare.
5729 (struct cpp_reader): New members op_stack, op_limit.
5730 (struct lexer_state): New member skip_eval.
5731 (_cpp_parse_expr): Update.
5732 (_cpp_expand_op_stack): New.
5733 * cpplib.c (do_if): Update.
5734 * cppinit.c (cpp_create_reader): Create op stack.
5735 (cpp_destroy): And destroy it.
5736 * cpplib.h (CPP_LAST_CPP_OP): Correct.
5737 (TTYPE_TABLE): Correct.
5739 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5742 * c-decl.c (duplicate_decls): Call merge_weak.
5743 * c-pragma.c (apply_pragma_weak): Warn about misuse.
5744 * output.h (merge_weak): Prototype merge_weak.
5745 * varasm.c (merge_weak): New function.
5746 (declare_weak): Make sure we don't give an error on VAR_DECLs.
5747 Mark RTL with SYMBOL_REF_WEAK.
5749 2002-04-27 Kurt Garloff <garloff@suse.de>
5751 * tree-inline.c (inlinable_function_p): Improve heuristics
5752 by using a smoother function to cut down allowable inlinable size.
5753 * param.def: Add parameters max-inline-insns-single,
5754 max-inline-slope, min-inline-insns that determine the exact
5755 shape of the above function.
5756 * param.h: Likewise.
5758 2002-04-26 Richard Henderson <rth@redhat.com>
5760 * c-parse.in (malloced_yyss, malloced_yyvs): New.
5761 (yyoverflow): Re-add. Set them.
5762 (free_parser_stacks): New.
5763 * c-common.h: Declare it.
5764 * c-lex.c (c_common_parse_file): Call it.
5766 2002-04-26 Richard Henderson <rth@redhat.com>
5768 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5769 for fallthru search.
5771 2002-04-26 Eric Christopher <echristo@redhat.com>
5773 PR optimization/3700
5774 * config/mips/mips.c (mips_issue_rate): Define. New function.
5775 (TARGET_SCHED_ISSUE_RATE): Use.
5777 2002-04-25 David S. Miller <davem@redhat.com>
5780 * reorg.c (optimize_skip): Do not allow exception causing
5781 instructions to be considered for delay slots.
5782 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5783 (relax_delay_slots): Do not try to consider exception causing
5784 instructions as redundant.
5786 2002-04-26 Richard Henderson <rth@redhat.com>
5789 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5791 2002-04-26 Mark Mitchell <mark@codesourcery.com>
5794 * config/i386/i386.md (untyped_call): Return the value in a float
5795 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5798 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
5800 * tree.c (tree_int_cst_lt): Compare constants whose types differ
5801 in unsigned-ness correctly.
5803 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5805 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5806 portable runtime model.
5808 2002-04-26 Richard Henderson <rth@redhat.com>
5810 * c-parse.in (yyoverflow): Revert.
5812 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5813 Richard Henderson <rth@redhat.com>
5815 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5816 result as temporary value.
5818 2002-04-26 Richard Henderson <rth@redhat.com>
5821 * c-common.c (fix_string_type): Split out of ...
5822 (combine_strings): ... here. Take a varray, not a tree list.
5823 (c_expand_builtin_printf): Use fix_string_type.
5824 * c-common.h: Update decls.
5825 * c-parse.in (string): Remove. Update all uses to use STRING
5826 instead, and not call combine_strings.
5829 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5830 (build_asm_stmt): Likewise.
5831 * objc/objc-act.c (my_build_string): Use fix_string_type.
5832 (build_objc_string_object): Build varray for combine_strings.
5834 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5836 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5839 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5841 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5842 (HAVE_NO_R_OPERAND): Remove.
5843 (HAVE_VALUE): Remove.
5844 (op_to_prio): Update.
5845 (UNARY): Don't alter flags.
5846 (_cpp_parse_expr): want_value used to indicate whether
5847 a number or unary operator is expected next. Distinguish
5848 unary and binary +/-.
5849 (op_as_text): Update for unary operators.
5851 2002-04-25 Richard Henderson <rth@redhat.com>
5854 * c-parse.in (yyoverflow): New.
5856 2002-04-25 Richard Henderson <rth@redhat.com>
5859 * c-common.c (shorten_compare): Simplfy conditions leading to
5860 the generation of a warning.
5862 2002-04-25 Richard Henderson <rth@redhat.com>
5865 * expmed.c (extract_bit_field): Fall through to generic code rather
5866 than aborting on subreg special case.
5868 2002-04-25 David S. Miller <davem@redhat.com>
5870 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5871 for DECL being NULL.
5873 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5875 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5877 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
5879 * c-decl.c (grokdeclarator): Remove outdated ??? note
5880 on invalid declaration of flexible array members.
5882 2002-04-25 Richard Henderson <rth@redhat.com>
5884 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5886 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5888 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5889 needed by the compiler, even if they are used as global regs.
5891 2002-04-25 Matt Hiller <hiller@redhat.com>
5893 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5895 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5896 of the corresponding functions.
5897 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5900 2002-04-25 Matt Hiller <hiller@redhat.com>
5902 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5904 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5905 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5906 registers, adjust comment accordingly.
5907 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5908 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5909 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5910 for coprocessor registers.
5911 (ADDITIONAL_REGISTER_NAMES): Include
5912 ALL_COP_ADDITIONAL_REGISTER_NAMES.
5914 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5915 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5916 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5917 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5918 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5920 (mips_char_to_class): Adjust comment to include coprocessor
5923 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5925 (mips_reg_names, mips_regno_to_class): Include coprocessor
5927 (mips_sw_reg_names): Ditto, make non-static.
5928 (mips_move_1word): Handle moves to and from coprocessor registers.
5929 (mips_move_2words): Handle moves to and from coprocessor
5931 (mips_class_max_nregs, mips_register_move_cost): Handle
5932 coprocessor register classes.
5933 (override_options): Initialize mips_char_to_class and
5934 mips_hard_regno_mode_ok properly for coprocessor registers.
5936 * config/mips/mips.md (movdi_internal, movdi_internal2,
5937 movsi_internal1, movsi_internal2): Add constraint-sets for
5938 coprocessor registers.
5939 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5940 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5942 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5943 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5945 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5946 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5948 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5949 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5952 * doc/tm.texi: Document feature.
5954 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5956 * integrate.c (function_attribute_inlinable_p): Simplify.
5957 Check the table pointer is not NULL.
5959 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5961 * doc/c-tree.texi: Fix typo in introduction.
5963 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5965 * c-common.h (c_common_parse_file): Update.
5966 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5967 * c-lex.c (YYDEBUG): Get from c-lex.h.
5968 (c_common_parse_file): Update.
5969 * c-lex.h (YYDEBUG, yydebug): New.
5970 * c-parse.in (YYDEBUG): Get from c-lex.h.
5971 (c_set_yydebug): Remove.
5972 * c-tree.h (c_set_yydebug): Remove.
5973 * langhooks-def.h (lhd_do_nothing_i): New.
5974 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5975 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5976 * langhooks.c (lhd_do_nothing_i): New.
5977 (lhd_set_yydebug): Remove.
5978 * langhooks.h (struct lang_hooks): Update.
5979 * toplev.c (set_yydebug): New.
5980 (compile_file): Update call to parse_file hook.
5981 (decode_d_option): Update.
5983 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5985 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
5987 * loop.c (load_mems): Don't change the interface of called functions.
5989 * calls.c (expand_call): Take current_function_pretend_args_size
5990 into account when setting argblock for sibcalls.
5992 2002-04-24 Matt Hiller <hiller@redhat.com>
5994 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5997 * cpplex.c (skip_line_comment): Process comment one multibyte
5998 character at a time rather than one char at a time, if
6000 (parse_string): Process string one multibyte character at a time
6001 rather than one char at a time, if appropriate.
6002 * c-lex.c (lex_string): Lex and copy multibyte strings
6004 * cpplib.h (cppchar_t): Change to unsigned.
6006 2002-04-24 Richard Henderson <rth@redhat.com>
6009 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
6012 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
6014 * sh.c (sh_va_arg): If argument was passed by reference,
6015 dereference the pointer.
6017 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6019 * sh.md (divsi3_i4_media): Use match_operand for input values
6020 rather than hard registers.
6021 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
6022 unnecessarily through hard registers. Keep copies of pseudo
6023 registers outside of the libcall sequence.
6025 * sh.md (casesi_shift_media): Add modes.
6027 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
6030 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
6032 * attribs.c (c_common_attribute_table): Move table and handlers
6034 (format_attribute_table, lang_attribute_table,
6035 lang_attribute_common): Remove.
6036 (init_attributes): Replace NULL pointers with pointers to the
6038 (handle_packed_attribute, handle_nocommon_attribute,
6039 handle_common_attribute, handle_noreturn_attribute,
6040 handle_noinline_attribute, handle_always_inline_attribute,
6041 handle_used_attribute, handle_unused_attribute,
6042 handle_const_attribute, handle_transparent_union_attribute,
6043 handle_constructor_attribute, handle_destructor_attribute,
6044 handle_mode_attribute, handle_section_attribute,
6045 handle_aligned_attribute, handle_weak_attribute,
6046 handle_alias_attribute, handle_visibility_attribute,
6047 handle_no_instrument_function_attribute, handle_malloc_attribute,
6048 handle_no_limit_stack_attribute, handle_pure_attribute,
6049 handle_deprecated_attribute, handle_vector_size_attribute,
6050 vector_size_helper): Move to c-common.c.
6051 * c-common.c (c_common_attribute_table,
6052 handle_packed_attribute, handle_nocommon_attribute,
6053 handle_common_attribute, handle_noreturn_attribute,
6054 handle_noinline_attribute, handle_always_inline_attribute,
6055 handle_used_attribute, handle_unused_attribute,
6056 handle_const_attribute, handle_transparent_union_attribute,
6057 handle_constructor_attribute, handle_destructor_attribute,
6058 handle_mode_attribute, handle_section_attribute,
6059 handle_aligned_attribute, handle_weak_attribute,
6060 handle_alias_attribute, handle_visibility_attribute,
6061 handle_no_instrument_function_attribute, handle_malloc_attribute,
6062 handle_no_limit_stack_attribute, handle_pure_attribute,
6063 handle_deprecated_attribute, handle_vector_size_attribute,
6064 vector_size_helper): Move from attribs.c.
6065 * c-common.h (c_common_attribute_table,
6066 c_common_format_attribute_table): New.
6067 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6068 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6069 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
6070 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
6071 (LANG_HOOKS_INITIALIZER): Update.
6072 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
6073 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
6074 * target.h: Update comment.
6075 * tree.c (default_target_attribute_table): Remove.
6076 * tree.h (default_target_attribute_table, format_attribute_table,
6077 lang_attribute_table, lang_attribute_common): Remove.
6079 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6080 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6082 2002-04-24 Jason Merrill <jason@redhat.com>
6084 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
6085 * dwarf2out.c (dwarf_attr_name): Support it.
6086 (gen_array_type_die): Emit it.
6087 (lookup_type_die): No special handling for VECTOR_TYPE.
6088 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
6090 2002-04-24 Richard Henderson <rth@redhat.com>
6092 * config/mips/mips.md (movdi_usd): Renumber.
6094 2002-04-24 David S. Miller <davem@redhat.com>
6097 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
6098 32-bit Sparc and current_function_returns_struct is true.
6100 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
6102 * loop.c (canonicalize_condition): Use gen_int_mode.
6104 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
6106 * config/rs6000/altivec.h: Cleanup file. Add non individual
6128 (vec_vcmpequb): New.
6129 (vec_vcmpequh): New.
6130 (vec_vcmpequw): New.
6131 (vec_vcmpeqfp): New.
6132 (vec_vcmpgefp): New.
6133 (vec_vcmpgtub): New.
6134 (vec_vcmpgtsb): New.
6135 (vec_vcmpgtuh): New.
6136 (vec_vcmpgtsh): New.
6137 (vec_vcmpgtuw): New.
6138 (vec_vcmpgtsw): New.
6139 (vec_vcmpgtfp): New.
6140 (vec_vcmpgefp): New.
6145 (vec_vexptefp): New.
6150 (vec_lde): Add vector float variant.
6155 (vec_vmhaddshs): New.
6177 (vec_vmladduhm): New.
6178 (vec_vmhraddshs): New.
6180 (vec_vmsummbm): New.
6181 (vec_vmsumuhm): New.
6182 (vec_vmsumshm): New.
6183 (vec_vmsumuhs): New.
6184 (vec_vmsumshs): New.
6193 (vec_vnmsubfp): New.
6211 (vec_vrsqrtefp): New.
6222 (vec_vspltisb): New.
6223 (vec_vspltish): New.
6224 (vec_vspltisw): New.
6249 (vec_vsum4ubs): New.
6250 (vec_vsum4sbs): New.
6251 (vec_vsum4shs): New.
6252 (vec_vsum2sws): New.
6263 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
6266 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6267 added literals from substracted literals.
6268 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6269 (fold) [associate]: Preserve MINUS_EXPR if needed.
6271 2002-04-23 Zack Weinberg <zack@codesourcery.com>
6273 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6276 2002-04-23 Tom Tromey <tromey@redhat.com>
6278 * gcc.c: Added --resource. For PR java/6314.
6280 2002-04-23 David O'Brien <obrien@FreeBSD.org>
6282 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6283 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6286 2002-04-23 David O'Brien <obrien@FreeBSD.org>
6288 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6290 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
6292 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6294 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6295 (ix86_expand_clrstr): Fix typo.
6296 * loop.c (gen_load_of_final_value): New.
6297 (loop_givs_rescan, strength_reduce, check_dbra_loop):
6300 2002-04-23 Roger Sayle <roger@eyesopen.com>
6302 * builtins.c (builtin_memset_gen_str): New function.
6303 (expand_builtin_memset): Optimize the case of constant length, but
6306 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
6308 * config/rs6000/altivec.h (vec_step): Remove extraneous
6310 (vec_ctu): Cast return.
6312 2002-04-23 Alan Modra <amodra@bigpond.net.au>
6315 * function.h: (struct function): Add profile_label_no field.
6316 (current_function_profile_label_no): Define.
6317 * function.c: (profile_label_no): New static var.
6318 (expand_function_start): Increment it, and copy to
6319 current_function_profile_label_no.
6320 * output.h (profile_label_no): Delete.
6321 * final.c (profile_label_no): Delete.
6322 (profile_function): Use current_function_profile_label_no.
6323 (final_end_function): Don't increment profile_label_no here.
6324 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6325 profile_label_no with current_function_profile_label_no.
6326 * config/pa/pa.c (current_function_number): Delete.
6327 (pa_output_function_prologue): Don't output profile label here.
6328 (hppa_profile_hook): Use label_no param rather than
6329 current_function_number.
6330 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6331 * config/pa/pa.h: .. here.
6332 (FUNCTION_PROFILER): Output profile label here.
6334 2002-04-22 Eric Christopher <echristo@redhat.com>
6336 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6337 patch of 2002-04-09 due to binutils issues.
6338 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6340 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6342 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6343 constraint to 'o' for m=r and r=m alternatives.
6344 ("*movv8hi_internal1"): Same.
6345 ("*movv16qi_internal1"): Same.
6346 ("*movv4sf_internal1"): Same.
6348 2002-04-22 Janis Johnson <janis187@us.ibm.com>
6350 * rtl.h (RTX_FLAG): New macro.
6351 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6352 * final.c (alter_subreg): Use macro to access rtx flag.
6353 * integrate.c (copy_rtx_and_substitute): Use new access macro.
6354 * print-rtl.c (print_rtx): Use new access macro.
6356 * cse.c (insert): Check rtx code before accessing flag.
6358 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6359 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6360 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6361 convert_const_symbol_ref, make_canonical, make_alternative_compare,
6362 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6363 simplify_test_exp, optimize_attrs, simplify_by_exploding,
6364 find_and_mark_used_attributes, unmark_used_attributes,
6365 add_values_to_cover, simplify_with_current_value,
6366 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6367 copy_rtx_unchanging, main): Use new access macros.
6369 2002-04-22 Tom Rix <trix@redhat.com>
6371 * expmed.c (init_expmed): Generate shifted constant once.
6373 2002-04-22 Zack Weinberg <zack@codesourcery.com>
6375 * c-lex.c (lex_charconst): Call convert to get constant in
6376 proper type; don't just smash the type field.
6379 * config.gcc: Add list of obsolete configurations. Disallow
6380 building these without --enable-obsolete.
6381 * doc/install.texi: Document --enable-obsolete and obsoletion
6382 policy. Mention obsoletion of individual targets in
6385 2002-04-22 Richard Henderson <rth@redhat.com>
6387 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6389 2002-04-22 Mark Mitchell <mark@codesourcery.com>
6392 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6393 (walk_fixup_memory_subreg): Likewise.
6394 (fixup_var_refs_insn): Adjust accordingly.
6395 (fixup_var_refs_1): Likewise.
6397 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
6399 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6400 LIBPATH_ARCH64_SPEC): Define.
6401 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6402 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6403 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6404 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6406 2002-04-22 Joel Sherrill <joel@OARcorp.com>
6408 * gthr-rtems.h: Correct prototypes to remove warnings.
6410 2002-04-22 Richard Henderson <rth@redhat.com>
6413 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6415 * gcse.c (free_insn_expr_list_list): New.
6416 (clear_modify_mem_tables): Use it. Fix bit set usage.
6417 (canon_list_insert): Use EXPR_LISTs for expressions.
6418 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6420 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
6422 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
6423 file change and include code to _cpp_pop_buffer.
6424 * cpphash.h (struct pending_option): Predeclare.
6425 (struct cpp_reader): New member next_include_file.
6426 (_cpp_pop_file_buffer): Update.
6427 (_cpp_push_next_buffer): Update, rename.
6428 * cppinit.c (cpp_destroy): Free include chain and pending here.
6429 (cpp_finish_options): Simplify.
6430 (_cpp_push_next_buffer): Rename and clean up.
6431 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6433 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6435 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6437 * config/rs6000/altivec.h (vec_xor): Add variant for both args
6438 being vector signed int.
6440 (vec_xor): Add variant for both args being vector signed char.
6441 Remove redundant variant.
6444 2002-04-21 David S. Miller <davem@redhat.com>
6446 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6447 compare mode in output RTL.
6449 2002-04-22 David Edelsohn <edelsohn@gnu.org>
6451 * config/rs6000/rs6000.c (rs6000_override_options): Correct
6452 style and formatting of previous patch.
6454 2002-04-22 Alan Modra <amodra@bigpond.net.au>
6456 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6457 flag_pic for ABI_AIX.
6459 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6461 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6462 * cppfiles.c (read_include_file): Similarly.
6463 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6464 uxstrdup ustrchr, ufputs): Similarly.
6465 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6466 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6467 cpp_ideq, parse_identifier, parse_number): Similarly.
6468 * cpplib.c (struct directive, dequote_string, D, run_directive,
6469 cpp_push_buffer): Similarly.
6470 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6471 _cpp_create_definition, check_trad_stringification,
6472 cpp_macro_definition): Similarly.
6474 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6476 * cppmacro.c (funlike_invocation_p): Don't step back
6479 2002-04-21 David Edelsohn <edelsohn@gnu.org>
6481 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6484 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
6486 * doc/invoke.texi: Remove Chill references.
6487 * doc/gcc.texi: Update last modified date.
6489 2002-04-20 Kazu Hirata <kazu@hxi.com>
6491 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6492 push and pop. Replace add.l with add.w.
6494 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6496 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6497 multiply instructions for H8/300H case.
6499 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6501 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6502 Bum three instructions from each routine.
6504 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
6506 * Makefile.in: Update.
6507 * decl.c (push_c_function_context, pop_c_function_context,
6508 mark_c_function_context): Rename for consistency.
6509 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6510 * c-tree.h (push_c_function_context, pop_c_function_context,
6511 mark_c_function_context): Rename for consistency.
6512 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6513 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6514 * function.c (init_lang_status, save_lang_status,
6515 restore_lang_status, mark_lang_status, free_lang_status):
6516 Move to langhooks.h.
6517 (push_function_context_to, pop_function_context_from,
6518 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6520 * function.h (init_lang_status, save_lang_status,
6521 restore_lang_status, mark_lang_status, free_lang_status):
6522 Move to langhooks.h.
6523 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6524 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6525 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6526 LANG_HOOKS_FUNCTION_INITIALIZER): New.
6527 (LANG_HOOKS_INITIALIZER): Update.
6528 (lhd_do_nothing_f): New.
6529 * langhooks.h (struct lang_hooks_for_functions): New.
6530 (struct lang_hooks): New hooks.
6531 * langhooks.c (lhd_do_nothing_f): New.
6533 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6534 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6536 2002-04-19 David S. Miller <davem@redhat.com>
6538 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6539 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6541 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6543 PR optimization/3756
6544 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6545 x = ((int) y < 0) ? cst1 : cst2.
6547 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6550 * function.c: Reapply patch for c/6358.
6551 (expand_function_end): Copy decl_rtl's mode, not
6552 current_function_return_rtx mode.
6554 2002-04-19 Joel Sherrill <joel@OARcorp.com>
6556 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6559 2002-04-19 Tom Tromey <tromey@redhat.com>
6561 * doc/install.texi (Specific): Update status of Solaris 2.8.
6564 2002-04-19 Andreas Schwab <schwab@suse.de>
6566 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6567 (PUT_REAL): Restore old definition.
6569 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6570 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6572 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6573 binutils 2.11.2 and higher generate smaller binaries than Sun's
6576 2002-04-19 Mark Mitchell <mark@codesourcery.com>
6579 * toplev.c (rest_of_compilation): Do not defer functions for which
6580 TREE_SYMBOL_REFERENCED has already been set.
6582 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
6584 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6587 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
6589 * builtins.c: Include langhooks.h.
6590 (lang_type_promotes_to): Remove.
6591 (expand_builtin_va_arg): Use new hook.
6592 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6593 (simple_type_promotes_to): Move to c-typeck.c.
6594 * c-common.h (simple_type_promotes_to): Remove.
6595 * c-decl.c (duplicate_decls, grokdeclarator): Update.
6596 * c-format.c: Include langhooks.h.
6597 (check_format_types): Update.
6598 * c-tree.h (c_type_promotes_to): New.
6599 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6600 (type_lists_compatible_p): Update.
6601 * langhooks-def.h (lhd_type_promotes_to): New.
6602 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6603 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6604 * langhooks.c (lhd_type_promotes_to): New.
6605 * langhooks.h (struct lang_hooks_for_types): New hook.
6606 * tree.h (lang_type_promotes_to): Remove.
6608 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6610 2002-04-18 Richard Henderson <rth@redhat.com>
6612 * function.c: Revert patch for c/6358.
6614 2002-04-18 Richard Henderson <rth@redhat.com>
6616 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6617 blocks. Handle multiple references to the TRAP block. Handle
6618 non-adjacent THEN and OTHER blocks.
6620 2002-04-18 Richard Henderson <rth@redhat.com>
6622 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6623 crash with no type for by-mode libcalls.
6625 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6627 2002-04-18 Bob Wilson <bob.wilson@acm.org>
6629 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6630 __xtensa_nonlocal_goto): Use a syscall instructions to flush
6631 the register windows.
6633 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6635 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6636 appropriate. Document need for extended precision even when
6637 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
6638 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
6639 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
6640 instead of relying on later syntax error when REAL_WIDTH > 5.
6641 * real.c: Define NE based only on whether or not we have a
6642 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6643 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
6644 define GET_REAL and PUT_REAL as simple memcpy operations; no
6645 need to byteswap or round.
6646 Use #error instead of #ifdef-ing out the entire file, for
6647 prompt error detection.
6649 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6651 2002-04-18 David S. Miller <davem@redhat.com>
6653 * config/sparc/sparc.h (BRANCH_COST): Define.
6655 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6658 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
6660 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6661 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6662 propagate_block calls after relaxation loop using new variable
6663 stabilized_prop_flags.
6665 2002-04-18 Richard Henderson <rth@redhat.com>
6667 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6668 (ia64_va_arg): Expect variable sized types by reference.
6669 * config/ia64/ia64-protos.h: Update.
6670 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6671 ia64_function_arg_pass_by_reference.
6673 2002-04-18 Richard Henderson <rth@redhat.com>
6675 * ifcvt.c: Include except.h.
6676 (block_has_only_trap): Break out from find_cond_trap.
6677 (find_cond_trap): Use it. Always delete the trap block.
6678 (merge_if_block): Allow then block null. Be less simplistic about
6679 what insns can end a block.
6680 * Makefile.in (ifcvt.o): Depend on except.h.
6682 * config/ia64/ia64.md (trap, conditional_trap): New.
6684 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6687 * function.c (assign_parms): Assign hard current_function_return_rtx
6689 (expand_function_end): ...not here.
6691 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
6693 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6694 * c-tree.h (c_incomplete_type_error): New.
6695 * c-typeck.c (require_complete_type, build_component_ref): Update.
6696 (incomplete_type_error): Rename.
6697 * langhooks-def.h (lhd_incomplete_type_error): New.
6698 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6699 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6700 * langhooks.c (lhd_incomplete_type_error): New.
6701 * langhooks.h (struct lang_hooks_for_types): New hook.
6702 * tree.c (size_in_bytes): Use new hook.
6703 * tree.h (incomplete_type_error): Remove.
6705 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6707 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6709 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6710 TARGET_FLOAT_FORMAT blocks.
6712 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6714 * doc/install.texi (Downloading the source): Do not mention Chill
6715 any longer, but mention Ada.
6716 (Configuration): Do not mention Chill any longer.
6718 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
6720 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6722 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
6724 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6727 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6729 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6730 instead of unsigned_type.
6732 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6734 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6735 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6738 2002-04-18 Bernd Schmidt <bernds@redhat.com>
6740 * attribs.c (vector_type_node_list): New static variable.
6741 (handle_vector_size_attribute): Use it to avoid generating a
6742 new type node each time we are called.
6744 * combine.c (subst): Avoid trying to make a vector mode subreg of
6745 an integer constant.
6746 (gen_lowpart_for_combine): Likewise.
6748 2002-04-18 Roger Sayle <roger@eyesopen.com>
6749 Jakub Jelinek <jakub@redhat.com>
6751 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6752 for integer constant c (if x has unsigned type or sign bit is not
6753 set in c). This folds the zero/sign extension into the bit-wise and
6756 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6759 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6762 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
6764 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6766 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
6768 * gcc.c (read_specs): Detect and fail if an attempt is made to
6769 rename a spec string to an already existing string.
6771 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6773 * config/s390/s390.c (legitimize_pic_address): Do not generate
6774 illegal address constant without CONST.
6776 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6778 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6779 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6781 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6783 PR optimization/6305
6784 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6785 to make sure previous reloads are taken into account. Generate
6786 better code if one operand is an in-range immediate constant.
6788 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
6790 * doc/install.texi (Building): libgcj requires GNU make.
6792 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6795 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6796 even if hard quad and register is not floating.
6797 (movtf reg<-mem split): Disallow splitting if hard quad and
6798 register is floating.
6799 (movtf mem<-reg split): Likewise.
6800 * config/sparc/sparc.c (fp_register_operand): New predicate.
6801 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6803 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6805 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6806 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6807 (unprotoize.o): Ditto. Build from protoize.c. Define
6808 UNPROTOIZE on command line.
6809 * protoize.c: Include cppdefault.h. Delete include_defaults.
6810 (in_system_include_dir): Use cpp_include_defaults (defined in
6812 * unprotoize.c: Delete file.
6814 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6816 * config/rs6000/altivec.h (vec_ld): Add array variants.
6820 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6821 Aldy Hernandez <aldyh@redhat.com>
6823 * config/rs6000/altivec.h: Define __ALTIVEC__.
6830 Add parentheses to all macro arguments.
6832 2002-04-16 Richard Henderson <rth@redhat.com>
6835 * except.c (remove_eh_handler): Insert inner regions at beginning
6836 of sibling chain. Refactor expressions.
6838 2002-04-16 Richard Henderson <rth@redhat.com>
6840 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6841 * config/sparc/sol2-gas-bi.h: New file.
6842 * config.gcc (sparc*-solaris): Add it as needed.
6843 * configure.in (AS_SPARC64_FLAG): Remove check.
6844 * config.in, configure: Regenerate.
6846 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6848 2002-04-16 Richard Henderson <rth@redhat.com>
6850 * config/mips/mips.c (override_options): Don't override N32 for
6854 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6855 (HILO_delay): Set can_delay false.
6857 2002-04-16 Dale Johannesen <dalej@apple.com>
6859 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6860 instruction addresses.
6861 (rs6000_output_function_epilogue): Likewise.
6863 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6865 * c-parse.in (poplevel, compstmt_start,
6866 compstmt_primary_start): Add ending ';', in accordance
6869 2002-04-16 Richard Henderson <rth@redhat.com>
6871 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6872 Adjust tm_file order to get TARGET_DEFAULT set properly.
6873 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6874 * doc/install.texi (sparc-solaris): Update.
6876 2002-04-16 Dale Johannesen <dalej@apple.com>
6878 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6879 comparison operands do not match each other or if modes of
6880 conditions do not match result.
6882 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
6885 * config/s390/s390.md (mulsidi3): Set both subregs of the
6888 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
6890 * config/rs6000/altivec.h (vec_addc): Type check.
6892 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6895 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6897 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6899 2002-04-15 Richard Henderson <rth@redhat.com>
6901 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6902 call_really_used_regs too.
6904 2002-04-15 Richard Henderson <rth@redhat.com>
6906 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6908 2002-04-15 David S. Miller <davem@redhat.com>
6910 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6913 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6916 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6917 CONST_VECTOR is { 0, ... 0 }.
6919 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
6921 * doc/install.texi (Installing GCC: Configuration): Clarify
6922 the only supported ways to configure gcc.
6924 2002-04-15 Roland McGrath <roland@frob.com>
6926 * config.gcc (alpha*-*-gnu*): New target configuration.
6927 * config/alpha/gnu.h: New file for it.
6928 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6930 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6932 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6933 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6934 * tree.h (expand_start_stmt_expr): Update prototype.
6935 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6936 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6937 on the STMT_EXPR created for the inline function.
6939 2002-04-15 Richard Henderson <rth@redhat.com>
6941 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6942 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6943 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6944 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6945 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6946 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6947 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6948 Define __gnu_linux__, not gnu_linux.
6949 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6951 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6953 Remove Chill front end.
6954 * gcc.c (default_compilers): Remove Chill entries.
6955 * ch: Remove directory.
6956 * doc/frontends.texi: Remove information about Chill.
6957 * doc/sourcebuild.texi: Likewise.
6958 * doc/standards.texi: Likewise.
6960 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6962 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6963 (LONGLONG_STANDALONE): Define.
6965 2002-04-15 David S. Miller <davem@redhat.com>
6967 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6968 Call emit_library_call with LCT_NORMAL.
6969 (sparc_initialize_trampoline): Use LCT_foo instead of
6970 magic constant in emit_library_call invocations.
6971 (sparc64_initialize_trampoline): Likewise.
6972 (sparc_profile_hook): Likewise.
6973 * config/sparc/sparc.md: Likewise.
6975 * config/sparc/sparc.c (sparc_extra_constraint_check):
6976 Fix type of argument 'c'.
6977 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6980 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6982 * diagnostic.h (output_buffer_state): Redefine.
6983 (output_format_decoder): New macro.
6984 (output_prefixing_rule): Likewise.
6985 (output_line_cutoff): Likewise.
6986 (diagnostic_format_decoder): Adjust.
6987 (diagnostic_prefixing_rule): Likewise.
6988 (diagnostic_line_cutoff): Likewise.
6989 (diagnostic_state): Likewise.
6990 (diagnostic_kind_count): Likewise.
6991 (diagnostic_buffer): Now a macro.
6993 * diagnostic.c (diagnostic_buffer): Remove definition.
6994 (output_is_line_wrapping): Adjust.
6995 (set_real_maximum_length): Likewise.
6996 (output_set_maximum_length): Likewise.
6997 (init_output_buffer): Likewise.
6998 (lhd_print_error_function): Likewise.
6999 (output_do_verbatim): Likewise.
7001 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
7003 * cpperror.c (print_location): Don't print include chain
7005 (cpp_begin_message): Update to use DL_ macros.
7006 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7007 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7008 cpp_notice, cpp_notice_from_errno): Remove.
7009 (cpp_error, cpp_error_with_line): Update to take a diagnostic
7012 * cppexp.c (CPP_ICE): Remove.
7013 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
7014 lex, integer_overflow, _cpp_parse_expr): Update.
7015 * cppfiles.c (read_include_file, find_include_file,
7016 handle_missing_header, _cpp_read_file, remap_filename): Update.
7017 * cpphash.h (enum error_type): Remove.
7018 (_cpp_begin_message): Update.
7019 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
7020 cpp_handle_option, cpp_post_options): Update.
7021 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
7022 skip_whitespace, parse_identifier, parse_slow, parse_string,
7023 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
7024 cpp_interpret_charconst): Update.
7025 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
7026 lex_macro_node, do_undef, glue_header_name, parse_include,
7027 do_include_common, read_flag, do_line, do_linemarker, do_ident,
7028 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
7029 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
7030 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
7031 _cpp_pop_buffer, do_diagnostic): Update.
7032 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
7033 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
7034 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7035 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7036 cpp_notice, cpp_notice_from_errno): Remove.
7037 (cpp_error, cpp_error_with_line): Update to take a diagnostic
7040 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
7041 collect_args, enter_macro_context, save_parameter, parse_params,
7042 _cpp_create_definition, check_trad_stringification,
7043 cpp_macro_definition): Update.
7044 * cppmain.c (cpp_preprocess_file): Update.
7045 * fix-header.c (read_scan_file): Update.
7047 2002-04-14 Andreas Schwab <schwab@suse.de>
7049 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
7051 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7053 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
7055 2002-04-13 Mark Mitchell <mark@codesourcery.com>
7057 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
7060 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
7062 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
7064 2002-04-13 Joel Sherrill <joel@OARcorp.com>
7066 * config/sparc/t-elf: Enable v8 multilibs. Impacts
7067 sparc-elf and sparc-rtems targets.
7069 2002-04-13 Mark Mitchell <mark@codesourcery.com>
7071 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
7072 defined, and __gnu_hurd__ wherever __GNU__ is defined.
7073 * arm/linux-elf.h: Likewise.
7074 * cris/aout.h: Likewise.
7075 * cris/linux.h: Likewise.
7076 * i370/linux.h: Likewise.
7077 * i386/gnu.h: Likewise.
7078 * i386/linux-aout.h: Likewise.
7079 * i386/linux-oldld.h: Likewise.
7080 * i386/linux.h: Likewise.
7081 * i386/linux64.h: Likewise.
7082 * ia64/linux.h: Likewise.
7083 * m68k/linux-aout.h: Likewise.
7084 * m68k/linux.h: Likewise.
7085 * mips/linux.h: Likewise.
7086 * pa/pa-linux.h: Likewise.
7087 * pj/linux.h: Likewise.
7088 * rs6000/sysv4.h: Likewise.
7089 * s390/linux.h: Likewise.
7090 * sh/linux.h: Likewise.
7091 * sparc/linux-aout.h: Likewise.
7092 * sparc/linux.h: Likewise.
7093 * sparc/linux64.h: Likewise.
7094 * xtensa/linux.h: Likewise.
7096 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
7098 * stmt.c (check_unique_operand_names): Expect operand names to
7099 be strings rather than identifiers. Use simple_cst_equal to
7101 (resolve_operand_name_1): Make same identifier to string change here.
7102 * c-parse.in (asm_operand): Convert a named operand into a string.
7103 * cp/parse.y (asm_operand): Likewise.
7105 2002-04-13 Andreas Schwab <schwab@suse.de>
7107 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
7109 2002-04-12 Mark Mitchell <mark@codesourcery.com>
7111 Revert these changes:
7113 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7116 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7118 2002-04-12 Richard Henderson <rth@redhat.com>
7120 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
7121 (sparc*-*-solaris): Clean up header files.
7122 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
7123 and plan on generating 64-bit code.
7124 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
7125 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
7126 * config/sparc/sol2-sld-64.h: Rename ...
7127 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
7128 for AS_SPARC64_FLAG not defined.
7129 * config/sparc/sol2-gld-bi.h: New.
7130 * config/sparc/sol2-sld.h: Remove.
7131 * config/sparc/sol26-sld.h: New.
7132 * config/sparc/sol2.h: Tidy comments.
7133 * doc/install.texi: Document sparc-solaris configury changes.
7135 2002-04-12 Richard Henderson <rth@redhat.com>
7137 * recog.c (offsettable_address_p): Match the logic in adjust_address.
7139 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
7140 in 64-bit mode only. Use only for 32-bit or MEDLOW.
7142 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7144 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
7146 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
7148 * pa.c (pa_can_combine_p): Call extract_insn before calling
7151 2002-04-12 Douglas B Rupp <rupp@gnat.com>
7153 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
7154 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
7155 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7156 (CPP_PREDEFINES): Handle __declspec.
7157 * config/i386/t-interix (USER_H): Remove.
7159 2002-04-12 DJ Delorie <dj@redhat.com>
7161 * integrate.c (compare_blocks): Make comparisons safe for when
7162 sizeof(int) < sizeof(char *).
7163 (find_block): Likewise.
7165 2002-04-12 Jan Hubicka <jh@suse.cz>
7166 David Edelsohn <edelsohn@gnu.org>
7168 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
7170 (symbol_ref_operand): New.
7171 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
7172 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
7174 2002-04-12 Andreas Schwab <schwab@suse.de>
7176 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
7177 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
7178 overrides the definition in config/svr4.h.
7180 2002-04-12 Eric Norum <eric.norum@usask.ca>
7182 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
7183 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
7184 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
7185 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
7186 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
7187 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
7188 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
7189 definitions to config/rtems.h and make the targets more similar.
7191 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7193 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7194 POINTERS_EXTEND_UNSIGNED.
7195 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7196 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7198 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7201 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
7203 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7204 depends on TARGET_SHMEDIA, not TARGET_SH5.
7206 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
7208 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7209 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7211 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
7213 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7216 2002-04-12 Andreas Schwab <schwab@suse.de>
7218 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7220 2002-04-12 Richard Henderson <rth@redhat.com>
7223 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7225 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7226 modes spanning multiple hard regs.
7228 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7230 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7232 * pa.c (pa_output_function_prologue): Don't accumulate the total
7233 number of code bytes when using TARGET_64BIT, or gas, SOM and not
7234 the portable runtime.
7235 (output_deferred_plabels): Handle 64bit plabels.
7236 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7237 generating pic code using the GAS assembler for object formats that
7238 are not SOM (ie., ELF32 and ELF64).
7239 (output_millicode_call): Check attribute type if attribute length is 28.
7240 Likewise use $PIC_pcrel$0. Only call get_attr_length and
7241 dbr_sequence_length once.
7242 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7243 dbr_sequence_length once.
7244 * pa.h (TARGET_SOM): Define if not defined.
7245 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7246 with GAS and not SOM.
7247 (jump, call_internal_reg, call_value_internal_reg): Likewise.
7248 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
7250 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7252 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7253 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7254 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7255 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7256 elfos.h and dbxelf.h values are fine now.
7257 * config/i386/freebsd.h, config/alpha/freebsd.h
7258 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7260 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7262 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7263 or set Acpu or Amachine. Reformat.
7264 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7266 (LINK_SPEC): Do not need to undef.
7267 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7268 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7269 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7271 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7272 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7273 (LINK_SPEC): Do not need to undef.
7274 (DONT_USE_BUILTIN_SETJMP): Do not define.
7275 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7276 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
7277 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7278 Remove trailing spaces.
7279 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7280 __ELF__, or set Acpu or Amachine. Reformat.
7281 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7284 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7286 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7287 all other *-*-freebsd* targets.
7289 2002-04-11 Richard Henderson <rth@redhat.com>
7291 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7293 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7295 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7296 Include {cpu}/{cpu}.h thru tm_file.
7297 (alpha*-*-linux*ecoff): Remove target.
7298 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7299 (LINK_SPEC): Remove, is not OS independent.
7300 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7301 (LINK_SPEC): Do not need to #undef any longer.
7302 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7304 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7306 (LINK_SPEC): Moved here from alpha/elf.h.
7307 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7309 * config/alpha/linux-ecoff.h: Remove.
7310 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7311 (CPP_SPEC): Define _POSIX_SOURCE as needed.
7312 (CPP_SUBTARGET_SPEC): Do not define.
7313 (LINK_SPEC): Do not need to #undef any longer.
7314 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7315 * config/alpha/vms.h: Likewise.
7317 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
7319 * doc/extend.texi: Remove old claim that typedefs cannot have
7320 an alignment attribute.
7322 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7324 PR optimization/6177
7325 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7326 bitpos is 0 and bitsize CONCAT size.
7328 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7331 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7333 2002-04-10 David O'Brien <obrien@FreeBSD.org>
7335 * config/alpha/freebsd.h: Minor reformatting.
7336 (CPP_SPEC): Define ELF and add cpp_subtarget.
7337 (ASM_SPEC): No longer needed.
7339 2002-04-11 Richard Henderson <rth@redhat.com>
7341 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7342 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
7343 (dimode mem/zero splitter): New.
7345 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
7347 * config/cris/cris.c (cris_override_options): Tweak error message
7348 for PIC not implemented.
7350 * config/cris/cris.h: Tweak comments related to parameter-passing.
7352 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7354 2002-04-10 Richard Henderson <rth@redhat.com>
7356 * except.c (add_ehl_entry): Allow duplicates after landing pad
7359 2002-04-10 David Edelsohn <edelsohn@gnu.org>
7361 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7363 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
7365 * c-decl.c (c_init_decl_processing): Move generation of
7366 decls for g77_integer_type_node and friends from here ...
7367 * c-common.c (c_common_nodes_and_builtins): ... to here.
7369 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
7371 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7372 is only used as frame pointer when frame_pointer_needed is true.
7374 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
7377 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7378 for the fact that the pool entry uses two words.
7379 (movdf_hard_insn): Similarly. Also, ADR instruction can span
7381 (movdf_soft_insn): Similarly.
7382 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7383 for the fact that the pool entry uses three words.
7385 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
7387 * config/mips/mips.c (mips_va_arg): When using the struct version
7388 of the EABI va_list, allow arguments in the register save area to
7389 take up less room than a stack argument.
7391 2002-04-10 Richard Henderson <rth@redhat.com>
7393 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7394 if EXPAND_INITIALIZER.
7396 2002-04-09 Richard Henderson <rth@redhat.com>
7398 * config/alpha/alpha.md (movdi_er_maybe_g): New.
7399 * config/alpha/alpha.c (alpha_expand_mov): Use it.
7401 2002-04-10 Alan Modra <amodra@bigpond.net.au>
7403 PR optimization/6233
7404 * rtlanal.c (pure_call_p): New function.
7405 * rtl.h (pure_call_p): Declare.
7406 * loop.c (prescan_loop): Use it to set has_nonconst_call.
7407 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7409 2002-04-09 Eric Christopher <echristo@redhat.com>
7411 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7412 information to .comm directive.
7414 2002-04-09 Richard Henderson <rth@redhat.com>
7417 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7419 2002-04-09 Richard Henderson <rth@redhat.com>
7421 * basic-block.h (flow_delete_block_noexpunge): Declare.
7422 (expunge_block_nocompact): Declare.
7423 * cfg.c (expunge_block_nocompact): Split out from ...
7424 (expunge_block): ... here.
7425 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7426 (flow_delete_block_noexpunge): Split out from ...
7427 (flow_delete_block): ... here.
7428 * cfgcleanup.c (delete_unreachable_blocks): Compact while
7429 removing dead blocks.
7430 * except.c (exception_handler_labels): Remove.
7431 (exception_handler_label_map): New.
7432 (struct eh_region): Add aka member.
7433 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7434 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7435 (for_each_eh_label, for_each_eh_label_1): New.
7436 (init_eh): Register exception_handler_label_map.
7437 (free_eh_status): Use free_region.
7438 (find_exception_handler_labels): Use the map, not the list.
7439 (remove_exception_handler_label): Likewise.
7440 (maybe_remove_eh_handler): Likewise.
7441 (remove_eh_handler): Use the region aka bitmap.
7442 * except.h (exception_handler_labels): Remove.
7443 (for_each_eh_label): Declare.
7444 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7445 * loop.c (invalidate_loops_containing_label): New.
7446 (find_and_verify_loops): Use it. Use for_each_eh_label.
7447 * sched-rgn.c (is_cfg_nonregular): Use
7448 current_function_has_exception_handlers.
7450 2002-04-09 Richard Henderson <rth@redhat.com>
7452 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7453 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7454 Do not return changed status.
7455 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7456 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7457 New functions that do return changed status.
7458 * sbitmap.h: Update decls.
7459 * gcse.c, lcm.c: Use _cg functions as needed.
7461 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7463 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7464 (sh64-*-elf*, sh-*-rtemself*): Likewise.
7465 * config/sh/embed_bb.c: New file.
7466 * config/sh/embed-elf.h: New file.
7467 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7468 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
7469 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7471 (SUBTARGET_CPP_PTR_SPEC): Don't define.
7472 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7473 Add subtarget_asm_endian_spec.
7474 (ASM_SPEC): Use subtarget_asm_endian_spec.
7475 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7476 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7477 (WCHAR_UNSIGNED): Define.
7478 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7479 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7480 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7482 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7483 (sh_adjust_cost): Likewise.
7484 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7486 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7487 (WCHAR_TYPE_SIZE): Likewise.
7488 (ASM_SPEC): Use subtarget_asm_endian_spec.
7489 (SH_ELF_WCHAR_TYPE): #undef/ #define.
7490 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7491 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7492 (MAX_WCHAR_TYPE_SIZE): Don't #define .
7493 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7494 (USER_LABEL_PREFIX): Don't #undef /#define .
7495 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7496 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7497 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7498 (ASM_SPEC): Likewise.
7499 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7500 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7501 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7502 (LIB2FUNCS_EXTRA): Define.
7503 * t-sh64 (LIB2FUNCS_EXTRA): Define.
7504 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7505 (LIB1ASMFUNCS_CACHE): Define.
7506 (LIB2FUNCS_EXTRA): Redefine empty.
7508 2002-04-08 Richard Henderson <rth@redhat.com>
7510 * reorg.c (get_branch_condition): Use reversed_comparison_code.
7512 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7514 * config/m68hc11/larith.asm (__map_data_section): Fix condition
7515 and optimize for size.
7516 (__do_global_ctors): Fix pointer comparison.
7517 (__do_global_dtors): Likewise.
7519 2002-04-09 David S. Miller <davem@redhat.com>
7521 * config/sparc/sparc.c (sparc_extra_constraint_check): New
7522 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
7523 allow reloading pseudos.
7524 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7525 * config/sparc/sparc-protos.h: Declare it.
7527 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7528 unsigned comparison warning.
7529 (output_restore_regs): Mark leaf_function as unused.
7531 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7533 * expr.c (is_aligning_offset): New function.
7534 (expand_expr, case COMPONENT_EXPR): Call it.
7536 2002-04-08 David S. Miller <davem@redhat.com>
7539 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7541 Make init_priority work on Sparc when using GNU ld.
7542 * config/sparc/linux.h, config/sparc/linux64.h,
7543 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7544 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7545 * config/sparc/sol2-gld.h: New file to do the same.
7546 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7547 sparc/sol2-gld.h to tm_file.
7549 PR optimization/4328
7550 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7551 * doc/md.texi: Document it.
7552 * config/sparc/sparc.md (movdi_insn_sp64_novis,
7553 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7554 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7555 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7556 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7558 2002-04-08 Andreas Jaeger <aj@suse.de>
7560 * stmt.c (expand_asm_operands): Revert last patch from Richard
7563 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7565 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7566 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
7568 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7570 * doc/contrib.texi (Contributors): Add David O'Brien.
7572 2002-04-08 Alan Modra <amodra@bigpond.net.au>
7574 * configure.in (auto-build.h): Use target_alias and build_alias
7575 when running configure.
7576 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7577 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7578 * configure: Regenerate.
7580 2002-04-07 David S. Miller <davem@redhat.com>
7582 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7584 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
7587 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7588 generating 32-bit pic code.
7590 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
7592 * cppinit.c (cpp_create_reader): Initialize
7593 discard_comments_in_macro_exp.
7594 (COMMAND_LINE_OPTIONS): Add "-CC" option.
7595 (cpp_handle_option): Handle "-CC" option.
7596 * cpplex.c (save_comment): If saving a C++ comment in
7597 a directive, convert it to a C comment.
7598 (_cpp_lex_direct): Pass second comment start character to
7599 save_comment to indicate comment type.
7600 * cpplib.c (_cpp_handle_directive): If processing
7601 a "#define" directive and discard_comments_in_macro_exp
7602 is false, re-enable saving of comments.
7603 (lex_macro_node): If discard_comments_in_macro_exp is false,
7604 discard any comments before the macro identifier.
7605 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7607 * cppmacro.c (cpp_get_token): If expanding a macro while
7608 processing a directive, discard any comments we might encounter.
7609 (parse_params): If discard_comments_in_macro_exp is false,
7610 ignore comments in the macro parameter list.
7611 * gcc.c (cpp_unique_options): Add "-CC" option.
7612 (option_map): Map "--comments-in-macros" to "-CC".
7613 * doc/cppopts.texi: Document "-CC" option.
7614 * f/lang-specs.h: Add "-CC" option.
7615 * testsuite/gcc.dg/cpp/maccom1.c: New test.
7616 * testsuite/gcc.dg/cpp/maccom2.c: New test.
7617 * testsuite/gcc.dg/cpp/maccom3.c: New test.
7618 * testsuite/gcc.dg/cpp/maccom4.c: New test.
7619 * testsuite/gcc.dg/cpp/maccom5.c: New test.
7620 * testsuite/gcc.dg/cpp/maccom6.c: New test.
7622 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7625 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7627 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7630 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7633 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7634 RTX_UNCHANGING_P for the functions arguments when a tail call
7637 2002-04-06 Jason Merrill <jason@redhat.com>
7639 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7640 (parse_options_and_default_flags): Set them appropriately.
7641 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7643 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
7645 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7648 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7651 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7652 types come in by-reference. Fix typo in comment.
7654 2002-04-05 David S. Miller <davem@redhat.com>
7656 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7657 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7658 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7659 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7661 2002-04-05 David S. Miller <davem@redhat.com>
7663 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7664 are not going to emit return instructions, emit at least a nop
7665 for the sake of sane backtraces.
7667 2002-04-05 Richard Henderson <rth@redhat.com>
7669 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7671 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
7673 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7675 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
7677 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7678 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7679 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7681 2002-04-05 Andreas Schwab <schwab@suse.de>
7683 * c-convert.c: Include c-common.h.
7684 * Makefile.in (c-convert.o): Updated.
7686 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7688 * mklibgcc.in: Use separate libgcc.map for each multilib.
7689 * Makefile.in (distclean): Don't remove libgcc.map here.
7691 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7693 * Makefile.in (s-mlib): Handle --disable-multilib by separate
7694 genmultilib invocation.
7696 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
7698 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7699 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
7700 to num_gprs for symmetry.
7701 * config/mips/mips.c: Adjust accordingly.
7703 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
7705 * c-common.c (truthvalue_conversion): Rename, update.
7706 * c-common.h (c_common_truthvalue_conversion): New.
7707 * c-convert.c (convert): Update.
7708 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7709 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7710 * c-typeck.c (build_binary_op, build_unary_op,
7711 build_conditional_expr): Update.
7712 * fold-const.c (constant_boolean_node, fold): Use langhook.
7713 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7714 * langhooks.h (struct lang_hooks): New hook.
7715 * stmt.c (expand_decl_cleanup): Use langhook.
7716 * tree.h (truthvalue_conversion): Remove.
7718 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7720 2002-04-05 Alan Modra <amodra@bigpond.net.au>
7722 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7723 Add rules to make null object file.
7725 2002-04-04 Jim Blandy <jimb@redhat.com>
7727 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7728 macro formal parameter names.
7730 2002-04-04 David S. Miller <davem@redhat.com>
7732 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7734 2002-04-04 Richard Henderson <rth@redhat.com>
7737 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7738 Support copies into and out of memory. Don't accept allows_reg
7739 and allows_mem as gospel.
7741 2002-04-04 Richard Henderson <rth@redhat.com>
7744 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7745 (write_dependence_p): Likewise.
7747 2002-04-04 Richard Henderson <rth@redhat.com>
7749 * predict.c (estimate_bb_frequencies): Do frequency calculation
7750 with a volatile temporary.
7752 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
7754 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7756 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7759 * final.c (final_start_function): Don't bump profile_label_no here...
7760 (final_end_function): ...but here.
7762 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7764 * config/sparc/sparc.md (pic): New attribute.
7765 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7767 (split after do_builtin_setjmp_setup): New.
7769 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7772 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7775 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7777 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7778 UNITS_PER_WORD for zero sized aggregates.
7780 2002-04-03 David S. Miller <davem@redhat.com>
7782 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7783 one-character spec for this, just use %(link_gcc_c_sequence).
7785 2002-04-03 David S. Miller <davem@redhat.com>
7787 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7790 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7792 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7793 (DWARF_FRAME_RETURN_COLUMN): Move.
7794 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7795 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7796 * pa.c (except.h, predict.h): Include.
7798 (store_reg_modify, set_reg_plus_d): Revise prototypes.
7799 (output_ascii): Add cast.
7800 (store_reg_modify): Revise to add frame notes.
7801 (set_reg_plus_d): Likewise.
7802 (compute_frame_size): Include space for eh data registers in frame if
7803 the current function calls eh_return.
7804 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7805 function calls eh_return. Save eh data registers if the current
7806 function calls eh_return. Fix code to add frame notes. Emit
7807 blockage to prevent insns with frame notes being scheduled in the
7808 delay slot of calls.
7809 (hppa_expand_epilogue): Restore eh data registers and do final stack
7810 adjustment if the current function calls eh_return. Don't add frame
7812 (output_call): Revise for change in length of call insn. Don't do
7813 return pointer adjustment for an unconditional jump in the delay slot
7814 of a call when using frame notes.
7815 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7816 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7817 (ARG_POINTER_CFA_OFFSET): Define.
7818 * pa.md (return_external_pic): New pattern.
7819 (prologue): Correct formatting. Use return_external_pic if current
7820 function calls eh_return.
7821 (call_internal_symref, call_value_internal_symref,
7822 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7823 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7825 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7827 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7828 list of targets to check using "nop" insn.
7829 * configure: Rebuilt.
7831 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7833 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7835 2002-04-03 David S. Miller <davem@redhat.com>
7837 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7838 library sequence passed to the linker.
7839 (LINK_COMMAND_SPEC): Use it.
7840 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7841 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7842 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7844 2002-04-03 Jason Merrill <jason@redhat.com>
7846 * except.c (struct eh_status): Remove protect_list.
7847 (begin_protect_partials, end_protect_partials): Remove.
7848 (add_partial_entry): Remove.
7849 * except.h: Remove prototypes.
7851 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7852 expand_decl_cleanup_eh.
7855 * tree.h (CLEANUP_EH_ONLY): New macro.
7856 * stmt.c (expand_decl_cleanup_eh): New fn.
7857 (expand_cleanups): Check CLEANUP_EH_ONLY.
7858 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7859 Use expand_decl_cleanup_eh.
7860 (expand_stmt): Adjust.
7861 * c-common.h: Adjust prototype.
7863 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7865 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7866 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7867 (cris_target_asm_function_epilogue): Ditto.
7868 (cris_initial_frame_pointer_offset): Ditto.
7869 (cris_simple_epilogue): Ditto.
7870 (cris_expand_builtin_va_arg): Variable-size types come in
7873 2002-04-03 David S. Miller <davem@redhat.com>
7875 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7877 (set_fast_math): Correct 'fsr' type.
7879 2002-04-03 Richard Henderson <rth@redhat.com>
7882 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7883 * toplev.c (check_global_declarations): Use it.
7884 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7885 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7886 (LANG_HOOKS_DECLS): Add it.
7887 * langhooks.c (lhd_warn_unused_global_decl): New.
7888 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7889 * c-objc-common.c (c_warn_unused_global_decl): New.
7890 * c-tree.h (c_warn_unused_global_decl): Declare.
7891 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7893 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
7895 * langhooks-def.h (lhd_set_decl_assembler_name,
7896 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7897 (LANG_HOOKS_INITIALIZER): Update.
7898 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7899 * langhooks.h (struct lang_hooks): New hook.
7900 * tree.c (set_decl_assembler_name): Move to langhooks.c.
7901 (lang_set_decl_assembler_name): Remove.
7902 (init_obstacks): Don't set hook.
7903 (decl_assembler_name): New function.
7904 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7905 (decl_assembler_name): New.
7906 (lang_set_decl_assembler_name): Remove.
7908 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7910 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7911 works properly with .hidden symbols.
7912 * configure: Rebuilt.
7913 * config.in: Rebuilt.
7914 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7915 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7916 properly with .hidden symbols.
7918 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7921 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7924 2002-04-03 Richard Henderson <rth@redhat.com>
7927 * sched-rgn.c (sets_likely_spilled): New.
7928 (sets_likely_spilled_1): New.
7929 (add_branch_dependences): Use it.
7931 2002-04-02 Richard Henderson <rth@redhat.com>
7934 * loop.h (LOOP_FIRST_PASS): New.
7935 * loop.c (strength_reduce): Mind it when deciding to unroll.
7936 * toplev.c (rest_of_compilation): Set it.
7938 2002-04-02 David S. Miller <davem@redhat.com>
7940 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7941 mems_ok_for_ldd_peep when the order of the loads being examined
7943 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7944 existing comment to increase comprehension of this situation.
7946 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7948 * config/sh/sh.md: Don't use union real_extract.
7950 2002-04-02 Richard Henderson <rth@redhat.com>
7952 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7954 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7956 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7957 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7958 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7959 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7960 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7961 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7962 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7963 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7964 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7965 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7966 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7967 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7968 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7969 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7970 Include as many configury headers via tm_file as possible. This
7971 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7972 * config/openbsd-oldgas.h: New file.
7973 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7974 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7975 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7976 config/i386/i386-coff.h, config/i386/i386-interix.h,
7977 config/i386/iscdbx.h, config/i386/linux-aout.h,
7978 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7979 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7980 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7981 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7982 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7983 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7984 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7985 config/i386/vxi386.h: Do not directly include configury headers.
7986 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7987 Directly include configury headers that are no longer automatically
7988 included by the above headers.
7989 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7990 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7991 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7992 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7993 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7994 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7995 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7996 (TARGET_VERSION): Define.
7997 * config/i386/beos-elf.h, config/i386/freebsd.h,
7998 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7999 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
8000 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
8001 config/i386/sco5.h, config/i386/sysv4.h
8002 (TARGET_VERSION): Do not need to protect.
8003 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
8004 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
8005 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
8006 config/i386/i386-interix.h, config/i386/linux-aout.h,
8007 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
8008 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
8009 (YES_UNDERSCORES): Do not define - not needed.
8010 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
8011 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8012 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
8013 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
8014 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
8015 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
8016 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
8017 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
8019 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
8020 Richard Henderson <rth@redhat.com>
8023 * function.c (assign_temp): Accept either type or decl argument.
8024 Detect variables whose size is too large to fit into an integer.
8025 * stmt.c (expand_decl): Pass the decl, not the type.
8027 2002-04-02 David O'Brien <obrien@FreeBSD.org>
8029 * protoize.c: Match include directory usage with cppdefault.c.
8031 2002-04-03 Jeffrey A Law (law@redhat.com)
8032 Hans-Peter Nilsson <hp@bitrange.com>
8034 * combine.c (simplify_comparison): Avoid narrowing a comparison
8035 with a paradoxical subreg when doing so would drop signficant bits.
8037 2002-04-02 Steve Ellcey <sje@cup.hp.com>
8039 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
8040 if POINTERS_EXTEND_UNSIGNED is defined.
8042 2002-04-02 Richard Henderson <rth@redhat.com>
8045 * local-alloc.c (contains_replace_regs): LO_SUM may contain
8048 2002-04-02 Richard Henderson <rth@redhat.com>
8050 * doc/standards.texi: Document required freestanding libc entry points.
8052 2002-04-02 Alan Modra <amodra@bigpond.net.au>
8054 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
8055 associated splitter. Remove MQ constraint.
8056 (ctrdi_internal4): Correct CCmode clobber.
8058 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
8060 * milli64.S ($$dyncall): New function.
8061 * t-linux (LIB1ASMFUNCS): Revise module list.
8062 (LIB1ASMSRC): Use pa/milli64.S.
8064 2002-04-02 Richard Henderson <rth@redhat.com>
8066 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
8067 rename solaris_sys_varargs_h.
8069 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8071 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
8072 the same mode as its component.
8074 2002-04-02 Richard Henderson <rth@redhat.com>
8077 * final.c (this_is_asm_operands): Export.
8078 * output.h (this_is_asm_operands): Declare.
8079 * config/i386/i386.c (print_operand): Error odd asm operands.
8081 2002-04-02 Richard Henderson <rth@redhat.com>
8084 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
8086 2002-04-01 Richard Henderson <rth@redhat.com>
8089 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
8090 * fixinc/fixincl.x: Rebuild.
8092 2002-04-01 Richard Henderson <rth@redhat.com>
8094 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
8095 (atomic_alloc, atomic_free): New.
8096 (SIZE, MASK_FOR, PTR_IN): New.
8097 (emergency_reg_state, emergency_reg_state_free): New.
8098 (emergency_labeled_state, emergency_labeled_state_free): New.
8099 (reg_state_alloced, labeled_state_alloced): New.
8100 (alloc_reg_state, free_reg_state): New.
8101 (alloc_label_state, free_label_state, free_label_states): New.
8102 (push, pop, dup_state_stack, free_state_stack): Use them.
8103 (desc_label_state): Likewise.
8104 (uw_frame_state_for): Free label states and state stack.
8105 (uw_update_reg_address): Eliminate warnings.
8107 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
8109 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
8110 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
8112 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8114 * c-decl.c (grokdeclarator): Update.
8115 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8116 * c-tree.h (c_mark_addressable): New.
8117 * c-typeck.c (default_function_array_conversion, build_unary_op,
8118 build_array_ref, convert_for_assignment): Update.
8119 (mark_addressable): Rename.
8120 * calls.c (try_to_integrate, expand_call): Use langhook.
8121 * expr.c (expand_expr): Use langhook.
8122 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
8123 * langhooks.h (struct lang_hooks): New hook.
8124 * stmt.c (expand_asm_operands): Use langhook.
8125 * tree.h (mark_addressable): Remove.
8127 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8129 2002-04-01 Bob Wilson <bob.wilson@acm.org>
8131 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
8134 2002-04-01 Bob Wilson <bob.wilson@acm.org>
8136 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
8137 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
8139 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8141 * c-common.c (unsigned_conversion_warning, convert_and_check,
8142 unsigned_type, signed_type, shorten_compare,
8143 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
8144 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
8145 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
8147 * c-decl.c (grokdeclarator): Update.
8148 * c-format.c (check_format_types): Update.
8149 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8150 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8151 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
8152 * convert.c (convert_to_integer): Use new hooks.
8153 * expmed.c (make_tree): Use new hooks.
8154 * expr.c (store_expr): Use new hooks.
8155 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
8156 all_ones_mask_p, unextend, fold): Use new hooks.
8157 * langhooks.h (struct lang_hooks_for_types): New hooks.
8158 * tree.h (signed_or_unsigned_type, signed_type,
8159 unsigned_type): Remove.
8161 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8162 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8164 2002-03-31 Richard Henderson <rth@redhat.com>
8166 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
8167 (desc_frgr_mem): Fix reference to f16-f31.
8169 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8171 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
8172 RTVEC_ELT): Const-ify.
8173 * varray.h (VARRAY_CHECK): Const-ify.
8174 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
8175 ggc_mark_rtvec, ggc_mark): Const-ify.
8177 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8179 * diagnostic.c: Include langhooks-def.h.
8180 * Makefile.in (diagnostic.o): Update.
8182 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
8184 * c-common.c (c_unsafe_for_reeval): Rename.
8185 * c-common.h (c_unsafe_for_reeval): Rename.
8186 * c-decl.c (finish_incomplete_decl): Rename.
8187 (c_init_decl_processing): Don't set langhook.
8188 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8189 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8190 * c-objc-common.c (c_objc_common_init): Don't set langhook.
8191 * c-tree.h (finish_incomplete_decl): Rename.
8192 * langhooks-def.h (lhd_unsafe_for_reeval): New.
8193 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8194 (LANG_HOOKS_INITIALIZER): Update.
8195 * langhooks.c (lhd_unsafe_For_reeval): New.
8196 * langhooks.h (struct langhooks): New hooks.
8197 * toplev.c (incomplete_decl_finalize_hook): Remove.
8198 (wrapup_global_declarations): Update.
8199 * tree.c (lang_unsafe_for_reeval): Remove.
8200 (unsafe_for_reeval): Update.
8201 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8204 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8205 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8207 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
8209 * diagnostic.c (print_error_function): Remove.
8210 (default_print_error_function): Rename.
8211 (report_error_function): Update.
8212 * diagnostic.h (print_error_function): Remove.
8213 (default_print_error_function): Remove.
8214 * langhooks-def.h (struct diagnostic_context): Predeclare.
8215 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8216 (LANG_HOOKS_INITIALIZER): Update.
8217 * langhooks.h (struct diagnostic context): Predeclare.
8218 (struct lang_hooks): New hook.
8220 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8222 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8223 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8225 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8226 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8227 of PIC_OFFSET_TABLE_REGNUM thruout.
8228 * config/rs6000/rs6000.md: Likewise.
8229 * config/rs6000/darwin.h: Likewise.
8231 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8233 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8234 unsigned HOST_WIDE_INT, not unsigned int.
8236 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8238 PR middle-end/6096, middle-end/6098, middle-end/6099
8239 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8241 (fill_slots_from_thread): Likewise.
8243 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8245 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8246 floating fields in float regs.
8247 (function_arg_record_value_2): Likewise.
8249 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8251 * config/mmix/mmix.md (define_constants): Remove misleading
8252 FIXME. Add MMIX_fp_rO_OFFSET.
8253 ("nonlocal_goto_receiver"): Don't have stack-frame address of
8254 saved rO as part of the pattern. Remove FIXME.
8255 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
8256 here, at output-time.
8258 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8261 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8263 (output_v9branch): Likewise.
8265 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
8267 * gcc.c: Revert previous patch for now.
8268 * config/i386/djgpp.h: Likewise.
8270 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8272 * config/mmix/crti.asm (_init): Register _fini with atexit.
8273 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8275 2002-03-31 Richard Henderson <rth@redhat.com>
8278 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8279 (ASM_OUTPUT_DEF_FROM_DECLS): New.
8281 2002-03-31 Richard Henderson <rth@redhat.com>
8283 * libgcc2.c (__bb_exit_func): Make static.
8285 * config/alpha/alpha.md (trap): New.
8287 2002-03-31 Richard Henderson <rth@redhat.com>
8289 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8290 promoted argument types; build trap.
8291 (expand_builtin_trap): New.
8292 (expand_builtin): Use it.
8293 * stmt.c (expand_nl_goto_receivers): Likewise.
8294 * expr.h (expand_builtin_trap): Declare.
8295 * libfuncs.h (LTI_abort, abort_libfunc): New.
8296 * optabs.c (init_optabs): Init abort_libfunc.
8298 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
8300 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8301 (LINK_COMMAND_SPEC): ... from here.
8302 (init_gcc_specs): Duplicate it here too, omitting
8303 shared_name in the second copy.
8304 (init_spec): Test for duplicate
8305 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8307 2002-03-30 David S. Miller <davem@redhat.com>
8309 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8310 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8312 2002-03-30 Roger Sayle <roger@eyesopen.com>
8313 Richard Henderson <rth@redhat.com>
8315 * regmove.c (combine_stack_adjustments_for_block): Avoid
8316 emitting a stack adjustment of zero bytes. Let delete_insn
8319 2002-03-30 Richard Henderson <rth@redhat.com>
8321 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8322 (sparc_emitting_epilogue): New.
8323 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8324 * config/sparc/sparc-protos.h: Update.
8325 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8326 (TARGET_SWITCHES): Update.
8327 * config/sparc/sparc.md (return): Remove.
8328 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8329 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8330 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8331 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8332 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8333 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8334 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8335 Remove MASK_EPILOGUE.
8336 * doc/invoke.texi: Update.
8338 2002-03-30 Daniel Berlin <dan@dberlin.org>
8340 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8341 CPP will start the file for us.
8343 2002-03-30 Richard Henderson <rth@redhat.com>
8346 * config/ia64/ia64.c (group_barrier_needed_p): Special case
8347 prologue_allocate_stack.
8348 (ia64_single_set): Use insn codes for recognition of special
8349 cases, not rtl matching.
8350 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8352 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
8354 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8356 2002-03-30 Richard Henderson <rth@redhat.com>
8359 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8360 or -fomit-frame-pointer with profiling.
8361 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8362 (FUNCTION_PROFILER): Do nothing.
8363 (PROFILE_HOOK): New.
8364 * config/sparc/sparc.c (sparc_override_options): Don't check
8365 code models for profiling.
8366 (sparc_function_profiler): Remove.
8367 (sparc_profile_hook): New.
8368 * config/sparc/sparc-protos.h: Update.
8370 2002-03-30 Jakub Jelinek <jakub@redhat.com>
8372 PR optimization/6086
8373 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8374 of SUBREG of volatile MEM or because the MEM was mode dependent,
8375 return CLOBBER instead of unmodified SUBREG.
8377 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
8379 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8380 when not optimizing.
8382 * toplev.c (rest_of_compilation): Cann mark_constant_function
8383 only when optimizing.
8385 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8388 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8389 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8390 (try_optimize_cfg): clear all AUX fields.
8392 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8393 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8394 (ix86_address_cost): Be prepared for SUBREGed registers.
8395 (legitimate_address_p): Accept SUBREGed registers.
8397 2002-03-29 Richard Henderson <rth@redhat.com>
8400 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8402 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8404 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8405 for aggregate and TFmode types.
8407 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8409 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8411 2002-03-29 Richard Henderson <rth@redhat.com>
8414 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8415 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8417 2002-03-29 Richard Henderson <rth@redhat.com>
8420 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8421 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8422 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8423 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8425 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8427 2002-03-29 Dale Johannesen <dalej@apple.com>
8429 * loop.c (combine_movables): Do allow combination of pseudos.
8431 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
8433 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8434 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8435 No functional change except ...
8436 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
8437 * doc/install.texi (*-*-freebsd*): Document port configuration.
8439 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8441 * Makefile.in (convert.o, calls.o, expmed.o): Update.
8442 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8444 * builtin-types.def (BT_PTRMODE): Update.
8445 * c-common.c (type_for_size): Rename c_common_type_for_size.
8446 (type_for_mode): Similarly.
8447 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8449 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8450 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8451 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8453 * c-typeck.c (common_type, comptypes, default_conversion):
8455 * calls.c: Include langhooks.h.
8456 (emit_library_call_value_1): Use new hooks. Avoid redundant
8458 * convert.c: Include langhooks.h
8459 (convert_to_pointer, convert_to_integer): Use new hooks.
8460 * except.c (init_eh): Similarly.
8461 * expmed.c: Include langhooks.h.
8462 (expand_mult_add): Use new hooks.
8463 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8464 try_casesi): Similarly.
8465 * fold-const.c (optimize_bit_field_compare, make_range,
8466 decode_field_reference, fold_truthop, fold): Similarly.
8467 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8468 put_var_into_stack): Similarly.
8469 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8470 LANG_HOOKS_TYPE_FOR_SIZE): New.
8471 (LANG_HOOKS_TYPES_INITIALIZER): Update.
8472 * langhooks.h (lang_hooks_for_types): New hooks.
8473 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8474 * tree.c (get_unwidened, get_narrower): Similarly.
8475 * tree.h (type_for_mode, type_for_size): Remove.
8476 * varasm.c (force_const_mem): Use new hooks.
8477 * utils2.c (nonbinary_modular_operation): Update.
8479 * objc-act.c (handle_impent): Update.
8480 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8483 2002-03-29 Steve Ellcey <sje@cup.hp.com>
8485 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8486 * config/ia64/ia64.c (basereg_operand): New.
8487 * config/ia64/ia64-protos.h (basereg_operand): Declare.
8488 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8490 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8492 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8493 unwind information when frame_pointer_needed.
8494 (mmix_assemble_integer): Tweak wording in comment.
8496 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8498 * Makefile.in (except.o): Update.
8499 * except.c: Include langhooks.h.
8500 (init_eh): Use langhook.
8501 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8502 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8503 (LANG_HOOKS_INITIALIZER): Update.
8504 * langhooks.h (lang_hooks_for_types): New.
8505 (struct lang_hooks): Add it.
8506 * tree.c (make_lang_type_fn, make_lang_type): Remove.
8507 * tree.h (make_lang_type_fn, make_lang_type): Remove.
8509 * alpha/alpha.c: Include langhooks.h.
8510 (alpha_build_va_list): Use langhook.
8511 * d30v/d30v.c: Include langhooks.h.
8512 (d30v_build_va_list): Use langhook.
8513 * i386/i386.c: Include langhooks.h.
8514 (ix86_build_va_list): Use langhook.
8515 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8516 * s390/s390.c: Include langhooks.h.
8517 (s390_build_va_list): Use langhook.
8518 * stormy16/stormy16.c: Include langhooks.h.
8519 (stormy16_build_va_list): Use langhook.
8521 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8524 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8526 (length): Compute variable length for branches/calls/jumps here.
8527 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8528 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8529 define branch_type attribute.
8530 (divsi3_sp32): Maximum length is 6 not 7.
8531 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8532 call_address_untyped_struct_value_sp32,
8533 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8534 * config/sparc/sparc.c (empty_delay_slot): New function.
8535 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8536 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8538 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8540 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8541 nonzero_bits if not needed.
8542 (nonzero_bits) [XOR]: Likewise.
8543 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8544 reg_last_set_mode and mode are both MODE_INT, but not equal.
8545 (record_value_for_reg): Compute reg_last_set_nonzero_bits
8546 in nonzero_bits_mode for MODE_INT modes.
8548 2002-03-28 Richard Henderson <rth@redhat.com>
8551 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8552 to GAS. Correct drift between alternatives.
8554 2002-03-28 Richard Henderson <rth@redhat.com>
8557 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8559 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
8561 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8562 emulation to the linker.
8564 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
8566 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8567 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8569 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
8571 * combine.c (simplify_and_const_int): Make sure to apply mask
8572 when force_to_mode returns a constant integer. PR3311.
8574 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8576 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8578 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8580 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8581 and Objective-C Dialect Options.
8583 2002-03-28 Richard Henderson <rth@redhat.com>
8585 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8586 comparison should be done vs !=0 not >0 return code. Tidy cases.
8588 2002-03-28 Richard Henderson <rth@redhat.com>
8590 * c-decl.c (finish_function): New arg can_defer_p. Pass it
8591 on to c_expand_body.
8592 * c-tree.h (finish_function): Update decl.
8593 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8595 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
8597 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8599 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
8601 * rtlanal.c: Include flags.h
8602 (may_trap_p): Do not mark FP operations if trapping
8603 if !flag_trapping_math
8604 * Makefile.in (rtlanal.o): Add dependency on flag.h
8605 * ifcvt.c (noce_operand_ok): Avoid the lameness.
8607 2002-03-27 Zack Weinberg <zack@codesourcery.com>
8609 * mips.md: Use dconst1, not 1.0, as first argument of
8610 REAL_VALUE_LDEXP. Don't use union real_extract.
8612 2002-03-28 Alan Modra <amodra@bigpond.net.au>
8614 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8615 rather than $target. Heed program_prefix and
8616 program_transform_name. Search for gas in cross-compiler case too.
8617 "test -x" rather than "test -f".
8618 (gcc_cv_ld): Likewise.
8619 (gcc_cv_nm): Heed program_prefix and program_transform_name.
8620 (gcc_cv_objdump): Likewise.
8621 * configure: Regenerate.
8623 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8625 * Makefile.in (attribs.o): Update.
8626 * attribs.c: Include langhooks.h.
8627 (decl_attributes): Use langhook.
8628 * c-decl.c (insert_default_attributes): Rename.
8629 * c-tree.h (c_insert_default_attributes): New.
8630 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8631 (LANG_HOOKS_INITIALIZER): Update.
8632 * langhooks.h (struct lang_hooks): New hook.
8633 * tree.h (insert_default_attributes): Remove.
8635 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8637 2002-03-27 Andreas Schwab <schwab@suse.de>
8639 * config/i386/i386.c (classify_argument): Also check for
8642 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8644 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8647 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
8649 * i960.md (ret): Set PC.
8650 (nonlocal_goto): Fix expander.
8651 * builtins.c (epxand_builin_longjmp): Check that we've emitted
8654 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
8656 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8659 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8661 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8662 assigning to BLOCK_FOR_INSN directly.
8664 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
8666 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8668 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8670 * c-common.c (c_expand_expr): Fix prototype.
8671 * c-common.h (c_expand_expr): Always declare, update.
8672 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8673 * c-objc-common.c (c_objc_common_init): No global hook.
8674 * expr.c (expand_expr): Use langhook.
8675 * expr.h (enum expand_modifier): Conditionally declare.
8676 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8677 (LANG_HOOKS_INITIALIZER): Update.
8678 * langhooks.c (lhd_expand_expr): New.
8679 * langhooks.h (struct lang_hooks): New hook.
8680 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8681 (lang_independent_init): Don't default hook.
8683 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8685 2002-03-27 Richard Henderson <rth@redhat.com>
8688 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8689 TARGET_CONST_GP. Simplify conditions.
8691 2002-03-27 Richard Henderson <rth@redhat.com>
8693 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8694 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8695 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8697 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
8699 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8700 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8701 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8702 Remove unnecessary masks.
8703 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8704 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8705 -mwindows, -mdll switches and their negations.
8707 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8709 * gcc-common.c (lang_mark_false_label_stack): Remove.
8710 * ggc.h (lang_mark_false_label_stack): Similarly.
8712 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
8714 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8716 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8717 or __rtems_ is defined.
8719 2002-03-26 Richard Henderson <rth@redhat.com>
8721 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8722 if a non-trivial load was emitted.
8723 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
8724 in high+extra+low case.
8726 2002-03-26 Richard Henderson <rth@redhat.com>
8728 * config.gcc (sparc*-solaris): Use float_format=sparc.
8730 2002-03-26 Richard Henderson <rth@redhat.com>
8732 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8733 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8734 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8735 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8736 (WINT_TYPE_SIZE): Fix at 32.
8738 2002-03-26 Richard Henderson <rth@redhat.com>
8740 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8741 until after eh landing pad generation.
8742 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8743 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8745 2002-03-26 Richard Henderson <rth@redhat.com>
8747 * expr.h (ADD_PARM_SIZE): One more convert for INC.
8749 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
8751 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
8752 and warning switches.
8753 (cc1_options): Likewise.
8755 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
8757 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8758 Restore more of the signal context. Set no_reg_stack_frame.
8759 * config/ia64/unwind-ia64.c (unw_state_record):
8760 Add no_reg_stack_frame, comments.
8761 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8762 (uw_update_context): Adjust bsp when unwinding from leaf,
8763 but not signal frame.
8765 2002-03-26 David Edelsohn <edelsohn@gnu.org>
8767 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8769 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8771 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8773 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8776 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8777 "Add a pool_range attribute", which was lost during the ARM/Thumb
8780 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8782 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8783 a register into the MAC16 accumulator.
8785 2002-03-26 Andrew Cagney <ac131313@redhat.com>
8787 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8788 (Warning Options): Document -Wswitch-enum.
8789 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
8791 (warn_switch_enum): Define variables.
8792 * flags.h (warn_switch_enum): Declare variables.
8793 * stmt.c (expand_end_case_type): When warn_switch_enum /
8794 -Wswitch-enum, perform switch checks.
8797 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8799 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8800 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8801 (reload_muladdsi_compare0_scratch): Delete.
8803 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8805 * doc/install.texi (*-*-freebsd*): Update.
8807 2002-03-26 Richard Henderson <rth@redhat.com>
8809 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8810 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8812 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8813 types from the normal argument frame.
8815 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8816 variable sized objects by reference.
8817 (sparc_va_arg): Receive them by reference too.
8819 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8821 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8822 code to not restoring global registers.
8824 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8826 * Makefile.in (ggc-common.o): Update.
8827 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8828 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8829 * c-tree.h (c_mark_tree): New.
8830 * ggc-common.c: Include langhooks.h.
8831 (gcc_mark_trees): Use new langhook.
8832 * ggc-callbacks.c: Delete file.
8833 * ggc.h (lang_mark_tree): Remove.
8834 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8835 (LANG_HOOKS_INITIALIZER): Update.
8836 * langhooks.h (struct lang_hooks): New hook.
8838 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8840 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8842 * doc/cpp.texi: Exclude entire Top node from printed manual.
8843 Move option index after directive index. Insert page breaks
8844 before GFDL and concept index. Index environment variables
8845 with command line options.
8846 * doc/cppenv.texi: Use @vtable for environment variable list.
8847 Add paragraph explaining semantics of empty elements in path
8848 variables. Exclude a cross-reference to Fishkill from the
8849 manpage. Remove an unnecessary cross-reference of the entry
8850 right above the referer. Don't use @anchor in text that goes
8852 * doc/cppopts.texi: Cross-reference the environment variables
8853 section, not the specific environment variable, for consistency.
8855 2002-03-25 Richard Henderson <rth@redhat.com>
8857 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8858 anywhere in the block. Don't refer to insns that have been
8859 removed from the chain. Iterate backward through the new insns.
8860 Don't refer to edges that have been removed.
8862 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8864 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8865 test for overflow of constant.
8867 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8870 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8871 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8872 these patterns on arm_archv4.
8874 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
8876 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8879 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8881 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
8882 float_handled, float_handler, float_signal, set_float_handler,
8883 and do_float_handler. Set handler for SIGFPE to crash_signal.
8884 * toplev.h: Don't prototype do_float_handler.
8886 * c-lex.c: Fold parse_float into lex_number. Make warning
8887 about portability of hex float constants more informative, and
8888 don't issue it on top of a syntax error.
8889 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8891 * real.h: Define REAL_VALUE_ABS here...
8892 * simplify-rtx.c: ... not here. Fold check_fold_consts,
8893 simplify_unary_real, simplify_binary_real, and
8894 simplify_binary_is2orm1 into their callers.
8895 * tree.c: Fold build_real_from_int_cst_1 into caller.
8897 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8899 * tsystem.h: Include float.h here...
8900 * libgcc2.c: ... not here.
8902 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
8904 Fixes for: PR bootstrap/3591, target/5676
8905 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8906 defined. Do not disable exceptions or rtti.
8907 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8908 mcore.h. Disable exceptions and rtti, since they are not
8911 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8913 * c-decl.c (maybe_build_cleanup): Remove.
8914 * expr.c (expand_expr): Use langhook.
8915 * langhooks-def.h (lhd_return_null_tree,
8916 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8917 (LANGHOOKS_INITIALIZER): Update.
8918 * langhooks.c (lhd_return_null_tree): New.
8919 * langhooks.h (struct lang_hooks): New hook.
8920 * tree-inline.c (initialize_inlined_parameters): Use langhook.
8921 * tree.h (maybe_build_cleanup): Remove.
8923 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8925 * regrename.c (build_def_use): Move recog_memoized
8926 before extract_insn.
8928 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8931 * expr.c (emit_group_store): Handle storing into CONCAT.
8933 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8935 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8936 corresponding MATCH_DUP.
8938 2002-03-24 Richard Henderson <rth@redhat.com>
8940 * unroll.c (unroll_loop): Zero label_map.
8942 * gcse.c: Include except.h.
8943 * Makefile.in (gcse.o): Update.
8945 2002-03-24 Richard Henderson <rth@redhat.com>
8947 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8948 Do resolve_unique_section before shared data clause.
8950 2002-03-24 Richard Henderson <rth@redhat.com>
8952 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8954 2002-03-24 Richard Henderson <rth@redhat.com>
8956 * recog.c (peephole2_optimize): Split blocks when EH insns are
8957 generated in the middle of a block. Do global life update if
8960 2002-03-24 Richard Henderson <rth@redhat.com>
8962 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8964 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8967 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8968 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8969 (init_dependency_output): Don't make no_output decision here.
8971 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8973 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8974 warn_switch. Update description.
8975 (expand_end_case_type): Call check_for_full_enumeration_handling
8978 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8980 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8981 (m68hc11_split_move): Call it to see if the source and destination
8982 operands use the same direction auto inc/dec mode, otherwise make the
8983 source an offsetable memory operand and generate an add.
8985 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8987 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8988 register for operand 2.
8989 ("*subsi3_zero_extendqi"): Likewise.
8990 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8991 bits so that it is compatible with a pop.
8992 ("*andhi3_gen"): Likewise.
8993 ("xorhi3"): Likewise.
8995 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8997 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8999 (cpp_post_options): ... not here.
9001 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
9002 Aldy Hernandez <aldyh@redhat.com>
9004 Removal of separate preprocessor cpp0.
9006 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
9007 cpp0, install-common): Update.
9008 * c-common.c (flag_preprocess_only): New.
9009 (c_common_init): Preprocess for -E.
9010 * c-common.h (flag_preprocess_only): New.
9011 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
9012 * c-objc-common.c (c_init_decl_processing): Exit quickly
9013 for NULL return from c_common_init.
9014 * cpplib.h (cpp_preprocess_file): New.
9015 * cppmain.c (main, general_init, pfile, progname): Remove.
9016 (do_preprocessing): Rename cpp_preprocess_file, don't call
9017 cpp_finish. Don't close stdout here.
9018 (setup_callbacks): Update prototype.
9019 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
9021 * tradcpp.c (main): Ignore -quiet.
9023 * lang-specs.h (default_compilers): Preprocess with cc1obj.
9025 2002-03-24 Richard Henderson <rth@redhat.com>
9027 PR optimization/5742
9028 * machmode.def: Add inner mode field to complex modes.
9029 * config/mips/mips.c (mips_function_value): Always define. Add
9030 new argument to handle libcalls.
9031 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
9032 (FUNCTION_VALUE): Likewise.
9033 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
9034 * config/mips/mips-protos.h: Update.
9036 2002-03-23 Richard Henderson <rth@redhat.com>
9038 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
9039 * config/sparc/sparc-protos.h: Update.
9040 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
9042 2002-03-23 Richard Henderson <rth@redhat.com>
9044 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
9045 _start or _init begins the text segment.
9047 2002-03-23 David Edelsohn <edelsohn@gnu.org>
9049 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
9050 not HOST_WIDEST_INT.
9051 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
9053 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
9056 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
9057 operand argument to output_return_instruction.
9058 * arm.c (arm_print_operand, case 'd'): If the operand is
9059 const_true_rtx then just return.
9060 (arm_print_operand, case 'D'): If the operand is const_true_rtx
9063 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9065 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
9066 (Warning Options): Document -Wswitch-default.
9067 * toplev.c (W_options): Add -Wswitch-default. Update comment on
9069 (warn_switch_default): Define variable.
9070 (warn_switch): Update comment.
9071 * flags.h (warn_switch_default): Declare variable.
9072 (warn_switch): Update comment.
9073 * stmt.c (expand_end_case): Check for and, when
9074 warn_switch_no_default, warn of a missing default case.
9076 2002-03-23 Alan Modra <amodra@bigpond.net.au>
9078 * real.h (N): Special case 128 bit doubles.
9080 * combine.c (simplify_comparison): When widening modes, ignore
9081 sign extension on CONST_INTs.
9083 2002-03-22 Bob Wilson <bob.wilson@acm.org>
9085 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
9086 passed to adjust_address. Fix comment formatting.
9089 2002-03-22 Zack Weinberg <zack@codesourcery.com>
9091 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
9092 Always make REAL_VALUE_TYPE a struct containing an array of
9093 HOST_WIDE_INT, not a double. Tidy up the code deciding how
9094 big it is. Don't declare or use union real_extract.
9096 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
9097 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
9098 (print_operand), config/arm/arm.c (output_move_double),
9099 config/arm/arm.md (consttable_4, consttable_8),
9100 config/romp/romp.c (output_fpops), config/s390/s390.h
9101 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
9102 (xtensa_output_literal): Don't use union real_extract.
9104 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
9105 (sfmode_constant_to_ulong), config/ns32k/merlin.h
9106 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
9107 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
9108 (PRINT_OPERAND): Don't use local version of union
9111 * config/convex/convex.c (check_float_value), config/vax/vax.c
9112 (vax_float_literal), config/m88k/m88k.md (divdf3),
9113 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
9114 config/pdp11/pdp11.c (output_move_quad): Don't do host
9115 arithmetic on target floating point quantities.
9117 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
9118 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
9120 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
9121 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
9123 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
9124 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
9126 * print-rtl.c (print_rtx): Disable code which needs
9127 floating-point emulator.
9128 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
9129 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
9130 depending on HOST_FLOAT_FORMAT to be defined properly.
9132 * config/1750a/1750a.c (get_double, float_label): Delete.
9133 (print_operand): Delete huge commented-out chunk. Use
9134 REAL_VALUE_TO_DECIMAL.
9135 * config/1750a/1750a-protos.h: Delete prototypes of deleted
9137 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
9139 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
9140 Use REAL_VALUE_TO_DECIMAL as ELF version does.
9141 * config/m88k/m88k.c (real_power_of_2_operand,
9142 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
9143 real_extract out of the union; run the input through
9144 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
9145 from that into the union.
9146 * config/pdp11/pdp11.c (output_move_double): Rearrange
9147 parentheses to make automatic indenter happy.
9149 * doc/tm.texi (Cross-compilation): Rename node to "Floating
9150 Point" and rewrite to describe current situation. Also adjust
9151 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
9153 * doc/rtl.texi: Adjust cross reference.
9155 2002-03-22 Bob Wilson <bob.wilson@acm.org>
9157 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
9158 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
9159 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
9160 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
9161 prevent use of sp as a reload register.
9162 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
9163 non_acc_reg_operand.
9164 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
9165 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
9166 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
9167 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
9169 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
9171 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
9172 * cpplex.c (unterminated): Delete.
9173 (parse_string): No string literal may extend over multiple
9174 lines. Suppress the error when preprocessing assembly.
9175 * cppmain.c (scan_translation_unit): Strings are single-line.
9177 * doc/cpp.texi: Update to match.
9179 2002-03-22 Jakub Jelinek <jakub@redhat.com>
9181 PR optimization/5854
9182 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
9184 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
9185 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
9186 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
9187 const0 if scratch register was not allocated.
9188 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
9189 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
9191 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
9192 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
9193 with GEN_INT (...) everywhere. Remove constraints in define_split
9195 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9196 require scratch register for setting 0 into regs/non-pushable memory.
9198 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
9200 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9201 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9203 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
9205 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
9206 * cppinit.c (cpp_create_reader): On by default.
9207 (cpp_handle_option): Handle -W[no-]endif-labels.
9208 (cpp_post_options): Also enable if -pedantic.
9209 * cpplib.c (do_else): Use it.
9210 (do_endif): Likewise.
9211 * doc/cppopts.texi: Document new option.
9212 * doc/invoke.texi: Document new option.
9214 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
9216 * config/i386/i386.c, config/i386/i386.md: Change all occurences
9217 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9219 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
9221 * flow.c (calculate_global_regs_live): Clear aux fields of
9224 2002-03-22 Jakub Jelinek <jakub@redhat.com>
9226 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9227 REG or MEM subregs, pass rtx * instead of rtx to it.
9228 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9229 rtx * instead of rtx to alter_subreg.
9230 * config/m32r/m32r.c (gen_split_move_double): Likewise.
9231 * config/pj/pj.c (pj_output_rval): Likewise.
9233 2002-03-22 Richard Henderson <rth@redhat.com>
9236 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9237 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9238 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9239 (ia64_expand_prologue): Look at int_regs, not words, for number
9240 of incomming int regs.
9242 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
9244 * expr.c (expand_expr): A RESULT_DECL is part of a call.
9246 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
9248 * toplev.c (flag_loop_optimize, flag_crossjumping):
9249 New static variables.
9250 (rest_of_compilation): Conditionalize crossjumping and
9252 (parse_options_and_default_flags): Default loop_optimize and
9254 (lang_independent_options): Add -fcrossjumping and -floop-optimize
9255 * invoke.texi (crossjumping, loop-optimize): Document.
9257 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9259 * real.c (eiisneg): Move outside #ifdef NANS.
9261 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
9263 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9264 frequencies match; avoid match on different loop depths.
9265 (try_crossjump_to_bb): Kill tests that no longer brings time
9267 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9269 (split_edge): Likewise.
9271 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9274 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9275 * cfgrtl.c: Include insn-config.h
9276 (split_block) Dirtify block in presence of conditional execution
9278 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9280 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9281 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9282 (function_arg): Constify CUMULATIVE_ARGS.
9283 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9284 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9285 (UNITS_PER_DOUBLE): New macro.
9286 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
9287 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
9288 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
9289 fp_regs and stack_words.
9290 (EABI_FLOAT_VARARGS_P): New macro.
9291 * config/mips/mips.c (struct mips_arg_info): New.
9292 (mips_arg_info): New function.
9293 (function_arg_advance): Use it. Add adjustment instructions here
9294 rather than in function_arg.
9295 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
9296 for VOIDmode at the beginning of the function.
9297 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
9298 (function_arg_pass_by_reference): Likewise.
9299 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9300 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9301 (mips_va_start): Likewise. Use the new stack_words field of
9302 CUMULATIVE_ARGS to set up overflow area. Reformat.
9303 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
9304 doubles and other types, aligning the overflow pointer for non-doubles
9305 too. Remove some code duplication. Replace hard-coded constants.
9307 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9309 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9310 (CLASS_UNITS): Undefine.
9311 (CLASS_MAX_NREGS): Use FP_INC.
9312 * config/mips/mips.c (compute_frame_size): Likewise.
9313 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9315 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
9317 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9318 prototype, and handle lexing numbers and identifiers.
9319 (parse_identifier): Update to new form of parse_slow.
9320 (parse_number): Fast path only, use parse_slow otherwise.
9321 (_cpp_lex_direct): Update calls to parse_number.
9323 2002-03-21 DJ Delorie <dj@redhat.com>
9325 * bb-reorder.c (make_reorder_chain_1): Protect against
9326 when redundant edges are omitted.
9327 * predict.c (dump_prediction): Likewise.
9329 2002-03-21 Richard Henderson <rth@redhat.com>
9332 * fixinc/inclhack.def (solaris_stdio_tag): New.
9333 * fixinc/fixincl.x: Regenerate.
9335 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
9338 * c-typeck.c (process_init_element): Flag non-static
9339 initialization of a flexible array member as illegal.
9341 2002-03-22 Alan Modra <amodra@bigpond.net.au>
9343 * config/rs6000/t-linux64: New.
9344 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9345 t-ppccomm. Use t-rs6000 and t-linux64.
9346 (powerpc64-*-gnu* <tmake_file>): Likewise.
9347 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9348 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9349 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9351 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
9353 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9354 flag_really_no_inline instead of optimize == 0.
9356 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9358 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9360 * flags.h (flag_really_no_inline): New.
9362 * c-common.c (c_common_post_options): Initialize
9363 flag_really_no_inline.
9365 * toplev.c (flag_really_no_inline): New.
9367 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9369 * config/avr/avr.md (length): Fix length computation for
9370 conditional branches.
9372 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
9374 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9375 sdbout.o, profile.o): Update.
9376 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9378 * c-common.h (gettags): Move here from tree.h.
9379 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9380 insert_block, getdecls, kept_level_p, global_bindings_p): New.
9381 * dbxout.c (dbxout_init): Use getdecls langhook.
9382 * expr.c (expand_expr): Use insert_block langhook.
9383 * fold-const.c: Include langhooks.h.
9384 (fold_range_test, fold_binary_op_with_conditional_arg,
9385 fold): Use global_bindings_p langhook.
9386 * integrate.c (expand_inline_function): Use insert_block langhook.
9387 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9388 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9389 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9390 LANG_HOOKS_GETDECLS): New.
9391 (LANG_HOOKS_INITIALIZER): Update.
9392 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9394 * langhooks.h (struct lang_hooks_for_decls): New.
9395 (struct lang_hooks): Update.
9396 * profile.c: Include langhooks.h.
9397 (output_func_start_profiler): Use new langhooks.
9398 * sdbout.c: Include langhooks.h.
9399 (sdbout_init, sdbout_finish): Use getdecls langhook.
9400 * stmt.c: Include langhooks.h.
9401 (expand_fixup, fixup_gotos): Use new langhooks.
9402 * stor-layout.c: Include langhooks.h.
9403 (variable_size): Use global_bindings_p langhook.
9404 * toplev.c (compile_file): Use getdecls langhook.
9405 * tree-inline.c (remap_block): Use insert_block langhook.
9406 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9407 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9409 2002-03-21 Richard Henderson <rth@redhat.com>
9411 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9412 constants in .data when -fpic.
9414 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9416 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9419 2002-03-21 Tom Tromey <tromey@redhat.com>
9421 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
9423 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9425 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9427 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9429 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
9430 Richard Henderson <rth@redhat.com>
9433 * c-common.c (c_expand_expr): Preserve result of a statement
9434 expression if needed.
9436 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9439 * genrecog.c (maybe_both_true_mode): Remove.
9440 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9441 * machmode.def (Pmode): Likewise.
9443 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
9445 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9446 (nonlocal_mentioned_p_1): New function.
9447 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9448 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9449 (mark_constant_function): Recognize pure functions.
9450 * rtl.h (global_reg_mentioned_p): New prototype.
9451 * rtlanal.c (global_reg_mentioned_p,
9452 global_reg_mentioned_p_1): New function.
9454 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9456 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9458 * fixinc/fixincl.x: Regenerate.
9460 2002-03-20 Jason Merrill <jason@redhat.com>
9462 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9464 2002-03-20 Michael Meissner <meissner@redhat.com>
9466 * doc/invoke.texi (Optimize Options): Document that -O2 sets
9469 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9471 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9472 ".literal_position" directive before the constant pool.
9474 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9476 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9477 Add Craig Rodrigues.
9478 Add Brad Lucier to testers.
9480 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9483 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9485 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9486 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9487 instead of insn_extract.
9489 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9492 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9494 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9495 stmt if some case has been output.
9497 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9500 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9501 movsfcc_1, movdfcc_1): Add %O2.
9502 * config/i386/i386.c (print_operand): Handle %ON.
9503 Print . before float condition codes in Sun as cmov syntax.
9504 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9505 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9508 2002-03-20 Philip Blundell <pb@nexus.co.uk>
9510 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9511 return instruction if PC was popped.
9513 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9515 * config/xtensa/xtensa.md: Remove unused type attributes.
9516 (adddi_carry, subddi_carry): Change type attribute to "multi".
9518 2002-03-19 Dale Johannesen <dalej@apple.com>
9520 PR optimization/5999, middle-end/5731
9521 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9522 multiplications by reciprocals.
9524 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
9526 * Makefile.in: Update.
9527 * c-common.c: Include langhooks.h.
9528 (inline_forbidden_p): Use new hook.
9529 * diagnostic.c: Include langhooks.h.
9530 (format_with_decl, announce_function,
9531 default_print_error_function): Use new hook.
9532 * dwarf2out.c (dwarf2_name): Use new hook.
9533 * function.c: Include langhooks.h.
9534 (init_function_start): Use new hook.
9535 * langhooks-def.h (lhd_decl_printable_name): New.
9536 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9537 (LANGHOOKS_INITIALIZER): Update.
9538 * langhooks.c (lhd_decl_printable_name): New.
9539 * langhooks.h (struct lang_hooks): New hook.
9540 * toplev.c (decl_name, decl_printable_name): Remove.
9541 (open_dump_file): Use new hook.
9542 (process_options): Remove old hook.
9543 * tree.h (decl_printable_name): Remove.
9545 * objc-act.c (objc_init): Remove old hook.
9546 (objc_printable_name): Export.
9547 * objc-act.h (objc_printable_name): New.
9548 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9550 2002-03-19 Jim Blandy <jimb@redhat.com>
9552 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9553 the start_source_file debug hook, not the current line number.
9555 2002-03-19 Richard Henderson <rth@redhat.com>
9557 * flow.c (EH_USES): Provide default.
9558 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9559 * doc/tm.texi (EH_USES): New.
9561 * config/ia64/ia64.c (ia64_eh_uses): New.
9562 * config/ia64/ia64-protos.h: Update.
9563 * config/ia64/ia64.h (EH_USES): New.
9565 2002-03-19 Richard Henderson <rth@redhat.com>
9567 * varasm.c (output_constant_def): Fix stupid typo.
9569 2002-03-19 Richard Henderson <rth@redhat.com>
9572 * except.c (current_function_has_exception_handlers): New.
9573 * except.h: Declare it.
9574 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9575 Combine tests that disable all sibcalls for the function.
9577 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
9579 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9582 2002-03-19 Richard Henderson <rth@redhat.com>
9585 * config/ia64/ia64.c: Revert 2002-03-01 patch.
9586 * config/ia64/ia64.h (INIT_EXPANDERS): New.
9588 2002-03-19 Jim Blandy <jimb@redhat.com>
9590 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9591 name, even if the replacement list contains no tokens, as required
9594 2002-03-19 Jason Merrill <jason@redhat.com>
9596 * varasm.c (globalize_decl): Get the name from the RTL, not
9597 DECL_ASSEMBLER_NAME.
9599 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9601 2002-03-19 Bob Wilson <bob.wilson@acm.org>
9603 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9604 subdi_carry): Define.
9606 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9608 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9609 about -fpic/-fPIC if extra_warnings set.
9611 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9613 * expr.c (expand_expr): Sign-extend CONST_INT generated from
9614 TREE_STRING_POINTER.
9615 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9617 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9619 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9620 in favor of SP if FRAME_POINTER_REQUIRED is false.
9622 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
9624 * emit-rtl.c (gen_int_mode): New function.
9625 * rtl.h: Prototype for it.
9626 * combine.c (make_extraction, simplify_comparison), expmed.c
9627 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9628 (convert_modes, store_field), optabs.c (expand_fix),
9629 simplify-rtx.c (neg_const_int, simplify_unary_real),
9631 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9632 Use it instead of GEN_INT (trunc_int_for_mode (...)).
9634 2002-03-19 Jakub Jelinek <jakub@redhat.com>
9637 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9638 convert_parm_for_inlining.
9639 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9641 * langhooks-def.h: Likewise.
9642 * objc/objc-lang.c: Likewise.
9643 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9645 * tree-inline.c (initialize_inlined_parameters):
9646 Call convert_parm_for_inlining lang hook if needed.
9647 * c-typeck.c (c_convert_parm_for_inlining): New function.
9648 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9650 2002-03-18 Mark Mitchell <mark@codesourcery.com>
9652 * calls.c (precompute_arguments): Do not assume that temporaries
9653 can be destroyed after expanding the argument.
9654 (expand_call): Likewise.
9656 2002-03-15 Eric Christopher <echristo@redhat.com>
9658 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9659 Fix register preference on last change.
9660 * config/mips/mips.c (mips_return_in_memory): New function.
9661 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9662 * config/mips/mips-protos.h: Declare.
9663 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9664 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9666 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
9668 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9670 (anddi3, iorsi3): Likewise.
9672 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9673 use %gprel for symbols that are going to be placed in linkonce
9676 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9677 RETURN_ADDRESS_POINTER_REGNUM to $ra.
9678 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9679 not needed. Disregard leaf_function_p().
9680 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9681 mips16 frame pointer.
9682 * config/mips/mips.md (store ra): Only to small SP offsets.
9683 2001-08-22 Graham Stott <grahams@redhat.com>
9684 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9685 return a REG rtx for the return address register.
9687 2002-03-18 Bob Wilson <bob.wilson@acm.org>
9689 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9690 constant-pool addresses as "mode-dependent".
9691 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9693 2002-03-18 Jakub Jelinek <jakub@redhat.com>
9696 * expr.c (emit_group_load): Use extract_bit_field if
9697 needed for CONCAT arguments.
9699 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
9702 * arm.md (tablejump): Make this a define_expand. For PIC add the
9703 offset to the base of the table.
9704 (thumb_tablejump): Matcher for Thumb tablejump insn.
9705 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9706 as the difference of two labels.
9707 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9708 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9710 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9711 * arm.c (get_jump_table_size): If the table is not in the text
9712 section, return zero.
9714 2002-03-18 Bernd Schmidt <bernds@redhat.com>
9716 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9718 (arm_reload_out_hi): Use gen_lowpart instead of
9719 gen_rtx_SUBREG to access QImode components.
9720 * config/arm/arm.md: Disable zero_extend split for QImode
9721 subregs in BIG_ENDIAN mode.
9722 (storehi_bigend): Match use of least significant byte.
9723 (storeinthi): Remove extraneous SUBREG.
9724 Add missing construction of operands[2].
9725 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9726 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9727 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9729 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
9731 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9734 2002-03-17 Richard Henderson <rth@redhat.com>
9736 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9739 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9741 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9742 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9744 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9746 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9748 * predict.c (estimate_bb_frequencies): Delete unused variables.
9750 2002-03-17 Richard Henderson <rth@redhat.com>
9752 * config/ia64/ia64.c (ia64_attribute_table): Move before
9753 targetm definition. Make static.
9755 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
9757 * c-common.h (yyparse, c_common_parse_file): New.
9758 * c-lang.c: Include c-common.h.
9759 (LANG_HOOKS_PARSE_FILE): Redefine.
9760 * c-lex.c: Include c-common.h.
9761 (yyparse): Rename c_common_parse_file. Call yyparse.
9762 * c-parse.in (yyparse): Remove macro.
9763 * c-tree.h (yyparse_1): Remove.
9764 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9765 (LANG_HOOKS_INITIALIZER): Update.
9766 * langhooks.h (struct lang_hoooks): New hook parse_file.
9767 * toplev.c (compile_file): Use parse_file hook.
9768 * tree.h (yyparse): Remove.
9769 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9771 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9773 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9774 float_truncate, not fix.
9775 ("*truncdfsf2_real"): Ditto.
9776 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9778 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9780 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
9782 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9783 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
9784 where appropriate. Make the second reference to
9785 leaf_function_p a function call, as intended. Reindented.
9787 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9788 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9790 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9791 add register to non-constant into sp.
9793 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9794 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9795 (mips16_gp_pseudo_rtx): Lose.
9796 (INIT_EXPANDERS): Deleted.
9797 * config/mips/mips.c (mips_init_machine_status): New.
9798 (mips_free_machine_status): New.
9799 (mips_mark_machine_status): New.
9800 (override_options): Set them.
9801 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9802 (struct machine_function): ... new. Replaced all references.
9803 (mips_add_gc_roots): Don't mark them.
9804 (embedded_pic_fnaddr_reg): New, extracted from...
9805 (embedded_pic_offset): ... here.
9806 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9809 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9811 * cppinit.c: Revert -MD removal.
9813 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9815 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9816 soft registers by default for 68HC12.
9817 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9818 when compiling with -fomit-frame-pointer.
9819 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9820 (expand_epilogue): Likewise.
9821 (m68hc11_gen_rotate): Use exg when rotating by 8.
9823 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9825 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9826 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9827 (splits): Remove unused add splits.
9828 ("*addhi3_68hc12"): Tune constraints.
9829 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9830 constant fits in 8-bits and D is dead use abx/aby instructions.
9831 ("*addhi3"): Remove extern declaration of ix_reg.
9832 ("*subsi3"): Optimize and provide new split.
9833 ("subhi3"): Cleanup.
9834 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9835 (arith splits): For 68hc12 save the address register on the stack
9836 and do the arithmetic operation with a pop.
9838 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9840 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9841 allocating QImode in address registers.
9842 ("*movqi_m68hc11"): Likewise.
9844 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9846 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9848 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9850 * cppinit.c (print_help): Display -MD and -MMD.
9851 Don't display usage string. Update assertion syntax and
9853 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9854 (cpp_handle_option): Update.
9856 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9858 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9859 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9860 and define it so that regardless of target CPU size,
9861 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9862 of "int" rather than "long."
9864 2002-03-15 Richard Henderson <rth@redhat.com>
9866 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9869 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9871 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9872 ("tstqi" split): Avoid using memory for tstqi on address register.
9873 (splits): Remove constraints.
9874 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9875 ("cmpdf", "cmpsf"): Remove since not used.
9876 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9877 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9879 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9881 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9882 ("neghi2"): Tighten constraints.
9883 ("one_cmplsi2"): Optimize and simplify split.
9884 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9886 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9888 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9889 and split of AND operation to clear the upper bits.
9890 ("*logicalsi3_zextqi"): Likewise.
9891 ("*logicallhi3_zexthi_ashift8"): Likewise.
9892 ("*logicalsi3_silshr16"): Likewise.
9893 ("logicalsi3_silshl16"): Likewise.
9894 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9896 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9898 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9899 (m68hc11_indirect_p): New function.
9900 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9901 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9903 (asm_print_register): Likewise.
9904 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9905 (m68hc11_indirect_p): Declare.
9906 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9907 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9908 (TARGET_SWITCHES): New option -mrelax.
9909 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9911 ("iorsi3", "xorsi3"): Likewise.
9912 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9913 ("*andhi3_mem"): New to handle destination in memory with bclr
9914 and a scratch register.
9915 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9916 ("*andhi3_const"): New when operand2 is constant.
9917 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9918 ("*andhi3_gen"): Cleanup of the old "andhi3".
9919 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9920 ("xorqi3"): Update constraints.
9922 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9924 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9925 for reg_equiv_memory_loc when the operand is a register that does
9926 not get a hard register (stack location).
9927 (tst_operand): After reload, accept all memory operand.
9928 (symbolic_memory_operand): Fix detection of symbolic references.
9929 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9930 accept symbols and any constant.
9932 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9934 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9935 note on the insn that sets the soft frame register.
9936 (must_parenthesize): ix and iy are also reserved names.
9937 (print_operand_address): One more place where parenthesis are required
9938 to avoid confusion with register names.
9939 (m68hc11_gen_movhi): Allow push of stack pointer.
9940 (m68hc11_check_z_replacement): Fix handling of parallel with a
9942 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9943 the replacement register is.
9944 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9945 and D8_REGS classes.
9946 (MODES_TIEABLE_P): All modes are tieable except QImode.
9948 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9950 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9951 (___subdi3): Likewise.
9952 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9953 (__map_data_section): Optimize 68hc11 case.
9955 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9957 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9958 than a shift to avoid adding a register with itself.
9959 (m68hc11_memory_move_cost): Take into account NO_REGS.
9960 (m68hc11_register_move_cost): Update and use memory move cost
9962 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9963 it gives more opportunities to cse to optimize.
9964 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9965 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9967 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9969 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9970 * c-common.def (CLEANUP_STMT): New tree node.
9971 * c-common.h (CLEANUP_DECL): New macro.
9972 (CLEANUP_EXPR): Likewise.
9973 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9974 * expr.c (expand_expr): Tidy.
9975 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9976 * tree-inline.c (initialize_inlined_parameters): Clean up
9977 new local variables.
9979 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9982 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9983 before movrXX only, use reg_overlap_mentioned_p.
9984 Only special case NE if just one insn can be generated.
9986 2002-03-15 Jason Merrill <jason@redhat.com>
9988 * varasm.c (assemble_variable): Call resolve_unique_section before
9989 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
9992 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9995 * arm.md (split pattern for thumb shiftable immediates): Add comment
9996 explaining non-obvious test.
9998 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
10001 * arm.md (movaddr, movaddr_insn): Delete.
10003 2002-03-15 Jason Merrill <jason@redhat.com>
10005 * toplev.c (wrapup_global_declarations): Clarify variable handling.
10006 -fkeep-static-consts doesn't apply to comdats.
10008 2002-03-14 Richard Henderson <rth@redhat.com>
10010 * c-decl.c: Include c-pragma.h.
10011 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
10012 (finish_function): Tidy.
10013 * c-pragma.c: Include c-common.h.
10014 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
10015 (handle_pragma_weak): Use them.
10016 (init_pragma): Register pending_weaks.
10017 * c-pragma.h (maybe_apply_pragma_weak): Declare.
10018 * print-tree.c (print_node): Print DECL_WEAK.
10019 * varasm.c (mark_weak_decls): Remove.
10020 (remove_from_pending_weak_list): Remove.
10021 (add_weak): Remove.
10022 (asm_emit_uninitialised): Call globalize_decl for weak commons.
10023 (weak_decls): Make a tree_list.
10024 (declare_weak): Cons weak_decls directly.
10025 (globalize_decl): Remove weak_decls elements directly.
10026 (weak_finish): Simplify weak_decls walk. Don't weaken unused
10027 symbols. Don't pretend to handle aliases.
10028 (init_varasm_once): Update weak_decls registry.
10029 * Makefile.in: Update dependencies.
10031 2002-03-14 Richard Henderson <rth@redhat.com>
10034 * config/ia64/ia64.c: Include tm_p.h last.
10035 (gen_nop_type): Remove duplicate definition.
10036 (cycle_end_fill_slots): Set sched_data for second L slot.
10037 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
10038 (nop_cycles_until): Fix typos.
10040 2002-03-15 Jakub Jelinek <jakub@redhat.com>
10042 PR optimization/5891
10043 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
10045 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
10047 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
10048 descriptors correctly.
10050 2002-03-14 Michael Meissner <meissner@redhat.com>
10052 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
10053 100, allowing MAX_UNROLLED_INSNS to be overridden.
10055 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
10058 * unroll.c (params.h): Include.
10059 (MAX_UNROLLED_INSNS): Delete, now in params.h.
10061 * doc/invoke.texi (--param max-unroll-insns): Document.
10063 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
10065 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
10067 * arm.md: Fix warnings about constraints in peepholes and splits.
10069 2002-03-14 Zack Weinberg <zack@codesourcery.com>
10071 * cpphash.h (struct lexer_state): Remove line_extension member.
10072 * cpplib.c (dequote_string, do_linemarker): New functions.
10073 (linemarker_dir): New data object.
10074 (DIRECTIVE_TABLE): No longer need to interpret #line in
10075 preprocessed source. Delete obsolete comment about return
10076 values of handlers.
10077 (end_directive, directive_diagnostics, _cpp_handle_directive):
10078 Don't muck with line_extension.
10079 (directive_diagnostics): No need to issue warnings for
10081 (_cpp_handle_directive): Issue warnings for linemarkers here,
10082 when appropriate. Dispatch linemarkers to do_linemarker, not
10084 (do_line): Code to handle linemarkers split out to do_linemarker.
10085 Convert escape sequences in filename argument, both places.
10087 * cppmacro.c (quote_string): Rename cpp_quote_string and
10088 export. All callers changed.
10089 * cpplib.h (cpp_quote_string): Prototype.
10090 * cppmain.c (print_line): Call cpp_quote_string on to_file
10091 before printing it.
10093 * doc/cpp.texi: Document that escapes are now interpreted in
10094 #line and in linemarkers, and that non-printing characters are
10095 converted to octal escapes when linemarkers are generated.
10097 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
10099 * emit-rtl.c (try_split): Use delete_insns.
10100 * recog.c (split_all_insns): Fix terminating condition.
10102 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
10103 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10106 * arm.c (arm_output_epilogue): Fix floating-point register save
10107 adjustment when using a frame pointer.
10109 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
10111 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
10112 * config/mips/mips.c (compute_frame_size): Retrofit them here.
10113 (save_restore_insns, mips_expand_epilogue): And here.
10114 (build_mips16_call_stub): And here.
10115 (mips_function_value): Use the new macros to decide whether a single
10116 or complex float can be returned in floating-point registers. Return
10117 a parallel rtx in the complex case.
10119 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
10121 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
10122 call after liveness analysis.
10124 * recog.c (split_insn): Use delete_insn_and_edges.
10126 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
10127 instructions to have branch prediction notes.
10128 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
10130 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
10132 * configure.in: Don't pass -Wno-long-long to a ADA compiler
10133 that doesn't support it.
10134 * configure: Regenerate.
10136 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10139 * config/sparc/sparc.md (normal_branch, inverted_branch,
10140 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10141 inverted_fp_branch): Adjust calls to output_cbranch.
10142 Set length attribute.
10143 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
10144 output_v9branch. Set length attribute.
10145 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
10147 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
10148 (output_cbranch): Likewise. Handle far branches.
10149 (output_v9branch): Handle far branches.
10150 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
10152 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
10153 noov_compare64_op predicates.
10155 2002-03-13 Jason Merrill <jason@redhat.com>
10157 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
10158 into the function and constify it.
10159 * gthr-dce.h, gthr-solaris.h: Likewise.
10161 2002-03-13 David Edelsohn <edelsohn@gnu.org>
10163 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
10164 * config/rs6000/rs6000.c (rs6000_va_arg): Use
10165 std_expand_builtin_va_arg if not ABI_V4.
10167 2002-03-13 Jason Merrill <jason@redhat.com>
10169 * varasm.c (globalize_decl): New fn.
10170 (assemble_start_function): Use it.
10171 (asm_emit_uninitialized): Use it.
10172 (assemble_alias): Use it.
10173 (assemble_variable): Use it.
10175 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
10177 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
10178 2002-03-12 internal visibility change.
10179 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
10180 visibility into SYMBOL_REF_FLAG.
10182 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
10184 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
10185 VOIDmode operand. Add compile-time optimization for constant results.
10187 2002-03-12 Jason Merrill <jason@redhat.com>
10189 * c-typeck.c (convert_for_assignment): Don't allow conversions
10190 between pointers and references. Only allow lvalues to convert to
10193 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
10195 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10196 before prologue, to avoid scheduling problems.
10198 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10200 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10201 (ELIMINABLE_REGS): Add sfp->sp.
10202 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10204 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10206 PR optimization/5892
10207 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10209 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10211 * loop.c (basic_induction_var): Don't call convert_modes if mode
10212 classes are different.
10214 2002-03-12 Richard Henderson <rth@redhat.com>
10216 PR optimization/5901
10217 * function.c (reposition_prologue_and_epilogue_notes): Position
10218 the markers after/before the last/first insn not deleted.
10220 2002-03-12 Richard Henderson <rth@redhat.com>
10222 PR optimization/5878
10223 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10224 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10225 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10227 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10228 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10229 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10231 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10232 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10233 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10234 also. Don't set it if not flag_pic.
10235 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10236 to be INVALID_REGNUM when not used.
10238 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
10240 * expmed.c (store_bit_field): Reset alias set for memory.
10241 (extract_bit_field): Same.
10243 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10245 * c-common.c (c_tree_code_type, c_tree_code_length,
10246 c_tree_code_name, add_c_tree_codes): Delete.
10247 * c-common.h (add_c_tree_codes): Delete.
10248 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10250 * c-objc-common.c (c_objc_common_init): Don't call
10251 add_c_tree_codes, instead set lang_unsafe_for_reeval.
10252 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10253 objc_tree_code_name, add_objc_tree_codes): Delete.
10254 (objc_init): Don't call add_objc_tree_codes.
10255 * objc/objc-lang.c (tree_code_type, tree_code_length,
10256 tree_code_name): Define.
10257 * toplev.c (lang_independent_init): Don't set
10258 tree_code_length[IDENTIFIER_NODE].
10259 * tree.c (tree_code_type, tree_code_length, tree_code_name):
10260 Delete definitions, moved to language front-ends.
10261 * tree.def (IDENTIFIER_NODE): Hardwire the length.
10262 * tree.h (tree_code_type, tree_code_length, tree_code_name):
10264 (tree_code_length): Change type to unsigned char.
10266 2002-03-12 Richard Henderson <rth@redhat.com>
10268 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10269 internal visibility change.
10271 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10273 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10274 validize_mem() instead of change_address to avoid clobbering
10277 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
10279 * c-lex.h (position_after_whitespace): Remove.
10281 2002-03-12 Jakub Jelinek <jakub@redhat.com>
10283 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10284 (lex_string): Use unsigned char pointers.
10286 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
10288 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10289 is not a valid memory_operand.
10291 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10293 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10294 * config/xtensa/lib1funcs.asm: Fix copyright to include
10295 special case for libgcc files.
10296 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10297 (__divsi3): Likewise.
10298 (__umodsi3): Likewise.
10299 (__modsi3): Likewise.
10300 * config/xtensa/lib2funcs.S: Fix copyright to include
10301 special case for libgcc files.
10303 2002-03-12 Tom Rix <trix@redhat.com>
10305 * collect2.c (resolve_lib_name): Move outside of
10306 OBJECT_FORMAT_COFF ifdef.
10307 (ignore_library): Same.
10309 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10311 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10313 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10315 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10316 to function_section before writing out the constant pool.
10318 2002-03-12 David Edelsohn <edelsohn@gnu.org>
10320 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10322 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10324 2002-03-12 Alan Modra <amodra@bigpond.net.au>
10326 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10327 (adddi3): Likewise.
10330 (cmpsi splitter): Likewise.
10331 (modsi3): Fail if <= 0.
10332 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10333 redundant test when HOST_BITS_PER_WIDE_INT != 32.
10334 (reg_or_sub_cint64_operand): Likewise.
10335 (num_insns_constant_wide): Optimize sign extension.
10336 (rs6000_legitimize_address): Likewise.
10338 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
10340 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10341 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10343 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
10345 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10346 address calculation.
10348 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
10350 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10351 scratch register to DImode / TImode.
10352 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10353 register used does not overlap the target.
10355 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10357 * Makefile.in (debug.o): Depend on debug.h.
10358 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10359 * debug.c (do_nothing_debug_hooks): Likewise.
10360 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10361 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10362 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10363 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10364 * dwarfout.c (dwarf_debug_hooks): Likewise.
10365 * integrate.c (output_inline_function): Likewise.
10366 * objc/objc-act.c (synth_module_prologue): Likewise.
10367 * sdbout.c (sdb_debug_hooks): Likewise.
10368 * toplev.c (debug_hooks): Likewise.
10369 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10371 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10373 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10374 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10375 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10376 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10377 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10378 * defaults.h (POINTER_SIZE): Define.
10379 * doc/tm.texi (POINTER_SIZE): Document default.
10381 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10383 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10385 2002-03-11 Richard Henderson <rth@redhat.com>
10387 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10388 if rebuild_label_notes_after_reload.
10390 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
10392 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
10393 emit pic register load if "internal" visibility.
10394 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10395 (cris_expand_builtin_va_arg): Do all computations on trees.
10397 2002-03-11 Richard Henderson <rth@redhat.com>
10399 * rtlanal.c: Include recog.h.
10400 (keep_with_call_p): Fix thinko.
10401 * Makefile.in (rtlanal.o): Update dependencies.
10403 2002-03-11 Chris Meyer <cmeyer@gatan.com>
10405 * genflags.c (gen_insn): Use IS_VSPACE.
10406 * genoutput.c (output_insn_data): Likewise.
10407 (process_template): Likewise.
10409 2002-03-11 Richard Henderson <rth@redhat.com>
10411 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10413 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
10415 * Makefile.in: Update.
10416 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10417 Update documentation.
10418 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10419 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10421 2002-03-11 Zack Weinberg <zack@codesourcery.com>
10423 * Makefile.in: Give texi2pod its input file as a command line
10424 argument, not on stdin.
10426 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
10427 Daniel Berlin <dan@dberlin.org>
10429 C++ alias analysis improvement.
10430 * alias.c (record_component_aliases): Record aliases for base
10433 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10435 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10437 2002-03-11 Douglas B Rupp <rupp@gnat.com>
10439 * toplev.c (vms_fopen): Remove, not needed.
10441 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10443 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10445 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10446 for FP, already done later.
10448 * toplev.c (debug_args): Add entry for VMS_DEBUG.
10449 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10451 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
10453 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10454 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10455 LARGEST_EXPONENT_IS_NORMAL for the given mode.
10456 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10457 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10458 (ediv, emul, eldexp, esqrt): Likewise.
10459 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10460 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10461 (saturate): New function.
10462 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10463 (make_nan): Use a saturation value instead of a NaN if
10464 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
10465 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10466 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
10467 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
10468 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10469 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10470 !ROUND_TOWARDS_ZERO.
10471 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10472 (ROUND_TOWARDS_ZERO): Document.
10474 2002-03-11 Andreas Jaeger <aj@suse.de>
10476 * cfg.c (dump_flow_info): Remove unused variable.
10478 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
10480 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10481 computations on trees.
10483 2002-03-10 Richard Henderson <rth@redhat.com>
10486 * reload.c (copy_replacements_1): New.
10487 (copy_replacements): Use it to recurse through the rtx.
10489 2002-03-10 Richard Henderson <rth@redhat.com>
10491 * loop.c (strength_reduce): Compute number of iterations as
10492 unsigned HOST_WIDE_INT.
10494 2002-03-10 Richard Henderson <rth@redhat.com>
10496 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10497 to move away from the end of the block.
10499 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
10501 PR preprocessor/5899
10502 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10504 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10506 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10508 * attribs.c (decl_attributes): Fix signed/unsigned warning.
10510 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
10512 * config/mmix/mmix.c: Improve comments.
10513 (mmix_target_asm_function_prologue): Drop variable
10514 empty_stack_frame. Don't allocate unused slot above fp.
10515 (mmix_target_asm_function_epilogue): Mirror prologue changes.
10516 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10517 brace in first column.
10518 (enum reg_class): Ditto.
10519 (FIRST_PARM_OFFSET): Now 0.
10520 (USER_LABEL_PREFIX): Remove #if 0:d definition.
10522 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10524 * combine.c (make_extraction): Fix error in last change.
10526 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10528 * c4x.c (c4x_fp_reglist): Const-ify.
10529 * cris.c (cris_print_operand): Likewise.
10530 * i386.c (ix86_va_arg): Likewise.
10531 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10532 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10533 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10534 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10535 * mcore.h (regno_reg_class): Likewise.
10536 * mips.c (gen_int_relational): Likewise.
10537 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10538 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10539 * pdp11.c (move_costs): Likewise.
10540 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10541 * s390.c (s390_branch_condition_mnemonic, regclass_map):
10543 * s390.h (regclass_map): Likewise.
10544 * sh.c (shift_amounts): Likewise.
10545 * sh.md (rotlsi3): Likewise.
10547 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10549 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10550 (ne0+5): Use new clobber to generate proper shift pattern.
10551 Patch by Michael Matz <matz@kde.org>.
10553 2002-03-09 Andreas Schwab <schwab@suse.de>
10555 * gcc.c (validate_all_switches): Also handle `%W{...}'.
10557 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10559 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10561 2002-03-09 Jakub Jelinek <jakub@redhat.com>
10564 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10565 even for non-representable constants.
10567 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10569 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10570 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10571 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10572 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10573 (pop_function_context): Compute MAY_SHARE parameter for
10575 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10576 (gen_mem_addressof): Call fixup_var_refs with new parm.
10578 * combine.c (make_extraction): Don't make extension of CONST_INT.
10580 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10582 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10583 in o32 and o64 ABIs.
10584 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10585 but getting fixed-size structs passed in registers regardless of
10586 padding in o32 and o64 ABIs.
10588 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10589 offset before loading address of argument passed by transparent
10592 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10594 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10596 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10598 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10599 marker such that registers after it are saved.
10601 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10603 * sparc.c (arith_4096_operand): Fix error in last change.
10605 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10607 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10608 defaults for MEABI.
10610 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10612 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10615 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10617 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10619 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
10621 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10622 removed; fix return value.
10623 * combine.c (combine_instructions): Dirtify blocks where we failed to
10624 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10625 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10627 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10629 * gcse.c (insert_insn_end_bb): Fix typo in last change.
10631 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
10633 * recog.c (peephole2_optimize): Re-distribute EH edges.
10635 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
10637 * expr.c (expand_expr): Use unsave lang hook.
10638 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10639 (LANG_HOOKS_INITIALIZER): Update.
10640 * langhooks.h (struct lang_hooks): New hook unsave.
10641 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10642 (unsave_expr_1): Remove unused lang_unsave_expr_now.
10643 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
10644 (unsave_expr_now): Remove.
10645 * tree.h (unsave_expr_now, lang_unsave,
10646 lang_unsave_expr_now): Remove.
10649 2002-03-08 Andreas Jaeger <aj@suse.de>
10651 * flow.c (propagate_block_delete_insn): Remove unused variable.
10653 2002-03-08 Kazu Hirata <kazu@hxi.com>
10655 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10656 insn length for memory load/store.
10658 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
10660 * doc/install.texi (--with-libiconv-prefix): Document.
10662 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
10664 * doc/sourcebuild.texi: Fix typo.
10666 2002-03-08 Jakub Jelinek <jakub@redhat.com>
10669 * builtins.c (std_expand_builtin_va_arg): Do all computations on
10672 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10674 * rtl.c (copy_most_rtx): Move from here ...
10675 * emit-rtl.c (copy_most_rtx): ... to here.
10677 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10679 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10680 SUBTARGET_CPP_SIZE_SPEC.
10681 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10683 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10685 2002-03-07 Matt Hiller <hiller@redhat.com>
10687 * gensupport.c (first_dir_md_include): Renamed from include;
10688 change all references.
10689 (last_dir_md_include): Renamed from last_include; change all
10691 (init_md_reader): Unconditionally initialize base_dir whether or
10692 not filename is a relative path.
10694 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
10696 * config/fp-bit.c (_unord_f2): Compile it in even if
10697 US_SOFTWARE_GOFAST is enabled.
10699 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10700 NULL_RTX. Set all HFmode operations as NULL_RTX.
10701 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10702 NULL_RTX, try reversing the comparison and the operands.
10704 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10706 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10707 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10710 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
10712 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10714 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10716 * basic-block.h (fixup_abnormal_edges): Declare.
10717 * reload1.c (fixup_abnormal_edges): New function.
10718 * reg-stack.c (convert_regs): Use it.
10720 * gcse.c (insert_insn_end_bb): Handle trapping insns.
10722 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10724 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
10726 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10727 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10728 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10729 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10730 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10731 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10732 unless x and y could be infinite.
10733 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10734 Check that the common type of both arguments is a real, even for
10735 targets without unordered comparisons. Allow an integer argument
10736 to be compared against a real.
10737 (expand_tree_builtin): Use expand_unordered_cmp.
10738 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10739 * cse.c (fold_rtx): Likewise. Fix indentation.
10740 * fold-const.c (fold_real_zero_addition_p): New.
10741 (fold): Use it, and the new HONOR_... macros.
10742 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10743 * jump.c (reversed_comparison_code_parts): After searching for
10744 the true comparison mode, use HONOR_NANS to decide whether it
10745 can be safely reversed.
10746 (reverse_condition_maybe_unordered): Remove IEEE check.
10747 * simplify-rtx.c (simplify_binary_operation): Use the new macros
10748 to decide which simplifications are valid. Allow the following
10749 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10750 and (a - -b) to (a + b).
10751 (simplify_relational_operation): Use HONOR_NANS.
10752 * doc/tm.texi: Document the MODE_HAS_... macros.
10754 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10756 * combine.c (simplify_comparison): If simplifying a logical shift
10757 right and compare with constant, force the comparison to unsigned.
10759 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
10761 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10763 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10765 (alt_reg_names): Remove % for vrsave.
10767 2002-03-06 Richard Henderson <rth@redhat.com>
10769 PR optimization/5844
10770 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
10771 if used indicates we've already emitted one copy of an operand.
10772 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10773 (gen_split): Supply a non-null used.
10775 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10777 * reload1.c (reload): Unshare all rtl after reload is done.
10779 * simplify-rtx.c (simplify_plus_minus): Do not abort,
10780 but simply fail if the expression is too complex to simplify.
10781 (simplify_gen_binary): Handle simplify_plus_minus failures.
10783 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
10785 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10786 consistently call delete_trivially_dead_insns after CSE and GCSE;
10787 fix DFI_life dumping; do jump threading after liveness; do crossjumping
10788 after liveness2; update comment in last crossjumping.
10789 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10791 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
10793 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10794 after completing fast dead code elimination.
10796 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10799 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
10801 * version.c: Fix misplaced leading blanks on first line.
10803 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10805 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10807 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10809 * cfgcleanup.c (mentions_nonequal_regs): New function.
10810 (thread_jump): Use it.
10811 * toplev.c (rest_of_compilation): Run jump threading after
10814 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10816 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10819 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10821 * predict.c (estimate_bb_frequencies): Do not reload the
10822 frequencies from notes.
10824 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10826 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10827 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10829 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10830 delete_noop_moves): Return indeger.
10831 * flow.c (ndead): New variable.
10832 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10833 BB argument; update callers.
10834 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10835 (life_analysis): Do not call purge_all_dead_edges.
10836 (update_life_info): Return number of deleted insns; print statistics.
10837 (update_life_info_in_dirty_blocks): likewise.
10838 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10839 return number of insns deleted.
10841 * cse.c: Include timevar.h
10842 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10843 iterate until stabilizes; print statistics; return number of killed
10845 * Makefile.in: (cse.o): Add timevar.h dependency
10846 * rtl.h (delete_trivially_dead_insns): New.
10847 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10848 * toplev.c (rest_of_compilation): Update callers.
10850 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10851 (try_optimize_cfg): Do not update liveness.
10852 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10853 removal stabilizes; use delete_trivially_dead_insns.
10855 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10857 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10859 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10860 callbacks when processing assembly language.
10862 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10864 * pa.h (ASM_FILE_END): Define.
10865 * som.h (ASM_FILE_END): Delete.
10867 * pa.c (function_arg): Don't pass floats in general registers in
10868 indirect calls if TARGET_ELF32.
10870 2002-03-05 Richard Henderson <rth@redhat.com>
10872 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10874 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
10876 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10878 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10880 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10881 -r command line. Don't hide any symbols if not building
10884 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
10886 * cfg.c (dump_flow_info): Warn about profile mismatches.
10887 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10888 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10890 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10892 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10893 wide volatile memory by parts.
10895 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10897 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10900 2002-03-05 Richard Henderson <rth@redhat.com>
10902 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10904 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10906 * toplev.c (documented_lang_options): Document more
10907 language-specific options.
10908 * doc/invoke.texi (Warning Options): Correct documentation for
10909 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10910 * c-decl.c (c_decode_option): Use a table to handle warning options.
10912 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
10914 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10915 parameter to mmix_encode_section_info.
10916 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10917 relocatably. Always produce ELF, not mmo if linking relocatably.
10918 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10919 first is non-zero, don't add symbol prefix.
10920 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10921 prototype accordingly.
10923 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10925 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10927 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10929 * configure.in: Increase required makeinfo version to 4.1.
10930 * configure: Regenerate.
10932 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10934 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10937 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10939 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10940 * doc/invoke.texi: Fix @math uses.
10942 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10944 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10947 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10949 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10950 (powerpc-*-eabisimaltivec*): Same.
10952 * config/rs6000/t-ppcendian: New.
10954 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10956 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10957 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10958 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10960 2002-03-03 Richard Henderson <rth@redhat.com>
10962 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10964 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10966 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10967 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10968 tree.c, config/m68k/m68k.c:
10969 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10970 REAL_ARITHMETIC blocks unconditional. Delete some further
10971 #ifdef blocks predicated on REAL_ARITHMETIC.
10972 * flags.h, toplev.c: Delete remaining references to
10973 flag_pretend_float.
10975 * doc/invoke.texi: Remove documentation of -fpretend-float.
10976 * doc/tm.texi: Describe the various REAL_* macros as provided by
10977 real.h, not by the target configuration files.
10979 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10980 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10981 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10982 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10983 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10984 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10985 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10986 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10987 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10988 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10989 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10990 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10991 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10992 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10993 config/xtensa/xtensa.h:
10994 Do not define, undefine, or mention in comments any of
10995 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10996 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10997 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10998 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10999 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
11000 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
11001 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
11002 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
11003 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
11005 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11007 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
11008 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
11009 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
11010 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
11011 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
11012 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
11014 * defaults.h (BITS_PER_WORD): Define.
11015 * doc/tm.texi (BITS_PER_WORD): Document default value.
11017 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
11018 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
11019 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
11021 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11023 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
11024 lieu of explicit sizeof/sizeof.
11025 * i386.c (override_options, ix86_init_mmx_sse_builtins,
11026 ix86_expand_builtin): Likewise.
11027 * mips.c (mips_add_gc_roots): Likewise.
11028 * mmix.c (mmix_output_condition): Likewise.
11029 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
11030 altivec_init_builtins): Likewise.
11031 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
11032 * cppexp.c (Nsuff, parse_number): Likewise.
11033 * cppinit.c (builtin_array_end): Likewise.
11034 * gcc.c (n_default_compilers, process_command): Likewise.
11035 * genpreds.c (output_predicate_decls): Likewise.
11036 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
11037 * lcm.c (N_ENTITIES): Likewise.
11038 * stor-layout.c (set_sizetype): Likewise.
11040 2002-03-03 Richard Henderson <rth@redhat.com>
11042 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
11043 for types or labels.
11045 2002-03-03 Richard Henderson <rth@redhat.com>
11047 * c-decl.c (start_decl): Initialized variables are not common.
11049 2002-03-02 Per Bothner <per@bothner.com>
11051 * gcc.c (option_map): Suport new --bootclasspath option.
11052 --CLASSPATH is now just an alias for --classpath.
11054 2002-03-02 Richard Henderson <rth@redhat.com>
11056 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
11057 load if "internal" visibility.
11058 * doc/extend.texi: Document visibility meanings.
11060 2002-03-02 Richard Henderson <rth@redhat.com>
11062 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
11063 to functions as well.
11065 2002-03-02 Richard Henderson <rth@redhat.com>
11067 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
11068 (handle_visibility_attribute): Don't call assemble_visibility.
11069 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
11070 without asmspec. Invoke assemble_alias when needed.
11071 * varasm.c (maybe_assemble_visibility): New.
11072 (assemble_start_function, assemble_variable, assemble_alias): Use it.
11074 2002-03-02 Richard Henderson <rth@redhat.com>
11076 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
11077 invoke ENCODE_SECTION_INFO with first call flag.
11079 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
11080 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
11081 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
11082 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
11083 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
11084 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11085 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
11086 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
11087 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
11088 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
11089 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11090 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
11091 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
11092 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
11093 config/mcore/mcore-protos.h, config/mcore/mcore.c,
11094 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
11095 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
11096 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11097 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
11098 config/sh/sh.h, config/sparc/sparc.h,
11099 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
11100 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
11101 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
11102 FIRST argument. As needed, examine it and do nothing.
11104 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
11105 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11106 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
11108 * config/arm/t-pe (pe.o): Add dependencies.
11110 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11112 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
11113 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
11114 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
11115 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
11116 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
11117 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
11118 * defaults.h (BITS_PER_UNIT): Define.
11119 * doc/tm.texi (BITS_PER_UNIT): Document default value.
11121 2002-03-02 Kazu Hirata <kazu@hxi.com>
11123 * config/h8300/h8300-protos.h: Add a prototype for
11124 compute_a_shift_length.
11125 * config/h8300/h8300.c (h8300_asm_insn_count): New.
11126 (compute_a_shift_length): Likewise.
11127 (h8300_adjust_insn_length): Do not adjust insn length of shift
11129 * config/h8300/h8300.md (anonymous shift patterns): Use
11130 compute_a_shift_length.
11132 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11134 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
11135 trunc_int_for_mode.
11137 * emit-rtl.c (offset_address): Call update_temp_slot_address.
11139 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11141 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
11142 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
11143 * flags.h (flag_zero_initialized_in_bss): Declare.
11144 * toplev.c (flag_zero_initialized_in_bss): New flag.
11145 (lang_independent_options): Add flag_zero_initialized_in_bss.
11146 * tree.c (initializer_zerop): New function.
11147 * tree.h (initializer_zerop): Declare.
11148 * varasm.c (assemble_variable): If we can emit bss, put zero
11149 initializers in the bss section.
11151 2002-03-02 Alan Modra <amodra@bigpond.net.au>
11153 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
11154 like more than one symbol per .weak directive.
11156 2002-03-01 Richard Henderson <rth@redhat.com>
11158 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
11159 adjust argument_pointer by pretend_args_size.
11160 (ia64_va_start): Adjust va_start address by -pretend_args_size.
11162 2002-03-01 Kazu Hirata <kazu@hxi.com>
11164 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
11166 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
11168 * toplev.c (rest_of_compilation): Delete dead jumptables before
11170 * flow.c (delete_dead_jumptables): Make global.
11171 * rtl.h (delete_dead_jumptables): Declare.
11173 2002-03-01 David Edelsohn <edelsohn@gnu.org>
11175 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
11176 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
11177 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
11179 2002-03-01 Kazu Hirata <kazu@hxi.com>
11181 * config/h8300/h8300-protos.h: Fix formatting.
11182 * config/h8300/h8300.c: Likewise.
11183 * config/h8300/h8300.h: Likewise.
11185 2002-03-01 Kazu Hirata <kazu@hxi.com>
11187 * config/h8300/h8300.c (print_operand): Support 16-bit
11188 constant addresses.
11189 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
11191 2002-02-28 Richard Henderson <rth@redhat.com>
11193 * expmed.c (store_bit_field): Prevent generation of CONCATs;
11194 pun complex values as integers; use gen_lowpart instead of
11196 (extract_bit_field): Likewise.
11198 2002-03-01 Alan Modra <amodra@bigpond.net.au>
11199 David Edelsohn <edelsohn@gnu.org>
11201 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11202 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11203 (SUPPORTS_WEAK): Likewise.
11204 * output.h (add_weak): Add tree param.
11205 * varasm.c (add_weak): Likewise. Save decl.
11206 (struct weak_syms): Add decl field.
11207 (mark_weak_decls): New function.
11208 (init_varasm_once): ggc_add_root mark_weak_decls.
11209 (assemble_start_function): Use ASM_WEAKEN_DECL.
11210 (assemble_variable): Likewise.
11211 (assemble_alias): Likewise.
11212 (declare_weak): Pass decl to add_weak.
11213 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11214 (remove_from_pending_weak_list): Declare and define for
11216 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11217 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11218 * defaults.h (SUPPORTS_WEAK): Likewise.
11219 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11220 .weak for code sym. Do emit .size for descriptor sym.
11221 (ASM_DECLARE_FUNCTION_SIZE): Define.
11222 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11223 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
11224 .lglobl unless TARGET_XCOFF. Formatting fixes.
11225 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11226 .weak for code sym.
11227 (HANDLE_PRAGMA_WEAK): Remove.
11228 (ASM_WEAKEN_LABEL): Remove.
11229 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11231 2002-03-01 Jason Merrill <jason@redhat.com>
11233 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11234 (TARGET_EXPR_CLEANUP): New macro.
11236 2002-02-28 Steve Ellcey <sje@cup.hp.com>
11238 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11239 to take ptr_extend into account as third type of extension.
11240 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11241 fields used by SUBREG_PROMOTED_UNSIGNED_P.
11242 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11243 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11244 * calls.c (precompute_arguments): Use new macro.
11245 (expand_call): Ditto.
11246 * combine.c (nonzero_bits): Ditto.
11247 (record_promoted_value): Ditto.
11248 * expr.c (store_expr): Ditto.
11249 (expand_expr): Ditto.
11250 * function.c (assign_parms): Ditto.
11252 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
11254 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11255 override -shared and -shared-libgcc.
11257 2002-02-28 David O'Brien <obrien@FreeBSD.org>
11259 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11261 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
11264 2002-02-28 Richard Henderson <rth@redhat.com>
11266 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11267 4 cycle latency from MM producers.
11268 (ia64_internal_sched_reorder): Likewise with pipeline flush.
11270 2002-02-28 Jakub Jelinek <jakub@redhat.com>
11272 * mklibgcc.in: Don't use GNU make extension.
11274 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11276 * c-parse.in (STATIC): New terminal.
11277 (scspec): New non-terminal. Update productions accordingly.
11278 (program): Remove bogus ifc / end ifc.
11279 (array_declarator): Simplify production using STATIC.
11281 2002-02-28 Jim Meyering <meyering@lucent.com>
11283 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11284 \a still means TARGET_BELL.
11286 2002-02-28 Richard Henderson <rth@redhat.com>
11288 * haifa-sched.c (sched_emit_insn): New.
11289 (schedule_block): Use last_scheduled_insn to track last insn.
11290 * sched-int.h (sched_emit_insn): Prototype.
11291 * config/ia64/ia64.c (last_issued): Remove.
11292 (ia64_variable_issue): Don't set it.
11293 (nop_cycles_until): Use sched_emit_insn.
11295 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
11297 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11298 extended constants.
11300 2002-02-28 Kazu Hirata <kazu@hxi.com>
11302 * config/h8300/h8300.c: Fix formatting.
11303 * config/h8300/h8300.h: Likewise.
11305 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
11307 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11308 which may overwrite the high byte of the frame pointer.
11310 2002-02-28 Bo Thorsen <bo@suse.de>
11312 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11313 (STARTFILE_SPEC): Add 64 bit files.
11314 (ENDFILE_SPEC): Likewise.
11316 2002-02-28 Jason Merrill <jason@redhat.com>
11318 * c-decl.c (finish_function): Only warn about missing return
11319 statement with -Wreturn-type.
11321 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
11323 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11325 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11326 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11328 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
11330 * basic-block.h (BB_REACHABLE): Renumber.
11331 (BB_DIRTY, BB_NEW): New flags.
11332 (clear_bb_flags): Declare.
11333 (update_life_info_in_dirty_blocks): Declare.
11334 * cfg.c (clear_bb_flags): New function.
11335 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11336 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11337 reorder_insns, emit_insn_after): Mark block as dirty.
11338 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11339 (update_life_info_in_dirty_blocks): New function.
11340 * recog.c (apply_change_group): Dirtify block.
11342 * cse.c (cse_insn): Reorder emitting of jump insn to keep
11344 * gcse.c (delete_null_pointer_checks): Likewise.
11346 * toplev.c (dump_file_index): Move cse2 after bp,
11348 (dump_file_info): Similary.
11349 (rest_of_compilation): Avoid most of CFG rebuilds;
11350 do first if converision after null pointer checks, do cse2
11351 after branch prediction; avoid full liveness rebuild after
11352 initializing subregs.
11353 * invoke.texi (-d options): Document -du, renumber.
11355 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11356 (notice_new_block): Do not set BB_UPDATE_LIFE.
11357 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11358 merge_blocks_move_successor_nojumps, merge_blocks,
11359 try_crossjump_to_edge): Likewise.
11360 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11361 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11362 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11363 (merge_of_block): Do not use life_data_ok.
11364 (find_if_case_1): Do not use SET_UPDATE_LIFE.
11365 (if_convert): Use BB_DIRTY mechanizm to update life.
11366 * lcm.c (optimize_mode_switching): Update
11367 update_life_info_in_dirty_blocks
11369 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11371 * Makefile.in (integrate.o): Update.
11372 * c-decl.c (copy_lang_decl): Rename.
11373 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11374 * integrate.c: Include langhooks.h.
11375 (copy_decl_for_inlining): Update to use langhook.
11376 * langhooks-def.h (lhd_do_nothing_t,
11377 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11378 (LANG_HOOKS_INITIALIZER): Update.
11379 * langhooks.c (lhd_do_nothing_t): New.
11380 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11381 * tree.h (copy_lang_decl): Remove.
11383 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11385 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
11387 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11388 POST_DEC, and POST_MODIFY.
11390 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11392 * c-typeck.c (digest_init): Remove unused parameter; all
11395 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
11397 * expmed.c (expand_shift): Correctly test for low part of a
11400 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
11402 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11403 insn UIDs with insn addresses.
11405 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11407 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11408 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11409 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11410 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11411 gcc.c, toplev.c: Delete code implementing -traditional mode.
11413 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11414 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11415 Document removal of -traditional mode for compilation, and
11416 remove documentation only relevant to that mode.
11418 * config/nextstep.h, config/ptx4.h, config/svr4.h,
11419 config/convex/convex.h, config/d30v/d30v.h,
11420 config/i386/dgux.h, config/i386/osf1elf.h,
11421 config/i386/osfelf.h, config/i386/osfrose.h,
11422 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11423 config/m68k/hp310.h, config/m88k/dgux.h,
11424 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11425 config/m88k/m88k.h, config/m88k/openbsd.h,
11426 config/mips/abi64.h, config/mips/osfrose.h,
11427 config/mips/svr4-5.h, config/mips/svr4-t.h,
11428 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11429 config/stormy16/stormy16.h: Remove all references to
11430 -traditional from target specs. Delete all mention of the
11431 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
11432 delete a couple of commented-out definitions of
11433 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11436 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11437 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11439 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11441 * mklibgcc.in: Don't use \n in a line subject to
11442 interpretation by echo.
11444 2002-02-27 Graham Stott <grahams@redhat.com>
11446 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11449 * loop.c (prescan_loop): Handle PARALLEL.
11451 * unroll.c (loop_iterations): Return 0 if the add_val for
11454 * final.c (output_operand_lossage): Constify PFX_STR.
11456 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11458 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
11460 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11461 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11463 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
11465 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11467 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
11469 * cpplex.c (_cpp_lex_token): Handle directives in macro
11471 * cpplib.c (_cpp_handle_directive): Save and restore state
11472 if parsing macro args when entering a directive.
11473 * cppmacro.c (collect_args): No need to handle directives
11474 in macro arguments.
11475 (enter_macro_context, replace_args): Use the original macro
11476 definition in case it was redefined whilst collecting arguments.
11478 * cpp.texi: Update.
11480 2002-02-26 David Edelsohn <edelsohn@gnu.org>
11482 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11483 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11484 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11486 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11487 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11488 (load_toc_v4_PIC_2): Same.
11490 2002-02-26 Alan Modra <amodra@bigpond.net.au>
11492 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11494 2002-02-26 Richard Henderson <rth@redhat.com>
11496 * config/alpha/alpha.md (ashldi_se): Re-enable.
11498 2002-02-26 Richard Henderson <rth@redhat.com>
11500 * config/alpha/alpha.c (alpha_encode_section_info): Examine
11501 MODULE_LOCAL_P; improve commentary.
11503 2002-02-26 Zack Weinberg <zack@codesourcery.com>
11505 * doc/cpp.texi: Clarify documentation of relationship between
11506 #line and #include.
11508 2002-02-26 Kazu Hirata <kazu@hxi.com>
11510 * config/h8300/h8300-protos.h: Update the prototype for
11511 compute_logical_op_length. Add the prototype for
11512 compute_logical_op_cc.
11513 * config/h8300/h8300.c (compute_logical_op_length): Figure out
11514 code from operands.
11515 (compute_logical_op_cc): New.
11516 * config/h8300/h8300.md: Combine all the logical op patterns
11517 in HImode and SImode. Use compute_logical_op_cc.
11519 2002-02-26 Kelley Cook <kelleycook@comcast.net>
11521 * config/i386/i386.c (print_operand): Don't append ATT-style
11522 length suffixs to x87 opcodes when in Intel mode.
11524 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
11526 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11527 (init_emit_once): Update calls.
11528 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11529 (init_syntax_once): Prototype.
11531 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11533 * pa-linux.h (LIB_SPEC): Update definition.
11534 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11536 2002-02-26 Richard Henderson <rth@redhat.com>
11538 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11539 if we emitted a stop bit.
11541 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11543 * configure.in (libgcc_visibility): Substitute.
11544 * configure: Rebuilt.
11545 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11546 defined symbols .hidden.
11548 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11550 * attribs.c (c_common_attribute_table): Add visibility.
11551 (handle_visibility_attribute): New function.
11552 * varasm.c (assemble_visibility): New function.
11553 * output.h (assemble_visibility): Add prototype.
11554 * tree.h (MODULE_LOCAL_P): Define.
11555 * crtstuff.c (__dso_handle): Use visibility attribute.
11556 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11557 for MODULE_LOCAL_P symbols too.
11558 * config/ia64/ia64.c (ia64_encode_section_info): Handle
11559 MODULE_LOCAL_P symbols the same way as local symbols.
11560 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11561 into .sdata/.sbss by the user.
11562 * doc/extend.texi (Function Attributes): Document visibility
11565 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11568 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11569 STRING_CST initializer spanning the whole variable without
11571 If expand_expr returned MEM, don't use it.
11573 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
11575 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11576 generate a die for the lexical block.
11578 2002-02-26 Kazu Hirata <kazu@hxi.com>
11580 * config/h8300/h8300-protos.h: Add a prototype for
11581 compute_logical_op_length.
11582 * config/h8300/h8300.c (compute_logical_op_length): New.
11583 * config/h8300/h8300.md (anonymous logical patterns): Use
11584 compute_logical_op_length for length.
11586 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11588 * dwarf2out.c (modified_type_die): Do not call type_main_variant
11590 (gen_type_die): Same.
11592 * attribs.c (handle_vector_size_attribute): Set debug information.
11594 2002-02-26 Daniel Egger <degger@fhm.edu>
11596 * config/rs6000/rs6000.md: Swap define_insn attributes to
11597 fix incorrect generation of merge high instructions instead
11600 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11602 * c-typeck.c (really_start_incremental_init): Use
11603 bitsize_zero_node for vectors.
11605 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11607 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11608 ("*set_vrsave_internal"): Same.
11610 2002-02-25 Richard Henderson <rth@redhat.com>
11612 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11613 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
11615 2002-02-25 Jakub Jelinek <jakub@redhat.com>
11618 * config/i386/i386.c (ix86_return_pops_args): Only pop
11619 fake structure return argument if it was passed on the stack.
11621 2002-02-25 Jason Merrill <jason@redhat.com>
11623 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11626 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11628 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11629 link with shared_name only.
11630 * doc/invoke.texi (Link Options): Document new behavior.
11632 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11634 * c-typeck.c (push_init_level): Handle vectors.
11636 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11638 * config/sparc/sparc.c (const64_high_operand): Zero-extend
11639 operands of SPARC_SETHI_P.
11640 (input_operand): Likewise.
11641 (sparc_emit_set_const32): Likewise.
11642 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11643 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11644 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
11645 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11646 (movdi_insn_sp64_vis): Likewise.
11647 (movdi split, movdf split): Use SETHI32.
11648 * doc/md.texi: Document SPARC constraints L, M and N.
11650 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11652 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11653 ("*set_vrsave_internal"): use mfspr for Darwin.
11655 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11656 gen_get_vrsave_internal.
11658 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11660 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11662 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
11664 * cpplex.c (cpp_interpret_charconst): Get signedness or
11665 otherwise of wide character constants correct.
11666 * cppexp.c (lex): Get signedness of wide charconsts correct.
11668 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11670 * optabs.c (widen_operand): Only call convert_modes for
11671 promoted SUBREG if signedness matches.
11672 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11674 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11676 * cpplib.c (glue_header_name): Use local buffer to build up
11679 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11681 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11683 2002-02-23 Kazu Hirata <kazu@hxi.com>
11685 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11686 H8/300[HS] separately.
11687 * config/h8300/h8300.md: Remove the early clobber constraint
11688 from bit field patterns.
11690 2002-02-23 Kazu Hirata <kazu@hxi.com>
11692 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11694 (mulhisi3): Likewise.
11695 (umulqisi3): Likewise.
11696 (umulhisi3): Likewise.
11698 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11700 * cppinit.c (output_deps): Correct test for stdout output.
11701 (init_dependency_output): Cure warning.
11703 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11705 * expr.c (store_expr): When converting expression to promoted
11706 equivalent type, allow using SUBREG_REG of TARGET as the target
11707 of the expansion of EXP.
11708 * loop.c (basic_induction_var, case SUBREG): Always look inside.
11709 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11710 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11711 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11712 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11714 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
11716 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11717 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11718 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11720 2002-02-23 Jakub Jelinek <jakub@redhat.com>
11722 PR optimization/5747
11723 * loop.c (scan_loop): Update reg info if move_movables created new
11726 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11728 * gcc.c (init_gcc_spec): Revert last change.
11730 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11732 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11733 gpc_reg_operand constraint.
11735 2002-02-23 Alan Modra <amodra@bigpond.net.au>
11737 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11738 Simplify comparison of `low'.
11739 (add_operand): Fix formatting.
11740 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11741 (mask_operand): Disallow mask to wrap in 64-bit mode.
11742 (rs6000_stack_info): Remove redundant test setting push_p.
11743 (output_toc): Fix formatting.
11744 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11745 cc_reg_not_cr0_operand constraint.
11746 (booldi3, boolcdi3 splitters): Same.
11748 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
11750 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11752 2002-02-22 David Edelsohn <edelsohn@gnu.org>
11754 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11755 gcc invoked with -shared-libgcc.
11757 2002-02-22 Jakub Jelinek <jakub@redhat.com>
11760 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11761 decl if any of elements was TREE_USED.
11763 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
11765 * config/sparc/sol2.h: Don't include sys/mman.h.
11766 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11767 (arith_4096_operand): Don't throw high bits away.
11768 (const64_operand): Take sign extension of CONST_INTs into account.
11769 (const64_high_operand, sparc_emit_set_const32): Likewise.
11770 (GEN_HIGHINT64): Likewise.
11771 (sparc_emit_set_const64_quick1): Likewise.
11772 (const64_is_2insns): Likewise.
11773 (print_operand): Use trunc_int_for_mode for sign extension.
11774 * config/sparc/sparc.h (SMALL_INT32): Likewise.
11775 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11776 chars. Assume CONST_INT is already properly sign-extended.
11777 (movdi split): Sign-extend each SImode part.
11778 (andsi3 split): Don't mask high bits off, so that result
11779 remains properly sign-extend.
11780 (iorsi3 split): Likewise.
11781 (xorsi3 split): Likewise.
11783 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
11785 * fold-const.c (fold): Fix typo in comments.
11787 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11789 * Makefile.in (langhooks.o): Update dependencies.
11791 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11793 * langhooks.c: Include flags.h.
11795 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
11797 * testsuite/gcc.dg/attr-alwaysinline.c: New.
11799 * c-common.c (c_common_post_options): Set inline trees by
11802 * doc/extend.texi (Function Attributes): Document always_inline
11804 Update documentation about inlining when not optimizing.
11806 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11808 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11809 unless DECL_ALWAYS_INLINE.
11811 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11812 unless DECL_ALWAYS_INLINE.
11813 (c_disregard_inline_limits): Disregard if always_inline set.
11815 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11816 Disregard if always_inline set.
11817 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11818 unless DECL_ALWAYS_INLINE.
11820 * attribs.c (handle_always_inline_attribute): New.
11821 (c_common_attribute_table): Add always_inline.
11823 * config/rs6000/altivec.h: Add prototypes for builtins
11824 requiring the always_inline attribute.
11826 2002-02-21 Eric Christopher <echristo@redhat.com>
11828 * expmed.c (store_bit_field): Try to simplify the subreg
11829 before generating a new one when when the mode size of
11830 value is less than maxmode.
11832 2002-02-21 Richard Henderson <rth@redhat.com>
11834 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11835 than gen_rtx_PLUS to form the sum.
11836 * explow.c (force_reg): Rearrange to not allocate new pseudo
11837 when force_operand returns a register.
11838 * expr.c (expand_assignment): Allow offset_rtx expansion to
11839 return a sum. Do not force addresses into registers.
11840 (expand_expr): Likewise.
11841 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11842 to canonicalize arithmetic that didn't simpify.
11843 (simplify_plus_minus): New argument force; update
11844 all callers. Don't split CONST unless we can do something with it,
11845 and wouldn't lose the constness of the operands.
11847 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11848 that we generated earlier.
11850 2002-02-21 Tom Tromey <tromey@redhat.com>
11852 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11853 (output_line_info): Use constant `1', with a long explanatory
11855 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11857 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11859 * jump.c (redirect_jump): If old label has no UID, don't try to
11862 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11864 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11865 If input is constant, do shifts at compile time.
11867 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11869 * doc/extend.texi: Fix some more overfull hboxes.
11871 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11873 PR optimization/4994
11874 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11877 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11880 * expr.h (expand_and): Add mode argument.
11881 * expmed.c (expand_and): Add mode argument.
11882 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11883 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11884 * except.c (expand_builtin_extract_return_addr): Likewise.
11885 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11886 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11887 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11888 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11889 * config/c4x/c4x.md: Use GEN_INT (x) instead of
11890 gen_rtx (CONST_INT, VOIDmode, x).
11892 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11895 * stmt.c (warn_if_unused_value): Move side effects test once more.
11897 2002-02-20 Torbjorn Granlund <tege@swox.com>
11899 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11900 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11902 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
11904 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11905 SUBREG or ZERO_EXTEND.
11907 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
11909 * sh.h (current_function_anonymous_args): Remove.
11910 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11911 of current_function_varargs and current_function_stdarg is set.
11912 * sh.c (sh_expand_prologue): Check current_function_varargs /
11913 current_function_stdarg / TARGET_SH5 instead of
11914 current_function_anonymous_args.
11916 * sh64.h (TARGET_VERSION): Define.
11918 2002-02-20 David Edelsohn <edelsohn@gnu.org>
11920 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11921 VRSAVE_REGNO on TARGET_ALTIVEC.
11923 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11925 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11926 bits of SImode const_int.
11927 (includes_rshift_p): Likewise.
11928 (print_operand): Call mask_operand and mask64_operand with correct
11930 (rs6000_output_function_epilogue): Pad traceback table to word.
11931 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11932 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11933 mask64_operand with correct mode.
11934 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11936 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11939 * varasm.c (get_pool_constant_mark): New.
11940 * rtl.h (get_pool_constant_mark): Add prototype.
11941 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11942 be represented if it has not been output.
11944 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11946 * combine.c (do_SUBST): Sanity check substitutions of
11947 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11948 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11949 CONST_INT into its operand.
11950 (known_cond): Likewise, for ZERO_EXTEND.
11951 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11952 allow for simplification of wide modes. Reject CONST_INTs in
11953 ZERO_EXTEND when their actual mode is not given.
11955 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11957 * c-decl.c (pushdecl): If no global declaration is found for an
11958 extern declaration in block scope, try a limbo one.
11960 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11963 * c-common.c (pointer_int_sum): Moved from...
11964 * c-typeck.c (pointer_int_sum): ...here.
11965 * c-common.h (pointer_int_sum): Add prototype.
11967 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11970 * c-decl.c (duplicate_decls): Return 0 if issued error about
11973 2002-02-20 Roger Sayle <roger@eyesopen.com>
11974 Jakub Jelinek <jakub@redhat.com>
11977 * tree.c (host_integerp): Ensure that the constant integer is
11978 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11979 when pos is zero or non-zero respectively. Clarify comment.
11980 * c-format.c (check_format_info_recurse): Fix host_integerp
11981 usage; the pos argument should be zero when assigning to a
11982 signed HOST_WIDE_INT.
11984 2002-02-20 Richard Henderson <rth@redhat.com>
11986 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11987 of the operand, rather than assuming TImode.
11988 (ix86_expand_binop_builtin): Cope with commutative patterns
11989 using nonimmediate_operand for both operands.
11990 (ix86_expand_timode_binop_builtin): Likewise.
11991 (ix86_expand_store_builtin): Validate operand 1.
11992 (ix86_expand_unop1_builtin): Likewise.
11994 2002-02-20 Philip Blundell <philb@gnu.org>
11997 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11999 2002-02-20 Richard Henderson <rth@redhat.com>
12002 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
12004 2002-02-20 Tom Tromey <tromey@redhat.com>
12006 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12007 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12008 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12009 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
12010 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
12013 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
12015 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
12016 for (const_int 0) in X not just INTVAL.
12018 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
12020 * doc/extend.texi: Avoid or reduce overfull hboxes.
12022 2002-02-20 Diego Novillo <dnovillo@redhat.com>
12024 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
12025 operations if the field does not start at a mode boundary.
12027 2001-02-20 Joel Sherrill <joel@OARcorp.com>
12029 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
12030 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
12031 Also done for -Acpu and -Amachine.
12033 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
12035 * cppinit.c (init_dependency_output): Take deps output file
12036 from -o if none given with -MF. Suppress normal output.
12037 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
12038 * doc/cpp.texi, doc/invoke.texi: Update.
12040 2002-02-19 Zack Weinberg <zack@codesourcery.com>
12042 * toplev.c (output_quoted_string): Write unprintable
12043 characters with octal escapes.
12045 2002-02-19 David Edelsohn <edelsohn@gnu.org>
12047 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
12048 really_call_used[VRSAVE_REGNO] if not Altivec.
12050 2002-02-19 Alan Modra <amodra@bigpond.net.au>
12052 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
12054 (constant_pool_expr_1): Fix formatting.
12055 (rs6000_legitimize_reload_address): Likewise.
12057 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12059 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
12060 now that we have one.
12062 2002-02-19 Zack Weinberg <zack@codesourcery.com>
12064 * tree.h (struct tree_common): Remove aux. Add unused_0 at
12065 end of first block of bitfields (which was only seven bits);
12066 rename dummy to unused_1; remove comment which is no longer true.
12068 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
12070 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
12072 2002-02-19 Philip Blundell <pb@nexus.co.uk>
12075 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
12079 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
12080 arm_is_longcall_p rather than inspecting call-type cookie
12082 (call_value_insn) [TARGET_THUMB]: Likewise.
12084 2002-02-19 Graham Stott <grahams@redhat.com>
12086 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
12088 2002-02-19 David Edelsohn <edelsohn@gnu.org>
12090 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
12091 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
12092 (FP_SAVE_INLINE): Delete.
12094 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
12095 * config/rs6000/eabi.asm: Remove ABI save restore routines.
12096 * config/rs6000/t-ppccomm: Build crtsavres.o.
12097 * config/rs6000/crtsavres.asm: New file.
12099 2002-02-19 Philip Blundell <philb@gnu.org>
12101 * config/arm/arm.c (use_return_insn): Don't reject interrupt
12103 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
12104 (output_return_instruction): Allow interrupt functions to return with
12105 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
12106 (arm_expand_prologue): Subtract 4 before stacking LR in an
12107 interrupt function.
12109 2002-02-19 Philip Blundell <pb@nexus.co.uk>
12111 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
12112 decl, not just FUNCTION_DECL.
12113 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
12114 (arm_assemble_integer): Likewise.
12115 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
12118 2002-02-19 matthew green <mrg@eterna.com.au>
12120 * config.gcc (sparc-*-netbsdelf*): Enable target.
12121 (sparc64-*-netbsd*): New target.
12122 * config/sparc/netbsd-elf.h: New file.
12123 * config/sparc/t-netbsd64: New file.
12125 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
12127 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
12129 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
12131 * doc/invoke.texi: explicitly list the style guidelines that
12132 -Weffc++ checks for.
12134 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
12136 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
12138 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
12141 * gcc.c (cpp_unique_options): Treat -o as indicating object file
12142 only if not -E. If -E, pass -o through to the preprocessor.
12144 2002-02-19 Kazu Hirata <kazu@hxi.com>
12146 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
12147 register number with an appropriate macro.
12149 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12151 * doc/rtl.texi (Constants): Close @code tag.
12153 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
12155 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
12156 ("mmx_uavgv4hi3"): Same.
12157 ("pmulhrwv4hi3"): Same.
12159 * tree-inline.c (walk_tree): Handle vectors.
12161 * c-common.c (constant_expression_warning): Handle vectors.
12162 (overflow_warning): Same.
12164 * sched-deps.c (sched_analyze_2): Handle vectors.
12166 * rtlanal.c (rtx_unstable_p): Handle vectors.
12167 (rtx_varies_p): Same.
12168 (count_occurrences): Same.
12169 (regs_set_between_p): Same.
12170 (modified_between_p): Same.
12171 (modified_in_p): Same.
12172 (volatile_insn_p): Same.
12173 (volatile_refs_p): Same.
12174 (side_effects_p): Same.
12175 (may_trap_p): Same.
12176 (inequality_comparisons_p): Same.
12177 (replace_regs): Same.
12178 (computed_jump_p_1): Same.
12180 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
12182 (inner_mode_array): New.
12183 (copy_rtx): Handle vectors.
12184 (copy_most_rtx): Same.
12185 (rtx_equal_p): Same.
12186 (get_mode_alignment): Adjust for vectors.
12188 * resource.c (mark_referenced_resources): Handle vectors.
12189 (mark_set_resources): Same.
12191 * reload1.c (eliminate_regs): Handle vectors.
12192 (elimination_effects): Same.
12193 (scan_paradoxical_subregs): Same.
12195 * reload.c (subst_reg_equivs): Handle vectors.
12197 * regrename.c (scan_rtx): Handle vectors.
12199 * regclass.c (reg_scan_mark_refs): Handle vectors.
12201 * recog.c (find_single_use_1): Handle vectors.
12203 * local-alloc.c (equiv_init_varies_p): Handle vectors.
12204 (contains_replace_regs): Same.
12205 (memref_referenced_p): Same.
12207 * integrate.c (copy_rtx_and_substitute): Handle vectors.
12208 (subst_constants): Same.
12210 * genattrtab.c (attr_copy_rtx): Handle vectors.
12211 (encode_units_mask): Same.
12212 (clear_struct_flag): Same.
12213 (count_sub_rtxs): Same.
12215 * gcse.c (want_to_gcse_p): Handle vectors.
12216 (oprs_unchanged_p): Same.
12217 (hash_expr_1): Same.
12218 (oprs_not_set_p): Same.
12219 (expr_killed_p): Same.
12220 (compute_transp): Same.
12221 (store_ops_ok): Same.
12223 * function.c (purge_addressof_1): Do not allow paradoxical subregs
12225 (fixup_var_refs_1): Same.
12226 (instantiate_virtual_regs_1): Same.
12228 * fold-const.c (operand_equal_p): Handle vectors.
12230 (rtl_expr_nonnegative_p): Same.
12232 * flow.c (mark_used_regs): Handle vectors.
12234 * df.c (df_uses_record): Handle vectors.
12236 * cselib.c (cselib_subst_to_values): Handle vectors.
12237 (cselib_mem_conflict_p): Same.
12240 * cse.c (canon_reg): Handle vectors.
12242 (cse_process_notes): Same.
12243 (count_reg_usage): Same.
12244 (canon_hash): Same.
12246 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12248 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12250 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12251 (gen_rtx): Handle CONST_VECTOR.
12252 (gen_const_vector_0): New.
12253 (copy_rtx_if_shared): CONST_VECTORs can be shared.
12254 (reset_used_flags): Same.
12255 (copy_insn_1): Same.
12256 (initializer_constant_valid_p): Handle VECTOR_CST.
12258 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12260 * doc/rtl.texi (Constants): Document const_vector.
12261 (CONST0_RTX): Update for vectors.
12262 (RTL sharing): Same.
12264 * print-tree.c (print_node): Add case for VECTOR_CST.
12266 * tree.h (TREE_VECTOR_CST_ELTS): New.
12267 (struct tree_vector): New.
12268 (union tree_node): Add vector node.
12269 (build_vector): Add prototype.
12271 * tree.def (VECTOR_CST): New.
12273 * tree.c (build_vector): New.
12275 * expmed.c (make_tree): Handle CONST_VECTOR.
12277 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12278 (CONST_VECTOR_ELT): New.
12279 (CONST_VECTOR_NUNITS): New.
12281 * machmode.h (GET_MODE_INNER): New.
12282 (DEF_MACHMODE): Accept 8th arg.
12284 * machmode.def: Add 8th argument for vector inner mode.
12285 Add inner vector modes for vectors.
12287 * rtl.def (VEC_CONST): Remove.
12288 (CONST_VECTOR): New.
12290 * expr.c (clear_storage): Allow vectors.
12291 (is_zeros_p): Handle VECTOR_CST.
12293 * varasm.c (output_constant_pool): Handle vectors.
12294 (rtx_const): Add veclo and vechi fields.
12295 (kind): Add RTX_VECTOR.
12296 (decode_rtx_const): Add case for vector.
12298 * config/rs6000/rs6000-protos.h: Add zero_constant.
12300 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12301 constants. Force easy vector constants into memory.
12302 (easy_vector_constant): New.
12303 (emit_easy_vector_constant): New.
12304 (rs6000_legitimize_reload_address): Do not generate bad reloads on
12307 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12309 ("altivec_lvxl"): Same.
12310 (altivec_lvebx): Same.
12311 (altivec_lvehx): Same.
12312 (altivec_lvewx): Same.
12313 ("*movv4si_const0"): New.
12314 ("*movv4sf_const0"): New.
12315 ("*movv8hi_const0"): New.
12316 ("*movv16qi_const0"): New.
12318 2002-02-18 Kazu Hirata <kazu@hxi.com>
12320 * config/h8300/h8300.c (notice_update_cc): Use
12323 2002-02-18 Kazu Hirata <kazu@hxi.com>
12325 * config/h8300/h8300.md (divmod patterns): Change the
12326 constraints for operands[1] to register_operand.
12328 2002-02-18 Kazu Hirata <kazu@hxi.com>
12330 * config/h8300/h8300-protos.h: Remove the prototype for
12332 * config/h8300/h8300.c (p_operand): Remove.
12333 * config/h8300/h8300.md: Replace p_operand with
12336 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12338 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12340 (output_return_instruction): Allow use of LDR to unstack
12341 return addresss even for interrupt handlers or when
12342 interworking. If compiling for ARMv5, use interworking-safe
12343 return instructions by default. Remove duplicated code and
12344 lengthy "strcat" sequences.
12346 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12348 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12349 (LINK_EH_SPEC): Define.
12350 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12352 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
12354 * config/s390/s390.c (s390_emit_prologue): Do not set the
12355 frame_related flag for call-clobbered registers.
12357 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
12359 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12360 (construct_container): Fix handling of SSE operands.
12361 (ix86_expand_builtin): Fix handling of 64bit pointers.
12362 (mmx_maskmovq_rex): New pattern.
12364 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
12366 * regrename.c (kill_set_value): Handle subregs properly.
12368 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
12370 * objc/objc-act.c (handle_impent): Remove leading '*'
12371 from objc_class_name.
12373 2002-02-17 Richard Henderson <rth@redhat.com>
12375 * config/alpha/alpha.c (some_small_symbolic_operand,
12376 some_small_symbolic_operand_1, split_small_symbolic_operand,
12377 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12378 Handle small SYMBOL_REFs anywhere, not just inside memories.
12379 * config/alpha/alpha-protos.h: Update.
12380 * config/alpha/alpha.h (PREDICATE_CODES): Update.
12381 * config/alpha/alpha.md (small symbolic operand splitter): Update.
12383 2002-02-17 Roland McGrath <roland@frob.com>
12385 * config.gcc (powerpc-*-gnu-gnualtivec*,
12386 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12387 * config/rs6000/gnu.h: New file.
12388 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12389 Grok "gnu" in rs6000_abi_name.
12390 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12391 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12392 Grok -mcall-gnu analogous to -mcall-linux et al.
12393 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12394 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12395 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12397 2002-02-17 Jakub Jelinek <jakub@redhat.com>
12400 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12403 2002-02-17 Philipp Thomas <pthomas@suse.de>
12405 * config/cris/cris.h: Undefine STARTFILE_SPEC and
12406 ENDFILE_SPEC before (re)defining them.
12408 2002-02-17 Kazu Hirata <kazu@hxi.com>
12410 * config/h8300/h8300.c: Fix formatting.
12411 * config/h8300/h8300.h: Likewise.
12413 2002-02-17 Philipp Thomas <pthomas@suse.de>
12415 * doc/tm.texi: Explain why empty strings should not be
12416 marked for translation.
12418 2002-02-17 Philipp Thomas <pthomas@suse.de>
12420 * final.c (output_operand_lossage): Changed to accept
12421 printf style arguments. Change calls where necessary.
12422 * output.h (output_operand_lossage): Change declaration
12423 accordingly. Update copyright.
12424 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12425 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12426 Update copyright date where necessary.
12428 * config/i386/i386.c (print_operand): Likewise. Remove use of
12431 * config/cris/cris.c (cris_operand_lossage): Likewise.
12432 Rename parameter so that exgettext recognizes it as
12433 translatable message.
12434 (LOSE_AND_RETURN): Rename parameter to msgid.
12436 2002-02-17 Kazu Hirata <kazu@hxi.com>
12438 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12439 hard coded register number with an appropriate macro.
12440 (HARD_REGNO_MODE_OK): Likewise.
12441 (ARG_POINTER_REGNUM): Likewise.
12442 (STATIC_CHAIN_REGNUM): Likewise.
12443 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12444 * config/h8300/h8300.md (define_constants): Define more
12447 2002-02-17 Philipp Thomas <pthomas@suse.de>
12449 * config/i386/i386.h: Don't mark empty strings for translation.
12451 2002-02-16 H.J. Lu <hjl@gnu.org>
12453 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12455 2002-02-16 Zack Weinberg <zack@codesourcery.com>
12457 * cppinit.c (merge_include_chains): Check for brack being
12458 NULL before attempting to merge it with qtail.
12460 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12462 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12465 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12467 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12469 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12471 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12472 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12473 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12475 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12477 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12478 now only if !TARGET_FIX.
12479 (*movsi_nt_vms_fix): New pattern.
12481 2002-02-16 Douglas B Rupp <rupp@gnat.com>
12483 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12484 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12485 (alpha_sa_mask, alpha_sa_size): Reflect above change.
12486 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12487 (alpha_start_function, alpha_expand_epilogue): Likewise.
12488 (unicosmk_gen_dsib): Likewise.
12490 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12492 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12494 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
12496 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12497 check_and_change_labels, s390_final_chunkify): Delete.
12498 (s390_split_branches, s390_chunkify_pool): New functions.
12499 (s390_function_prologue): Call them.
12501 * config/s390/s390.h (S390_REL_MAX): Delete.
12502 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12504 * config/s390/s390.md (cjump, icjump, jump): Fix length
12505 attribute calculation.
12508 2002-02-15 David Edelsohn <edelsohn@gnu.org>
12510 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12511 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12513 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12515 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12516 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12517 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12519 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12521 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12523 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12525 * reload.c (find_dummy_reload): Check that an output register
12526 is valid for its mode.
12528 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
12530 * combine.c (known_cond): After replacing the REG of a SUBREG, try
12533 * function.c (assign_parms): Demote promoted argument passed by
12534 transparent reference.
12536 2001-02-14 Joel Sherrill <joel@OARcorp.com>
12538 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12539 -Acpu() and -Amachine() to eliminate warnings.
12541 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
12543 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12545 2002-02-14 Kazu Hirata <kazu@hxi.com>
12547 * config/h8300/h8300-protos.h: Update the prototype for
12549 * config/h8300/h8300.c (const_costs): Treat SET as a little
12550 more expensive operation.
12551 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12552 reference to const_costs.
12554 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
12556 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12558 2002-02-14 Jakub Jelinek <jakub@redhat.com>
12561 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12562 use arguments from newtype.
12564 2002-02-13 Eric Christopher <echristo@redhat.com>
12566 * config/mips/mips.c (override_options): Add check for march/mipsX
12567 on the same command line. Fix error message in cpu processing.
12568 Remove architecture and ISA checks.
12570 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12572 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12574 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12576 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12578 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12580 ("*movv8hi_internal1"): Same.
12581 ("*movv16qi_internal1"): Same.
12582 ("*movv4sf_internal1"): Same.
12584 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12585 not push_reload for altivec modes.
12587 2002-02-13 Joel Sherrill <joel@OARcorp.com>
12589 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12590 all RTEMS targets including removal of #includes from config/*/rtems*.h
12591 file and adding them to tm_file setting. Added xm_defines=POSIX to
12593 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12594 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12595 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12596 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12597 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12598 config/m68k/rtemself.h: Ditto.
12599 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12600 config/mips/rtems64.h: Ditto.
12601 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12602 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12604 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12605 config/sparc/rtemself.h: Ditto.
12606 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12607 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12608 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12610 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12611 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12612 target made more similar to i386-elf.
12613 * config/i386/t-rtems-i386: Added soft float support and multilibs.
12614 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12615 be similar to config/m68k/t-m68kelf.
12616 * gthr-rtems.h: Encapsulate with extern "C" for C++.
12618 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
12620 * regmove.c (kill_value): Handle subregs.
12622 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
12624 * i386.md (mul patterns): Allow memory operand to be first;
12625 add expanders where needed; fix constraints.
12626 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12627 Allow memory operand to be the first.
12629 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12632 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12635 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12638 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12640 PR optimization/5547:
12641 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12642 all valid IA-32 address modes involving non-scaled %ebx and
12643 GOT/GOTOFF as displacement.
12645 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
12647 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12648 after emitting ltorg insns.
12650 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12651 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12652 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12653 *abssf2): Fix "op_type" attribute.
12655 2002-02-13 Douglas B Rupp <rupp@gnat.com>
12657 * mkconfig.sh: Avoid using a subshell redirect.
12658 ($output.T): Change to $(output)T.
12659 (ENABLE_NLS): Remove unneeded undef.
12661 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12662 * config/alpha/x-vms (libsubdir): Define.
12664 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12665 register frame procedures. Optimize retrieving context.
12667 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12668 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12669 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12671 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12673 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12674 Make same change as for find_base_value.
12676 2002-02-13 Kazu Hirata <kazu@hxi.com>
12678 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12679 of QImode and SImode.
12681 2002-02-13 Kazu Hirata <kazu@hxi.com>
12683 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12684 length computation of movsi.
12685 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12687 2002-02-13 Kazu Hirata <kazu@hxi.com>
12689 * config/h8300/h8300.md (subqi3): Tighten the predicate for
12690 operands[2] to register_operand.
12692 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
12694 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12696 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
12698 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12699 for altivec_lvx* and altivec_stvx*.
12700 ("*movv4si_internal"): Add constraint for loading from GPRs.
12701 ("*movv8hi_internal1"): Same.
12702 ("*movv16qi_internal1"): Same.
12703 ("*movv4sf_internal1"): Same.
12705 * config/rs6000/rs6000.c (altivec_register_operand): New.
12707 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12708 altivec_register_operand.
12710 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
12712 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12715 2002-02-13 Stan Shebs <shebs@apple.com>
12717 * c-typeck.c (digest_init): Handle vectors.
12718 (really_start_incremental_init): Same.
12719 (pop_init_level): Same.
12720 (process_init_element): Same.
12722 * varasm.c (output_constant): Same.
12724 * expr.c (clear_storage): Same.
12725 (store_constructor): Same.
12727 2002-02-12 Eric Christopher <echristo@redhat.com>
12729 * explow.c (hard_function_value): Add comment explaining
12730 signed/unsigned comparison.
12732 2002-02-12 Jakub Jelinek <jakub@redhat.com>
12734 * jump.c (never_reached_warning): Add finish argument.
12735 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12736 real insn after end.
12737 * rtl.h (never_reached_warning): Adjust prototype.
12738 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12739 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12740 never_reached_warning.
12742 2002-02-12 Graham Stott <grahams@redhat.com>
12744 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12746 2002-02-12 Kazu Hirata <kazu@hxi.com>
12748 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12749 logical shifts on H8/300.
12750 (shift_alg_si): Improve several shifts on H8/300.
12751 (get_shift_alg): Likewise.
12753 2002-02-12 Graham Stott <grahams@redhat.com>
12755 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12757 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12759 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12760 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12762 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
12764 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12765 non-CONST_INT through default_assemble_integer.
12766 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12767 <case 8>: Abort for CONST_DOUBLE.
12769 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12771 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12773 * config/pa/pa-linux.h (LIB_SPEC): Delete.
12774 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12776 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
12778 * config/stormy16/stormy16.md (zero_extendqihi2): New.
12780 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
12782 * regrename.c (regrename_optimize): Don't accept a
12783 part-clobbered register if the replaced register is not part
12786 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12787 take padding into account when computing the argument value.
12789 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12791 * combine.c (try_combine): Apply substitutions in
12792 CALL_INSN_FUNCTION_USAGE too.
12794 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
12796 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12797 __builtin_altivec_abs*.
12800 * config/rs6000/rs6000.h (rs6000_builtins): Add
12801 ALTIVEC_BUILTIN_ABS*.
12803 * config/rs6000/altivec.h: Use const char for builtins expecting
12805 (vec_abs): New versions for C and C++.
12808 2002-02-10 Kazu Hirata <kazu@hxi.com>
12810 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12813 2002-02-10 Kazu Hirata <kazu@hxi.com>
12815 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12816 constant definition from h8300.md.
12817 (FRAME_POINTER_REGNUM): Likewise.
12818 * config/h8300/h8300.md (define_constants): Add FP_REG.
12820 2002-02-10 Kazu Hirata <kazu@hxi.com>
12822 * config/h8300/h8300.c (print_operand): Remove redundant code.
12824 2002-02-10 Kazu Hirata <kazu@hxi.com>
12826 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12827 * config/h8300/h8300.c (byte_reg): Make it static.
12829 2002-02-10 Richard Henderson <rth@redhat.com>
12832 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12834 2002-02-10 Richard Henderson <rth@redhat.com>
12837 * tree.c (append_random_chars): Don't abort if main_input_filename
12840 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12842 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12844 2002-02-10 Kazu Hirata <kazu@hxi.com>
12846 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12847 (pushhi1): Likewise.
12849 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12851 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12852 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12854 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12856 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12858 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12860 2002-02-09 Kazu Hirata <kazu@hxi.com>
12862 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12863 a half of an SImode register on H8/300.
12865 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12867 * i386.md (movdi_2): Add missing '!'.
12869 2002-02-09 Kazu Hirata <kazu@hxi.com>
12871 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12874 2002-02-09 Kazu Hirata <kazu@hxi.com>
12876 * config/h8300/h8300.md (length): Correct the distance valid
12877 for the short branch.
12879 2002-02-09 Kazu Hirata <kazu@hxi.com>
12881 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12883 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12885 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12886 registers in SImode.
12887 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12890 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12893 Contribute sh64-elf.
12894 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12895 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12896 (sh_cannot_modify_jumps_p): New function.
12897 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12898 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12899 (sh_ms_bitfield_layout_p): New function.
12900 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
12901 Zack Weinberg <zack@codesourcery.com>
12902 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12903 expand_simple_binop instead of expand_binop.
12904 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
12905 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12906 use of .quad and .uaquad.
12907 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12908 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12909 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12910 * config/sh/sh.md (movdi_const, movdi_const_32bit,
12911 movdi_const_16bit): Make sure all CONSTs have modes.
12912 (sym2PIC): Ditto, but by adjusting all callers.
12913 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12914 if the prologue calls the SHmedia argument decoder or register
12916 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12917 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12918 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12919 (sh_expand_epilogue): Don't emit USE of return target register.
12920 (prepare_move_operands): Legitimize DImode PIC addresses.
12921 (sh_media_register_for_return): Skip tr0, used to initialize the
12923 (sh_expand_prologue): Remove explicit USE of return register.
12924 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12925 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12926 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12927 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12928 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12929 EXTRA_CONSTRAINT_T.
12930 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12931 (MOVI_SHORI_BASE_OPERAND_P): New.
12932 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12933 (EXTRA_CONSTRAINT_T): Define in terms of them.
12934 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12935 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12936 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12937 alternatives supporting TARGET_REGS.
12938 (UNSPEC_GOTPLT): New constant.
12939 (movdi split): Move incrementing of LABEL_NUSES...
12940 (movdi_const, movdi_const_32bit): Here. Use
12941 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12942 (movdi_const_16bit): New.
12943 (call, call_value) [flag_pic]: Use GOTPLT.
12944 (call_pop, call_value_pop): New expands.
12945 (call_pop_compact, call_pop_rettramp): New insns.
12946 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12947 (sibcall) [flag_pic]: Use GOT.
12948 (builtint_setjmp_receiver): Remove bogus, unused expand.
12949 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12950 (*pt, *ptb, ptrel): New insns.
12951 (sym2GOT): Handle DImode GOT.
12952 (sym2GOTPLT, symGOTPLT2reg): New expands.
12953 (sym2PIC): New expand.
12954 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12955 (shcompact_return_tramp_i): Use return register explicitly.
12956 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12957 disable flag_reorder_blocks.
12958 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12959 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12960 clobbers, for clarity.
12961 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12962 restoring of r0 in macl as MAYBE_DEAD.
12963 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12964 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12965 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12966 alter_subreg all over.
12967 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12968 reload, instead of emitting instructions that would require
12970 (casesi_load_media): Add missing modes.
12971 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12972 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12973 as used if the argument decoder is called.
12974 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12975 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12976 Pmode, then extend it to DImode if necessary.
12977 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12978 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12979 constants in FPU-enabled SHmedia, let them be loaded from memory.
12980 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12981 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12982 Adjust whitespace in assembly output templates.
12983 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12984 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12985 mode of if_then_else.
12986 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
12987 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12989 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
12990 Joern Rennecke <amylaar@redhat.com>
12991 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12992 (SUBTARGET_CPP_PTR_SPEC): New.
12993 (SUBTARGET_CPP_SPEC): Remove.
12994 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12995 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12996 Fix typo in previous checkin.
12997 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
12998 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12999 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
13000 Alexandre Oliva <aoliva@redhat.com>
13001 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
13002 what single FP register can hold for SHmedia target.
13003 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
13004 Alexandre Oliva <aoliva@redhat.com>
13005 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
13006 Do not split into SUBREG.
13007 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
13008 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
13009 and added new functions as specified in SH5 ABI r9.
13010 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
13011 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
13013 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
13014 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
13015 gen_consttable_4 and gen_consttable_8. Emit multiple labels
13016 and consttable_window_ends.
13017 2001-06-03 Graham Stott <grahams@redhat,com>
13018 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
13019 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
13020 * config/sh/sh.c (print_operand): Handle floating-point pair,
13021 vector and matrix registers.
13022 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
13023 vector modes into account.
13024 * config/sh/sh.md (movv2sf): Split move between registers into
13026 (movv4sf, movv16sf): Introduce insns that get split only after
13028 * config/sh/shmedia.h: Fix Copyright dates.
13029 * config/sh/ushmedia.h: Likewise. Move loop counter
13030 declarations into conditionals that uses them.
13031 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
13033 * config/sh/sshmedia.h: Fix Copyright dates.
13034 (sh_media_PUTCFG): Fix constraints.
13035 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
13036 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
13037 ptrmemfunc_vbit_in_delta for SH5.
13038 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
13039 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
13040 * invoke.texi: Likewise.
13041 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
13042 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
13043 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
13044 GCC_pop_shmedia_regs_nofpu): New global symbols.
13045 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
13046 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
13047 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
13048 compact function with nonlocal labels.
13049 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
13050 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
13051 (initial_elimination_offset): Account for their stack space.
13052 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
13053 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
13054 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
13055 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
13056 least one of the operands to be a register.
13057 (movv2sf): Likewise. Renamed to movv2sf_i.
13058 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
13059 prepare_move_operands() before emitting SHmedia insns.
13060 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
13061 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
13062 Don't save nor initialize r12. Don't mis-align the stack.
13063 Pad the code with a nop.
13064 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
13066 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
13067 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
13068 [__SHMEDIA__]: Implement.
13069 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
13070 * config/sh/sh.md: Set latency of `pt' closer to reality.
13071 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
13072 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
13073 Set move, load and store type attributes.
13074 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
13075 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
13077 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
13078 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
13079 * config/sh/sh.c (sh_media_register_for_return): New function.
13080 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
13081 branch-target register.
13082 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
13083 * config/sh/sh.md (return_media_i): Use any call-clobbered
13084 branch-target register.
13085 (return_media): If r18 wasn't copied in the prologue, copy it
13087 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
13088 Clear class FP0_REGS.
13089 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
13091 2001-03-08 DJ Delorie <dj@redhat.com>
13092 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
13093 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
13094 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
13095 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
13096 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
13097 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
13098 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
13099 return value correctly for call_cookie.
13100 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
13101 * config/sh/crt1.asm (start): Modified so as to call
13102 ___setup_argv_and_call_main.
13103 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
13104 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
13106 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
13107 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
13108 (STRIP_NAME_ENCODING): Use it.
13109 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
13110 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
13111 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
13112 prepare_scc_operands().
13113 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
13114 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
13115 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
13116 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
13117 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
13118 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
13119 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
13120 used in shcompact_incoming_args.
13121 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
13123 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
13125 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
13126 Adjust accordingly.
13127 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
13128 Simplify. Adjust. Add sanity check.
13129 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
13131 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
13133 (udivsi3, divsi3): Use them.
13134 (force_mode_for_call): New insn.
13135 (call, call_value, sibcall_value): Emit it before SHcompact
13137 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
13138 * config/sh/sh.md (call, call_value, sibcall): Make sure the
13139 call cookie is non-NULL before taking its value.
13140 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
13141 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
13142 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
13143 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
13145 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
13146 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
13147 temporary for stack adjusts. Use MACL and MACH to pass
13148 arguments to shcompact_incoming_args.
13149 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
13151 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
13152 (nested_trampoline): Load static chain address into r1.
13153 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
13154 2001-01-07 Alexandre Oliva <aoliva@redhat.com
13155 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
13156 fp_arith_reg_operand().
13157 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
13158 * config/sh/sh.md (casesi): Sign-extend the first two operands,
13159 and use signed compares for them.
13160 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
13161 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
13162 ones properly aligned.
13163 (find_barrier): Account for extra alignment needed for 8-byte wide
13165 (machine_dependent_reorg): Require a label for the second 4-byte
13166 constant after an 8-byte one.
13167 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
13169 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
13170 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
13171 last_float when switching float modes.
13172 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
13173 auto-increment for general-purpose registers.
13174 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
13176 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
13178 * config/sh/sh.c (sh_builtin_saveregs): Support using all
13179 registers for varargs.
13180 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
13181 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
13182 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
13183 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
13184 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
13185 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
13186 call_cookie accordingly.
13187 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
13188 (SHCOMPACT_BYREF): Likewise.
13189 (SHCOMPACT_FORCE_ON_STACK): New macro.
13190 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
13191 (sh_builtin_saveregs): Likewise.
13192 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13193 shcompact_incoming_args): Use new shift values. Support
13194 sequences of consecutive and non-consecutive pushes/pops.
13195 * config/sh/sh.md (return): Don't explicitly use PR_REG.
13196 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
13197 * config/sh/sh.h (TEXT_SECTION): Define.
13198 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13199 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
13200 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13201 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13202 return values on FPU-enabled SHmedia.
13203 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13204 FPU-enabled SHmedia.
13205 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13206 value is returned in a non-FP reg and is not returned by
13208 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13210 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
13211 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13212 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13213 quad-aligned to be passed by callee-copy reference.
13214 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
13215 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13216 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13217 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
13218 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13219 copying low-numbered FP regs to r7 and r8.
13220 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13221 FP regs to general-purpose regs only if the copy was passed on the
13223 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13224 copying FP reg to r9.
13225 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13226 copy FP regs to general-purpose regs only in outgoing calls.
13227 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13228 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
13230 * config/sh/sh.h (struct sh_args): Document all fields.
13231 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13232 passed partially on the stack should not consider making
13234 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13235 stack_regs only for incoming calls. When passing FP args,
13236 make sure there are FP regs available before modifying
13238 (SHCOMPACT_BYREF): Pass double args in general-purpose
13239 registers by reference.
13240 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
13241 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13242 attempt to generate sibcalls if the caller got any arguments
13244 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13245 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13246 to 8-byte boundaries.
13247 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13248 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13249 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13250 stored in the stack.
13251 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13252 for the offsets to have the ISA bit set.
13253 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
13254 invocation. Use beq instead of bgt to mark end of sequence of
13256 (shcompact_incoming_args): Fix store of r2. Use beq instead of
13257 bgt to mark end of sequence of stores.
13258 * config/sh/sh.c (arith_operand): Don't check whether
13259 CONST_OK_FOR_J for now.
13260 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13261 instead of long for conversion.
13262 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
13263 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13264 before passing it to fprintf.
13265 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
13266 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13267 Call set_fpscr before reading/writing SR.
13268 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13270 * config/sh/lib1funcs.asm: Add `.align 2' directives before
13272 (FMOVD_WORKS): Define on SH5 with FPU.
13273 (set_fpscr): Define on SH5. Remove separate _fpscr_values
13275 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13277 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
13278 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13280 (ia_main_table): Ditto.
13281 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
13282 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13283 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13284 the definitions from sh.h.
13285 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13287 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13288 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13289 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13290 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
13291 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13292 Increment LABEL_NUSES.
13294 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13296 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13298 * config/sh/elf.h (SIZE_TYPE): Likewise.
13299 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13300 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13301 shcompact_incoming_args): Load switch table addresses using
13303 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13304 (NO_BUILTIN_SIZE_TYPE): Define.
13305 (SIZE_TYPE): Don't define.
13306 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13307 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13308 definition of __SH5__=32 for -m5-compact-nofpu.
13309 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13311 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
13312 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13313 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
13314 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13315 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13316 (INSN_LENGTH_ALIGNMENT): Likewise.
13317 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13318 * config/sh/sh.md (call, call_value, sibcall): Simplify
13319 copying of non-branch-target register.
13320 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13321 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
13322 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13323 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13324 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13325 floating-point values as structs.
13326 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13327 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13328 general-purpose register.
13329 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13330 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
13331 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13332 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13333 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13334 (ENCODE_SECTION_INFO): Enclose variables and constants in
13336 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13337 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13338 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13339 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13340 only for LABEL_REFs. For SYMBOL_REFs, prepend
13341 SH_DATALABEL_ENCODING to the symbol name.
13342 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13344 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
13345 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13347 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13348 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13349 (DATALABEL_REF_P): Don't require CONST.
13350 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13352 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
13353 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13355 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
13356 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13357 Use shallow_copy_rtx and PUT_MODE to change the mode of
13358 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13359 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13360 on SHmedia using GENERAL_REGs.
13361 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13362 bltu_media_i): Fix reversion of conditions.
13363 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
13364 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13365 * config/sh/sh.c (output_far_jump): Save r13 in macl.
13366 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
13367 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13368 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
13369 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13370 (GCC_nested_trampoline): Likewise.
13371 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13372 * config/sh/sh.c (gen_datalabel_ref): Define.
13373 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13374 (INITIALIZE_TRAMPOLINE): Likewise.
13375 (TRAMPOLINE_ADJUST_ADDRESS): Define.
13376 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13377 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13378 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13379 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13380 (ic_invalidate): Adjust for SH5.
13381 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13382 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13383 _nested_trampoline.
13384 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
13385 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13386 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13387 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
13388 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13389 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13390 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
13391 * config/sh/sh.c (target_reg_operand): Match only target-branch
13392 registers and pseudos that aren't virtual registers.
13393 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13394 Copy operands that don't match target_reg_operand to pseudos.
13395 (call_media, call_value_media, sibcall_media): Use
13396 target_reg_operand instead of target_operand.
13397 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
13398 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13399 * config/sh/sh.c (target_reg_operand): Match hardware registers
13400 other than branch-target registers.
13401 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13402 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13403 (fpscr_values) [SH5 == 32]: Define.
13404 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13405 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13406 Handle function addresses coming in SUBREGs.
13407 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
13408 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13409 shcompact_return_trampoline): Use datalabel where appropriate.
13410 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
13411 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13412 general-purpose register to copy one branch-target register to
13414 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13415 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13416 SYMBOL_REFs with VOIDmode.
13417 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13418 bltu_media_i): New insns.
13419 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13420 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13421 (INIT_CUMULATIVE_ARGS): Likewise.
13422 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
13423 * machmode.def (V16SFmode): New mode.
13424 * c-common.c (type_for_mode): Support V2SF and V16SF.
13425 * tree.c (build_common_tree_nodes_2): Likewise.
13426 * tree.h (tree_index): Likewise.
13427 * calls.c (emit_call_1): Take args_so_far. Adjust all
13428 callers. Introduce CALL_POPS_ARGS.
13429 * tm.texi (CALL_POPS_ARGS): Document.
13430 * config/sh/crt1.asm: Implement in SHmedia mode.
13431 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13432 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13433 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13434 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13435 Implement divsi and udivsi in SHmedia mode. Introduce
13436 SHcompact trampolines.
13437 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13439 (regno_reg_class): Rewrite.
13440 (fp_reg_names): Remove.
13441 (sh_register_names, sh_additional_register_names): New.
13442 (print_operand): Added `u'. Support SUBREGs in addresses.
13443 Add parentheses around shifted CONSTs.
13444 (output_file_start): Output .mode and .abi directives.
13445 (shiftcosts, addsubcosts, multcosts): Adjust.
13446 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
13447 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
13448 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
13449 bytes, not registers. Take into account the need for the
13450 SHcompact incoming args trampoline. Adjust all callers.
13451 (sh_expand_prologue): Take stack_regs into account. Call
13452 incoming args trampoline. Keep stack aligned as per SH5 ABI.
13453 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
13454 stack aligned as per SH5 ABI.
13455 (sh_builtin_saveregs): Support SH5 ABI.
13456 (sh_build_va_list, sh_va_start): Likewise.
13457 (initial_elimination_offset): Take alignment into account.
13458 Compute location of PR according to the SH5 stack frame.
13459 (arith_reg_operand): Reject branch-target registers.
13460 (shmedia_6bit_operand): New.
13461 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13462 (target_reg_operand): Match DImode only. Accept SUBREGs.
13463 (target_operand): New.
13464 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13465 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
13466 SIBCALL_REGS for SHmedia.
13467 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13468 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13469 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13470 (TARGET_SWITCHES): New SH5 flags.
13471 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
13472 VALID_REGISTER_P to disable unsupported registers.
13473 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13474 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13475 (FUNCTION_ARG_PADDING): Define.
13476 (FASTEST_ALIGNMENT): Adjust.
13477 (SH_REGISTER_NAMES_INITIALIZER): New.
13478 (sh_register_names): Declare.
13479 (DEBUG_REGISTER_NAMES): Define.
13480 (REGISTER_NAMES): Define based on sh_register_names.
13481 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13482 (sh_additional_register_names): Declare.
13483 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13484 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13485 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13486 (REGISTER_NATURAL_MODE): Define.
13487 (FIRST_PSEUDO_REGISTER): Adjust.
13488 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13489 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13490 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13491 (VECTOR_MODE_SUPPORTED_P): Define.
13492 (REG_CLASS_CONTENTS): Adjust.
13493 (SMALL_REGISTER_CLASSES): Adjust.
13494 (REG_ALLOC_ORDER): Adjust.
13495 (INDEX_REG_CLASS): Adjust.
13496 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13497 (CONST_OK_FOR_LETTER_P): Adjust.
13498 (PREFERRED_RELOAD_CLASS): Adjust.
13499 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13500 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13501 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13502 (FIRST_FP_PARM_REG): Adjust.
13503 (CALL_POPS_ARGS): Define.
13504 (FUNCTION_ARG_REGNO_P): Adjust.
13505 (struct sh_args): New fields.
13506 (GET_SH_ARG_CLASS): Adjust.
13507 (INIT_CUMULATIVE_ARGS): Adjust.
13508 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13509 (FUNCTION_ARG_ADVANCE): Adjust.
13510 (FUNCTION_ARG): Adjust.
13511 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13512 (FUNCTION_ARG_CALLEE_COPIES): Define.
13513 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13514 (STRICT_ARGUMENT_NAMING): Define.
13515 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13516 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13517 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13518 (SETUP_INCOMING_VARARGS): Adjust.
13519 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13520 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13521 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13522 (SUBREG_OK_FOR_INDEX_P): Adjust.
13523 (EXTRA_CONSTRAINT_S): Update.
13524 (EXTRA_CONSTRAINT_T): New.
13525 (EXTRA_CONSTRAINT): Adjust.
13526 (GO_IF_LEGITIMATE_INDEX): Adjust.
13527 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13528 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13529 (MOVE_MAX): Adjust.
13530 (MAX_MOVE_MAX): Define.
13532 (CONST_COSTS): Adjust.
13533 (REGISTER_MOVE_COST): Adjust.
13534 (BRANCH_COST): Adjust.
13535 (TEXT_SECTION_ASM_OP): Adjust.
13536 (DBX_REGISTER_NUMBER): Adjust.
13537 (ASM_OUTPUT_DOUBLE_INT): New.
13538 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13539 (PREDICATE_CODES): Adjust.
13540 (PROMOTE_MODE): Adjust.
13541 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13542 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13543 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13544 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13545 (DR0_REG, DR2_REG, DR4_REG): Renumber.
13546 (TR0_REG, TR1_REG, TR2_REG): New.
13547 (XD0_REG): Renumber.
13548 (UNSPEC_COMPACT_ARGS): New.
13549 (type): Added pt and ptabs.
13550 (length): Default to 4 on SHmedia. Default pt length to 12
13551 and 20 on SHmedia32 and SHmedia64, respectively.
13552 (pt): New function unit.
13553 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
13554 Add whitespace between operands of SHmedia instructions.
13556 (adddi3_media, addsi3_media): Adjust constraints.
13557 (subsi3) [SHmedia]: Force operand 1 into a register.
13558 (udivsi3_i1_media, udivsi3_i4_media): New.
13559 (udivsi3): Support SHmedia.
13560 (divsi3_i1_media, divsi3_i4_media): New.
13561 (divsi3): Support SHmedia.
13562 (anddi3, iordi3, xordi3): Adjust constraints.
13563 (zero_extendhidi2, zero_extendqidi2): New.
13564 (extendsidi2, extendhidi2, extendqidi2): New.
13565 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13566 (pop_e, pop_fpul, pop_4): Likewise.
13567 (movsi_media): Support FP and BT registers.
13568 (movsi_media_nofpu): New. Adjust splits to DImode.
13569 (lduw, ldub): Renamed to zero_extend* above.
13570 (movqi_media): Fix typo.
13571 (movdi_media): Support FP and BT registers.
13572 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
13573 (movdi_const_32bit): New.
13574 (shori_media): Require immediate operand. Use `u' for output.
13575 (movdf_media, movsf_media): Simplified.
13576 (movdf_media_nofpu, movsf_media_nofpu): New.
13577 (movdf, movsf): Adjust
13578 (movv2sf, movv2sf, movv16sf): New.
13579 (beq_media, beq_media_i): Adjust constraints. Don't use
13580 scratch BT register.
13581 (bne_media, bne_media_i): Likewise.
13582 (bgt_media, bgt_media_i): Likewise.
13583 (bge_media, bge_media_i): Likewise.
13584 (bgtu_media, bgtu_media_i): Likewise.
13585 (bgeu_media, bgeu_media_i): Likewise.
13586 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13587 bunordered): Emit jump insn. Force operands to registers when
13589 (jump_media, jump): Simplify.
13590 (call_compact, call_compact_rettramp): New.
13591 (call_value_compact, call_value_compact_rettramp): New.
13592 (call_media, call_value_media): Simplify.
13593 (sibcall_compact, sibcall_media): New.
13594 (call, call_value): Adjust for SHmedia and SHcompact.
13595 (sibcall, sibcall_value, untyped_call): Likewise.
13596 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13597 (indirect_jump): Adjust for SHmedia.
13598 (casesi_jump_media): New.
13599 (nop): Re-enable for SHmedia.
13600 (call_site): Restrict to SH1.
13601 (casesi): Adjust for SHmedia.
13602 (casesi_shift_media, casesi_load_media): New.
13603 (return): Explicitly use PR register. Call return trampoline
13605 (return_i): Explicitly use PR register.
13606 (shcompact_return_tramp, shcompact_return_tramp_i): New.
13607 (return_media): Adjust.
13608 (shcompact_incoming_args): New.
13609 (epilogue): Adjust.
13610 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13611 (movstrsi): Disable on SH5.
13612 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13613 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13614 (subsf3, subsf3_media): Likewise.
13615 (mulsf3, mulsf3_media, mac_media): Likewise.
13616 (divsf3, divsf3_media): Likewise.
13617 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
13618 (floatsisf2, fux_truncsfsi2): Likewise.
13619 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
13621 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13622 (cmpunsf_media, cmpsf): Likewise.
13623 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13624 (abssf2, abssf2_media): Likewise.
13625 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13626 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13627 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
13628 (floatsidf2, fix_truncdfsi2): Likewise.
13629 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
13631 (cmpeqdf_media, cmpgtdf_media): Likewise.
13632 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13633 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13634 (absdf2, absdf2_media): Likewise.
13635 (extendsfdf2, extendsfdf2_media): Likewise.
13636 (truncsfdf2, truncsfdf2_media): Likewise.
13637 * config/sh/sh64.h: New file.
13638 * config/sh/t-sh64: New file.
13639 * config/sh/shmedia.h: New file.
13640 * config/sh/ushmedia.h: New file.
13641 * config/sh/sshmedia.h: New file.
13642 * configure.in: Added sh64-*-elf.
13643 * configure: Rebuilt.
13644 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
13645 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13646 (reg_class_from_letter): Use `b' for TARGET_REGS.
13647 (print_operand): Support `%M', `%m', `AND' and
13648 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
13649 (andcosts): Adjust for SHmedia.
13650 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13652 (target_reg_operand): New function.
13653 * config/sh/sh-protos.h (target_reg_operand): Declare.
13654 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13655 FP registers on SH5.
13656 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13658 (TARGET_REGISTER_P): New macro.
13659 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13660 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13661 (EXTRA_CONSTRAINT_S): New macro.
13662 (EXTRA_CONSTRAINT): Adjust.
13663 (FLOAT_TYPE_SIZE): Define to 32.
13664 (Pmode): DImode on SHmedia.
13665 (CONST_COSTS): Adjust for SHmedia literals.
13666 (PREDICATE_CODES): Added target_reg_operand.
13667 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13668 * config/sh/sh.md: Remove all attrs from SHmedia insns.
13669 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13670 (cmpdi): Accept SHmedia.
13671 (movdicc_false, movdicc_true): New insns.
13672 (movdicc): New expand.
13673 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13675 (addsi3_media): Match `S' constraint.
13676 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13677 (negdi2): Expand for SHmedia.
13678 (one_cmpldi2): New expand.
13679 (zero_extendsidi2): Change from expand to insn.
13680 (extendsidi2): Add constraints.
13681 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
13682 LD/ST address. Fix SI immediate loading split.
13683 (movhi_media, movqi_media, lduw, ldub): New insns.
13684 (movhi, movqi): Accept SHmedia.
13685 (shori_media, movdi_media): Relax input constraints. Split
13686 symbolic constants.
13687 (movdf_media, movsf_media): New insn. New split to movdi.
13688 (movdf, movsf): Match on SHmedia.
13689 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13690 bgeu_media): New insns and splits. New insns with `_i' suffix.
13691 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13692 (bunordered): New expand.
13693 (jump_compact): Renamed from `jump'.
13694 (jump_media): New insn.
13695 (jump): New expand.
13696 (call_media, call_value_media): New insns.
13697 (call, call_value): Adjust.
13698 (indirect_jump_compact): Renamed from `indirect_jump'.
13699 (indirect_jump_media): New insn.
13700 (indirect_jump): New expand.
13701 (untyped_call, return): Accept SHmedia.
13702 (return_media): New insn.
13703 (prologue, epilogue, blockage): Accept SHmedia.
13704 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13705 (sunordered): New expand.
13706 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13707 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13708 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13709 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13710 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13711 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13712 abssf2_media): New insns.
13713 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13714 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13715 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13716 floatdidf2, floatsidf2_media, fix_truncdfdi2,
13717 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13718 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13719 absdf2_media): New insns.
13720 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13721 (extendsfdf2_media, truncdfsf2_media): New insns.
13722 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
13723 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13724 * config/sh/sh.h (CONST_OK_FOR_J): Document.
13725 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13726 * config/sh/sh.md (adddi3): New expand.
13727 (adddi3_media, adddi3z_media): New insns.
13728 (adddi3_compact): Renamed from adddi3.
13729 (addsi3_media): Use add.l r63 to add constant zero.
13730 (subdi3): New expand.
13731 (subdi3_media): New insn.
13732 (subdi3_compact): Renamed from subdi3.
13733 (mulsidi3): New expand.
13734 (mulsidi3_media): New insn.
13735 (mulsidi3_compact): Renamed from mulsidi3.
13736 (umulsidi3): New expand.
13737 (umulsidi3_media): New insn.
13738 (umulsidi3_compact): Renamed from umulsidi3.
13739 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13740 (ashlsi3, ashrsi3, lshrsi3): Use them.
13741 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13742 (ashldi3, ashrdi3, lshrdi3): Use them.
13743 (zero_extendsidi2): New expand.
13744 (extendsidi2): New insn.
13745 (movsi_media): New insn. Split to movdi to load constants.
13746 (movsi): Enable for shmedia.
13747 (movdi_media): New insn. Use shori_media to load wide constants.
13748 (short_media): New insn.
13749 (movdi): Enable for shmedia.
13750 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
13751 * config/sh/sh.h (CPP_SPEC): Added `m5'.
13752 (SUBTARGET_CPP_SPEC): Added `!m5'.
13753 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13754 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
13755 to all other SH variants.
13756 (TARGET_DEFAULT): Set to SH1_BIT.
13757 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13758 (BITS_PER_WORD): Raise to 64 on shmedia.
13759 (MAX_BITS_PER_WORD): Change to 64.
13760 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13761 (INT_TYPE_SIZE): Keep as 32.
13762 (UNITS_PER_WORD): Raise to 8 on shmedia.
13763 (MIN_UNITS_PER_WORD): Keep as 4.
13764 (POINTER_SIZE): Raise to 64 on shmedia.
13765 (CONST_OK_FOR_J): New macro.
13766 (CONST_OK_FOR_LETTER_P): Use it.
13767 (processor_type): Add PROCESSOR_SH5.
13768 * config/sh/sh.md: Conditionalize all expands, insns and
13769 splits to TARGET_SH1.
13771 (addsi3_compact): Renamed from...
13772 (addsi3): Now an expand.
13773 (addsi3_media, subsi3_media): New insns.
13774 (subsi3): Don't negate constants with SHmedia.
13776 * hooks.c: New file.
13777 * hooks.h: New file.
13778 * Makefile.in (HOOKS_H): New.
13779 (TARGET_DEF_H): Added $(HOOKS_H).
13780 (OBJS): Added hooks.o.
13781 (cfgcleanup.o, bb-reorder.o): Added target.h.
13782 (hooks.o): Added dependencies.
13783 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13784 (TARGET_INITIALIZER): this.
13785 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13786 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13787 * bb-reorder.c: Include target.h.
13788 (reorder_basic_blocks): Skip if cannot modify jumps.
13789 * cfgcleanup.c: Include target.h.
13790 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13792 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13794 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13795 Protect jump delay slot instructions with .set noreorder and
13798 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13800 * config/mips/mips.md (casesi_internal_di): Calculate
13801 the index into the target offset table correctly.
13803 2002-02-08 Richard Henderson <rth@redhat.com>
13805 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13806 * final.c (output_addr_const): Accept and discard SUBREG.
13807 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13808 mark them unknown instead.
13809 (simplify_subtraction): Handle RTX_UNKNOWN.
13810 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13812 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13814 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13816 2002-02-08 Richard Henderson <rth@redhat.com>
13818 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13820 2002-02-08 Andreas Jaeger <aj@suse.de>
13822 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13823 * config/i386/t-linux64: New file.
13825 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13827 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13828 * c-parse.in (compstmt): Clear last_expr_type.
13830 2002-02-07 Richard Henderson <rth@redhat.com>
13832 * loop.c (strength_reduce): Sink final_value when not
13835 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13837 * config/sparc/freebsd.h: Fix mismatched spec {.
13839 2002-02-07 Richard Henderson <rth@redhat.com>
13841 * cfgrtl.c: Include recog.h and insn-config.h.
13842 (keep_with_call_p): Fix general_operand invocation.
13843 * Makefile.in (cfgrtl.o): Update dependencies.
13845 2002-02-07 Kazu Hirata <kazu@hxi.com>
13847 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13848 comment. Accept HImode only if TARGET_H8300.
13850 2002-02-07 Eric Christopher <echristo@redhat.com>
13852 * config/mips/crtn.asm: Cleanup #ifdefs.
13854 2002-02-07 Eric Christopher <echristo@redhat.com>
13856 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13857 register 7 as RA instead of $31.
13858 * config/mips/crtn.asm: Ditto.
13859 * config/mips/mips.c (mips_move_2words): Add case for
13860 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13861 (compute_frame_size): Fix typo.
13862 (save_restore_insns): Ditto. Make documentation about using
13863 register $7 as return register more precise.
13864 (mips_expand_epilogue): Fix comment. Add code to work around not
13865 being able to add to the stack pointer directly.
13866 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13867 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13870 2002-02-07 Tom Rix <trix@redhat.com>
13872 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13873 immediates in ldu and stdu DS opcode field.
13874 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13875 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13876 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13878 2002-02-07 Jeff Sturm <jsturm@one-point.com>
13880 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13881 offset for stack bias.
13883 2002-02-07 H.J. Lu <hjl@gnu.org>
13885 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13887 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
13889 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13891 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
13893 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13894 * i386.c (x86_order_regs_for_local_alloc): New global function.
13895 * i386.h (REG_ALLOC_ORDER): CLeanup.
13896 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13898 2002-02-07 Richard Henderson <rth@redhat.com>
13900 PR optimization/2463
13901 * alias.c (find_base_value): Recall base values for fixed hard regs.
13902 * loop.c (loop_regs_update): Don't use single_set on non-insns.
13904 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
13906 * config/mips/mips.md (define_delay) [mips16]: Adjust required
13909 2002-02-06 Richard Henderson <rth@redhat.com>
13912 * stmt.c (resolve_operand_name_1): Take more care with mixed
13913 named and unnamed operands.
13915 2002-02-06 Janis Johnson <janis187@us.ibm.com>
13916 Jan Hubicka <jh@suse.cz>
13918 * loop.c (remove_constant_addition): Avoid clobbering a shared
13921 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13923 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13924 * config/s390/t-linux64: New file.
13925 * config/s390/libgcc-glibc.ver: New file.
13927 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13929 * config/s390/linux64.h: Delete file.
13930 * config/s390/s390x.h: New file.
13931 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13932 as target header file.
13933 * config/s390/linux.h (TARGET_VERSION): Define depending on
13934 DEFAULT_TARGET_64BIT.
13935 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13936 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13937 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13938 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13939 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13940 (EXTRA_SPEC): New define.
13941 * config/s390/s390.h (TARGET_VERSION): Define depending on
13942 DEFAULT_TARGET_64BIT.
13943 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13945 2002-02-06 Jason Merrill <jason@redhat.com>
13947 * c-decl.c (finish_function): Warn about a non-void function with
13948 no return statement and no abnormal exit.
13949 (current_function_returns_abnormally): New variable.
13950 (start_function): Clear it.
13951 (struct c_language_function): Add returns_abnormally.
13952 (push_c_function_context): Save it.
13953 (pop_c_function_context): Restore it.
13954 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13955 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13956 an explicit return type.
13957 * c-tree.h: Declare current_function_returns_abnormally.
13958 (C_FUNCTION_IMPLICIT_INT): New macro.
13959 * c-typeck.c (build_function_call): Set it.
13960 (c_expand_return): Set current_function_returns_value even if the
13961 value is erroneous.
13963 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13966 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13967 unsafe for reevaluation.
13969 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13972 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13973 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13975 2002-02-06 Richard Henderson <rth@redhat.com>
13977 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13978 be a general_operand. Dest for function value must be a pseudo.
13980 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13982 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13983 as SYMBOL_REFs from the constant pool.
13985 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
13987 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13988 passed by invisible reference.
13990 2002-02-05 Richard Henderson <rth@redhat.com>
13992 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13994 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
13996 Implement using "base addresses" in insn operands as default.
13997 * config/mmix/mmix.c (mmix_conditional_register_usage): if
13998 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13999 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
14000 used to read the rtx value.
14001 (mmix_target_asm_function_epilogue): Fix spacing.
14002 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
14003 (mmix_legitimate_address): Ditto.
14004 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
14005 should be loaded with a GETA insn. Don't allocate needless extra
14006 char for nul termination and fix misleading comment.
14007 (mmix_print_operand_address): Handle constants if
14008 TARGET_BASE_ADDRESSES.
14009 (mmix_output_register_setting): Use base addressing if
14010 TARGET_BASE_ADDRESSES and the number of insns is 3.
14011 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
14012 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
14013 to use R as constraint, add LDA to match s.
14014 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
14015 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
14016 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
14017 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
14018 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
14019 order with other fixed registers.
14020 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
14021 other parameter/call-clobbered registers.
14022 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
14023 -mbase-addresses, -mno-base-addresses.
14024 (MMIX Options): Ditto.
14026 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
14028 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
14030 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
14032 * config/rs6000/altivec.h: Change elem to _S_elem.
14034 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
14036 * config/netbsd.h (WCHAR_TYPE): Define.
14037 (WCHAR_TYPE_SIZE): Ditto.
14038 (WINT_TYPE): Ditto.
14039 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
14040 (WCHAR_UNSIGNED): Ditto.
14041 (WCHAR_TYPE_SIZE): Ditto.
14042 (WINT_TYPE): Ditto.
14043 * config/arm/netbsd.h: Likewise.
14044 * config/i386/netbsd-elf.h: Likewise.
14045 * config/i386/netbsd.h: Likewise.
14046 * config/m68k/netbsd-elf.h: Likewise.
14047 * config/m68k/netbsd.h: Likewise.
14048 * config/ns32k/netbsd.h: Likewise.
14049 * config/sparc/netbsd.h: Likewise.
14050 * config/vax/netbsd.: Likewise.
14052 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
14054 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
14055 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
14056 (TARGET_INITIALIZER): this.
14057 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
14058 (BITFIELD_NBYTES_LIMITED): Markup fix.
14059 * tree.h (default_ms_bitfield_layout_p): Declare.
14060 (record_layout_info): Added prev_field.
14061 * tree.c (default_ms_bitfield_layout_p): New fn.
14062 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
14063 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
14064 * stor-layout.c: Include target.h.
14065 (start_record_layout): Initialize prev_field.
14066 (place_field): Handle MS bit-field layout, and disregard
14067 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
14068 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
14069 * Makefile.in (stor-layout.o): Adjust dependencies.
14071 2002-02-05 Jason Merrill <jason@redhat.com>
14073 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
14075 2002-02-05 Andreas Jaeger <aj@suse.de>
14077 * crtstuff.c: Fix comments.
14079 2002-02-05 Richard Henderson <rth@redhat.com>
14082 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
14083 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
14086 * config/mips/mips.c (function_arg): Handle TImode.
14087 (function_arg_advance): Likewise.
14089 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14091 * config/rs6000/altivec.h (vec_step_help): Rename to
14094 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14096 * config/rs6000/altivec.h: Fix typos.
14098 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
14100 * config/arm/netbsd.h: Correct a comment.
14102 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14104 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
14105 building void typed builtins.
14107 * config/rs6000/altivec.h (vec_ld*): Fix typos.
14108 (vec_step): Implement for C++.
14110 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14112 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
14114 2002-02-04 Richard Henderson <rth@redhat.com>
14116 * combine.c (nonzero_bits): Re-introduce special case for
14117 sp/fp/ap wrt REGNO_POINTER_ALIGN.
14119 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14121 * doc/extend.texi: Warn about unsupported usage of altivec
14124 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
14125 (altivec_predicate_*): New.
14127 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
14128 Add C++ version of vec_*() functions.
14130 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
14131 (bdesc_2arg): Remove altivec predicates.
14132 (altivec_expand_builtin): Handle predicates.
14133 (altivec_init_builtins): Handle predicates.
14134 (altivec_expand_predicate_builtin): New.
14136 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14138 * pa.c (DO_FRAME_NOTES): Move forward.
14139 (store_reg): Revise handling of frame notes.
14140 (load_reg): Likewise.
14141 (set_reg_plus_d): Likewise.
14142 (hppa_expand_prologue): Likewise.
14143 (hppa_expand_epilogue): Likewise.
14145 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14147 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
14149 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14151 PR c/4475, c++/3780:
14152 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
14153 * c-common.h (SWITCH_TYPE): Define.
14154 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
14155 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
14156 Rename spareness variable to sparseness.
14157 (expand_end_case_type): Renamed from expand_end_case, use orig_type
14158 if non-NULL instead of TREE_TYPE (orig_index).
14159 * tree.h (expand_end_case_type): Renamed from expand_end_case.
14160 (expand_end_case): Define using expand_end_case_type.
14161 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
14162 to expand_end_case_type.
14163 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
14165 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14167 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
14168 (BIGGEST_ALIGNMENT): Change to 128.
14170 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14172 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
14174 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14176 * pa.md (call_internal_reg_64bit): Remove unused variable.
14178 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
14180 * config/arm/arm.h (machine_function): Add uses_anonymous_args
14182 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
14183 * config/arm/arm.c (current_function_anonymous_args): Delete,
14184 replace uses with cfun->machine->uses_anonymous_args.
14185 (arm_reorg): Do not reset uses_anonymous_args.
14187 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
14188 any geenral register.
14190 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
14192 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
14195 2002-02-04 Richard Henderson <rth@redhat.com>
14197 * combine.c (force_to_mode): Remove STACK_BIAS code.
14198 (nonzero_bits): Likewise. Replace sp/fp special case with
14199 REGNO_POINTER_ALIGN.
14201 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14202 (HARD_FRAME_POINTER_REGNUM): New.
14203 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14204 (FIXED_REGS, CALL_USED_REGS): Update.
14205 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14206 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14207 (HARD_REGNO_NREGS): Update for SFP.
14208 (STACK_POINTER_OFFSET): Include bias here ...
14209 (FIRST_PARM_OFFSET): ... not here.
14210 (STACK_BIAS): Remove.
14211 (INIT_EXPANDERS): New.
14212 (STARTING_FRAME_OFFSET): Do not include bias.
14213 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14214 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14215 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14216 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14217 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14218 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14219 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14220 (MUST_SAVE_REGISTER): Likewise.
14221 (sparc_flat_function_prologue): Likewise.
14222 (sparc_flat_function_epilogue): Likewise.
14223 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14224 (sparc_init_modes): SFP is GENERAL_REGS.
14225 (sparc_builtin_saveregs): SFP does not have bias applied.
14227 2002-02-04 Richard Henderson <rth@redhat.com>
14229 * config/alpha/alpha.c (current_function_is_thunk): Don't check
14230 current_function_is_thunk.
14231 (alpha_sa_mask): Distinguish between current_function_is_thunk
14232 called from ASM_OUTPUT_MI_THUNK and not.
14233 (alpha_does_function_need_gp): Thunks always need gp.
14234 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14235 (alpha_output_mi_thunk_osf): New.
14236 * config/alpha/alpha-protos.h: Update.
14237 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14239 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
14241 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14242 function types, not when they're taken away.
14244 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
14246 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14247 CODE_LABEL and jump table when replacing a table jump with a
14250 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14252 * config/s390/s390-protos.h (legitimize_la_operand,
14253 s390_secondary_input_reload_class, s390_plus_operand,
14254 s390_expand_plus_operand): Add prototypes.
14256 config/s390/s390.c (s390_secondary_input_reload_class,
14257 s390_plus_operand, s390_expand_plus_operand): New functions.
14259 (struct s390_address): New member 'pointer'.
14260 (s390_decompose_address): Compute it.
14261 (legitimate_la_operand_p): Use it.
14262 (legitimize_la_operand): New function.
14263 (movti, movdi, movdf splitters): Call it.
14265 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14266 (PREDICATE_CODES): Add s390_plus_operand.
14268 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14269 (la_ccclobber): Allow GENERAL_REGS as output operand.
14271 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14272 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14273 (*la_64, *la_31, reload_indi, reload_insi): ... these.
14275 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14277 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14278 register names for regular asm () construct.
14280 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14282 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14285 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14287 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14290 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
14292 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14293 constant pool to be identical by string address and index.
14295 2002-02-04 Anthony Green <green@redhat.com>
14297 * output.h (SECTION_OVERRIDE): Define.
14298 * varasm.c (named_section): Obey SECTION_OVERRIDE.
14300 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
14302 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14303 by existing arm*-*-netbsd* (a.out) target.
14304 (ns32k-*-netbsdelf*): Likewise.
14305 (sparc-*-netbsdelf*): Likewise.
14306 (vax-*-netbsdelf*): Likewise.
14308 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
14310 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14311 headers and libobjc headers.
14313 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
14315 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14316 (_mingw.h): Remove duplicate include.
14318 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
14320 * config.gcc: Set cpu_type to m68k for 68010, as well.
14321 (m68010-*-netbsdelf*): New...
14322 (m68k*-*-netbsdelf*): ...targets.
14323 * config/m68k/netbsd-elf.h: New file.
14325 2002-02-02 Kazu Hirata <kazu@hxi.com>
14327 * config/h8300/h8300.c (hand_list): Move inside function_arg.
14329 2002-02-02 Kazu Hirata <kazu@hxi.com>
14331 * config/h8300/h8300.c (h8_push_ops): Move inside
14333 (h8_pop_ops): Likewise.
14334 (h8_move_ops): Likewise.
14336 2002-02-02 Kazu Hirata <kazu@hxi.com>
14338 * config/h8300/h8300.c (os_task): Make it static.
14339 (monitor): Likewise.
14340 (pragma_saveall): Likewise.
14342 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
14344 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14345 constant is a valid sign-extension for Pmode.
14347 2002-02-02 Kazu Hirata <kazu@hxi.com>
14349 * config/h8300/h8300.c: Fix formatting.
14351 2002-02-02 Kazu Hirata <kazu@hxi.com>
14353 * config/h8300/h8300.md: Fix formatting.
14355 2002-02-02 Kazu Hirata <kazu@hxi.com>
14357 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14358 predicates of operands[1]. Split the patterns for each
14361 2002-02-02 Kazu Hirata <kazu@hxi.com>
14363 * config/h8300/h8300.md (xor patterns): Tighten the predicates
14364 of operands[1] to register_operand.
14366 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
14368 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14369 * cpphash.c (_cpp_init_hashtable): Similarly.
14370 * cppinit.c (cpp_create_reader): Default the signed_char flag.
14371 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14372 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14373 (cpp_handle_option): Handle the new options.
14374 * cpplex.c (cpp_interpret_charconst): Use new flag.
14375 * cpplib.h (struct cpp_options): New member signed_char.
14376 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14377 (cpp_options): Handle -fsigned-char and -funsigned-char.
14378 (static_specs): Remove signed_char_spec.
14379 (do_spec1): Don't handle %c.
14380 * system.h: Poison SIGNED_CHAR_SPEC.
14381 * tradcif.y (yylex): Use flag_signed_char.
14382 * tradcpp.h (flag_signed_char): New.
14383 * tradcpp.c (flag_signed_char): New.
14384 (main): Handle new command-line options.
14385 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14387 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14388 * avr/avr.h: Remove old comments.
14389 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14390 (CC1_SPEC): Pass -fsigned-char if -mic*.
14391 (SIGNED_CHAR_SPEC): Remove.
14393 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14395 2002-02-01 Eric Christopher <echristo@redhat.com>
14397 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14398 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14399 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14400 (ASM_OUTPUT_REG_POP): Ditto.
14402 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
14404 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14407 2002-02-02 Jakub Jelinek <jakub@redhat.com>
14409 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14411 2002-02-02 Jakub Jelinek <jakub@redhat.com>
14414 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14417 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14419 * cfganal.c: Include tm_p.h.
14420 (keep_with_call_p): Fix the test that determines if a register holds
14421 the return value of a call.
14423 2002-02-01 DJ Delorie <dj@redhat.com>
14425 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14426 we are given conflicting registers, switch to the other one we
14427 had allocated for us.
14428 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14429 as TImode so we know when the "other" register is available.
14431 2002-02-01 David O'Brien <obrien@FreeBSD.org>
14433 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14436 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14438 * cfganal.c (keep_with_call_p): New function.
14439 (flow_call_edges_add): Prevent splitting a block between a call and
14440 a single-set instruction that should be kept in the same block.
14442 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
14444 * doc/install.texi (avr): Update outdated URL.
14446 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
14448 * config/stormy16/stormy16.md (pushqi): New.
14452 (movhi): Remove stack operands.
14454 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14455 nonimmediate_nonstack_operand.
14456 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14458 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14461 2002-01-31 Jason Merrill <jason@redhat.com>
14463 * Makefile.in (c-parse.c): Handle .output file.
14464 * objc/Make-lang.in (objc-parse.c): Likewise.
14466 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
14468 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14469 the -me[lb] option is given. Don't output the default flag
14472 2002-01-31 Zack Weinberg <zack@codesourcery.com>
14474 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14475 the primary source file; this has not been done yet.
14476 * c-decl.c (c_expand_body): Reset input_filename from
14477 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14479 2002-01-31 Kazu Hirata <kazu@hxi.com>
14481 * rtlanal.c (subreg_regno_offset): Do not use
14482 SUBREG_REGNO_OFFSET.
14483 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14484 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14486 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14488 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
14489 version rather than GNATS version in --version output.
14491 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
14493 * ifcvt.c (noce_process_if_block): Make a copy of the destination
14494 when copying back from a temporary.
14496 2002-01-30 Richard Henderson <rth@redhat.com>
14498 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14499 and new_dest are the same.
14501 2002-01-30 Richard Henderson <rth@redhat.com>
14504 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14505 * rtl.c (note_insn_name): Update.
14506 * emit-rtl.c (remove_unnecessary_notes): Kill it.
14507 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
14508 to perform loop rotation.
14509 (expand_exit_loop_top_cond): New.
14510 * tree.h (expand_exit_loop_top_cond): Declare it.
14511 * c-semantics.c (genrtl_while_stmt): Use it.
14512 (genrtl_for_stmt): Likewise.
14514 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
14516 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14517 arguments to 64-bit boundaries on 64-bit ABIs.
14519 2002-01-30 Steve Ellcey <sje@cup.hp.com>
14521 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14523 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14525 * c-decl.c (grokdeclarator): Handle type being a typedef for an
14528 2002-01-30 David O'Brien <obrien@FreeBSD.org>
14530 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14531 * config/sparc/sparc_bi.h: Remove file.
14532 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14534 2002-01-30 Richard Henderson <rth@redhat.com>
14536 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14538 2002-01-30 Zack Weinberg <zack@codesourcery.com>
14540 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14542 2002-01-30 Jason Merrill <jason@redhat.com>
14544 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14545 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14546 (reg_save): Use DW_CFA_offset_extended_sf instead.
14548 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14550 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14552 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14555 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
14557 * rs6000.md ("*call_value_local32"): Remove constraints.
14558 ("*call_value_local64"): Same.
14559 ("*call_value_indirect_nonlocal_aix32"): Same.
14560 ("*call_value_nonlocal_aix32"): Same.
14561 ("*call_value_indirect_nonlocal_aix64"): Same.
14562 ("*call_value_nonlocal_aix64"): Same.
14563 ("*call_value_nonlocal_sysv"): Same.
14565 2002-01-29 Richard Henderson <rth@redhat.com>
14567 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14569 2002-01-29 Richard Henderson <rth@redhat.com>
14571 * expr.c (force_operand): Ignore flag_pic for detecting pic
14573 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14574 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14575 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14576 instead of open-coded loop.
14577 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14578 be fixed when in use.
14580 2002-01-29 Richard Henderson <rth@redhat.com>
14582 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14583 * sched-rgn.c (propagate_deps): Update them.
14584 * sched-deps.c (sched_analyze_insn): Update them. Flush the
14585 clobbers list when either gets too long.
14587 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14589 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14590 and INDEX_REGS the same as GENERAL_REGS.
14591 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14593 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14595 * tree.c (build_nonstandard_integer_type): Correct prototype.
14597 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
14599 * config/s390/s390.md (movstrsico, movstrdix_64,
14600 movstrsix_31): Remove, replace by ...
14601 (movstrdi_short, movstrsi_short, movstrdi_long,
14602 movstrsi_long): ... these. New.
14603 (movstrdi, movstrsi): Adapt.
14605 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14606 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14607 Remove unnecessary CC clobber.
14608 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14609 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14611 (divmoddi4): Don't partially initialize TImode register.
14613 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
14615 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14617 2002-01-29 Richard Henderson <rth@redhat.com>
14619 * flow.c (print_rtl_and_abort): Remove.
14620 (print_rtl_and_abort_fcn): Remove.
14621 (verify_local_live_at_start): Use dump_bb instead.
14622 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14623 (verify_wide_reg_1): Return 2 on mode test failure.
14625 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14627 PR c/3325, c/3326, c/2511, c/3347
14628 * c-decl.c (enum_decl_context): Remove BITFIELD.
14629 (grokdeclarator): Take bitfield width as an input.
14630 Ensure bitfields are given the correct type. Perform
14631 bitfield width validation with build_bitfield_integer_type
14632 rather than waiting for finish_struct.
14633 (grok_typename, grok_typename_in_parm_context, start_decl,
14634 push_parmdecl, grokfield, start_function): Update calls to
14636 (build_bitfield_integer_type): New function.
14637 (finish_struct): Move bitfield validation to grokdeclarator
14638 and build_bitfield_integer_type.
14639 * tree.c (build_nonstandard_integer_type): New function.
14640 * tree.h (build_nonstandard_integer_type): New prototype.
14642 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14644 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14647 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14648 don't ignore unrecognized -W* options.
14649 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14650 * cpplib.h (cpp_handle_option): Adjust prototype.
14651 * c-decl.c (c_decode_options): Pass 0 as last argument to
14655 * gcc.c (cpp_unique_options): Split from cpp_options.
14656 (cpp_options): Source cpp_unique_options.
14657 (default_compilers): Use cpp_unique_options instead of cpp_options
14658 when used together with cc1_options.
14659 (static_specs): Add cpp_unique_options.
14660 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14661 when used together with cc1_options.
14663 2002-01-29 Kazu Hirata <kazu@hxi.com>
14665 * config/h8300/h8300-protos.h: Update the prototype of
14667 * config/h8300/h8300.c (output_a_shift): Remove an unused
14668 argument 'insn'. Remove redundant code.
14669 * config/h8300/h8300.md: Adust to the new prototype of
14672 2002-01-29 Kazu Hirata <kazu@hxi.com>
14674 * config/h8300/h8300-protos.h: Update the prototypes of
14675 emit_a_rotate and expand_a_rotate.
14676 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14677 first argument to 'enum rtx_code'.
14678 (expand_a_rotate): Likewise.
14680 2002-01-28 Kazu Hirata <kazu@hxi.com>
14682 * config/h8300/h8300-protos.h: Update the prototype of
14684 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14686 * config/h8300/h8300.md: Adjust to the new prototype.
14688 2002-01-28 Kazu Hirata <kazu@hxi.com>
14690 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14693 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14695 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14696 is a fixed register before returning pic_offset_table_rtx.
14697 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14698 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14700 2002-01-28 Jason Merrill <jason@redhat.com>
14702 * dwarf2.h: Sync with src version.
14704 2002-01-28 Paul Koning <pkoning@equallogic.com>
14706 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14707 BT_FN_VOID_PTR_VAR.
14708 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14709 * doc/extend.texi (__builtin_prefetch): Update documentation:
14710 first argument is now const void ptr.
14712 2002-01-28 Kazu Hirata <kazu@hxi.com>
14714 * config/h8300/h8300-protos.h: Remove an unused prototype.
14716 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
14718 * toplev.c (lang_independent_init): Round up identifier size.
14720 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14722 * config.gcc: Revert previous change.
14724 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
14726 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14728 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14730 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14731 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
14732 other non-elf netbsd config frags.
14733 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14734 collect2 will does that.
14735 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14736 shared-lib frobbing will work.
14738 2002-01-28 Kazu Hirata <kazu@hxi.com>
14740 * config/h8300/h8300.h: Fix formatting.
14741 * config/h8300/h8300.md: Likewise.
14743 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
14745 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14746 the old, removed AAA_standards fix.
14747 * fixinc/fixincl.x: Rebuilt.
14749 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
14751 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14752 atexit call in crtbegin, hooked in after call to frame_dummy;
14753 register EH before registering __fini__start.
14755 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
14757 * config/rs6000/altivec.h: Remove spurious semicolons.
14759 2002-01-27 Kazu Hirata <kazu@hxi.com>
14761 * config/h8300/h8300.md: Replace dead bit extraction patterns
14762 with ones that work.
14764 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14766 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14767 if not STRICT_ALIGNMENT.
14768 * rtl.h (MEM_ALIGN): Likewise.
14770 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
14772 * doc/invoke.texi (-fdump-translation-unit): Revert this
14773 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
14775 2002-01-27 Kazu Hirata <kazu@hxi.com>
14777 * config/h8300/h8300.md (define_constants): New.
14778 (anonymous patterns) Use defined constants appropriately.
14780 2002-01-27 Kazu Hirata <kazu@hxi.com>
14782 * config/h8300/h8300.c (function_arg): Remove redundant code.
14784 2002-01-26 Richard Henderson <rth@redhat.com>
14786 * sched-deps.c (reg_pending_uses_head): New.
14787 (reg_pending_barrier): Rename from reg_pending_sets_all.
14788 (find_insn_list): Don't mark inline.
14789 (find_insn_mem_list): Remove.
14790 (add_dependence_list, add_dependence_list_and_free): New.
14791 (flush_pending_lists): Replace only_write param with separate
14792 for_read and for_write parameters. Update all callers. Use
14793 add_dependence_list_and_free.
14794 (sched_analyze_1): Do not add reg dependencies here; just set
14795 the pending bits. Use add_dependence_list.
14796 (sched_analyze_2): Likewise.
14797 (sched_analyze_insn): Replace schedule_barrier_found with
14798 reg_pending_barrier. Add all dependencies for pending reg
14799 uses, sets, and clobbers.
14800 (sched_analyze): Don't add reg dependencies for calls, just
14801 set pending bits. Use regs_invalidated_by_call. Treat
14802 sched_before_next_call as a normal list, not a fake insn.
14803 (init_deps): No funny init for sched_before_next_call.
14804 (free_deps): Free pending mems lists. Don't zero reg_last.
14805 (init_deps_global): Init reg_pending_uses.
14806 (finish_deps_global): Free it.
14807 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14808 (find_insn_mem_list): Remove.
14809 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14810 (propagate_deps): Use them. Zero temp mem lists.
14812 2002-01-26 Richard Henderson <rth@redhat.com>
14814 * Makefile.in (CRTSTUFF_CFLAGS): New.
14815 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14816 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14817 crtstuff.c instead of alpha assembly version.
14818 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14819 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14820 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14821 (__do_global_dtors_aux): Mark used.
14822 (frame_dummy, __do_global_ctors_aux): Mark used.
14823 (fini_dummy, init_dummy): Remove.
14825 * config/alpha/crtbegin.asm: Remove file.
14826 * config/alpha/crtend.asm: Remove file.
14827 * config/alpha/t-crtbe: Remove file.
14828 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14829 (LINK_EH_SPEC): New.
14831 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14832 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14833 calling constructors.
14834 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14836 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14837 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14838 CRT_END_INIT_DUMMY hack.
14839 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14840 FORCE_{INIT,FINI}_SECTION_ALIGN.
14842 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14843 FORCE_{INIT,FINI}_SECTION_ALIGN.
14845 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14846 invocation sequence.
14847 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14849 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14850 (FORCE_CODE_SECTION_ALIGN): New.
14852 2002-01-26 Richard Henderson <rth@redhat.com>
14854 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14856 2002-01-26 Richard Henderson <rth@redhat.com>
14858 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14859 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14861 2002-01-26 Kazu Hirata <kazu@hxi.com>
14863 * config/h8300/h8300.md: Remove bit extraction patterns that
14864 cannot be triggered.
14865 Restrict each bit extraction pattern to a variant on which the
14868 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14870 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14872 2002-01-26 Kazu Hirata <kazu@hxi.com>
14874 * config/h8300/h8300.md: Remove bit test patterns that cannot
14876 Restrict each bit test pattern to a variant on which the
14879 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14881 * builtins.c (expand_builtin_strncat): Remove redundant check for
14884 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14886 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14888 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14891 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14893 * dbxout.c (dbxout_init): Use assemble_name rather than just
14894 stripping off the first character.
14895 (dbxout_source_file): Likewise.
14897 2002-01-25 DJ Delorie <dj@redhat.com>
14899 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14900 using rtx_equal_p, not by comparing pointers.
14902 2002-01-25 Steve Ellcey <sje@cup.hp.com>
14904 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14905 for PIC_OFFSET_TABLE_REGNUM.
14906 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14908 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14910 * config.gcc (x86_64-*-freebsd*): New target.
14911 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14913 (i[34567]86-*-freebsd*): Don't include svr4.h.
14914 * config/i386/freebsd64.h: New file.
14916 2002-01-25 Douglas B Rupp <rupp@gnat.com>
14918 * config/alpha/x-vms (version): Make static.
14920 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14921 in previous checkin.
14923 * Makefile.in (install-headers-cp): New target.
14924 * config.gcc (alpha-dec-*vms*): Install headers with
14927 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14929 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14932 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14934 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14935 of compare_tree_int.
14936 (expand_builtin_strncat): Likewise.
14937 * c-decl.c (finish_struct): Use tree_low_cst.
14938 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14939 * tree.c (compare_tree_int): Likewise.
14941 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14943 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14944 adjustments even if they are implemented by more than two insns.
14946 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14948 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14949 * df.h (struct ref): Kill B.
14950 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14952 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14953 * flow.c (propagate_one_insn): Use it.
14954 (mark_used_regs): Handle NIL.
14956 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14958 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14961 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14963 * rs6000.md (prefetch): Make address V4SI mode so that the address
14964 is restricted to legitimate form for instruction.
14966 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14968 * doc/install.texi (xtensa-*-elf): New target.
14969 (xtensa-*-linux*): New target.
14970 * doc/contrib.texi: Add myself.
14972 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14974 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14975 purpose register to hold an SImode (or smaller) value.
14977 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14979 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14981 * crtstuff.c: Likewise.
14983 2002-01-25 Kazu Hirata <kazu@hxi.com>
14985 * config/h8300/h8300.md (negation patterns): Tighten
14986 predicates to register_operand.
14988 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
14990 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14993 * builtins.c (expand_builtin_prefetch): Same.
14995 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14997 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
15000 2002-01-24 Kazu Hirata <kazu@hxi.com>
15002 * config/h8300/h8300.c (print_operand): Remove support for
15003 operand character 'A'.
15004 * config/h8300/h8300.md (three anonymous patterns): Replace
15005 operand character 'A' with either 'T' or 'S'.
15007 2002-01-24 Kazu Hirata <kazu@hxi.com>
15009 * config/h8300/h8300.c (print_operand): Remove support for
15010 operand character 'U'.
15012 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
15014 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
15016 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
15018 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
15019 values to be assigned to the stack pointer.
15021 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15023 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
15024 to const_double needs to be done right for big-endian systems.
15026 2002-01-24 Jason Merrill <jason@redhat.com>
15029 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
15030 to can_throw_internal.
15032 2002-01-23 Richard Henderson <rth@redhat.com>
15034 * fold-const.c (fold): Change UINT_MAX test to check vs precision
15035 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
15037 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15039 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
15040 (symGOT2reg): Use them, then set as GOT value as unchanging.
15041 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
15042 as a temporary, if possible.
15043 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
15044 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
15046 2002-01-23 Kazu Hirata <kazu@hxi.com>
15048 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
15049 accept to accept 0x80 as operands[2].
15051 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15053 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
15055 2002-01-23 Richard Henderson <rth@redhat.com>
15057 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
15059 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
15061 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
15062 (parmlist_or_identifiers_1): Verify that only a parmlist follows
15065 2002-01-23 Richard Henderson <rth@redhat.com>
15067 * expr.c (move_by_pieces_1): Extend size before negation.
15069 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
15070 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
15071 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
15072 * config/m68k/t-m68kelf: Likewise.
15074 2002-01-23 Bob Wilson <bob.wilson@acm.org>
15076 * config/xtensa/elf.h: New file.
15077 * config/xtensa/lib1funcs.asm: New file.
15078 * config/xtensa/lib2funcs.S: New file.
15079 * config/xtensa/linux.h: New file.
15080 * config/xtensa/t-xtensa: New file.
15081 * config/xtensa/xtensa-config.h: New file.
15082 * config/xtensa/xtensa-protos.h: New file.
15083 * config/xtensa/xtensa.c: New file.
15084 * config/xtensa/xtensa.h: New file.
15085 * config/xtensa/xtensa.md: New file.
15086 * config.gcc (xtensa-*-elf*): New target.
15087 (xtensa-*-linux*): New target.
15088 * cse.c (canon_hash): Compare rtx pointers instead of register
15089 numbers. This is required for the Xtensa port.
15090 * integrate.c (copy_insn_list): Handle case where the static
15091 chain is in memory and the memory address has to be copied to
15093 * doc/invoke.texi (Option Summary): Add Xtensa options.
15094 (Xtensa Options): New node.
15095 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
15097 2002-01-23 Zack Weinberg <zack@codesourcery.com>
15099 * diagnostic.c (internal_error): Do ICE suppression only
15100 when ENABLE_CHECKING is not defined.
15102 * c-typeck.c (require_complete_type): Return error_mark_node
15103 if type is error_mark_node.
15105 2002-01-23 Janis Johnson <janis187@us.ibm.com>
15107 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
15108 -Os and issue a warning.
15110 2002-01-23 Zack Weinberg <zack@codesourcery.com>
15112 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
15113 current (lack of) need for host configuration by hand.
15115 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
15116 references. Documentation of some target macros moved from
15117 hostconfig.texi to tm.texi.
15119 2002-01-23 Will Cohen <wcohen@redhat.com>
15121 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
15124 2002-01-23 Kazu Hirata <kazu@hxi.com>
15126 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
15129 2002-01-23 Jason Merrill <jason@redhat.com>
15131 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
15133 * function.c (assign_parms): Don't put args of inline functions
15134 into registers when not optimizing.
15136 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
15138 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
15139 (prologue_use): New pattern.
15140 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
15141 preference to gen_rtx_USE.
15142 (thumb_expand_prologue): Use gen_prologue_use in preference to
15144 (thumb_expand_epilogue): Use gen_prologue_use in preference to
15147 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
15149 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
15151 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
15154 * doc/extend.texi: Correct documentation of __alignof__.
15156 2002-01-22 Zack Weinberg <zack@codesourcery.com>
15158 * params.h: Rename arguments of DEFPARAM so that it will be
15159 recognized as a translation keyword.
15161 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15163 * extend.texi: Document altivec functions.
15164 Fix N-bit adjectives in X86 builtin documentation.
15166 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
15168 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
15169 auto_inc_dec values.
15171 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
15173 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
15175 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
15177 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
15179 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
15181 2002-01-22 Richard Henderson <rth@redhat.com>
15183 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
15184 copy_insn not copy_rtx.
15186 2002-01-23 Alan Modra <amodra@bigpond.net.au>
15188 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
15189 "nonzero" as that might add "1" bits. Ensure "constop" is
15190 properly sign extened.
15191 (force_to_mode): Tweak for sign extended constop.
15193 2002-01-22 Richard Henderson <rth@redhat.com>
15195 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15196 for_each_rtx instead of assuming we're already looking at the MEM.
15197 (split_small_symbolic_mem_operand): Likewise.
15198 * config/alpha/alpha.h (PREDICATE_CODES): Update.
15199 * config/alpha/alpha.md (small symbolic memory splitters): Update.
15201 2002-01-22 Richard Henderson <rth@redhat.com>
15203 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15204 sequence number for the literal.
15205 (divmoddi_internal_er): Likewise.
15207 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
15210 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15211 in LIBICONV variable.
15212 * configure: Regenerated.
15214 2002-01-22 Krister Walfridsson <cato@df.lth.se>
15216 * dependence.c (build_def_use): Remove array_idx.
15218 * dwarfout.c (last_filename): Remove.
15219 (output_compile_unit_die): Remove last_filename.
15221 2002-01-22 Roger Sayle <roger@eyesopen.com>
15222 Richard Henderson <rth@redhat.com>
15225 * fold-const.c (fold): Optimize unsigned comparisons against
15226 UINT_MAX (and similar unsigned constants).
15228 2002-01-22 Janis Johnson <janis187@us.ibm.com>
15230 * Makefile.in (loop.o): Depend on OPTABS_H.
15231 * loop.c (emit_prefetch_instructions): Check the prefetch operand
15232 against the predicate.
15235 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15236 for the address operand.
15238 2002-01-22 Richard Henderson <rth@redhat.com>
15240 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15242 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
15245 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15246 preprocessor flags.
15248 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
15250 * config.gcc (x86_64-*-netbsd*): New target.
15251 * config/i386/netbsd64.h: New file.
15253 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15255 * regrename.c (kill_value): Fix typo.
15257 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15259 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15261 * config/rs6000/rs6000.h: Same.
15263 * function.c (instantiate_virtual_regs): Remove
15264 STARTING_FRAME_PHASE.
15265 (assign_stack_local_1): Same.
15266 Calculate frame phase.
15268 2002-01-22 Nick Clifton <nickc@redhat.com>
15270 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15271 variable declaration to outer scope in order to simplify
15273 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15274 arm_hard_regno_mode_ok.
15275 * config/arm/arm-protos.h: Add a prototype for
15276 arm_hard_regno_mode_ok.
15277 * config/arm/arm.c (soft_df_operand): Remove now redundant
15278 check for DImode values using IP_REGNUM.
15279 (nonimmediate_soft_df_operand): Remove now redundant check for
15280 DImode values using IP_REGNUM.
15281 (arm_hard_regno_mode_ok): New function. New check: make sure
15282 that DImode values are not stored in IP_REGNUM.
15284 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15286 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15288 2002-01-22 Jason Merrill <jason@redhat.com>
15290 * c-semantics.c (genrtl_compound_stmt): Only check nesting
15291 consistency if this COMPOUND_STMT is scoped.
15293 2002-01-22 Kazu Hirata <kazu@hxi.com>
15295 * predict.c: Fix formatting.
15296 * print-tree.c: Likewise.
15297 * protoize.c: Likewise.
15298 * real.h: Likewise.
15300 * sbitmap.h: Likewise.
15301 * scan.c: Likewise.
15302 * sched-deps.c: Likewise.
15303 * sched-vis.c: Likewise.
15304 * sdbout.c: Likewise.
15305 * sibcall.c: Likewise.
15307 * ssa-ccp.c: Likewise.
15308 * ssa-dce.c: Likewise.
15309 * stmt.c: Likewise.
15310 * stor-layout.c: Likewise.
15311 * system.h: Likewise.
15313 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15315 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15316 if fits in bounds of base type.
15318 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15319 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15320 (add_bound_info, default): If can't find a context, make a
15322 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15324 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
15326 * c-typeck.c (parser_build_binary_op): If result from
15327 build_binary_op is ERROR_MARK just return error_mark_node without
15328 further processing.
15330 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
15332 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15333 Split a.out-specific bits into...
15334 * config/netbsd-aout.h: ...this.
15335 * config/netbsd-elf.h: New file.
15336 * config/alpha/netbsd-elf.h: Remove.
15337 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15338 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15339 (STARTFILE_SPEC): Remove redundant definition.
15340 (ENDFILE_SPEC): Likewise.
15341 (LINK_SPEC): Likewise.
15342 (CPP_SPEC): Likewise.
15343 (ASM_SPEC): Likewise.
15344 (LIB_SPEC): Likewise.
15345 (SWITCH_TAKES_ARG): Likewise.
15346 (TARGET_MEM_FUNCTIONS): Likewise.
15347 (CPP_PREDEFINES): Redefine.
15348 (ASM_FINAL_SPEC): Remove redefinition.
15349 (ASM_COMMENT_START): Redefine.
15350 (FUNCTION_PROFILER): Define.
15351 (TARGET_VERSION): Redefine.
15352 Comment and formatting cleanup.
15353 * config/i386/netbsd.h: Include <netbsd-aout.h>.
15354 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15355 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15356 big- or little-endian.
15357 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15358 * config.gcc (*-*-netbsd*): Add definitions common to all
15360 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15361 gnu_ld definitions. Add netbsd-elf.h to and remove
15362 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
15363 tmake_file, and don't lose previous tmake_file contents.
15364 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15365 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15366 gnu_ld definitions. Add netbsd-elf.h to tm_file.
15367 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15368 (mipsel-*-netbsd*): Rename this to...
15369 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
15370 mips/little.h to tm_file for mips*el-*.
15371 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15372 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15373 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15375 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
15377 * pa-protos.h (reg_before_reload_operand): New function prototype.
15378 * pa.c (reg_before_reload_operand): New function implementation.
15379 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
15380 contraints to "*m".
15382 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15384 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15386 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
15388 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15389 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15390 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15391 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15392 (ENDFILE_SPEC): Undefine.
15393 (STARTFILE_SPEC): Redefine for PA.
15395 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15397 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15399 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
15401 * config.gcc: Add entries to supported PowerPC --with-cpu
15404 2002-01-21 Jakub Jelinek <jakub@redhat.com>
15406 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15407 true for 64-bit mode only SSE registers in 32-bit mode.
15409 2002-01-21 Kazu Hirata <kazu@hxi.com>
15411 * unwind-dw2.c: Fix formatting.
15412 * unwind-dw2-fde.c: Likewise.
15413 * unwind-dw2-fde.h: Likewise.
15414 * unwind-pe.h: Likewise.
15415 * varasm.c: Likewise.
15416 * varray.h: Likewise.
15418 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
15420 Remove workaround for register stack overwrite bug in mmix.
15421 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15422 support for TARGET_REG_STACK_FILL_BUG.
15423 * config/mmix/mmix.h: Remove member has_call_without_parameters.
15424 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15426 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15427 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15428 -mno-reg-stack-fill-bug-workaround.
15429 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15430 machine member has_call_without_parameters.
15431 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15432 -mreg-stack-fill-bug-workaround and
15433 -mno-reg-stack-fill-bug-workaround.
15434 (MMIX Options): Ditto.
15436 2002-01-21 Kazu Hirata <kazu@hxi.com>
15438 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15440 Remove redundant code.
15442 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
15444 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15445 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15446 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15447 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15448 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15449 out target macro definitions and non-target-specific comments
15450 mostly taken from old versions of the manual.
15452 2002-01-20 Kazu Hirata <kazu@hxi.com>
15454 * config/h8300/h8300.h: Fix comment formatting.
15455 * config/ia64/aix.h: Likewise.
15456 * config/ia64/ia64-protos.h: Likewise.
15457 * config/ia64/ia64.c: Likewise.
15458 * config/ia64/ia64.h: Likewise.
15459 * config/ia64/ia64intrin.h: Likewise.
15460 * config/ia64/linux.h: Likewise.
15461 * config/ia64/unwind-aix.c: Likewise.
15462 * config/ia64/unwind-ia64.c: Likewise.
15464 2002-01-20 Kazu Hirata <kazu@hxi.com>
15466 * config/h8300/h8300.c: Revise comments about shift code.
15468 2002-01-20 Kazu Hirata <kazu@hxi.com>
15470 * config/h8300/h8300.c (function_arg): Update a comment.
15472 2002-01-20 Kazu Hirata <kazu@hxi.com>
15474 * config/h8300/h8300.md: Update the comments at the beginning
15477 2002-01-20 Kazu Hirata <kazu@hxi.com>
15479 * config/i370/i370.c: Fix comment formatting.
15480 * config/i370/i370.h: Likewise.
15481 * config/i370/i370.md: Likewise.
15482 * config/i370/linux.h: Likewise.
15484 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15486 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15488 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15489 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15490 in incomplete case.
15492 2002-01-20 Graham Stott <grahams@redhat.com>
15494 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15496 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
15498 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15500 2002-01-19 Tom Rix <trix@redhat.com>
15502 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15504 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
15506 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15508 * function.c (assign_stack_local_1): Adjust x_frame_offset with
15509 STARTING_FRAME_PHASE.
15510 (STARTING_FRAME_PHASE): New.
15511 (instantiate_virtual_regs): Check saneness of
15512 STARTING_FRAME_PHASE.
15514 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15516 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
15518 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15520 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
15522 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15523 be used for bootstrapping GCC 3.0.
15525 2002-01-18 Kazu Hirata <kazu@hxi.com>
15527 * config/h8300/h8300.md: Fix an insn length.
15529 2002-01-18 Kazu Hirata <kazu@hxi.com>
15531 * bitmap.h: Fix comment formatting.
15532 * combine.c: Likewise.
15533 * cppfiles.c: Likewise.
15534 * c-pragma.h: Likewise.
15535 * c-typeck.c: Likewise.
15537 * dwarf2out.c: Likewise.
15538 * function.c: Likewise.
15540 * genattrtab.c: Likewise.
15541 * gthr-win32.h: Likewise.
15542 * haifa-sched.c: Likewise.
15543 * predict.c: Likewise.
15544 * rtlanal.c: Likewise.
15546 * unwind-dw2-fde.h: Likewise.
15547 * unwind-pe.h: Likewise.
15548 * vmsdbgout.c: Likewise.
15550 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15552 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15553 if type_required and passed decl.
15555 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
15557 * config.gcc (cpu_type): Include altivec.h in powerpc
15561 * config/rs6000/altivec.h: New.
15563 2002-01-17 David Edelsohn <edelsohn@gnu.org>
15565 * doc/install.texi (*-ibm-aix*): Update assembler and exception
15566 handling information.
15567 * doc/trouble.texi (Interoperation): Add libstdc++ information
15569 (Misunderstandings): Add template instantiation and static template
15570 member information for AIX.
15572 2002-01-17 Jason Merrill <jason@redhat.com>
15574 * dbxout.c (dbxout_type): Support const and volatile.
15576 * except.c (add_partial_entry): Remove backwards compatibility code.
15577 (end_protect_partials): Likewise.
15579 2002-01-17 Jakub Jelinek <jakub@redhat.com>
15581 * config/ia64/ia64.md (prologue_use): New.
15582 * config/ia64/ia64.c (ia64_expand_prologue): Use
15583 gen_prologue_use instead of gen_rtx_USE.
15584 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15585 as CODE_FOR_pred_rel_mutex.
15586 (ia64_sched_reorder2): Likewise.
15588 2002-01-16 Eric Christopher <echristo@redhat.com>
15590 * config/mips/r3900.h: Reformat.
15591 (SUBTARGET_CPP_SIZE_SPEC): Remove.
15592 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15593 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15594 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15595 * config/mips/t-elf: Remove mips3 multilib.
15597 2002-01-16 H.J. Lu <hjl@gnu.org>
15599 * config/mips/linux.h: Include "mips/abi64.h".
15601 2002-01-16 H.J. Lu <hjl@gnu.org>
15603 * config/mips/t-linux: New.
15605 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15607 * config/mips/linux.h: Don't include "gofast.h".
15608 (INIT_SUBTARGET_OPTABS): Removed.
15610 2002-01-16 Kazu Hirata <kazu@hxi.com>
15612 * config/h8300/h8300-protos.h: Replace emit_a_shift with
15614 * config/h8300/h8300.c: Likewise.
15615 * config/h8300/h8300.md: Likewise.
15617 2002-01-16 Kazu Hirata <kazu@hxi.com>
15619 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15620 spaces after an opcode name.
15621 (pushqi1_h8300hs): Likewise.
15622 (pushhi1_h8300hs): Likewise.
15624 2002-01-16 Kazu Hirata <kazu@hxi.com>
15626 * doc/extend.texi: Replace "option" with "attribute"
15629 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15631 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15632 (and:DI () (const_int -8)).
15633 (split_small_symbolic_mem_operand): Split
15634 (mem (and:DI () (const_int -8)).
15636 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15639 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15640 same way as TYPE_IMUL.
15641 (ultrasparc_sched_reorder): Likewise.
15642 * config/sparc/sparc.md (type): Add comment to update
15643 ultrasparc_sched_reorder when making changes.
15645 2002-01-16 Kazu Hirata <kazu@hxi.com>
15647 * doc/invoke.texi: Change the dump file name of block
15648 reordering pass from 28.bbro to 29.bbro.
15649 Mention -dk option.
15651 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
15653 * i386.md (minsf splitter): Fix pasto.
15655 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15657 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15658 to frame pointer initialisation instruction.
15659 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15660 initialisation instruction.
15661 (soft_df_operand): Do not accept the IP register.
15662 (nonimmediate_soft_df_operand): Do not accept the IP register.
15664 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15667 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15668 MASK_V8 being both set.
15670 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
15672 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15673 insn for GOT register; add REG_MAYBE_DEAD notes instead.
15674 config/s390/s390.md (call, call_value): Add GOT register to
15675 CALL_INSN_FUNCTION_USAGE where needed.
15676 (call_exp, call_value_exp): New.
15678 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15680 * config/arm/arm.c: General formatting tidy up.
15682 2002-01-16 Graham Stott <grahams@redhat.com>
15684 * calls.c (try_to_integrate): Use "(size_t)" intermediate
15685 cast and when casting an integer literal to "rtx" pointer.
15686 (expand_call): Likewise.
15687 * flow.c (try_pre_increment): Likewise.
15688 (find_use_as_address): Likewise.
15689 * integrate.c (expand_iline_function): Likewise.
15690 * regmove.c (try_auto_increment): Likewise.
15692 2002-01-16 Graham Stott <grahams@redhat.com>
15694 * sched-rgn.c (passed): Use sbitmap_free.
15695 (header): Likewise.
15697 (in_queue): Likewise.
15698 (in_stack): Likewise.
15700 2002-01-15 Eric Christopher <echristo@redhat.com>
15702 * flow.c (propagate_one_insn): Change to use fatal_insn.
15704 2002-01-15 Kazu Hirata <kazu@hxi.com>
15706 * expmed.c (extract_fixed_bit_field): Remove unused code.
15707 * system.h: Poison SLOW_ZERO_EXTEND.
15708 * doc/tm.texi: Remove.
15709 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15710 * config/arm/arm.h: Likewise.
15711 * config/avr/avr.h: Likewise.
15712 * config/clipper/clipper.h: Likewise.
15713 * config/convex/convex.h: Likewise.
15714 * config/d30v/d30v.h: Likewise.
15715 * config/dsp16xx/dsp16xx.h: Likewise.
15716 * config/elxsi/elxsi.h: Likewise.
15717 * config/fr30/fr30.h: Likewise.
15718 * config/h8300/h8300.h: Likewise.
15719 * config/i370/i370.h: Likewise.
15720 * config/i386/i386.h: Likewise.
15721 * config/m68k/m68k.h: Likewise.
15722 * config/mips/mips.h: Likewise.
15723 * config/ns32k/ns32k.h: Likewise.
15724 * config/pdp11/pdp11.h: Likewise.
15725 * config/pj/pj.h: Likewise.
15726 * config/s390/s390.h: Likewise.
15727 * config/sh/sh.h: Likewise.
15728 * config/stormy16/stormy16.h: Likewise.
15729 * config/v850/v850.h: Likewise.
15730 * config/vax/vax.h: Likewise.
15731 * config/we32k/we32k.h: Likewise.
15733 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15735 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15736 (altivec_lvsl): Change constraint to b.
15737 (altivec_lvsr): Same.
15738 (altivec_lvebx): Same.
15739 (altivec_lvehx): Same.
15740 (altivec_lvewx): Same.
15741 (altivec_lvxl): Same.
15742 (altivec_lvx): Same.
15743 (altivec_stvx): Add parallel.
15744 (altivec_stvxl): Same.
15745 (altivec_stvehx): Same.
15746 (altivec_stvebx): Same.
15747 (altivec_stvebx): Same.
15749 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15751 * config.gcc: Change altivec.h to altivec-defs.h.
15753 * config/rs6000/altivec.h: Delete.
15755 * config/rs6000/altivec-defs.h: Add.
15757 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15759 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15762 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15763 less than or equal to eight bytes.
15765 * vax.md (andsi3): Remove constraints and change SET destination
15766 operand type to nonimmediate_operand.
15767 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
15768 when it is a CONST_INT.
15770 2002-01-15 Jason Merrill <jason@redhat.com>
15772 * c-common.def (FILE_STMT): New code.
15773 * c-common.c (statement_code_p): It's a statement.
15774 * c-common.h (stmt_tree_s): Add x_last_filename.
15775 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15776 (last_expr_filename): New macro.
15777 * c-semantics.c (begin_stmt_tree): Initialize it.
15778 (add_stmt): If the filename changed, also insert a
15780 (expand_stmt): Handle seeing one.
15782 2002-01-15 Eric Christopher <echristo@redhat.com>
15784 * flow.c (propagate_one_insn): Add error message and print out
15785 insn for debugging.
15787 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15789 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15790 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15791 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15792 TRAMPOLINE_ALIGNMENT.
15793 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
15795 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15796 PCC_BITFIELD_TYPE_MATTERS.
15797 * config/interix.h (STDC_VALUE): Remove. Use
15798 STDC_0_IN_SYSTEM_HEADERS.
15799 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15800 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15801 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15803 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15805 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15806 not work on this platform currently.
15808 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15810 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15811 readonly_warning in _().
15813 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15815 * gcc.c (delete_if_ordinary): Backout previous change.
15817 2002-01-15 Kazu Hirata <kazu@hxi.com>
15819 * config/h8300/h8300.c (print_operand): Remove support for
15820 unused operand characters.
15822 * read-rtl.c: Fix formatting.
15823 * real.c: Likewise.
15824 * recog.c: Likewise.
15825 * regclass.c: Likewise.
15826 * regmove.c: Likewise.
15827 * reg-stack.c: Likewise.
15828 * reload1.c: Likewise.
15829 * rtlanal.c: Likewise.
15831 2002-01-15 Kazu Hirata <kazu@hxi.com>
15833 * config/i386/i386.c: Fix formatting.
15835 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15837 * c-typeck.c (process_init_element): Don't save_expr
15838 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15840 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15842 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15843 emit optional traceback table if optimize_size or TARGET_ELF.
15844 * config/rs6000/rs6000.md (prefetch): New.
15846 2002-01-15 Andreas Jaeger <aj@suse.de>
15848 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15850 2002-01-15 Kazu Hirata <kazu@hxi.com>
15852 * mips-tfile.c: Fix formatting.
15854 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15856 * unroll.c (final_reg_note_copy): Fix previous commit.
15858 2002-01-14 Kazu Hirata <kazu@hxi.com>
15860 * config/h8300/h8300-protos.h: Remove the prototype for
15862 * config/h8300/h8300.c (eq_operator): Remove.
15864 2002-01-14 Richard Henderson <rth@redhat.com>
15866 * config/i386/i386.md (prefetch): Tidy.
15867 (prefetch_3dnow): Fix locality operand.
15869 2002-01-14 Richard Henderson <rth@redhat.com>
15871 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15872 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15874 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
15876 * reload1.c (reload_combine): Pass reg_sum replacement through
15877 copy_rtx in loop performing multiple changes.
15879 2002-01-14 Jakub Jelinek <jakub@redhat.com>
15881 * except.c (remove_unreachable_regions): New.
15882 (free_eh_status): Clear exception_handler_labels.
15883 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15884 (find_exception_handler_labels): Don't add the same label more than
15886 (remove_exception_handler_label): Don't die if
15887 find_exception_handler_labels hasn't been called for the current
15890 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
15892 * toplev.c (rest_of_compilation): Rebuild jump labels after
15895 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
15897 * doc/extend.texi: Move documentation of X86 built-in functions
15899 * doc/invoke.texi: From here.
15900 * doc/sourcebuild.texi: Document location of documentation for
15901 machine built-in functions.
15903 2002-01-13 Christopher Faylor <cgf@redhat.com>
15905 * cppfiles.c (TEST_THRESHOLD): New macro.
15906 (SHOULD_MMAP): Ditto.
15907 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15910 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
15912 * unroll.c (final_reg_note_copy): Properly handle
15914 (unroll_loops): Fix LOOP_CONDITION heuristics.
15916 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
15918 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15919 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15921 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
15923 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15926 2002-01-14 Tom Rix <trix@redhat.com>
15928 * config/rs6000/rs6000.md: Fix typo with sradi.
15930 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15932 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15933 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15934 (clrstrdi, clrstrsi): Adapt callers.
15936 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15938 (movti splitter): Never use register 0 as base register.
15940 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15942 * combine.c (simplify_shift_const): Always generate new rtx
15943 for shift expression instead of reusing given expression.
15945 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15947 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15948 alpha_legitimize_address unless mode is Pmode.
15950 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15952 * doc/md.texi (Modifiers): Document the '*' constraint for the
15955 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15956 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15959 2002-01-13 Richard Henderson <rth@redhat.com>
15961 * reload.c (find_reloads): Use a hard reg destination as reload reg
15962 for an input reload of the source.
15964 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15966 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15969 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15971 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15972 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15974 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15976 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15978 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15980 2002-01-12 Tom Rix <trix@redhat.com>
15982 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15985 2002-01-12 Richard Henderson <rth@redhat.com>
15987 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15989 * doc/invoke.texi: Update Alpha options.
15991 * doc/invoke.texi: Update i386 built-in function lists.
15993 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
15995 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15996 referencing outside.
15998 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16000 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
16001 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
16002 offsets, and change line folding.
16003 * optabs.c (expand_binop): Remove warnings.
16004 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
16006 2002-01-12 Graham Stott <grahams@redhat.com>
16008 * attribs.c (handle_deprecated_attribute): constify WHAT.
16009 * diagnostic.c (warn_deprecated_use): Add braces, fixes
16010 dangling else warning and constify WHAT.
16011 * except.h (struct function, struct inline_remap): Move
16012 struct tag forward defs before all prototypes.
16013 (duplicate_eh_regions): Whitespace.
16015 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
16017 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16018 MODE_BASE_REG_CLASS.
16019 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
16021 2002-01-12 Richard Henderson <rth@redhat.com>
16023 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
16024 (ix86_expand_vector_move): New.
16025 (bdesc_2arg): Remove andps, andnps, orps, xorps.
16026 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
16027 Remove old prefetch builtins. Special case the logicals removed above.
16028 (ix86_expand_builtin): Likewise.
16029 (safe_vector_operand): Use V4SFmode, not TImode.
16030 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
16031 (ix86_expand_timode_binop_builtin): New.
16032 * config/i386/i386-protos.h: Update.
16033 * config/i386/i386.h (enum ix86_builtins): Update.
16034 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
16035 Use ix86_expand_vector_move in vector move expanders.
16036 (movti_internal, movti_rex64): Add xorps alternative.
16037 (sse_clrv4sf): Rename and adjust from sse_clrti.
16038 (prefetch): Don't work so hard.
16039 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
16040 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
16041 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
16043 2002-01-11 Richard Henderson <rth@redhat.com>
16045 * config/i386/mmintrin.h: New file.
16046 * config/i386/xmmintrin.h: New file.
16047 * config.gcc (i?86-*-*): Add extra_headers.
16048 * simplify-rtx.c (simplify_unary_operation): Handle saturating
16050 (simplify_binary_operation): Handle saturating arithmetic codes.
16051 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
16052 not the lowpart subreg.
16053 (ix86_expand_builtin): Return a TImode dummy register instead of 0
16055 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
16057 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16059 * conflict.c (conflict_graph_compute): Free regsets when finished.
16060 * ssa.c (compute_coalesced_reg_partition): Likewise.
16062 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16064 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
16065 every where we allocate a register.
16067 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16069 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
16070 * lcm.c (compute_earliest, compute_farthest): Likewise.
16072 2002-01-11 Janis Johnson <janis187@us.ibm.com>
16074 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
16076 2002-01-11 Janis Johnson <janis187@us.ibm.com>
16078 * doc/rtl.texi (Insns): Fix 2 typos.
16080 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
16082 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
16083 options. Use @table @gcctabopt for MMIX options. Add index
16084 entries for MMIX options. Start new paragraph with first
16085 heading of the machine-dependent options.
16087 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
16090 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
16091 * combine.c (force_to_mode): Same.
16092 * reload1.c (clear_reload_reg_in_use): Same.
16094 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
16096 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
16099 2002-01-11 Andreas Jaeger <aj@suse.de>,
16100 Brad Lucier <lucier@math.purdue.edu>
16102 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
16105 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
16107 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
16108 Protect with IN_LIBGCC.
16109 (LINK_EH_SPEC): Add required trailing space.
16111 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
16113 * c-tree.h: Move function declarations so that they are listed
16114 under the filename which contains them.
16115 (check_identifier, finish_decl_top_level,
16116 lookup_name_current_level_global, shadow_record_fields): Remove.
16118 2002-01-11 Andreas Jaeger <aj@suse.de>
16120 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
16123 2002-01-10 Richard Henderson <rth@redhat.com>
16125 * config/alpha/alpha.c (print_operand): Add 'J'.
16126 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
16127 new operand with the sequence number for the lituse. When splitting
16128 the insns, use gen_movdi_er_high_g and generate a sequence number.
16129 (gen_movdi_er_high_g): Print the sequence number if non-zero.
16131 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
16133 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
16134 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
16136 (altivec_expand_builtin): Same.
16137 (altivec_expand_stv_builtin): New.
16139 * config/rs6000/rs6000.h (rs6000_builtins): Same.
16141 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
16142 ("altivec_lvehx"): New.
16143 ("altivec_lvewx"): New.
16144 ("altivec_lvxl"): New.
16145 ("altivec_lvx"): New.
16146 ("altivec_stvx"): New.
16147 ("altivec_stvebx"): New.
16148 ("altivec_stvehx"): New.
16149 ("altivec_stvewx"): New.
16150 ("altivec_stvxl"): New.
16152 2002-01-10 Richard Henderson <rth@redhat.com>
16154 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
16155 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
16156 care not to delete instructions twice.
16158 2002-01-10 Zack Weinberg <zack@codesourcery.com>
16160 * toplev.c: Don't declare environ (it's not used anywhere).
16161 * configure.in: Don't check for declaration of environ.
16162 * config/i386/xm-mingw32.h: Don't #define environ.
16163 * config.in, configure: Regenerate.
16165 2002-01-10 Zack Weinberg <zack@codesourcery.com>
16167 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
16168 * configure: Regenerate.
16170 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
16171 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
16172 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
16174 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
16175 LIMITS_H_TEST here, not in m68k/x-next.
16176 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
16177 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
16179 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
16180 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
16181 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
16183 * config/i386/x-djgpp: Renamed i386/t-djgpp.
16184 * config/m88k/x-dolph: Renamed m88k/t-dolph.
16185 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
16186 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
16187 replacement of quadlib.asm with quadlib.c.
16189 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
16190 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
16191 config/rs6000/xm-beos.h: Delete file.
16193 * config.gcc: Update to match above changes.
16195 2002-01-10 Kazu Hirata <kazu@hxi.com>
16197 * config/h8300/h8300.h: Fix comment typos.
16198 * config/h8300/h8300.md: Likewise.
16199 * config/h8300/lib1funcs.asm: Likewise.
16201 2002-01-10 Dale Johannesen <dalej@apple.com>
16203 PR optimization/5269
16204 * unroll.c (precondition_loop_p): Make *increment be the correct
16205 sign when n_iterations known, to avoid confusing caller.
16207 2002-01-10 Kazu Hirata <kazu@hxi.com>
16209 * doc/extend.texi (deprecated): Fix a typo.
16211 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
16213 * basic-block.h (update_br_prob_note): Declare.
16214 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16215 (try_forward_edges): Care negative frequencies and update note.
16216 (outgoing_edges_match): Tweek conditional merging heuristics.
16217 (try_crossjump_to_edge): use update_br_prob_note.
16218 * cfglayout.c (fixup_reorder_chain): Likewise.
16219 * cfrtl.c (update_br_prob_note): New.
16220 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16222 * i386.c (ix86_decompose_address): Return -1 if address contains
16224 (legitimate_address_p): Require ix86_decompose_address to return 1.
16226 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16227 (cprop_insn): Likewise.
16229 2002-01-10 Kazu Hirata <kazu@hxi.com>
16231 * toplev.c: Fix formatting.
16232 * tree.c: Likewise.
16233 * tree-dump.c: Likewise.
16234 * unroll.c: Likewise.
16235 * unwind-dw2.c: Likewise.
16236 * unwind-dw2-fde.c: Likewise.
16237 * unwind-dw2-fde-glibc.c: Likewise.
16238 * unwind-sjlj.c: Likewise.
16240 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
16242 * doc/invoke.texi: Document PDP-11 options.
16244 2002-01-10 Kazu Hirata <kazu@hxi.com>
16246 * config/h8300/h8300.h: Fix formatting.
16248 2002-01-10 Ira Ruben <ira@apple.com>
16250 Add __attribute__ ((deprecated)).
16251 * extend.texi: Document __attribute__ ((deprecated)).
16252 * invoke.texi: Document -Wno-deprecated-declarations.
16253 * testsuite/g++.dg/other/deprecated.C: New C++ test.
16254 * testsuite/gcc.dg/deprecated.c: New C test.
16255 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16256 (c_common_attribute_table): Add "deprecated" entry.
16257 (handle_deprecated_attribute): New function.
16258 * c-decl.c (deprecated_states): New enum.
16259 deprecated_state: State of "deprecated" handling.
16260 (start_decl): Set deprecated_state based on attributes.
16261 (grokdeclarator): Test for deprecated uses, propagate attribute.
16262 * c-typeck.c (build_component_ref): Test for deprecated fields.
16263 (build_external_ref): Test for deprecated primaries.
16264 * diagnostic.c (warn_deprecated_use) New function to issue
16265 warnings about __attribute__ ((depricated)) references.
16266 * flags.h (warn_deprecated_decl): Extern declared for
16267 -W[no-]deprecated-declarations option.
16268 * print-tree.c (print_node): Show deprecated flag status.
16269 * toplev.c (warn_deprecated_decl): Defined.
16270 (W_options): Added "deprecated-declaration".
16271 * toplev.h (warn_deprecated_use): Extern declared.
16272 * tree.h (struct tree_common): Define deprecated_flag.
16273 (TREE_DEPRECATED): New macro to access flag.
16274 * cp/call.c (build_call): Test for deprecated calls.
16275 * cp/class.c (add_implicitly_declared_members): Set global
16276 flag to tell grokdeclarator to not issue deprecated warnings.
16277 * cp/cp-tree.h: Add extern for adding_implicit_members.
16278 * cp/decl.c (deprecated_states): New enum.
16279 (start_decl): Set deprecated_state based on attributes.
16280 (grokdeclarator): Test for deprecated uses, propagate attribute.
16281 * cp/lex.c (do_identifier): Test for deprecated primaries.
16282 * cp/typeck.c (build_component_ref): Test for deprecated fields.
16284 2002-01-10 Ira Ruben <ira@apple.com>
16286 Fix to assign attributes to inline member functions.
16287 * cp/decl.c (start_method): Handle attrlist.
16289 2002-01-10 Kazu Hirata <kazu@hxi.com>
16291 * combine.c (expand_field_assignment): Use subreg_lsb().
16293 2002-01-10 David Edelsohn <edelsohn@gnu.org>
16295 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16296 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16297 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16298 Recurse for any operand of AND as long as constant is non-zero.
16300 2002-01-10 Kazu Hirata <kazu@hxi.com>
16302 * config/h8300/h8300.md: Remove constraints from expanders.
16304 2002-01-10 Kazu Hirata <kazu@hxi.com>
16306 * varasm.c: Fix formatting.
16307 * varray.c: Likewise.
16308 * vmsdbgout.c: Likewise.
16309 * xcoffout.c: Likewise.
16311 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
16313 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16314 update edge probabilities to match.
16316 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
16318 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16320 * doc/languages.texi, doc/sourcebuild.texi: New files.
16321 * doc/configfiles.texi: Make a subsubsection. Update.
16322 * doc/configterms.texi: Add @node. Remove warning that this isn't
16323 instructions for building GCC.
16324 * doc/makefile.texi: Make a subsection.
16325 * doc/gccint.texi: Update.
16327 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
16329 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16331 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
16333 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16335 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
16337 * optabs.c (expand_fix): Look for wider integer modes first.
16339 * i386.md (mov?f): Avoid the fake const double trick for medium
16341 (min?f*/max?f*): Prohibit memory operands for i387 variant.
16342 (fop_df_4): Disable for SSE compilation.
16344 2002-01-10 Graham Stott <grahams@redhat.com>
16346 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16347 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16349 2002-01-10 Richard Henderson <rth@redhat.com>
16351 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16353 2002-01-10 Richard Henderson <rth@redhat.com>
16355 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16356 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
16358 2002-01-10 Kazu Hirata <kazu@hxi.com>
16360 * combine.c (can_combine_p): Fix a comment typo.
16362 2002-01-09 Zack Weinberg <zack@codesourcery.com>
16364 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16365 empty list correctly. Change loop index $t to $f for
16366 consistency with rest of Makefile.
16368 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
16370 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16371 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16373 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16374 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16375 (altivec_init_builtins): Same.
16376 (altivec_expand_unop_builtin): Return NULL_RTX on error.
16377 (altivec_expand_binop_builtin): Same.
16378 (altivec_expand_ternop_builtin): Same.
16381 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16382 ("altivec_vctuxs"): Fix typo.
16383 ("altivec_vnmsubfp"): Same.
16384 ("altivec_dssall"): New.
16385 ("altivec_mfvscr"): New.
16386 ("altivec_dss"): New.
16387 ("altivec_lvsl"): New.
16388 ("altivec_lvsr"): New.
16389 ("altivec_dstt"): New.
16390 ("altivec_dstst"): New.
16391 ("altivec_dststt"): New.
16392 ("altivec_dst"): New.
16394 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16395 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16397 2002-01-09 Richard Henderson <rth@redhat.com>
16399 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16401 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
16403 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16405 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16407 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16409 2002-01-09 Kazu Hirata <kazu@hxi.com>
16411 * read-rtl.c: Fix formatting.
16412 * real.c: Likewise.
16413 * regclass.c: Likewise.
16414 * regrename.c: Likewise.
16415 * reg-stack.c: Likewise.
16416 * reload1.c: Likewise.
16417 * reload.c: Likewise.
16420 2002-01-09 Kazu Hirata <kazu@hxi.com>
16422 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16423 to extract items in the expr_list chain.
16425 2002-01-09 Richard Henderson <rth@redhat.com>
16427 * config/vax/vax.c (vax_rtx_cost): Never abort.
16429 * config/vax/vax.h (REAL_ARITHMETIC): Define.
16431 2002-01-09 Jan Hubicka <jh@suse.cz>
16433 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16435 2002-01-09 Richard Henderson <rth@redhat.com>
16437 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16438 Unify code from various alternatives.
16440 2002-01-09 Richard Henderson <rth@redhat.com>
16442 * regrename.c (copy_value): Ignore the copy if the source register
16443 is present in the value chain with a narrower mode.
16445 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16447 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16448 for the c4x target. Also improve layout.
16450 2002-01-09 Richard Henderson <rth@redhat.com>
16452 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16453 * config/m32r/m32r.md (and ior xor splitters): Swap operands
16454 to match insn patterns.
16456 2002-01-09 Richard Henderson <rth@redhat.com>
16458 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16459 (copyprop_hardreg_forward_1): Likewise.
16461 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
16463 * pa.md (decrement_and_branch_until_zero): Change predicate for
16464 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16466 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
16468 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16469 gets undefined. For Darwin.
16471 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16473 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16475 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16477 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16479 2002-01-08 Richard Henderson <rth@redhat.com>
16481 * regrename.c (copy_value): Ignore overlapping copies.
16483 2002-01-08 Richard Henderson <rth@redhat.com>
16485 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16486 as needed to avoid shared structure.
16488 2002-01-08 Kazu Hirata <kazu@hxi.com>
16490 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16493 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16495 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16496 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16497 documentation of obsolete macros.
16498 * system.h: Poison these macros.
16499 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16500 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16501 config/c4x/c4x.h, config/clipper/clipper.h,
16502 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16503 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16504 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16505 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16506 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16507 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16508 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16509 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16510 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16511 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16512 config/sparc/sparc.h, config/stormy16/stormy16.h,
16513 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16514 definitions and commented out definitions of obsolete macros.
16515 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16516 of MAX_INT_TYPE_SIZE.
16518 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16520 * config/s390/s390.c (s390_preferred_reload_class): Never
16521 return ADDR_REGS if it isn't a subset of the given class.
16522 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16523 FP_REGS, but all superclasses as well.
16525 * config/s390/s390.c (s390_function_profiler): Fix thinko.
16527 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16528 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16529 must not be a const_int.
16531 2002-01-08 Richard Henderson <rth@redhat.com>
16533 * Makefile.in (toplev.o): Depend on options.h.
16534 (gcc.o): Depend on specs.h.
16536 2002-01-08 Jakub Jelinek <jakub@redhat.com>
16538 * expr.c (store_expr): Convert VOIDmode constants back to target's
16541 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16543 * doc/invoke.texi: Markup gcc as @command. Refer to
16544 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16545 of http://gcc.gnu.org/thanks.html.
16547 2002-01-08 Dale Johannesen <dalej@apple.com>
16549 * config/rs6000/rs6000.md: Add missing int register
16550 target case to movdf_low.
16552 2002-01-08 Zack Weinberg <zack@codesourcery.com>
16554 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16555 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
16556 (cppinit.o): Depend on except.h.
16557 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16558 s-specs): New rules.
16560 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16561 Don't create specs.h/options.h/gencheck.h here. Remove
16562 unnecessary variable settings from last argument of AC_OUTPUT.
16563 * config.in, configure: Regenerate.
16564 * intl.c: Hardcode package name as "gcc".
16566 * cppinit.c: Include except.h.
16567 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16569 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16570 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16571 (!)USING_SJLJ_EXCEPTIONS.
16572 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16574 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16576 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16577 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16578 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16579 documentation of obsolete macros.
16580 * system.h: Poison these macros.
16581 * config/d30v/d30v.h, config/ns32k/encore.h,
16582 config/stormy16/stormy16.h: Remove definitions and commented out
16583 definitions of obsolete macros.
16585 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
16587 * objc/objc-act.c (handle_class_ref): Mark the declaration of
16588 %sobjc_class_ref_%s as used - to prevent unwanted compiler
16591 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16593 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16594 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16595 to insn adjusting stack/frame pointer.
16596 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16597 accept operands that cause the insn to be non-splittable.
16599 2002-01-08 Graham Stott <grahams@redhat.com>
16601 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16602 (C_TYPE_FIELDS_VOLATILE): Likewise.
16603 (C_TYPE_BEING_DEFINED): Likewise.
16604 (C_IS_RESERVED_WORD): Likewise.
16605 (C_TYPE_VARIABLE_SIZE): Likewise.
16606 (C_DECL_VARIABLE_SIZE): Likewise.
16607 (C_MISSING_PROTOTYPE_WARNED): Likewise.
16608 (C_SET_EXP_ORIGINAL_CODE): Likewise.
16609 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16611 (C_DECL_ANTICIPATED): Likewise.
16612 (c_build_type_variant): Add parenthesis.
16614 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16616 * gcc.c (option_map): Remove --version.
16617 (process_command): Handle -fversion following the GNU Coding
16618 Standards. Partially addresses PR other/704.
16620 2002-01-08 Graham Stott <grahams@redhat.com>
16622 * combine.c (combine_instructions): Fix typo.
16624 2002-01-08 Graham Stott <grahams@redhat.com>
16626 * debug.h: Use "tree" and "rtx" throughout.
16628 * debug.c: Likewise.
16630 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
16632 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16633 constant pool, use the pool's version of the symbol instead.
16635 2002-01-07 Richard Henderson <rth@redhat.com>
16637 * regrename.c (find_oldest_value_reg): Ignore the value chain if
16638 the original register was copied in a mode with a fewer number of
16639 hard registers than the desired mode.
16640 (copyprop_hardreg_forward_1): Likewise.
16641 (debug_value_data): Fix loop test.
16642 * toplev.c (parse_options_and_default_flags): Reenable
16643 -fcprop-registers at -O1.
16645 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16647 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16648 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16650 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16653 * config/rs6000/rs6000.md: Add altivec predicate patterns.
16655 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
16657 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16658 (pa_output_function_prologue): Output local label at the beginning of
16659 the prologue when profiling.
16660 (hppa_profile_hook): Use the local label rather than the function label.
16661 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16663 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16665 * config/rs6000/rs6000.c (print_operand): Remove extra space.
16666 (altivec_expand_unop_builtin): Fix thinko.
16667 (altivec_expand_binop_builtin): Same.
16668 (altivec_expand_ternop_builtin): Same.
16669 (altivec_expand_builtin): Same.
16671 2002-01-07 Richard Henderson <rth@redhat.com>
16673 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16675 2002-01-07 Jason Merrill <jason@redhat.com>
16677 * unwind-dw2.c (execute_cfa_program): Use < again.
16679 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16681 * predict.c (combine_predictions_for_insn): Avoid division by zero.
16683 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16685 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16686 Don't allow -1 - x -> ~x simplifications in the first pass.
16688 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16690 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16692 (altivec_expand_binop_builtin): Same.
16693 (altivec_expand_unop_builtin): Same.
16694 (print_operand): Fix typo.
16695 (bdesc_1arg): Add vupk* variants.
16697 * rs6000.h (rs6000_builtins): Add vupk* enums.
16699 * rs6000.md: Add altivec_vupk* variants.
16701 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
16703 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16704 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16705 and last update dates.
16707 2002-01-07 Janis Johnson <janis187@us.ibm.com>
16709 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16711 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
16713 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16714 * config/avr/avr.h (CPP_SPEC): Likewise.
16715 (LINK_SPEC): Likewise.
16716 (CRT_BINUTILS_SPECS): Likewise.
16717 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16718 * doc/invoke.texi (AVR Options): Document them.
16720 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
16722 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16725 2002-01-07 Graham Stott <grahams@redhat.com>
16727 * config/i386/i386.h: Update copyright date.
16728 (HALF_PIC_PTR): Add parenthesis.
16729 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16730 (CONSTANT_ALIGNMENT): Add parenthesis.
16731 (DATA_ALIGNMENT): Likewise.
16732 (LOCAL_ALIGNMENT): Likewise.
16733 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16734 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16735 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16736 (HARD_REGNO_NREGS): Add paranethesis.
16737 (VALID_SSE_REG_MODE): Whitespace.
16738 (VALID_MMX_REG_MODE): Whitespace.
16739 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16740 (ix86_hard_regno_mode_ok): Add parenthesis.
16741 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16742 (RETURN_IN_MEMORY): Whitespace.
16743 (N_REG_CLASSES): Add parenthesis.
16744 (INTEGER_CLASS_P): Add parenthesis and wrap.
16745 (FLOAT_CLASS_P): Likewise.
16746 (SSE_CLASS_P): Likewise.
16747 (MMX_CLASS_P): Likewise.
16748 (MAYBE_INTEGER_CLASS_P): Likewise.
16749 (MAYBE_FLOAT_CLASS_P): Likewise.
16750 (MAYBE_SSE_CLASS_P): Likewise.
16751 (MAYBE_MMX_CLASS_P): Likewise.
16752 (Q_CLASS_P): Likewise.
16753 (GENERAL_REGNO_P): Uppercase macro parameter.
16754 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16755 (FP_REGNO_P): Likewise.
16756 (ANY_FP_REGNO_P): Uppercase macro parameter.
16757 (SSE_REGNO_P): Likewise.
16758 (SSE_REGNO): Likewise.
16759 (SSE_REG_P): Likewise.
16760 (SSE_FLOAT_MODE_P): Likewise.
16761 (MMX_REGNO_P): Likewise.
16762 (MMX_REG_P):Likewise.
16763 (STACK_REG_P): Likewise.
16764 (NON_STACK_REG_P): Likewise.
16765 (STACK_TOP_P): Likewise.
16766 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16767 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16768 (SECONDARY_MEMORY_NEEDED): Likewise.
16769 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16770 (MD_ASM_CLOBBERS): Whitespace and wrap.
16771 (MUST_PASS_IN_STACK): Whitespace and wrap.
16772 (RETURN_POPS_ARGS): Add parenthesis.
16773 (INIT_CUMULATIVE_ARGS): Likewise.
16774 (FUNCTION_ARG): Likewise.
16775 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16776 (SETUP_INCOMING_VARARGS): Likewise.
16777 (BUILD_VA_LIST_TYPE): Add parenthesis.
16778 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16780 (EXPAND_BUILTIN_VA_ARG): Likewise.
16781 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16782 (INITIALIZE_TRAMPOLINE): Add parenthesis.
16783 (INITIAL_ELIMINATION_OFFSET): Likewise.
16784 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16785 (REGNO_OK_FOR_BASE_P): Likewise.
16786 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16787 (REGNO_OK_FOR_DIREG_P): Likewise.
16788 (REG_OK_FOR_INDEX_P): Whitespace.
16789 (REG_OK_FOR_BASE_P): Whitespace.
16790 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16792 (FIND_BASE_TERM): Fix typo.
16793 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
16794 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16795 (SYMBOLIC_CONST; Whitespace.
16796 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
16797 (ENCODE_SECTION_INFO): Whitespace.
16798 (FINALIZE_PIC): Remove do { ... } while (0).
16799 (PROMOTE_MODE): Wrap in do { ... } while (0).
16800 (CONST_COSTS): Whitespace.
16801 (RTX_COSTS): Add paramethesis, whitespace and wrap.
16802 (REGISTER_MOVE_COST): Add parenthesis.
16803 (MEMORY_MOVE_COST): Likewise.
16804 (EXTRA_CC_MODES): Whitespace.
16805 (SELECT_CC_MODE): Add parenthesis and whitespace.
16806 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16807 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16808 (ASM_OUTPUT_LABEL): Add paramethesis.
16809 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16810 (ASM_OUTPUT_REG_POP): Likewise.
16811 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16812 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16814 * config/i386/i386.c: Update copyright.
16815 (CHECK_STACK_LIMIT): Add parenthesis.
16816 (AT_BP): Uppercase macro parameter.
16817 (x86_64_int_parameter_registers): Constify.
16818 (x86_64_int_return_registers): Likewise.
16819 (ix86_compare_op0): Use rtx.
16820 (construct_container): Constify INTREG parameter.
16821 (function_arg): Use rtx.
16823 * diagnostic.h: Update copyright date.
16824 (output_buffer_state): Add parenthesis.
16825 (output_buffer_format_args): Likewise.
16827 * combine.c (combine_instructions): Replace XEXP (links, 0)
16830 2002-01-06 H.J. Lu <hjl@gnu.org>
16832 * cfgcleanup.c (thread_jump): Fix 2 typos.
16834 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16836 * config.gcc: Add support for --enable-altivec.
16838 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16840 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16842 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16844 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16845 __objc_class_name_*.
16847 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16849 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16851 2002-01-06 Richard Henderson <rth@redhat.com>
16853 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16854 nop them out. Increment label reference count for REG_LABEL.
16855 (fill_slots_from_thread): Frob label reference count around
16856 delete_related_insns.
16858 2002-01-05 Richard Henderson <rth@redhat.com>
16860 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16863 2002-01-05 Richard Henderson <rth@redhat.com>
16865 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16866 * integrate.c (output_inline_function): Likewise.
16867 * toplev.c (rest_of_compilation): Do it here instead. Move call
16868 to remove_unnecessary_notes after emitting abstract instance.
16869 Force an emitted nested function to have its parent emited as well.
16870 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16872 (rtl_for_decl_location): Do not look at reload data structures
16873 before reload has run.
16875 2002-01-05 Kazu Hirata <kazu@hxi.com>
16877 * cse.c: Fix formatting.
16878 * dwarf2asm.c: Likewise.
16879 * dwarf2out.c: Likewise.
16880 * explow.c: Likewise.
16881 * expmed.c: Likewise.
16882 * function.c: Likewise.
16883 * gcov.c: Likewise.
16884 * gencheck.c: Likewise.
16885 * genrecog.c: Likewise.
16886 * ggc-common.c: Likewise.
16887 * ggc-page.c: Likewise.
16888 * global.c: Likewise.
16890 2002-01-05 Kazu Hirata <kazu@hxi.com>
16892 * combine.c: Fix formatting.
16894 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
16897 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16899 2002-01-05 David Edelsohn <edelsohn@gnu.org>
16901 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16902 as 1 for __powerpc64__ as well.
16904 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16906 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16909 2002-01-05 Daniel Berlin <dan@dberlin.org>
16911 * lcm.c: Revert change, due to performance regression it causes on
16912 SPEC because it's slightly more conservative (sigh, I hate
16915 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
16917 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16919 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
16921 * doc/cppinternals.texi: Update.
16923 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16925 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16926 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16928 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16929 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16930 kludge for pre-october-14th mmix versions to handle new-found bug
16931 with PUSHJ/PUSHGO and the register stack.
16932 * config/mmix/mmix.h (struct machine_function): Rename member
16933 has_call_value_without_parameters to has_call_without_parameters.
16934 All referers changed.
16935 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16936 TARGET_MASK_BRANCH_PREDICT): New macros.
16937 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16938 -mno-reg-stack-fill-bug-workaround.
16939 * config/mmix/mmix.md ("call"): Set struct machine member
16940 has_call_without_parameters.
16942 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16944 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16946 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16948 * cfgcleanup.c: Include tm_p.h
16949 (mark_effect): Fix handling of hard register; fix handling of SET
16951 2002-01-04 Kazu Hirata <kazu@hxi.com>
16953 * config/h8300/h8300.md (anonymous patterns): Check that
16954 operands are registers before using REGNO on them.
16956 2002-01-03 Roland McGrath <roland@frob.com>
16958 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16960 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16962 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16963 * c-common.h (genrtl_expr_stmt_value): Likewise.
16964 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16965 (expand_expr_stmt_value): Add maybe_last argument.
16966 Don't warn about statement with no effect if it is the last statement
16967 in expression statement.
16968 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16969 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16970 expand_expr_stmt_value.
16971 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16972 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16973 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16974 as maybe_last to expand_expr_stmt_value.
16976 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16978 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16979 be passed in, do not build it.
16980 (c_begin_if_stmt): New function.
16981 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16982 * c-common.h (c_expand_start_cond): Update prototype.
16983 (c_begin_if_stmt): Prototype new function.
16984 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16985 * c-parse.in (if_prefix): Use c_begin_if_stmt,
16986 c_begin_while_stmt and c_finish_while_stmt_cond.
16988 2002-01-04 William Cohen <wcohen@redhat.com>
16990 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16991 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16992 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16993 * config/pa/som.h (ASM_FILE_START): Likewise.
16995 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
16997 * lcm.c: Include df.h.
16998 Add available_transfer_function prototype.
16999 (compute_available): Rework to use iterative dataflow framework.
17000 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
17001 with bb_info in df.h
17002 (available_transfer_function): New function.
17004 * Makefile.in (lcm.o): add df.h to dependencies.
17006 2002-01-04 Richard Henderson <rth@redhat.com>
17008 * config/alpha/alpha.c (some_operand): Accept HIGH.
17009 (input_operand): Likewise; accept simple references to globals.
17010 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
17011 (alpha_const_double_ok_for_letter_p): Likewise.
17012 (alpha_extra_constraint): Likewise.
17013 (alpha_preferred_reload_class): Likewise. Do not force
17014 symbolic constants to memory.
17015 (alpha_legitimate_address_p): Accept simple references
17016 to small_symbolic_operand.
17017 (alpha_legitimize_address): New arg scratch. Be prepared to be
17018 called when no_new_pseudos. Emit simple symbolic references.
17019 Split integers into low, high, and rest.
17020 (alpha_expand_mov): Use alpha_legitimize_address.
17021 (some_small_symbolic_mem_operand): New.
17022 (split_small_symbolic_mem_operand): New.
17023 * config/alpha/alpha-protos.h: Update.
17024 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
17025 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
17026 (EXTRA_CONSTRAINT): Likewise.
17027 (PREFERRED_RELOAD_CLASS): Likewise.
17028 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
17029 (PREDICATE_CODES): Update.
17030 * config/alpha/alpha.md: New post-reload splitters to convert
17031 simplfied symbolic operands to the form that references $29.
17032 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
17033 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
17035 2002-01-03 Richard Henderson <rth@redhat.com>
17037 * local-alloc.c (function_invariant_p): Update commentary.
17039 2002-01-04 H.J. Lu <hjl@gnu.org>
17041 * toplev.c (rest_of_compilation): Fix a typo when calling
17044 2002-01-03 Kazu Hirata <kazu@hxi.com>
17046 * c-common.c: Fix formatting.
17047 * diagnostic.c: Likewise.
17048 * doloop.c: Likewise.
17049 * dwarf2out.c: Likewise.
17051 2002-01-03 Kazu Hirata <kazu@hxi.com>
17053 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
17054 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
17056 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
17058 * cpperror.c: Update comments and copyright.
17059 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
17060 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
17062 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
17064 * collect2.c (main): Use strcmp when testing for "-shared".
17066 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
17068 * cppmacro.c: Don't include intl.h. Update comments.
17069 (new_number_token): Allocate enough buffer for 64-bit unsigned
17070 integers; update prototype.
17071 * cppmain.c: Update comments.
17073 2002-01-03 William Cohen <wcohen@redhat.com>
17075 * function.h (struct function): Add profile.
17076 (current_function_profile): New.
17077 doc/extend.texi: Update documentation.
17078 * final.c (final_start_function): Use current_function_profile
17079 instead of profile_flag.
17080 (profile_after_prologue): Likewise.
17081 * function.c (expand_function_start): Likewise.
17082 (expand_function_start): Likewise.
17083 * config/alpha/alpha.c (direct_call_operand):
17084 (alpha_does_function_need_gp): Likewise.
17085 (alpha_expand_prologue): Likewise.
17086 * config/arm/arm.c (arm_expand_prologue): Likewise.
17087 thumb_expand_prologue: Likewise.
17088 * config/d30v/d30v.c (d30v_stack_info): Likewise.
17089 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
17090 (fr30_expand_prologue): Likewise.
17091 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
17092 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
17093 * config/i386/i386.h (FINALIZE_PIC): Likewise.
17094 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
17095 * config/i960/i960.c (i960_output_function_prologue): Likewise.
17096 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
17097 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
17098 (m32r_expand_prologue): Likewise.
17099 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
17100 (m88k_expand_prologue): Likewise.
17101 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
17102 * config/mips/mips.c (compute_frame_size): Likewise.
17103 (mips_expand_prologue): Likewise.
17104 (mips_can_use_return_insn): Likewise.
17105 * config/pa/elf.h (ASM_FILE_START): Likewise.
17106 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17107 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17108 * config/pa/som.h (ASM_FILE_START): Likewise.
17109 * config/romp/romp.c (romp_using_r14): Likewise.
17110 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
17111 (rs6000_stack_info): Likewise.
17112 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17113 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
17114 * config/v850/v850.c (compute_register_save_size): Likewise.
17116 2002-01-03 Jakub Jelinek <jakub@redhat.com>
17118 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
17119 gen_lowpart_common fails, use gen_lowpart_SUBREG.
17121 2002-01-03 Turly O'Connor <turly@apple.com>
17123 * darwin.c (machopic_output_possible_stub_label): Don't generate
17124 stub routines for pseudo-stubs which we've just defined.
17126 2002-01-03 Kazu Hirata <kazu@hxi.com>
17128 * builtins.c: Fix formatting.
17129 * c-typeck.c: Likewise.
17130 * combine.c: Likewise.
17131 * expr.c: Likewise.
17132 * loop.c: Likewise.
17134 2002-01-03 Andreas Schwab <schwab@suse.de>
17136 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
17137 and return true if _cpp_push_next_buffer pushed a new include
17139 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
17140 _cpp_pop_file_buffer did not push a new file.
17141 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
17143 2002-01-02 Eric Christopher <echristo@redhat.com>
17145 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
17146 FIND_REG_INC_NOTE call. Update copyright.
17147 * loop.c (canonicalize_condition): Ditto.
17148 * reorg.c (delete_scheduled_jump): Ditto.
17150 2002-01-03 Kazu Hirata <kazu@hxi.com>
17152 * gcse.c: Fix formatting.
17154 2002-01-03 Graham Stott <grahams@redhat.com>
17156 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
17157 forward defs for struct tags rtx_def, union_tree, rtvec_def
17158 also output corresponding typedefs for rtx, tree, and rtvec.
17160 * system.h: Move forward defs for struct tags rtx_def, union_tree,
17161 rtvec_def along with corresponding typedefs for rtx, tree, and
17162 rtvec to config.h, hconfig.h, tconfig.h.
17164 2002-01-03 Graham Stott <grahams@redhat.com>
17166 * tree.h: Update copyright date.
17167 (IS_EXPR_CODE_CLASS): Add parenthesis.
17168 (TREE_SET_CODE): Add whitespace.
17169 (TREE_CHECK): Add parenthesis.
17170 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
17171 (CST_OR_CONSTRUCTOR_CHECK):
17172 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
17173 (TREE_SYMBOL_REFERENCED): Whitespace.
17174 (INT_CST_LT): Likewise.
17175 (INT_CST_LT_UNSIGNED): Likewise.
17176 (tree_real_cst): Unwrap comment.
17177 (tree_string): Likewise.
17178 (tree_complex): Likewise.
17179 (IDENTIFIER_POINTER): correct cast.
17180 (SAVE_EXPR_CONTEXT): Whitespace.
17181 (EXPR_WFL_FILENAME_NODE): Likewise.
17182 (EXPR_WFL_FILENAME): Remove parenthesis.
17183 (DECL_ORIGIN): Add parenthesis.
17184 (DECL_FROM_INLINE): Use NULL_TREE.
17185 (build_int_2): Whitespace.
17186 (build_type_variant): Add parenthesis.
17188 * gcc/jcf-parse.c: Update copyright date.
17189 (yyparse): Constify resource_filename.
17191 2002-01-03 Graham Stott <grahams@redhat.com>
17193 * rtl.h: Update copyright date.
17194 (RTL_CHECK1): Wrap long line.
17195 (RTL_CHECK2): Likewise.
17196 (RTL_CHECKC1): Wrap long line and whitespace.
17197 (RTL_CHECKC2): Likewise.
17198 (XWINT): Whitespace.
17204 (XBITMAP): Likewise.
17206 (XBBDEF): Likewise.
17208 (X0WINT): Likewise.
17210 (X0UINT): Likewise.
17214 (X0MODE): Likewise.
17215 (X0BITMAP): Likewise.
17216 (X0TREE): Likewise.
17217 (X0BBDEF): Likewise.
17218 (X0ADVFLAGS): Likewise.
17219 (X0CSELIB): Likewise.
17220 (X0MEMATTR): Likewise.
17221 (XCWINT): Likewise.
17223 (XCUINT): Likewise.
17227 (XCMODE): Likewise.
17228 (XCBITMAP): Likewise.
17229 (XCTREE): Likewise.
17230 (XCBBDEF): Likewise.
17231 (XCADVFLAGS): Likewise.
17232 (XCCSELIB): Likewise.
17233 (XC2EXP): Likewise.
17234 (INSN_UID): Likewise.
17235 (PREV_INSN): Likewise.
17236 (PATTERN): Likewise.
17237 (INSN_CODE): Likewise.
17238 (PUT_REG_NOTE_KIND): Likewise.
17239 (CODE_LABEL_NUMBER): Likewise.
17240 (NOTE_SOURCE_FILE): Likewise.
17241 (NOTE_BLOCK): Likewise.
17242 (NOTE_EH_HANDLER): Likewise.
17243 (NOTE_RANGE_INFO): Likewise.
17244 (NOTE_LIVE_INFO): Likewise.
17245 (NOTE_BASIC_BLOCK): Likewise.
17246 (NOTE_EXPECTED_VALUE): Likewise.
17247 (NOTE_LINE_NUMBER): Likewise.
17248 (LABEL_NAME): Likewise.
17249 (LABEL_NUSES): Likewise.
17250 (LABEL_ALTERNATE_NAME): Likewise.
17251 (ADDRESSOF_DECL): Likewise.
17252 (JUMP_LABEL): Likewise.
17253 (LABEL_NEXTREF): Likewise.
17255 (ORIGINAL_REGNO: Likewise.
17256 (HARD_REGISTER_NUM_P): Add parenthesis.
17257 (SUBREG_REG): Whitespace.
17258 (SUBREG_BYTE): Likewise.
17259 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17260 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17261 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17262 (ASM_OPERANDS_INPUT_VEC): Likewise.
17263 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17264 (ASM_OPERANDS_INPUT): Likewise.
17265 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17266 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17267 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17268 (ASM_OPERANDS_INPUT_MODE): Likewise.
17269 (ASM_OPERANDS_SOURCE_FILE): Likewise.
17270 (ASM_OPERANDS_SOURCE_LINE): Likewise.
17271 (MEM_SET_IN_STRUCT_P): Minor reformat.
17272 (TRAP_CONDITION): Whitespace.
17273 (TRAP_CODE): Likewise.
17274 (COND_EXEC_TEST): Likewise.
17275 (COND_EXEC_CODE): Likewise.
17276 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17277 (PHI_NODE_P): Add parenthesis.
17278 (plus_constant): Whitespace and add parenthesis.
17280 2002-01-03 Kazu Hirata <kazu@hxi.com>
17282 * config/avr/avr.c: Fix comment typos.
17283 * config/c4x/c4x.md: Likewise.
17284 * config/dsp16xx/dsp16xx.h: Likewise.
17285 * config/dsp16xx/dsp16xx.md: Likewise.
17286 * config/i386/i386.md: Likewise.
17287 * config/ia64/ia64.c: Likewise.
17288 * config/m32r/m32r.h: Likewise.
17289 * config/m68hc11/m68hc11.md: Likewise.
17290 * config/mmix/mmix.c: Likewise.
17291 * config/mn10200/mn10200.c: Likewise.
17292 * config/romp/romp.c: Likewise.
17293 * config/sh/sh.c: Likewise.
17294 * config/stormy16/stormy16.c: Likewise.
17295 * config/stormy16/stormy16.h: Likewise.
17296 * config/stormy16/stormy16.md: Likewise.
17298 2002-01-03 Graham Stott <grahams@redhat.com>
17300 * loop.h: Update copyright date.
17301 (LOOP_MOVABLES): Fix typo.
17302 (LOOP_REGS): Likewise.
17303 (LOOP_IVS): Likewise.
17305 2002-01-03 Graham Stott <grahams@redhat.com>
17307 * cppinit.c: Update copyright date.
17308 Don't include output.h
17309 * Makefile.in: Update copyright date.
17312 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
17315 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17316 (-pthread) Add to RS/6000 options.
17318 2002-01-02 Kazu Hirata <kazu@hxi.com>
17320 * except.c: Fix comment typos.
17321 * loop.c: Likewise.
17322 * varasm.c: Likewise.
17323 * doc/tm.texi: Fix a typo.
17325 2002-01-02 Jakub Jelinek <jakub@redhat.com>
17327 * c-typeck.c (output_init_element): Allow initializing static storage
17328 duration objects with compound literals.
17330 2002-01-02 Richard Henderson <rth@redhat.com>
17332 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17335 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17337 * gcc.c (default_compilers): Const-ify.
17338 * mips-tdump.c (stab_names): Likewise.
17339 * mips-tfile.c (map_coff_types, map_coff_storage,
17340 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17341 pseudo_ops_t, pseudo_ops): Likewise.
17342 * protoize.c (default_include): Likewise
17344 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17345 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17346 Add array size in declaration.
17347 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17348 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17349 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17350 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17351 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17352 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17353 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17354 emtens, make_nan): Const-ify.
17355 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17356 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17358 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
17360 * config.gcc (ia64-*-*): Set extra_headers.
17361 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
17362 * config/alpha/t-osf: Remove.
17363 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17365 2002-01-02 David Edelsohn <edelsohn@gnu.org>
17367 * config/rs6000/t-aix43: Revert previous change.
17369 2002-01-02 Jason Merrill <jason@redhat.com>
17371 * c-decl.c (c_expand_body): Call outlining_inline_function when
17372 emitting an inline function out of line.
17374 2002-01-02 Richard Henderson <rth@redhat.com>
17376 * dwarf2out.c (limbo_die_node): Add created_for member.
17377 (new_die): New argument created_for. Update all callers.
17378 (mark_limbo_die_list): New.
17379 (dwarf2out_init): Register limbo_die_list as a root.
17380 (dwarf2out_finish): Force insert limbo dies into their function
17383 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
17386 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17388 2002-01-02 Kazu Hirata <kazu@hxi.com>
17390 * config/h8300/fixunssfsi.c: Update copyright.
17393 * config/h8300/h8300.c: Update copyright.
17394 Eliminate warnings.
17396 2002-01-02 Kazu Hirata <kazu@hxi.com>
17398 * config/romp/romp.c: Fix comment formatting.
17399 * config/romp/romp.h: Likewise.
17400 * config/romp/romp.md: Likewise.
17401 * config/s390/s390.c: Likewise.
17402 * config/stormy16/stormy16.c: Likewise.
17403 * config/stormy16/stormy16.h: Likewise.
17405 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
17407 * c-common.h (genrtl_expr_stmt_value): Declare.
17408 * c-semantics.c (genrtl_goto_stmt): Redirect to...
17409 (genrtl_goto_stmt_value): ... this new function. Pass new
17410 argument down to expand_expr_stmt_value, taking
17411 TREE_ADDRESSABLE into account.
17412 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17413 STMT_EXPR as addressable, i.e., one whose result we want.
17414 * expr.c (expand_expr): Don't save expression statement value
17415 of labeled_blocks or loop_exprs.
17416 * stmt.c (expand_expr_stmt): Redirect to...
17417 (expand_expr_stmt_value): ... this new function. Use new
17418 argument to tell whether to save expression value.
17419 (expand_end_stmt_expr): Reset last_expr_type and
17420 last_expr_value if we don't have either.
17421 * tree-inline.c (declare_return_variable): Mark its use
17422 statement as addressable.
17423 * tree.h: Document new use of TREE_ADDRESSABLE.
17424 (expand_expr_stmt_value): Declare.
17426 2002-01-01 Tom Rix <trix@redhat.com>
17428 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17429 rs6000_emit_allocate_stack.
17431 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
17433 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17434 ${srcdir}/ginclude/ to every entry in extra_headers.
17435 * configure: Regenerate.
17436 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17437 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17438 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17439 * ginclude/proto.h: Rename to config/convex/proto.h.
17441 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17443 * attribs.c (handle_vector_size_attribute): Use host_integerp
17444 and tree_int_cst; remove warnings.
17445 * caller-save.c (insert_restore): Add cast to get rid of warning.
17446 (insert_save): Likewise.
17447 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17448 * regmove.c (find_matches): Add temporary var to kill a warning.
17450 2002-01-01 Douglas B Rupp <rupp@gnat.com>
17452 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17453 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17454 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17455 (vms-dwarf2eh.o): Add Makefile rule.
17456 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17457 * config/alpha/vms-dwarf2eh.asm: New file.
17459 * gcc.c (delete_if_ordinary): Delete all versions.
17461 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
17463 * config/mmix/mmix.md: Update FIXME to not mention
17465 (MMIX_rJ_REGNUM): New define_constants constant.
17466 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17467 "*movdicc_real"): Adjust contraints formatting.
17468 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17469 for branch prediction.
17470 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17472 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17473 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17474 number. Delete related FIXMEs.
17475 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17476 from number to MMIX_rJ_REGNUM.
17477 (TARGET_MASK_BRANCH_PREDICT): New.
17478 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17479 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
17480 value. Add -mbranch-predict and -mno-branch-predict.
17481 (TARGET_VERSION): Drop date.
17482 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17483 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17484 for finding out global symbols.
17485 (mmix_asm_output_labelref): Revert condition for global symbol.
17486 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17487 (mmix_print_operand_punct_valid_p): A '+' is valid.
17489 See ChangeLog.6 for earlier changes.