1 2002-06-02 Richard Henderson <rth@redhat.com>
3 * gcse.c (bypass_conditional_jumps): Fix typo last change.
5 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
7 * loop.c (emit_prefetch_instructions): Properly place the address
10 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
12 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
13 (set_block_for_insn): Turn into macro.
14 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
15 * cfglayout.c (insn_scopes): Kill.
16 (scope_to_insns_initialize): Do not use insn_scopes.
17 (scope_to_insns_finalize): Likewise.
18 (duplicate_insn_chain): Likewise.
19 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
20 * cfgrtl.c (basic_block_for_insn): Kill.
21 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
22 (create_basic_block_structure): Use reorder_insns.
23 (compute_bb_for_insn): Do not use basic_block_for_insn.
24 (merge_blocks_nomove): Likewise.
25 (update_bb_for_insn): Likewise.
26 (verify_flow_info): Likewise.
27 (set_block_for_insn): Kill.
28 * combine.c (try_combine): Update gen_rtx_INSN call.
29 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
30 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
32 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
33 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
35 (emit_insns_after): Simplify.
36 (emit_copy_of_insn_after): Copy scope.
37 * final.c (final_start_function): Lower scopes.
38 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
39 * integrate.c (copy_insn_list): Cope scopes.
40 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
41 * loop.c (loop_optimize): Do not care block notes.
42 * print-rtl.c (print_rtx): Print BB.
43 * recog.c (apply_change_group): Simplify.
44 * rtl.c (copy_rtx): Handle 'B'.
45 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
46 * rtl.h (Field accessors): Update indexes.
47 * sched-ebb.c (schedule_ebbs): Do not lower notes.
48 * sched-rgn.c (schedule_insns): Likewise.
49 * toplev.c (rest_of_compilation): Lower notes.
50 * unroll.c (unroll_loop): Do not care scoping notes.
51 (copy_loop_body): Copy scopes.
53 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
56 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
59 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
60 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
61 (TARGET_CPU_CPP_BUILTINS): Use.
63 2002-06-02 Richard Henderson <rth@redhat.com>
65 * alias.c: Include target.h.
66 (mark_constant_function): Use targetm.binds_local_p instead
67 of checking TREE_PUBLIC ourselves.
68 * Makefile.in (alias.o): Add TARGET_H.
70 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
72 * c-lex.c: Update copyright and file description.
74 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
76 * config/fr30/fr30.h: Update to new CPP macros.
78 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
80 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
82 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
83 Zack Weinberg <zack@codesourcery.com>
85 * c-common.c (c_common_init): Override cpplib's default
86 warn_long_long setting.
87 * c-lex.c (lex_number): Replace with interpret_integer,
88 interpret_float, narrowest_unsigned_type and
89 narrowest_signed_type, taking advantage of the new
91 * cpperror.c (_cpp_begin_message): If a warning is turned
92 into an error, avoid printing "warning:".
93 * cppexp.c (cpp_num_sign_extend): New.
94 * cppinit.c: Update comment.
95 * cpplib.h (cpp_num_sign_extend): New.
96 * tree.h: Update comment.
98 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
100 * diagnostic.h (struct diagnostic_context): Add new member
102 (internal_error_function): Remove declaration.
103 * diagnostic.c (internal_error_function): Remove definition..
104 (internal_error): Adjust use.
106 2002-06-02 Richard Henderson <rth@redhat.com>
108 * rtl.h (CC0_P): New.
109 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
110 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
111 (bypass_block): Save old dest block for dump text.
112 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
113 Allow only true SET insns, not single_set.
115 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
117 * diagnostic.c (diagnostic_finish): Rename to output_flush.
118 (clear_disgnostic_info): Rename to output_clear_data. Use false
119 instead of 0 for boolean value.
120 Adjust function call throughout.
122 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
124 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
125 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
127 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
129 * d30v.h (CPP_PREDEFINES): Replace with
130 (TARGET_CPU_CPP_BUILTINS): New.
132 2002-06-02 Roger Sayle <roger@eyesopen.com>
134 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
136 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
138 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
140 2002-06-02 Richard Henderson <rth@redhat.com>
142 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
144 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
146 Support for C++ constructors/destructors.
147 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
148 instead of looping if main() returns.
149 (asm_file_start): Output global symbols that cause .data and .bss
150 initialization code to be linked in, unconditionally for now.
151 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
152 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
153 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
155 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
156 (__tablejump__): New.
157 (__do_copy_data, __do_clear_bss): New.
158 (__do_global_ctors, __do_global_dtors): New.
159 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
162 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
164 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
165 (CPP_SPEC, CPP_PREDEFINES): Kill.
166 * c4x/rtems.h (CPP_PREDEFINES): Kill.
167 (TARGET_OS_CPP_BUILTINS): New.
169 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
171 * Makefile.in (tracer.o): New.
172 * params.def (TRACER_*): New options.
173 * rtl.h (tracer): Declare.
174 * timevar.def (TV_TRACER): New.
175 * toplev.c (dump_file_index): Add DFI_tracer.
176 (dump_file_info): Add tracer.
178 (lang_indepdenent_options): Add tracer.
179 (rest_of_compilation): Call tracer.
180 * tracer.c: New file.
181 * invoke.texi (-ftracer): Document.
182 (--param tracer-*): Document.
184 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
186 * tree-inline.c (expand_call_inline): Make the statement
187 expression we generate have a COMPOUND_STMT.
189 2002-06-01 Roger Sayle <roger@eyesopen.com>
191 * gcse.c (cprop_cc0_jump): Function deleted.
192 (cprop_jump): Take an additional argument which is the possibly
193 NULL cc setting insn immediately before the conditional jump.
194 When a MODE_CC set is present, substitute it into the JUMP_INSN
195 before attempting the constant propagation.
196 (cprop_insn): Recognize cc setters followed by conditional jumps
197 as a special case. Use cprop_jump instead of cprop_cc0_jump.
198 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
199 (find_bypass_set): New function based upon find_avail_set used by
200 cprop, but finds constant expressions available at the end of
202 (bypass_block): New function. Given a basic block that begins
203 with a conditional jump and multiple incoming edges, perform
204 the jump bypass optimization.
205 (bypass_conditional_jumps): New function. Call bypass_block with
206 each suitable basic block in the CFG using a simple single pass.
208 2002-06-01 Roger Sayle <roger@eyesopen.com>
210 * tree.c (real_minus_onep): New function to test for -1.0.
211 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
213 2002-06-01 Roger Sayle <roger@eyesopen.com>
215 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
216 and "!p && !q" into "(p|q) == 0" under suitable conditions.
218 2002-06-01 Andreas Jaeger <aj@suse.de>
220 * cppexp.c (cpp_classify_number): Cast precission to int for
221 correct printf format.
223 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
225 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
226 expected, but don't really exist: atmega83, atmega85, attiny10.
227 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
228 emulations for all devices.
229 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
230 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
232 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
234 * config/h8300/h8300-protos.h: Add a prototype for
235 h8300_shift_needs_scratch_p.
236 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
237 * config/h8300/h8300.h (OK_FOR_R): New.
238 (OK_FOR_S): Likewise.
239 (OK_FOR_T): Likewise.
240 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
241 * config/h8300/h8300.md (anonymous shift patterns): Use
242 constraints R, S, and T.
244 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
246 * basic-block.h (struct basic_block_def): New field loop_father.
247 (BB_VISITED): New flag.
248 (struct loop): New field pred, removed field shared.
249 (struct loops): New field parray.
250 (LOOP_EXITS_DOMS): Removed.
251 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
252 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
253 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
254 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
255 verify_loop_structure): Declare.
256 * cfg.c (entry_exit_blocks): Initialize loop_father field.
257 * cfganal.c (dfs_enumerate_from): New function.
258 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
259 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
260 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
261 flow_loop_dump, flow_loops_dump, flow_loops_free,
262 flow_loop_tree_node_add, flow_loop_level_compute,
263 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
264 flow_loop_outside_edge_p): Modified for new infrastructure.
265 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
266 redirect_edge_with_latch_update, flow_loop_free): New static functions.
267 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
268 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
269 find_common_loop, verify_loop_structure, loop_latch_edge,
270 loop_preheader_edge): New functions.
271 (flow_loops_cfg_dump): Do not show dominators, as this information
272 does not remain up to date long.
273 (flow_loops_find): Store results in new format.
274 * predict.c (propagate_freq, estimate_probability,
275 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
278 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
280 * except.c (nothrow_function_p): Walk epilogue delay list
281 checking the insn, not the chain for potential throws.
283 2002-05-31 Zack Weinberg <zack@codesourcery.com>
285 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
286 (install): Refer to install-cpp directly.
287 (uninstall-cpp): Folded into uninstall rule.
288 * configure.in: Delete all code relating to --disable-cpp.
289 * configure: Regenerate.
290 * config/t-install-cpp: Delete.
292 2002-05-31 Richard Henderson <rth@redhat.com>
294 * configure.in (HAVE_AS_TLS): Add alpha tests.
295 * configure: Rebuild.
296 * config/alpha/alpha.c (TARGET_AS_TLS): New.
297 (alpha_tls_size, alpha_tls_size_string): New.
298 (overide_options): Set it. Always install machine_status hooks.
299 (input_operand): Accept got tls predicates.
300 (local_symbol_p): Merge into ...
301 (local_symbolic_operand): ... here. Reject tls symbols.
302 (global_symbolic_operand): Likewise.
303 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
304 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
305 (tp16_symbolic_operand, tp32_symbolic_operand): New.
306 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
307 (alpha_encode_section_info): Handle TLS symbols.
308 (alpha_strip_name_encoding): Likewise.
309 (alpha_legitimate_address_p): Likewise.
310 (alpha_legitimize_address): Likewise.
311 (alpha_expand_mov): Early exit to avoid nop moves.
312 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
313 (alpha_init_machine_status, alpha_mark_machine_status,
314 alpha_free_machine_status): Always define.
315 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
316 (print_operand, print_operand_address): Add TLS relocs.
317 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
318 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
319 (TARGET_SWITCHES): Add -mtls-kernel.
320 (alpha_tls_size, alpha_tls_size_string): New.
321 (TARGET_OPTIONS): Add -mtls-size=.
322 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
323 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
324 (ASM_OUTPUT_LABELREF): Skip %.
325 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
326 (PREDICATE_CODES): Update.
327 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
328 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
329 UNSPEC_TP, UNSPECV_SET_TP): New.
330 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
331 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
332 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
333 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
334 (call_value_osf_2_er): Accept anything as op4.
335 * config/alpha/alpha-protos.h: Update.
336 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
338 2002-05-31 Zack Weinberg <zack@codesourcery.com>
340 * cppinit.c (append_include_chain): Always pay attention to
341 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
344 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
346 * target.h: Fix formatting.
347 * timevar.h: Likewise.
349 * toplev.c: Likewise.
350 * toplev.h: Likewise.
352 * tree-dump.h: Likewise.
354 * tree-inline.h: Likewise.
355 * unroll.c: Likewise.
356 * unwind-dw2.c: Likewise.
357 * unwind-dw2-fde.c: Likewise.
358 * unwind-dw2-fde-glibc.c: Likewise.
359 * unwind-dw2-fde.h: Likewise.
360 * unwind.h: Likewise.
361 * unwind-sjlj.c: Likewise.
362 * varasm.c: Likewise.
363 * varray.h: Likewise.
364 * vmsdbg.h: Likewise.
365 * vmsdbgout.c: Likewise.
366 * xcoffout.h: Likewise.
368 2002-05-31 Igor Shevlyakov <igor@microunity.com>
370 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
371 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
373 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
375 * gcc.c (cpp_unique_options): Remove "-d" options.
376 (cpp_debug_options): New spec string.
377 (default_compilers): Use it.
378 * objc/lang-specs.h: Likewise.
380 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
382 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
383 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
384 * gcc/mklibgcc.in: Likewise.
385 * gcc/config/arc/t-arc: Likewise.
386 * gcc/configure.in: Likewise.
387 * gcc/configure: Regenerate.
389 2002-05-31 Stan Shebs <shebs@apple.com>
390 Turly O'Connor <turly@apple.com>
392 * c-decl.c (struct binding_level): Change int field n_incomplete
393 to tree list incomplete_list.
394 (clear_binding_level): Init field with NULL.
395 (pushdecl): Add incomplete type to list.
396 (mark_binding_level): Mark the incomplete list.
397 (finish_struct): Scan the incomplete list for types instead
398 of all decls in the current binding level.
400 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
402 * pa.c (output_millicode_call): Add missing '%' characters.
403 (output_call): Likewise.
405 2002-05-31 David Edelsohn <edelsohn@gnu.org>
407 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
408 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
410 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
412 * varasm.c (mark_constant_pool): Walk epilogue delay list
413 checking the insn, not the chain for potential constants.
415 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
417 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
419 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
421 * i386.c (classify_argument): Properly handle base types.
423 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
424 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
427 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
429 * gcse.c (gcse_emit_move_after): New.
430 (pre_delete, hoist_store): Use it.
432 * reload1.c (emit_input_reload_insns): Use constrain_operands
433 instead of constraint_accepts_reg_p to verify optimization.
434 (constraint_accepts_reg_p): Kill
436 * reload1.c (reload_cse_delete_noop_set): Kill.
437 (reload_cse_simplify): use delte_insn_and_edges.
439 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
441 * cfgloop.c (flow_loops_find): Initialize first and last fields
444 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
446 * c-common.c (builtin_define_std): Correct logic.
448 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
450 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
451 (output_call): Likewise.
453 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
455 * pa.c: Move output.h include after tree.h include.
456 (pa_asm_output_mi_thunk): Constify identifier lab.
458 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
460 * config/ns32k/ns32k.h: Define named constants for the
461 bits in target_flags and use them.
462 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
464 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
466 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
467 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
468 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
469 default scheduling model.
470 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
471 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
472 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
473 * doc/install.texi (hppa*-*-*): Document default scheduling.
475 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
477 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
479 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
481 * config.gcc (ns32k-*-netbsd*): Set tm_file to
482 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
483 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
484 netbsd.h, or netbsd-aout.h.
486 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
488 * longlong.h (count_trailing_zeros): Add missing \, and clean up
489 whitespace in __ns32000__ case.
491 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
493 * expr.c (expand_expr): Output partially zeroed out vectors with
496 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
498 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
500 (shl*-*-netbsdelf*): New targets.
501 * config/sh/netbsd-elf.h: New file.
503 2002-05-30 Richard Henderson <rth@redhat.com>
504 Eric Botcazou <ebotcazou@multimania.com>
507 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
508 to unsigned int for op1 comparisons. Use gen_int_mode.
510 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
512 * expmed.c (const_mult_add_overflow_p): New.
513 * expr.h: Declare it.
514 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
515 Don't eliminate the biv if the giv has a constant multiplier and
516 the rhs argument of the comparison does satisfy the predicate.
517 Use expand_mult_add to compute the replacement constant.
519 2002-05-30 Osku Salerma <osku@iki.fi>
521 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
522 (c_common_get_alias_set): Handle it.
523 * doc/extend.texi: Document it.
525 2002-05-30 Richard Henderson <rth@redhat.com>
527 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
528 * toplev.c (process_options): Don't check it.
529 * doc/tm.texi: Don't document it.
530 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
531 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
532 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
533 frame pointer optimization if current_function_profile.
535 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
537 * langhooks.c: Fix formatting.
538 * langhooks.h: Likewise.
540 * libgcc2.c: Likewise.
542 * local-alloc.c: Likewise.
546 2002-05-30 Marc Espie <espie@openbsd.org>
548 * config.gcc (sparc64-*-openbsd*): New.
549 * config/sparc/openbsd1-64.h: New.
550 * config/sparc/openbsd64.h: New.
552 2002-05-30 Jeff Law <law@redhat.com>
554 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
555 a dead insn with a REG_RETVAL note when the entire libcall is not
556 dead and remove the associated REG_LIBCALL note at the same time.
558 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
560 * lcm.c (output.h): #include.
561 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
562 as an ordinary block.
563 (optimize_mode_switching): Don't pretend that the exit block is
564 an ordinary block, or handle sucessors of entry block specially.
565 Instead, split edges from entry block and to exit block, and
566 put a computing definition on the thus gained post-entry-block,
567 and a need on the pre-exit-block.
569 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
571 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
572 * rtl.texi: Document 'B'
574 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
576 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
578 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
580 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
582 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
583 const0_rtx instead of NULL_RTX when in error.
584 (altivec_expand_abs_builtin): Same.
585 (rs6000_expand_binop_builtin): Same.
586 (altivec_expand_predicate_builtin): Same.
587 (altivec_expand_stv_builtin): Same.
588 (rs6000_expand_ternop_builtin): Same.
589 (altivec_expand_builtin): Same.
591 2002-05-29 David S. Miller <davem@redhat.com>
593 * rtl.h (clear_emit_caches): Delete.
594 * integrate.c (output_inline_function): Don't call it.
595 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
596 (clear_emit_caches): Delete definition.
597 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
599 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
601 * config/mmix/mmix.c: Include real.h.
602 (mmix_constant_address_p): Remove redundant test before switch.
604 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
606 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
607 only if not already defined.
609 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
611 * config/h8300/h8300-protos.h: Remove prototypes for
612 ok_for_bclr and small_power_of_two.
613 * config/h8300/h8300.c (small_power_of_two): Remove.
614 (ok_for_blcr): Likewise.
615 (fix_bit_operand): Make WHAT deal with an integer instead of a
616 constraint character.
617 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
618 (CONST_OK_FOR_P): Likewise.
619 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
620 CONST_OK_FOR_P any more.
621 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
626 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
628 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
629 (CPP_PREDEFINES): Make sure this is undefined.
630 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
631 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
632 or -U__MIPSEB__ before defining one or the other. Instead,
633 use %(subtarget_endian_default) if neither -EB nor -EL are
635 (SUBTARGET_EXTRA_SPECS): Define.
636 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
639 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
641 * doc/md.texi (Patterns): Note pattern condition pitfall
644 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
646 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
647 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
648 ternary operations from here...
649 (rs6000_expand_builtin): ...to here.
650 New argument expandedp.
651 Change all instances of altivec_expand_binop_builtin to
652 rs6000_expand_binop_builtin.
653 (altivec_expand_unop_builtin): Rename to
654 rs6000_expand_unop_builtin.
655 (altivec_expand_binop_builtin): Rename to
656 rs6000_expand_binop_builtin.
657 (altivec_expand_ternop_builtin): Rename to
658 rs6000_expand_ternop_builtin.
660 2002-05-29 Richard Henderson <rth@redhat.com>
662 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
663 (TARGET_BI_ARCH): Likewise.
664 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
665 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
666 (TARGET_64BIT_DEFAULT): Default to 0.
667 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
669 2002-05-29 Richard Henderson <rth@redhat.com>
671 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
672 (get_pc_thunk_name): New.
673 (output_set_got): Use it.
674 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
675 into linkonce sections.
677 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
679 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
680 (CPP_PREDEFINES): Make sure this is undefined.
681 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
682 (CPP_SUBTARGET_SPEC): Don't provide different versions for
683 default-32 and default-64. Just always use %(netbsd_cpp_spec).
684 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
685 cpp_subtarget_spec64. Add netbsd_cpp_spec.
686 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
687 (CPP_PREDEFINES): Make sure this is undefined.
688 (SUBTARGET_EXTRA_SPECS): Define.
689 (CPP_SPEC): Use %(netbsd_cpp_spec).
691 2002-05-29 Jeff Law <law@redhat.com>
693 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
695 * flow.c (propagate_one_insn): Do not remove a dead insn if it
696 contains a REG_RETVAL note.
698 * haifa-sched (sched_analyze): Remove another useless clearing
699 of SCHED_GROUP_P I missed yesterday.
701 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
702 * pa.c (pa_asm_output_mi_thunk): New function.
703 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
705 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
706 Marek Michalkiewicz <marekm@amelek.gda.pl>
708 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
709 (avr_asm_only_p): Make non-static.
710 (enum avr_arch): Remove.
711 (avr_arch_types): New.
712 (avr_mcu_types): Update.
713 (avr_override_options): Use avr_arch_types table instead of switch.
714 * avr.h (CPP_PREDEFINES): Die.
715 (avr_base_arch_macro, avr_extra_arch_macro): New.
716 (TARGET_CPU_CPP_BUILTINS): New.
717 (CPP_SPEC, EXTRA_SPECS): Simplify.
718 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
721 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
723 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
724 NETBSD_OS_CPP_BUILTINS_AOUT.
725 (SUBTARGET_EXTRA_SPECS): Define.
726 (CPP_SPEC): Use %(netbsd_cpp_spec).
728 2002-05-29 Richard Henderson <rth@redhat.com>
730 * config/i386/i386.c (ix86_output_function_epilogue): New.
731 (TARGET_ASM_FUNCTION_EPILOGUE): New.
732 (pic_label_name): Remove.
733 (pic_labels_used): New.
734 (ix86_asm_file_end): Emit one pc load stub for each register used.
735 (output_set_got): Generate deep pc load to any register.
736 (ix86_select_alt_pic_regnum): New.
737 (ix86_save_reg): Don't save pic register if we can find a valid
738 call-clobbered replacement.
739 (ix86_expand_prologue): If we found a valid replacement, renumber
740 pic_offset_table_rtx.
741 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
742 pic_offset_table_rtx after reload.
743 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
744 * config/i386/i386.md (set_got): Make insn, not expander.
745 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
747 2002-05-29 Richard Henderson <rth@redhat.com>
749 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
750 alignment for alloca.
752 2002-05-29 Richard Henderson <rth@redhat.com>
754 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
755 (print_operand_address): Only add rip for symbolic addresses
756 for which we do not have another relocation type.
758 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
760 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
761 (EXTRA_SPECS): Add netbsd_cpp_spec.
762 (CPP_SPEC): Use %(netbsd_cpp_spec).
763 (CPP_PREDEFINES): Remove.
764 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
765 (EXTRA_SPECS): Define.
766 (CPP_SPEC): Use %(netbsd_cpp_spec).
767 (CPP_PREDEFINES): Remove.
769 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
772 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
775 2002-05-29 Eric Christopher <echristo@redhat.com>
777 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
778 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
780 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
782 * config/fr30/fr30.md: Remove previous restriction on splits.
783 Enforce conformance through gen_lowpart and cont_int_operand.
784 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
785 as the assembler does not support ".bss".
787 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
789 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
790 (CPP_PREDEFINES): Remove.
791 (SUBTARGET_EXTRA_SPECS): Define.
792 (CPP_SPEC): Use %(netbsd_cpp_spec).
793 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
794 (CPP_PREDEFINES): Remove.
795 (SUBTARGET_EXTRA_SPECS): Define.
796 (CPP_SPEC): Use %(netbsd_cpp_spec).
797 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
798 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
799 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
801 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
803 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
804 Zack Weinberg <zack@codesourcery.com>
806 * cppexp.c (cpp_num): Move to cpplib.h.
808 (interpret_float_suffix, interpret_int_suffix): New.
809 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
810 (cpp_classify_number, cpp_interpret_integer): New.
811 (interpret_number): Remove.
812 (eval_token): Update to use new routines.
813 * cpphash.h (cpp_num_part): Move to cpplib.h.
814 * cppinit.c (cpp_post_options): Set warn_long_long.
815 * cpplib.h (struct cpp_options): Add warn_long_long.
816 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
817 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
818 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
819 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
820 cpp_interpret_integer): New.
822 2002-05-29 Joel Sherrill <joel@OARcorp.com>
824 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
826 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
828 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
829 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
830 (CPP_SUBTARGET_SPEC): Define.
831 (SUBTARGET_EXTRA_SPECS): Define.
834 2002-05-29 Chris Lattner <sabre@nondot.org>
836 * ssa.c (rename_insn_1): Rename uses of undefined registers to
837 prevent confusion if/when the register is defined.
839 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
842 * config/cris/cris.md: Fix typos and thinkos in comments.
843 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
845 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
846 ("*mov_sideqi_mem"): Similar, but for operand 3.
847 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
848 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
849 Remove spurious mode specifier on operand 2.
851 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
853 * config/h8300/h8300-protos.h: Remove the prototype for
855 Add prototypes for single_one_operand and single_zero_operand.
856 * config/h8300/h8300.c (o_operand): Remove.
857 (single_one_operand): New.
858 (single_zero_operand): Likewise.
859 (print_operand): For 'V' operand, and the operand with 0xff.
860 For 'V' and 'W' operands, do not and the bit position with 7.
861 * config/h8300/h8300.md (various anonymous patterns): Replace
862 use of exact_log2 with single_one_operand/single_zero_operand.
864 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
866 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
868 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
870 * config/s390/s390.c (legitimate_pic_operand_p): Do not
871 accept symbolic LARL operands.
872 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
875 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
877 * config/s390/s390.md (cmpstr_64/31): Mark whole
878 input registers as used.
880 2002-05-28 Richard Henderson <rth@redhat.com>
882 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
883 not current_function_uses_pic_offset_table and
884 current_function_uses_const_pool; examine current_function_profile.
885 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
886 input to blockage if needed.
887 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
888 (legitimize_pic_address): Likewise. Set regs_ever_live for
889 pic_offset_table_rtx when invoked during reload.
890 * config/i386/i386.h (FINALIZE_PIC): Remove.
891 * config/i386/i386.md (tablejump): Reformat. Do not set
892 current_function_uses_pic_offset_table.
893 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
894 (blockage): Accept anything as operand 0.
896 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
898 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
899 common CPP built-ins for all NetBSD a.out targets.
900 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
901 common CPP built-ins for all NetBSD ELF targets.
902 * config/netbsd.h: Add missing notice.
903 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
904 for all NetBSD targets.
905 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
906 for all NetBSD targets using an LP64 code model.
907 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
910 2002-05-28 Richard Henderson <rth@redhat.com>
912 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
913 update if UPDATE_LIFE_LOCAL.
915 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
917 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
919 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
920 Jason R. Thorpe <thorpej@wasabisystems.com>
922 config/sh reorganization to factor out endianness and coff:
924 * config/sh/little.h: New file.
925 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
926 defined, define to 0 to select big-endian.
927 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
928 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
929 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
930 * config/sh/t-be: New file.
931 * config/sh/t-le: New file.
933 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
934 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
935 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
936 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
937 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
938 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
939 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
940 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
941 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
942 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
943 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
944 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
945 (LINK_SPEC): Define to SH_LINK_SPEC.
946 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
947 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
948 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
949 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
950 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
951 * config/sh/coff.h: New file.
952 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
953 (TARGET_OBJFMT_CPP_BUILTINS): Define.
954 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
955 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
956 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
957 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
958 (PTRDIFF_TYPE): Likewise.
959 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
960 (CPP_PREDEFINES): Don't define.
961 (TARGET_OBJFMT_CPP_BUILTINS): Define.
962 (LINK_SPEC): Define to SH_LINK_SPEC.
963 (LINK_EMUL_PREFIX): Redefine.
964 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
965 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
966 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
967 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
968 (TARGET_OS_CPP_BUILTINS): Define.
969 (TARGET_DEFAULT): Redefine.
970 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
971 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
972 (LINK_SPEC): Don't redefine.
973 (LINK_DEFAULT_CPU_EMUL): Redefine.
974 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
975 * sh.c (sh_asm_named_section): Don't declare / define.
976 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
977 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
978 (sh64-*-elf* tm_file): Likewise.
979 (sh-*-rtemself* tm_file): Likewise.
980 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
981 (sh-*-linux* tmake_file): Add sh/t-le.
982 (sh-*-rtems* tm_file): Add sh/coff.h
983 (sh-*-* tm_file): Likewise.
985 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
987 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
988 CONSTANT_POOL_ADDRESS_P.
990 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
992 2002-05-28 David Edelsohn <edelsohn@gnu.org>
993 Jeff Law <law@redhat.com>
995 * optabs.c (expand_binop): Fix nwords sign warnings.
996 generate pseudo for add_optab.
998 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
999 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
1001 2002-05-28 Marc Espie <espie@openbsd.org>
1003 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
1004 inherited from gas.h.
1005 (ASM_QUAD): Undef. OpenBSD does not support it.
1007 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
1009 * doc/install.texi (binaries): Change mingw binaries
1010 link to www.mingw.org.
1012 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1014 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
1016 2002-05-28 Richard Henderson <rth@redhat.com>
1018 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
1019 bottom alignment for leaf functions.
1021 2002-05-28 Zack Weinberg <zack@codesourcery.com>
1023 * config/pa/milli32.S, config/pa/lib1funcs.asm,
1024 config/sparc/sol2-g1.asm: Delete unused files.
1026 2002-05-28 Richard Henderson <rth@redhat.com>
1028 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
1030 * flow.c (calculate_global_regs_live): Rename call_used to
1031 invalidated_by_call. Initialize from regs_invalidated_by_call
1032 instead of call_used_regs.
1034 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
1037 2002-05-28 Zack Weinberg <zack@codesourcery.com>
1039 * tree.h: Don't include real.h.
1040 Forward-declare struct realvaluetype.
1041 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
1043 (TREE_REAL_CST_PTR): New accessor.
1044 (TREE_REAL_CST): Update.
1045 * real.h: Include machmode.h.
1046 (realvaluetype): Make it struct realvaluetype, not a typedef.
1047 (build_real): Prototype here.
1049 * tree.c: Include real.h.
1050 (build_real): Allocate the REAL_VALUE_TYPE as a separate
1051 object in GC memory, set TREE_REAL_CST_PTR to point to it.
1052 (build_real_from_int_cst): Use build_real.
1053 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
1056 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
1057 fold-const.c, print-tree.c, real.c: Include real.h.
1058 * Makefile.in: Update dependency lists.
1060 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1062 * basic-block.h (last_basic_block): Declare.
1063 (expunge_block_nocompact): Declaration removed.
1064 (compact_blocks): Declare.
1065 * cfg.c (last_basic_block): New variable.
1066 (expunge_block_nocompact): Removed.
1067 (expunge_block): Do not compact basic blocks.
1068 (compact_blocks): New.
1069 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
1071 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
1073 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
1074 real positions of blocks.
1075 (delete_unreachable_blocks): Simplified -- quadratic behavior now
1077 (cleanup_cfg): Compact blocks.
1078 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
1079 basic_block_info varray.
1080 (flow_delete_block): Comment update.
1081 (back_edge_of_syntactic_loop_p): Modify position check code.
1082 (verify_flow_info): Update checking.
1083 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
1084 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1085 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
1086 indices no longer change.
1087 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
1089 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
1090 * profile.c (branch_prob): Compact blocks.
1091 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
1094 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
1096 * config/h8300/h8300.md (two anonymous patterns): New.
1098 2002-05-28 David S. Miller <davem@redhat.com>
1100 * config/sparc/sparc.md (cpu): Tidy.
1101 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
1103 (in_call_delay): Delete reference to 'return' type.
1104 (eligible_for_return_delay, in_return_delay, define_delay
1105 referencing those): Delete.
1106 (rest of file): Use new type attributes as appropriate.
1107 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
1108 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
1109 * config/sparc/ultra1_2.md (us1_single): New reservation.
1110 (us1_ialuX): Likewise.
1111 * config/sparc/ultra3.md (us3_single): Likewise.
1112 (us3_ialuX): Likewise.
1113 (us3_imul, us3_idiv): Tweak.
1115 2002-05-28 Richard Henderson <rth@redhat.com>
1117 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
1120 2002-05-28 Richard Henderson <rth@redhat.com>
1122 * config.gcc: Obsolete mn10200.
1124 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
1126 * cppexp.c (interpret_number): Optimize for single-digit
1127 and less-than-half-precision cases.
1128 (num_trim, num_positive, num_div_op): Cast constants.
1130 2002-05-27 Bo Thorsen <bo@suse.de>
1132 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
1133 3.1 branch. The file was made by Jakub Jelinek.
1134 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1135 support so multilib doesn't break. And don't define this at all
1136 when -Dinhibit_libc is used.
1137 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
1138 * config/i386/t-linux64: Implement full multilib support. Patch
1139 originally done by Andreas Jaeger and Jakub Jelinek.
1141 2002-05-27 Roger Sayle <roger@eyesopen.com>
1143 * c-common.c: Add support for __attribute__((nothrow)) to specify
1144 that a function cannot throw an exception (using TREE_NOTHROW).
1145 (handle_nothrow_attribute): New function to process this attribute.
1147 * doc/extend.texi: Document the new nothrow function attribute.
1149 2002-05-27 H.J. Lu (hjl@gnu.org)
1151 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
1152 (num_positive): Likewise.
1153 (num_div_op): Likewise.
1155 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1157 * c-common.c (c_common_init): Always use intmax_t.
1159 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1161 * c-common.c (c_common_init): Use intmax_t for now.
1163 2002-05-24 Andrew Haley <aph@redhat.com>
1165 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
1166 if T is a boolean type.
1168 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1170 * basic-block.h (last_basic_block): Defined as synonym for
1172 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1173 flow_depth_first_order_compute, flow_preorder_transversal_compute,
1174 flow_dfs_compute_reverse_init): Replaced relevant occurences of
1175 n_basic_blocks with last_basic_block.
1176 * cfgbuild.c (make_edges): Likewise.
1177 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1178 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1179 * combine.c (combine_instructions): Likewise.
1180 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1181 iterative_dataflow_bitmap): Likewise.
1182 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1183 calc_idoms, idoms_to_doms): Likewise.
1184 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1186 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1187 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1188 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1189 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1190 delete_null_pointer_checks, compute_code_hoist_vbeinout,
1191 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1192 compute_store_table, build_store_vectors): Likewise.
1193 * haifa-sched.c (sched_init): Likewise.
1194 * ifcvt.c (if_convert): Likewise.
1195 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1196 pre_edge_lcm, compute_available, compute_nearerout,
1197 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1199 * predict.c (estimate_probability, process_note_prediction,
1200 note_prediction_to_br_prob): Likewise.
1201 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1202 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1203 * regrename.c (copyprop_hardreg_forward): Likewise.
1204 * resource.c (init_resource_info): Likewise.
1205 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1206 init_regions, schedule_insns): Likewise.
1207 * ssa-ccp.c (ssa_const_prop): Likewise.
1208 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1209 * ssa.c (compute_dominance_frontiers,
1210 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1212 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1213 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1216 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
1218 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1220 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1221 hoist_insn_after, hoist_insn_to_edge): New.
1223 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
1225 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1226 (PROP_FINAL): Include.
1227 * flow.c (life_analysis, update_life_info,
1228 init_propagate_block_info, mark_set_1, mark_used_rgs):
1229 Support SCAN_DEAD_STORE.
1231 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1233 * c-common.c (c_common_init): Set CPP arithmetic precision.
1234 * cppexp.c (cpp_num_part): Move typedef ...
1235 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1236 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1237 (sanity_checks): Update.
1239 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
1241 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1242 (mkheaders): New rule.
1243 (install-mkheaders): New rule.
1244 * configure.in (all_outputs): Add mkheaders.
1245 * configure: Regenerate.
1246 * mkheaders.in: New file.
1248 2002-05-26 Jakub Jelinek <jakub@redhat.com>
1250 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1252 2002-05-26 Andreas Jaeger <aj@suse.de>
1254 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1256 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
1258 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1259 right_shift): Remove.
1260 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1262 (struct op): Use cpp_num.
1263 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1264 num_part_mul, num_unary_op, num_binary_op, num_negate,
1265 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1266 num_div_op, num_lshift, num_rshift, append_digit): New.
1267 (interpret_number, parse_defined, eval_token, reduce): Update
1268 for two-integer arithmetic.
1269 (binary_handler): New typedef.
1271 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1272 (_cpp_parse_expr, reduce): Update to handle two-integers.
1273 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1275 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
1277 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1278 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1279 branch insn into account, do not assume 1.
1280 (avr_out_sbxx_branch): New function. Optimize cases of skipping
1281 over single word insn. Handle upper half of I/O space too.
1282 * config/avr/avr.md (*sbrx_branch): Use it.
1283 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1284 (*sbix_branch, *sbix_branch_bit7): Likewise.
1285 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1286 Use RTL peepholes to optimize register operand sign tests.
1288 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
1290 * config/avr/avr.c (avr_asm_only_p): New variable.
1291 (avr_override_options): Set it here if AVR1.
1292 (asm_file_start): Test it here, report an error if set.
1294 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
1296 * alias.c: Fix formatting.
1297 * attribs.c: Likewise.
1298 * bb-reorder.c: Likewise.
1299 * bitmap.c: Likewise.
1300 * bitmap.h: Likewise.
1301 * builtins.c: Likewise.
1303 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
1305 * reload.c (find_valid_class): Accept new argument DEST,
1306 choose class accordingly.
1307 (push_reload): Update callers.
1309 2002-05-26 Andreas Jaeger <aj@suse.de>
1311 * combine.c (combine_instructions): Do not indent #if for
1314 2002-05-25 Richard Henderson <rth@redhat.com>
1316 * c-pragma.c (apply_pragma_weak): Convert value identifier to
1317 string for decl_attributes.
1318 (handle_pragma_weak): Call assemble_alias if we're modifying
1321 2002-05-25 Richard Henderson <rth@redhat.com>
1324 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1325 using rtl instead of fprintf.
1326 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1327 * config/sparc/sparc-protos.h: Update.
1329 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
1331 * Makefile.in (C_COMMON_H): Fix.
1332 Update other targets.
1333 * c-common.c: Don't include c-lex.h.
1334 (builtin_define_with_value): Make static and prototype.
1335 (builtin_define_std): Move from c-lex.h.
1336 * c-common.h (init_c_lex): Move from c-lex.h.
1337 * c-decl.c: Don't include c-lex.h.
1338 (make_pointer_declarator): Move from c-parse.in.
1339 * c-lex.c: Don't include c-lex.h.
1341 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1342 (make_pointer_declarator): Move to c-decl.c.
1343 * c-pragma.c: Don't include c-lex.h.
1344 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1345 * c-tree.h (make_pointer_declarator): New.
1347 * passes.texi, tm.texi: Update.
1349 * Make-lang.in: Update and correct.
1350 * objc-act.c: Don't include c-lex.h or cpplib.h.
1352 * treetree.c: Don't include c-lex.h.
1354 * darwin-c.c: Don't include c-lex.h.
1355 * c4x/c4x-c.c: Don't include c-lex.h.
1356 * c4x/t-c4x: Update.
1357 * i370/i370-c.c: Don't include c-lex.h.
1358 * i370/t-i370: Update.
1359 * i960/i960-c.c: Don't include c-lex.h.
1360 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1361 * i960/t-960bare: Update.
1362 * i960/t-vxworks: Update.
1363 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1364 * rs6000/t-darwin: Update.
1365 * rs6000/t-rs6000-c-rule: Update.
1366 * v850/v850-c.c: Don't include c-lex.h.
1367 * v850/v850.c: Don't include c-lex.h or cpplib.h.
1370 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1372 * tree.def: Fix typos.
1373 * doc/install.texi: Likewise.
1375 2002-05-25 Richard Henderson <rth@redhat.com>
1377 * configure.in (HAVE_AS_TLS): Add ia64 test.
1378 * configure: Rebuild.
1379 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1380 (override_options): Set it.
1381 (TARGET_HAVE_TLS): New.
1382 (sdata_symbolic_operand): Look for 's'.
1383 (tls_symbolic_operand): New.
1384 (ia64_expand_load_address): Abort for tls symbols.
1385 (gen_tls_get_addr): New.
1386 (gen_thread_pointer): New.
1387 (ia64_expand_move): Split out from movdi. Handle tls symbols.
1388 (rtx_needs_barrier): Add new unspecs.
1389 (ia64_encode_section_info): Handle tls symbols.
1390 (ia64_strip_name_encoding): Strip two encoding chars.
1391 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1392 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1393 (TARGET_OPTIONS): Add tls-size.
1394 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1395 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1396 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1397 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1398 (movsf, movdf): Likewise.
1399 (movdi_symbolic): Use match_scratch. Don't split if we won't
1400 have a scratch availiable.
1401 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1402 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1403 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1404 * config/ia64/ia64-protos.h: Update.
1405 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1406 sdata_symbolic_operand.
1407 (ASM_OUTPUT_LABELREF): Strip two characters.
1409 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1411 * combine.c (simplify_set): Remove an unnecessary subreg.
1413 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
1415 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1417 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1419 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1421 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
1423 2002-05-25 Roger Sayle <roger@eyesopen.com>
1425 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1426 (cond (compare x y) 0) into the equivalent (cond x y).
1428 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1430 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
1432 2002-05-24 Zack Weinberg <zack@codesourcery.com>
1434 * config.gcc: Remove all stanzas for previously obsoleted
1435 systems. Where necessary, add explicit error stanzas to
1436 prevent removed systems from being misidentified as something
1437 else. Begin a fresh obsoletions list, with the systems that
1438 were reprieved last round.
1439 * doc/install.texi: Remove all mention of dead targets.
1440 * fixinc/mkfixinc.sh: Likewise.
1442 * config/arm/arm.h: Bit 31 of target_flags is no longer
1445 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1446 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1447 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1448 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1449 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1450 config/alpha/osf12.h, config/alpha/osf2or3.h,
1451 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1452 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1453 config/clipper/clipper-protos.h, config/clipper/clipper.c,
1454 config/clipper/clipper.h, config/clipper/clipper.md,
1455 config/clipper/clix.h, config/convex/convex-protos.h,
1456 config/convex/convex.c, config/convex/convex.h,
1457 config/convex/convex.md, config/convex/fixinc.convex,
1458 config/convex/proto.h, config/elxsi/elxsi-protos.h,
1459 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1460 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1461 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1462 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1463 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1464 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1465 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1466 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1467 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1468 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1469 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1470 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1471 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1472 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1473 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1474 config/m68k/altos3068.h, config/m68k/apollo68.h,
1475 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1476 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1477 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1478 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1479 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1480 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1481 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1482 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1483 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1484 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1485 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1486 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1487 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1488 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1489 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1490 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1491 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1492 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1493 config/mips/dec-osf1.h, config/mips/elflorion.h,
1494 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1495 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1496 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1497 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1498 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1499 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1500 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1501 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1502 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1503 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1504 config/ns32k/sequent.h, config/ns32k/tek6000.h,
1505 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1506 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1507 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1508 config/sparc/rtems.h, config/we32k/we32k-protos.h,
1509 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1512 2002-05-24 Richard Henderson <rth@redhat.com>
1514 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1515 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1516 * config/i386/i386.c (tls_model_chars): Add leading space.
1517 (tls_symbolic_operand): Don't bias by 1.
1518 (legitimize_address): Don't unbias by 1.
1520 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1522 * lcm.c (optimize_mode_switching): Change bb used as indices
1525 2002-05-24 Richard Henderson <rth@redhat.com>
1527 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1528 of update_life_info_in_dirty_blocks.
1530 2002-05-24 Jakub Jelinek <jakub@redhat.com>
1533 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1535 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
1537 PR preprocessor/6780
1538 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1540 2002-05-24 Jim Blandy <jimb@redhat.com>
1542 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1543 entry with a type code of zero, marking the end of the compilation
1546 2002-05-24 Richard Henderson <rth@redhat.com>
1548 * varasm.c (asm_output_bss): Always output one byte.
1549 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1551 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1553 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1556 2002-05-24 Andreas Jaeger <aj@suse.de>
1558 * ggc-page.c (alloc_page): Cast variables of type size_t to
1559 unsigned long, adjust printf format string.
1560 (ggc_alloc): Likewise.
1561 (ggc_print_statistics): Likewise.
1562 (ggc_print_statistics): Correct printf format string for SCALE to
1565 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
1567 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1569 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
1570 Zack Weinberg <zack@codesourcery.com>
1572 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1574 * dwarf2out.c (lookup_filename): Properly quote filename in .file
1575 directive in assembly file.
1576 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1577 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1578 * config/pj/pj.h (ASM_FILE_START): Likewise.
1579 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1580 * config/avr/avr.c (asm_file_end): Likewise.
1581 * toplev.c (output_quoted_string): Handle possibly signed plain
1583 * toplev.h (output_clean_symbol_name): Declare
1584 * toplev.c (output_clean_symbol_name): Define.
1585 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1586 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1588 2002-05-24 Alan Modra <amodra@bigpond.net.au>
1590 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1592 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
1594 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1595 of size of unsigned.
1597 2002-05-23 Richard Henderson <rth@redhat.com>
1599 * configure.in (HAVE_AS_TLS): New test.
1600 * config.in, configure: Rebuild.
1601 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1602 (ix86_tls_dialect_string, ix86_tls_dialect): New.
1603 (override_options): Set it.
1604 (tls_model_chars, tls_symbolic_operand): New.
1605 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1606 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1607 (local_exec_symbolic_operand): New.
1608 (get_pic_label_name): Merge into output_set_got.
1609 (ix86_asm_file_end): Emit pic_label_name if defined.
1610 (legitimate_constant_p, constant_address_p): New.
1611 (legitimate_pic_operand_p): New.
1612 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1613 (legitimate_address_p): Likewise.
1614 (ix86_encode_section_info): Rename from i386_; handle tls decls.
1615 (ix86_strip_name_encoding): New.
1616 (get_thread_pointer): New.
1617 (legitimize_address): Handle tls symbols.
1618 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1620 (struct machine_function): Add some_ld_name.
1621 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1622 (print_operand) [&]: Use it. Handle UNSPEC_TP.
1623 (output_addr_const_extra): New.
1624 (maybe_get_pool_constant): New.
1625 (ix86_split_to_parts): Use it.
1626 (ix86_expand_move): Handle tls symbols.
1627 (ix86_tls_get_addr): New.
1628 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1629 (TARGET_OPTIONS): Add tls-dialect.
1630 (CONSTANT_ADDRESS_P): Use new out-of-line function.
1631 (LEGITIMATE_CONSTANT_P): Likewise.
1632 (LEGITIMATE_PIC_OPERAND_P): Likewise.
1633 (TARGET_STRIP_NAME_ENCODING): New.
1634 (ASM_OUTPUT_LABELREF): New.
1635 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1636 (OUTPUT_ADDR_CONST_EXTRA): New.
1637 (PREDICATE_CODES): Update.
1638 (ix86_tls_dialect, ix86_tls_dialect_string): New.
1639 * config/i386/i386.md: Regroup and renumber unspec constants.
1640 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1641 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1642 (tls_global_dynamic, tls_local_dynamic_base): New.
1643 (tls_local_dynamic_once): New.
1644 * config/i386/i386-protos.h: Update.
1646 2002-05-23 Richard Henderson <rth@redhat.com>
1648 * genemit.c (gen_insn): Print file:lineno comment before function.
1650 * gensupport.c (struct queue_elem): Add filename member.
1651 (queue_pattern): Initialize it; update all callers.
1652 (process_include): Don't free filename.
1653 (read_md_rtx): Set read_rtx_filename.
1655 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
1657 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1659 2002-05-23 Richard Henderson <rth@redhat.com>
1661 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1663 2002-05-23 Richard Henderson <rth@redhat.com>
1665 * doc/extend.texi (C++98 Thread-Local Edits): Update with
1666 commentary from Mark.
1668 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1670 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1671 Use FOR_EACH_BB macros to iterate over basic block chain.
1672 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1673 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1675 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1676 find_unreachable_blocks, create_edge_list, verify_edge_list,
1677 remove_fake_edges, add_noreturn_fake_exit_edges,
1678 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1680 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1681 find_sub_basic_blocks): Likewise.
1682 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1684 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1686 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1688 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1689 commit_edge_insertions, commit_edge_insertions_watch_calls,
1690 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1691 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1692 * conflict.c (conflict_graph_compute): Likewise.
1693 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1694 df_modified_p, df_refs_unlink, df_dump): Likewise.
1695 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1696 * final.c (compute_alignments): Likewise.
1697 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1698 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1699 count_or_remove_death_notes): Likewise.
1700 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1701 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1702 classic_gcse, compute_transp, cprop, compute_pre_data,
1703 compute_transpout, invalidate_nonnull_info,
1704 delete_null_pointer_checks_1, delete_null_pointer_checks,
1705 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1706 compute_store_table, build_store_vectors, store_motion): Likewise.
1707 * global.c (global_conflicts, mark_elimination): Likewise.
1708 * graph.c (print_rtl_graph_with_bb): Likewise.
1709 * haifa-sched.c (sched_init): Likewise.
1710 * ifcvt.c (if_convert): Likewise.
1711 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1712 compute_available, compute_nearerout, compute_rev_insert_delete,
1713 optimize_mode_switching): Likewise.
1714 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1715 * predict.c (estimate_probability, note_prediction_to_br_prob,
1716 propagate_freq, counts_to_freqs, expensive_function_p,
1717 estimate_bb_frequencies): Likewise.
1718 * profile.c (instrument_edges, get_exec_counts,
1719 compute_branch_probabilities, compute_checksum, branch_prob,
1720 find_spanning_tree): Likewise.
1721 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1722 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1724 * regclass.c (scan_one_insn, regclass): Likewise.
1725 * regmove.c (mark_flags_life_zones, regmove_optimize,
1726 record_stack_memrefs): Likewise.
1727 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1728 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1729 * resource.c (find_basic_block): Likewise.
1730 * sched-ebb.c (schedule_ebbs): Likewise.
1731 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1732 find_single_block_region, find_rgns, schedule_insns)
1733 * sibcall.c (optimize_sibling_and_tail_recursive_call)
1734 * ssa-ccp.c (optimize_unexecutable_edges,
1735 ssa_ccp_df_delete_unreachable_insns): Likewise.
1736 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1737 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1738 rename_block, convert_to_ssa, compute_conservative_reg_partition,
1739 compute_coalesced_reg_partition, rename_equivalent_regs,
1740 convert_from_ssa): Likewise.
1741 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1742 process_for_unwind_directive): Likewise.
1744 * df.c (FOR_ALL_BBS): Removed.
1745 * gcse.c (struct null_pointer_info): Type of current_block field
1747 (struct reg_avail_info): Type of last_bb field changed.
1748 * config/ia64/ia64.c (block_num): Removed.
1749 (need_copy_state): Type changed.
1752 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1754 * cppinit.c (mark_named_operators): Split out from init_builtins.
1755 (cpp_finish_options): Call it from here instead.
1757 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1759 * builtin-attrs.def: Update copyright years.
1760 (ATTR_NONNULL): New attribute identifier.
1761 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1762 attribute tree lists.
1763 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1765 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1766 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1767 attribute lists. Chain the appropriate nonnull attribute.
1768 * c-format.c (check_format_arg): Remove null format string
1770 * testsuite/gcc.dg/format/null-1.c: New test.
1772 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1774 * Makefile.in (ADAC): Define.
1776 (.SUFFIXES): Move before language makefile fragments.
1777 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1779 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1781 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1784 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1786 * cfg.c (dump_flow_info): Print results of
1787 maybe_hot/probably_never_executed predicates.
1788 * toplev.c (open_dump_file): Print function frequency.
1790 2002-05-23 David S. Miller <davem@redhat.com>
1792 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1795 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1797 * c-common.c (warn_nonnull): Declare.
1798 (c_common_attribute_table): Add "nonnull" attribute.
1799 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1800 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1801 check_function_arguments_recurse): New functions.
1802 * c-common.h (warn_nonnull): Declare extern.
1803 (check_function_arguments, check_function_arguments_recurse): New
1805 * c-decl.c (c_decode_option): Add -Wnonnull option.
1806 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1808 (format_check_context): New structure.
1809 (check_format_info_recurse): Remove recursion and rename to...
1810 (check_format_arg): ...this. Update comment.
1811 (check_format_info): Use check_function_arguments_recurse.
1812 * c-typeck.c (build_function_call): Call check_function_arguments
1813 instead of check_function_format.
1814 * doc/extend.texi: Document "nonnull" attribute.
1815 * doc/invoke.texi: Docuemnt -Wnonnull option.
1816 * testsuite/gcc.dg/nonnull-1.c: New test.
1817 * testsuite/gcc.dg/nonnull-2.c: New test.
1819 2002-05-23 David S. Miller <davem@redhat.com>
1821 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1822 * cfgcleanup.c (cleanup_cfg): If it is set do not
1823 attempt to delete trivially dead insns.
1824 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1825 * toplev.c (rest_of_compilation): Document non-trivial aspect
1826 the RTL before optimize_save_area_alloca is run.
1828 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1830 * c-lex.c (indent_level): Remove.
1831 (cb_file_change, c_lex): Remove indent level handling.
1832 * c-lex.h (indent_level): Remove.
1833 * input.h (struct file_stack): Remove indent_level.
1834 * toplev.c (push_srcloc): Remove indent_level handling.
1836 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1839 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1840 of x in constraints for clarity.
1841 (sse_mov?fcc split): abort if op2 == op3.
1842 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1843 sse_movsfcc_const0_4): Add earlyclobber.
1844 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1845 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1846 Use Y instead of x in constraints.
1848 2002-05-23 Richard Henderson <rth@redhat.com>
1850 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1851 (C++98 Thread-Local Edits): New subsection.
1853 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1854 (ix86_arch): Set type to enum processor_type.
1856 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1857 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1859 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1861 * configure.in: Fix as version test for binutils 2.12.1 releases
1863 * configure: Rebuilt.
1865 2002-05-23 Richard Henderson <rth@redhat.com>
1867 * config/i386/i386.c (get_pic_label_name): New.
1868 (load_pic_register): Remove.
1869 (output_set_got): New.
1870 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1871 * config/i386/i386.md (UNSPEC_SET_GOT): New.
1872 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1873 (prologue_set_got, prologue_get_pc): Remove.
1874 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1875 (builtin_setjmp_receiver): Use gen_set_got.
1876 * config/i386/i386-protos.h: Update.
1878 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1880 * gcse.c (hash_expr): Do not use alias set for hashing.
1882 2002-05-22 Kevin Buettner <kevinb@redhat.com>
1884 * dbxout.c (dbxout_class_name_qualifiers): New function.
1885 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1887 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1889 * cpperror.c (_cpp_begin_message): No special casing
1891 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1892 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1893 * cpplib.c (do_include_common): Use DL_ERROR.
1894 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1896 * fix-header.c (read_scan_file): Update.
1898 2002-05-22 Richard Henderson <rth@redhat.com>
1900 * config/i386/i386.c (ix86_expand_call): New function, extracted
1901 from md call patterns. Add pic_offset_table_rtx to
1902 CALL_INSN_FUNCTION_USAGE when needed.
1903 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1904 (call_value_pop, call_value, untyped_call): Likewise.
1905 (call_exp, call_value_exp): Remove.
1906 * config/i386/i386-protos.h: Update.
1908 2002-05-22 Richard Henderson <rth@redhat.com>
1910 * varasm.c (default_section_type_flags): Check for VAR_DECL
1911 before using DECL_THREAD_LOCAL.
1913 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1915 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1916 (STARTFILE_SPEC): Delete PE crt0.o.
1917 * config/rs6000/aix51.h: Same.
1918 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1919 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1920 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1921 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1922 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1924 2002-05-22 Richard Henderson <rth@redhat.com>
1926 * varasm.c (default_section_type_flags): Handle tls data and
1928 (default_unique_section): Handle tls sections.
1930 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1932 * configure.in (CROSS): Define NATIVE_CROSS.
1933 * configure: Regenerate.
1934 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1935 (startfile_prefix_spec): New var.
1936 (static_specs): Add startfile_prefix_spec.
1937 (do_spec_2): Split out from..
1939 (main): Process startfile_prefix_spec.
1940 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1942 (STARTFILE_PREFIX_SPEC): Define.
1943 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1946 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1948 * cpperror.c: Fix formatting.
1949 * cppexp.c: Likewise.
1950 * cppfiles.c: Likewise.
1951 * cpphash.c: Likewise.
1952 * cpphash.h: Likewise.
1953 * cppinit.c: Likewise.
1954 * cpplex.c: Likewise.
1955 * cpplib.c: Likewise.
1956 * cppmacro.c: Likewise.
1957 * cppmain.c: Likewise.
1958 * cppspec.c: Likewise.
1960 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1962 * combine.c (force_to_mode): Use gen_int_mode.
1963 Don't clear CONST_INT bits outside of mode.
1965 2002-05-22 Richard Henderson <rth@redhat.com>
1967 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1968 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1970 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1973 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1974 if DECL_SIZE_UNIT is INTEGER_CST.
1976 2002-05-22 Richard Henderson <rth@redhat.com>
1978 * flow.c (life_analysis): Delete broken reg_label check.
1980 2002-05-22 Richard Henderson <rth@redhat.com>
1982 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1983 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1985 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1987 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1988 (embed-bb.c): New rule.
1989 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1990 * config/sh/embed_bb.c: Delete.
1992 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1994 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1996 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1998 * config/h8300/h8300.md (*andorqi3): New.
2000 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
2002 PR preprocessor/6517
2003 * Makefile.in: Update.
2004 * c-common.c (c_common_post_options): Add preprocessor
2005 errors to the error count.
2006 * c-lang.c (c_post_options): Kill.
2007 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2008 * hooks.h: Add header guards.
2009 * langhooks-def.h: Include hooks.h.
2010 (LANG_HOOKS_POST_OPTIONS): Update.
2011 * langhooks.h (struct lang_hooks): Update post_options.
2012 * toplev.c (parse_options_and_default_flags): Update.
2014 * objc-lang.c (objc_post_options): Kill.
2015 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
2017 2002-05-21 Bruce Korb <bkorb@gnu.org>
2019 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
2020 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
2021 * fixinc/fixincl.x: regen.
2023 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
2025 * cfgbuild.c: Fix formatting.
2027 * cfgcleanup.c: Likewise.
2028 * cfglayout.c: Likewise.
2029 * cfgloop.c: Likewise.
2030 * cfgrtl.c: Likewise.
2032 2002-05-21 Richard Henderson <rth@redhat.com>
2034 * c-common.h (enum rid): Add RID_THREAD.
2035 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
2036 (grokdeclarator): Grok __thread.
2037 * c-parse.in (reswords): Add __thread.
2038 (rid_to_yy): Add RID_THREAD.
2040 * tree.h (DECL_THREAD_LOCAL): New.
2041 (struct tree_decl): Add thread_local_flag.
2042 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
2043 * tree.c (staticp): TLS variables are not static.
2045 * target-def.h (TARGET_HAVE_TLS): New.
2046 * target.h (have_tls): New.
2047 * output.h (SECTION_TLS): New.
2048 * varasm.c (assemble_variable): TLS variables can't be common for now.
2049 (default_section_type_flags): Handle .tdata and .tbss.
2050 (default_elf_asm_named_section): Handle SECTION_TLS.
2051 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
2053 * flags.h (flag_tls_default): Declare.
2054 * toplev.c (flag_tls_default): Define.
2055 (display_help): Display help for it.
2056 (decode_f_option): Set it.
2058 * doc/extend.texi (Thread-Local): New node describing language-level
2059 thread-local storage.
2060 * doc/invoke.texi (-ftls-model): Document.
2062 * fixinc/inclhack.def (thread_keyword): New.
2063 * fixinc/fixincl.x: Rebuild.
2065 2002-05-21 Jeffrey A Law <law@redhat.com>
2067 * optabs.c (expand_binop): For double-word integer multiplies,
2068 do not compute intermediate results into something that is
2069 not a register (such as a SUBREG or MEM).
2071 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
2072 (ix86_sched_reorder): Make sure to initialize scheduling
2073 data even when there's only one insn in the ready queue.
2075 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
2077 * genautomata.c (reserv_sets_hash_value): Fix a typo.
2079 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
2081 * genautomata.c (reserv_sets_hash_value): Define hash_value as
2082 set_el_t. Transform the hash value into unsigned.
2083 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
2084 (transform_3): Add code to process `(A,B)+(D,E)'.
2086 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
2088 * reload1.c (do_output_reload): Run delete_output_reload
2091 2002-05-21 Roger Sayle <roger@eyesopen.com>
2094 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
2095 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
2096 (can_store_by_pieces): ... and here to limit the largest mode used.
2097 Add a comment to document this function.
2099 2002-05-21 Richard Henderson <rth@redhat.com>
2101 * flow.c (life_analysis): Fix test for deleted label.
2103 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
2105 * doc/tm.texi: Fix typo.
2107 2002-05-21 Zack Weinberg <zack@codesourcery.com>
2109 * c-common.c (c_common_init): Set options->unsigned_char from
2111 (cb_register_builtins): Define __STRICT_ANSI__ and
2112 __CHAR_UNSIGNED__ here...
2113 * cppinit.c (init_builtins): Not here.
2114 (cpp_create_reader): unsigned_char option defaults to 0, not
2115 !DEFAULT_SIGNED_CHAR.
2116 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
2117 and -funsigned-char.
2119 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
2120 * cpphash.c (_cpp_init_hashtable): Don't set it.
2121 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
2122 directly. Clarify comment.
2124 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2126 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
2127 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
2128 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
2129 BASIC_BLOCK (n_basic_blocks - 1).
2130 * cfganal.c (can_fallthru, flow_call_edges_add,
2131 flow_preorder_transversal_compute): Too.
2132 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
2133 find_sub_basic_blocks): Too.
2134 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
2135 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
2136 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
2137 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
2138 * combine.c (this_basic_block): Type changed to basic_block.
2139 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
2140 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2141 get_last_value, distribute_notes, distribute_links): Too.
2142 * final.c (compute_alignments): Too.
2143 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
2144 * function.c (thread_prologue_and_epilogue_insns): Too.
2145 * gcse.c (compute_code_hoist_vbeinout): Too.
2146 * global.c (build_insn_chain): Too.
2147 * ifcvt.c (find_if_block, find_cond_trap): Too.
2148 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
2149 * regmove.c (regmove_optimize): Too.
2150 * resource.c (find_basic_block): Too.
2151 * sched-ebb.c (schedule_ebbs): Too.
2152 * ssa-dce.c (find_control_dependence, find_pdom): Too.
2154 2002-05-21 Andreas Jaeger <aj@suse.de>
2156 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
2158 2002-05-21 Richard Henderson <rth@redhat.com>
2160 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
2161 unspec names, not numbers.
2163 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
2165 * doc/sourcebuild.texi: Mention snapshot-README and
2166 snapshot-index.html as needing updating for new front ends.
2168 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2170 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2171 disabling checking, and avoid multiple evaluation of RTX.
2173 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
2175 * bitmap.c (bitmap_find_bit): Return early if we have the correct
2178 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2180 * profile.c (gen_edge_profiler): Set alias set before the memory is
2183 2002-05-20 David S. Miller <davem@redhat.com>
2185 * cselib.c (max_value_regs): New.
2186 (cselib_lookup, cselib_invalidate_regno): Initialize it when
2187 adding new entries to the REG_VALUES table and we are dealing with
2189 (clear_table): Initialize it.
2190 (cselib_invalidate_regno): Use it to determine which hard
2191 registers to scan when mode is not VOIDmode.
2193 2002-05-20 Duraid Madina <duraid@fl.net.au>
2195 * tradcpp.c (fixup_newlines): Use old-style function header.
2197 2002-05-20 Krister Walfridsson <cato@df.lth.se>
2199 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2201 2002-05-20 H.J. Lu (hjl@gnu.org)
2203 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2205 * config/mips/mips.h (DFMODE_NAN): Defined.
2206 (SFMODE_NAN): Likewise.
2208 2002-05-20 Dale Johannesen <dalej@apple.com>
2210 * combine.c (cant_combine_insn_p): Back out my
2213 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2215 * params.c: Fix formatting.
2216 * params.h: Likewise.
2217 * predict.c: Likewise.
2218 * prefix.c: Likewise.
2219 * print-rtl.c: Likewise.
2220 * print-tree.c: Likewise.
2221 * profile.c: Likewise.
2223 2002-05-20 H.J. Lu (hjl@gnu.org)
2225 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2227 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
2229 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2230 switches straight on to the assembler, do not abbreviate them.
2231 * config/arm/elf.h (ASM_SPEC): As above.
2232 * config/arm/semi.h (ASM_SPEC): As above.
2233 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2234 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2235 -mcpu=xscale on to the assembler by default.
2236 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2238 2002-05-20 Richard Henderson <rth@redhat.com>
2240 * cse.c (canon_hash): Reorder do_not_record test. Always
2241 allow pic_offset_table_rtx.
2243 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
2245 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2246 (expand_binop): Ditto (3 times).
2248 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
2250 * Makefile.in (distclean): Remove QMTest stuff.
2251 (QMTEST_PATH): New variable.
2252 (QMTESTFLAGS): Likewise.
2253 (QMTESTRUNFLAGS): Likewise.
2255 (QMTEST_GPP_TESTS): Likewise.
2256 (QMTEST_DIR): Likewise.
2257 (QMTEST_DIR/context): New target.
2258 (qmtest-g++): Likeise.
2259 (qmtest-gui): Likewise.
2260 (QMTEST_DIR/gpp-expected.qmr): Likewise.
2262 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
2264 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2265 an altivec register if TARGET_ALTIVEC.
2267 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2268 to ALTIVEC_VECTOR_MODE.
2269 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2270 (rs6000_va_arg): Vectors may go in registers if they are not
2273 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
2275 * protoize.c: Fix formatting.
2277 2002-05-19 Richard Henderson <rth@redhat.com>
2279 * gensupport.c (init_include_reader): Merge into ...
2280 (process_include): ... here. Simplify composite path creation.
2281 Plug memory leaks. Fix file/line number tracking. Do not
2282 process_define_cond_exec. Return void.
2283 (process_rtx): Don't check process_include return value.
2285 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2287 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2289 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2290 traversing basic block chain.
2291 (create_basic_block_structure, create_basic_block): Declaration changed.
2292 (link_block, unlink_block): Declare.
2293 * cfg.c (entry_exit_blocks): Initialize new fields.
2294 (link_block, unlink_block): New.
2295 (expunge_block_nocompact): Unlink basic block.
2296 (dump_flow_info): Print prev_bb/next_bb fields.
2297 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2298 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2299 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2300 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2301 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2302 (verify_flow_info): Check that list agrees with numbering.
2304 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
2306 * c-common.c (preprocessing_asm): New macro.
2307 * c-lex.h (builtin_define, builtin_assert): Use pfile.
2311 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2312 (CPP_SPEC): Simplify.
2313 (TARGET_CPU_CPP_BUILTINS): Update.
2314 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2315 (CPP_SPEC): Simplify.
2316 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2317 (TARGET_OS_CPP_BUILTINS): Update.
2318 * osf.h (CPP_XFLOAT_SPEC): Kill.
2319 (TARGET_OS_CPP_BUILTINS): Update.
2320 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2321 * osf5.h (CPP_XFLOAT_SPEC): Kill.
2322 * vms.h (CPP_SUBTARGET_SPEC): Kill.
2323 (TARGET_OS_CPP_BUILTINS): Update.
2325 2002-05-19 Richard Henderson <rth@redhat.com>
2327 * varasm.c (default_binds_local_p): Fix typo.
2329 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
2331 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2332 CONST_INT operand to the correct mode after adding 1 to it.
2334 2002-05-19 Mark Mitchell <mark@codesourcery.com>
2336 * config.gcc (powerpc-wrs-windiss*): New target.
2338 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2340 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2343 2002-05-18 Mark Mitchell <mark@codesourcery.com>
2345 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2347 * config.in: Regenerated.
2348 * configure: Regenerated.
2350 2002-05-19 Richard Henderson <rth@redhat.com>
2352 * target-def.h (TARGET_BINDS_LOCAL_P): New.
2353 * target.h (struct gcc_target): Move boolean fields to the end.
2355 * varasm.c (default_binds_local_p): New.
2356 * output.h: Declare it.
2358 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2359 * config/cris/cris.c (cris_encode_section_info): Likewise.
2360 * config/i386/i386.c (i386_encode_section_info): Likewise.
2361 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2362 * config/sh/sh.c (sh_encode_section_info): Likewise.
2364 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2365 (TARGET_BINDS_LOCAL_P): New.
2367 2002-05-19 Richard Henderson <rth@redhat.com>
2369 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2370 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2371 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2373 * toplev.c (display_help): Kill -a -ax help.
2375 * config/1750a/1750a.h, config/alpha/alpha.h,
2376 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2377 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2378 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2379 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2381 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2382 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2384 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2385 (ix86_output_function_block_profiler): Kill.
2386 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2387 (m68hc11_function_block_profiler): Kill.
2388 * config/m68hc11/m68hc11-protos.h: Update.
2389 * config/m88k/m88k.c (output_block_profiler): Kill.
2390 (output_function_block_profiler): Kill.
2391 * config/m88k/m88k-protos.h: Update.
2393 2002-05-19 Richard Henderson <rth@redhat.com>
2395 * system.h (STRIP_NAME_ENCODING): Poison it.
2396 * output.h (STRIP_NAME_ENCODING): Remove.
2397 (default_strip_name_encoding): Declare.
2398 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2399 * target.h (strip_name_encoding): New.
2400 * varasm.c (default_strip_name_encoding): New.
2402 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2403 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2404 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2405 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2406 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2407 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2408 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2409 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2410 config/v850/v850.h: Use the hook, not the macro.
2412 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2413 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2414 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2415 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2416 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2417 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2418 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2419 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2420 config/v850/v850.c, config/v850/v850.h:
2421 Move STRIP_NAME_ENCODING to out-of-line function and add
2422 TARGET_STRIP_NAME_ENCODING.
2424 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2425 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2426 with TARGET_STRIP_NAME_ENCODING referencing existing function;
2427 make function static.
2429 * xcoffout.c: Include target.h
2430 * Makefile.in (xcoffout.o): Update.
2432 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2433 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2434 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2435 reloc argument unused.
2436 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2438 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2439 STRIP_NAME_ENCODING docs.
2441 2002-05-19 Andreas Jaeger <aj@suse.de>
2443 * gengenrtl.c: Add prototype for excluded_rtx.
2445 * real.h: Add prototype for exact_real_truncate.
2447 2002-05-18 Richard Henderson <rth@redhat.com>
2449 * system.h (ENCODE_SECTION_INFO): Poison it.
2450 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2451 * target.h (encode_section_info): New.
2452 * varasm.c (make_decl_rtl, output_constant_def): Use it.
2453 * hooks.c (hook_tree_int_void): New.
2454 * hooks.h: Declare it.
2456 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2457 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2458 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2459 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2460 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2461 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2462 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2463 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2464 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2465 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2466 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2467 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2468 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2469 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2470 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2471 referencing existing function. Make function static.
2473 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2474 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2475 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2476 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2477 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2478 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2479 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2480 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2481 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2482 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2483 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2484 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2485 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2486 Move ENCODE_SECTION_INFO to out-of-line function and add
2487 TARGET_ENCODE_SECTION_INFO.
2489 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2490 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2492 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2494 (switch_to_section): Replace in_rdata case with in_readonly_data.
2496 * config/h8300/h8300.c (h8300_encode_label): Make static.
2497 * config/h8300/h8300-protos.h: Update.
2499 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2500 from rs6000_encode_section_info; make static.
2501 (rs6000_xcoff_encode_section_info): New.
2503 * config/v850/v850.c (v850_encode_data_area): Make static.
2504 * config/v850/v850-protos.h: Update.
2506 * config/vax/vax.c: Include flags.h.
2507 (vms_select_section): Fix typo.
2509 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2510 ENCODE_SECTION_INFO docs.
2512 2002-05-18 Richard Henderson <rth@redhat.com>
2514 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2515 REGISTER_TARGET_PRAGMAS.
2516 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2518 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2520 2002-05-18 Richard Henderson <rth@redhat.com>
2522 * system.h (SELECT_RTX_SECTION): Poison.
2523 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2524 * target.h (select_rtx_section): New.
2525 * varasm.c (output_constant_pool): Use it.
2526 (default_select_rtx_section, default_elf_select_rtx_section): New.
2527 * output.h: Declare them.
2529 * config/darwin.h (SELECT_RTX_SECTION): Move ...
2530 * config/darwin.c (machopic_select_rtx_section): ... here.
2531 * config/darwin-protos.h: Update.
2533 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2534 * config/nextstep.c (machopic_select_rtx_section): ... here.
2535 (nextstep_select_section): Rename variable to avoid macro clash.
2536 * config/nextstep-protos.h: Update.
2538 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2539 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2540 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2541 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2542 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2543 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2544 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2545 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2546 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2547 (SELECT_RTX_SECTION): Remove.
2549 * config/darwin.h, config/elfos.h, config/nextstep.h,
2550 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2551 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2552 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2553 config/sparc/lynx.h, config/xtensa/xtensa.c
2554 (TARGET_ASM_SELECT_RTX_SECTION): New.
2556 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2557 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2558 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2559 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2560 (ia64_aix_select_rtx_section): New.
2561 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2563 * config/mips/mips.c (mips_select_rtx_section): Make static.
2564 Support ELF SHF_MERGE features.
2565 * config/mips/mips-protos.h: Update.
2566 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2567 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2568 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2569 make static, fall back to default_elf_select_rtx_section.
2570 * config/rs6000/rs6000-protos.h: Update.
2571 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2572 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2573 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2574 * config/romp/romp.c (romp_select_rtx_section): New.
2575 * config/s390/s390.c (s390_select_rtx_section): New.
2576 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
2577 declarations before target macro definition.
2578 (xtensa_emit_call): Use static buffer.
2579 (xtensa_select_rtx_section): New.
2580 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2581 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2582 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2584 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2585 SELECT_RTX_SECTION docs.
2587 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
2589 * i386.md (movsi/movdi): Fix template.
2590 (sse2 patterns): Set attributes consistently.
2592 * i386.md (pushqi2, ashrqi_*): Fix constraint.
2594 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
2596 * optabs.c (complex_part_zero_p): New.
2597 * (expand_cmplxdiv_straight): Use it.
2598 * (expand_cmplxdiv_wide): Ditto.
2599 * (expand_binop): Ditto.
2601 2002-05-18 Richard Henderson <rth@redhat.com>
2603 * final.c (HAVE_READONLY_DATA_SECTION): New.
2604 (shorten_branches): Use it instead of ifdefs.
2605 * varasm.c (enum in_section): Add in_readonly_data.
2606 (text_section, data_section): Tidy.
2607 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2609 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2610 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2611 (READONLY_DATA_SECTION): Don't undef.
2613 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2614 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2615 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2617 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2618 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2619 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2620 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2622 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2623 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2624 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2625 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2626 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2627 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2628 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2629 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2630 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2632 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2633 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2634 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2635 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2636 config/pa/pa64-hpux.h, config/sparc/litecoff.h
2637 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2639 * config/elfos.h, config/netware.h, config/svr3.h,
2640 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2641 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2642 config/h8300/h8300.h, config/i386/i386-interix.h,
2643 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2644 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2646 * config/elfos.h, config/netware.h, config/svr3.h,
2647 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2648 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2649 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2650 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2652 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2653 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2654 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2655 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2656 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2657 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2658 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2659 config/rs6000/sysv4.h, config/v850/v850.h
2660 (EXTRA_SECTIONS): Remove in_const/in_rdata.
2661 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2663 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2664 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2665 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2666 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2667 * config/alpha/alpha.c (alpha_start_function): Likewise.
2668 (alpha_write_linkage): Likewise.
2669 * config/m32r/m32r.c (m32r_select_section): Likewise.
2670 * config/m88k/m88k.c (m88k_select_section): Likewise.
2671 * config/mips/mips.c (mips_select_rtx_section): Likewise.
2672 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2673 (rs6000_elf_select_section): Likewise.
2674 * config/v850/v850.c (v850_select_section): Likewise.
2676 * config/1750a/1750a.h, config/i860/sysv3.h
2677 (READONLY_DATA_SECTION_ASM_OP): New.
2678 READONLY_DATA_SECTION_ASM_OP.
2679 * config/i386/interix.c, config/i386/winnt.c
2680 (i386_pe_unique_section): Always use .rdata prefix.
2681 * config/pa/som.h (readonly_data): Always switch to read-only section.
2682 (READONLY_DATA_SECTION): Predicate on flag_pic.
2683 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2684 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2685 (READONLY_DATA_SECTION): Update.
2687 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
2689 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2690 is used without -Wformat.
2691 * c-common.h (warn_format_zero_length): Declare extern.
2692 * c-decl.c (warn_options): Add "format-zero-length".
2693 * c-format.c (warn_format_zero_length): Declare.
2694 (set_Wformat): Set warn_format_zero_length for -Wformat.
2695 (check_format_info): Only warn about zero-length formats if
2696 warn_format_zero_length is true. Include the format type
2697 name in the warning message.
2698 * doc/invoke.texi: Document -Wformat-zero-length.
2699 * testsuite/gcc.dg/format/zero-length-1.c: New test.
2701 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2703 * timevar.c: Fix formatting.
2704 * tlink.c: Likewise.
2705 * toplev.c: Likewise.
2706 * tree-dump.c: Likewise.
2707 * tree-inline.c: Likewise.
2709 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2711 * cppinit.c (cpp_post_options): If preprocessed, turn off
2712 traditional. If traditional, turn off column numbers.
2713 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2714 * cpptrad.c (handle_newline): Update line_base.
2715 (skip_comment): Handle -Wcomment.
2717 2002-05-17 Zack Weinberg <zack@codesourcery.com>
2719 * cppinit.c (struct builtin): Remove unused fields.
2720 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2721 (operator_array): New - was second half of builtin_array.
2722 (init_builtins): Simplify loop over builtin_array/operator_array.
2724 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2726 * defaults.h (UNIQUE_SECTION): Remove.
2727 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2729 2002-05-17 Richard Henderson <rth@redhat.com>
2731 * expr.c (init_expr_once): Don't use start/end_sequence.
2732 Use rtx_alloc instead of emit_insn.
2733 * toplev.c (lang_dependent_init): Run init_expr_once here ...
2734 (lang_independent_init): ... not here.
2736 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2738 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2740 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2742 * config/avr/avr.c (avr_regs_to_save): New function. Also check
2743 for fixed registers, possibly used for global register variables.
2744 (initial_elimination_offset, avr_output_function_prologue,
2745 avr_output_function_epilogue): Move common code to avr_regs_to_save.
2747 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2749 * Makefile.in: Update for cpptrad.c.
2750 * cpphash.h (struct cpp_buffer): New members for buffer
2752 (struct cpp_reader): New members for traditional output.
2753 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2754 * cppinit.c (cpp_create_reader): Set trad_line.
2755 (cpp_destroy): Free trad_out_base if used.
2756 (cpp_read_main_file): Overlay an empty buffer if traditional.
2757 (cpp_finish_options): Don't do builtins.
2758 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2759 (cpp_handle_option): Handle it.
2760 * cpplex.c (continue_after_nul): New.
2761 (_cpp_lex_direct): Use handle_nul.
2762 * cpplib.h (struct cpp_options): New traditional option.
2763 * cpptrad.c: New file.
2765 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2767 * c-common.c (c_common_init_options): Use C89 for Objective-C,
2768 and set the options flag.
2769 * cppinit.c (lang_flags): Remove objc.
2770 (lang_defaults): Remove OBJC and OBJCXX.
2772 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2773 (cpp_handle_option): Remove -+ and -lang-objc++.
2774 For ObjC, just set a flag.
2775 (print_help): Update.
2776 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2778 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2780 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2781 bootstrap with -mips3.
2783 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2785 * final.c: Fix formatting.
2786 * fix-header.c: Likewise.
2788 * fold-const.c: Likewise.
2789 * function.c: Likewise.
2791 2002-05-17 David S. Miller <davem@redhat.com>
2793 PR c/6689, PR optimization/6615
2794 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2795 and make it a pointer to rtx. Update comments.
2796 (update_equiv_regs): When scanning for equivalences, record
2797 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2798 it while making the equiv replacements.
2800 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2802 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2804 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2806 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2807 when encoding visibility into SYMBOL_REF_FLAG.
2809 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2811 * expr.c (force_operand): Fix reversed move.
2813 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2815 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2816 that can be ignored.
2818 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2820 * doc/install.texi (Final install): Recommend to install into a
2821 "clean" target directory.
2823 2002-05-17 Richard Henderson <rth@redhat.com>
2825 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2826 for code blocks. Tidy whitespace.
2828 2002-05-17 Richard Henderson <rth@redhat.com>
2830 * hooks.c (hook_tree_bool_false): New.
2831 * hooks.h: Declare it.
2832 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2833 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2834 * target.h (select_section, unique_section): New.
2835 (in_small_data_p): New.
2836 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2837 (variable_section, output_constant_def_contents): Likewise.
2838 (default_select_section, default_unique_section): New.
2839 (categorize_decl_for_section, default_elf_select_section): New.
2840 * output.h: Declare them.
2842 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2843 (TARGET_ASM_SELECT_SECTION): New.
2844 (SELECT_SECTION): Move ...
2845 * config/darwin.c (machopic_select_section): ... here.
2846 * config/darwin-protos.h: Update.
2848 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2849 (SELECT_SECTION): Move ...
2850 * config/nextstep.c (nextstep_select_section): ... here.
2851 * config/nextstep-protos.h: Update.
2853 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2854 (TARGET_ASM_SELECT_SECTION): New.
2855 * config/svr3.h (SELECT_SECTION): Remove.
2857 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2858 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2859 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2860 (alpha_encode_section_info): Use it.
2861 * config/alpha/alpha-protos.h: Update.
2862 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2863 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2864 (TARGET_ASM_SELECT_SECTION): New.
2865 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2867 * config/arm/pe.h (UNIQUE_SECTION): Remove.
2868 (TARGET_ASM_UNIQUE_SECTION): New.
2870 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2871 (avr_unique_section): Rename from unique_section; make static.
2872 * config/avr/avr-protos.h: Update.
2873 * config/avr/avr.h (UNIQUE_SECTION): Remove.
2875 * config/c4x/c4x.h (SELECT_SECTION): Remove.
2877 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2878 (TARGET_ASM_UNIQUE_SECTION): New.
2879 * config/i386/i386-interix.h: Likewise.
2880 * config/i386/win32.h: Likewise.
2881 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2882 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2883 * config/i386/sco5.h (SELECT_SECTION): Remove.
2884 (TARGET_ASM_SELECT_SECTION): New.
2885 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2887 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2888 instead of SELECT_SECTION.
2889 * config/m68k/dpx2.h: Likewise.
2890 * config/rs6000/lynx.h: Likewise.
2892 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2893 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2894 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2895 (ia64_in_small_data_p): New.
2896 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2897 (ia64_aix_select_section, ia64_aix_unique_section): New.
2898 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2899 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2901 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2902 (TARGET_ASM_SELECT_SECTION): New.
2903 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2904 * config/m32r/m32r-protos.h: Update.
2906 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2907 (SELECT_SECTION): Move ...
2908 * config/m88k/m88k.c (m88k_select_section): ... here.
2910 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2911 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2912 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2913 (mcore_unique_section): Make static.
2914 * config/mcore/mcore-protos.h: Update.
2916 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2917 (TARGET_ASM_UNIQUE_SECTION): New.
2918 * config/mips/elf64.h: Likewise.
2919 * config/mips/iris6gld.h: Likewise.
2920 * config/mips/linux.h: Likewise.
2921 * config/mips/mips-protos.h: Update.
2922 * config/mips/mips.c (mips_select_section): Add align argument.
2923 * config/mips/mips.h (SELECT_SECTION): Remove.
2924 (TARGET_ASM_SELECT_SECTION): New.
2926 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2927 * config/mmix/mmix.c (mmix_select_section): Remove.
2928 (mmix_unique_section): Remove.
2929 * config/mmix/mmix-protos.h: Update.
2931 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2932 (SELECT_SECTION): Move ...
2933 * config/pa/pa.c (pa_select_section): ... here.
2934 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2936 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2937 from rs6000_select_section and make static.
2938 (rs6000_elf_unique_section): Similarly.
2939 (rs6000_xcoff_select_section): From xcoff.h.
2940 (rs6000_xcoff_unique_section): Likewise.
2941 * config/rs6000/rs6000-protos.h: Update.
2942 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2943 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2944 * config/rs6000/xcoff.h: Likewise.
2946 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2947 (SELECT_SECTION): Move ...
2948 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2950 * config/v850/v850.h (SELECT_SECTION): Move ...
2951 * config/v850/v850.c (v850_select_section): ... here.
2952 (TARGET_ASM_SELECT_SECTION): New.
2954 * config/vax/vms.h (SELECT_SECTION): Move ...
2955 * config/vax/vax.c (vms_select_section): ... here.
2956 (TARGET_ASM_SELECT_SECTION): New.
2958 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2959 for the target hooks.
2961 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
2963 * config/arm/arm.c (emit_multi_reg_push): Do not set
2964 RTX_FRAME_RELATED_P on the SEQUENCE.
2966 2002-05-16 Richard Henderson <rth@redhat.com>
2968 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2969 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
2971 2002-05-16 Richard Henderson <rth@redhat.com>
2973 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2975 * config/ia64/ia64.c (saveable_obstack): Do not declare.
2977 2002-05-16 Richard Henderson <rth@redhat.com>
2979 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2980 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2981 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2982 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2983 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2984 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2985 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2986 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2987 Revert "Basic block renumbering removal", and two followup patches.
2989 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2991 * lcm.c (optimize_mode_switching): Revert previous change.
2993 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2995 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2996 with only extant block numbers.
2998 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
3000 * lcm.c (optimize_mode_switching): Fix typo.
3002 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3004 * flow.c (calculate_global_regs_live): Queue blocks in program order.
3006 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3008 * doc/install.texi (Configuration): Document PWDCMD.
3010 2002-05-16 Dale Johannesen <dalej@apple.com>
3012 * combine.c (cant_combine_insn_p): Reenable combinations
3013 involving hard regs unless CLASS_LIKELY_SPILLED_P.
3015 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3017 * c-common.c (cb_register_builtins): Handle more built-ins
3018 here rather than in gcc.c specs.
3019 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
3020 (cpp_options): Pass -O flags even when only preprocessing.
3021 * toplev.c (set_fast_math_flags): New prototype.
3022 (fast_math_flags_set_p): New.
3023 (set_no_fast_math_flags): Remove.
3024 (decode_f_option): Update.
3025 * toplev.h (set_fast_math_flags): Update.
3026 (fast_math_flags_set_p): New.
3027 (set_no_fast_math_flags): Remove.
3029 * c4x/c4x.c (c4x_override_options): Update.
3031 2002-05-16 Zack Weinberg <zack@codesourcery.com>
3033 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
3034 Default-define here.
3035 (builtin_define_with_value): Can now wrap the expansion in
3036 quotation marks if such is wanted.
3037 (cb_register_builtins): Update calls to builtin_define_with_value.
3038 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
3040 (c_common_init): Set options->stdc_0_in_system_headers.
3041 * c-lex.h: Update prototype of builtin_define_with_value.
3042 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
3043 and REGISTER_PREFIX.
3045 * cppinit.c (VERS, ULP, C, X): Kill.
3046 (builtin_array): Remove entries for __VERSION__,
3047 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
3048 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
3050 (init_builtins): Kill off a bunch of now-dead code.
3051 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
3052 -fno-leading-underscore.
3053 (cpp_handle_option): Remove code to set user_label_prefix.
3054 (cpp_post_options): Likewise.
3056 * cpplib.h (struct cpp_options): Remove user_label_prefix.
3057 (stdc_0_in_system_headers): New.
3058 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
3059 stdc_0_in_system_headers) too to decide the value of __STDC__.
3061 * tradcpp.c (user_label_prefix): Kill.
3062 (main): Remove code handling -f(no-)leading-underscore.
3063 (initialize_builtins): Don't define __REGISTER_PREFIX__
3064 or __USER_LABEL_PREFIX__.
3065 (install_value): Wrap compound statement in dummy loop so the
3066 macro works properly in an if statement.
3069 2002-05-16 Janis Johnson <janis187@us.ibm.com>
3071 * loop.h (struct loop_info): Add member has_prefetch.
3072 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
3073 (prescan_loop): Initialize has_prefetch.
3074 (struct prefetch_info): Change prefetch_in_loop and
3075 prefetch_before_loop from bit fields to ints.
3076 (emit_prefetch_instructions): Several small fixes.
3077 (check_dbra_loop): Don't reverse loop that uses prefetch.
3079 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3081 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
3082 * configure.in: Likewise.
3083 * fixinc/check.tpl: Likewise.
3084 * fixinc/fixinc.dgux: Likewise.
3085 * fixinc/fixinc.svr4: Likewise.
3086 * fixinc/fixinc.winnt: Likewise.
3087 * fixinc/fixincl.sh: Likewise.
3088 * fixproto: Likewise.
3089 * configure: Regenerate.
3091 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3093 Basic block renumbering removal:
3094 * basic_block.h (struct basic_block_def): Renamed index to sindex,
3095 added prev_bb and next_bb fields.
3096 (n_basic_blocks): Renamed to num_basic_blocks.
3097 (last_basic_block): New, index of last basic block.
3098 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3099 traversing basic block chain.
3100 (BLOCK_NUM): index -> sindex.
3101 (create_basic_block_structure, create_basic_block): Declaration changed.
3102 (debug_num2bb): Declare.
3103 (expunge_block_nocompact): Declaration removed.
3104 (link_block, unlink_block, compact_blocks): Declare.
3105 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
3106 * cfg.c (entry_exit_blocks): Initialize new fields.
3107 (clear_edges, alloc_block, expunge_block, cached_make_edge,
3108 redirect_edge_pred, dump_flow_info, dump_edge_info,
3109 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
3110 free_aux_for_edges): Modified.
3111 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
3112 (expunge_block_nocompact): Removed.
3113 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
3114 find_unreachable_blocks, create_edge_list, print_edge_list,
3115 verify_edge_list, flow_edge_list_print, remove_fake_successors,
3116 remove_fake_edges, flow_reverse_top_sort_order_compute,
3117 flow_depth_first_order_compute, flow_preorder_transversal_compute,
3118 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
3119 flow_dfs_compute_reverse_execute): Modified.
3120 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
3121 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
3123 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3124 merge_blocks_move_predecessor_nojumps,
3125 merge_blocks_move_successor_nojumps, merge_blocks,
3126 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
3127 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
3128 * cfglayout.c (skip_insns_after_block, label_for_bb,
3129 record_effective_endpoints, scope_to_insns_finalize,
3130 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
3131 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
3132 cfg_layout_duplicate_bb): Modified.
3133 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
3134 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3135 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
3136 flow_loops_find, flow_loop_outside_edge_p): Modified.
3137 * cfgrtl.c (create_basic_block_structure, create_basic_block,
3138 flow_delete_block, compute_bb_for_insn, split_block,
3139 try_redirect_by_replacing_jump, redirect_edge_and_branch,
3140 force_nonfallthru_and_redirect, tidy_fallthru_edge,
3141 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
3142 commit_edge_insertions, commit_edge_insertions_watch_calls,
3143 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3144 purge_all_dead_edges): Modified.
3145 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
3146 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3147 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
3149 * conflict.c (conflict_graph_compute): Modified.
3150 * df.c (FOR_ALL_BBS): Removed.
3151 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3152 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
3153 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
3154 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
3155 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3156 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
3157 * final.c (compute_alignments, final_scan_insn): Modified.
3158 * flow.c (verify_local_live_at_start, update_life_info,
3159 update_life_info_in_dirty_blocks, free_basic_block_vars,
3160 delete_noop_moves, calculate_global_regs_live,
3161 initialize_uninitialized_subregs, allocate_bb_life_data,
3162 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
3163 mark_used_reg, count_or_remove_death_notes): Modified.
3164 * function.c (thread_prologue_and_epilogue_insns): Modified.
3165 * gcse.c (struct null_pointer_info): Change typo of current_block
3167 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3168 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3169 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3170 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3171 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3172 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3173 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3174 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3175 pre_delete, one_pre_gcse_pass, compute_transpout,
3176 invalidate_nonnull_info, delete_null_pointer_checks_1,
3177 free_code_hoist_mem, compute_code_hoist_vbeinout,
3178 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3179 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3180 compute_store_table, build_store_vectors, insert_insn_start_bb,
3181 insert_store, replace_store_insn, free_store_memory, store_motion):
3183 * global.c (global_alloc, global_conflicts, mark_elimination,
3184 build_insn_chain): Modified.
3185 * graph.c (print_rtl_graph_with_bb): Modified.
3186 * haifa-sched.c (sched_init): Modified.
3187 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3188 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3189 if_convert): Modified.
3190 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3191 compute_insert_delete, pre_edge_lcm, compute_available,
3192 compute_farthest, compute_nearerout, compute_rev_insert_delete,
3193 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3195 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3196 * loop.c (loop_dump_aux): Modified.
3197 * predict.c (combine_predictions_for_insn, estimate_probability,
3198 last_basic_block_p, process_note_prediction, process_note_predictions,
3199 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3200 expensive_function_p, estimate_bb_frequencies,
3201 compute_function_frequency): Modified.
3202 * print-rtl.c (print_rtx): Modified.
3203 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3204 get_exec_counts, compute_branch_probabilities, compute_checksum,
3205 branch_prob, find_spanning_tree): Modified.
3206 * recog.c (split_all_insns, peephole2_optimize): Modified.
3207 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3208 convert_regs_1, convert_regs_2, convert_regs): Modified.
3209 * regclass.c (scan_one_insn, regclass): Modified.
3210 * regmove.c (mark_flags_life_zones, regmove_optimize,
3211 combine_stack_adjustments): Modified.
3212 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3213 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3214 * reorg.c (dbr_schedule): Modified.
3215 * resource.c (find_basic_block, init_resource_info): Modified.
3216 * sbitmap.c (sbitmap_intersection_of_succs,
3217 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3218 sbitmap_union_of_preds): Modified.
3219 * sched-deps.c (init_dependency_caches): Modified.
3220 * sched-ebb.c (schedule_ebbs): Modified.
3221 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3222 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3223 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3224 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3225 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3226 ssa_const_prop): Modified.
3227 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3228 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3229 * ssa.c (remove_phi_alternative, find_evaluations,
3230 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3231 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3232 make_regs_equivalent_over_bad_edges,
3233 make_equivalent_phi_alternatives_equival,
3234 compute_conservative_reg_partition,
3235 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3236 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3239 2002-05-16 Mark Mitchell <mark@codesourcery.com>
3241 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3243 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
3245 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3246 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3247 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3248 calling CONSTANT_POOL_ADDRESS_P.
3249 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3250 to decide whether to define __arm__ or __thumb.
3251 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3252 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3254 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3256 * config/arc/arc.h (CPP_PREDEFINES): Remove.
3258 (TARGET_CPU_CPP_BUILTINS): New.
3260 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3262 * cpphash.h (cpp_macro): Move here, and make expansion a union.
3263 * cppmacro.c (cpp_macro): Remove.
3264 (enter_macro_context, replace_args, warn_of_redefinition,
3265 _cpp_create_definition, cpp_macro_definition): Update.
3267 2002-05-16 Jason Merrill <jason@redhat.com>
3269 * config/mips/mips.c (mips_output_external): Don't do sdata
3270 optimization for a variable with DECL_COMDAT set.
3272 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3274 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3275 Cleanups for accepting modifiers on pointers.
3276 Fix predicate typos.
3277 Allow long pointers as well as int pointers.
3279 2002-05-15 Richard Henderson <rth@redhat.com>
3281 * varasm.c (merge_weak): Remove special case for extern and common.
3283 2002-05-15 Matt Hiller <hiller@redhat.com>
3285 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3287 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3288 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3289 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3290 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3291 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3292 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3294 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3296 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3298 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3300 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3301 ("altivec_mfvscr"): Read from VSCR.
3303 Add vscr sets for the following insns: altivec_vctuxs,
3304 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3305 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3306 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3307 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3308 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3309 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3310 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3311 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3312 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3313 altivec_vsum2sws, altivec_vsumsws.
3315 * config/rs6000/rs6000.h: Add VSCR fixed register.
3316 (CALL_REALLY_USED_REGISTERS): Add vscr.
3317 (CALL_USED_REGISTERS): Same.
3318 (FIXED_REGISTERS): Same.
3319 (REG_ALLOC_ORDER): Same.
3320 (reg_class): Add VSCR_REGS.
3321 (REG_CLASS_NAMES): Same.
3322 (REG_CLASS_CONTENTS): Same.
3324 (REGISTER_NAMES): Add vscr.
3325 (DEBUG_REGISTER_NAMES): Same.
3326 (ADDITIONAL_REGISTER_NAMES): Same.
3327 (FIRST_PSEUDO_REGISTER): Increment.
3328 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3330 2002-05-15 Jakub Jelinek <jakub@redhat.com>
3332 * fold-const.c (fold): Fix a typo.
3334 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
3336 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3337 comparison against the highest or lowest integer value before
3338 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3339 transformation and that of an unsigned comparison against 0
3342 2002-05-15 Richard Henderson <rth@redhat.com>
3344 * varasm.c (merge_weak): Error for any weakening after definition.
3345 Adjust weakening after use warning to catch more cases.
3346 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3347 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3349 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
3351 * invoke.texi (-malign-double): Re-add lost warning.
3353 * i386-protos.h (x86_output_mi_thunk): Declare.
3354 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3355 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3357 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3358 when flag_asynchronous_unwind_tables is set.
3360 * flags.h (flag_reorder_functions): Declare.
3361 * function.c (prepare_function_start): Initialize frequnecy.
3362 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3363 * Makefile.in (predict.o): Add dependency on target.h and params.h
3364 * defaults.h (HOT_TEXT_SECTION_NAME,
3365 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3366 * predict.c (choose_function_section): New function.
3367 (estimate_bb_frequencies): Use it.
3368 * toplev.c (flag_reorder_functions): New global variable.
3369 (lang_independent_options): New.
3370 (parse_options_and_default_flags): Set.
3371 * varasm.c (assemble_start_function): Bypass functdion alignment
3372 for never executed functions.
3373 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3374 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3375 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3378 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
3380 * predict.c: Inlude profile.h
3381 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3382 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3383 Use the information about maximal counter in the program.
3385 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
3387 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3388 probably_never_executed_bb_p): New functions.
3389 * cfgcleanup.c (outgoing_edges_match): Use them.
3390 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3391 (maybe_hot_bb_p, probably_cold_bb_p,
3392 probably_never_executed_bb_p): New functions.
3394 * function.h (function): Add new field function_frequency.
3395 * predict.c (compute_function_frequency): New function.
3396 (estimate_probability): Call it.
3398 2002-03-09 Jakub Jelinek <jakub@redhat.com>
3400 PR optimization/5172, optimization/5200
3401 * gcse.c (gcse_main): Disable store_motion.
3403 2002-05-14 Zack Weinberg <zack@codesourcery.com>
3405 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3406 (c_common_nodes_and_builtins): Use it.
3407 (builtin_define_with_value): New function.
3408 (cb_register_builtins): Define __SIZE_TYPE__,
3409 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3410 using builtin_define_with_value. Use consistent notation when
3411 defining __GXX_WEAK__.
3412 (WCHAR_TYPE_SIZE): Don't redefine.
3413 (combine_strings): Don't use WCHAR_TYPE_SIZE.
3415 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3416 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3417 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3418 * tradcpp.c (initialize_builtins): Likewise.
3419 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3421 * c-lex.h (builtin_define_with_value): Prototype.
3422 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3423 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3424 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3426 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3427 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3428 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3429 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3430 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3431 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3432 config/sparc/sol2-bi.h, config/sparc/sparc.h:
3433 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
3434 to __SIZE_TYPE__ etc from all spec strings. When this makes
3435 extra specs empty, delete them.
3437 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
3439 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3440 for PA8000 or generating dwarf2 call frame information.
3441 (output_call): Remove DO_FRAME_NOTES check from return pointer
3443 (following_call): Return 0 when scheduling for PA8000 or generating
3444 dwarf2 call frame information. Revise comment.
3446 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3449 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3450 and __IEEE_FP_INEXACT as appropriate.
3451 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3452 (CPP_SPEC): Remove ieee defines.
3453 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3455 2002-05-14 Richard Henderson <rth@redhat.com>
3457 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3458 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3460 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3462 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3464 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3465 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3466 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3467 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3468 (EXTRA_SPECS): Update.
3469 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3470 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3471 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3472 define TARGET_OS_CPP_BUILTINS if necessary.
3474 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3476 * gcc.c (cpp_options): Must pass -m* and -f* options
3477 to the front end even when only preprocessing.
3478 (cc1_options): Remove redundant -lang-c.
3479 * tradcpp.c (main): Ignore -m options.
3481 * lang-specs.h: Similarly.
3483 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
3485 * genautomata.c (transform_3): Add code for transformation
3486 `(A,B,...)+C -> A+C,B,...'.
3488 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
3490 * final.c (end_final): Do not output profile_arcs constructor, when
3491 no functions are instrumented.
3493 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
3495 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3497 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3499 * doc/install.texi: Remove special markup originally required for
3500 HTML generation with texi2html.
3502 2002-05-14 Andreas Schwab <schwab@suse.de>
3504 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3506 (UNIQUE_SECTION): Define to get small data correctly.
3508 * varasm.c (resolve_unique_section): Add third parameter
3509 flag_function_or_data_sections and use it instead of
3510 flag_function_sections.
3511 (assemble_start_function): Pass flag_function_sections.
3512 (asm_emit_uninitialised): Pass flag_data_sections.
3513 (assemble_variable): Likewise.
3515 2002-05-14 Richard Henderson <rth@redhat.com>
3517 * config/i386/i386.md: Use define_constants for unspec numbers.
3518 * config/i386/i386.c: Likewise.
3520 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3522 * doc/contrib.texi: Update my entry.
3524 2002-05-13 Mark Mitchell <mark@codesourcery.com>
3526 * fixinc/inclhack.def (winidss_valist): Limit applicability.
3527 * fixinc/fixincl.x: Regenerated.
3528 * fixinc/tests/base/math.h: Update.
3529 * fixinc/tests/base/testing.h: Likewise.
3531 2002-05-13 Zack Weinberg <zack@codesourcery.com>
3533 * genattr.c (gen_attr): Don't emit a comma after the last
3536 2002-05-13 Richard Henderson <rth@redhat.com>
3538 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3540 * recog.c (peephole2_optimize): Likewise.
3542 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
3544 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3547 2002-05-13 Jeffrey A Law (law@redhat.com)
3549 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3550 Update prototype and callers.
3551 (propagate_one_insn): Stack pointer adjustments kill MEMs on
3552 the mem_set_list which reference the stack pointer, as do
3553 calls to constant functions as they may clobber outgoing
3556 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3558 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3559 (ia32_multipass_dfa_lookahead): New function.
3561 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3563 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3564 (translate_options): Remove 'V'.
3565 (process_command): Similarly.
3567 * invoke.texi: Remove documentation of 'V'.
3569 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3571 * config/s390/linux.h: Revert 2002-04-22 changes.
3573 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
3575 * config/fr30/fr30.md: Only allow splits of immediate loads
3576 if the destination is a register.
3578 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3580 * Makefile.in (c-common.o, cppinit.o): Update.
3581 * c-common.c: Include except.h.
3582 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3583 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3584 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3585 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3586 CPP_PREDEFINES): Handle here.
3588 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3589 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3590 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3591 TARGET_OS_CPP_BUILTINS.
3592 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3593 (CPP_SPEC, EXTRA_SPECS): Update.
3594 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3595 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3596 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3597 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3598 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3600 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3601 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3603 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3605 * emit-rtl.c (global_rtl): Update comment.
3606 (const_double_htab, const_double_htab_hash,
3607 const_double_htab_hash, lookup_const_double): New.
3608 (const_int_htab_hash, const_int_htab_eq): Remove const
3609 qualifiers, which cause tons of warnings with RTL checking on.
3610 (gen_rtx_CONST_DOUBLE): Deleted.
3611 (const_double_from_real_value): New function - bears some
3612 resemblance to the former immed_real_const_1.
3613 (immed_double_const): Moved here from varasm.c and
3615 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3616 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3617 (gen_rtx): Use immed_double_const.
3618 (init_emit_once): Initialize the const_double_htab. Use
3619 REAL_VALUE_FROM_INT where possible. Can now use
3620 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3621 * varasm.c (struct varasm_status): Remove x_const_double_chain.
3622 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3623 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3624 (init_varasm_status, mark_varasm_status): Don't touch
3625 x_const_double_chain.
3627 * output.h: Delete prototype for clear_const_double_mem.
3628 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
3629 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
3630 const_double_from_real_value, not immed_real_const_1, and use
3631 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
3633 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3634 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3635 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3636 (gen_rtx_REG): Second arg is unsigned.
3638 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3639 (excluded_rtx): New, return true for CONST_DOUBLE.
3640 (genmacro): Write nothing for excluded codes.
3641 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3642 * expr.c (expand_expr): Likewise.
3643 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3645 * toplev.c (rest_of_compilation): Don't call
3646 clear_const_double_mem.
3648 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3649 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3650 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3651 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3652 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3653 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3654 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3655 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3657 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3659 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3661 2002-05-12 Tom Tromey <tromey@redhat.com>
3663 * tree.h (copy_node): Don't mention TREE_PERMANENT.
3665 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3667 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3668 (scan_comma_elt): New function. Accepts whitespace in comma lists.
3669 * gensupport.h: Prototype new routines.
3670 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
3672 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3673 (next_comma_elt): Use scan_comma_elt.
3675 * config/i386/i386.md: Use new attribute notation to break up
3676 long lines in define_attr forms.
3678 2002-05-12 Richard Henderson <rth@redhat.com>
3680 * expr.c (compress_float_constant): New.
3681 (emit_move_insn): Use it.
3682 (float_extend_from_mem): New.
3683 (init_expr_once): Initialize it.
3684 * real.c (exact_real_truncate): New.
3686 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3687 dropped into memory; penalize for size.
3688 (RTX_COSTS): FLOAT_EXTEND is free.
3689 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3690 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3692 2002-05-12 Richard Henderson <rth@redhat.com>
3694 * profile.h (profile_info): Add missing extern to declaration.
3695 * profile.c (profile_info): Define it.
3697 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3699 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3700 used for DImode and TImode.
3702 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3704 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3707 2002-05-11 Zack Weinberg <zack@codesourcery.com>
3709 * config/rs6000/rs6000.c (rs6000_default_long_calls,
3710 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3711 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3712 (rs6000_override_options): Handle -m(no-)longcall.
3713 (init_cumulative_args, output_mi_thunk): Check for both
3714 longcall and shortcall attributes on the function.
3715 (rs6000_attribute_table): Add "shortcall".
3716 (rs6000_handle_longcall_attribute): Update comment.
3717 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3718 altivec_expand_ternop_builtin): Add default clauses to switches
3719 to silence warnings.
3721 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3722 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
3723 (TARGET_OPTIONS): Add longcall and no-longcall.
3725 * config/rs6000/rs6000.md (call_nonlocal_sysv,
3726 call_value_nonlocal_sysv): Split by alternatives. One pair
3727 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3728 the call cookie. The other pair accepts only LR/CTR and has
3731 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3732 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3734 * config/rs6000/rs6000-c.c: New file.
3735 * config/rs6000/t-rs6000-c-rule: New file.
3736 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3737 Prototype rs6000_pragma_longcall.
3739 * doc/extend.texi: Document shortcall attribute.
3740 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3742 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3744 * reorg.c (dbr_schedule): Remove unnecessary test.
3746 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3748 * i386.md (testsi to testqi spliters): New.
3750 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
3752 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3754 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3756 * basic-block.h: New flag EDGE_CAN_FALLTHRU
3757 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3758 that can be made fallthru.
3760 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
3762 * cfglayout.c (cleanup_unconditional_jumps): New static function.
3763 (cfg_layout_initialize): Use it.
3765 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
3767 * config/avr/avr.c (avr_mcu_types): Update supported devices.
3768 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3769 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3771 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3773 * dbxout.c: Fix formatting.
3774 * dependence.c: Likewise.
3776 * diagnostic.c: Likewise.
3777 * doloop.c: Likewise.
3778 * dominance.c: Likewise.
3779 * doschk.c: Likewise.
3780 * dwarf2asm.c: Likewise.
3781 * dwarf2out.c: Likewise.
3782 * dwarfout.c: Likewise.
3784 2002-05-10 Richard Henderson <rth@redhat.com>
3786 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3787 Convert integers constants as needed. Replace "nwords" field with
3789 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3790 * function.h: Fix typo in comment.
3791 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3793 2002-05-10 Roger Sayle <roger@eyesopen.com>
3795 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3796 into the equivalent (signed char)c > 0.
3798 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3800 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3801 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3802 (struct prefetch_info): Fix spelling of member bytes_accessed.
3803 (emit_prefetch_instructions): Make dump messages more regular;
3804 restructure code to add more dump messages; use new macros for
3805 heuristics. (There are no code generation changes in any of this).
3807 2002-05-10 David S. Miller <davem@redhat.com>
3809 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3810 (struct rtx_def): Update unchanging flag comment.
3811 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3812 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3813 to be handled to INSN too.
3814 (dbr_schedule): Likewise.
3815 * resource.c (next_insn_no_annul): Likewise.
3817 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3820 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3822 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3823 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3824 (possibly) work around broken /bin/sh.
3826 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3828 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3829 . as N64/N32 libgcc_s.so subdirs.
3831 2002-05-10 David S. Miller <davem@redhat.com>
3833 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3835 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3837 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3839 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3840 * doc/rtl.texi: Document these macros more accurately.
3841 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3842 JUMP_INSNs and CALL_INSNs.
3843 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3844 or INSN_FROM_TARGET_P if the code is appropriate.
3846 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3848 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3849 before using SYMBOL_REF_FLAG (addr).
3851 * config/avr/avr-protos.h (avr_io_address_p): Declare.
3852 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3853 Make non-static. Update all callers.
3854 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3855 New insns to clear/set/test a single bit in I/O address space.
3857 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3859 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3861 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3863 * Makefile.in: Update.
3864 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3865 builtin_define_std): New.
3866 (c_common_init): Register CPP builtins callback.
3867 * c-common.h (flag_iso, flag_undef): New.
3868 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3869 * c-lex.c: Don't include target.h.
3870 (cb_register_builtins): Move to c-common.c.
3871 (init_c_lex): Don't register hook here.
3872 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3873 (cpp_define, cpp_assert): Remove.
3874 * gcc.c (cc1_options): Pass -undef to front end.
3875 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3876 (TARGET_INITIALIZER): Update.
3877 * target.h (struct cpp_reader): Don't predeclare.
3878 (struct gcc_target): Remove cpp builtin hook.
3879 * tree.c (default_register_cpp_builtins): Remove.
3883 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3885 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3887 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3889 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3890 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3892 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3894 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3895 * config/sparc/libgcc-sparc-glibc.ver: New file.
3896 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3897 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3899 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3902 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3903 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3904 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3906 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3907 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3908 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3909 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3911 2002-05-09 Richard Henderson <rth@redhat.com>
3913 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3914 * config/ia64/ia64.c: Likewise.
3916 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3918 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3919 (save_restore_insns): Likewise.
3920 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3921 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3923 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
3925 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3926 * i386.md: Move scheduling information into new files.
3928 * i386.md (type attribute): Add "rotate" for rotate insns.
3929 (rotate insns): Set type to "rotate".
3930 (various attributes and function units): Treat rotate like shift.
3931 (pent_pair attribute): Only rotates by one bit position are
3933 (sbb insns): Explicitly set pent_pair attribute on a couple
3934 that were missing it.
3936 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3938 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3939 make sure that buffer starts on odd word address.
3940 (sh_va_arg): Skip odd fp registers when reading a double precision
3943 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3945 * tree.h (preserve_data, object_permanent_p, type_precision):
3948 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3950 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3951 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3953 * cpp.texi: Update for removal of obsolete features.
3955 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
3956 Jeffrey A Law (law@redhat.com)
3958 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
3959 the DFA interface for Pentium processors.
3960 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3961 (attr_pent_pair, ix86_pent_find_pair): Remove.
3962 (ix86_sched_reorder_pentium): Remove.
3963 (ix86_sched_reorder): Remove reordering for Pentium.
3964 * i386.md (Pentium scheduling): Rewrite using DFA description.
3966 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
3968 * cfganal.c (can_fallthru): Fix fast path.
3969 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3970 with edges to the next block.
3972 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3973 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3975 * final.c (end_final): Use C trees to output data structures for profiling.
3977 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3978 (profile.o): New dependency profile.h
3979 (final.o): New dependency profile.h
3980 * profile.h: New file. New global structure profile_info.
3981 * final.h (count_edges_instrumented_now): Declare.
3982 (current_function_cfg_checksum): Declare.
3983 (function_list): New structure.
3984 (functions_head, functions_tail): New static variables.
3985 (end_final): Emits more data, removed some -ax stuff.
3986 (final): Stores function names and chcksums.
3987 * gcov-io.h (__write_gcov_string): New function.
3988 (__read_gcov_string): New function.
3989 * gcov.c (read_profile): New function.
3990 (create_program_flow_graph): Uses read_profile instead of reading
3992 (read_files): Removed da_file checking, it's done by read_profile now.
3993 * libgcc2.c (bb_function_info): New structure.
3994 (bb): New field in structure, removed some -ax stuff.
3995 (__bb_exit_func): Changed structure of da_file.
3996 * profile.c (count_edges_instrumented_now): New global variable.
3997 (current_function_cfg_checksum): New global variable.
3998 (max_counter_in_program): New global variable.
3999 (get_exec_counts): New function.
4000 (compute_checksum): New function.
4001 (instrument_edges): Sets count_edges_instrumented_now.
4002 (compute_branch_probabilities): Uses get_exec_counts instead of
4004 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
4005 (init_branch_prob): Removed da_file checking, done in get_exec_counts
4007 (end_branch_prob): Removed da_file checking, done in get_exec_counts
4009 * gcov.texi: Updated information about gcov file format.
4011 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4013 * sbitmap.c: Fix formatting.
4015 * scan-decls.c: Likewise.
4016 * sched-deps.c: Likewise.
4017 * sched-ebb.c: Likewise.
4018 * sched-rgn.c: Likewise.
4019 * sched-vis.c: Likewise.
4020 * sdbout.c: Likewise.
4021 * sibcall.c: Likewise.
4022 * simplify-rtx.c: Likewise.
4024 * ssa-ccp.c: Likewise.
4025 * ssa-dce.c: Likewise.
4027 * stor-layout.c: Likewise.
4028 * stringpool.c: Likewise.
4030 2002-05-09 David S. Miller <davem@redhat.com>
4032 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
4034 2002-05-07 David S. Miller <davem@redhat.com>
4036 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
4037 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
4038 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
4039 library implementation clobbers the output before the inputs
4040 are fully consumed, use stack temporary for the output.
4042 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
4044 * config/netbsd.h (CPP_SPEC): Remove.
4045 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
4046 * config/i386/netbsd.h (CPP_SPEC): Define.
4047 * config/ns32k/netbsd.h (CPP_SPEC): Define.
4048 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
4049 * config/sparc/netbsd.h (CPP_SPEC): Define.
4050 * config/vax/netbsd.h (CPP_SPEC): Define.
4052 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4054 * read-rtl.c: Fix formatting.
4056 * recog.c: Likewise.
4057 * regclass.c: Likewise.
4058 * regmove.c: Likewise.
4059 * reg-stack.c: Likewise.
4060 * reload1.c: Likewise.
4061 * reload.c: Likewise.
4062 * resource.c: Likewise.
4063 * rtlanal.c: Likewise.
4065 * rtl-error.c: Likewise.
4067 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
4069 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
4070 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
4072 2002-05-08 Bernd Schmidt <bernds@redhat.com>
4074 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
4075 use __SSE2__ macro instead.
4076 * config/i386/xmmintrin.h: Likewise.
4078 2002-05-08 Janis Johnson <janis187@us.ibm.com>
4080 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
4081 and use it in all invocations of these macros. Clean up comments.
4082 * rtl.c (rtl_check_failed_flag): Add an argument for the name
4083 of the flag access macro whose check failed.
4084 * doc/rtl.texi (Flags): Document additional flag uses.
4086 2002-05-08 Robert Spier <rspier@pobox.com>
4087 Neil Booth <neil@daikokuya.demon.co.uk>
4089 PR preprocessor/6521
4090 * cppfiles.c (handle_missing_header): Don't do anything
4091 different for <> includes.
4093 * cppopts.texi: Update documentation for -MG.
4095 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
4097 * cpplex.c (cpp_interpret_charconst): Truncate as well as
4100 * cpp.texi: Clarify multichar charconst valuation.
4102 2002-05-08 Mark Mitchell <mark@codesourcery.com>
4104 * doc/invoke.texi: Document -mwindiss option.
4106 2002-05-08 Jason Merrill <jason@redhat.com>
4108 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
4110 * dwarf2out.c (gen_type_die): Abort on broken recursion.
4113 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
4116 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
4118 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
4119 little-endian multilibs to override arm/thumb multilibs.
4120 Do not build hardware floating point multilibs, nor apcs-26
4121 multilibs for the Thumb.
4123 2002-05-08 Mark Mitchell <mark@codesourcery.com>
4126 * varasm.c (mark_weak): New function.
4127 (merge_weak): Use it. Do not call declare_weak.
4128 (declare_weak): Use merge_weak.
4130 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4132 * cse.c (dead_libcall_p): Update counts.
4133 (delete_trivially_dead_insns): Update call of dead_libcall_p.
4135 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
4137 * cfglayout.c (function_tail_eff_head): Rename to ...
4138 (function_footer): ... this one.
4139 (unlink_insn_chain): New functions.
4140 (label_for_bb): Only call block_label and emit debug message.
4141 (record_effective_endpoints): Actually unlink the headers and footers.
4142 (fixup_reorder_cahin): Re-insert the unlinked sequences.
4143 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
4144 * cfglayout.h (struct reorder_block_def): New fields footer/header;
4145 remove eff_head/eff_end.
4146 * rtl.h (set_first_insn): Declare.
4147 * emit-rtl.c (set_first_insn): New function.
4149 * cfglayout.c (fixup_reorder_chain): Dump duplicated
4150 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4151 cfg_layout_duplicate_bb): New global function.
4152 (duplicate_insn_chain): New static function.
4153 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4154 cfg_layout_duplicate_bb): Declare.
4155 (struct reorder_block_def): Add "original" field.
4156 * emit-rtl.c (emit_copy_of_insn_after): New function.
4157 * rtl.h (emit_copy_of_insn_after): Declare.
4159 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
4160 (fixup_reorder_chain): properly handle edges to exit block.
4162 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4163 Jan Hubicka <jh@suse.cz>
4165 * basic-block.h (note_prediction_to_br_prob): declare.
4166 * c-semantics.c: Inlucde predit.h
4167 (expand_stmt): predict GOTO_STMT as not taken.
4168 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4169 (cleanup_cfg): Do not free tail_recursion_list.
4170 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4171 (flow_delete_block): Kill predictions past end of basic block.
4172 * output.h (delete_unreachable_blocks): Declare.
4173 * predict.c (predicted_by_p, process_note_predictions,
4174 process_note_prediction, last_block_p): New function.
4175 (estimate_probability): Bypass loop on PRED_CONTINUE;
4176 do not handle noreturn heuristics; kill PRED_RETURN; add
4178 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4179 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4180 * predict.h (IS_TAKEN): New constant.
4181 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4182 * rtl.c (NOTE_INSN_PREDICTION): New.
4183 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4185 (insn_note): add NOTE_INSN_PREDICTION.
4186 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4187 CFG; free tail_recursion_label_list.
4188 * stmt.c: Include predict.h;
4189 (return_prediction): New.
4190 (expand_value_return): Use it.
4191 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4193 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
4195 * config/mips/mips.md: Name the unspecs with define_constant.
4196 (*HILO_delay): Rename to 'hilo_delay' (no star).
4197 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4198 (reload_outdi, reload_outsi): Likewise.
4200 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4202 * toplev.c: Fix formatting.
4204 2002-05-07 Janis Johnson <janis187@us.ibm.com>
4206 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4207 * configure.in (ac_rtlflag_checking): New.
4208 * doc/install.texi (--enable-checking): Document RTL flag checking.
4210 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
4212 * c-common.c (c_common_init): Set options->unsigned_wchar.
4213 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4214 group target dependencies.
4215 (init_builtins, cpp_handle_option): Update.
4216 * cpplex.c (cpp_interpret_charconst): Update.
4217 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4218 signed_char to unsigned_char, group target dependencies.
4219 * defaults.h (WCHAR_UNSIGNED): Remove.
4220 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4222 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4223 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4224 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4225 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4226 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4228 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4230 2002-05-07 Mark Mitchell <mark@codesourcery.com>
4232 * fixinc/inclhack.def (windiss_math1): New fix.
4233 (windiss_math2): Likewise.
4234 (windiss_valist): Likewise.
4235 * fixinc/fixincl.x: Regenerated.
4237 2002-05-07 Andreas Jaeger <aj@suse.de>
4239 * genautomata.c (output_internal_min_issue_delay_func): Add
4240 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4241 (output_internal_trans_func): Likewise.
4243 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
4245 * pa.c (hppa_profile_hook): Use force_reg to get the address
4246 of the profile hook into an appropriate pseudo register.
4248 2002-05-07 Mark Mitchell <mark@codesourcery.com>
4250 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4251 (LINK_START_SPEC): Handle it.
4252 (LINK_OS_SPEC): Likewise.
4253 (CPP_SPEC): Likewise.
4254 (STARTFILE_SPEC): Likewise.
4255 (LIB_SPEC): Likewise.
4256 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
4258 (CRTSAVRES_DEFAULT_SPEC): New macro.
4259 (LIB_WINDISS_SPEC): New macro.
4260 (CPP_OS_WINDISS_SPEC): Likewise.
4261 (STARTFILE_WINDISS_SPEC): Likewise.
4262 (ENDFILE_WINDISS_SPEC): Likewise.
4263 (LINK_START_WINDISS_SPEC): Likewise.
4264 (LINK_OS_WINDISS_SPEC): Likewise.
4265 * config/rs6000/windiss.h: New file.
4267 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
4269 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4271 2002-05-06 David S. Miller <davem@redhat.com>
4273 * config/sparc/sparc.md (shift insns): Do not mask off
4274 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4277 2002-05-06 Richard Henderson <rth@redhat.com>
4280 * expr.c (highest_pow2_factor_for_type): New.
4281 (expand_assignment): Use it.
4283 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
4285 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4287 ("altivec_mfvscr"): Same.
4289 2002-05-06 Janis Johnson <janis187@us.ibm.com>
4291 * rtl.h (struct rtx_def): Update comments.
4292 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
4293 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
4294 RTL_FLAG_CHECK macros with list of expected RTL codes.
4295 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4296 (rtl_check_failed_flag): New.
4297 * reload1.c (reload): Use REG macro before changing rtx to MEM.
4298 (reload_cse_noop_set_p): Check rtx code before using access macro.
4299 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4300 before using access macro.
4302 2002-05-06 Janis Johnson <janis187@us.ibm.com>
4304 * doc/rtl.texi (Flags): Update to reflect current usage.
4306 2002-05-06 Roger Sayle <roger@eyesopen.com>
4309 * fold-const.c (sign_bit_p): New function.
4310 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4311 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4312 Reapply fold when converting (A & C) == C into (A & C) != 0.
4313 (fold_binary_op_with_conditional_arg): Fix typo in comment.
4315 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
4317 * c-common.c (warn_multichar): New.
4318 (c_common_init): Set CPP's warn_multichar.
4319 * c-common.h (warn_multichar): New.
4320 * c-decl.c (warn_multichar): Remove.
4321 * c-lex.c (lex_charconst): Update.
4322 * c-tree.h (warn_multichar): Remove.
4323 * cppexp.c (eval_token): Sign-extend charconst value.
4324 * cppinit.c (cpp_create_reader): Set warn_multichar.
4325 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4326 each character. Update prototype. Sign-extend the result.
4327 * cpplib.h: Fix conditions.
4328 (struct cpp_options): Add new warning flag.
4329 (cpp_interpret_charconst): Update prototype.
4331 * cpp.texi: Update documentation.
4333 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
4335 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4336 Fix typo in usage of allof instead of unit.
4338 2002-05-06 Richard Henderson <rth@redhat.com>
4340 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4341 and any jump or call for IN.
4343 2002-05-06 Bernd Schmidt <bernds@redhat.com>
4345 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4347 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4349 2002-05-06 Roger Sayle <roger@eyesopen.com>
4351 * fold-const.c (lshift-double): Cast the high word to an unsigned
4352 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4353 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4354 avoid compiler warning. (fold): Remove redundant code from
4355 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4357 2002-05-06 Jeff Law <law@redhat.com>
4359 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4360 * pa.c (pa_adjust_cost): Remove all true dependency cost
4361 adjustments. Also remove support for non-DFA scheduling.
4362 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4363 to adjust true dependency costs. Update various comments.
4364 (7100lc, 7200, 7300 scheduling): Simplify by combining the
4365 FP ALU & MPY units into a single unit.
4367 2002-05-06 Catherine Moore <clm@redhat.com>
4369 * config/v850/v850.c (compute_register_save_size): Make sure
4370 to count all of the registers that will be saved.
4372 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4374 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4376 2002-05-06 David S. Miller <davem@redhat.com>
4378 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4379 allow result to overlap input operands in memory.
4381 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
4384 * cpp.texi: Update multichar charconst docs.
4386 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
4388 * cpplex.c (cpp_interpret_charconst): Sign-extend each
4389 character. Don't ignore excess characters. Treat
4390 multicharacter character constants as signed.
4391 (cpp_parse_escape): Clarify diagnostic.
4393 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4395 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4396 use add instead of shift.
4397 (ashldi3_sp64): Likewise.
4398 (ashlsi3_const1, ashldi3_const1): Remove.
4399 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4400 * config/sparc/sparc.c (const1_operand): New.
4402 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
4404 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4406 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4409 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4411 2002-05-05 Richard Henderson <rth@redhat.com>
4413 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4414 memory latency adjustments.
4415 (alpha_variable_issue): Remove.
4416 (alpha_use_dfa_pipeline_interface): New.
4417 (alpha_multipass_dfa_lookahead): New.
4418 * config/alpha/alpha.md: Remove define_function_unit scheduling;
4419 include new dfa scheduling.
4420 (attr type): Add none.
4422 * config/alpha/ev4.md: New.
4423 * config/alpha/ev5.md: New.
4424 * config/alpha/ev6.md: New.
4426 2002-05-05 David S. Miller <davem@redhat.com>
4428 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4430 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
4432 * cse.c: Fix formatting.
4433 * emit-rtl.c: Likewise.
4435 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4437 * genautomata.c (initiate_states): Add additional guard to
4438 initialize `units_array'.
4440 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4442 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4443 process_unit_to_form_the_same_automaton_unit_lists,
4444 form_the_same_automaton_unit_lists
4445 check_unit_distributions_to_automata): New prototypes and
4447 (check_automata): Rename it into `check_automata_insn_issues'.
4448 (unit_decl): New fields `the_same_automaton_unit' and
4449 `the_same_automaton_message_reported_p'.
4450 (unit_decl_t): New typedef.
4451 (the_same_automaton_lists): New gloval variable.
4452 (unit_regexp, unit_set_el, units_array, units_cmp,
4453 output_get_cpu_unit_code_func): Use the typedef.
4454 (evaluate_max_reserv_cycles): Increment
4455 `description->max_insn_reserv_cycles'.
4456 (initiate_states): Don't increment `max_cycles_num'.
4457 (transform_insn_regexps): Move code around transformation of
4458 regexps from `generate'.
4459 (generate): Remove call of `transform_insn_regexps'.
4460 (expand_automata): Call `transform_insn_regexps' and
4461 `check_unit_distributions_to_automata'. Check errors before
4464 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4465 automaton `ultrasparc3_1'.
4467 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
4469 * c-common.c (c_common_init): Set up CPP arithmetic.
4470 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4471 something reasonable for the host.
4472 (sanity_checks): Add checks.
4473 (cpp_read_main_file): Call sanity_checks() from here...
4474 (cpp_post_options): ... not here.
4475 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4476 * cpplib.h (struct cpp_options): New member int_precision.
4478 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4480 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4482 2002-05-04 David S. Miller <davem@redhat.com>
4484 * config/sparc/linux.h, config/sparc/linux64.h
4485 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4487 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4489 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4491 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4494 2002-05-05 Tim Josling <tej@melbpc.org.au>
4496 * treelang; New directory for new sample language treelang.
4498 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4500 * Makefile.in (c-lex.o): Update.
4501 * c-lex.c: Include target.h.
4502 (cb_register_builtins): New.
4503 (init_c_lex): Set builtins callback.
4504 * c-lex.h (cpp_define, cpp_assert): New prototypes.
4505 * cppinit.c (init_builtins): Use callback, including for
4507 * cpplib.h (struct cpp_callbacks): New member.
4508 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4509 (TARGET_INITIALIZER): Update.
4510 * target.h (struct gcc_target): New hook.
4511 * tree.c (default_register_cpp_builtins): New.
4512 * tree.h (default_register_cpp_builtins): New.
4514 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4516 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4518 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4519 (cpp_post_options): Move sanity checks to...
4520 (sanity_checks): New.
4521 * cpplex.c (maybe_read_ucs): Fix prototype.
4522 (parse_string, cpp_parse_escape): Cast for %c format specifier.
4523 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4526 2002-05-04 Bernd Schmidt <bernds@redhat.com>
4528 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4529 builtins. Use V2DI patterns instead of TI for logical operations.
4530 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4531 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4532 (ix86_expand_builtins): Change the pattern used for movntdq.
4533 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4534 sse2_nandv2di3): New patterns.
4535 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4537 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4538 (cvtdq2pd): Correct mode on operand 1.
4539 (sse2_umulsidi3): Describe without unspec.
4540 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4542 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4543 (ashlv2di3): Likewise, from sse2_ashlv2di3.
4544 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4545 ashlv4si3, ashlv2di3): Use SImode for shift count.
4546 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4547 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4549 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4551 (__m128i, __m128d): New macros.
4552 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4553 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4554 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4555 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4556 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4557 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4558 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4559 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4560 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4561 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4562 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4563 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4564 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4565 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4566 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4567 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4568 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4569 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4570 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4571 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4572 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4573 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4574 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4575 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4576 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4577 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4578 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4579 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4580 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4581 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4582 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4583 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4584 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4585 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4586 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4587 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4588 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4590 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4591 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4593 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4595 * dwarf2out.c: Fix formatting.
4596 * varasm.c: Likewise.
4598 2002-05-04 David Edelsohn <edelsohn@gnu.org>
4601 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4602 clobber and use result as temporary value.
4604 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4606 * expr.c (force_operand): Use expand_simple_* to handle more
4609 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4611 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4613 (lex_charconst): Update for change in prototype of
4614 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
4616 * cpphash.h (BITS_PER_CPPCHAR_T): New.
4617 * cppinit.c (cpp_create_reader): Initialize them for no
4618 change in semantics.
4619 (cpp_post_options): Add sanity checks.
4620 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4621 and truncation issues. Calculate in type cppchar_t.
4622 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4623 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
4624 run-time dependent precision correctly. Return whether the
4625 result is signed or not.
4626 * cpplib.c (dequote_string): Use cppchar_t; update.
4627 * cpplib.h (cppchar_signed_t): New.
4628 struct cpp_options): New precision members.
4629 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4630 * cppexp.c (eval_token): Update.
4632 2002-05-03 David S. Miller <davem@redhat.com>
4634 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4635 * config/sparc/sparc.c (sparc_rtx_costs): New function
4636 implementing RTX_COSTS and CONST_COSTS.
4637 * config/sparc/sparc.h (CONST_COSTS): Delete.
4638 (RTX_COSTS_CASES): Define.
4639 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4642 * config/sparc/sparc.md (DFA schedulers): Split out...
4643 * config/sparc/cypress.md, config/sparc/hypersparc.md,
4644 config/sparc/sparclet.md, config/sparc/supersparc.md,
4645 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4647 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4648 checks on it, always defined for Sparc.
4650 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4651 Tweak, and add more detailed comments.
4653 2002-05-03 Zack Weinberg <zack@codesourcery.com>
4655 * Re-apply patch accidentally reverted with
4656 DFA scheduler merge: remove all rules and variables to slurp
4657 source files out of libiberty and rebuild them with HOST_CC.
4658 ($(HOST_PREFIX_1)varray.o): New rule.
4659 (genattrtab rule): Word wrap.
4661 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4663 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4664 (CPP_SUBTARGET_SPEC): Define.
4665 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4666 cpp_subtarget specs.
4667 (CPP_SPEC): Redefine to include %(cpp_subtarget).
4669 2002-05-03 David S. Miller <davem@redhat.com>
4671 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4672 * target.h (struct gcc_target): Delete cycle_display member.
4674 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4675 (rtx_needs_barrier): Delete reference to cycle_display unspec.
4676 (ia64_sched_reorder2): Mention need for cycle display handling
4677 once such notes exist.
4679 2002-05-03 Richard Henderson <rth@redhat.com>
4681 * real.c (etoasc): Strip most trailing zeros for clarity.
4682 * sched-vis.c: Include real.h.
4683 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4684 * Makefile.in (sched-vis.o): Add real.h.
4686 2002-05-03 David S. Miller <davem@redhat.com>
4688 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4691 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
4693 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4694 when we get an out of range literal.
4695 (altivec_expand_ternop_builtin): Same.
4696 (altivec_expand_unop_builtin): Same.
4697 (altivec_expand_builtin): Same, for dss.
4698 (altivec_expand_builtin): Use trees instead of rtl when
4699 determining literal argument validity.
4701 2002-05-03 David S. Miller <davem@redhat.com>
4703 Delete cycle display scheduling hook.
4704 * config/ia64/ia64.c (ia64_cycle_display,
4705 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4706 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4707 and use emit_insn_before instead of ia64_emit_insn_before.
4708 * config/ia64/ia64.md (unspec usage): Delete cycle display.
4709 (cycle_display): Delete insn pattern.
4710 * config/sparc/sparc.md (unspec usage): Delete cycle display.
4711 (cycle_display): Delete insn pattern.
4712 * config/sparc/sparc.c (sparc_cycle_display,
4713 TARGET_SCHED_CYCLE_DISPLAY): Delete.
4714 * doc/md.texi (cycle_display): Don't mention.
4715 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4717 2002-05-03 Richard Henderson <rth@redhat.com>
4719 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4720 * recog.h: Declare them.
4722 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4723 * config/sparc/sparc.md: Use store_data_bypass_p instead.
4724 * config/sparc/sparc-protos.h: Update.
4726 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4728 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4729 -D__arch64__. Add -D_LP64.
4730 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4732 (CPP_ARCH64_SPEC): Likewise.
4733 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4734 (NO_BUILTIN_SIZE_TYPE): Undef.
4736 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
4738 * genautomata.c (min_issue_delay_pass_states): Change return type
4740 (min_issue_delay_pass_states): Change the algorithm.
4741 (min_issue_delay): Set up min_insn_issue_delay for the state.
4742 (output_min_issue_delay_table): Interchange the nested loops and
4743 and initiate min_insn_issue_delay for states.
4745 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
4747 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
4750 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4752 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
4755 2002-05-03 Richard Henderson <rth@redhat.com>
4758 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4759 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4760 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4761 code before JUMP, not EARLIEST.
4763 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
4765 * c-format.c (check_format_info_main): Don't check for presence of
4766 parameter for * width until after operand number has been read,
4767 and only check for it if format parameters are available.
4770 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4772 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4773 (LINK_SPEC): Undef before defining.
4775 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4777 PR preprocessor/6489
4778 * tradcpp.c (fixup_newlines): New.
4779 (main, finclude): Use it.
4781 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4783 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4784 * config/mips/mips.c (mips_unique_section): Strip encoding from
4787 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4789 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4792 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4794 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4795 (Specific): Removed buildstats references.
4796 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4797 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4798 Accomodate Solaris versions beyond 8.
4799 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4800 (Specific, *-*-solaris2.8): Removed, obsolete.
4802 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4805 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4806 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4807 fill leaf_reg_remap with identity.
4808 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4810 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4812 * config/h8300/crti.asm: Remove trailing spaces.
4813 * config/h8300/h8300.c: Likewise.
4814 * config/h8300/lib1funcs.asm: Likewise.
4816 2002-05-02 Jason Merrill <jason@redhat.com>
4818 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4819 * c-decl.c (c_init_decl_processing): Use it.
4820 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4821 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4822 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4824 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4826 * regrename.c: Fix formatting.
4829 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4831 * i386.md (attribute memory): Handle compares properly.
4833 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4835 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4838 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4840 * function.c: Fix formatting.
4842 2002-05-02 Jan Hubicka <jh@suse.cz>
4844 * haifa-sched.c (schedule_insn): Print table of instructions and
4846 (sched_block): Do not print ready list at verbosity level 1.
4847 * sched-vis.c (print_insn): Make global.
4848 * sched-ebb.c (ebb_print_insn): Rename from...
4849 (print_insn): ... this one.
4850 * sched-int.h (print_insn): Declare
4852 2002-05-02 Richard Henderson <rth@redhat.com>
4854 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4855 emitted by cycle_display.
4857 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
4859 * doc/install.texi (*-*-freebsd*): Update to latest status.
4861 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4864 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4865 * config/float-sparc.h: Assume 128-bit long double if
4866 __LONG_DOUBLE_128__ is defined.
4868 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
4870 * genattrtab.c (write_function_unit_info): Add a dummy element
4871 when num_units == 0.
4873 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4875 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4876 TYPE_MODE (double_type_node) instead of DFmode.
4878 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
4880 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4882 * toplev.c (rest_of_compilation): Revert Richard's patch.
4884 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4886 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4888 2002-05-02 Catherine Moore <clm@redhat.com>
4890 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4892 2002-05-02 Kazu Hirata <kazu@hxi.com>
4894 * combine.c: Fix comment typos.
4896 * genautomata.c: Likewise.
4900 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4902 * doc/install.texi: State GNAT version requirements.
4904 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4906 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4907 of the frame pointer or arg pointer register which strict register
4908 checking is not enabled.
4910 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4912 * gcc.dg/altivec-8.c: New.
4914 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4915 PRE_INC and PRE_DEC for altivec modes.
4917 2002-05-01 Bruce Korb <bkorb@gnu.org>
4919 * fixinc/check.tpl(set-writable): make sure the function exists first
4920 * fixinc/inclhack.def(alpha_assert): fix test_text
4921 * fixinc/tests/base/assert.h: add in missing result
4923 2002-05-01 Jeff Law <law@redhat.com>
4925 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4928 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4930 * dbxout.c (dbxout_type): Emit size information for range types,
4931 as well, but only when using GDB extensions.
4933 2002-05-01 Richard Henderson <rth@redhat.com>
4935 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4936 target-independent gnu binutils date test.
4938 2002-05-01 Richard Henderson <rth@redhat.com>
4940 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4941 info before expunging the block.
4943 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4945 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4946 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4947 -M -or -MM is in effect.
4949 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4951 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4952 A29k configurations.
4953 * doc/install.texi: Update to match.
4955 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4958 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4959 for duplicates. Always loop over whole list.
4961 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4963 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4965 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4967 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4970 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4972 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4974 2002-05-01 David Edelsohn <edelsohn@gnu.org>
4976 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4977 (nabs_nopower): Same.
4978 (floatdisf2): New pattern.
4979 (absdi2): Convert to define_insn_and_split.
4984 (fix_trunctfdi2): Same.
4985 (fix_trunctfsi2): Same.
4987 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
4989 * doc/install.texi: Update Texinfo version requirement
4992 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4994 PR target/6512, PR target/5628
4995 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4996 when memory is not aligned.
4997 (movdf_insn_v9only_vis): Likewise.
4998 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4999 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
5000 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
5002 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
5004 * gcc.dg/altivec-7.c: New.
5006 * config/rs6000/altivec.h: Cleanup.
5008 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
5010 * doc/invoke.texi (Option Summary): Add -mvrsave=.
5011 (RS/6000 and PowerPC Options): Document -mvrsave=.
5013 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
5014 (rs6000_altivec_vrsave_string): Same.
5015 (rs6000_override_options): Call rs6000_parse_vrsave_option.
5016 (rs6000_parse_vrsave_option): New.
5017 (rs6000_stack_info): Only generate vrsave instructions when
5018 TARGET_ALTIVEC_VRSAVE.
5020 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
5021 (rs6000_altivec_vrsave_string): Define extern.
5022 (rs6000_altivec_vrsave): Same.
5023 (TARGET_ALTIVEC_VRSAVE): New.
5025 2002-04-30 Richard Henderson <rth@redhat.com>
5028 * toplev.c (rest_of_compilation): Don't run cross-jump before
5031 2002-04-30 Tom Rix <trix@redhat.com>
5033 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
5034 check which_alternative.
5036 2002-04-30 Kazu Hirata <kazu@hxi.com>
5038 * cpplex.c: Fix comment formatting.
5039 * function.c: Likewise.
5040 * integrate.c: Likewise.
5041 * regrename.c: Likewise.
5042 * sibcall.c: Likewise.
5043 * simplify-rtx.c: Likewise.
5044 * tree-inline.c: Likewise.
5046 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
5048 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
5049 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
5050 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
5051 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
5052 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
5053 * pa/x-ada: New file. Define ADA_CFLAGS.
5055 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
5057 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
5058 from MMIX_LAST_REGISTER_FILE_REGNUM.
5059 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
5060 (struct machine_function): New member highest_saved_stack_register
5061 previously static variable in mmix.c.
5062 (MACHINE_DEPENDENT_REORG): Define.
5063 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
5064 (MMIX_OUTPUT_REGNO): New.
5065 (mmix_target_asm_function_prologue): Move calculation of last used
5066 saved-stack-register into...
5067 (mmix_machine_dependent_reorg): New function. Update to also handle
5069 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
5070 register names, simplify somewhat by new variable regno.
5071 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
5073 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
5074 emitting register names.
5075 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
5076 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
5078 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
5081 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
5083 2002-04-30 Richard Henderson <rth@redhat.com>
5085 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5086 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
5087 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
5088 emit_tfmode_cvt): New.
5089 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
5090 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
5091 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
5092 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
5093 * config/sparc/sparc-protos.h: Update.
5095 2002-04-30 Janis Johnson <janis187@us.ibm.com>
5097 * install.texi (Final install): Add to the list of info to include
5098 in a report of a successful bootstrap, and add link to 3.1 list.
5100 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
5102 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
5103 (mode): Add vector modes
5104 (i387): Kill attribute.
5105 (unit): New attribute.
5106 (length_immediate): Grok new types.
5107 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
5108 (modrm): Use "unit".
5109 (memory): Handle MMX/SSE properly.
5110 (scheduling descriptions): Kill uses of fop1.
5111 (sse, mmx, fp patterns): Set type and mode properly.
5113 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
5115 * pa.c (override_options): Default to PA8000 scheduling.
5116 * doc/invoke.texi (HP-PA options): Mention newly added 7300
5117 scheduling parameter.
5119 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
5120 handling of double precision multiplies.
5122 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
5123 fpdiv and fpsqrt instructions.
5124 (7200 & 7300 scheduling): Fix typo in handling of
5125 store-load and store-store penalties.
5127 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5129 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
5130 mips. Add two missing commas.
5132 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
5134 * doc/contrib.texi (Contributors): Update Paolo Carlini's
5135 and Benjamin Kosnik's entries.
5137 2002-04-29 David S. Miller <davem@redhat.com>
5139 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
5140 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5141 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
5142 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5144 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5146 * combine.c (find_split_point): Use gen_int_mode.
5148 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
5150 Merging code from dfa-branch:
5152 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
5154 * genautomata.c (output_reserv_sets): Fix typo.
5156 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
5158 * genautomata.c (output_reserv_sets): Remove
5159 next_cycle_output_flag.
5161 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
5163 * sched-rgn.c (init_ready_list): Make the DFA code handle
5164 USE/CLOBBER insns in the same way as the traditional
5166 (new_ready): Similarly..
5168 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
5170 * haifa-sched.c (schedule_block): Change the DFA state only after
5173 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
5175 * pa.c (hppa_use_dfa_pipeline_interface): New function.
5176 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5177 (override_options): Add PA7300 scheduling support.
5178 (pa_adjust_cost): Update various comments. Properly
5179 handle anti and output dependencies when using the
5181 (pa_issue_rate): Add PA7300 scheduling support.
5182 (pa_can_combine_p): Call extract_insn before calling
5183 constrain_operands (taken from mainline tree).
5184 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5185 * pa.md (cpu attr): Add 7300. Rewrite pipeline
5186 descriptions using DFA descriptions. Add PA7300
5189 2002-03-30 David S. Miller <davem@redhat.com>
5191 Add UltraSPARC-III DFA scheduling support.
5192 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5193 Update FP conditional move on register insn patterns to use it, as
5195 (define_attr cpu): Add ultrasparc3.
5196 (define_attr us3load_type): New, update integer load patterns to
5197 set it, as appropriate.
5198 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5199 (rest): Add UltraSPARC3 scheduling description.
5200 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5201 (PROCESSOR_ULTRASPARC3): New.
5202 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5203 ({ASM,CPP}_CPU_SPEC): Likewise.
5204 (REGISTER_MOVE_COST): Likewise.
5205 (RTX_COSTS): Likewise.
5206 * config/sparc/sparc.c (sparc_override_options,
5207 sparc_initialize_trampoline, sparc64_initialize_trampoline,
5208 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5209 sparc_issue_rate): Likewise.
5210 * config/sparc/sol2.h: Likewise.
5211 * config/sparc/sol2-sld-64.h: Likewise.
5212 * config/sparc/linux64.h: Likewise.
5214 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
5216 * doc/md.texi: Add comments about usage the latency time for the
5217 different dependencies and about case when two or more conditions
5218 in different define_insn_reservations returns TRUE for an insn.
5220 * doc/md.texi: Add reference for automaton based pipeline
5223 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
5225 * doc/passes.texi: Add missed information about genattrtab.
5227 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
5229 * genautomata.c (output_automata_list_transition_code): Check
5230 automata_list on NULL.
5232 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
5234 * genautomata.c (output_insn_code_cases,
5235 output_automata_list_min_issue_delay_code,
5236 output_automata_list_transition_code,
5237 output_automata_list_state_alts_code): Comment the functions.
5239 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
5241 * genautomata.c (automata_list_el_t): New typedef.
5242 (get_free_automata_list_el,free_automata_list_el,
5243 free_automata_list, automata_list_hash, automata_list_eq_p,
5244 initiate_automata_lists, automata_list_start, automata_list_add,
5245 automata_list_finish, finish_automata_lists,
5246 output_insn_code_cases, output_automata_list_min_issue_delay_code,
5247 output_automata_list_transition_code,
5248 output_automata_list_state_alts_code, add_automaton_state,
5249 form_important_insn_automata_lists): New functions and prototypes.
5250 (insn_reserv_decl): Add members important_automata_list and
5252 (ainsn): Add members important_p.
5253 (automata_list_el): New structure.
5254 (first_free_automata_list_el, current_automata_list,
5255 automata_list_table): New global variables.
5256 (create_ainsns): Initiate member important_p.
5257 (output_internal_min_issue_delay_func): Generate the switch and
5258 call output_insn_code_cases.
5259 (output_internal_trans_func, output_internal_state_alts_func):
5261 (generate): Call initiate_automata_lists.
5262 (automaton_states): New global variable.
5263 (expand_automata): Call form_important_insn_automata_lists.
5264 (write_automata): Call finish_automata_lists.
5266 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
5268 * genautomata.c (add_excls, add_presence_absence): Check that
5269 cpu units in the sets belong the same automaton.
5271 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5272 about that cpu units in the sets belong the same automaton.
5274 * doc/md.texi: Ditto.
5276 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
5277 Nitin Gupta <niting@noida.hcltech.com>
5279 * config/sh/sh.c (sh_use_dfa_interface): New function.
5281 (sh_issue_rate): New Function.
5282 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5283 TARGET_SCHED_ISSUE_RATE: define.
5285 * config/sh/sh.md: Add DFA based pipeline description for SH4.
5287 (define_attr insn_class): New attribute used for DFA
5289 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5290 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5291 cmpeqdi_t): Likewise.
5293 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5294 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5296 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5298 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
5300 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5303 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
5305 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5306 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5308 (output_dfa_start_func): Initiate new variable insn_codes_length,
5309 (write_automata): Output definition of the new variable.
5311 2001-10-02 David S. Miller <davem@redhat.com>
5313 * haifa-sched.c (advance_one_cycle): New function.
5314 (schedule_block): Use it.
5315 (queue_to_ready): Use it, and also make sure to advance the DFA
5316 state on all stall cycles, not just those where insn_queue links
5319 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
5321 * haifa-sched.c (max_issue): Remove last_p argument. Only return
5322 non-zero if the highest-priority instruction could be scheduled.
5323 (choose_ready): Remove last argument from max_issue call.
5325 2001-09-28 David S. Miller <davem@redhat.com>
5327 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5328 ultrasparc and 3 for other multi-issue sparcs.
5330 2001-09-27 David S. Miller <davem@redhat.com>
5332 * config/sparc/sparc.md (cycle_display): New pattern.
5333 * config/sparc/sparc.c (sparc_cycle_display): New.
5334 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5336 2001-09-25 David S. Miller <davem@redhat.com>
5338 Convert all of Sparc scheduling to DFA
5339 * config/sparc/sparc.md: Kill all define_function_unit
5340 directives and replace with DFA equivalent.
5341 * config/sparc/sparc.c (ultrasparc_adjust_cost,
5342 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5343 ultra_fpmode_conflict_exists, ultra_find_type,
5344 ultra_build_types_avail, ultra_flush_pipeline,
5345 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5346 ultrasparc_variable_issue, ultrasparc_sched_init,
5347 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5348 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5349 ultra_cur_hist, ultra_cycles_elapsed): Kill.
5350 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5351 ultrasparc_store_bypass_p): New.
5352 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5355 2001-09-24 David S. Miller <davem@redhat.com>
5357 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5358 ready->vec[foo] not ready[foo].
5360 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
5362 * doc/md.texi: Correct examples for define_insn_reservations
5365 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
5367 * genautomata.c (create_automata): Print message about creation of
5369 (generate): Remove printing meease about creation of
5372 2001-09-05 David S. Miller <davem@redhat.com>
5374 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5375 * config/sparc/linux64.h: Likewise.
5377 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
5379 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5380 schedule_block, sched_init, sched_finish): Add missed calls of
5381 use_dfa_pipeline_interface.
5383 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5386 * sched-vis.c (get_visual_tbl_length): Ditto.
5388 2001-08-27 Richard Henderson <rth@redhat.com>
5390 * genattr.c (main): Emit state_t even when not doing scheduling.
5392 2001-08-27 Richard Henderson <rth@redhat.com>
5394 * genautomata.c (expand_automata): Always create a description.
5396 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
5398 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5399 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5400 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5403 * genattr.c (main): New variable num_insn_reservations. Increase
5404 it if there is DEFINE_INSN_RESERVATION. Output automaton based
5405 pipeline hazard recognizer interface.
5407 * genattrtab.h: New file.
5409 * genattrtab.c: Include genattrtab.h.
5410 (attr_printf, check_attr_test, make_internal_attr,
5411 make_numeric_value): Move protypes into genattrtab.h. Define them
5413 (num_dfa_decls): New global variable.
5414 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5415 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5416 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5417 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
5419 * genautomata.c: New file.
5421 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5423 * sched-int.h: (curr_state): Add the external definition for
5424 automaton pipeline interface.
5425 (haifa_insn_data): Add comments for members blockage and units.
5427 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5428 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5429 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5430 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5431 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5432 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5433 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5435 (TARGET_SCHED): Use the new macros.
5437 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5438 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5439 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5440 dfa_bubble): New members in gcc_target.sched.
5442 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5443 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5444 (insn_queue): Redefine it as pointer to array.
5445 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5447 (max_insn_queue_index_macro_value): New variable.
5448 (curr_state, dfa_state_size, ready_try): New varaibles for
5449 automaton interface.
5450 (ready_element, ready_remove, max_issue): New function prototypes
5451 for automaton interface.
5452 (choose_ready): New function prototype.
5453 (insn_unit, blockage_range): Add comments.
5454 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5455 FUNCTION_UNITS_SIZE == 0.
5456 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5457 actual_hazard, potential_hazard): Add comments.
5458 (insn_cost): Use cost -1 as undefined value. Remove
5459 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
5461 (ready_element, ready_remove): New functions for automaton
5463 (schedule_insn): Add new code for automaton pipeline interface.
5464 (queue_to_ready): Add new code for automaton pipeline interface.
5465 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5466 (debug_ready_list): Print newline when the queue is empty.
5467 (max_issue): New function for automaton pipeline interface.
5468 (choose_ready): New function.
5469 (schedule_block): Add new code for automaton pipeline interface.
5470 Print ready list before scheduling each insn.
5471 (sched_init): Add new code for automaton pipeline interface.
5472 Initiate insn cost by -1.
5473 (sched_finish): Free the current automaton state and finalize
5474 automaton pipeline interface.
5476 * sched-rgn.c: Include target.h.
5477 (init_ready_list, new_ready, debug_dependencies): Add new code for
5478 automaton pipeline interface.
5480 * sched-vis.c: Include target.h.
5481 (get_visual_tbl_length): Add code for automaton interface.
5482 (target_units, print_block_visualization): Add comments.
5484 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5485 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5486 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5487 (getruntime.o, genautomata.o): New entries.
5488 (genattrtab.o): Add new dependency file genattrtab.h.
5489 (genattrtab): Add new dependencies. Link it with `libm.a'.
5490 (getruntime.o, hashtab.o): New entries for canadian cross.
5492 * doc/md.texi: Description of automaton based model.
5494 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5496 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5497 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5498 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5499 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5500 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5501 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5502 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5504 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5505 MAX_DFA_ISSUE_RATE): New macro descriptions.
5507 * doc/contrib.texi: Add dfa based scheduler contribution.
5509 * doc/gcc.texi: Add more information about genattrtab.
5511 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5513 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5514 adjust_address_nv call.
5516 2002-04-29 Janis Johnson <janis187@us.ibm.com>
5518 * doc/install.texi (Testing): Provide additional information, and
5519 a stronger encouragement, for running the testsuites.
5521 2002-04-29 DJ Delorie <dj@redhat.com>
5523 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5524 given in upper case.
5526 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5528 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5529 Solaris 2 <widec.h> if missing.
5530 * fixinc/fixincl.x: Regenerate.
5531 * fixinc/tests/base/widec.h: New file.
5533 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
5535 * toplev.c (f_options): Add "profile" switch so that
5536 -fno-profile can be used to disable -p.
5538 2002-04-29 Bernd Schmidt <bernds@redhat.com>
5540 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5542 * tree.c (build_common_tree_nodes_2): Likewise.
5543 * tree.h (enum tree_index): Likewise.
5544 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5546 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5548 (init_mmx_sse_builtins): Initialize SSE2 builtins.
5549 (ix86_expand_builtin): Add support for SSE2 builtins.
5550 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5551 (VALID_SSE_REG_MODE): Use it.
5552 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5553 (enum ix86_builtins): Add SSE2 builtins.
5554 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5555 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5556 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5557 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5558 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5559 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5560 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5561 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5562 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5563 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5564 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5565 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5566 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5567 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5568 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5569 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5570 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5571 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5572 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5573 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5574 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5575 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5576 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5577 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5578 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5579 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5580 lfence_insn): New patterns.
5581 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5582 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5584 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
5586 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5588 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5590 * doc/contrib.texi (Contributors): Add Paolo Carlini and
5592 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5593 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5594 and CPU instead of cpu.
5596 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5598 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5600 (lang_independent_options): Add -fif-conversion, -fif-conversion2
5601 (rest_of_compilation): Do if conversion only when asked for.
5602 (parse_options_and_default_flags): Set new variables to 1 for -O1
5603 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5605 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5607 * i386.c (dbx64_register_map): Fix typo.
5609 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5611 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5612 real_one_half, real_bb_freq_max): New static variables.
5613 (debug_profile_bbauxs): Kill.
5614 (process_note_predictions): Kill unused variable.
5615 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5617 (propagate_freq): Use REAL_ARITHMETICS.
5618 (estimate_bb_frequencies): Likevise; init new static variables.
5619 * Makefile.in (predict.o): Add dependency on real.h
5621 2002-04-28 David S. Miller <davem@redhat.com>
5624 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5625 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
5626 several {reads,writes} instead.
5627 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5630 2002-04-27 David S. Miller <davem@redhat.com>
5633 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5636 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5637 including signal.h and sys/ucontext.h, not needed.
5639 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
5641 * varasm.c (output_constant_def): Correct test for not calling
5642 ENCODE_SECTION_INFO for INTEGER_CST.
5644 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
5646 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5647 keep most cases as function eval_token.
5648 (eval_token): New function.
5649 (_cpp_parse_expr): Read token here for improved diagnostics.
5650 Don't use op_as_text. Detect bad ':' here.
5651 (reduce): Don't detect bad ':' here.
5652 (op_as_text): Remove.
5653 * cpphash.h (_cpp_test_assertion): Change prototype.
5654 * cpplib.c (_cpp_test_assertion): Change prototype.
5656 2002-04-28 Richard Henderson <rth@redhat.com>
5659 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5660 (ggc_mark_rtx_children): New.
5662 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5665 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5666 after call peepholes for UltraSPARC.
5667 (call + jump 64-bit peepholes): Remove.
5669 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5672 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5673 result as temporary value.
5675 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5678 * toplev.c (rest_of_compilation): Only run regrename and copy
5679 propagation if optimizing.
5681 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5683 PR optimization/6475
5684 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5685 register of REGNO_DECL (i).
5686 * Makefile.in (reload1.o): Add $(TREE_H).
5688 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
5690 * cppexp.c (lex): Update to use state.skip_eval.
5691 (struct op): Remove prio and flags members.
5692 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5693 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5694 (LEFT_ASSOC): New macro.
5695 (optab): New table of operator priorities and flags.
5697 (_cpp_parse_expr): Clean up logic. Return bool. Use a
5698 malloc-ed parser stack.
5699 (reduce): New; reduce the operator stack.
5700 (_cpp_expand_op_stack): Expand the operator stack as necessary.
5701 * cpphash.h (struct op): Predeclare.
5702 (struct cpp_reader): New members op_stack, op_limit.
5703 (struct lexer_state): New member skip_eval.
5704 (_cpp_parse_expr): Update.
5705 (_cpp_expand_op_stack): New.
5706 * cpplib.c (do_if): Update.
5707 * cppinit.c (cpp_create_reader): Create op stack.
5708 (cpp_destroy): And destroy it.
5709 * cpplib.h (CPP_LAST_CPP_OP): Correct.
5710 (TTYPE_TABLE): Correct.
5712 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5715 * c-decl.c (duplicate_decls): Call merge_weak.
5716 * c-pragma.c (apply_pragma_weak): Warn about misuse.
5717 * output.h (merge_weak): Prototype merge_weak.
5718 * varasm.c (merge_weak): New function.
5719 (declare_weak): Make sure we don't give an error on VAR_DECLs.
5720 Mark RTL with SYMBOL_REF_WEAK.
5722 2002-04-27 Kurt Garloff <garloff@suse.de>
5724 * tree-inline.c (inlinable_function_p): Improve heuristics
5725 by using a smoother function to cut down allowable inlinable size.
5726 * param.def: Add parameters max-inline-insns-single,
5727 max-inline-slope, min-inline-insns that determine the exact
5728 shape of the above function.
5729 * param.h: Likewise.
5731 2002-04-26 Richard Henderson <rth@redhat.com>
5733 * c-parse.in (malloced_yyss, malloced_yyvs): New.
5734 (yyoverflow): Re-add. Set them.
5735 (free_parser_stacks): New.
5736 * c-common.h: Declare it.
5737 * c-lex.c (c_common_parse_file): Call it.
5739 2002-04-26 Richard Henderson <rth@redhat.com>
5741 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5742 for fallthru search.
5744 2002-04-26 Eric Christopher <echristo@redhat.com>
5746 PR optimization/3700
5747 * config/mips/mips.c (mips_issue_rate): Define. New function.
5748 (TARGET_SCHED_ISSUE_RATE): Use.
5750 2002-04-25 David S. Miller <davem@redhat.com>
5753 * reorg.c (optimize_skip): Do not allow exception causing
5754 instructions to be considered for delay slots.
5755 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5756 (relax_delay_slots): Do not try to consider exception causing
5757 instructions as redundant.
5759 2002-04-26 Richard Henderson <rth@redhat.com>
5762 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5764 2002-04-26 Mark Mitchell <mark@codesourcery.com>
5767 * config/i386/i386.md (untyped_call): Return the value in a float
5768 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5771 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
5773 * tree.c (tree_int_cst_lt): Compare constants whose types differ
5774 in unsigned-ness correctly.
5776 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5778 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5779 portable runtime model.
5781 2002-04-26 Richard Henderson <rth@redhat.com>
5783 * c-parse.in (yyoverflow): Revert.
5785 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5786 Richard Henderson <rth@redhat.com>
5788 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5789 result as temporary value.
5791 2002-04-26 Richard Henderson <rth@redhat.com>
5794 * c-common.c (fix_string_type): Split out of ...
5795 (combine_strings): ... here. Take a varray, not a tree list.
5796 (c_expand_builtin_printf): Use fix_string_type.
5797 * c-common.h: Update decls.
5798 * c-parse.in (string): Remove. Update all uses to use STRING
5799 instead, and not call combine_strings.
5802 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5803 (build_asm_stmt): Likewise.
5804 * objc/objc-act.c (my_build_string): Use fix_string_type.
5805 (build_objc_string_object): Build varray for combine_strings.
5807 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5809 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5812 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5814 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5815 (HAVE_NO_R_OPERAND): Remove.
5816 (HAVE_VALUE): Remove.
5817 (op_to_prio): Update.
5818 (UNARY): Don't alter flags.
5819 (_cpp_parse_expr): want_value used to indicate whether
5820 a number or unary operator is expected next. Distinguish
5821 unary and binary +/-.
5822 (op_as_text): Update for unary operators.
5824 2002-04-25 Richard Henderson <rth@redhat.com>
5827 * c-parse.in (yyoverflow): New.
5829 2002-04-25 Richard Henderson <rth@redhat.com>
5832 * c-common.c (shorten_compare): Simplfy conditions leading to
5833 the generation of a warning.
5835 2002-04-25 Richard Henderson <rth@redhat.com>
5838 * expmed.c (extract_bit_field): Fall through to generic code rather
5839 than aborting on subreg special case.
5841 2002-04-25 David S. Miller <davem@redhat.com>
5843 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5844 for DECL being NULL.
5846 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5848 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5850 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
5852 * c-decl.c (grokdeclarator): Remove outdated ??? note
5853 on invalid declaration of flexible array members.
5855 2002-04-25 Richard Henderson <rth@redhat.com>
5857 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5859 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5861 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5862 needed by the compiler, even if they are used as global regs.
5864 2002-04-25 Matt Hiller <hiller@redhat.com>
5866 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5868 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5869 of the corresponding functions.
5870 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5873 2002-04-25 Matt Hiller <hiller@redhat.com>
5875 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5877 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5878 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5879 registers, adjust comment accordingly.
5880 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5881 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5882 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5883 for coprocessor registers.
5884 (ADDITIONAL_REGISTER_NAMES): Include
5885 ALL_COP_ADDITIONAL_REGISTER_NAMES.
5887 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5888 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5889 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5890 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5891 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5893 (mips_char_to_class): Adjust comment to include coprocessor
5896 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5898 (mips_reg_names, mips_regno_to_class): Include coprocessor
5900 (mips_sw_reg_names): Ditto, make non-static.
5901 (mips_move_1word): Handle moves to and from coprocessor registers.
5902 (mips_move_2words): Handle moves to and from coprocessor
5904 (mips_class_max_nregs, mips_register_move_cost): Handle
5905 coprocessor register classes.
5906 (override_options): Initialize mips_char_to_class and
5907 mips_hard_regno_mode_ok properly for coprocessor registers.
5909 * config/mips/mips.md (movdi_internal, movdi_internal2,
5910 movsi_internal1, movsi_internal2): Add constraint-sets for
5911 coprocessor registers.
5912 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5913 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5915 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5916 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5918 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5919 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5921 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5922 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5925 * doc/tm.texi: Document feature.
5927 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5929 * integrate.c (function_attribute_inlinable_p): Simplify.
5930 Check the table pointer is not NULL.
5932 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5934 * doc/c-tree.texi: Fix typo in introduction.
5936 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5938 * c-common.h (c_common_parse_file): Update.
5939 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5940 * c-lex.c (YYDEBUG): Get from c-lex.h.
5941 (c_common_parse_file): Update.
5942 * c-lex.h (YYDEBUG, yydebug): New.
5943 * c-parse.in (YYDEBUG): Get from c-lex.h.
5944 (c_set_yydebug): Remove.
5945 * c-tree.h (c_set_yydebug): Remove.
5946 * langhooks-def.h (lhd_do_nothing_i): New.
5947 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5948 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5949 * langhooks.c (lhd_do_nothing_i): New.
5950 (lhd_set_yydebug): Remove.
5951 * langhooks.h (struct lang_hooks): Update.
5952 * toplev.c (set_yydebug): New.
5953 (compile_file): Update call to parse_file hook.
5954 (decode_d_option): Update.
5956 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5958 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
5960 * loop.c (load_mems): Don't change the interface of called functions.
5962 * calls.c (expand_call): Take current_function_pretend_args_size
5963 into account when setting argblock for sibcalls.
5965 2002-04-24 Matt Hiller <hiller@redhat.com>
5967 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5970 * cpplex.c (skip_line_comment): Process comment one multibyte
5971 character at a time rather than one char at a time, if
5973 (parse_string): Process string one multibyte character at a time
5974 rather than one char at a time, if appropriate.
5975 * c-lex.c (lex_string): Lex and copy multibyte strings
5977 * cpplib.h (cppchar_t): Change to unsigned.
5979 2002-04-24 Richard Henderson <rth@redhat.com>
5982 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5985 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
5987 * sh.c (sh_va_arg): If argument was passed by reference,
5988 dereference the pointer.
5990 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5992 * sh.md (divsi3_i4_media): Use match_operand for input values
5993 rather than hard registers.
5994 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5995 unnecessarily through hard registers. Keep copies of pseudo
5996 registers outside of the libcall sequence.
5998 * sh.md (casesi_shift_media): Add modes.
6000 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
6003 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
6005 * attribs.c (c_common_attribute_table): Move table and handlers
6007 (format_attribute_table, lang_attribute_table,
6008 lang_attribute_common): Remove.
6009 (init_attributes): Replace NULL pointers with pointers to the
6011 (handle_packed_attribute, handle_nocommon_attribute,
6012 handle_common_attribute, handle_noreturn_attribute,
6013 handle_noinline_attribute, handle_always_inline_attribute,
6014 handle_used_attribute, handle_unused_attribute,
6015 handle_const_attribute, handle_transparent_union_attribute,
6016 handle_constructor_attribute, handle_destructor_attribute,
6017 handle_mode_attribute, handle_section_attribute,
6018 handle_aligned_attribute, handle_weak_attribute,
6019 handle_alias_attribute, handle_visibility_attribute,
6020 handle_no_instrument_function_attribute, handle_malloc_attribute,
6021 handle_no_limit_stack_attribute, handle_pure_attribute,
6022 handle_deprecated_attribute, handle_vector_size_attribute,
6023 vector_size_helper): Move to c-common.c.
6024 * c-common.c (c_common_attribute_table,
6025 handle_packed_attribute, handle_nocommon_attribute,
6026 handle_common_attribute, handle_noreturn_attribute,
6027 handle_noinline_attribute, handle_always_inline_attribute,
6028 handle_used_attribute, handle_unused_attribute,
6029 handle_const_attribute, handle_transparent_union_attribute,
6030 handle_constructor_attribute, handle_destructor_attribute,
6031 handle_mode_attribute, handle_section_attribute,
6032 handle_aligned_attribute, handle_weak_attribute,
6033 handle_alias_attribute, handle_visibility_attribute,
6034 handle_no_instrument_function_attribute, handle_malloc_attribute,
6035 handle_no_limit_stack_attribute, handle_pure_attribute,
6036 handle_deprecated_attribute, handle_vector_size_attribute,
6037 vector_size_helper): Move from attribs.c.
6038 * c-common.h (c_common_attribute_table,
6039 c_common_format_attribute_table): New.
6040 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6041 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6042 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
6043 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
6044 (LANG_HOOKS_INITIALIZER): Update.
6045 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
6046 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
6047 * target.h: Update comment.
6048 * tree.c (default_target_attribute_table): Remove.
6049 * tree.h (default_target_attribute_table, format_attribute_table,
6050 lang_attribute_table, lang_attribute_common): Remove.
6052 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
6053 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
6055 2002-04-24 Jason Merrill <jason@redhat.com>
6057 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
6058 * dwarf2out.c (dwarf_attr_name): Support it.
6059 (gen_array_type_die): Emit it.
6060 (lookup_type_die): No special handling for VECTOR_TYPE.
6061 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
6063 2002-04-24 Richard Henderson <rth@redhat.com>
6065 * config/mips/mips.md (movdi_usd): Renumber.
6067 2002-04-24 David S. Miller <davem@redhat.com>
6070 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
6071 32-bit Sparc and current_function_returns_struct is true.
6073 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
6075 * loop.c (canonicalize_condition): Use gen_int_mode.
6077 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
6079 * config/rs6000/altivec.h: Cleanup file. Add non individual
6101 (vec_vcmpequb): New.
6102 (vec_vcmpequh): New.
6103 (vec_vcmpequw): New.
6104 (vec_vcmpeqfp): New.
6105 (vec_vcmpgefp): New.
6106 (vec_vcmpgtub): New.
6107 (vec_vcmpgtsb): New.
6108 (vec_vcmpgtuh): New.
6109 (vec_vcmpgtsh): New.
6110 (vec_vcmpgtuw): New.
6111 (vec_vcmpgtsw): New.
6112 (vec_vcmpgtfp): New.
6113 (vec_vcmpgefp): New.
6118 (vec_vexptefp): New.
6123 (vec_lde): Add vector float variant.
6128 (vec_vmhaddshs): New.
6150 (vec_vmladduhm): New.
6151 (vec_vmhraddshs): New.
6153 (vec_vmsummbm): New.
6154 (vec_vmsumuhm): New.
6155 (vec_vmsumshm): New.
6156 (vec_vmsumuhs): New.
6157 (vec_vmsumshs): New.
6166 (vec_vnmsubfp): New.
6184 (vec_vrsqrtefp): New.
6195 (vec_vspltisb): New.
6196 (vec_vspltish): New.
6197 (vec_vspltisw): New.
6222 (vec_vsum4ubs): New.
6223 (vec_vsum4sbs): New.
6224 (vec_vsum4shs): New.
6225 (vec_vsum2sws): New.
6236 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
6239 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6240 added literals from substracted literals.
6241 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6242 (fold) [associate]: Preserve MINUS_EXPR if needed.
6244 2002-04-23 Zack Weinberg <zack@codesourcery.com>
6246 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6249 2002-04-23 Tom Tromey <tromey@redhat.com>
6251 * gcc.c: Added --resource. For PR java/6314.
6253 2002-04-23 David O'Brien <obrien@FreeBSD.org>
6255 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6256 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6259 2002-04-23 David O'Brien <obrien@FreeBSD.org>
6261 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6263 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
6265 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6267 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6268 (ix86_expand_clrstr): Fix typo.
6269 * loop.c (gen_load_of_final_value): New.
6270 (loop_givs_rescan, strength_reduce, check_dbra_loop):
6273 2002-04-23 Roger Sayle <roger@eyesopen.com>
6275 * builtins.c (builtin_memset_gen_str): New function.
6276 (expand_builtin_memset): Optimize the case of constant length, but
6279 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
6281 * config/rs6000/altivec.h (vec_step): Remove extraneous
6283 (vec_ctu): Cast return.
6285 2002-04-23 Alan Modra <amodra@bigpond.net.au>
6288 * function.h: (struct function): Add profile_label_no field.
6289 (current_function_profile_label_no): Define.
6290 * function.c: (profile_label_no): New static var.
6291 (expand_function_start): Increment it, and copy to
6292 current_function_profile_label_no.
6293 * output.h (profile_label_no): Delete.
6294 * final.c (profile_label_no): Delete.
6295 (profile_function): Use current_function_profile_label_no.
6296 (final_end_function): Don't increment profile_label_no here.
6297 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6298 profile_label_no with current_function_profile_label_no.
6299 * config/pa/pa.c (current_function_number): Delete.
6300 (pa_output_function_prologue): Don't output profile label here.
6301 (hppa_profile_hook): Use label_no param rather than
6302 current_function_number.
6303 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6304 * config/pa/pa.h: .. here.
6305 (FUNCTION_PROFILER): Output profile label here.
6307 2002-04-22 Eric Christopher <echristo@redhat.com>
6309 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6310 patch of 2002-04-09 due to binutils issues.
6311 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6313 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6315 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6316 constraint to 'o' for m=r and r=m alternatives.
6317 ("*movv8hi_internal1"): Same.
6318 ("*movv16qi_internal1"): Same.
6319 ("*movv4sf_internal1"): Same.
6321 2002-04-22 Janis Johnson <janis187@us.ibm.com>
6323 * rtl.h (RTX_FLAG): New macro.
6324 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6325 * final.c (alter_subreg): Use macro to access rtx flag.
6326 * integrate.c (copy_rtx_and_substitute): Use new access macro.
6327 * print-rtl.c (print_rtx): Use new access macro.
6329 * cse.c (insert): Check rtx code before accessing flag.
6331 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6332 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6333 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6334 convert_const_symbol_ref, make_canonical, make_alternative_compare,
6335 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6336 simplify_test_exp, optimize_attrs, simplify_by_exploding,
6337 find_and_mark_used_attributes, unmark_used_attributes,
6338 add_values_to_cover, simplify_with_current_value,
6339 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6340 copy_rtx_unchanging, main): Use new access macros.
6342 2002-04-22 Tom Rix <trix@redhat.com>
6344 * expmed.c (init_expmed): Generate shifted constant once.
6346 2002-04-22 Zack Weinberg <zack@codesourcery.com>
6348 * c-lex.c (lex_charconst): Call convert to get constant in
6349 proper type; don't just smash the type field.
6352 * config.gcc: Add list of obsolete configurations. Disallow
6353 building these without --enable-obsolete.
6354 * doc/install.texi: Document --enable-obsolete and obsoletion
6355 policy. Mention obsoletion of individual targets in
6358 2002-04-22 Richard Henderson <rth@redhat.com>
6360 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6362 2002-04-22 Mark Mitchell <mark@codesourcery.com>
6365 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6366 (walk_fixup_memory_subreg): Likewise.
6367 (fixup_var_refs_insn): Adjust accordingly.
6368 (fixup_var_refs_1): Likewise.
6370 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
6372 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6373 LIBPATH_ARCH64_SPEC): Define.
6374 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6375 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6376 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6377 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6379 2002-04-22 Joel Sherrill <joel@OARcorp.com>
6381 * gthr-rtems.h: Correct prototypes to remove warnings.
6383 2002-04-22 Richard Henderson <rth@redhat.com>
6386 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6388 * gcse.c (free_insn_expr_list_list): New.
6389 (clear_modify_mem_tables): Use it. Fix bit set usage.
6390 (canon_list_insert): Use EXPR_LISTs for expressions.
6391 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6393 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
6395 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
6396 file change and include code to _cpp_pop_buffer.
6397 * cpphash.h (struct pending_option): Predeclare.
6398 (struct cpp_reader): New member next_include_file.
6399 (_cpp_pop_file_buffer): Update.
6400 (_cpp_push_next_buffer): Update, rename.
6401 * cppinit.c (cpp_destroy): Free include chain and pending here.
6402 (cpp_finish_options): Simplify.
6403 (_cpp_push_next_buffer): Rename and clean up.
6404 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6406 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6408 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6410 * config/rs6000/altivec.h (vec_xor): Add variant for both args
6411 being vector signed int.
6413 (vec_xor): Add variant for both args being vector signed char.
6414 Remove redundant variant.
6417 2002-04-21 David S. Miller <davem@redhat.com>
6419 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6420 compare mode in output RTL.
6422 2002-04-22 David Edelsohn <edelsohn@gnu.org>
6424 * config/rs6000/rs6000.c (rs6000_override_options): Correct
6425 style and formatting of previous patch.
6427 2002-04-22 Alan Modra <amodra@bigpond.net.au>
6429 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6430 flag_pic for ABI_AIX.
6432 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6434 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6435 * cppfiles.c (read_include_file): Similarly.
6436 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6437 uxstrdup ustrchr, ufputs): Similarly.
6438 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6439 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6440 cpp_ideq, parse_identifier, parse_number): Similarly.
6441 * cpplib.c (struct directive, dequote_string, D, run_directive,
6442 cpp_push_buffer): Similarly.
6443 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6444 _cpp_create_definition, check_trad_stringification,
6445 cpp_macro_definition): Similarly.
6447 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6449 * cppmacro.c (funlike_invocation_p): Don't step back
6452 2002-04-21 David Edelsohn <edelsohn@gnu.org>
6454 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6457 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
6459 * doc/invoke.texi: Remove Chill references.
6460 * doc/gcc.texi: Update last modified date.
6462 2002-04-20 Kazu Hirata <kazu@hxi.com>
6464 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6465 push and pop. Replace add.l with add.w.
6467 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6469 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6470 multiply instructions for H8/300H case.
6472 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6474 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6475 Bum three instructions from each routine.
6477 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
6479 * Makefile.in: Update.
6480 * decl.c (push_c_function_context, pop_c_function_context,
6481 mark_c_function_context): Rename for consistency.
6482 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6483 * c-tree.h (push_c_function_context, pop_c_function_context,
6484 mark_c_function_context): Rename for consistency.
6485 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6486 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6487 * function.c (init_lang_status, save_lang_status,
6488 restore_lang_status, mark_lang_status, free_lang_status):
6489 Move to langhooks.h.
6490 (push_function_context_to, pop_function_context_from,
6491 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6493 * function.h (init_lang_status, save_lang_status,
6494 restore_lang_status, mark_lang_status, free_lang_status):
6495 Move to langhooks.h.
6496 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6497 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6498 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6499 LANG_HOOKS_FUNCTION_INITIALIZER): New.
6500 (LANG_HOOKS_INITIALIZER): Update.
6501 (lhd_do_nothing_f): New.
6502 * langhooks.h (struct lang_hooks_for_functions): New.
6503 (struct lang_hooks): New hooks.
6504 * langhooks.c (lhd_do_nothing_f): New.
6506 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6507 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6509 2002-04-19 David S. Miller <davem@redhat.com>
6511 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6512 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6514 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6516 PR optimization/3756
6517 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6518 x = ((int) y < 0) ? cst1 : cst2.
6520 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6523 * function.c: Reapply patch for c/6358.
6524 (expand_function_end): Copy decl_rtl's mode, not
6525 current_function_return_rtx mode.
6527 2002-04-19 Joel Sherrill <joel@OARcorp.com>
6529 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6532 2002-04-19 Tom Tromey <tromey@redhat.com>
6534 * doc/install.texi (Specific): Update status of Solaris 2.8.
6537 2002-04-19 Andreas Schwab <schwab@suse.de>
6539 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6540 (PUT_REAL): Restore old definition.
6542 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6543 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6545 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6546 binutils 2.11.2 and higher generate smaller binaries than Sun's
6549 2002-04-19 Mark Mitchell <mark@codesourcery.com>
6552 * toplev.c (rest_of_compilation): Do not defer functions for which
6553 TREE_SYMBOL_REFERENCED has already been set.
6555 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
6557 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6560 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
6562 * builtins.c: Include langhooks.h.
6563 (lang_type_promotes_to): Remove.
6564 (expand_builtin_va_arg): Use new hook.
6565 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6566 (simple_type_promotes_to): Move to c-typeck.c.
6567 * c-common.h (simple_type_promotes_to): Remove.
6568 * c-decl.c (duplicate_decls, grokdeclarator): Update.
6569 * c-format.c: Include langhooks.h.
6570 (check_format_types): Update.
6571 * c-tree.h (c_type_promotes_to): New.
6572 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6573 (type_lists_compatible_p): Update.
6574 * langhooks-def.h (lhd_type_promotes_to): New.
6575 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6576 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6577 * langhooks.c (lhd_type_promotes_to): New.
6578 * langhooks.h (struct lang_hooks_for_types): New hook.
6579 * tree.h (lang_type_promotes_to): Remove.
6581 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6583 2002-04-18 Richard Henderson <rth@redhat.com>
6585 * function.c: Revert patch for c/6358.
6587 2002-04-18 Richard Henderson <rth@redhat.com>
6589 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6590 blocks. Handle multiple references to the TRAP block. Handle
6591 non-adjacent THEN and OTHER blocks.
6593 2002-04-18 Richard Henderson <rth@redhat.com>
6595 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6596 crash with no type for by-mode libcalls.
6598 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6600 2002-04-18 Bob Wilson <bob.wilson@acm.org>
6602 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6603 __xtensa_nonlocal_goto): Use a syscall instructions to flush
6604 the register windows.
6606 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6608 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6609 appropriate. Document need for extended precision even when
6610 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
6611 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
6612 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
6613 instead of relying on later syntax error when REAL_WIDTH > 5.
6614 * real.c: Define NE based only on whether or not we have a
6615 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6616 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
6617 define GET_REAL and PUT_REAL as simple memcpy operations; no
6618 need to byteswap or round.
6619 Use #error instead of #ifdef-ing out the entire file, for
6620 prompt error detection.
6622 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6624 2002-04-18 David S. Miller <davem@redhat.com>
6626 * config/sparc/sparc.h (BRANCH_COST): Define.
6628 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6631 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
6633 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6634 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6635 propagate_block calls after relaxation loop using new variable
6636 stabilized_prop_flags.
6638 2002-04-18 Richard Henderson <rth@redhat.com>
6640 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6641 (ia64_va_arg): Expect variable sized types by reference.
6642 * config/ia64/ia64-protos.h: Update.
6643 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6644 ia64_function_arg_pass_by_reference.
6646 2002-04-18 Richard Henderson <rth@redhat.com>
6648 * ifcvt.c: Include except.h.
6649 (block_has_only_trap): Break out from find_cond_trap.
6650 (find_cond_trap): Use it. Always delete the trap block.
6651 (merge_if_block): Allow then block null. Be less simplistic about
6652 what insns can end a block.
6653 * Makefile.in (ifcvt.o): Depend on except.h.
6655 * config/ia64/ia64.md (trap, conditional_trap): New.
6657 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6660 * function.c (assign_parms): Assign hard current_function_return_rtx
6662 (expand_function_end): ...not here.
6664 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
6666 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6667 * c-tree.h (c_incomplete_type_error): New.
6668 * c-typeck.c (require_complete_type, build_component_ref): Update.
6669 (incomplete_type_error): Rename.
6670 * langhooks-def.h (lhd_incomplete_type_error): New.
6671 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6672 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6673 * langhooks.c (lhd_incomplete_type_error): New.
6674 * langhooks.h (struct lang_hooks_for_types): New hook.
6675 * tree.c (size_in_bytes): Use new hook.
6676 * tree.h (incomplete_type_error): Remove.
6678 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6680 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6682 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6683 TARGET_FLOAT_FORMAT blocks.
6685 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6687 * doc/install.texi (Downloading the source): Do not mention Chill
6688 any longer, but mention Ada.
6689 (Configuration): Do not mention Chill any longer.
6691 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
6693 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6695 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
6697 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6700 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6702 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6703 instead of unsigned_type.
6705 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6707 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6708 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6711 2002-04-18 Bernd Schmidt <bernds@redhat.com>
6713 * attribs.c (vector_type_node_list): New static variable.
6714 (handle_vector_size_attribute): Use it to avoid generating a
6715 new type node each time we are called.
6717 * combine.c (subst): Avoid trying to make a vector mode subreg of
6718 an integer constant.
6719 (gen_lowpart_for_combine): Likewise.
6721 2002-04-18 Roger Sayle <roger@eyesopen.com>
6722 Jakub Jelinek <jakub@redhat.com>
6724 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6725 for integer constant c (if x has unsigned type or sign bit is not
6726 set in c). This folds the zero/sign extension into the bit-wise and
6729 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6732 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6735 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
6737 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6739 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
6741 * gcc.c (read_specs): Detect and fail if an attempt is made to
6742 rename a spec string to an already existing string.
6744 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6746 * config/s390/s390.c (legitimize_pic_address): Do not generate
6747 illegal address constant without CONST.
6749 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6751 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6752 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6754 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6756 PR optimization/6305
6757 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6758 to make sure previous reloads are taken into account. Generate
6759 better code if one operand is an in-range immediate constant.
6761 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
6763 * doc/install.texi (Building): libgcj requires GNU make.
6765 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6768 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6769 even if hard quad and register is not floating.
6770 (movtf reg<-mem split): Disallow splitting if hard quad and
6771 register is floating.
6772 (movtf mem<-reg split): Likewise.
6773 * config/sparc/sparc.c (fp_register_operand): New predicate.
6774 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6776 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6778 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6779 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6780 (unprotoize.o): Ditto. Build from protoize.c. Define
6781 UNPROTOIZE on command line.
6782 * protoize.c: Include cppdefault.h. Delete include_defaults.
6783 (in_system_include_dir): Use cpp_include_defaults (defined in
6785 * unprotoize.c: Delete file.
6787 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6789 * config/rs6000/altivec.h (vec_ld): Add array variants.
6793 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6794 Aldy Hernandez <aldyh@redhat.com>
6796 * config/rs6000/altivec.h: Define __ALTIVEC__.
6803 Add parentheses to all macro arguments.
6805 2002-04-16 Richard Henderson <rth@redhat.com>
6808 * except.c (remove_eh_handler): Insert inner regions at beginning
6809 of sibling chain. Refactor expressions.
6811 2002-04-16 Richard Henderson <rth@redhat.com>
6813 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6814 * config/sparc/sol2-gas-bi.h: New file.
6815 * config.gcc (sparc*-solaris): Add it as needed.
6816 * configure.in (AS_SPARC64_FLAG): Remove check.
6817 * config.in, configure: Regenerate.
6819 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6821 2002-04-16 Richard Henderson <rth@redhat.com>
6823 * config/mips/mips.c (override_options): Don't override N32 for
6827 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6828 (HILO_delay): Set can_delay false.
6830 2002-04-16 Dale Johannesen <dalej@apple.com>
6832 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6833 instruction addresses.
6834 (rs6000_output_function_epilogue): Likewise.
6836 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6838 * c-parse.in (poplevel, compstmt_start,
6839 compstmt_primary_start): Add ending ';', in accordance
6842 2002-04-16 Richard Henderson <rth@redhat.com>
6844 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6845 Adjust tm_file order to get TARGET_DEFAULT set properly.
6846 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6847 * doc/install.texi (sparc-solaris): Update.
6849 2002-04-16 Dale Johannesen <dalej@apple.com>
6851 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6852 comparison operands do not match each other or if modes of
6853 conditions do not match result.
6855 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
6858 * config/s390/s390.md (mulsidi3): Set both subregs of the
6861 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
6863 * config/rs6000/altivec.h (vec_addc): Type check.
6865 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6868 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6870 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6872 2002-04-15 Richard Henderson <rth@redhat.com>
6874 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6875 call_really_used_regs too.
6877 2002-04-15 Richard Henderson <rth@redhat.com>
6879 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6881 2002-04-15 David S. Miller <davem@redhat.com>
6883 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6886 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6889 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6890 CONST_VECTOR is { 0, ... 0 }.
6892 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
6894 * doc/install.texi (Installing GCC: Configuration): Clarify
6895 the only supported ways to configure gcc.
6897 2002-04-15 Roland McGrath <roland@frob.com>
6899 * config.gcc (alpha*-*-gnu*): New target configuration.
6900 * config/alpha/gnu.h: New file for it.
6901 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6903 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6905 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6906 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6907 * tree.h (expand_start_stmt_expr): Update prototype.
6908 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6909 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6910 on the STMT_EXPR created for the inline function.
6912 2002-04-15 Richard Henderson <rth@redhat.com>
6914 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6915 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6916 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6917 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6918 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6919 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6920 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6921 Define __gnu_linux__, not gnu_linux.
6922 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6924 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6926 Remove Chill front end.
6927 * gcc.c (default_compilers): Remove Chill entries.
6928 * ch: Remove directory.
6929 * doc/frontends.texi: Remove information about Chill.
6930 * doc/sourcebuild.texi: Likewise.
6931 * doc/standards.texi: Likewise.
6933 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6935 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6936 (LONGLONG_STANDALONE): Define.
6938 2002-04-15 David S. Miller <davem@redhat.com>
6940 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6941 Call emit_library_call with LCT_NORMAL.
6942 (sparc_initialize_trampoline): Use LCT_foo instead of
6943 magic constant in emit_library_call invocations.
6944 (sparc64_initialize_trampoline): Likewise.
6945 (sparc_profile_hook): Likewise.
6946 * config/sparc/sparc.md: Likewise.
6948 * config/sparc/sparc.c (sparc_extra_constraint_check):
6949 Fix type of argument 'c'.
6950 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6953 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6955 * diagnostic.h (output_buffer_state): Redefine.
6956 (output_format_decoder): New macro.
6957 (output_prefixing_rule): Likewise.
6958 (output_line_cutoff): Likewise.
6959 (diagnostic_format_decoder): Adjust.
6960 (diagnostic_prefixing_rule): Likewise.
6961 (diagnostic_line_cutoff): Likewise.
6962 (diagnostic_state): Likewise.
6963 (diagnostic_kind_count): Likewise.
6964 (diagnostic_buffer): Now a macro.
6966 * diagnostic.c (diagnostic_buffer): Remove definition.
6967 (output_is_line_wrapping): Adjust.
6968 (set_real_maximum_length): Likewise.
6969 (output_set_maximum_length): Likewise.
6970 (init_output_buffer): Likewise.
6971 (lhd_print_error_function): Likewise.
6972 (output_do_verbatim): Likewise.
6974 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
6976 * cpperror.c (print_location): Don't print include chain
6978 (cpp_begin_message): Update to use DL_ macros.
6979 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6980 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6981 cpp_notice, cpp_notice_from_errno): Remove.
6982 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6985 * cppexp.c (CPP_ICE): Remove.
6986 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6987 lex, integer_overflow, _cpp_parse_expr): Update.
6988 * cppfiles.c (read_include_file, find_include_file,
6989 handle_missing_header, _cpp_read_file, remap_filename): Update.
6990 * cpphash.h (enum error_type): Remove.
6991 (_cpp_begin_message): Update.
6992 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6993 cpp_handle_option, cpp_post_options): Update.
6994 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6995 skip_whitespace, parse_identifier, parse_slow, parse_string,
6996 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6997 cpp_interpret_charconst): Update.
6998 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6999 lex_macro_node, do_undef, glue_header_name, parse_include,
7000 do_include_common, read_flag, do_line, do_linemarker, do_ident,
7001 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
7002 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
7003 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
7004 _cpp_pop_buffer, do_diagnostic): Update.
7005 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
7006 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
7007 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
7008 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
7009 cpp_notice, cpp_notice_from_errno): Remove.
7010 (cpp_error, cpp_error_with_line): Update to take a diagnostic
7013 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
7014 collect_args, enter_macro_context, save_parameter, parse_params,
7015 _cpp_create_definition, check_trad_stringification,
7016 cpp_macro_definition): Update.
7017 * cppmain.c (cpp_preprocess_file): Update.
7018 * fix-header.c (read_scan_file): Update.
7020 2002-04-14 Andreas Schwab <schwab@suse.de>
7022 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
7024 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7026 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
7028 2002-04-13 Mark Mitchell <mark@codesourcery.com>
7030 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
7033 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
7035 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
7037 2002-04-13 Joel Sherrill <joel@OARcorp.com>
7039 * config/sparc/t-elf: Enable v8 multilibs. Impacts
7040 sparc-elf and sparc-rtems targets.
7042 2002-04-13 Mark Mitchell <mark@codesourcery.com>
7044 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
7045 defined, and __gnu_hurd__ wherever __GNU__ is defined.
7046 * arm/linux-elf.h: Likewise.
7047 * cris/aout.h: Likewise.
7048 * cris/linux.h: Likewise.
7049 * i370/linux.h: Likewise.
7050 * i386/gnu.h: Likewise.
7051 * i386/linux-aout.h: Likewise.
7052 * i386/linux-oldld.h: Likewise.
7053 * i386/linux.h: Likewise.
7054 * i386/linux64.h: Likewise.
7055 * ia64/linux.h: Likewise.
7056 * m68k/linux-aout.h: Likewise.
7057 * m68k/linux.h: Likewise.
7058 * mips/linux.h: Likewise.
7059 * pa/pa-linux.h: Likewise.
7060 * pj/linux.h: Likewise.
7061 * rs6000/sysv4.h: Likewise.
7062 * s390/linux.h: Likewise.
7063 * sh/linux.h: Likewise.
7064 * sparc/linux-aout.h: Likewise.
7065 * sparc/linux.h: Likewise.
7066 * sparc/linux64.h: Likewise.
7067 * xtensa/linux.h: Likewise.
7069 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
7071 * stmt.c (check_unique_operand_names): Expect operand names to
7072 be strings rather than identifiers. Use simple_cst_equal to
7074 (resolve_operand_name_1): Make same identifier to string change here.
7075 * c-parse.in (asm_operand): Convert a named operand into a string.
7076 * cp/parse.y (asm_operand): Likewise.
7078 2002-04-13 Andreas Schwab <schwab@suse.de>
7080 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
7082 2002-04-12 Mark Mitchell <mark@codesourcery.com>
7084 Revert these changes:
7086 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7089 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7091 2002-04-12 Richard Henderson <rth@redhat.com>
7093 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
7094 (sparc*-*-solaris): Clean up header files.
7095 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
7096 and plan on generating 64-bit code.
7097 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
7098 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
7099 * config/sparc/sol2-sld-64.h: Rename ...
7100 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
7101 for AS_SPARC64_FLAG not defined.
7102 * config/sparc/sol2-gld-bi.h: New.
7103 * config/sparc/sol2-sld.h: Remove.
7104 * config/sparc/sol26-sld.h: New.
7105 * config/sparc/sol2.h: Tidy comments.
7106 * doc/install.texi: Document sparc-solaris configury changes.
7108 2002-04-12 Richard Henderson <rth@redhat.com>
7110 * recog.c (offsettable_address_p): Match the logic in adjust_address.
7112 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
7113 in 64-bit mode only. Use only for 32-bit or MEDLOW.
7115 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7117 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
7119 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
7121 * pa.c (pa_can_combine_p): Call extract_insn before calling
7124 2002-04-12 Douglas B Rupp <rupp@gnat.com>
7126 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
7127 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
7128 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7129 (CPP_PREDEFINES): Handle __declspec.
7130 * config/i386/t-interix (USER_H): Remove.
7132 2002-04-12 DJ Delorie <dj@redhat.com>
7134 * integrate.c (compare_blocks): Make comparisons safe for when
7135 sizeof(int) < sizeof(char *).
7136 (find_block): Likewise.
7138 2002-04-12 Jan Hubicka <jh@suse.cz>
7139 David Edelsohn <edelsohn@gnu.org>
7141 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
7143 (symbol_ref_operand): New.
7144 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
7145 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
7147 2002-04-12 Andreas Schwab <schwab@suse.de>
7149 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
7150 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
7151 overrides the definition in config/svr4.h.
7153 2002-04-12 Eric Norum <eric.norum@usask.ca>
7155 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
7156 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
7157 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
7158 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
7159 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
7160 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
7161 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
7162 definitions to config/rtems.h and make the targets more similar.
7164 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7166 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7167 POINTERS_EXTEND_UNSIGNED.
7168 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7169 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7171 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7174 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
7176 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7177 depends on TARGET_SHMEDIA, not TARGET_SH5.
7179 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
7181 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7182 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7184 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
7186 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7189 2002-04-12 Andreas Schwab <schwab@suse.de>
7191 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7193 2002-04-12 Richard Henderson <rth@redhat.com>
7196 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7198 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7199 modes spanning multiple hard regs.
7201 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7203 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7205 * pa.c (pa_output_function_prologue): Don't accumulate the total
7206 number of code bytes when using TARGET_64BIT, or gas, SOM and not
7207 the portable runtime.
7208 (output_deferred_plabels): Handle 64bit plabels.
7209 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7210 generating pic code using the GAS assembler for object formats that
7211 are not SOM (ie., ELF32 and ELF64).
7212 (output_millicode_call): Check attribute type if attribute length is 28.
7213 Likewise use $PIC_pcrel$0. Only call get_attr_length and
7214 dbr_sequence_length once.
7215 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7216 dbr_sequence_length once.
7217 * pa.h (TARGET_SOM): Define if not defined.
7218 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7219 with GAS and not SOM.
7220 (jump, call_internal_reg, call_value_internal_reg): Likewise.
7221 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
7223 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7225 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7226 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7227 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7228 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7229 elfos.h and dbxelf.h values are fine now.
7230 * config/i386/freebsd.h, config/alpha/freebsd.h
7231 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7233 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7235 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7236 or set Acpu or Amachine. Reformat.
7237 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7239 (LINK_SPEC): Do not need to undef.
7240 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7241 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7242 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7244 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7245 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7246 (LINK_SPEC): Do not need to undef.
7247 (DONT_USE_BUILTIN_SETJMP): Do not define.
7248 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7249 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
7250 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7251 Remove trailing spaces.
7252 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7253 __ELF__, or set Acpu or Amachine. Reformat.
7254 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7257 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7259 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7260 all other *-*-freebsd* targets.
7262 2002-04-11 Richard Henderson <rth@redhat.com>
7264 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7266 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7268 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7269 Include {cpu}/{cpu}.h thru tm_file.
7270 (alpha*-*-linux*ecoff): Remove target.
7271 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7272 (LINK_SPEC): Remove, is not OS independent.
7273 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7274 (LINK_SPEC): Do not need to #undef any longer.
7275 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7277 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7279 (LINK_SPEC): Moved here from alpha/elf.h.
7280 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7282 * config/alpha/linux-ecoff.h: Remove.
7283 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7284 (CPP_SPEC): Define _POSIX_SOURCE as needed.
7285 (CPP_SUBTARGET_SPEC): Do not define.
7286 (LINK_SPEC): Do not need to #undef any longer.
7287 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7288 * config/alpha/vms.h: Likewise.
7290 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
7292 * doc/extend.texi: Remove old claim that typedefs cannot have
7293 an alignment attribute.
7295 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7297 PR optimization/6177
7298 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7299 bitpos is 0 and bitsize CONCAT size.
7301 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7304 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7306 2002-04-10 David O'Brien <obrien@FreeBSD.org>
7308 * config/alpha/freebsd.h: Minor reformatting.
7309 (CPP_SPEC): Define ELF and add cpp_subtarget.
7310 (ASM_SPEC): No longer needed.
7312 2002-04-11 Richard Henderson <rth@redhat.com>
7314 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7315 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
7316 (dimode mem/zero splitter): New.
7318 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
7320 * config/cris/cris.c (cris_override_options): Tweak error message
7321 for PIC not implemented.
7323 * config/cris/cris.h: Tweak comments related to parameter-passing.
7325 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7327 2002-04-10 Richard Henderson <rth@redhat.com>
7329 * except.c (add_ehl_entry): Allow duplicates after landing pad
7332 2002-04-10 David Edelsohn <edelsohn@gnu.org>
7334 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7336 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
7338 * c-decl.c (c_init_decl_processing): Move generation of
7339 decls for g77_integer_type_node and friends from here ...
7340 * c-common.c (c_common_nodes_and_builtins): ... to here.
7342 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
7344 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7345 is only used as frame pointer when frame_pointer_needed is true.
7347 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
7350 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7351 for the fact that the pool entry uses two words.
7352 (movdf_hard_insn): Similarly. Also, ADR instruction can span
7354 (movdf_soft_insn): Similarly.
7355 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7356 for the fact that the pool entry uses three words.
7358 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
7360 * config/mips/mips.c (mips_va_arg): When using the struct version
7361 of the EABI va_list, allow arguments in the register save area to
7362 take up less room than a stack argument.
7364 2002-04-10 Richard Henderson <rth@redhat.com>
7366 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7367 if EXPAND_INITIALIZER.
7369 2002-04-09 Richard Henderson <rth@redhat.com>
7371 * config/alpha/alpha.md (movdi_er_maybe_g): New.
7372 * config/alpha/alpha.c (alpha_expand_mov): Use it.
7374 2002-04-10 Alan Modra <amodra@bigpond.net.au>
7376 PR optimization/6233
7377 * rtlanal.c (pure_call_p): New function.
7378 * rtl.h (pure_call_p): Declare.
7379 * loop.c (prescan_loop): Use it to set has_nonconst_call.
7380 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7382 2002-04-09 Eric Christopher <echristo@redhat.com>
7384 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7385 information to .comm directive.
7387 2002-04-09 Richard Henderson <rth@redhat.com>
7390 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7392 2002-04-09 Richard Henderson <rth@redhat.com>
7394 * basic-block.h (flow_delete_block_noexpunge): Declare.
7395 (expunge_block_nocompact): Declare.
7396 * cfg.c (expunge_block_nocompact): Split out from ...
7397 (expunge_block): ... here.
7398 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7399 (flow_delete_block_noexpunge): Split out from ...
7400 (flow_delete_block): ... here.
7401 * cfgcleanup.c (delete_unreachable_blocks): Compact while
7402 removing dead blocks.
7403 * except.c (exception_handler_labels): Remove.
7404 (exception_handler_label_map): New.
7405 (struct eh_region): Add aka member.
7406 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7407 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7408 (for_each_eh_label, for_each_eh_label_1): New.
7409 (init_eh): Register exception_handler_label_map.
7410 (free_eh_status): Use free_region.
7411 (find_exception_handler_labels): Use the map, not the list.
7412 (remove_exception_handler_label): Likewise.
7413 (maybe_remove_eh_handler): Likewise.
7414 (remove_eh_handler): Use the region aka bitmap.
7415 * except.h (exception_handler_labels): Remove.
7416 (for_each_eh_label): Declare.
7417 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7418 * loop.c (invalidate_loops_containing_label): New.
7419 (find_and_verify_loops): Use it. Use for_each_eh_label.
7420 * sched-rgn.c (is_cfg_nonregular): Use
7421 current_function_has_exception_handlers.
7423 2002-04-09 Richard Henderson <rth@redhat.com>
7425 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7426 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7427 Do not return changed status.
7428 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7429 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7430 New functions that do return changed status.
7431 * sbitmap.h: Update decls.
7432 * gcse.c, lcm.c: Use _cg functions as needed.
7434 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7436 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7437 (sh64-*-elf*, sh-*-rtemself*): Likewise.
7438 * config/sh/embed_bb.c: New file.
7439 * config/sh/embed-elf.h: New file.
7440 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7441 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
7442 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7444 (SUBTARGET_CPP_PTR_SPEC): Don't define.
7445 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7446 Add subtarget_asm_endian_spec.
7447 (ASM_SPEC): Use subtarget_asm_endian_spec.
7448 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7449 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7450 (WCHAR_UNSIGNED): Define.
7451 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7452 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7453 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7455 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7456 (sh_adjust_cost): Likewise.
7457 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7459 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7460 (WCHAR_TYPE_SIZE): Likewise.
7461 (ASM_SPEC): Use subtarget_asm_endian_spec.
7462 (SH_ELF_WCHAR_TYPE): #undef/ #define.
7463 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7464 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7465 (MAX_WCHAR_TYPE_SIZE): Don't #define .
7466 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7467 (USER_LABEL_PREFIX): Don't #undef /#define .
7468 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7469 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7470 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7471 (ASM_SPEC): Likewise.
7472 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7473 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7474 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7475 (LIB2FUNCS_EXTRA): Define.
7476 * t-sh64 (LIB2FUNCS_EXTRA): Define.
7477 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7478 (LIB1ASMFUNCS_CACHE): Define.
7479 (LIB2FUNCS_EXTRA): Redefine empty.
7481 2002-04-08 Richard Henderson <rth@redhat.com>
7483 * reorg.c (get_branch_condition): Use reversed_comparison_code.
7485 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7487 * config/m68hc11/larith.asm (__map_data_section): Fix condition
7488 and optimize for size.
7489 (__do_global_ctors): Fix pointer comparison.
7490 (__do_global_dtors): Likewise.
7492 2002-04-09 David S. Miller <davem@redhat.com>
7494 * config/sparc/sparc.c (sparc_extra_constraint_check): New
7495 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
7496 allow reloading pseudos.
7497 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7498 * config/sparc/sparc-protos.h: Declare it.
7500 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7501 unsigned comparison warning.
7502 (output_restore_regs): Mark leaf_function as unused.
7504 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7506 * expr.c (is_aligning_offset): New function.
7507 (expand_expr, case COMPONENT_EXPR): Call it.
7509 2002-04-08 David S. Miller <davem@redhat.com>
7512 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7514 Make init_priority work on Sparc when using GNU ld.
7515 * config/sparc/linux.h, config/sparc/linux64.h,
7516 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7517 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7518 * config/sparc/sol2-gld.h: New file to do the same.
7519 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7520 sparc/sol2-gld.h to tm_file.
7522 PR optimization/4328
7523 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7524 * doc/md.texi: Document it.
7525 * config/sparc/sparc.md (movdi_insn_sp64_novis,
7526 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7527 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7528 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7529 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7531 2002-04-08 Andreas Jaeger <aj@suse.de>
7533 * stmt.c (expand_asm_operands): Revert last patch from Richard
7536 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7538 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7539 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
7541 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7543 * doc/contrib.texi (Contributors): Add David O'Brien.
7545 2002-04-08 Alan Modra <amodra@bigpond.net.au>
7547 * configure.in (auto-build.h): Use target_alias and build_alias
7548 when running configure.
7549 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7550 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7551 * configure: Regenerate.
7553 2002-04-07 David S. Miller <davem@redhat.com>
7555 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7557 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
7560 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7561 generating 32-bit pic code.
7563 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
7565 * cppinit.c (cpp_create_reader): Initialize
7566 discard_comments_in_macro_exp.
7567 (COMMAND_LINE_OPTIONS): Add "-CC" option.
7568 (cpp_handle_option): Handle "-CC" option.
7569 * cpplex.c (save_comment): If saving a C++ comment in
7570 a directive, convert it to a C comment.
7571 (_cpp_lex_direct): Pass second comment start character to
7572 save_comment to indicate comment type.
7573 * cpplib.c (_cpp_handle_directive): If processing
7574 a "#define" directive and discard_comments_in_macro_exp
7575 is false, re-enable saving of comments.
7576 (lex_macro_node): If discard_comments_in_macro_exp is false,
7577 discard any comments before the macro identifier.
7578 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7580 * cppmacro.c (cpp_get_token): If expanding a macro while
7581 processing a directive, discard any comments we might encounter.
7582 (parse_params): If discard_comments_in_macro_exp is false,
7583 ignore comments in the macro parameter list.
7584 * gcc.c (cpp_unique_options): Add "-CC" option.
7585 (option_map): Map "--comments-in-macros" to "-CC".
7586 * doc/cppopts.texi: Document "-CC" option.
7587 * f/lang-specs.h: Add "-CC" option.
7588 * testsuite/gcc.dg/cpp/maccom1.c: New test.
7589 * testsuite/gcc.dg/cpp/maccom2.c: New test.
7590 * testsuite/gcc.dg/cpp/maccom3.c: New test.
7591 * testsuite/gcc.dg/cpp/maccom4.c: New test.
7592 * testsuite/gcc.dg/cpp/maccom5.c: New test.
7593 * testsuite/gcc.dg/cpp/maccom6.c: New test.
7595 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7598 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7600 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7603 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7606 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7607 RTX_UNCHANGING_P for the functions arguments when a tail call
7610 2002-04-06 Jason Merrill <jason@redhat.com>
7612 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7613 (parse_options_and_default_flags): Set them appropriately.
7614 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7616 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
7618 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7621 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7624 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7625 types come in by-reference. Fix typo in comment.
7627 2002-04-05 David S. Miller <davem@redhat.com>
7629 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7630 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7631 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7632 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7634 2002-04-05 David S. Miller <davem@redhat.com>
7636 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7637 are not going to emit return instructions, emit at least a nop
7638 for the sake of sane backtraces.
7640 2002-04-05 Richard Henderson <rth@redhat.com>
7642 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7644 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
7646 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7648 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
7650 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7651 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7652 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7654 2002-04-05 Andreas Schwab <schwab@suse.de>
7656 * c-convert.c: Include c-common.h.
7657 * Makefile.in (c-convert.o): Updated.
7659 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7661 * mklibgcc.in: Use separate libgcc.map for each multilib.
7662 * Makefile.in (distclean): Don't remove libgcc.map here.
7664 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7666 * Makefile.in (s-mlib): Handle --disable-multilib by separate
7667 genmultilib invocation.
7669 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
7671 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7672 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
7673 to num_gprs for symmetry.
7674 * config/mips/mips.c: Adjust accordingly.
7676 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
7678 * c-common.c (truthvalue_conversion): Rename, update.
7679 * c-common.h (c_common_truthvalue_conversion): New.
7680 * c-convert.c (convert): Update.
7681 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7682 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7683 * c-typeck.c (build_binary_op, build_unary_op,
7684 build_conditional_expr): Update.
7685 * fold-const.c (constant_boolean_node, fold): Use langhook.
7686 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7687 * langhooks.h (struct lang_hooks): New hook.
7688 * stmt.c (expand_decl_cleanup): Use langhook.
7689 * tree.h (truthvalue_conversion): Remove.
7691 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7693 2002-04-05 Alan Modra <amodra@bigpond.net.au>
7695 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7696 Add rules to make null object file.
7698 2002-04-04 Jim Blandy <jimb@redhat.com>
7700 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7701 macro formal parameter names.
7703 2002-04-04 David S. Miller <davem@redhat.com>
7705 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7707 2002-04-04 Richard Henderson <rth@redhat.com>
7710 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7711 Support copies into and out of memory. Don't accept allows_reg
7712 and allows_mem as gospel.
7714 2002-04-04 Richard Henderson <rth@redhat.com>
7717 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7718 (write_dependence_p): Likewise.
7720 2002-04-04 Richard Henderson <rth@redhat.com>
7722 * predict.c (estimate_bb_frequencies): Do frequency calculation
7723 with a volatile temporary.
7725 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
7727 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7729 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7732 * final.c (final_start_function): Don't bump profile_label_no here...
7733 (final_end_function): ...but here.
7735 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7737 * config/sparc/sparc.md (pic): New attribute.
7738 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7740 (split after do_builtin_setjmp_setup): New.
7742 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7745 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7748 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7750 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7751 UNITS_PER_WORD for zero sized aggregates.
7753 2002-04-03 David S. Miller <davem@redhat.com>
7755 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7756 one-character spec for this, just use %(link_gcc_c_sequence).
7758 2002-04-03 David S. Miller <davem@redhat.com>
7760 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7763 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7765 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7766 (DWARF_FRAME_RETURN_COLUMN): Move.
7767 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7768 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7769 * pa.c (except.h, predict.h): Include.
7771 (store_reg_modify, set_reg_plus_d): Revise prototypes.
7772 (output_ascii): Add cast.
7773 (store_reg_modify): Revise to add frame notes.
7774 (set_reg_plus_d): Likewise.
7775 (compute_frame_size): Include space for eh data registers in frame if
7776 the current function calls eh_return.
7777 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7778 function calls eh_return. Save eh data registers if the current
7779 function calls eh_return. Fix code to add frame notes. Emit
7780 blockage to prevent insns with frame notes being scheduled in the
7781 delay slot of calls.
7782 (hppa_expand_epilogue): Restore eh data registers and do final stack
7783 adjustment if the current function calls eh_return. Don't add frame
7785 (output_call): Revise for change in length of call insn. Don't do
7786 return pointer adjustment for an unconditional jump in the delay slot
7787 of a call when using frame notes.
7788 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7789 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7790 (ARG_POINTER_CFA_OFFSET): Define.
7791 * pa.md (return_external_pic): New pattern.
7792 (prologue): Correct formatting. Use return_external_pic if current
7793 function calls eh_return.
7794 (call_internal_symref, call_value_internal_symref,
7795 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7796 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7798 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7800 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7801 list of targets to check using "nop" insn.
7802 * configure: Rebuilt.
7804 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7806 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7808 2002-04-03 David S. Miller <davem@redhat.com>
7810 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7811 library sequence passed to the linker.
7812 (LINK_COMMAND_SPEC): Use it.
7813 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7814 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7815 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7817 2002-04-03 Jason Merrill <jason@redhat.com>
7819 * except.c (struct eh_status): Remove protect_list.
7820 (begin_protect_partials, end_protect_partials): Remove.
7821 (add_partial_entry): Remove.
7822 * except.h: Remove prototypes.
7824 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7825 expand_decl_cleanup_eh.
7828 * tree.h (CLEANUP_EH_ONLY): New macro.
7829 * stmt.c (expand_decl_cleanup_eh): New fn.
7830 (expand_cleanups): Check CLEANUP_EH_ONLY.
7831 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7832 Use expand_decl_cleanup_eh.
7833 (expand_stmt): Adjust.
7834 * c-common.h: Adjust prototype.
7836 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7838 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7839 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7840 (cris_target_asm_function_epilogue): Ditto.
7841 (cris_initial_frame_pointer_offset): Ditto.
7842 (cris_simple_epilogue): Ditto.
7843 (cris_expand_builtin_va_arg): Variable-size types come in
7846 2002-04-03 David S. Miller <davem@redhat.com>
7848 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7850 (set_fast_math): Correct 'fsr' type.
7852 2002-04-03 Richard Henderson <rth@redhat.com>
7855 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7856 * toplev.c (check_global_declarations): Use it.
7857 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7858 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7859 (LANG_HOOKS_DECLS): Add it.
7860 * langhooks.c (lhd_warn_unused_global_decl): New.
7861 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7862 * c-objc-common.c (c_warn_unused_global_decl): New.
7863 * c-tree.h (c_warn_unused_global_decl): Declare.
7864 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7866 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
7868 * langhooks-def.h (lhd_set_decl_assembler_name,
7869 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7870 (LANG_HOOKS_INITIALIZER): Update.
7871 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7872 * langhooks.h (struct lang_hooks): New hook.
7873 * tree.c (set_decl_assembler_name): Move to langhooks.c.
7874 (lang_set_decl_assembler_name): Remove.
7875 (init_obstacks): Don't set hook.
7876 (decl_assembler_name): New function.
7877 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7878 (decl_assembler_name): New.
7879 (lang_set_decl_assembler_name): Remove.
7881 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7883 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7884 works properly with .hidden symbols.
7885 * configure: Rebuilt.
7886 * config.in: Rebuilt.
7887 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7888 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7889 properly with .hidden symbols.
7891 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7894 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7897 2002-04-03 Richard Henderson <rth@redhat.com>
7900 * sched-rgn.c (sets_likely_spilled): New.
7901 (sets_likely_spilled_1): New.
7902 (add_branch_dependences): Use it.
7904 2002-04-02 Richard Henderson <rth@redhat.com>
7907 * loop.h (LOOP_FIRST_PASS): New.
7908 * loop.c (strength_reduce): Mind it when deciding to unroll.
7909 * toplev.c (rest_of_compilation): Set it.
7911 2002-04-02 David S. Miller <davem@redhat.com>
7913 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7914 mems_ok_for_ldd_peep when the order of the loads being examined
7916 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7917 existing comment to increase comprehension of this situation.
7919 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7921 * config/sh/sh.md: Don't use union real_extract.
7923 2002-04-02 Richard Henderson <rth@redhat.com>
7925 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7927 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7929 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7930 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7931 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7932 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7933 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7934 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7935 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7936 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7937 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7938 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7939 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7940 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7941 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7942 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7943 Include as many configury headers via tm_file as possible. This
7944 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7945 * config/openbsd-oldgas.h: New file.
7946 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7947 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7948 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7949 config/i386/i386-coff.h, config/i386/i386-interix.h,
7950 config/i386/iscdbx.h, config/i386/linux-aout.h,
7951 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7952 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7953 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7954 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7955 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7956 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7957 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7958 config/i386/vxi386.h: Do not directly include configury headers.
7959 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7960 Directly include configury headers that are no longer automatically
7961 included by the above headers.
7962 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7963 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7964 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7965 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7966 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7967 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7968 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7969 (TARGET_VERSION): Define.
7970 * config/i386/beos-elf.h, config/i386/freebsd.h,
7971 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7972 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7973 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7974 config/i386/sco5.h, config/i386/sysv4.h
7975 (TARGET_VERSION): Do not need to protect.
7976 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7977 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7978 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7979 config/i386/i386-interix.h, config/i386/linux-aout.h,
7980 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7981 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7982 (YES_UNDERSCORES): Do not define - not needed.
7983 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7984 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7985 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7986 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7987 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7988 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7989 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7990 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7992 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
7993 Richard Henderson <rth@redhat.com>
7996 * function.c (assign_temp): Accept either type or decl argument.
7997 Detect variables whose size is too large to fit into an integer.
7998 * stmt.c (expand_decl): Pass the decl, not the type.
8000 2002-04-02 David O'Brien <obrien@FreeBSD.org>
8002 * protoize.c: Match include directory usage with cppdefault.c.
8004 2002-04-03 Jeffrey A Law (law@redhat.com)
8005 Hans-Peter Nilsson <hp@bitrange.com>
8007 * combine.c (simplify_comparison): Avoid narrowing a comparison
8008 with a paradoxical subreg when doing so would drop signficant bits.
8010 2002-04-02 Steve Ellcey <sje@cup.hp.com>
8012 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
8013 if POINTERS_EXTEND_UNSIGNED is defined.
8015 2002-04-02 Richard Henderson <rth@redhat.com>
8018 * local-alloc.c (contains_replace_regs): LO_SUM may contain
8021 2002-04-02 Richard Henderson <rth@redhat.com>
8023 * doc/standards.texi: Document required freestanding libc entry points.
8025 2002-04-02 Alan Modra <amodra@bigpond.net.au>
8027 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
8028 associated splitter. Remove MQ constraint.
8029 (ctrdi_internal4): Correct CCmode clobber.
8031 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
8033 * milli64.S ($$dyncall): New function.
8034 * t-linux (LIB1ASMFUNCS): Revise module list.
8035 (LIB1ASMSRC): Use pa/milli64.S.
8037 2002-04-02 Richard Henderson <rth@redhat.com>
8039 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
8040 rename solaris_sys_varargs_h.
8042 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8044 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
8045 the same mode as its component.
8047 2002-04-02 Richard Henderson <rth@redhat.com>
8050 * final.c (this_is_asm_operands): Export.
8051 * output.h (this_is_asm_operands): Declare.
8052 * config/i386/i386.c (print_operand): Error odd asm operands.
8054 2002-04-02 Richard Henderson <rth@redhat.com>
8057 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
8059 2002-04-01 Richard Henderson <rth@redhat.com>
8062 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
8063 * fixinc/fixincl.x: Rebuild.
8065 2002-04-01 Richard Henderson <rth@redhat.com>
8067 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
8068 (atomic_alloc, atomic_free): New.
8069 (SIZE, MASK_FOR, PTR_IN): New.
8070 (emergency_reg_state, emergency_reg_state_free): New.
8071 (emergency_labeled_state, emergency_labeled_state_free): New.
8072 (reg_state_alloced, labeled_state_alloced): New.
8073 (alloc_reg_state, free_reg_state): New.
8074 (alloc_label_state, free_label_state, free_label_states): New.
8075 (push, pop, dup_state_stack, free_state_stack): Use them.
8076 (desc_label_state): Likewise.
8077 (uw_frame_state_for): Free label states and state stack.
8078 (uw_update_reg_address): Eliminate warnings.
8080 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
8082 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
8083 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
8085 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8087 * c-decl.c (grokdeclarator): Update.
8088 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8089 * c-tree.h (c_mark_addressable): New.
8090 * c-typeck.c (default_function_array_conversion, build_unary_op,
8091 build_array_ref, convert_for_assignment): Update.
8092 (mark_addressable): Rename.
8093 * calls.c (try_to_integrate, expand_call): Use langhook.
8094 * expr.c (expand_expr): Use langhook.
8095 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
8096 * langhooks.h (struct lang_hooks): New hook.
8097 * stmt.c (expand_asm_operands): Use langhook.
8098 * tree.h (mark_addressable): Remove.
8100 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8102 2002-04-01 Bob Wilson <bob.wilson@acm.org>
8104 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
8107 2002-04-01 Bob Wilson <bob.wilson@acm.org>
8109 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
8110 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
8112 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8114 * c-common.c (unsigned_conversion_warning, convert_and_check,
8115 unsigned_type, signed_type, shorten_compare,
8116 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
8117 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
8118 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
8120 * c-decl.c (grokdeclarator): Update.
8121 * c-format.c (check_format_types): Update.
8122 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8123 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8124 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
8125 * convert.c (convert_to_integer): Use new hooks.
8126 * expmed.c (make_tree): Use new hooks.
8127 * expr.c (store_expr): Use new hooks.
8128 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
8129 all_ones_mask_p, unextend, fold): Use new hooks.
8130 * langhooks.h (struct lang_hooks_for_types): New hooks.
8131 * tree.h (signed_or_unsigned_type, signed_type,
8132 unsigned_type): Remove.
8134 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8135 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8137 2002-03-31 Richard Henderson <rth@redhat.com>
8139 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
8140 (desc_frgr_mem): Fix reference to f16-f31.
8142 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8144 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
8145 RTVEC_ELT): Const-ify.
8146 * varray.h (VARRAY_CHECK): Const-ify.
8147 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
8148 ggc_mark_rtvec, ggc_mark): Const-ify.
8150 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8152 * diagnostic.c: Include langhooks-def.h.
8153 * Makefile.in (diagnostic.o): Update.
8155 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
8157 * c-common.c (c_unsafe_for_reeval): Rename.
8158 * c-common.h (c_unsafe_for_reeval): Rename.
8159 * c-decl.c (finish_incomplete_decl): Rename.
8160 (c_init_decl_processing): Don't set langhook.
8161 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8162 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8163 * c-objc-common.c (c_objc_common_init): Don't set langhook.
8164 * c-tree.h (finish_incomplete_decl): Rename.
8165 * langhooks-def.h (lhd_unsafe_for_reeval): New.
8166 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8167 (LANG_HOOKS_INITIALIZER): Update.
8168 * langhooks.c (lhd_unsafe_For_reeval): New.
8169 * langhooks.h (struct langhooks): New hooks.
8170 * toplev.c (incomplete_decl_finalize_hook): Remove.
8171 (wrapup_global_declarations): Update.
8172 * tree.c (lang_unsafe_for_reeval): Remove.
8173 (unsafe_for_reeval): Update.
8174 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8177 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8178 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8180 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
8182 * diagnostic.c (print_error_function): Remove.
8183 (default_print_error_function): Rename.
8184 (report_error_function): Update.
8185 * diagnostic.h (print_error_function): Remove.
8186 (default_print_error_function): Remove.
8187 * langhooks-def.h (struct diagnostic_context): Predeclare.
8188 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8189 (LANG_HOOKS_INITIALIZER): Update.
8190 * langhooks.h (struct diagnostic context): Predeclare.
8191 (struct lang_hooks): New hook.
8193 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8195 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8196 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8198 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8199 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8200 of PIC_OFFSET_TABLE_REGNUM thruout.
8201 * config/rs6000/rs6000.md: Likewise.
8202 * config/rs6000/darwin.h: Likewise.
8204 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8206 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8207 unsigned HOST_WIDE_INT, not unsigned int.
8209 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8211 PR middle-end/6096, middle-end/6098, middle-end/6099
8212 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8214 (fill_slots_from_thread): Likewise.
8216 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8218 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8219 floating fields in float regs.
8220 (function_arg_record_value_2): Likewise.
8222 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8224 * config/mmix/mmix.md (define_constants): Remove misleading
8225 FIXME. Add MMIX_fp_rO_OFFSET.
8226 ("nonlocal_goto_receiver"): Don't have stack-frame address of
8227 saved rO as part of the pattern. Remove FIXME.
8228 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
8229 here, at output-time.
8231 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8234 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8236 (output_v9branch): Likewise.
8238 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
8240 * gcc.c: Revert previous patch for now.
8241 * config/i386/djgpp.h: Likewise.
8243 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8245 * config/mmix/crti.asm (_init): Register _fini with atexit.
8246 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8248 2002-03-31 Richard Henderson <rth@redhat.com>
8251 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8252 (ASM_OUTPUT_DEF_FROM_DECLS): New.
8254 2002-03-31 Richard Henderson <rth@redhat.com>
8256 * libgcc2.c (__bb_exit_func): Make static.
8258 * config/alpha/alpha.md (trap): New.
8260 2002-03-31 Richard Henderson <rth@redhat.com>
8262 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8263 promoted argument types; build trap.
8264 (expand_builtin_trap): New.
8265 (expand_builtin): Use it.
8266 * stmt.c (expand_nl_goto_receivers): Likewise.
8267 * expr.h (expand_builtin_trap): Declare.
8268 * libfuncs.h (LTI_abort, abort_libfunc): New.
8269 * optabs.c (init_optabs): Init abort_libfunc.
8271 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
8273 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8274 (LINK_COMMAND_SPEC): ... from here.
8275 (init_gcc_specs): Duplicate it here too, omitting
8276 shared_name in the second copy.
8277 (init_spec): Test for duplicate
8278 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8280 2002-03-30 David S. Miller <davem@redhat.com>
8282 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8283 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8285 2002-03-30 Roger Sayle <roger@eyesopen.com>
8286 Richard Henderson <rth@redhat.com>
8288 * regmove.c (combine_stack_adjustments_for_block): Avoid
8289 emitting a stack adjustment of zero bytes. Let delete_insn
8292 2002-03-30 Richard Henderson <rth@redhat.com>
8294 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8295 (sparc_emitting_epilogue): New.
8296 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8297 * config/sparc/sparc-protos.h: Update.
8298 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8299 (TARGET_SWITCHES): Update.
8300 * config/sparc/sparc.md (return): Remove.
8301 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8302 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8303 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8304 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8305 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8306 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8307 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8308 Remove MASK_EPILOGUE.
8309 * doc/invoke.texi: Update.
8311 2002-03-30 Daniel Berlin <dan@dberlin.org>
8313 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8314 CPP will start the file for us.
8316 2002-03-30 Richard Henderson <rth@redhat.com>
8319 * config/ia64/ia64.c (group_barrier_needed_p): Special case
8320 prologue_allocate_stack.
8321 (ia64_single_set): Use insn codes for recognition of special
8322 cases, not rtl matching.
8323 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8325 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
8327 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8329 2002-03-30 Richard Henderson <rth@redhat.com>
8332 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8333 or -fomit-frame-pointer with profiling.
8334 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8335 (FUNCTION_PROFILER): Do nothing.
8336 (PROFILE_HOOK): New.
8337 * config/sparc/sparc.c (sparc_override_options): Don't check
8338 code models for profiling.
8339 (sparc_function_profiler): Remove.
8340 (sparc_profile_hook): New.
8341 * config/sparc/sparc-protos.h: Update.
8343 2002-03-30 Jakub Jelinek <jakub@redhat.com>
8345 PR optimization/6086
8346 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8347 of SUBREG of volatile MEM or because the MEM was mode dependent,
8348 return CLOBBER instead of unmodified SUBREG.
8350 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
8352 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8353 when not optimizing.
8355 * toplev.c (rest_of_compilation): Cann mark_constant_function
8356 only when optimizing.
8358 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8361 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8362 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8363 (try_optimize_cfg): clear all AUX fields.
8365 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8366 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8367 (ix86_address_cost): Be prepared for SUBREGed registers.
8368 (legitimate_address_p): Accept SUBREGed registers.
8370 2002-03-29 Richard Henderson <rth@redhat.com>
8373 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8375 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8377 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8378 for aggregate and TFmode types.
8380 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8382 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8384 2002-03-29 Richard Henderson <rth@redhat.com>
8387 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8388 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8390 2002-03-29 Richard Henderson <rth@redhat.com>
8393 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8394 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8395 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8396 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8398 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8400 2002-03-29 Dale Johannesen <dalej@apple.com>
8402 * loop.c (combine_movables): Do allow combination of pseudos.
8404 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
8406 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8407 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8408 No functional change except ...
8409 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
8410 * doc/install.texi (*-*-freebsd*): Document port configuration.
8412 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8414 * Makefile.in (convert.o, calls.o, expmed.o): Update.
8415 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8417 * builtin-types.def (BT_PTRMODE): Update.
8418 * c-common.c (type_for_size): Rename c_common_type_for_size.
8419 (type_for_mode): Similarly.
8420 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8422 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8423 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8424 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8426 * c-typeck.c (common_type, comptypes, default_conversion):
8428 * calls.c: Include langhooks.h.
8429 (emit_library_call_value_1): Use new hooks. Avoid redundant
8431 * convert.c: Include langhooks.h
8432 (convert_to_pointer, convert_to_integer): Use new hooks.
8433 * except.c (init_eh): Similarly.
8434 * expmed.c: Include langhooks.h.
8435 (expand_mult_add): Use new hooks.
8436 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8437 try_casesi): Similarly.
8438 * fold-const.c (optimize_bit_field_compare, make_range,
8439 decode_field_reference, fold_truthop, fold): Similarly.
8440 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8441 put_var_into_stack): Similarly.
8442 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8443 LANG_HOOKS_TYPE_FOR_SIZE): New.
8444 (LANG_HOOKS_TYPES_INITIALIZER): Update.
8445 * langhooks.h (lang_hooks_for_types): New hooks.
8446 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8447 * tree.c (get_unwidened, get_narrower): Similarly.
8448 * tree.h (type_for_mode, type_for_size): Remove.
8449 * varasm.c (force_const_mem): Use new hooks.
8450 * utils2.c (nonbinary_modular_operation): Update.
8452 * objc-act.c (handle_impent): Update.
8453 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8456 2002-03-29 Steve Ellcey <sje@cup.hp.com>
8458 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8459 * config/ia64/ia64.c (basereg_operand): New.
8460 * config/ia64/ia64-protos.h (basereg_operand): Declare.
8461 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8463 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8465 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8466 unwind information when frame_pointer_needed.
8467 (mmix_assemble_integer): Tweak wording in comment.
8469 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8471 * Makefile.in (except.o): Update.
8472 * except.c: Include langhooks.h.
8473 (init_eh): Use langhook.
8474 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8475 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8476 (LANG_HOOKS_INITIALIZER): Update.
8477 * langhooks.h (lang_hooks_for_types): New.
8478 (struct lang_hooks): Add it.
8479 * tree.c (make_lang_type_fn, make_lang_type): Remove.
8480 * tree.h (make_lang_type_fn, make_lang_type): Remove.
8482 * alpha/alpha.c: Include langhooks.h.
8483 (alpha_build_va_list): Use langhook.
8484 * d30v/d30v.c: Include langhooks.h.
8485 (d30v_build_va_list): Use langhook.
8486 * i386/i386.c: Include langhooks.h.
8487 (ix86_build_va_list): Use langhook.
8488 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8489 * s390/s390.c: Include langhooks.h.
8490 (s390_build_va_list): Use langhook.
8491 * stormy16/stormy16.c: Include langhooks.h.
8492 (stormy16_build_va_list): Use langhook.
8494 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8497 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8499 (length): Compute variable length for branches/calls/jumps here.
8500 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8501 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8502 define branch_type attribute.
8503 (divsi3_sp32): Maximum length is 6 not 7.
8504 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8505 call_address_untyped_struct_value_sp32,
8506 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8507 * config/sparc/sparc.c (empty_delay_slot): New function.
8508 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8509 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8511 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8513 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8514 nonzero_bits if not needed.
8515 (nonzero_bits) [XOR]: Likewise.
8516 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8517 reg_last_set_mode and mode are both MODE_INT, but not equal.
8518 (record_value_for_reg): Compute reg_last_set_nonzero_bits
8519 in nonzero_bits_mode for MODE_INT modes.
8521 2002-03-28 Richard Henderson <rth@redhat.com>
8524 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8525 to GAS. Correct drift between alternatives.
8527 2002-03-28 Richard Henderson <rth@redhat.com>
8530 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8532 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
8534 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8535 emulation to the linker.
8537 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
8539 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8540 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8542 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
8544 * combine.c (simplify_and_const_int): Make sure to apply mask
8545 when force_to_mode returns a constant integer. PR3311.
8547 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8549 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8551 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8553 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8554 and Objective-C Dialect Options.
8556 2002-03-28 Richard Henderson <rth@redhat.com>
8558 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8559 comparison should be done vs !=0 not >0 return code. Tidy cases.
8561 2002-03-28 Richard Henderson <rth@redhat.com>
8563 * c-decl.c (finish_function): New arg can_defer_p. Pass it
8564 on to c_expand_body.
8565 * c-tree.h (finish_function): Update decl.
8566 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8568 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
8570 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8572 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
8574 * rtlanal.c: Include flags.h
8575 (may_trap_p): Do not mark FP operations if trapping
8576 if !flag_trapping_math
8577 * Makefile.in (rtlanal.o): Add dependency on flag.h
8578 * ifcvt.c (noce_operand_ok): Avoid the lameness.
8580 2002-03-27 Zack Weinberg <zack@codesourcery.com>
8582 * mips.md: Use dconst1, not 1.0, as first argument of
8583 REAL_VALUE_LDEXP. Don't use union real_extract.
8585 2002-03-28 Alan Modra <amodra@bigpond.net.au>
8587 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8588 rather than $target. Heed program_prefix and
8589 program_transform_name. Search for gas in cross-compiler case too.
8590 "test -x" rather than "test -f".
8591 (gcc_cv_ld): Likewise.
8592 (gcc_cv_nm): Heed program_prefix and program_transform_name.
8593 (gcc_cv_objdump): Likewise.
8594 * configure: Regenerate.
8596 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8598 * Makefile.in (attribs.o): Update.
8599 * attribs.c: Include langhooks.h.
8600 (decl_attributes): Use langhook.
8601 * c-decl.c (insert_default_attributes): Rename.
8602 * c-tree.h (c_insert_default_attributes): New.
8603 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8604 (LANG_HOOKS_INITIALIZER): Update.
8605 * langhooks.h (struct lang_hooks): New hook.
8606 * tree.h (insert_default_attributes): Remove.
8608 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8610 2002-03-27 Andreas Schwab <schwab@suse.de>
8612 * config/i386/i386.c (classify_argument): Also check for
8615 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8617 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8620 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
8622 * i960.md (ret): Set PC.
8623 (nonlocal_goto): Fix expander.
8624 * builtins.c (epxand_builin_longjmp): Check that we've emitted
8627 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
8629 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8632 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8634 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8635 assigning to BLOCK_FOR_INSN directly.
8637 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
8639 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8641 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8643 * c-common.c (c_expand_expr): Fix prototype.
8644 * c-common.h (c_expand_expr): Always declare, update.
8645 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8646 * c-objc-common.c (c_objc_common_init): No global hook.
8647 * expr.c (expand_expr): Use langhook.
8648 * expr.h (enum expand_modifier): Conditionally declare.
8649 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8650 (LANG_HOOKS_INITIALIZER): Update.
8651 * langhooks.c (lhd_expand_expr): New.
8652 * langhooks.h (struct lang_hooks): New hook.
8653 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8654 (lang_independent_init): Don't default hook.
8656 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8658 2002-03-27 Richard Henderson <rth@redhat.com>
8661 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8662 TARGET_CONST_GP. Simplify conditions.
8664 2002-03-27 Richard Henderson <rth@redhat.com>
8666 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8667 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8668 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8670 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
8672 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8673 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8674 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8675 Remove unnecessary masks.
8676 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8677 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8678 -mwindows, -mdll switches and their negations.
8680 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8682 * gcc-common.c (lang_mark_false_label_stack): Remove.
8683 * ggc.h (lang_mark_false_label_stack): Similarly.
8685 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
8687 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8689 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8690 or __rtems_ is defined.
8692 2002-03-26 Richard Henderson <rth@redhat.com>
8694 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8695 if a non-trivial load was emitted.
8696 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
8697 in high+extra+low case.
8699 2002-03-26 Richard Henderson <rth@redhat.com>
8701 * config.gcc (sparc*-solaris): Use float_format=sparc.
8703 2002-03-26 Richard Henderson <rth@redhat.com>
8705 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8706 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8707 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8708 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8709 (WINT_TYPE_SIZE): Fix at 32.
8711 2002-03-26 Richard Henderson <rth@redhat.com>
8713 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8714 until after eh landing pad generation.
8715 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8716 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8718 2002-03-26 Richard Henderson <rth@redhat.com>
8720 * expr.h (ADD_PARM_SIZE): One more convert for INC.
8722 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
8724 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
8725 and warning switches.
8726 (cc1_options): Likewise.
8728 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
8730 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8731 Restore more of the signal context. Set no_reg_stack_frame.
8732 * config/ia64/unwind-ia64.c (unw_state_record):
8733 Add no_reg_stack_frame, comments.
8734 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8735 (uw_update_context): Adjust bsp when unwinding from leaf,
8736 but not signal frame.
8738 2002-03-26 David Edelsohn <edelsohn@gnu.org>
8740 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8742 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8744 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8746 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8749 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8750 "Add a pool_range attribute", which was lost during the ARM/Thumb
8753 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8755 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8756 a register into the MAC16 accumulator.
8758 2002-03-26 Andrew Cagney <ac131313@redhat.com>
8760 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8761 (Warning Options): Document -Wswitch-enum.
8762 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
8764 (warn_switch_enum): Define variables.
8765 * flags.h (warn_switch_enum): Declare variables.
8766 * stmt.c (expand_end_case_type): When warn_switch_enum /
8767 -Wswitch-enum, perform switch checks.
8770 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8772 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8773 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8774 (reload_muladdsi_compare0_scratch): Delete.
8776 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8778 * doc/install.texi (*-*-freebsd*): Update.
8780 2002-03-26 Richard Henderson <rth@redhat.com>
8782 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8783 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8785 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8786 types from the normal argument frame.
8788 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8789 variable sized objects by reference.
8790 (sparc_va_arg): Receive them by reference too.
8792 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8794 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8795 code to not restoring global registers.
8797 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8799 * Makefile.in (ggc-common.o): Update.
8800 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8801 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8802 * c-tree.h (c_mark_tree): New.
8803 * ggc-common.c: Include langhooks.h.
8804 (gcc_mark_trees): Use new langhook.
8805 * ggc-callbacks.c: Delete file.
8806 * ggc.h (lang_mark_tree): Remove.
8807 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8808 (LANG_HOOKS_INITIALIZER): Update.
8809 * langhooks.h (struct lang_hooks): New hook.
8811 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8813 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8815 * doc/cpp.texi: Exclude entire Top node from printed manual.
8816 Move option index after directive index. Insert page breaks
8817 before GFDL and concept index. Index environment variables
8818 with command line options.
8819 * doc/cppenv.texi: Use @vtable for environment variable list.
8820 Add paragraph explaining semantics of empty elements in path
8821 variables. Exclude a cross-reference to Fishkill from the
8822 manpage. Remove an unnecessary cross-reference of the entry
8823 right above the referer. Don't use @anchor in text that goes
8825 * doc/cppopts.texi: Cross-reference the environment variables
8826 section, not the specific environment variable, for consistency.
8828 2002-03-25 Richard Henderson <rth@redhat.com>
8830 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8831 anywhere in the block. Don't refer to insns that have been
8832 removed from the chain. Iterate backward through the new insns.
8833 Don't refer to edges that have been removed.
8835 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8837 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8838 test for overflow of constant.
8840 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8843 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8844 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8845 these patterns on arm_archv4.
8847 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
8849 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8852 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8854 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
8855 float_handled, float_handler, float_signal, set_float_handler,
8856 and do_float_handler. Set handler for SIGFPE to crash_signal.
8857 * toplev.h: Don't prototype do_float_handler.
8859 * c-lex.c: Fold parse_float into lex_number. Make warning
8860 about portability of hex float constants more informative, and
8861 don't issue it on top of a syntax error.
8862 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8864 * real.h: Define REAL_VALUE_ABS here...
8865 * simplify-rtx.c: ... not here. Fold check_fold_consts,
8866 simplify_unary_real, simplify_binary_real, and
8867 simplify_binary_is2orm1 into their callers.
8868 * tree.c: Fold build_real_from_int_cst_1 into caller.
8870 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8872 * tsystem.h: Include float.h here...
8873 * libgcc2.c: ... not here.
8875 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
8877 Fixes for: PR bootstrap/3591, target/5676
8878 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8879 defined. Do not disable exceptions or rtti.
8880 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8881 mcore.h. Disable exceptions and rtti, since they are not
8884 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8886 * c-decl.c (maybe_build_cleanup): Remove.
8887 * expr.c (expand_expr): Use langhook.
8888 * langhooks-def.h (lhd_return_null_tree,
8889 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8890 (LANGHOOKS_INITIALIZER): Update.
8891 * langhooks.c (lhd_return_null_tree): New.
8892 * langhooks.h (struct lang_hooks): New hook.
8893 * tree-inline.c (initialize_inlined_parameters): Use langhook.
8894 * tree.h (maybe_build_cleanup): Remove.
8896 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8898 * regrename.c (build_def_use): Move recog_memoized
8899 before extract_insn.
8901 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8904 * expr.c (emit_group_store): Handle storing into CONCAT.
8906 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8908 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8909 corresponding MATCH_DUP.
8911 2002-03-24 Richard Henderson <rth@redhat.com>
8913 * unroll.c (unroll_loop): Zero label_map.
8915 * gcse.c: Include except.h.
8916 * Makefile.in (gcse.o): Update.
8918 2002-03-24 Richard Henderson <rth@redhat.com>
8920 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8921 Do resolve_unique_section before shared data clause.
8923 2002-03-24 Richard Henderson <rth@redhat.com>
8925 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8927 2002-03-24 Richard Henderson <rth@redhat.com>
8929 * recog.c (peephole2_optimize): Split blocks when EH insns are
8930 generated in the middle of a block. Do global life update if
8933 2002-03-24 Richard Henderson <rth@redhat.com>
8935 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8937 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8940 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8941 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8942 (init_dependency_output): Don't make no_output decision here.
8944 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8946 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8947 warn_switch. Update description.
8948 (expand_end_case_type): Call check_for_full_enumeration_handling
8951 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8953 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8954 (m68hc11_split_move): Call it to see if the source and destination
8955 operands use the same direction auto inc/dec mode, otherwise make the
8956 source an offsetable memory operand and generate an add.
8958 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8960 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8961 register for operand 2.
8962 ("*subsi3_zero_extendqi"): Likewise.
8963 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8964 bits so that it is compatible with a pop.
8965 ("*andhi3_gen"): Likewise.
8966 ("xorhi3"): Likewise.
8968 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8970 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8972 (cpp_post_options): ... not here.
8974 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8975 Aldy Hernandez <aldyh@redhat.com>
8977 Removal of separate preprocessor cpp0.
8979 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8980 cpp0, install-common): Update.
8981 * c-common.c (flag_preprocess_only): New.
8982 (c_common_init): Preprocess for -E.
8983 * c-common.h (flag_preprocess_only): New.
8984 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8985 * c-objc-common.c (c_init_decl_processing): Exit quickly
8986 for NULL return from c_common_init.
8987 * cpplib.h (cpp_preprocess_file): New.
8988 * cppmain.c (main, general_init, pfile, progname): Remove.
8989 (do_preprocessing): Rename cpp_preprocess_file, don't call
8990 cpp_finish. Don't close stdout here.
8991 (setup_callbacks): Update prototype.
8992 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8994 * tradcpp.c (main): Ignore -quiet.
8996 * lang-specs.h (default_compilers): Preprocess with cc1obj.
8998 2002-03-24 Richard Henderson <rth@redhat.com>
9000 PR optimization/5742
9001 * machmode.def: Add inner mode field to complex modes.
9002 * config/mips/mips.c (mips_function_value): Always define. Add
9003 new argument to handle libcalls.
9004 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
9005 (FUNCTION_VALUE): Likewise.
9006 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
9007 * config/mips/mips-protos.h: Update.
9009 2002-03-23 Richard Henderson <rth@redhat.com>
9011 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
9012 * config/sparc/sparc-protos.h: Update.
9013 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
9015 2002-03-23 Richard Henderson <rth@redhat.com>
9017 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
9018 _start or _init begins the text segment.
9020 2002-03-23 David Edelsohn <edelsohn@gnu.org>
9022 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
9023 not HOST_WIDEST_INT.
9024 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
9026 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
9029 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
9030 operand argument to output_return_instruction.
9031 * arm.c (arm_print_operand, case 'd'): If the operand is
9032 const_true_rtx then just return.
9033 (arm_print_operand, case 'D'): If the operand is const_true_rtx
9036 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9038 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
9039 (Warning Options): Document -Wswitch-default.
9040 * toplev.c (W_options): Add -Wswitch-default. Update comment on
9042 (warn_switch_default): Define variable.
9043 (warn_switch): Update comment.
9044 * flags.h (warn_switch_default): Declare variable.
9045 (warn_switch): Update comment.
9046 * stmt.c (expand_end_case): Check for and, when
9047 warn_switch_no_default, warn of a missing default case.
9049 2002-03-23 Alan Modra <amodra@bigpond.net.au>
9051 * real.h (N): Special case 128 bit doubles.
9053 * combine.c (simplify_comparison): When widening modes, ignore
9054 sign extension on CONST_INTs.
9056 2002-03-22 Bob Wilson <bob.wilson@acm.org>
9058 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
9059 passed to adjust_address. Fix comment formatting.
9062 2002-03-22 Zack Weinberg <zack@codesourcery.com>
9064 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
9065 Always make REAL_VALUE_TYPE a struct containing an array of
9066 HOST_WIDE_INT, not a double. Tidy up the code deciding how
9067 big it is. Don't declare or use union real_extract.
9069 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
9070 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
9071 (print_operand), config/arm/arm.c (output_move_double),
9072 config/arm/arm.md (consttable_4, consttable_8),
9073 config/romp/romp.c (output_fpops), config/s390/s390.h
9074 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
9075 (xtensa_output_literal): Don't use union real_extract.
9077 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
9078 (sfmode_constant_to_ulong), config/ns32k/merlin.h
9079 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
9080 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
9081 (PRINT_OPERAND): Don't use local version of union
9084 * config/convex/convex.c (check_float_value), config/vax/vax.c
9085 (vax_float_literal), config/m88k/m88k.md (divdf3),
9086 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
9087 config/pdp11/pdp11.c (output_move_quad): Don't do host
9088 arithmetic on target floating point quantities.
9090 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
9091 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
9093 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
9094 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
9096 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
9097 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
9099 * print-rtl.c (print_rtx): Disable code which needs
9100 floating-point emulator.
9101 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
9102 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
9103 depending on HOST_FLOAT_FORMAT to be defined properly.
9105 * config/1750a/1750a.c (get_double, float_label): Delete.
9106 (print_operand): Delete huge commented-out chunk. Use
9107 REAL_VALUE_TO_DECIMAL.
9108 * config/1750a/1750a-protos.h: Delete prototypes of deleted
9110 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
9112 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
9113 Use REAL_VALUE_TO_DECIMAL as ELF version does.
9114 * config/m88k/m88k.c (real_power_of_2_operand,
9115 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
9116 real_extract out of the union; run the input through
9117 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
9118 from that into the union.
9119 * config/pdp11/pdp11.c (output_move_double): Rearrange
9120 parentheses to make automatic indenter happy.
9122 * doc/tm.texi (Cross-compilation): Rename node to "Floating
9123 Point" and rewrite to describe current situation. Also adjust
9124 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
9126 * doc/rtl.texi: Adjust cross reference.
9128 2002-03-22 Bob Wilson <bob.wilson@acm.org>
9130 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
9131 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
9132 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
9133 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
9134 prevent use of sp as a reload register.
9135 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
9136 non_acc_reg_operand.
9137 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
9138 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
9139 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
9140 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
9142 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
9144 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
9145 * cpplex.c (unterminated): Delete.
9146 (parse_string): No string literal may extend over multiple
9147 lines. Suppress the error when preprocessing assembly.
9148 * cppmain.c (scan_translation_unit): Strings are single-line.
9150 * doc/cpp.texi: Update to match.
9152 2002-03-22 Jakub Jelinek <jakub@redhat.com>
9154 PR optimization/5854
9155 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
9157 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
9158 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
9159 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
9160 const0 if scratch register was not allocated.
9161 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
9162 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
9164 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
9165 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
9166 with GEN_INT (...) everywhere. Remove constraints in define_split
9168 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9169 require scratch register for setting 0 into regs/non-pushable memory.
9171 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
9173 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9174 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9176 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
9178 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
9179 * cppinit.c (cpp_create_reader): On by default.
9180 (cpp_handle_option): Handle -W[no-]endif-labels.
9181 (cpp_post_options): Also enable if -pedantic.
9182 * cpplib.c (do_else): Use it.
9183 (do_endif): Likewise.
9184 * doc/cppopts.texi: Document new option.
9185 * doc/invoke.texi: Document new option.
9187 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
9189 * config/i386/i386.c, config/i386/i386.md: Change all occurences
9190 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9192 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
9194 * flow.c (calculate_global_regs_live): Clear aux fields of
9197 2002-03-22 Jakub Jelinek <jakub@redhat.com>
9199 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9200 REG or MEM subregs, pass rtx * instead of rtx to it.
9201 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9202 rtx * instead of rtx to alter_subreg.
9203 * config/m32r/m32r.c (gen_split_move_double): Likewise.
9204 * config/pj/pj.c (pj_output_rval): Likewise.
9206 2002-03-22 Richard Henderson <rth@redhat.com>
9209 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9210 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9211 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9212 (ia64_expand_prologue): Look at int_regs, not words, for number
9213 of incomming int regs.
9215 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
9217 * expr.c (expand_expr): A RESULT_DECL is part of a call.
9219 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
9221 * toplev.c (flag_loop_optimize, flag_crossjumping):
9222 New static variables.
9223 (rest_of_compilation): Conditionalize crossjumping and
9225 (parse_options_and_default_flags): Default loop_optimize and
9227 (lang_independent_options): Add -fcrossjumping and -floop-optimize
9228 * invoke.texi (crossjumping, loop-optimize): Document.
9230 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9232 * real.c (eiisneg): Move outside #ifdef NANS.
9234 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
9236 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9237 frequencies match; avoid match on different loop depths.
9238 (try_crossjump_to_bb): Kill tests that no longer brings time
9240 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9242 (split_edge): Likewise.
9244 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9247 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9248 * cfgrtl.c: Include insn-config.h
9249 (split_block) Dirtify block in presence of conditional execution
9251 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9253 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9254 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9255 (function_arg): Constify CUMULATIVE_ARGS.
9256 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9257 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9258 (UNITS_PER_DOUBLE): New macro.
9259 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
9260 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
9261 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
9262 fp_regs and stack_words.
9263 (EABI_FLOAT_VARARGS_P): New macro.
9264 * config/mips/mips.c (struct mips_arg_info): New.
9265 (mips_arg_info): New function.
9266 (function_arg_advance): Use it. Add adjustment instructions here
9267 rather than in function_arg.
9268 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
9269 for VOIDmode at the beginning of the function.
9270 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
9271 (function_arg_pass_by_reference): Likewise.
9272 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9273 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9274 (mips_va_start): Likewise. Use the new stack_words field of
9275 CUMULATIVE_ARGS to set up overflow area. Reformat.
9276 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
9277 doubles and other types, aligning the overflow pointer for non-doubles
9278 too. Remove some code duplication. Replace hard-coded constants.
9280 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9282 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9283 (CLASS_UNITS): Undefine.
9284 (CLASS_MAX_NREGS): Use FP_INC.
9285 * config/mips/mips.c (compute_frame_size): Likewise.
9286 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9288 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
9290 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9291 prototype, and handle lexing numbers and identifiers.
9292 (parse_identifier): Update to new form of parse_slow.
9293 (parse_number): Fast path only, use parse_slow otherwise.
9294 (_cpp_lex_direct): Update calls to parse_number.
9296 2002-03-21 DJ Delorie <dj@redhat.com>
9298 * bb-reorder.c (make_reorder_chain_1): Protect against
9299 when redundant edges are omitted.
9300 * predict.c (dump_prediction): Likewise.
9302 2002-03-21 Richard Henderson <rth@redhat.com>
9305 * fixinc/inclhack.def (solaris_stdio_tag): New.
9306 * fixinc/fixincl.x: Regenerate.
9308 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
9311 * c-typeck.c (process_init_element): Flag non-static
9312 initialization of a flexible array member as illegal.
9314 2002-03-22 Alan Modra <amodra@bigpond.net.au>
9316 * config/rs6000/t-linux64: New.
9317 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9318 t-ppccomm. Use t-rs6000 and t-linux64.
9319 (powerpc64-*-gnu* <tmake_file>): Likewise.
9320 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9321 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9322 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9324 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
9326 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9327 flag_really_no_inline instead of optimize == 0.
9329 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9331 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9333 * flags.h (flag_really_no_inline): New.
9335 * c-common.c (c_common_post_options): Initialize
9336 flag_really_no_inline.
9338 * toplev.c (flag_really_no_inline): New.
9340 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9342 * config/avr/avr.md (length): Fix length computation for
9343 conditional branches.
9345 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
9347 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9348 sdbout.o, profile.o): Update.
9349 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9351 * c-common.h (gettags): Move here from tree.h.
9352 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9353 insert_block, getdecls, kept_level_p, global_bindings_p): New.
9354 * dbxout.c (dbxout_init): Use getdecls langhook.
9355 * expr.c (expand_expr): Use insert_block langhook.
9356 * fold-const.c: Include langhooks.h.
9357 (fold_range_test, fold_binary_op_with_conditional_arg,
9358 fold): Use global_bindings_p langhook.
9359 * integrate.c (expand_inline_function): Use insert_block langhook.
9360 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9361 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9362 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9363 LANG_HOOKS_GETDECLS): New.
9364 (LANG_HOOKS_INITIALIZER): Update.
9365 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9367 * langhooks.h (struct lang_hooks_for_decls): New.
9368 (struct lang_hooks): Update.
9369 * profile.c: Include langhooks.h.
9370 (output_func_start_profiler): Use new langhooks.
9371 * sdbout.c: Include langhooks.h.
9372 (sdbout_init, sdbout_finish): Use getdecls langhook.
9373 * stmt.c: Include langhooks.h.
9374 (expand_fixup, fixup_gotos): Use new langhooks.
9375 * stor-layout.c: Include langhooks.h.
9376 (variable_size): Use global_bindings_p langhook.
9377 * toplev.c (compile_file): Use getdecls langhook.
9378 * tree-inline.c (remap_block): Use insert_block langhook.
9379 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9380 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9382 2002-03-21 Richard Henderson <rth@redhat.com>
9384 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9385 constants in .data when -fpic.
9387 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9389 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9392 2002-03-21 Tom Tromey <tromey@redhat.com>
9394 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
9396 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9398 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9400 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9402 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
9403 Richard Henderson <rth@redhat.com>
9406 * c-common.c (c_expand_expr): Preserve result of a statement
9407 expression if needed.
9409 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9412 * genrecog.c (maybe_both_true_mode): Remove.
9413 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9414 * machmode.def (Pmode): Likewise.
9416 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
9418 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9419 (nonlocal_mentioned_p_1): New function.
9420 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9421 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9422 (mark_constant_function): Recognize pure functions.
9423 * rtl.h (global_reg_mentioned_p): New prototype.
9424 * rtlanal.c (global_reg_mentioned_p,
9425 global_reg_mentioned_p_1): New function.
9427 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9429 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9431 * fixinc/fixincl.x: Regenerate.
9433 2002-03-20 Jason Merrill <jason@redhat.com>
9435 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9437 2002-03-20 Michael Meissner <meissner@redhat.com>
9439 * doc/invoke.texi (Optimize Options): Document that -O2 sets
9442 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9444 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9445 ".literal_position" directive before the constant pool.
9447 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9449 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9450 Add Craig Rodrigues.
9451 Add Brad Lucier to testers.
9453 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9456 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9458 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9459 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9460 instead of insn_extract.
9462 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9465 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9467 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9468 stmt if some case has been output.
9470 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9473 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9474 movsfcc_1, movdfcc_1): Add %O2.
9475 * config/i386/i386.c (print_operand): Handle %ON.
9476 Print . before float condition codes in Sun as cmov syntax.
9477 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9478 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9481 2002-03-20 Philip Blundell <pb@nexus.co.uk>
9483 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9484 return instruction if PC was popped.
9486 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9488 * config/xtensa/xtensa.md: Remove unused type attributes.
9489 (adddi_carry, subddi_carry): Change type attribute to "multi".
9491 2002-03-19 Dale Johannesen <dalej@apple.com>
9493 PR optimization/5999, middle-end/5731
9494 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9495 multiplications by reciprocals.
9497 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
9499 * Makefile.in: Update.
9500 * c-common.c: Include langhooks.h.
9501 (inline_forbidden_p): Use new hook.
9502 * diagnostic.c: Include langhooks.h.
9503 (format_with_decl, announce_function,
9504 default_print_error_function): Use new hook.
9505 * dwarf2out.c (dwarf2_name): Use new hook.
9506 * function.c: Include langhooks.h.
9507 (init_function_start): Use new hook.
9508 * langhooks-def.h (lhd_decl_printable_name): New.
9509 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9510 (LANGHOOKS_INITIALIZER): Update.
9511 * langhooks.c (lhd_decl_printable_name): New.
9512 * langhooks.h (struct lang_hooks): New hook.
9513 * toplev.c (decl_name, decl_printable_name): Remove.
9514 (open_dump_file): Use new hook.
9515 (process_options): Remove old hook.
9516 * tree.h (decl_printable_name): Remove.
9518 * objc-act.c (objc_init): Remove old hook.
9519 (objc_printable_name): Export.
9520 * objc-act.h (objc_printable_name): New.
9521 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9523 2002-03-19 Jim Blandy <jimb@redhat.com>
9525 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9526 the start_source_file debug hook, not the current line number.
9528 2002-03-19 Richard Henderson <rth@redhat.com>
9530 * flow.c (EH_USES): Provide default.
9531 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9532 * doc/tm.texi (EH_USES): New.
9534 * config/ia64/ia64.c (ia64_eh_uses): New.
9535 * config/ia64/ia64-protos.h: Update.
9536 * config/ia64/ia64.h (EH_USES): New.
9538 2002-03-19 Richard Henderson <rth@redhat.com>
9540 * varasm.c (output_constant_def): Fix stupid typo.
9542 2002-03-19 Richard Henderson <rth@redhat.com>
9545 * except.c (current_function_has_exception_handlers): New.
9546 * except.h: Declare it.
9547 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9548 Combine tests that disable all sibcalls for the function.
9550 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
9552 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9555 2002-03-19 Richard Henderson <rth@redhat.com>
9558 * config/ia64/ia64.c: Revert 2002-03-01 patch.
9559 * config/ia64/ia64.h (INIT_EXPANDERS): New.
9561 2002-03-19 Jim Blandy <jimb@redhat.com>
9563 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9564 name, even if the replacement list contains no tokens, as required
9567 2002-03-19 Jason Merrill <jason@redhat.com>
9569 * varasm.c (globalize_decl): Get the name from the RTL, not
9570 DECL_ASSEMBLER_NAME.
9572 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9574 2002-03-19 Bob Wilson <bob.wilson@acm.org>
9576 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9577 subdi_carry): Define.
9579 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9581 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9582 about -fpic/-fPIC if extra_warnings set.
9584 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9586 * expr.c (expand_expr): Sign-extend CONST_INT generated from
9587 TREE_STRING_POINTER.
9588 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9590 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9592 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9593 in favor of SP if FRAME_POINTER_REQUIRED is false.
9595 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
9597 * emit-rtl.c (gen_int_mode): New function.
9598 * rtl.h: Prototype for it.
9599 * combine.c (make_extraction, simplify_comparison), expmed.c
9600 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9601 (convert_modes, store_field), optabs.c (expand_fix),
9602 simplify-rtx.c (neg_const_int, simplify_unary_real),
9604 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9605 Use it instead of GEN_INT (trunc_int_for_mode (...)).
9607 2002-03-19 Jakub Jelinek <jakub@redhat.com>
9610 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9611 convert_parm_for_inlining.
9612 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9614 * langhooks-def.h: Likewise.
9615 * objc/objc-lang.c: Likewise.
9616 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9618 * tree-inline.c (initialize_inlined_parameters):
9619 Call convert_parm_for_inlining lang hook if needed.
9620 * c-typeck.c (c_convert_parm_for_inlining): New function.
9621 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9623 2002-03-18 Mark Mitchell <mark@codesourcery.com>
9625 * calls.c (precompute_arguments): Do not assume that temporaries
9626 can be destroyed after expanding the argument.
9627 (expand_call): Likewise.
9629 2002-03-15 Eric Christopher <echristo@redhat.com>
9631 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9632 Fix register preference on last change.
9633 * config/mips/mips.c (mips_return_in_memory): New function.
9634 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9635 * config/mips/mips-protos.h: Declare.
9636 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9637 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9639 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
9641 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9643 (anddi3, iorsi3): Likewise.
9645 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9646 use %gprel for symbols that are going to be placed in linkonce
9649 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9650 RETURN_ADDRESS_POINTER_REGNUM to $ra.
9651 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9652 not needed. Disregard leaf_function_p().
9653 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9654 mips16 frame pointer.
9655 * config/mips/mips.md (store ra): Only to small SP offsets.
9656 2001-08-22 Graham Stott <grahams@redhat.com>
9657 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9658 return a REG rtx for the return address register.
9660 2002-03-18 Bob Wilson <bob.wilson@acm.org>
9662 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9663 constant-pool addresses as "mode-dependent".
9664 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9666 2002-03-18 Jakub Jelinek <jakub@redhat.com>
9669 * expr.c (emit_group_load): Use extract_bit_field if
9670 needed for CONCAT arguments.
9672 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
9675 * arm.md (tablejump): Make this a define_expand. For PIC add the
9676 offset to the base of the table.
9677 (thumb_tablejump): Matcher for Thumb tablejump insn.
9678 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9679 as the difference of two labels.
9680 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9681 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9683 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9684 * arm.c (get_jump_table_size): If the table is not in the text
9685 section, return zero.
9687 2002-03-18 Bernd Schmidt <bernds@redhat.com>
9689 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9691 (arm_reload_out_hi): Use gen_lowpart instead of
9692 gen_rtx_SUBREG to access QImode components.
9693 * config/arm/arm.md: Disable zero_extend split for QImode
9694 subregs in BIG_ENDIAN mode.
9695 (storehi_bigend): Match use of least significant byte.
9696 (storeinthi): Remove extraneous SUBREG.
9697 Add missing construction of operands[2].
9698 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9699 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9700 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9702 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
9704 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9707 2002-03-17 Richard Henderson <rth@redhat.com>
9709 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9712 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9714 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9715 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9717 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9719 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9721 * predict.c (estimate_bb_frequencies): Delete unused variables.
9723 2002-03-17 Richard Henderson <rth@redhat.com>
9725 * config/ia64/ia64.c (ia64_attribute_table): Move before
9726 targetm definition. Make static.
9728 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
9730 * c-common.h (yyparse, c_common_parse_file): New.
9731 * c-lang.c: Include c-common.h.
9732 (LANG_HOOKS_PARSE_FILE): Redefine.
9733 * c-lex.c: Include c-common.h.
9734 (yyparse): Rename c_common_parse_file. Call yyparse.
9735 * c-parse.in (yyparse): Remove macro.
9736 * c-tree.h (yyparse_1): Remove.
9737 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9738 (LANG_HOOKS_INITIALIZER): Update.
9739 * langhooks.h (struct lang_hoooks): New hook parse_file.
9740 * toplev.c (compile_file): Use parse_file hook.
9741 * tree.h (yyparse): Remove.
9742 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9744 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9746 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9747 float_truncate, not fix.
9748 ("*truncdfsf2_real"): Ditto.
9749 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9751 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9753 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
9755 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9756 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
9757 where appropriate. Make the second reference to
9758 leaf_function_p a function call, as intended. Reindented.
9760 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9761 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9763 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9764 add register to non-constant into sp.
9766 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9767 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9768 (mips16_gp_pseudo_rtx): Lose.
9769 (INIT_EXPANDERS): Deleted.
9770 * config/mips/mips.c (mips_init_machine_status): New.
9771 (mips_free_machine_status): New.
9772 (mips_mark_machine_status): New.
9773 (override_options): Set them.
9774 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9775 (struct machine_function): ... new. Replaced all references.
9776 (mips_add_gc_roots): Don't mark them.
9777 (embedded_pic_fnaddr_reg): New, extracted from...
9778 (embedded_pic_offset): ... here.
9779 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9782 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9784 * cppinit.c: Revert -MD removal.
9786 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9788 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9789 soft registers by default for 68HC12.
9790 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9791 when compiling with -fomit-frame-pointer.
9792 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9793 (expand_epilogue): Likewise.
9794 (m68hc11_gen_rotate): Use exg when rotating by 8.
9796 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9798 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9799 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9800 (splits): Remove unused add splits.
9801 ("*addhi3_68hc12"): Tune constraints.
9802 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9803 constant fits in 8-bits and D is dead use abx/aby instructions.
9804 ("*addhi3"): Remove extern declaration of ix_reg.
9805 ("*subsi3"): Optimize and provide new split.
9806 ("subhi3"): Cleanup.
9807 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9808 (arith splits): For 68hc12 save the address register on the stack
9809 and do the arithmetic operation with a pop.
9811 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9813 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9814 allocating QImode in address registers.
9815 ("*movqi_m68hc11"): Likewise.
9817 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9819 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9821 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9823 * cppinit.c (print_help): Display -MD and -MMD.
9824 Don't display usage string. Update assertion syntax and
9826 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9827 (cpp_handle_option): Update.
9829 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9831 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9832 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9833 and define it so that regardless of target CPU size,
9834 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9835 of "int" rather than "long."
9837 2002-03-15 Richard Henderson <rth@redhat.com>
9839 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9842 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9844 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9845 ("tstqi" split): Avoid using memory for tstqi on address register.
9846 (splits): Remove constraints.
9847 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9848 ("cmpdf", "cmpsf"): Remove since not used.
9849 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9850 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9852 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9854 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9855 ("neghi2"): Tighten constraints.
9856 ("one_cmplsi2"): Optimize and simplify split.
9857 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9859 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9861 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9862 and split of AND operation to clear the upper bits.
9863 ("*logicalsi3_zextqi"): Likewise.
9864 ("*logicallhi3_zexthi_ashift8"): Likewise.
9865 ("*logicalsi3_silshr16"): Likewise.
9866 ("logicalsi3_silshl16"): Likewise.
9867 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9869 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9871 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9872 (m68hc11_indirect_p): New function.
9873 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9874 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9876 (asm_print_register): Likewise.
9877 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9878 (m68hc11_indirect_p): Declare.
9879 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9880 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9881 (TARGET_SWITCHES): New option -mrelax.
9882 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9884 ("iorsi3", "xorsi3"): Likewise.
9885 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9886 ("*andhi3_mem"): New to handle destination in memory with bclr
9887 and a scratch register.
9888 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9889 ("*andhi3_const"): New when operand2 is constant.
9890 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9891 ("*andhi3_gen"): Cleanup of the old "andhi3".
9892 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9893 ("xorqi3"): Update constraints.
9895 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9897 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9898 for reg_equiv_memory_loc when the operand is a register that does
9899 not get a hard register (stack location).
9900 (tst_operand): After reload, accept all memory operand.
9901 (symbolic_memory_operand): Fix detection of symbolic references.
9902 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9903 accept symbols and any constant.
9905 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9907 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9908 note on the insn that sets the soft frame register.
9909 (must_parenthesize): ix and iy are also reserved names.
9910 (print_operand_address): One more place where parenthesis are required
9911 to avoid confusion with register names.
9912 (m68hc11_gen_movhi): Allow push of stack pointer.
9913 (m68hc11_check_z_replacement): Fix handling of parallel with a
9915 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9916 the replacement register is.
9917 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9918 and D8_REGS classes.
9919 (MODES_TIEABLE_P): All modes are tieable except QImode.
9921 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9923 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9924 (___subdi3): Likewise.
9925 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9926 (__map_data_section): Optimize 68hc11 case.
9928 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9930 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9931 than a shift to avoid adding a register with itself.
9932 (m68hc11_memory_move_cost): Take into account NO_REGS.
9933 (m68hc11_register_move_cost): Update and use memory move cost
9935 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9936 it gives more opportunities to cse to optimize.
9937 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9938 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9940 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9942 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9943 * c-common.def (CLEANUP_STMT): New tree node.
9944 * c-common.h (CLEANUP_DECL): New macro.
9945 (CLEANUP_EXPR): Likewise.
9946 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9947 * expr.c (expand_expr): Tidy.
9948 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9949 * tree-inline.c (initialize_inlined_parameters): Clean up
9950 new local variables.
9952 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9955 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9956 before movrXX only, use reg_overlap_mentioned_p.
9957 Only special case NE if just one insn can be generated.
9959 2002-03-15 Jason Merrill <jason@redhat.com>
9961 * varasm.c (assemble_variable): Call resolve_unique_section before
9962 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
9965 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9968 * arm.md (split pattern for thumb shiftable immediates): Add comment
9969 explaining non-obvious test.
9971 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9974 * arm.md (movaddr, movaddr_insn): Delete.
9976 2002-03-15 Jason Merrill <jason@redhat.com>
9978 * toplev.c (wrapup_global_declarations): Clarify variable handling.
9979 -fkeep-static-consts doesn't apply to comdats.
9981 2002-03-14 Richard Henderson <rth@redhat.com>
9983 * c-decl.c: Include c-pragma.h.
9984 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9985 (finish_function): Tidy.
9986 * c-pragma.c: Include c-common.h.
9987 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9988 (handle_pragma_weak): Use them.
9989 (init_pragma): Register pending_weaks.
9990 * c-pragma.h (maybe_apply_pragma_weak): Declare.
9991 * print-tree.c (print_node): Print DECL_WEAK.
9992 * varasm.c (mark_weak_decls): Remove.
9993 (remove_from_pending_weak_list): Remove.
9995 (asm_emit_uninitialised): Call globalize_decl for weak commons.
9996 (weak_decls): Make a tree_list.
9997 (declare_weak): Cons weak_decls directly.
9998 (globalize_decl): Remove weak_decls elements directly.
9999 (weak_finish): Simplify weak_decls walk. Don't weaken unused
10000 symbols. Don't pretend to handle aliases.
10001 (init_varasm_once): Update weak_decls registry.
10002 * Makefile.in: Update dependencies.
10004 2002-03-14 Richard Henderson <rth@redhat.com>
10007 * config/ia64/ia64.c: Include tm_p.h last.
10008 (gen_nop_type): Remove duplicate definition.
10009 (cycle_end_fill_slots): Set sched_data for second L slot.
10010 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
10011 (nop_cycles_until): Fix typos.
10013 2002-03-15 Jakub Jelinek <jakub@redhat.com>
10015 PR optimization/5891
10016 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
10018 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
10020 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
10021 descriptors correctly.
10023 2002-03-14 Michael Meissner <meissner@redhat.com>
10025 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
10026 100, allowing MAX_UNROLLED_INSNS to be overridden.
10028 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
10031 * unroll.c (params.h): Include.
10032 (MAX_UNROLLED_INSNS): Delete, now in params.h.
10034 * doc/invoke.texi (--param max-unroll-insns): Document.
10036 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
10038 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
10040 * arm.md: Fix warnings about constraints in peepholes and splits.
10042 2002-03-14 Zack Weinberg <zack@codesourcery.com>
10044 * cpphash.h (struct lexer_state): Remove line_extension member.
10045 * cpplib.c (dequote_string, do_linemarker): New functions.
10046 (linemarker_dir): New data object.
10047 (DIRECTIVE_TABLE): No longer need to interpret #line in
10048 preprocessed source. Delete obsolete comment about return
10049 values of handlers.
10050 (end_directive, directive_diagnostics, _cpp_handle_directive):
10051 Don't muck with line_extension.
10052 (directive_diagnostics): No need to issue warnings for
10054 (_cpp_handle_directive): Issue warnings for linemarkers here,
10055 when appropriate. Dispatch linemarkers to do_linemarker, not
10057 (do_line): Code to handle linemarkers split out to do_linemarker.
10058 Convert escape sequences in filename argument, both places.
10060 * cppmacro.c (quote_string): Rename cpp_quote_string and
10061 export. All callers changed.
10062 * cpplib.h (cpp_quote_string): Prototype.
10063 * cppmain.c (print_line): Call cpp_quote_string on to_file
10064 before printing it.
10066 * doc/cpp.texi: Document that escapes are now interpreted in
10067 #line and in linemarkers, and that non-printing characters are
10068 converted to octal escapes when linemarkers are generated.
10070 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
10072 * emit-rtl.c (try_split): Use delete_insns.
10073 * recog.c (split_all_insns): Fix terminating condition.
10075 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
10076 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10079 * arm.c (arm_output_epilogue): Fix floating-point register save
10080 adjustment when using a frame pointer.
10082 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
10084 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
10085 * config/mips/mips.c (compute_frame_size): Retrofit them here.
10086 (save_restore_insns, mips_expand_epilogue): And here.
10087 (build_mips16_call_stub): And here.
10088 (mips_function_value): Use the new macros to decide whether a single
10089 or complex float can be returned in floating-point registers. Return
10090 a parallel rtx in the complex case.
10092 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
10094 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
10095 call after liveness analysis.
10097 * recog.c (split_insn): Use delete_insn_and_edges.
10099 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
10100 instructions to have branch prediction notes.
10101 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
10103 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
10105 * configure.in: Don't pass -Wno-long-long to a ADA compiler
10106 that doesn't support it.
10107 * configure: Regenerate.
10109 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10112 * config/sparc/sparc.md (normal_branch, inverted_branch,
10113 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10114 inverted_fp_branch): Adjust calls to output_cbranch.
10115 Set length attribute.
10116 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
10117 output_v9branch. Set length attribute.
10118 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
10120 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
10121 (output_cbranch): Likewise. Handle far branches.
10122 (output_v9branch): Handle far branches.
10123 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
10125 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
10126 noov_compare64_op predicates.
10128 2002-03-13 Jason Merrill <jason@redhat.com>
10130 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
10131 into the function and constify it.
10132 * gthr-dce.h, gthr-solaris.h: Likewise.
10134 2002-03-13 David Edelsohn <edelsohn@gnu.org>
10136 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
10137 * config/rs6000/rs6000.c (rs6000_va_arg): Use
10138 std_expand_builtin_va_arg if not ABI_V4.
10140 2002-03-13 Jason Merrill <jason@redhat.com>
10142 * varasm.c (globalize_decl): New fn.
10143 (assemble_start_function): Use it.
10144 (asm_emit_uninitialized): Use it.
10145 (assemble_alias): Use it.
10146 (assemble_variable): Use it.
10148 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
10150 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
10151 2002-03-12 internal visibility change.
10152 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
10153 visibility into SYMBOL_REF_FLAG.
10155 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
10157 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
10158 VOIDmode operand. Add compile-time optimization for constant results.
10160 2002-03-12 Jason Merrill <jason@redhat.com>
10162 * c-typeck.c (convert_for_assignment): Don't allow conversions
10163 between pointers and references. Only allow lvalues to convert to
10166 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
10168 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10169 before prologue, to avoid scheduling problems.
10171 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10173 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10174 (ELIMINABLE_REGS): Add sfp->sp.
10175 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10177 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10179 PR optimization/5892
10180 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10182 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10184 * loop.c (basic_induction_var): Don't call convert_modes if mode
10185 classes are different.
10187 2002-03-12 Richard Henderson <rth@redhat.com>
10189 PR optimization/5901
10190 * function.c (reposition_prologue_and_epilogue_notes): Position
10191 the markers after/before the last/first insn not deleted.
10193 2002-03-12 Richard Henderson <rth@redhat.com>
10195 PR optimization/5878
10196 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10197 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10198 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10200 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10201 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10202 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10204 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10205 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10206 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10207 also. Don't set it if not flag_pic.
10208 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10209 to be INVALID_REGNUM when not used.
10211 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
10213 * expmed.c (store_bit_field): Reset alias set for memory.
10214 (extract_bit_field): Same.
10216 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10218 * c-common.c (c_tree_code_type, c_tree_code_length,
10219 c_tree_code_name, add_c_tree_codes): Delete.
10220 * c-common.h (add_c_tree_codes): Delete.
10221 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10223 * c-objc-common.c (c_objc_common_init): Don't call
10224 add_c_tree_codes, instead set lang_unsafe_for_reeval.
10225 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10226 objc_tree_code_name, add_objc_tree_codes): Delete.
10227 (objc_init): Don't call add_objc_tree_codes.
10228 * objc/objc-lang.c (tree_code_type, tree_code_length,
10229 tree_code_name): Define.
10230 * toplev.c (lang_independent_init): Don't set
10231 tree_code_length[IDENTIFIER_NODE].
10232 * tree.c (tree_code_type, tree_code_length, tree_code_name):
10233 Delete definitions, moved to language front-ends.
10234 * tree.def (IDENTIFIER_NODE): Hardwire the length.
10235 * tree.h (tree_code_type, tree_code_length, tree_code_name):
10237 (tree_code_length): Change type to unsigned char.
10239 2002-03-12 Richard Henderson <rth@redhat.com>
10241 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10242 internal visibility change.
10244 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10246 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10247 validize_mem() instead of change_address to avoid clobbering
10250 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
10252 * c-lex.h (position_after_whitespace): Remove.
10254 2002-03-12 Jakub Jelinek <jakub@redhat.com>
10256 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10257 (lex_string): Use unsigned char pointers.
10259 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
10261 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10262 is not a valid memory_operand.
10264 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10266 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10267 * config/xtensa/lib1funcs.asm: Fix copyright to include
10268 special case for libgcc files.
10269 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10270 (__divsi3): Likewise.
10271 (__umodsi3): Likewise.
10272 (__modsi3): Likewise.
10273 * config/xtensa/lib2funcs.S: Fix copyright to include
10274 special case for libgcc files.
10276 2002-03-12 Tom Rix <trix@redhat.com>
10278 * collect2.c (resolve_lib_name): Move outside of
10279 OBJECT_FORMAT_COFF ifdef.
10280 (ignore_library): Same.
10282 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10284 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10286 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10288 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10289 to function_section before writing out the constant pool.
10291 2002-03-12 David Edelsohn <edelsohn@gnu.org>
10293 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10295 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10297 2002-03-12 Alan Modra <amodra@bigpond.net.au>
10299 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10300 (adddi3): Likewise.
10303 (cmpsi splitter): Likewise.
10304 (modsi3): Fail if <= 0.
10305 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10306 redundant test when HOST_BITS_PER_WIDE_INT != 32.
10307 (reg_or_sub_cint64_operand): Likewise.
10308 (num_insns_constant_wide): Optimize sign extension.
10309 (rs6000_legitimize_address): Likewise.
10311 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
10313 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10314 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10316 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
10318 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10319 address calculation.
10321 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
10323 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10324 scratch register to DImode / TImode.
10325 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10326 register used does not overlap the target.
10328 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10330 * Makefile.in (debug.o): Depend on debug.h.
10331 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10332 * debug.c (do_nothing_debug_hooks): Likewise.
10333 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10334 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10335 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10336 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10337 * dwarfout.c (dwarf_debug_hooks): Likewise.
10338 * integrate.c (output_inline_function): Likewise.
10339 * objc/objc-act.c (synth_module_prologue): Likewise.
10340 * sdbout.c (sdb_debug_hooks): Likewise.
10341 * toplev.c (debug_hooks): Likewise.
10342 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10344 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10346 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10347 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10348 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10349 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10350 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10351 * defaults.h (POINTER_SIZE): Define.
10352 * doc/tm.texi (POINTER_SIZE): Document default.
10354 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10356 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10358 2002-03-11 Richard Henderson <rth@redhat.com>
10360 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10361 if rebuild_label_notes_after_reload.
10363 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
10365 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
10366 emit pic register load if "internal" visibility.
10367 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10368 (cris_expand_builtin_va_arg): Do all computations on trees.
10370 2002-03-11 Richard Henderson <rth@redhat.com>
10372 * rtlanal.c: Include recog.h.
10373 (keep_with_call_p): Fix thinko.
10374 * Makefile.in (rtlanal.o): Update dependencies.
10376 2002-03-11 Chris Meyer <cmeyer@gatan.com>
10378 * genflags.c (gen_insn): Use IS_VSPACE.
10379 * genoutput.c (output_insn_data): Likewise.
10380 (process_template): Likewise.
10382 2002-03-11 Richard Henderson <rth@redhat.com>
10384 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10386 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
10388 * Makefile.in: Update.
10389 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10390 Update documentation.
10391 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10392 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10394 2002-03-11 Zack Weinberg <zack@codesourcery.com>
10396 * Makefile.in: Give texi2pod its input file as a command line
10397 argument, not on stdin.
10399 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
10400 Daniel Berlin <dan@dberlin.org>
10402 C++ alias analysis improvement.
10403 * alias.c (record_component_aliases): Record aliases for base
10406 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10408 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10410 2002-03-11 Douglas B Rupp <rupp@gnat.com>
10412 * toplev.c (vms_fopen): Remove, not needed.
10414 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10416 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10418 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10419 for FP, already done later.
10421 * toplev.c (debug_args): Add entry for VMS_DEBUG.
10422 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10424 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
10426 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10427 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10428 LARGEST_EXPONENT_IS_NORMAL for the given mode.
10429 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10430 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10431 (ediv, emul, eldexp, esqrt): Likewise.
10432 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10433 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10434 (saturate): New function.
10435 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10436 (make_nan): Use a saturation value instead of a NaN if
10437 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
10438 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10439 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
10440 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
10441 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10442 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10443 !ROUND_TOWARDS_ZERO.
10444 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10445 (ROUND_TOWARDS_ZERO): Document.
10447 2002-03-11 Andreas Jaeger <aj@suse.de>
10449 * cfg.c (dump_flow_info): Remove unused variable.
10451 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
10453 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10454 computations on trees.
10456 2002-03-10 Richard Henderson <rth@redhat.com>
10459 * reload.c (copy_replacements_1): New.
10460 (copy_replacements): Use it to recurse through the rtx.
10462 2002-03-10 Richard Henderson <rth@redhat.com>
10464 * loop.c (strength_reduce): Compute number of iterations as
10465 unsigned HOST_WIDE_INT.
10467 2002-03-10 Richard Henderson <rth@redhat.com>
10469 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10470 to move away from the end of the block.
10472 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
10474 PR preprocessor/5899
10475 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10477 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10479 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10481 * attribs.c (decl_attributes): Fix signed/unsigned warning.
10483 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
10485 * config/mmix/mmix.c: Improve comments.
10486 (mmix_target_asm_function_prologue): Drop variable
10487 empty_stack_frame. Don't allocate unused slot above fp.
10488 (mmix_target_asm_function_epilogue): Mirror prologue changes.
10489 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10490 brace in first column.
10491 (enum reg_class): Ditto.
10492 (FIRST_PARM_OFFSET): Now 0.
10493 (USER_LABEL_PREFIX): Remove #if 0:d definition.
10495 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10497 * combine.c (make_extraction): Fix error in last change.
10499 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10501 * c4x.c (c4x_fp_reglist): Const-ify.
10502 * cris.c (cris_print_operand): Likewise.
10503 * i386.c (ix86_va_arg): Likewise.
10504 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10505 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10506 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10507 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10508 * mcore.h (regno_reg_class): Likewise.
10509 * mips.c (gen_int_relational): Likewise.
10510 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10511 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10512 * pdp11.c (move_costs): Likewise.
10513 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10514 * s390.c (s390_branch_condition_mnemonic, regclass_map):
10516 * s390.h (regclass_map): Likewise.
10517 * sh.c (shift_amounts): Likewise.
10518 * sh.md (rotlsi3): Likewise.
10520 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10522 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10523 (ne0+5): Use new clobber to generate proper shift pattern.
10524 Patch by Michael Matz <matz@kde.org>.
10526 2002-03-09 Andreas Schwab <schwab@suse.de>
10528 * gcc.c (validate_all_switches): Also handle `%W{...}'.
10530 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10532 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10534 2002-03-09 Jakub Jelinek <jakub@redhat.com>
10537 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10538 even for non-representable constants.
10540 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10542 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10543 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10544 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10545 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10546 (pop_function_context): Compute MAY_SHARE parameter for
10548 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10549 (gen_mem_addressof): Call fixup_var_refs with new parm.
10551 * combine.c (make_extraction): Don't make extension of CONST_INT.
10553 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10555 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10556 in o32 and o64 ABIs.
10557 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10558 but getting fixed-size structs passed in registers regardless of
10559 padding in o32 and o64 ABIs.
10561 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10562 offset before loading address of argument passed by transparent
10565 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10567 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10569 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10571 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10572 marker such that registers after it are saved.
10574 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10576 * sparc.c (arith_4096_operand): Fix error in last change.
10578 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10580 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10581 defaults for MEABI.
10583 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10585 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10588 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10590 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10592 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
10594 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10595 removed; fix return value.
10596 * combine.c (combine_instructions): Dirtify blocks where we failed to
10597 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10598 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10600 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10602 * gcse.c (insert_insn_end_bb): Fix typo in last change.
10604 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
10606 * recog.c (peephole2_optimize): Re-distribute EH edges.
10608 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
10610 * expr.c (expand_expr): Use unsave lang hook.
10611 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10612 (LANG_HOOKS_INITIALIZER): Update.
10613 * langhooks.h (struct lang_hooks): New hook unsave.
10614 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10615 (unsave_expr_1): Remove unused lang_unsave_expr_now.
10616 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
10617 (unsave_expr_now): Remove.
10618 * tree.h (unsave_expr_now, lang_unsave,
10619 lang_unsave_expr_now): Remove.
10622 2002-03-08 Andreas Jaeger <aj@suse.de>
10624 * flow.c (propagate_block_delete_insn): Remove unused variable.
10626 2002-03-08 Kazu Hirata <kazu@hxi.com>
10628 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10629 insn length for memory load/store.
10631 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
10633 * doc/install.texi (--with-libiconv-prefix): Document.
10635 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
10637 * doc/sourcebuild.texi: Fix typo.
10639 2002-03-08 Jakub Jelinek <jakub@redhat.com>
10642 * builtins.c (std_expand_builtin_va_arg): Do all computations on
10645 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10647 * rtl.c (copy_most_rtx): Move from here ...
10648 * emit-rtl.c (copy_most_rtx): ... to here.
10650 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10652 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10653 SUBTARGET_CPP_SIZE_SPEC.
10654 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10656 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10658 2002-03-07 Matt Hiller <hiller@redhat.com>
10660 * gensupport.c (first_dir_md_include): Renamed from include;
10661 change all references.
10662 (last_dir_md_include): Renamed from last_include; change all
10664 (init_md_reader): Unconditionally initialize base_dir whether or
10665 not filename is a relative path.
10667 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
10669 * config/fp-bit.c (_unord_f2): Compile it in even if
10670 US_SOFTWARE_GOFAST is enabled.
10672 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10673 NULL_RTX. Set all HFmode operations as NULL_RTX.
10674 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10675 NULL_RTX, try reversing the comparison and the operands.
10677 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10679 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10680 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10683 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
10685 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10687 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10689 * basic-block.h (fixup_abnormal_edges): Declare.
10690 * reload1.c (fixup_abnormal_edges): New function.
10691 * reg-stack.c (convert_regs): Use it.
10693 * gcse.c (insert_insn_end_bb): Handle trapping insns.
10695 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10697 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
10699 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10700 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10701 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10702 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10703 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10704 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10705 unless x and y could be infinite.
10706 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10707 Check that the common type of both arguments is a real, even for
10708 targets without unordered comparisons. Allow an integer argument
10709 to be compared against a real.
10710 (expand_tree_builtin): Use expand_unordered_cmp.
10711 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10712 * cse.c (fold_rtx): Likewise. Fix indentation.
10713 * fold-const.c (fold_real_zero_addition_p): New.
10714 (fold): Use it, and the new HONOR_... macros.
10715 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10716 * jump.c (reversed_comparison_code_parts): After searching for
10717 the true comparison mode, use HONOR_NANS to decide whether it
10718 can be safely reversed.
10719 (reverse_condition_maybe_unordered): Remove IEEE check.
10720 * simplify-rtx.c (simplify_binary_operation): Use the new macros
10721 to decide which simplifications are valid. Allow the following
10722 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10723 and (a - -b) to (a + b).
10724 (simplify_relational_operation): Use HONOR_NANS.
10725 * doc/tm.texi: Document the MODE_HAS_... macros.
10727 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10729 * combine.c (simplify_comparison): If simplifying a logical shift
10730 right and compare with constant, force the comparison to unsigned.
10732 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
10734 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10736 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10738 (alt_reg_names): Remove % for vrsave.
10740 2002-03-06 Richard Henderson <rth@redhat.com>
10742 PR optimization/5844
10743 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
10744 if used indicates we've already emitted one copy of an operand.
10745 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10746 (gen_split): Supply a non-null used.
10748 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10750 * reload1.c (reload): Unshare all rtl after reload is done.
10752 * simplify-rtx.c (simplify_plus_minus): Do not abort,
10753 but simply fail if the expression is too complex to simplify.
10754 (simplify_gen_binary): Handle simplify_plus_minus failures.
10756 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
10758 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10759 consistently call delete_trivially_dead_insns after CSE and GCSE;
10760 fix DFI_life dumping; do jump threading after liveness; do crossjumping
10761 after liveness2; update comment in last crossjumping.
10762 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10764 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
10766 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10767 after completing fast dead code elimination.
10769 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10772 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
10774 * version.c: Fix misplaced leading blanks on first line.
10776 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10778 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10780 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10782 * cfgcleanup.c (mentions_nonequal_regs): New function.
10783 (thread_jump): Use it.
10784 * toplev.c (rest_of_compilation): Run jump threading after
10787 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10789 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10792 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10794 * predict.c (estimate_bb_frequencies): Do not reload the
10795 frequencies from notes.
10797 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10799 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10800 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10802 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10803 delete_noop_moves): Return indeger.
10804 * flow.c (ndead): New variable.
10805 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10806 BB argument; update callers.
10807 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10808 (life_analysis): Do not call purge_all_dead_edges.
10809 (update_life_info): Return number of deleted insns; print statistics.
10810 (update_life_info_in_dirty_blocks): likewise.
10811 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10812 return number of insns deleted.
10814 * cse.c: Include timevar.h
10815 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10816 iterate until stabilizes; print statistics; return number of killed
10818 * Makefile.in: (cse.o): Add timevar.h dependency
10819 * rtl.h (delete_trivially_dead_insns): New.
10820 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10821 * toplev.c (rest_of_compilation): Update callers.
10823 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10824 (try_optimize_cfg): Do not update liveness.
10825 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10826 removal stabilizes; use delete_trivially_dead_insns.
10828 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10830 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10832 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10833 callbacks when processing assembly language.
10835 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10837 * pa.h (ASM_FILE_END): Define.
10838 * som.h (ASM_FILE_END): Delete.
10840 * pa.c (function_arg): Don't pass floats in general registers in
10841 indirect calls if TARGET_ELF32.
10843 2002-03-05 Richard Henderson <rth@redhat.com>
10845 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10847 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
10849 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10851 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10853 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10854 -r command line. Don't hide any symbols if not building
10857 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
10859 * cfg.c (dump_flow_info): Warn about profile mismatches.
10860 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10861 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10863 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10865 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10866 wide volatile memory by parts.
10868 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10870 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10873 2002-03-05 Richard Henderson <rth@redhat.com>
10875 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10877 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10879 * toplev.c (documented_lang_options): Document more
10880 language-specific options.
10881 * doc/invoke.texi (Warning Options): Correct documentation for
10882 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10883 * c-decl.c (c_decode_option): Use a table to handle warning options.
10885 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
10887 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10888 parameter to mmix_encode_section_info.
10889 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10890 relocatably. Always produce ELF, not mmo if linking relocatably.
10891 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10892 first is non-zero, don't add symbol prefix.
10893 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10894 prototype accordingly.
10896 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10898 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10900 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10902 * configure.in: Increase required makeinfo version to 4.1.
10903 * configure: Regenerate.
10905 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10907 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10910 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10912 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10913 * doc/invoke.texi: Fix @math uses.
10915 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10917 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10920 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10922 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10923 (powerpc-*-eabisimaltivec*): Same.
10925 * config/rs6000/t-ppcendian: New.
10927 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10929 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10930 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10931 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10933 2002-03-03 Richard Henderson <rth@redhat.com>
10935 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10937 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10939 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10940 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10941 tree.c, config/m68k/m68k.c:
10942 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10943 REAL_ARITHMETIC blocks unconditional. Delete some further
10944 #ifdef blocks predicated on REAL_ARITHMETIC.
10945 * flags.h, toplev.c: Delete remaining references to
10946 flag_pretend_float.
10948 * doc/invoke.texi: Remove documentation of -fpretend-float.
10949 * doc/tm.texi: Describe the various REAL_* macros as provided by
10950 real.h, not by the target configuration files.
10952 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10953 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10954 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10955 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10956 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10957 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10958 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10959 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10960 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10961 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10962 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10963 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10964 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10965 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10966 config/xtensa/xtensa.h:
10967 Do not define, undefine, or mention in comments any of
10968 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10969 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10970 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10971 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10972 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10973 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10974 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10975 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10976 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10978 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10980 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10981 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10982 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10983 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10984 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10985 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10987 * defaults.h (BITS_PER_WORD): Define.
10988 * doc/tm.texi (BITS_PER_WORD): Document default value.
10990 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10991 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10992 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10994 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10996 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10997 lieu of explicit sizeof/sizeof.
10998 * i386.c (override_options, ix86_init_mmx_sse_builtins,
10999 ix86_expand_builtin): Likewise.
11000 * mips.c (mips_add_gc_roots): Likewise.
11001 * mmix.c (mmix_output_condition): Likewise.
11002 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
11003 altivec_init_builtins): Likewise.
11004 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
11005 * cppexp.c (Nsuff, parse_number): Likewise.
11006 * cppinit.c (builtin_array_end): Likewise.
11007 * gcc.c (n_default_compilers, process_command): Likewise.
11008 * genpreds.c (output_predicate_decls): Likewise.
11009 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
11010 * lcm.c (N_ENTITIES): Likewise.
11011 * stor-layout.c (set_sizetype): Likewise.
11013 2002-03-03 Richard Henderson <rth@redhat.com>
11015 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
11016 for types or labels.
11018 2002-03-03 Richard Henderson <rth@redhat.com>
11020 * c-decl.c (start_decl): Initialized variables are not common.
11022 2002-03-02 Per Bothner <per@bothner.com>
11024 * gcc.c (option_map): Suport new --bootclasspath option.
11025 --CLASSPATH is now just an alias for --classpath.
11027 2002-03-02 Richard Henderson <rth@redhat.com>
11029 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
11030 load if "internal" visibility.
11031 * doc/extend.texi: Document visibility meanings.
11033 2002-03-02 Richard Henderson <rth@redhat.com>
11035 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
11036 to functions as well.
11038 2002-03-02 Richard Henderson <rth@redhat.com>
11040 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
11041 (handle_visibility_attribute): Don't call assemble_visibility.
11042 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
11043 without asmspec. Invoke assemble_alias when needed.
11044 * varasm.c (maybe_assemble_visibility): New.
11045 (assemble_start_function, assemble_variable, assemble_alias): Use it.
11047 2002-03-02 Richard Henderson <rth@redhat.com>
11049 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
11050 invoke ENCODE_SECTION_INFO with first call flag.
11052 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
11053 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
11054 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
11055 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
11056 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
11057 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
11058 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
11059 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
11060 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
11061 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
11062 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11063 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
11064 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
11065 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
11066 config/mcore/mcore-protos.h, config/mcore/mcore.c,
11067 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
11068 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
11069 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11070 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
11071 config/sh/sh.h, config/sparc/sparc.h,
11072 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
11073 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
11074 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
11075 FIRST argument. As needed, examine it and do nothing.
11077 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
11078 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11079 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
11081 * config/arm/t-pe (pe.o): Add dependencies.
11083 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11085 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
11086 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
11087 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
11088 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
11089 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
11090 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
11091 * defaults.h (BITS_PER_UNIT): Define.
11092 * doc/tm.texi (BITS_PER_UNIT): Document default value.
11094 2002-03-02 Kazu Hirata <kazu@hxi.com>
11096 * config/h8300/h8300-protos.h: Add a prototype for
11097 compute_a_shift_length.
11098 * config/h8300/h8300.c (h8300_asm_insn_count): New.
11099 (compute_a_shift_length): Likewise.
11100 (h8300_adjust_insn_length): Do not adjust insn length of shift
11102 * config/h8300/h8300.md (anonymous shift patterns): Use
11103 compute_a_shift_length.
11105 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11107 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
11108 trunc_int_for_mode.
11110 * emit-rtl.c (offset_address): Call update_temp_slot_address.
11112 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11114 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
11115 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
11116 * flags.h (flag_zero_initialized_in_bss): Declare.
11117 * toplev.c (flag_zero_initialized_in_bss): New flag.
11118 (lang_independent_options): Add flag_zero_initialized_in_bss.
11119 * tree.c (initializer_zerop): New function.
11120 * tree.h (initializer_zerop): Declare.
11121 * varasm.c (assemble_variable): If we can emit bss, put zero
11122 initializers in the bss section.
11124 2002-03-02 Alan Modra <amodra@bigpond.net.au>
11126 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
11127 like more than one symbol per .weak directive.
11129 2002-03-01 Richard Henderson <rth@redhat.com>
11131 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
11132 adjust argument_pointer by pretend_args_size.
11133 (ia64_va_start): Adjust va_start address by -pretend_args_size.
11135 2002-03-01 Kazu Hirata <kazu@hxi.com>
11137 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
11139 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
11141 * toplev.c (rest_of_compilation): Delete dead jumptables before
11143 * flow.c (delete_dead_jumptables): Make global.
11144 * rtl.h (delete_dead_jumptables): Declare.
11146 2002-03-01 David Edelsohn <edelsohn@gnu.org>
11148 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
11149 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
11150 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
11152 2002-03-01 Kazu Hirata <kazu@hxi.com>
11154 * config/h8300/h8300-protos.h: Fix formatting.
11155 * config/h8300/h8300.c: Likewise.
11156 * config/h8300/h8300.h: Likewise.
11158 2002-03-01 Kazu Hirata <kazu@hxi.com>
11160 * config/h8300/h8300.c (print_operand): Support 16-bit
11161 constant addresses.
11162 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
11164 2002-02-28 Richard Henderson <rth@redhat.com>
11166 * expmed.c (store_bit_field): Prevent generation of CONCATs;
11167 pun complex values as integers; use gen_lowpart instead of
11169 (extract_bit_field): Likewise.
11171 2002-03-01 Alan Modra <amodra@bigpond.net.au>
11172 David Edelsohn <edelsohn@gnu.org>
11174 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11175 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11176 (SUPPORTS_WEAK): Likewise.
11177 * output.h (add_weak): Add tree param.
11178 * varasm.c (add_weak): Likewise. Save decl.
11179 (struct weak_syms): Add decl field.
11180 (mark_weak_decls): New function.
11181 (init_varasm_once): ggc_add_root mark_weak_decls.
11182 (assemble_start_function): Use ASM_WEAKEN_DECL.
11183 (assemble_variable): Likewise.
11184 (assemble_alias): Likewise.
11185 (declare_weak): Pass decl to add_weak.
11186 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11187 (remove_from_pending_weak_list): Declare and define for
11189 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11190 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11191 * defaults.h (SUPPORTS_WEAK): Likewise.
11192 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11193 .weak for code sym. Do emit .size for descriptor sym.
11194 (ASM_DECLARE_FUNCTION_SIZE): Define.
11195 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11196 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
11197 .lglobl unless TARGET_XCOFF. Formatting fixes.
11198 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11199 .weak for code sym.
11200 (HANDLE_PRAGMA_WEAK): Remove.
11201 (ASM_WEAKEN_LABEL): Remove.
11202 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11204 2002-03-01 Jason Merrill <jason@redhat.com>
11206 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11207 (TARGET_EXPR_CLEANUP): New macro.
11209 2002-02-28 Steve Ellcey <sje@cup.hp.com>
11211 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11212 to take ptr_extend into account as third type of extension.
11213 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11214 fields used by SUBREG_PROMOTED_UNSIGNED_P.
11215 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11216 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11217 * calls.c (precompute_arguments): Use new macro.
11218 (expand_call): Ditto.
11219 * combine.c (nonzero_bits): Ditto.
11220 (record_promoted_value): Ditto.
11221 * expr.c (store_expr): Ditto.
11222 (expand_expr): Ditto.
11223 * function.c (assign_parms): Ditto.
11225 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
11227 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11228 override -shared and -shared-libgcc.
11230 2002-02-28 David O'Brien <obrien@FreeBSD.org>
11232 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11234 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
11237 2002-02-28 Richard Henderson <rth@redhat.com>
11239 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11240 4 cycle latency from MM producers.
11241 (ia64_internal_sched_reorder): Likewise with pipeline flush.
11243 2002-02-28 Jakub Jelinek <jakub@redhat.com>
11245 * mklibgcc.in: Don't use GNU make extension.
11247 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11249 * c-parse.in (STATIC): New terminal.
11250 (scspec): New non-terminal. Update productions accordingly.
11251 (program): Remove bogus ifc / end ifc.
11252 (array_declarator): Simplify production using STATIC.
11254 2002-02-28 Jim Meyering <meyering@lucent.com>
11256 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11257 \a still means TARGET_BELL.
11259 2002-02-28 Richard Henderson <rth@redhat.com>
11261 * haifa-sched.c (sched_emit_insn): New.
11262 (schedule_block): Use last_scheduled_insn to track last insn.
11263 * sched-int.h (sched_emit_insn): Prototype.
11264 * config/ia64/ia64.c (last_issued): Remove.
11265 (ia64_variable_issue): Don't set it.
11266 (nop_cycles_until): Use sched_emit_insn.
11268 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
11270 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11271 extended constants.
11273 2002-02-28 Kazu Hirata <kazu@hxi.com>
11275 * config/h8300/h8300.c: Fix formatting.
11276 * config/h8300/h8300.h: Likewise.
11278 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
11280 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11281 which may overwrite the high byte of the frame pointer.
11283 2002-02-28 Bo Thorsen <bo@suse.de>
11285 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11286 (STARTFILE_SPEC): Add 64 bit files.
11287 (ENDFILE_SPEC): Likewise.
11289 2002-02-28 Jason Merrill <jason@redhat.com>
11291 * c-decl.c (finish_function): Only warn about missing return
11292 statement with -Wreturn-type.
11294 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
11296 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11298 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11299 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11301 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
11303 * basic-block.h (BB_REACHABLE): Renumber.
11304 (BB_DIRTY, BB_NEW): New flags.
11305 (clear_bb_flags): Declare.
11306 (update_life_info_in_dirty_blocks): Declare.
11307 * cfg.c (clear_bb_flags): New function.
11308 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11309 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11310 reorder_insns, emit_insn_after): Mark block as dirty.
11311 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11312 (update_life_info_in_dirty_blocks): New function.
11313 * recog.c (apply_change_group): Dirtify block.
11315 * cse.c (cse_insn): Reorder emitting of jump insn to keep
11317 * gcse.c (delete_null_pointer_checks): Likewise.
11319 * toplev.c (dump_file_index): Move cse2 after bp,
11321 (dump_file_info): Similary.
11322 (rest_of_compilation): Avoid most of CFG rebuilds;
11323 do first if converision after null pointer checks, do cse2
11324 after branch prediction; avoid full liveness rebuild after
11325 initializing subregs.
11326 * invoke.texi (-d options): Document -du, renumber.
11328 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11329 (notice_new_block): Do not set BB_UPDATE_LIFE.
11330 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11331 merge_blocks_move_successor_nojumps, merge_blocks,
11332 try_crossjump_to_edge): Likewise.
11333 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11334 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11335 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11336 (merge_of_block): Do not use life_data_ok.
11337 (find_if_case_1): Do not use SET_UPDATE_LIFE.
11338 (if_convert): Use BB_DIRTY mechanizm to update life.
11339 * lcm.c (optimize_mode_switching): Update
11340 update_life_info_in_dirty_blocks
11342 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11344 * Makefile.in (integrate.o): Update.
11345 * c-decl.c (copy_lang_decl): Rename.
11346 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11347 * integrate.c: Include langhooks.h.
11348 (copy_decl_for_inlining): Update to use langhook.
11349 * langhooks-def.h (lhd_do_nothing_t,
11350 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11351 (LANG_HOOKS_INITIALIZER): Update.
11352 * langhooks.c (lhd_do_nothing_t): New.
11353 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11354 * tree.h (copy_lang_decl): Remove.
11356 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11358 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
11360 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11361 POST_DEC, and POST_MODIFY.
11363 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11365 * c-typeck.c (digest_init): Remove unused parameter; all
11368 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
11370 * expmed.c (expand_shift): Correctly test for low part of a
11373 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
11375 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11376 insn UIDs with insn addresses.
11378 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11380 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11381 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11382 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11383 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11384 gcc.c, toplev.c: Delete code implementing -traditional mode.
11386 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11387 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11388 Document removal of -traditional mode for compilation, and
11389 remove documentation only relevant to that mode.
11391 * config/nextstep.h, config/ptx4.h, config/svr4.h,
11392 config/convex/convex.h, config/d30v/d30v.h,
11393 config/i386/dgux.h, config/i386/osf1elf.h,
11394 config/i386/osfelf.h, config/i386/osfrose.h,
11395 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11396 config/m68k/hp310.h, config/m88k/dgux.h,
11397 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11398 config/m88k/m88k.h, config/m88k/openbsd.h,
11399 config/mips/abi64.h, config/mips/osfrose.h,
11400 config/mips/svr4-5.h, config/mips/svr4-t.h,
11401 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11402 config/stormy16/stormy16.h: Remove all references to
11403 -traditional from target specs. Delete all mention of the
11404 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
11405 delete a couple of commented-out definitions of
11406 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11409 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11410 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11412 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11414 * mklibgcc.in: Don't use \n in a line subject to
11415 interpretation by echo.
11417 2002-02-27 Graham Stott <grahams@redhat.com>
11419 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11422 * loop.c (prescan_loop): Handle PARALLEL.
11424 * unroll.c (loop_iterations): Return 0 if the add_val for
11427 * final.c (output_operand_lossage): Constify PFX_STR.
11429 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11431 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
11433 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11434 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11436 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
11438 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11440 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
11442 * cpplex.c (_cpp_lex_token): Handle directives in macro
11444 * cpplib.c (_cpp_handle_directive): Save and restore state
11445 if parsing macro args when entering a directive.
11446 * cppmacro.c (collect_args): No need to handle directives
11447 in macro arguments.
11448 (enter_macro_context, replace_args): Use the original macro
11449 definition in case it was redefined whilst collecting arguments.
11451 * cpp.texi: Update.
11453 2002-02-26 David Edelsohn <edelsohn@gnu.org>
11455 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11456 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11457 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11459 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11460 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11461 (load_toc_v4_PIC_2): Same.
11463 2002-02-26 Alan Modra <amodra@bigpond.net.au>
11465 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11467 2002-02-26 Richard Henderson <rth@redhat.com>
11469 * config/alpha/alpha.md (ashldi_se): Re-enable.
11471 2002-02-26 Richard Henderson <rth@redhat.com>
11473 * config/alpha/alpha.c (alpha_encode_section_info): Examine
11474 MODULE_LOCAL_P; improve commentary.
11476 2002-02-26 Zack Weinberg <zack@codesourcery.com>
11478 * doc/cpp.texi: Clarify documentation of relationship between
11479 #line and #include.
11481 2002-02-26 Kazu Hirata <kazu@hxi.com>
11483 * config/h8300/h8300-protos.h: Update the prototype for
11484 compute_logical_op_length. Add the prototype for
11485 compute_logical_op_cc.
11486 * config/h8300/h8300.c (compute_logical_op_length): Figure out
11487 code from operands.
11488 (compute_logical_op_cc): New.
11489 * config/h8300/h8300.md: Combine all the logical op patterns
11490 in HImode and SImode. Use compute_logical_op_cc.
11492 2002-02-26 Kelley Cook <kelleycook@comcast.net>
11494 * config/i386/i386.c (print_operand): Don't append ATT-style
11495 length suffixs to x87 opcodes when in Intel mode.
11497 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
11499 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11500 (init_emit_once): Update calls.
11501 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11502 (init_syntax_once): Prototype.
11504 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11506 * pa-linux.h (LIB_SPEC): Update definition.
11507 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11509 2002-02-26 Richard Henderson <rth@redhat.com>
11511 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11512 if we emitted a stop bit.
11514 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11516 * configure.in (libgcc_visibility): Substitute.
11517 * configure: Rebuilt.
11518 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11519 defined symbols .hidden.
11521 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11523 * attribs.c (c_common_attribute_table): Add visibility.
11524 (handle_visibility_attribute): New function.
11525 * varasm.c (assemble_visibility): New function.
11526 * output.h (assemble_visibility): Add prototype.
11527 * tree.h (MODULE_LOCAL_P): Define.
11528 * crtstuff.c (__dso_handle): Use visibility attribute.
11529 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11530 for MODULE_LOCAL_P symbols too.
11531 * config/ia64/ia64.c (ia64_encode_section_info): Handle
11532 MODULE_LOCAL_P symbols the same way as local symbols.
11533 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11534 into .sdata/.sbss by the user.
11535 * doc/extend.texi (Function Attributes): Document visibility
11538 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11541 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11542 STRING_CST initializer spanning the whole variable without
11544 If expand_expr returned MEM, don't use it.
11546 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
11548 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11549 generate a die for the lexical block.
11551 2002-02-26 Kazu Hirata <kazu@hxi.com>
11553 * config/h8300/h8300-protos.h: Add a prototype for
11554 compute_logical_op_length.
11555 * config/h8300/h8300.c (compute_logical_op_length): New.
11556 * config/h8300/h8300.md (anonymous logical patterns): Use
11557 compute_logical_op_length for length.
11559 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11561 * dwarf2out.c (modified_type_die): Do not call type_main_variant
11563 (gen_type_die): Same.
11565 * attribs.c (handle_vector_size_attribute): Set debug information.
11567 2002-02-26 Daniel Egger <degger@fhm.edu>
11569 * config/rs6000/rs6000.md: Swap define_insn attributes to
11570 fix incorrect generation of merge high instructions instead
11573 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11575 * c-typeck.c (really_start_incremental_init): Use
11576 bitsize_zero_node for vectors.
11578 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11580 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11581 ("*set_vrsave_internal"): Same.
11583 2002-02-25 Richard Henderson <rth@redhat.com>
11585 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11586 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
11588 2002-02-25 Jakub Jelinek <jakub@redhat.com>
11591 * config/i386/i386.c (ix86_return_pops_args): Only pop
11592 fake structure return argument if it was passed on the stack.
11594 2002-02-25 Jason Merrill <jason@redhat.com>
11596 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11599 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11601 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11602 link with shared_name only.
11603 * doc/invoke.texi (Link Options): Document new behavior.
11605 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11607 * c-typeck.c (push_init_level): Handle vectors.
11609 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11611 * config/sparc/sparc.c (const64_high_operand): Zero-extend
11612 operands of SPARC_SETHI_P.
11613 (input_operand): Likewise.
11614 (sparc_emit_set_const32): Likewise.
11615 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11616 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11617 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
11618 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11619 (movdi_insn_sp64_vis): Likewise.
11620 (movdi split, movdf split): Use SETHI32.
11621 * doc/md.texi: Document SPARC constraints L, M and N.
11623 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11625 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11626 ("*set_vrsave_internal"): use mfspr for Darwin.
11628 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11629 gen_get_vrsave_internal.
11631 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11633 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11635 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
11637 * cpplex.c (cpp_interpret_charconst): Get signedness or
11638 otherwise of wide character constants correct.
11639 * cppexp.c (lex): Get signedness of wide charconsts correct.
11641 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11643 * optabs.c (widen_operand): Only call convert_modes for
11644 promoted SUBREG if signedness matches.
11645 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11647 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11649 * cpplib.c (glue_header_name): Use local buffer to build up
11652 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11654 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11656 2002-02-23 Kazu Hirata <kazu@hxi.com>
11658 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11659 H8/300[HS] separately.
11660 * config/h8300/h8300.md: Remove the early clobber constraint
11661 from bit field patterns.
11663 2002-02-23 Kazu Hirata <kazu@hxi.com>
11665 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11667 (mulhisi3): Likewise.
11668 (umulqisi3): Likewise.
11669 (umulhisi3): Likewise.
11671 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11673 * cppinit.c (output_deps): Correct test for stdout output.
11674 (init_dependency_output): Cure warning.
11676 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11678 * expr.c (store_expr): When converting expression to promoted
11679 equivalent type, allow using SUBREG_REG of TARGET as the target
11680 of the expansion of EXP.
11681 * loop.c (basic_induction_var, case SUBREG): Always look inside.
11682 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11683 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11684 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11685 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11687 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
11689 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11690 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11691 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11693 2002-02-23 Jakub Jelinek <jakub@redhat.com>
11695 PR optimization/5747
11696 * loop.c (scan_loop): Update reg info if move_movables created new
11699 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11701 * gcc.c (init_gcc_spec): Revert last change.
11703 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11705 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11706 gpc_reg_operand constraint.
11708 2002-02-23 Alan Modra <amodra@bigpond.net.au>
11710 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11711 Simplify comparison of `low'.
11712 (add_operand): Fix formatting.
11713 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11714 (mask_operand): Disallow mask to wrap in 64-bit mode.
11715 (rs6000_stack_info): Remove redundant test setting push_p.
11716 (output_toc): Fix formatting.
11717 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11718 cc_reg_not_cr0_operand constraint.
11719 (booldi3, boolcdi3 splitters): Same.
11721 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
11723 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11725 2002-02-22 David Edelsohn <edelsohn@gnu.org>
11727 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11728 gcc invoked with -shared-libgcc.
11730 2002-02-22 Jakub Jelinek <jakub@redhat.com>
11733 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11734 decl if any of elements was TREE_USED.
11736 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
11738 * config/sparc/sol2.h: Don't include sys/mman.h.
11739 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11740 (arith_4096_operand): Don't throw high bits away.
11741 (const64_operand): Take sign extension of CONST_INTs into account.
11742 (const64_high_operand, sparc_emit_set_const32): Likewise.
11743 (GEN_HIGHINT64): Likewise.
11744 (sparc_emit_set_const64_quick1): Likewise.
11745 (const64_is_2insns): Likewise.
11746 (print_operand): Use trunc_int_for_mode for sign extension.
11747 * config/sparc/sparc.h (SMALL_INT32): Likewise.
11748 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11749 chars. Assume CONST_INT is already properly sign-extended.
11750 (movdi split): Sign-extend each SImode part.
11751 (andsi3 split): Don't mask high bits off, so that result
11752 remains properly sign-extend.
11753 (iorsi3 split): Likewise.
11754 (xorsi3 split): Likewise.
11756 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
11758 * fold-const.c (fold): Fix typo in comments.
11760 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11762 * Makefile.in (langhooks.o): Update dependencies.
11764 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11766 * langhooks.c: Include flags.h.
11768 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
11770 * testsuite/gcc.dg/attr-alwaysinline.c: New.
11772 * c-common.c (c_common_post_options): Set inline trees by
11775 * doc/extend.texi (Function Attributes): Document always_inline
11777 Update documentation about inlining when not optimizing.
11779 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11781 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11782 unless DECL_ALWAYS_INLINE.
11784 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11785 unless DECL_ALWAYS_INLINE.
11786 (c_disregard_inline_limits): Disregard if always_inline set.
11788 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11789 Disregard if always_inline set.
11790 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11791 unless DECL_ALWAYS_INLINE.
11793 * attribs.c (handle_always_inline_attribute): New.
11794 (c_common_attribute_table): Add always_inline.
11796 * config/rs6000/altivec.h: Add prototypes for builtins
11797 requiring the always_inline attribute.
11799 2002-02-21 Eric Christopher <echristo@redhat.com>
11801 * expmed.c (store_bit_field): Try to simplify the subreg
11802 before generating a new one when when the mode size of
11803 value is less than maxmode.
11805 2002-02-21 Richard Henderson <rth@redhat.com>
11807 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11808 than gen_rtx_PLUS to form the sum.
11809 * explow.c (force_reg): Rearrange to not allocate new pseudo
11810 when force_operand returns a register.
11811 * expr.c (expand_assignment): Allow offset_rtx expansion to
11812 return a sum. Do not force addresses into registers.
11813 (expand_expr): Likewise.
11814 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11815 to canonicalize arithmetic that didn't simpify.
11816 (simplify_plus_minus): New argument force; update
11817 all callers. Don't split CONST unless we can do something with it,
11818 and wouldn't lose the constness of the operands.
11820 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11821 that we generated earlier.
11823 2002-02-21 Tom Tromey <tromey@redhat.com>
11825 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11826 (output_line_info): Use constant `1', with a long explanatory
11828 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11830 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11832 * jump.c (redirect_jump): If old label has no UID, don't try to
11835 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11837 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11838 If input is constant, do shifts at compile time.
11840 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11842 * doc/extend.texi: Fix some more overfull hboxes.
11844 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11846 PR optimization/4994
11847 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11850 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11853 * expr.h (expand_and): Add mode argument.
11854 * expmed.c (expand_and): Add mode argument.
11855 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11856 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11857 * except.c (expand_builtin_extract_return_addr): Likewise.
11858 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11859 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11860 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11861 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11862 * config/c4x/c4x.md: Use GEN_INT (x) instead of
11863 gen_rtx (CONST_INT, VOIDmode, x).
11865 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11868 * stmt.c (warn_if_unused_value): Move side effects test once more.
11870 2002-02-20 Torbjorn Granlund <tege@swox.com>
11872 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11873 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11875 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
11877 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11878 SUBREG or ZERO_EXTEND.
11880 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
11882 * sh.h (current_function_anonymous_args): Remove.
11883 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11884 of current_function_varargs and current_function_stdarg is set.
11885 * sh.c (sh_expand_prologue): Check current_function_varargs /
11886 current_function_stdarg / TARGET_SH5 instead of
11887 current_function_anonymous_args.
11889 * sh64.h (TARGET_VERSION): Define.
11891 2002-02-20 David Edelsohn <edelsohn@gnu.org>
11893 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11894 VRSAVE_REGNO on TARGET_ALTIVEC.
11896 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11898 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11899 bits of SImode const_int.
11900 (includes_rshift_p): Likewise.
11901 (print_operand): Call mask_operand and mask64_operand with correct
11903 (rs6000_output_function_epilogue): Pad traceback table to word.
11904 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11905 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11906 mask64_operand with correct mode.
11907 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11909 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11912 * varasm.c (get_pool_constant_mark): New.
11913 * rtl.h (get_pool_constant_mark): Add prototype.
11914 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11915 be represented if it has not been output.
11917 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11919 * combine.c (do_SUBST): Sanity check substitutions of
11920 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11921 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11922 CONST_INT into its operand.
11923 (known_cond): Likewise, for ZERO_EXTEND.
11924 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11925 allow for simplification of wide modes. Reject CONST_INTs in
11926 ZERO_EXTEND when their actual mode is not given.
11928 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11930 * c-decl.c (pushdecl): If no global declaration is found for an
11931 extern declaration in block scope, try a limbo one.
11933 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11936 * c-common.c (pointer_int_sum): Moved from...
11937 * c-typeck.c (pointer_int_sum): ...here.
11938 * c-common.h (pointer_int_sum): Add prototype.
11940 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11943 * c-decl.c (duplicate_decls): Return 0 if issued error about
11946 2002-02-20 Roger Sayle <roger@eyesopen.com>
11947 Jakub Jelinek <jakub@redhat.com>
11950 * tree.c (host_integerp): Ensure that the constant integer is
11951 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11952 when pos is zero or non-zero respectively. Clarify comment.
11953 * c-format.c (check_format_info_recurse): Fix host_integerp
11954 usage; the pos argument should be zero when assigning to a
11955 signed HOST_WIDE_INT.
11957 2002-02-20 Richard Henderson <rth@redhat.com>
11959 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11960 of the operand, rather than assuming TImode.
11961 (ix86_expand_binop_builtin): Cope with commutative patterns
11962 using nonimmediate_operand for both operands.
11963 (ix86_expand_timode_binop_builtin): Likewise.
11964 (ix86_expand_store_builtin): Validate operand 1.
11965 (ix86_expand_unop1_builtin): Likewise.
11967 2002-02-20 Philip Blundell <philb@gnu.org>
11970 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11972 2002-02-20 Richard Henderson <rth@redhat.com>
11975 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11977 2002-02-20 Tom Tromey <tromey@redhat.com>
11979 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11980 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11981 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11982 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11983 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11986 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11988 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11989 for (const_int 0) in X not just INTVAL.
11991 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
11993 * doc/extend.texi: Avoid or reduce overfull hboxes.
11995 2002-02-20 Diego Novillo <dnovillo@redhat.com>
11997 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11998 operations if the field does not start at a mode boundary.
12000 2001-02-20 Joel Sherrill <joel@OARcorp.com>
12002 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
12003 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
12004 Also done for -Acpu and -Amachine.
12006 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
12008 * cppinit.c (init_dependency_output): Take deps output file
12009 from -o if none given with -MF. Suppress normal output.
12010 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
12011 * doc/cpp.texi, doc/invoke.texi: Update.
12013 2002-02-19 Zack Weinberg <zack@codesourcery.com>
12015 * toplev.c (output_quoted_string): Write unprintable
12016 characters with octal escapes.
12018 2002-02-19 David Edelsohn <edelsohn@gnu.org>
12020 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
12021 really_call_used[VRSAVE_REGNO] if not Altivec.
12023 2002-02-19 Alan Modra <amodra@bigpond.net.au>
12025 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
12027 (constant_pool_expr_1): Fix formatting.
12028 (rs6000_legitimize_reload_address): Likewise.
12030 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12032 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
12033 now that we have one.
12035 2002-02-19 Zack Weinberg <zack@codesourcery.com>
12037 * tree.h (struct tree_common): Remove aux. Add unused_0 at
12038 end of first block of bitfields (which was only seven bits);
12039 rename dummy to unused_1; remove comment which is no longer true.
12041 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
12043 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
12045 2002-02-19 Philip Blundell <pb@nexus.co.uk>
12048 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
12052 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
12053 arm_is_longcall_p rather than inspecting call-type cookie
12055 (call_value_insn) [TARGET_THUMB]: Likewise.
12057 2002-02-19 Graham Stott <grahams@redhat.com>
12059 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
12061 2002-02-19 David Edelsohn <edelsohn@gnu.org>
12063 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
12064 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
12065 (FP_SAVE_INLINE): Delete.
12067 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
12068 * config/rs6000/eabi.asm: Remove ABI save restore routines.
12069 * config/rs6000/t-ppccomm: Build crtsavres.o.
12070 * config/rs6000/crtsavres.asm: New file.
12072 2002-02-19 Philip Blundell <philb@gnu.org>
12074 * config/arm/arm.c (use_return_insn): Don't reject interrupt
12076 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
12077 (output_return_instruction): Allow interrupt functions to return with
12078 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
12079 (arm_expand_prologue): Subtract 4 before stacking LR in an
12080 interrupt function.
12082 2002-02-19 Philip Blundell <pb@nexus.co.uk>
12084 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
12085 decl, not just FUNCTION_DECL.
12086 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
12087 (arm_assemble_integer): Likewise.
12088 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
12091 2002-02-19 matthew green <mrg@eterna.com.au>
12093 * config.gcc (sparc-*-netbsdelf*): Enable target.
12094 (sparc64-*-netbsd*): New target.
12095 * config/sparc/netbsd-elf.h: New file.
12096 * config/sparc/t-netbsd64: New file.
12098 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
12100 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
12102 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
12104 * doc/invoke.texi: explicitly list the style guidelines that
12105 -Weffc++ checks for.
12107 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
12109 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
12111 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
12114 * gcc.c (cpp_unique_options): Treat -o as indicating object file
12115 only if not -E. If -E, pass -o through to the preprocessor.
12117 2002-02-19 Kazu Hirata <kazu@hxi.com>
12119 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
12120 register number with an appropriate macro.
12122 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12124 * doc/rtl.texi (Constants): Close @code tag.
12126 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
12128 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
12129 ("mmx_uavgv4hi3"): Same.
12130 ("pmulhrwv4hi3"): Same.
12132 * tree-inline.c (walk_tree): Handle vectors.
12134 * c-common.c (constant_expression_warning): Handle vectors.
12135 (overflow_warning): Same.
12137 * sched-deps.c (sched_analyze_2): Handle vectors.
12139 * rtlanal.c (rtx_unstable_p): Handle vectors.
12140 (rtx_varies_p): Same.
12141 (count_occurrences): Same.
12142 (regs_set_between_p): Same.
12143 (modified_between_p): Same.
12144 (modified_in_p): Same.
12145 (volatile_insn_p): Same.
12146 (volatile_refs_p): Same.
12147 (side_effects_p): Same.
12148 (may_trap_p): Same.
12149 (inequality_comparisons_p): Same.
12150 (replace_regs): Same.
12151 (computed_jump_p_1): Same.
12153 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
12155 (inner_mode_array): New.
12156 (copy_rtx): Handle vectors.
12157 (copy_most_rtx): Same.
12158 (rtx_equal_p): Same.
12159 (get_mode_alignment): Adjust for vectors.
12161 * resource.c (mark_referenced_resources): Handle vectors.
12162 (mark_set_resources): Same.
12164 * reload1.c (eliminate_regs): Handle vectors.
12165 (elimination_effects): Same.
12166 (scan_paradoxical_subregs): Same.
12168 * reload.c (subst_reg_equivs): Handle vectors.
12170 * regrename.c (scan_rtx): Handle vectors.
12172 * regclass.c (reg_scan_mark_refs): Handle vectors.
12174 * recog.c (find_single_use_1): Handle vectors.
12176 * local-alloc.c (equiv_init_varies_p): Handle vectors.
12177 (contains_replace_regs): Same.
12178 (memref_referenced_p): Same.
12180 * integrate.c (copy_rtx_and_substitute): Handle vectors.
12181 (subst_constants): Same.
12183 * genattrtab.c (attr_copy_rtx): Handle vectors.
12184 (encode_units_mask): Same.
12185 (clear_struct_flag): Same.
12186 (count_sub_rtxs): Same.
12188 * gcse.c (want_to_gcse_p): Handle vectors.
12189 (oprs_unchanged_p): Same.
12190 (hash_expr_1): Same.
12191 (oprs_not_set_p): Same.
12192 (expr_killed_p): Same.
12193 (compute_transp): Same.
12194 (store_ops_ok): Same.
12196 * function.c (purge_addressof_1): Do not allow paradoxical subregs
12198 (fixup_var_refs_1): Same.
12199 (instantiate_virtual_regs_1): Same.
12201 * fold-const.c (operand_equal_p): Handle vectors.
12203 (rtl_expr_nonnegative_p): Same.
12205 * flow.c (mark_used_regs): Handle vectors.
12207 * df.c (df_uses_record): Handle vectors.
12209 * cselib.c (cselib_subst_to_values): Handle vectors.
12210 (cselib_mem_conflict_p): Same.
12213 * cse.c (canon_reg): Handle vectors.
12215 (cse_process_notes): Same.
12216 (count_reg_usage): Same.
12217 (canon_hash): Same.
12219 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12221 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12223 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12224 (gen_rtx): Handle CONST_VECTOR.
12225 (gen_const_vector_0): New.
12226 (copy_rtx_if_shared): CONST_VECTORs can be shared.
12227 (reset_used_flags): Same.
12228 (copy_insn_1): Same.
12229 (initializer_constant_valid_p): Handle VECTOR_CST.
12231 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12233 * doc/rtl.texi (Constants): Document const_vector.
12234 (CONST0_RTX): Update for vectors.
12235 (RTL sharing): Same.
12237 * print-tree.c (print_node): Add case for VECTOR_CST.
12239 * tree.h (TREE_VECTOR_CST_ELTS): New.
12240 (struct tree_vector): New.
12241 (union tree_node): Add vector node.
12242 (build_vector): Add prototype.
12244 * tree.def (VECTOR_CST): New.
12246 * tree.c (build_vector): New.
12248 * expmed.c (make_tree): Handle CONST_VECTOR.
12250 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12251 (CONST_VECTOR_ELT): New.
12252 (CONST_VECTOR_NUNITS): New.
12254 * machmode.h (GET_MODE_INNER): New.
12255 (DEF_MACHMODE): Accept 8th arg.
12257 * machmode.def: Add 8th argument for vector inner mode.
12258 Add inner vector modes for vectors.
12260 * rtl.def (VEC_CONST): Remove.
12261 (CONST_VECTOR): New.
12263 * expr.c (clear_storage): Allow vectors.
12264 (is_zeros_p): Handle VECTOR_CST.
12266 * varasm.c (output_constant_pool): Handle vectors.
12267 (rtx_const): Add veclo and vechi fields.
12268 (kind): Add RTX_VECTOR.
12269 (decode_rtx_const): Add case for vector.
12271 * config/rs6000/rs6000-protos.h: Add zero_constant.
12273 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12274 constants. Force easy vector constants into memory.
12275 (easy_vector_constant): New.
12276 (emit_easy_vector_constant): New.
12277 (rs6000_legitimize_reload_address): Do not generate bad reloads on
12280 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12282 ("altivec_lvxl"): Same.
12283 (altivec_lvebx): Same.
12284 (altivec_lvehx): Same.
12285 (altivec_lvewx): Same.
12286 ("*movv4si_const0"): New.
12287 ("*movv4sf_const0"): New.
12288 ("*movv8hi_const0"): New.
12289 ("*movv16qi_const0"): New.
12291 2002-02-18 Kazu Hirata <kazu@hxi.com>
12293 * config/h8300/h8300.c (notice_update_cc): Use
12296 2002-02-18 Kazu Hirata <kazu@hxi.com>
12298 * config/h8300/h8300.md (divmod patterns): Change the
12299 constraints for operands[1] to register_operand.
12301 2002-02-18 Kazu Hirata <kazu@hxi.com>
12303 * config/h8300/h8300-protos.h: Remove the prototype for
12305 * config/h8300/h8300.c (p_operand): Remove.
12306 * config/h8300/h8300.md: Replace p_operand with
12309 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12311 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12313 (output_return_instruction): Allow use of LDR to unstack
12314 return addresss even for interrupt handlers or when
12315 interworking. If compiling for ARMv5, use interworking-safe
12316 return instructions by default. Remove duplicated code and
12317 lengthy "strcat" sequences.
12319 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12321 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12322 (LINK_EH_SPEC): Define.
12323 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12325 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
12327 * config/s390/s390.c (s390_emit_prologue): Do not set the
12328 frame_related flag for call-clobbered registers.
12330 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
12332 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12333 (construct_container): Fix handling of SSE operands.
12334 (ix86_expand_builtin): Fix handling of 64bit pointers.
12335 (mmx_maskmovq_rex): New pattern.
12337 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
12339 * regrename.c (kill_set_value): Handle subregs properly.
12341 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
12343 * objc/objc-act.c (handle_impent): Remove leading '*'
12344 from objc_class_name.
12346 2002-02-17 Richard Henderson <rth@redhat.com>
12348 * config/alpha/alpha.c (some_small_symbolic_operand,
12349 some_small_symbolic_operand_1, split_small_symbolic_operand,
12350 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12351 Handle small SYMBOL_REFs anywhere, not just inside memories.
12352 * config/alpha/alpha-protos.h: Update.
12353 * config/alpha/alpha.h (PREDICATE_CODES): Update.
12354 * config/alpha/alpha.md (small symbolic operand splitter): Update.
12356 2002-02-17 Roland McGrath <roland@frob.com>
12358 * config.gcc (powerpc-*-gnu-gnualtivec*,
12359 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12360 * config/rs6000/gnu.h: New file.
12361 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12362 Grok "gnu" in rs6000_abi_name.
12363 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12364 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12365 Grok -mcall-gnu analogous to -mcall-linux et al.
12366 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12367 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12368 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12370 2002-02-17 Jakub Jelinek <jakub@redhat.com>
12373 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12376 2002-02-17 Philipp Thomas <pthomas@suse.de>
12378 * config/cris/cris.h: Undefine STARTFILE_SPEC and
12379 ENDFILE_SPEC before (re)defining them.
12381 2002-02-17 Kazu Hirata <kazu@hxi.com>
12383 * config/h8300/h8300.c: Fix formatting.
12384 * config/h8300/h8300.h: Likewise.
12386 2002-02-17 Philipp Thomas <pthomas@suse.de>
12388 * doc/tm.texi: Explain why empty strings should not be
12389 marked for translation.
12391 2002-02-17 Philipp Thomas <pthomas@suse.de>
12393 * final.c (output_operand_lossage): Changed to accept
12394 printf style arguments. Change calls where necessary.
12395 * output.h (output_operand_lossage): Change declaration
12396 accordingly. Update copyright.
12397 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12398 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12399 Update copyright date where necessary.
12401 * config/i386/i386.c (print_operand): Likewise. Remove use of
12404 * config/cris/cris.c (cris_operand_lossage): Likewise.
12405 Rename parameter so that exgettext recognizes it as
12406 translatable message.
12407 (LOSE_AND_RETURN): Rename parameter to msgid.
12409 2002-02-17 Kazu Hirata <kazu@hxi.com>
12411 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12412 hard coded register number with an appropriate macro.
12413 (HARD_REGNO_MODE_OK): Likewise.
12414 (ARG_POINTER_REGNUM): Likewise.
12415 (STATIC_CHAIN_REGNUM): Likewise.
12416 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12417 * config/h8300/h8300.md (define_constants): Define more
12420 2002-02-17 Philipp Thomas <pthomas@suse.de>
12422 * config/i386/i386.h: Don't mark empty strings for translation.
12424 2002-02-16 H.J. Lu <hjl@gnu.org>
12426 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12428 2002-02-16 Zack Weinberg <zack@codesourcery.com>
12430 * cppinit.c (merge_include_chains): Check for brack being
12431 NULL before attempting to merge it with qtail.
12433 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12435 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12438 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12440 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12442 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12444 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12445 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12446 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12448 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12450 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12451 now only if !TARGET_FIX.
12452 (*movsi_nt_vms_fix): New pattern.
12454 2002-02-16 Douglas B Rupp <rupp@gnat.com>
12456 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12457 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12458 (alpha_sa_mask, alpha_sa_size): Reflect above change.
12459 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12460 (alpha_start_function, alpha_expand_epilogue): Likewise.
12461 (unicosmk_gen_dsib): Likewise.
12463 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12465 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12467 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
12469 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12470 check_and_change_labels, s390_final_chunkify): Delete.
12471 (s390_split_branches, s390_chunkify_pool): New functions.
12472 (s390_function_prologue): Call them.
12474 * config/s390/s390.h (S390_REL_MAX): Delete.
12475 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12477 * config/s390/s390.md (cjump, icjump, jump): Fix length
12478 attribute calculation.
12481 2002-02-15 David Edelsohn <edelsohn@gnu.org>
12483 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12484 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12486 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12488 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12489 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12490 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12492 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12494 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12496 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12498 * reload.c (find_dummy_reload): Check that an output register
12499 is valid for its mode.
12501 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
12503 * combine.c (known_cond): After replacing the REG of a SUBREG, try
12506 * function.c (assign_parms): Demote promoted argument passed by
12507 transparent reference.
12509 2001-02-14 Joel Sherrill <joel@OARcorp.com>
12511 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12512 -Acpu() and -Amachine() to eliminate warnings.
12514 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
12516 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12518 2002-02-14 Kazu Hirata <kazu@hxi.com>
12520 * config/h8300/h8300-protos.h: Update the prototype for
12522 * config/h8300/h8300.c (const_costs): Treat SET as a little
12523 more expensive operation.
12524 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12525 reference to const_costs.
12527 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
12529 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12531 2002-02-14 Jakub Jelinek <jakub@redhat.com>
12534 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12535 use arguments from newtype.
12537 2002-02-13 Eric Christopher <echristo@redhat.com>
12539 * config/mips/mips.c (override_options): Add check for march/mipsX
12540 on the same command line. Fix error message in cpu processing.
12541 Remove architecture and ISA checks.
12543 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12545 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12547 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12549 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12551 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12553 ("*movv8hi_internal1"): Same.
12554 ("*movv16qi_internal1"): Same.
12555 ("*movv4sf_internal1"): Same.
12557 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12558 not push_reload for altivec modes.
12560 2002-02-13 Joel Sherrill <joel@OARcorp.com>
12562 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12563 all RTEMS targets including removal of #includes from config/*/rtems*.h
12564 file and adding them to tm_file setting. Added xm_defines=POSIX to
12566 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12567 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12568 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12569 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12570 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12571 config/m68k/rtemself.h: Ditto.
12572 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12573 config/mips/rtems64.h: Ditto.
12574 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12575 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12577 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12578 config/sparc/rtemself.h: Ditto.
12579 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12580 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12581 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12583 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12584 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12585 target made more similar to i386-elf.
12586 * config/i386/t-rtems-i386: Added soft float support and multilibs.
12587 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12588 be similar to config/m68k/t-m68kelf.
12589 * gthr-rtems.h: Encapsulate with extern "C" for C++.
12591 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
12593 * regmove.c (kill_value): Handle subregs.
12595 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
12597 * i386.md (mul patterns): Allow memory operand to be first;
12598 add expanders where needed; fix constraints.
12599 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12600 Allow memory operand to be the first.
12602 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12605 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12608 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12611 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12613 PR optimization/5547:
12614 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12615 all valid IA-32 address modes involving non-scaled %ebx and
12616 GOT/GOTOFF as displacement.
12618 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
12620 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12621 after emitting ltorg insns.
12623 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12624 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12625 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12626 *abssf2): Fix "op_type" attribute.
12628 2002-02-13 Douglas B Rupp <rupp@gnat.com>
12630 * mkconfig.sh: Avoid using a subshell redirect.
12631 ($output.T): Change to $(output)T.
12632 (ENABLE_NLS): Remove unneeded undef.
12634 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12635 * config/alpha/x-vms (libsubdir): Define.
12637 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12638 register frame procedures. Optimize retrieving context.
12640 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12641 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12642 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12644 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12646 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12647 Make same change as for find_base_value.
12649 2002-02-13 Kazu Hirata <kazu@hxi.com>
12651 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12652 of QImode and SImode.
12654 2002-02-13 Kazu Hirata <kazu@hxi.com>
12656 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12657 length computation of movsi.
12658 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12660 2002-02-13 Kazu Hirata <kazu@hxi.com>
12662 * config/h8300/h8300.md (subqi3): Tighten the predicate for
12663 operands[2] to register_operand.
12665 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
12667 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12669 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
12671 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12672 for altivec_lvx* and altivec_stvx*.
12673 ("*movv4si_internal"): Add constraint for loading from GPRs.
12674 ("*movv8hi_internal1"): Same.
12675 ("*movv16qi_internal1"): Same.
12676 ("*movv4sf_internal1"): Same.
12678 * config/rs6000/rs6000.c (altivec_register_operand): New.
12680 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12681 altivec_register_operand.
12683 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
12685 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12688 2002-02-13 Stan Shebs <shebs@apple.com>
12690 * c-typeck.c (digest_init): Handle vectors.
12691 (really_start_incremental_init): Same.
12692 (pop_init_level): Same.
12693 (process_init_element): Same.
12695 * varasm.c (output_constant): Same.
12697 * expr.c (clear_storage): Same.
12698 (store_constructor): Same.
12700 2002-02-12 Eric Christopher <echristo@redhat.com>
12702 * explow.c (hard_function_value): Add comment explaining
12703 signed/unsigned comparison.
12705 2002-02-12 Jakub Jelinek <jakub@redhat.com>
12707 * jump.c (never_reached_warning): Add finish argument.
12708 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12709 real insn after end.
12710 * rtl.h (never_reached_warning): Adjust prototype.
12711 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12712 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12713 never_reached_warning.
12715 2002-02-12 Graham Stott <grahams@redhat.com>
12717 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12719 2002-02-12 Kazu Hirata <kazu@hxi.com>
12721 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12722 logical shifts on H8/300.
12723 (shift_alg_si): Improve several shifts on H8/300.
12724 (get_shift_alg): Likewise.
12726 2002-02-12 Graham Stott <grahams@redhat.com>
12728 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12730 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12732 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12733 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12735 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
12737 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12738 non-CONST_INT through default_assemble_integer.
12739 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12740 <case 8>: Abort for CONST_DOUBLE.
12742 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12744 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12746 * config/pa/pa-linux.h (LIB_SPEC): Delete.
12747 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12749 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
12751 * config/stormy16/stormy16.md (zero_extendqihi2): New.
12753 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
12755 * regrename.c (regrename_optimize): Don't accept a
12756 part-clobbered register if the replaced register is not part
12759 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12760 take padding into account when computing the argument value.
12762 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12764 * combine.c (try_combine): Apply substitutions in
12765 CALL_INSN_FUNCTION_USAGE too.
12767 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
12769 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12770 __builtin_altivec_abs*.
12773 * config/rs6000/rs6000.h (rs6000_builtins): Add
12774 ALTIVEC_BUILTIN_ABS*.
12776 * config/rs6000/altivec.h: Use const char for builtins expecting
12778 (vec_abs): New versions for C and C++.
12781 2002-02-10 Kazu Hirata <kazu@hxi.com>
12783 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12786 2002-02-10 Kazu Hirata <kazu@hxi.com>
12788 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12789 constant definition from h8300.md.
12790 (FRAME_POINTER_REGNUM): Likewise.
12791 * config/h8300/h8300.md (define_constants): Add FP_REG.
12793 2002-02-10 Kazu Hirata <kazu@hxi.com>
12795 * config/h8300/h8300.c (print_operand): Remove redundant code.
12797 2002-02-10 Kazu Hirata <kazu@hxi.com>
12799 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12800 * config/h8300/h8300.c (byte_reg): Make it static.
12802 2002-02-10 Richard Henderson <rth@redhat.com>
12805 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12807 2002-02-10 Richard Henderson <rth@redhat.com>
12810 * tree.c (append_random_chars): Don't abort if main_input_filename
12813 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12815 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12817 2002-02-10 Kazu Hirata <kazu@hxi.com>
12819 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12820 (pushhi1): Likewise.
12822 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12824 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12825 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12827 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12829 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12831 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12833 2002-02-09 Kazu Hirata <kazu@hxi.com>
12835 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12836 a half of an SImode register on H8/300.
12838 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12840 * i386.md (movdi_2): Add missing '!'.
12842 2002-02-09 Kazu Hirata <kazu@hxi.com>
12844 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12847 2002-02-09 Kazu Hirata <kazu@hxi.com>
12849 * config/h8300/h8300.md (length): Correct the distance valid
12850 for the short branch.
12852 2002-02-09 Kazu Hirata <kazu@hxi.com>
12854 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12856 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12858 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12859 registers in SImode.
12860 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12863 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12866 Contribute sh64-elf.
12867 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12868 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12869 (sh_cannot_modify_jumps_p): New function.
12870 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12871 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12872 (sh_ms_bitfield_layout_p): New function.
12873 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
12874 Zack Weinberg <zack@codesourcery.com>
12875 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12876 expand_simple_binop instead of expand_binop.
12877 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
12878 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12879 use of .quad and .uaquad.
12880 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12881 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12882 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12883 * config/sh/sh.md (movdi_const, movdi_const_32bit,
12884 movdi_const_16bit): Make sure all CONSTs have modes.
12885 (sym2PIC): Ditto, but by adjusting all callers.
12886 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12887 if the prologue calls the SHmedia argument decoder or register
12889 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12890 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12891 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12892 (sh_expand_epilogue): Don't emit USE of return target register.
12893 (prepare_move_operands): Legitimize DImode PIC addresses.
12894 (sh_media_register_for_return): Skip tr0, used to initialize the
12896 (sh_expand_prologue): Remove explicit USE of return register.
12897 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12898 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12899 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12900 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12901 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12902 EXTRA_CONSTRAINT_T.
12903 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12904 (MOVI_SHORI_BASE_OPERAND_P): New.
12905 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12906 (EXTRA_CONSTRAINT_T): Define in terms of them.
12907 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12908 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12909 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12910 alternatives supporting TARGET_REGS.
12911 (UNSPEC_GOTPLT): New constant.
12912 (movdi split): Move incrementing of LABEL_NUSES...
12913 (movdi_const, movdi_const_32bit): Here. Use
12914 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12915 (movdi_const_16bit): New.
12916 (call, call_value) [flag_pic]: Use GOTPLT.
12917 (call_pop, call_value_pop): New expands.
12918 (call_pop_compact, call_pop_rettramp): New insns.
12919 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12920 (sibcall) [flag_pic]: Use GOT.
12921 (builtint_setjmp_receiver): Remove bogus, unused expand.
12922 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12923 (*pt, *ptb, ptrel): New insns.
12924 (sym2GOT): Handle DImode GOT.
12925 (sym2GOTPLT, symGOTPLT2reg): New expands.
12926 (sym2PIC): New expand.
12927 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12928 (shcompact_return_tramp_i): Use return register explicitly.
12929 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12930 disable flag_reorder_blocks.
12931 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12932 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12933 clobbers, for clarity.
12934 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12935 restoring of r0 in macl as MAYBE_DEAD.
12936 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12937 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12938 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12939 alter_subreg all over.
12940 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12941 reload, instead of emitting instructions that would require
12943 (casesi_load_media): Add missing modes.
12944 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12945 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12946 as used if the argument decoder is called.
12947 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12948 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12949 Pmode, then extend it to DImode if necessary.
12950 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12951 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12952 constants in FPU-enabled SHmedia, let them be loaded from memory.
12953 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12954 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12955 Adjust whitespace in assembly output templates.
12956 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12957 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12958 mode of if_then_else.
12959 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
12960 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12962 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
12963 Joern Rennecke <amylaar@redhat.com>
12964 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12965 (SUBTARGET_CPP_PTR_SPEC): New.
12966 (SUBTARGET_CPP_SPEC): Remove.
12967 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12968 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12969 Fix typo in previous checkin.
12970 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
12971 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12972 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
12973 Alexandre Oliva <aoliva@redhat.com>
12974 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12975 what single FP register can hold for SHmedia target.
12976 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12977 Alexandre Oliva <aoliva@redhat.com>
12978 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12979 Do not split into SUBREG.
12980 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
12981 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12982 and added new functions as specified in SH5 ABI r9.
12983 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
12984 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12986 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
12987 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12988 gen_consttable_4 and gen_consttable_8. Emit multiple labels
12989 and consttable_window_ends.
12990 2001-06-03 Graham Stott <grahams@redhat,com>
12991 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12992 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
12993 * config/sh/sh.c (print_operand): Handle floating-point pair,
12994 vector and matrix registers.
12995 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12996 vector modes into account.
12997 * config/sh/sh.md (movv2sf): Split move between registers into
12999 (movv4sf, movv16sf): Introduce insns that get split only after
13001 * config/sh/shmedia.h: Fix Copyright dates.
13002 * config/sh/ushmedia.h: Likewise. Move loop counter
13003 declarations into conditionals that uses them.
13004 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
13006 * config/sh/sshmedia.h: Fix Copyright dates.
13007 (sh_media_PUTCFG): Fix constraints.
13008 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
13009 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
13010 ptrmemfunc_vbit_in_delta for SH5.
13011 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
13012 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
13013 * invoke.texi: Likewise.
13014 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
13015 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
13016 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
13017 GCC_pop_shmedia_regs_nofpu): New global symbols.
13018 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
13019 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
13020 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
13021 compact function with nonlocal labels.
13022 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
13023 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
13024 (initial_elimination_offset): Account for their stack space.
13025 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
13026 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
13027 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
13028 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
13029 least one of the operands to be a register.
13030 (movv2sf): Likewise. Renamed to movv2sf_i.
13031 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
13032 prepare_move_operands() before emitting SHmedia insns.
13033 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
13034 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
13035 Don't save nor initialize r12. Don't mis-align the stack.
13036 Pad the code with a nop.
13037 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
13039 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
13040 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
13041 [__SHMEDIA__]: Implement.
13042 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
13043 * config/sh/sh.md: Set latency of `pt' closer to reality.
13044 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
13045 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
13046 Set move, load and store type attributes.
13047 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
13048 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
13050 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
13051 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
13052 * config/sh/sh.c (sh_media_register_for_return): New function.
13053 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
13054 branch-target register.
13055 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
13056 * config/sh/sh.md (return_media_i): Use any call-clobbered
13057 branch-target register.
13058 (return_media): If r18 wasn't copied in the prologue, copy it
13060 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
13061 Clear class FP0_REGS.
13062 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
13064 2001-03-08 DJ Delorie <dj@redhat.com>
13065 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
13066 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
13067 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
13068 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
13069 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
13070 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
13071 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
13072 return value correctly for call_cookie.
13073 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
13074 * config/sh/crt1.asm (start): Modified so as to call
13075 ___setup_argv_and_call_main.
13076 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
13077 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
13079 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
13080 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
13081 (STRIP_NAME_ENCODING): Use it.
13082 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
13083 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
13084 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
13085 prepare_scc_operands().
13086 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
13087 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
13088 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
13089 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
13090 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
13091 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
13092 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
13093 used in shcompact_incoming_args.
13094 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
13096 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
13098 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
13099 Adjust accordingly.
13100 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
13101 Simplify. Adjust. Add sanity check.
13102 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
13104 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
13106 (udivsi3, divsi3): Use them.
13107 (force_mode_for_call): New insn.
13108 (call, call_value, sibcall_value): Emit it before SHcompact
13110 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
13111 * config/sh/sh.md (call, call_value, sibcall): Make sure the
13112 call cookie is non-NULL before taking its value.
13113 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
13114 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
13115 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
13116 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
13118 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
13119 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
13120 temporary for stack adjusts. Use MACL and MACH to pass
13121 arguments to shcompact_incoming_args.
13122 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
13124 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
13125 (nested_trampoline): Load static chain address into r1.
13126 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
13127 2001-01-07 Alexandre Oliva <aoliva@redhat.com
13128 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
13129 fp_arith_reg_operand().
13130 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
13131 * config/sh/sh.md (casesi): Sign-extend the first two operands,
13132 and use signed compares for them.
13133 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
13134 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
13135 ones properly aligned.
13136 (find_barrier): Account for extra alignment needed for 8-byte wide
13138 (machine_dependent_reorg): Require a label for the second 4-byte
13139 constant after an 8-byte one.
13140 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
13142 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
13143 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
13144 last_float when switching float modes.
13145 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
13146 auto-increment for general-purpose registers.
13147 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
13149 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
13151 * config/sh/sh.c (sh_builtin_saveregs): Support using all
13152 registers for varargs.
13153 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
13154 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
13155 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
13156 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
13157 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
13158 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
13159 call_cookie accordingly.
13160 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
13161 (SHCOMPACT_BYREF): Likewise.
13162 (SHCOMPACT_FORCE_ON_STACK): New macro.
13163 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
13164 (sh_builtin_saveregs): Likewise.
13165 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13166 shcompact_incoming_args): Use new shift values. Support
13167 sequences of consecutive and non-consecutive pushes/pops.
13168 * config/sh/sh.md (return): Don't explicitly use PR_REG.
13169 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
13170 * config/sh/sh.h (TEXT_SECTION): Define.
13171 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13172 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
13173 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13174 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13175 return values on FPU-enabled SHmedia.
13176 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13177 FPU-enabled SHmedia.
13178 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13179 value is returned in a non-FP reg and is not returned by
13181 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13183 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
13184 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13185 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13186 quad-aligned to be passed by callee-copy reference.
13187 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
13188 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13189 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13190 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
13191 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13192 copying low-numbered FP regs to r7 and r8.
13193 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13194 FP regs to general-purpose regs only if the copy was passed on the
13196 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13197 copying FP reg to r9.
13198 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13199 copy FP regs to general-purpose regs only in outgoing calls.
13200 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13201 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
13203 * config/sh/sh.h (struct sh_args): Document all fields.
13204 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13205 passed partially on the stack should not consider making
13207 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13208 stack_regs only for incoming calls. When passing FP args,
13209 make sure there are FP regs available before modifying
13211 (SHCOMPACT_BYREF): Pass double args in general-purpose
13212 registers by reference.
13213 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
13214 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13215 attempt to generate sibcalls if the caller got any arguments
13217 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13218 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13219 to 8-byte boundaries.
13220 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13221 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13222 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13223 stored in the stack.
13224 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13225 for the offsets to have the ISA bit set.
13226 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
13227 invocation. Use beq instead of bgt to mark end of sequence of
13229 (shcompact_incoming_args): Fix store of r2. Use beq instead of
13230 bgt to mark end of sequence of stores.
13231 * config/sh/sh.c (arith_operand): Don't check whether
13232 CONST_OK_FOR_J for now.
13233 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13234 instead of long for conversion.
13235 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
13236 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13237 before passing it to fprintf.
13238 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
13239 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13240 Call set_fpscr before reading/writing SR.
13241 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13243 * config/sh/lib1funcs.asm: Add `.align 2' directives before
13245 (FMOVD_WORKS): Define on SH5 with FPU.
13246 (set_fpscr): Define on SH5. Remove separate _fpscr_values
13248 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13250 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
13251 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13253 (ia_main_table): Ditto.
13254 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
13255 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13256 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13257 the definitions from sh.h.
13258 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13260 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13261 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13262 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13263 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
13264 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13265 Increment LABEL_NUSES.
13267 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13269 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13271 * config/sh/elf.h (SIZE_TYPE): Likewise.
13272 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13273 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13274 shcompact_incoming_args): Load switch table addresses using
13276 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13277 (NO_BUILTIN_SIZE_TYPE): Define.
13278 (SIZE_TYPE): Don't define.
13279 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13280 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13281 definition of __SH5__=32 for -m5-compact-nofpu.
13282 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13284 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
13285 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13286 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
13287 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13288 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13289 (INSN_LENGTH_ALIGNMENT): Likewise.
13290 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13291 * config/sh/sh.md (call, call_value, sibcall): Simplify
13292 copying of non-branch-target register.
13293 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13294 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
13295 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13296 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13297 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13298 floating-point values as structs.
13299 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13300 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13301 general-purpose register.
13302 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13303 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
13304 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13305 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13306 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13307 (ENCODE_SECTION_INFO): Enclose variables and constants in
13309 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13310 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13311 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13312 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13313 only for LABEL_REFs. For SYMBOL_REFs, prepend
13314 SH_DATALABEL_ENCODING to the symbol name.
13315 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13317 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
13318 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13320 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13321 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13322 (DATALABEL_REF_P): Don't require CONST.
13323 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13325 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
13326 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13328 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
13329 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13330 Use shallow_copy_rtx and PUT_MODE to change the mode of
13331 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13332 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13333 on SHmedia using GENERAL_REGs.
13334 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13335 bltu_media_i): Fix reversion of conditions.
13336 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
13337 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13338 * config/sh/sh.c (output_far_jump): Save r13 in macl.
13339 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
13340 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13341 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
13342 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13343 (GCC_nested_trampoline): Likewise.
13344 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13345 * config/sh/sh.c (gen_datalabel_ref): Define.
13346 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13347 (INITIALIZE_TRAMPOLINE): Likewise.
13348 (TRAMPOLINE_ADJUST_ADDRESS): Define.
13349 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13350 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13351 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13352 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13353 (ic_invalidate): Adjust for SH5.
13354 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13355 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13356 _nested_trampoline.
13357 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
13358 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13359 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13360 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
13361 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13362 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13363 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
13364 * config/sh/sh.c (target_reg_operand): Match only target-branch
13365 registers and pseudos that aren't virtual registers.
13366 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13367 Copy operands that don't match target_reg_operand to pseudos.
13368 (call_media, call_value_media, sibcall_media): Use
13369 target_reg_operand instead of target_operand.
13370 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
13371 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13372 * config/sh/sh.c (target_reg_operand): Match hardware registers
13373 other than branch-target registers.
13374 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13375 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13376 (fpscr_values) [SH5 == 32]: Define.
13377 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13378 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13379 Handle function addresses coming in SUBREGs.
13380 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
13381 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13382 shcompact_return_trampoline): Use datalabel where appropriate.
13383 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
13384 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13385 general-purpose register to copy one branch-target register to
13387 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13388 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13389 SYMBOL_REFs with VOIDmode.
13390 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13391 bltu_media_i): New insns.
13392 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13393 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13394 (INIT_CUMULATIVE_ARGS): Likewise.
13395 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
13396 * machmode.def (V16SFmode): New mode.
13397 * c-common.c (type_for_mode): Support V2SF and V16SF.
13398 * tree.c (build_common_tree_nodes_2): Likewise.
13399 * tree.h (tree_index): Likewise.
13400 * calls.c (emit_call_1): Take args_so_far. Adjust all
13401 callers. Introduce CALL_POPS_ARGS.
13402 * tm.texi (CALL_POPS_ARGS): Document.
13403 * config/sh/crt1.asm: Implement in SHmedia mode.
13404 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13405 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13406 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13407 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13408 Implement divsi and udivsi in SHmedia mode. Introduce
13409 SHcompact trampolines.
13410 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13412 (regno_reg_class): Rewrite.
13413 (fp_reg_names): Remove.
13414 (sh_register_names, sh_additional_register_names): New.
13415 (print_operand): Added `u'. Support SUBREGs in addresses.
13416 Add parentheses around shifted CONSTs.
13417 (output_file_start): Output .mode and .abi directives.
13418 (shiftcosts, addsubcosts, multcosts): Adjust.
13419 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
13420 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
13421 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
13422 bytes, not registers. Take into account the need for the
13423 SHcompact incoming args trampoline. Adjust all callers.
13424 (sh_expand_prologue): Take stack_regs into account. Call
13425 incoming args trampoline. Keep stack aligned as per SH5 ABI.
13426 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
13427 stack aligned as per SH5 ABI.
13428 (sh_builtin_saveregs): Support SH5 ABI.
13429 (sh_build_va_list, sh_va_start): Likewise.
13430 (initial_elimination_offset): Take alignment into account.
13431 Compute location of PR according to the SH5 stack frame.
13432 (arith_reg_operand): Reject branch-target registers.
13433 (shmedia_6bit_operand): New.
13434 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13435 (target_reg_operand): Match DImode only. Accept SUBREGs.
13436 (target_operand): New.
13437 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13438 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
13439 SIBCALL_REGS for SHmedia.
13440 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13441 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13442 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13443 (TARGET_SWITCHES): New SH5 flags.
13444 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
13445 VALID_REGISTER_P to disable unsupported registers.
13446 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13447 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13448 (FUNCTION_ARG_PADDING): Define.
13449 (FASTEST_ALIGNMENT): Adjust.
13450 (SH_REGISTER_NAMES_INITIALIZER): New.
13451 (sh_register_names): Declare.
13452 (DEBUG_REGISTER_NAMES): Define.
13453 (REGISTER_NAMES): Define based on sh_register_names.
13454 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13455 (sh_additional_register_names): Declare.
13456 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13457 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13458 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13459 (REGISTER_NATURAL_MODE): Define.
13460 (FIRST_PSEUDO_REGISTER): Adjust.
13461 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13462 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13463 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13464 (VECTOR_MODE_SUPPORTED_P): Define.
13465 (REG_CLASS_CONTENTS): Adjust.
13466 (SMALL_REGISTER_CLASSES): Adjust.
13467 (REG_ALLOC_ORDER): Adjust.
13468 (INDEX_REG_CLASS): Adjust.
13469 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13470 (CONST_OK_FOR_LETTER_P): Adjust.
13471 (PREFERRED_RELOAD_CLASS): Adjust.
13472 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13473 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13474 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13475 (FIRST_FP_PARM_REG): Adjust.
13476 (CALL_POPS_ARGS): Define.
13477 (FUNCTION_ARG_REGNO_P): Adjust.
13478 (struct sh_args): New fields.
13479 (GET_SH_ARG_CLASS): Adjust.
13480 (INIT_CUMULATIVE_ARGS): Adjust.
13481 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13482 (FUNCTION_ARG_ADVANCE): Adjust.
13483 (FUNCTION_ARG): Adjust.
13484 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13485 (FUNCTION_ARG_CALLEE_COPIES): Define.
13486 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13487 (STRICT_ARGUMENT_NAMING): Define.
13488 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13489 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13490 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13491 (SETUP_INCOMING_VARARGS): Adjust.
13492 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13493 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13494 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13495 (SUBREG_OK_FOR_INDEX_P): Adjust.
13496 (EXTRA_CONSTRAINT_S): Update.
13497 (EXTRA_CONSTRAINT_T): New.
13498 (EXTRA_CONSTRAINT): Adjust.
13499 (GO_IF_LEGITIMATE_INDEX): Adjust.
13500 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13501 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13502 (MOVE_MAX): Adjust.
13503 (MAX_MOVE_MAX): Define.
13505 (CONST_COSTS): Adjust.
13506 (REGISTER_MOVE_COST): Adjust.
13507 (BRANCH_COST): Adjust.
13508 (TEXT_SECTION_ASM_OP): Adjust.
13509 (DBX_REGISTER_NUMBER): Adjust.
13510 (ASM_OUTPUT_DOUBLE_INT): New.
13511 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13512 (PREDICATE_CODES): Adjust.
13513 (PROMOTE_MODE): Adjust.
13514 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13515 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13516 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13517 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13518 (DR0_REG, DR2_REG, DR4_REG): Renumber.
13519 (TR0_REG, TR1_REG, TR2_REG): New.
13520 (XD0_REG): Renumber.
13521 (UNSPEC_COMPACT_ARGS): New.
13522 (type): Added pt and ptabs.
13523 (length): Default to 4 on SHmedia. Default pt length to 12
13524 and 20 on SHmedia32 and SHmedia64, respectively.
13525 (pt): New function unit.
13526 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
13527 Add whitespace between operands of SHmedia instructions.
13529 (adddi3_media, addsi3_media): Adjust constraints.
13530 (subsi3) [SHmedia]: Force operand 1 into a register.
13531 (udivsi3_i1_media, udivsi3_i4_media): New.
13532 (udivsi3): Support SHmedia.
13533 (divsi3_i1_media, divsi3_i4_media): New.
13534 (divsi3): Support SHmedia.
13535 (anddi3, iordi3, xordi3): Adjust constraints.
13536 (zero_extendhidi2, zero_extendqidi2): New.
13537 (extendsidi2, extendhidi2, extendqidi2): New.
13538 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13539 (pop_e, pop_fpul, pop_4): Likewise.
13540 (movsi_media): Support FP and BT registers.
13541 (movsi_media_nofpu): New. Adjust splits to DImode.
13542 (lduw, ldub): Renamed to zero_extend* above.
13543 (movqi_media): Fix typo.
13544 (movdi_media): Support FP and BT registers.
13545 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
13546 (movdi_const_32bit): New.
13547 (shori_media): Require immediate operand. Use `u' for output.
13548 (movdf_media, movsf_media): Simplified.
13549 (movdf_media_nofpu, movsf_media_nofpu): New.
13550 (movdf, movsf): Adjust
13551 (movv2sf, movv2sf, movv16sf): New.
13552 (beq_media, beq_media_i): Adjust constraints. Don't use
13553 scratch BT register.
13554 (bne_media, bne_media_i): Likewise.
13555 (bgt_media, bgt_media_i): Likewise.
13556 (bge_media, bge_media_i): Likewise.
13557 (bgtu_media, bgtu_media_i): Likewise.
13558 (bgeu_media, bgeu_media_i): Likewise.
13559 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13560 bunordered): Emit jump insn. Force operands to registers when
13562 (jump_media, jump): Simplify.
13563 (call_compact, call_compact_rettramp): New.
13564 (call_value_compact, call_value_compact_rettramp): New.
13565 (call_media, call_value_media): Simplify.
13566 (sibcall_compact, sibcall_media): New.
13567 (call, call_value): Adjust for SHmedia and SHcompact.
13568 (sibcall, sibcall_value, untyped_call): Likewise.
13569 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13570 (indirect_jump): Adjust for SHmedia.
13571 (casesi_jump_media): New.
13572 (nop): Re-enable for SHmedia.
13573 (call_site): Restrict to SH1.
13574 (casesi): Adjust for SHmedia.
13575 (casesi_shift_media, casesi_load_media): New.
13576 (return): Explicitly use PR register. Call return trampoline
13578 (return_i): Explicitly use PR register.
13579 (shcompact_return_tramp, shcompact_return_tramp_i): New.
13580 (return_media): Adjust.
13581 (shcompact_incoming_args): New.
13582 (epilogue): Adjust.
13583 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13584 (movstrsi): Disable on SH5.
13585 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13586 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13587 (subsf3, subsf3_media): Likewise.
13588 (mulsf3, mulsf3_media, mac_media): Likewise.
13589 (divsf3, divsf3_media): Likewise.
13590 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
13591 (floatsisf2, fux_truncsfsi2): Likewise.
13592 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
13594 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13595 (cmpunsf_media, cmpsf): Likewise.
13596 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13597 (abssf2, abssf2_media): Likewise.
13598 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13599 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13600 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
13601 (floatsidf2, fix_truncdfsi2): Likewise.
13602 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
13604 (cmpeqdf_media, cmpgtdf_media): Likewise.
13605 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13606 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13607 (absdf2, absdf2_media): Likewise.
13608 (extendsfdf2, extendsfdf2_media): Likewise.
13609 (truncsfdf2, truncsfdf2_media): Likewise.
13610 * config/sh/sh64.h: New file.
13611 * config/sh/t-sh64: New file.
13612 * config/sh/shmedia.h: New file.
13613 * config/sh/ushmedia.h: New file.
13614 * config/sh/sshmedia.h: New file.
13615 * configure.in: Added sh64-*-elf.
13616 * configure: Rebuilt.
13617 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
13618 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13619 (reg_class_from_letter): Use `b' for TARGET_REGS.
13620 (print_operand): Support `%M', `%m', `AND' and
13621 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
13622 (andcosts): Adjust for SHmedia.
13623 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13625 (target_reg_operand): New function.
13626 * config/sh/sh-protos.h (target_reg_operand): Declare.
13627 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13628 FP registers on SH5.
13629 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13631 (TARGET_REGISTER_P): New macro.
13632 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13633 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13634 (EXTRA_CONSTRAINT_S): New macro.
13635 (EXTRA_CONSTRAINT): Adjust.
13636 (FLOAT_TYPE_SIZE): Define to 32.
13637 (Pmode): DImode on SHmedia.
13638 (CONST_COSTS): Adjust for SHmedia literals.
13639 (PREDICATE_CODES): Added target_reg_operand.
13640 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13641 * config/sh/sh.md: Remove all attrs from SHmedia insns.
13642 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13643 (cmpdi): Accept SHmedia.
13644 (movdicc_false, movdicc_true): New insns.
13645 (movdicc): New expand.
13646 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13648 (addsi3_media): Match `S' constraint.
13649 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13650 (negdi2): Expand for SHmedia.
13651 (one_cmpldi2): New expand.
13652 (zero_extendsidi2): Change from expand to insn.
13653 (extendsidi2): Add constraints.
13654 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
13655 LD/ST address. Fix SI immediate loading split.
13656 (movhi_media, movqi_media, lduw, ldub): New insns.
13657 (movhi, movqi): Accept SHmedia.
13658 (shori_media, movdi_media): Relax input constraints. Split
13659 symbolic constants.
13660 (movdf_media, movsf_media): New insn. New split to movdi.
13661 (movdf, movsf): Match on SHmedia.
13662 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13663 bgeu_media): New insns and splits. New insns with `_i' suffix.
13664 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13665 (bunordered): New expand.
13666 (jump_compact): Renamed from `jump'.
13667 (jump_media): New insn.
13668 (jump): New expand.
13669 (call_media, call_value_media): New insns.
13670 (call, call_value): Adjust.
13671 (indirect_jump_compact): Renamed from `indirect_jump'.
13672 (indirect_jump_media): New insn.
13673 (indirect_jump): New expand.
13674 (untyped_call, return): Accept SHmedia.
13675 (return_media): New insn.
13676 (prologue, epilogue, blockage): Accept SHmedia.
13677 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13678 (sunordered): New expand.
13679 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13680 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13681 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13682 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13683 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13684 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13685 abssf2_media): New insns.
13686 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13687 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13688 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13689 floatdidf2, floatsidf2_media, fix_truncdfdi2,
13690 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13691 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13692 absdf2_media): New insns.
13693 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13694 (extendsfdf2_media, truncdfsf2_media): New insns.
13695 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
13696 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13697 * config/sh/sh.h (CONST_OK_FOR_J): Document.
13698 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13699 * config/sh/sh.md (adddi3): New expand.
13700 (adddi3_media, adddi3z_media): New insns.
13701 (adddi3_compact): Renamed from adddi3.
13702 (addsi3_media): Use add.l r63 to add constant zero.
13703 (subdi3): New expand.
13704 (subdi3_media): New insn.
13705 (subdi3_compact): Renamed from subdi3.
13706 (mulsidi3): New expand.
13707 (mulsidi3_media): New insn.
13708 (mulsidi3_compact): Renamed from mulsidi3.
13709 (umulsidi3): New expand.
13710 (umulsidi3_media): New insn.
13711 (umulsidi3_compact): Renamed from umulsidi3.
13712 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13713 (ashlsi3, ashrsi3, lshrsi3): Use them.
13714 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13715 (ashldi3, ashrdi3, lshrdi3): Use them.
13716 (zero_extendsidi2): New expand.
13717 (extendsidi2): New insn.
13718 (movsi_media): New insn. Split to movdi to load constants.
13719 (movsi): Enable for shmedia.
13720 (movdi_media): New insn. Use shori_media to load wide constants.
13721 (short_media): New insn.
13722 (movdi): Enable for shmedia.
13723 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
13724 * config/sh/sh.h (CPP_SPEC): Added `m5'.
13725 (SUBTARGET_CPP_SPEC): Added `!m5'.
13726 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13727 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
13728 to all other SH variants.
13729 (TARGET_DEFAULT): Set to SH1_BIT.
13730 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13731 (BITS_PER_WORD): Raise to 64 on shmedia.
13732 (MAX_BITS_PER_WORD): Change to 64.
13733 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13734 (INT_TYPE_SIZE): Keep as 32.
13735 (UNITS_PER_WORD): Raise to 8 on shmedia.
13736 (MIN_UNITS_PER_WORD): Keep as 4.
13737 (POINTER_SIZE): Raise to 64 on shmedia.
13738 (CONST_OK_FOR_J): New macro.
13739 (CONST_OK_FOR_LETTER_P): Use it.
13740 (processor_type): Add PROCESSOR_SH5.
13741 * config/sh/sh.md: Conditionalize all expands, insns and
13742 splits to TARGET_SH1.
13744 (addsi3_compact): Renamed from...
13745 (addsi3): Now an expand.
13746 (addsi3_media, subsi3_media): New insns.
13747 (subsi3): Don't negate constants with SHmedia.
13749 * hooks.c: New file.
13750 * hooks.h: New file.
13751 * Makefile.in (HOOKS_H): New.
13752 (TARGET_DEF_H): Added $(HOOKS_H).
13753 (OBJS): Added hooks.o.
13754 (cfgcleanup.o, bb-reorder.o): Added target.h.
13755 (hooks.o): Added dependencies.
13756 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13757 (TARGET_INITIALIZER): this.
13758 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13759 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13760 * bb-reorder.c: Include target.h.
13761 (reorder_basic_blocks): Skip if cannot modify jumps.
13762 * cfgcleanup.c: Include target.h.
13763 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13765 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13767 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13768 Protect jump delay slot instructions with .set noreorder and
13771 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13773 * config/mips/mips.md (casesi_internal_di): Calculate
13774 the index into the target offset table correctly.
13776 2002-02-08 Richard Henderson <rth@redhat.com>
13778 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13779 * final.c (output_addr_const): Accept and discard SUBREG.
13780 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13781 mark them unknown instead.
13782 (simplify_subtraction): Handle RTX_UNKNOWN.
13783 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13785 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13787 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13789 2002-02-08 Richard Henderson <rth@redhat.com>
13791 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13793 2002-02-08 Andreas Jaeger <aj@suse.de>
13795 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13796 * config/i386/t-linux64: New file.
13798 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13800 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13801 * c-parse.in (compstmt): Clear last_expr_type.
13803 2002-02-07 Richard Henderson <rth@redhat.com>
13805 * loop.c (strength_reduce): Sink final_value when not
13808 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13810 * config/sparc/freebsd.h: Fix mismatched spec {.
13812 2002-02-07 Richard Henderson <rth@redhat.com>
13814 * cfgrtl.c: Include recog.h and insn-config.h.
13815 (keep_with_call_p): Fix general_operand invocation.
13816 * Makefile.in (cfgrtl.o): Update dependencies.
13818 2002-02-07 Kazu Hirata <kazu@hxi.com>
13820 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13821 comment. Accept HImode only if TARGET_H8300.
13823 2002-02-07 Eric Christopher <echristo@redhat.com>
13825 * config/mips/crtn.asm: Cleanup #ifdefs.
13827 2002-02-07 Eric Christopher <echristo@redhat.com>
13829 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13830 register 7 as RA instead of $31.
13831 * config/mips/crtn.asm: Ditto.
13832 * config/mips/mips.c (mips_move_2words): Add case for
13833 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13834 (compute_frame_size): Fix typo.
13835 (save_restore_insns): Ditto. Make documentation about using
13836 register $7 as return register more precise.
13837 (mips_expand_epilogue): Fix comment. Add code to work around not
13838 being able to add to the stack pointer directly.
13839 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13840 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13843 2002-02-07 Tom Rix <trix@redhat.com>
13845 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13846 immediates in ldu and stdu DS opcode field.
13847 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13848 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13849 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13851 2002-02-07 Jeff Sturm <jsturm@one-point.com>
13853 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13854 offset for stack bias.
13856 2002-02-07 H.J. Lu <hjl@gnu.org>
13858 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13860 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
13862 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13864 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
13866 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13867 * i386.c (x86_order_regs_for_local_alloc): New global function.
13868 * i386.h (REG_ALLOC_ORDER): CLeanup.
13869 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13871 2002-02-07 Richard Henderson <rth@redhat.com>
13873 PR optimization/2463
13874 * alias.c (find_base_value): Recall base values for fixed hard regs.
13875 * loop.c (loop_regs_update): Don't use single_set on non-insns.
13877 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
13879 * config/mips/mips.md (define_delay) [mips16]: Adjust required
13882 2002-02-06 Richard Henderson <rth@redhat.com>
13885 * stmt.c (resolve_operand_name_1): Take more care with mixed
13886 named and unnamed operands.
13888 2002-02-06 Janis Johnson <janis187@us.ibm.com>
13889 Jan Hubicka <jh@suse.cz>
13891 * loop.c (remove_constant_addition): Avoid clobbering a shared
13894 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13896 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13897 * config/s390/t-linux64: New file.
13898 * config/s390/libgcc-glibc.ver: New file.
13900 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13902 * config/s390/linux64.h: Delete file.
13903 * config/s390/s390x.h: New file.
13904 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13905 as target header file.
13906 * config/s390/linux.h (TARGET_VERSION): Define depending on
13907 DEFAULT_TARGET_64BIT.
13908 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13909 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13910 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13911 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13912 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13913 (EXTRA_SPEC): New define.
13914 * config/s390/s390.h (TARGET_VERSION): Define depending on
13915 DEFAULT_TARGET_64BIT.
13916 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13918 2002-02-06 Jason Merrill <jason@redhat.com>
13920 * c-decl.c (finish_function): Warn about a non-void function with
13921 no return statement and no abnormal exit.
13922 (current_function_returns_abnormally): New variable.
13923 (start_function): Clear it.
13924 (struct c_language_function): Add returns_abnormally.
13925 (push_c_function_context): Save it.
13926 (pop_c_function_context): Restore it.
13927 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13928 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13929 an explicit return type.
13930 * c-tree.h: Declare current_function_returns_abnormally.
13931 (C_FUNCTION_IMPLICIT_INT): New macro.
13932 * c-typeck.c (build_function_call): Set it.
13933 (c_expand_return): Set current_function_returns_value even if the
13934 value is erroneous.
13936 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13939 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13940 unsafe for reevaluation.
13942 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13945 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13946 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13948 2002-02-06 Richard Henderson <rth@redhat.com>
13950 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13951 be a general_operand. Dest for function value must be a pseudo.
13953 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13955 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13956 as SYMBOL_REFs from the constant pool.
13958 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
13960 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13961 passed by invisible reference.
13963 2002-02-05 Richard Henderson <rth@redhat.com>
13965 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13967 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
13969 Implement using "base addresses" in insn operands as default.
13970 * config/mmix/mmix.c (mmix_conditional_register_usage): if
13971 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13972 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13973 used to read the rtx value.
13974 (mmix_target_asm_function_epilogue): Fix spacing.
13975 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13976 (mmix_legitimate_address): Ditto.
13977 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13978 should be loaded with a GETA insn. Don't allocate needless extra
13979 char for nul termination and fix misleading comment.
13980 (mmix_print_operand_address): Handle constants if
13981 TARGET_BASE_ADDRESSES.
13982 (mmix_output_register_setting): Use base addressing if
13983 TARGET_BASE_ADDRESSES and the number of insns is 3.
13984 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13985 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13986 to use R as constraint, add LDA to match s.
13987 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13988 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13989 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13990 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13991 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13992 order with other fixed registers.
13993 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13994 other parameter/call-clobbered registers.
13995 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13996 -mbase-addresses, -mno-base-addresses.
13997 (MMIX Options): Ditto.
13999 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
14001 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
14003 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
14005 * config/rs6000/altivec.h: Change elem to _S_elem.
14007 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
14009 * config/netbsd.h (WCHAR_TYPE): Define.
14010 (WCHAR_TYPE_SIZE): Ditto.
14011 (WINT_TYPE): Ditto.
14012 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
14013 (WCHAR_UNSIGNED): Ditto.
14014 (WCHAR_TYPE_SIZE): Ditto.
14015 (WINT_TYPE): Ditto.
14016 * config/arm/netbsd.h: Likewise.
14017 * config/i386/netbsd-elf.h: Likewise.
14018 * config/i386/netbsd.h: Likewise.
14019 * config/m68k/netbsd-elf.h: Likewise.
14020 * config/m68k/netbsd.h: Likewise.
14021 * config/ns32k/netbsd.h: Likewise.
14022 * config/sparc/netbsd.h: Likewise.
14023 * config/vax/netbsd.: Likewise.
14025 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
14027 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
14028 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
14029 (TARGET_INITIALIZER): this.
14030 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
14031 (BITFIELD_NBYTES_LIMITED): Markup fix.
14032 * tree.h (default_ms_bitfield_layout_p): Declare.
14033 (record_layout_info): Added prev_field.
14034 * tree.c (default_ms_bitfield_layout_p): New fn.
14035 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
14036 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
14037 * stor-layout.c: Include target.h.
14038 (start_record_layout): Initialize prev_field.
14039 (place_field): Handle MS bit-field layout, and disregard
14040 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
14041 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
14042 * Makefile.in (stor-layout.o): Adjust dependencies.
14044 2002-02-05 Jason Merrill <jason@redhat.com>
14046 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
14048 2002-02-05 Andreas Jaeger <aj@suse.de>
14050 * crtstuff.c: Fix comments.
14052 2002-02-05 Richard Henderson <rth@redhat.com>
14055 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
14056 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
14059 * config/mips/mips.c (function_arg): Handle TImode.
14060 (function_arg_advance): Likewise.
14062 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14064 * config/rs6000/altivec.h (vec_step_help): Rename to
14067 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14069 * config/rs6000/altivec.h: Fix typos.
14071 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
14073 * config/arm/netbsd.h: Correct a comment.
14075 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14077 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
14078 building void typed builtins.
14080 * config/rs6000/altivec.h (vec_ld*): Fix typos.
14081 (vec_step): Implement for C++.
14083 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14085 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
14087 2002-02-04 Richard Henderson <rth@redhat.com>
14089 * combine.c (nonzero_bits): Re-introduce special case for
14090 sp/fp/ap wrt REGNO_POINTER_ALIGN.
14092 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
14094 * doc/extend.texi: Warn about unsupported usage of altivec
14097 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
14098 (altivec_predicate_*): New.
14100 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
14101 Add C++ version of vec_*() functions.
14103 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
14104 (bdesc_2arg): Remove altivec predicates.
14105 (altivec_expand_builtin): Handle predicates.
14106 (altivec_init_builtins): Handle predicates.
14107 (altivec_expand_predicate_builtin): New.
14109 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14111 * pa.c (DO_FRAME_NOTES): Move forward.
14112 (store_reg): Revise handling of frame notes.
14113 (load_reg): Likewise.
14114 (set_reg_plus_d): Likewise.
14115 (hppa_expand_prologue): Likewise.
14116 (hppa_expand_epilogue): Likewise.
14118 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14120 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
14122 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14124 PR c/4475, c++/3780:
14125 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
14126 * c-common.h (SWITCH_TYPE): Define.
14127 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
14128 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
14129 Rename spareness variable to sparseness.
14130 (expand_end_case_type): Renamed from expand_end_case, use orig_type
14131 if non-NULL instead of TREE_TYPE (orig_index).
14132 * tree.h (expand_end_case_type): Renamed from expand_end_case.
14133 (expand_end_case): Define using expand_end_case_type.
14134 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
14135 to expand_end_case_type.
14136 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
14138 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14140 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
14141 (BIGGEST_ALIGNMENT): Change to 128.
14143 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14145 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
14147 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14149 * pa.md (call_internal_reg_64bit): Remove unused variable.
14151 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
14153 * config/arm/arm.h (machine_function): Add uses_anonymous_args
14155 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
14156 * config/arm/arm.c (current_function_anonymous_args): Delete,
14157 replace uses with cfun->machine->uses_anonymous_args.
14158 (arm_reorg): Do not reset uses_anonymous_args.
14160 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
14161 any geenral register.
14163 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
14165 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
14168 2002-02-04 Richard Henderson <rth@redhat.com>
14170 * combine.c (force_to_mode): Remove STACK_BIAS code.
14171 (nonzero_bits): Likewise. Replace sp/fp special case with
14172 REGNO_POINTER_ALIGN.
14174 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14175 (HARD_FRAME_POINTER_REGNUM): New.
14176 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14177 (FIXED_REGS, CALL_USED_REGS): Update.
14178 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14179 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14180 (HARD_REGNO_NREGS): Update for SFP.
14181 (STACK_POINTER_OFFSET): Include bias here ...
14182 (FIRST_PARM_OFFSET): ... not here.
14183 (STACK_BIAS): Remove.
14184 (INIT_EXPANDERS): New.
14185 (STARTING_FRAME_OFFSET): Do not include bias.
14186 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14187 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14188 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14189 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14190 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14191 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14192 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14193 (MUST_SAVE_REGISTER): Likewise.
14194 (sparc_flat_function_prologue): Likewise.
14195 (sparc_flat_function_epilogue): Likewise.
14196 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14197 (sparc_init_modes): SFP is GENERAL_REGS.
14198 (sparc_builtin_saveregs): SFP does not have bias applied.
14200 2002-02-04 Richard Henderson <rth@redhat.com>
14202 * config/alpha/alpha.c (current_function_is_thunk): Don't check
14203 current_function_is_thunk.
14204 (alpha_sa_mask): Distinguish between current_function_is_thunk
14205 called from ASM_OUTPUT_MI_THUNK and not.
14206 (alpha_does_function_need_gp): Thunks always need gp.
14207 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14208 (alpha_output_mi_thunk_osf): New.
14209 * config/alpha/alpha-protos.h: Update.
14210 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14212 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
14214 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14215 function types, not when they're taken away.
14217 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
14219 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14220 CODE_LABEL and jump table when replacing a table jump with a
14223 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14225 * config/s390/s390-protos.h (legitimize_la_operand,
14226 s390_secondary_input_reload_class, s390_plus_operand,
14227 s390_expand_plus_operand): Add prototypes.
14229 config/s390/s390.c (s390_secondary_input_reload_class,
14230 s390_plus_operand, s390_expand_plus_operand): New functions.
14232 (struct s390_address): New member 'pointer'.
14233 (s390_decompose_address): Compute it.
14234 (legitimate_la_operand_p): Use it.
14235 (legitimize_la_operand): New function.
14236 (movti, movdi, movdf splitters): Call it.
14238 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14239 (PREDICATE_CODES): Add s390_plus_operand.
14241 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14242 (la_ccclobber): Allow GENERAL_REGS as output operand.
14244 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14245 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14246 (*la_64, *la_31, reload_indi, reload_insi): ... these.
14248 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14250 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14251 register names for regular asm () construct.
14253 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14255 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14258 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14260 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14263 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
14265 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14266 constant pool to be identical by string address and index.
14268 2002-02-04 Anthony Green <green@redhat.com>
14270 * output.h (SECTION_OVERRIDE): Define.
14271 * varasm.c (named_section): Obey SECTION_OVERRIDE.
14273 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
14275 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14276 by existing arm*-*-netbsd* (a.out) target.
14277 (ns32k-*-netbsdelf*): Likewise.
14278 (sparc-*-netbsdelf*): Likewise.
14279 (vax-*-netbsdelf*): Likewise.
14281 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
14283 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14284 headers and libobjc headers.
14286 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
14288 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14289 (_mingw.h): Remove duplicate include.
14291 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
14293 * config.gcc: Set cpu_type to m68k for 68010, as well.
14294 (m68010-*-netbsdelf*): New...
14295 (m68k*-*-netbsdelf*): ...targets.
14296 * config/m68k/netbsd-elf.h: New file.
14298 2002-02-02 Kazu Hirata <kazu@hxi.com>
14300 * config/h8300/h8300.c (hand_list): Move inside function_arg.
14302 2002-02-02 Kazu Hirata <kazu@hxi.com>
14304 * config/h8300/h8300.c (h8_push_ops): Move inside
14306 (h8_pop_ops): Likewise.
14307 (h8_move_ops): Likewise.
14309 2002-02-02 Kazu Hirata <kazu@hxi.com>
14311 * config/h8300/h8300.c (os_task): Make it static.
14312 (monitor): Likewise.
14313 (pragma_saveall): Likewise.
14315 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
14317 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14318 constant is a valid sign-extension for Pmode.
14320 2002-02-02 Kazu Hirata <kazu@hxi.com>
14322 * config/h8300/h8300.c: Fix formatting.
14324 2002-02-02 Kazu Hirata <kazu@hxi.com>
14326 * config/h8300/h8300.md: Fix formatting.
14328 2002-02-02 Kazu Hirata <kazu@hxi.com>
14330 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14331 predicates of operands[1]. Split the patterns for each
14334 2002-02-02 Kazu Hirata <kazu@hxi.com>
14336 * config/h8300/h8300.md (xor patterns): Tighten the predicates
14337 of operands[1] to register_operand.
14339 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
14341 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14342 * cpphash.c (_cpp_init_hashtable): Similarly.
14343 * cppinit.c (cpp_create_reader): Default the signed_char flag.
14344 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14345 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14346 (cpp_handle_option): Handle the new options.
14347 * cpplex.c (cpp_interpret_charconst): Use new flag.
14348 * cpplib.h (struct cpp_options): New member signed_char.
14349 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14350 (cpp_options): Handle -fsigned-char and -funsigned-char.
14351 (static_specs): Remove signed_char_spec.
14352 (do_spec1): Don't handle %c.
14353 * system.h: Poison SIGNED_CHAR_SPEC.
14354 * tradcif.y (yylex): Use flag_signed_char.
14355 * tradcpp.h (flag_signed_char): New.
14356 * tradcpp.c (flag_signed_char): New.
14357 (main): Handle new command-line options.
14358 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14360 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14361 * avr/avr.h: Remove old comments.
14362 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14363 (CC1_SPEC): Pass -fsigned-char if -mic*.
14364 (SIGNED_CHAR_SPEC): Remove.
14366 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14368 2002-02-01 Eric Christopher <echristo@redhat.com>
14370 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14371 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14372 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14373 (ASM_OUTPUT_REG_POP): Ditto.
14375 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
14377 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14380 2002-02-02 Jakub Jelinek <jakub@redhat.com>
14382 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14384 2002-02-02 Jakub Jelinek <jakub@redhat.com>
14387 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14390 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14392 * cfganal.c: Include tm_p.h.
14393 (keep_with_call_p): Fix the test that determines if a register holds
14394 the return value of a call.
14396 2002-02-01 DJ Delorie <dj@redhat.com>
14398 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14399 we are given conflicting registers, switch to the other one we
14400 had allocated for us.
14401 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14402 as TImode so we know when the "other" register is available.
14404 2002-02-01 David O'Brien <obrien@FreeBSD.org>
14406 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14409 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14411 * cfganal.c (keep_with_call_p): New function.
14412 (flow_call_edges_add): Prevent splitting a block between a call and
14413 a single-set instruction that should be kept in the same block.
14415 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
14417 * doc/install.texi (avr): Update outdated URL.
14419 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
14421 * config/stormy16/stormy16.md (pushqi): New.
14425 (movhi): Remove stack operands.
14427 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14428 nonimmediate_nonstack_operand.
14429 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14431 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14434 2002-01-31 Jason Merrill <jason@redhat.com>
14436 * Makefile.in (c-parse.c): Handle .output file.
14437 * objc/Make-lang.in (objc-parse.c): Likewise.
14439 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
14441 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14442 the -me[lb] option is given. Don't output the default flag
14445 2002-01-31 Zack Weinberg <zack@codesourcery.com>
14447 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14448 the primary source file; this has not been done yet.
14449 * c-decl.c (c_expand_body): Reset input_filename from
14450 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14452 2002-01-31 Kazu Hirata <kazu@hxi.com>
14454 * rtlanal.c (subreg_regno_offset): Do not use
14455 SUBREG_REGNO_OFFSET.
14456 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14457 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14459 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14461 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
14462 version rather than GNATS version in --version output.
14464 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
14466 * ifcvt.c (noce_process_if_block): Make a copy of the destination
14467 when copying back from a temporary.
14469 2002-01-30 Richard Henderson <rth@redhat.com>
14471 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14472 and new_dest are the same.
14474 2002-01-30 Richard Henderson <rth@redhat.com>
14477 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14478 * rtl.c (note_insn_name): Update.
14479 * emit-rtl.c (remove_unnecessary_notes): Kill it.
14480 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
14481 to perform loop rotation.
14482 (expand_exit_loop_top_cond): New.
14483 * tree.h (expand_exit_loop_top_cond): Declare it.
14484 * c-semantics.c (genrtl_while_stmt): Use it.
14485 (genrtl_for_stmt): Likewise.
14487 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
14489 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14490 arguments to 64-bit boundaries on 64-bit ABIs.
14492 2002-01-30 Steve Ellcey <sje@cup.hp.com>
14494 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14496 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14498 * c-decl.c (grokdeclarator): Handle type being a typedef for an
14501 2002-01-30 David O'Brien <obrien@FreeBSD.org>
14503 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14504 * config/sparc/sparc_bi.h: Remove file.
14505 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14507 2002-01-30 Richard Henderson <rth@redhat.com>
14509 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14511 2002-01-30 Zack Weinberg <zack@codesourcery.com>
14513 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14515 2002-01-30 Jason Merrill <jason@redhat.com>
14517 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14518 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14519 (reg_save): Use DW_CFA_offset_extended_sf instead.
14521 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14523 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14525 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14528 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
14530 * rs6000.md ("*call_value_local32"): Remove constraints.
14531 ("*call_value_local64"): Same.
14532 ("*call_value_indirect_nonlocal_aix32"): Same.
14533 ("*call_value_nonlocal_aix32"): Same.
14534 ("*call_value_indirect_nonlocal_aix64"): Same.
14535 ("*call_value_nonlocal_aix64"): Same.
14536 ("*call_value_nonlocal_sysv"): Same.
14538 2002-01-29 Richard Henderson <rth@redhat.com>
14540 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14542 2002-01-29 Richard Henderson <rth@redhat.com>
14544 * expr.c (force_operand): Ignore flag_pic for detecting pic
14546 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14547 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14548 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14549 instead of open-coded loop.
14550 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14551 be fixed when in use.
14553 2002-01-29 Richard Henderson <rth@redhat.com>
14555 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14556 * sched-rgn.c (propagate_deps): Update them.
14557 * sched-deps.c (sched_analyze_insn): Update them. Flush the
14558 clobbers list when either gets too long.
14560 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14562 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14563 and INDEX_REGS the same as GENERAL_REGS.
14564 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14566 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14568 * tree.c (build_nonstandard_integer_type): Correct prototype.
14570 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
14572 * config/s390/s390.md (movstrsico, movstrdix_64,
14573 movstrsix_31): Remove, replace by ...
14574 (movstrdi_short, movstrsi_short, movstrdi_long,
14575 movstrsi_long): ... these. New.
14576 (movstrdi, movstrsi): Adapt.
14578 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14579 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14580 Remove unnecessary CC clobber.
14581 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14582 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14584 (divmoddi4): Don't partially initialize TImode register.
14586 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
14588 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14590 2002-01-29 Richard Henderson <rth@redhat.com>
14592 * flow.c (print_rtl_and_abort): Remove.
14593 (print_rtl_and_abort_fcn): Remove.
14594 (verify_local_live_at_start): Use dump_bb instead.
14595 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14596 (verify_wide_reg_1): Return 2 on mode test failure.
14598 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14600 PR c/3325, c/3326, c/2511, c/3347
14601 * c-decl.c (enum_decl_context): Remove BITFIELD.
14602 (grokdeclarator): Take bitfield width as an input.
14603 Ensure bitfields are given the correct type. Perform
14604 bitfield width validation with build_bitfield_integer_type
14605 rather than waiting for finish_struct.
14606 (grok_typename, grok_typename_in_parm_context, start_decl,
14607 push_parmdecl, grokfield, start_function): Update calls to
14609 (build_bitfield_integer_type): New function.
14610 (finish_struct): Move bitfield validation to grokdeclarator
14611 and build_bitfield_integer_type.
14612 * tree.c (build_nonstandard_integer_type): New function.
14613 * tree.h (build_nonstandard_integer_type): New prototype.
14615 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14617 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14620 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14621 don't ignore unrecognized -W* options.
14622 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14623 * cpplib.h (cpp_handle_option): Adjust prototype.
14624 * c-decl.c (c_decode_options): Pass 0 as last argument to
14628 * gcc.c (cpp_unique_options): Split from cpp_options.
14629 (cpp_options): Source cpp_unique_options.
14630 (default_compilers): Use cpp_unique_options instead of cpp_options
14631 when used together with cc1_options.
14632 (static_specs): Add cpp_unique_options.
14633 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14634 when used together with cc1_options.
14636 2002-01-29 Kazu Hirata <kazu@hxi.com>
14638 * config/h8300/h8300-protos.h: Update the prototype of
14640 * config/h8300/h8300.c (output_a_shift): Remove an unused
14641 argument 'insn'. Remove redundant code.
14642 * config/h8300/h8300.md: Adust to the new prototype of
14645 2002-01-29 Kazu Hirata <kazu@hxi.com>
14647 * config/h8300/h8300-protos.h: Update the prototypes of
14648 emit_a_rotate and expand_a_rotate.
14649 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14650 first argument to 'enum rtx_code'.
14651 (expand_a_rotate): Likewise.
14653 2002-01-28 Kazu Hirata <kazu@hxi.com>
14655 * config/h8300/h8300-protos.h: Update the prototype of
14657 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14659 * config/h8300/h8300.md: Adjust to the new prototype.
14661 2002-01-28 Kazu Hirata <kazu@hxi.com>
14663 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14666 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14668 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14669 is a fixed register before returning pic_offset_table_rtx.
14670 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14671 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14673 2002-01-28 Jason Merrill <jason@redhat.com>
14675 * dwarf2.h: Sync with src version.
14677 2002-01-28 Paul Koning <pkoning@equallogic.com>
14679 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14680 BT_FN_VOID_PTR_VAR.
14681 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14682 * doc/extend.texi (__builtin_prefetch): Update documentation:
14683 first argument is now const void ptr.
14685 2002-01-28 Kazu Hirata <kazu@hxi.com>
14687 * config/h8300/h8300-protos.h: Remove an unused prototype.
14689 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
14691 * toplev.c (lang_independent_init): Round up identifier size.
14693 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14695 * config.gcc: Revert previous change.
14697 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
14699 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14701 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14703 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14704 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
14705 other non-elf netbsd config frags.
14706 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14707 collect2 will does that.
14708 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14709 shared-lib frobbing will work.
14711 2002-01-28 Kazu Hirata <kazu@hxi.com>
14713 * config/h8300/h8300.h: Fix formatting.
14714 * config/h8300/h8300.md: Likewise.
14716 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
14718 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14719 the old, removed AAA_standards fix.
14720 * fixinc/fixincl.x: Rebuilt.
14722 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
14724 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14725 atexit call in crtbegin, hooked in after call to frame_dummy;
14726 register EH before registering __fini__start.
14728 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
14730 * config/rs6000/altivec.h: Remove spurious semicolons.
14732 2002-01-27 Kazu Hirata <kazu@hxi.com>
14734 * config/h8300/h8300.md: Replace dead bit extraction patterns
14735 with ones that work.
14737 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14739 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14740 if not STRICT_ALIGNMENT.
14741 * rtl.h (MEM_ALIGN): Likewise.
14743 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
14745 * doc/invoke.texi (-fdump-translation-unit): Revert this
14746 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
14748 2002-01-27 Kazu Hirata <kazu@hxi.com>
14750 * config/h8300/h8300.md (define_constants): New.
14751 (anonymous patterns) Use defined constants appropriately.
14753 2002-01-27 Kazu Hirata <kazu@hxi.com>
14755 * config/h8300/h8300.c (function_arg): Remove redundant code.
14757 2002-01-26 Richard Henderson <rth@redhat.com>
14759 * sched-deps.c (reg_pending_uses_head): New.
14760 (reg_pending_barrier): Rename from reg_pending_sets_all.
14761 (find_insn_list): Don't mark inline.
14762 (find_insn_mem_list): Remove.
14763 (add_dependence_list, add_dependence_list_and_free): New.
14764 (flush_pending_lists): Replace only_write param with separate
14765 for_read and for_write parameters. Update all callers. Use
14766 add_dependence_list_and_free.
14767 (sched_analyze_1): Do not add reg dependencies here; just set
14768 the pending bits. Use add_dependence_list.
14769 (sched_analyze_2): Likewise.
14770 (sched_analyze_insn): Replace schedule_barrier_found with
14771 reg_pending_barrier. Add all dependencies for pending reg
14772 uses, sets, and clobbers.
14773 (sched_analyze): Don't add reg dependencies for calls, just
14774 set pending bits. Use regs_invalidated_by_call. Treat
14775 sched_before_next_call as a normal list, not a fake insn.
14776 (init_deps): No funny init for sched_before_next_call.
14777 (free_deps): Free pending mems lists. Don't zero reg_last.
14778 (init_deps_global): Init reg_pending_uses.
14779 (finish_deps_global): Free it.
14780 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14781 (find_insn_mem_list): Remove.
14782 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14783 (propagate_deps): Use them. Zero temp mem lists.
14785 2002-01-26 Richard Henderson <rth@redhat.com>
14787 * Makefile.in (CRTSTUFF_CFLAGS): New.
14788 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14789 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14790 crtstuff.c instead of alpha assembly version.
14791 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14792 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14793 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14794 (__do_global_dtors_aux): Mark used.
14795 (frame_dummy, __do_global_ctors_aux): Mark used.
14796 (fini_dummy, init_dummy): Remove.
14798 * config/alpha/crtbegin.asm: Remove file.
14799 * config/alpha/crtend.asm: Remove file.
14800 * config/alpha/t-crtbe: Remove file.
14801 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14802 (LINK_EH_SPEC): New.
14804 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14805 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14806 calling constructors.
14807 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14809 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14810 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14811 CRT_END_INIT_DUMMY hack.
14812 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14813 FORCE_{INIT,FINI}_SECTION_ALIGN.
14815 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14816 FORCE_{INIT,FINI}_SECTION_ALIGN.
14818 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14819 invocation sequence.
14820 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14822 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14823 (FORCE_CODE_SECTION_ALIGN): New.
14825 2002-01-26 Richard Henderson <rth@redhat.com>
14827 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14829 2002-01-26 Richard Henderson <rth@redhat.com>
14831 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14832 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14834 2002-01-26 Kazu Hirata <kazu@hxi.com>
14836 * config/h8300/h8300.md: Remove bit extraction patterns that
14837 cannot be triggered.
14838 Restrict each bit extraction pattern to a variant on which the
14841 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14843 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14845 2002-01-26 Kazu Hirata <kazu@hxi.com>
14847 * config/h8300/h8300.md: Remove bit test patterns that cannot
14849 Restrict each bit test pattern to a variant on which the
14852 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14854 * builtins.c (expand_builtin_strncat): Remove redundant check for
14857 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14859 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14861 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14864 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14866 * dbxout.c (dbxout_init): Use assemble_name rather than just
14867 stripping off the first character.
14868 (dbxout_source_file): Likewise.
14870 2002-01-25 DJ Delorie <dj@redhat.com>
14872 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14873 using rtx_equal_p, not by comparing pointers.
14875 2002-01-25 Steve Ellcey <sje@cup.hp.com>
14877 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14878 for PIC_OFFSET_TABLE_REGNUM.
14879 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14881 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14883 * config.gcc (x86_64-*-freebsd*): New target.
14884 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14886 (i[34567]86-*-freebsd*): Don't include svr4.h.
14887 * config/i386/freebsd64.h: New file.
14889 2002-01-25 Douglas B Rupp <rupp@gnat.com>
14891 * config/alpha/x-vms (version): Make static.
14893 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14894 in previous checkin.
14896 * Makefile.in (install-headers-cp): New target.
14897 * config.gcc (alpha-dec-*vms*): Install headers with
14900 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14902 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14905 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14907 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14908 of compare_tree_int.
14909 (expand_builtin_strncat): Likewise.
14910 * c-decl.c (finish_struct): Use tree_low_cst.
14911 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14912 * tree.c (compare_tree_int): Likewise.
14914 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14916 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14917 adjustments even if they are implemented by more than two insns.
14919 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14921 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14922 * df.h (struct ref): Kill B.
14923 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14925 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14926 * flow.c (propagate_one_insn): Use it.
14927 (mark_used_regs): Handle NIL.
14929 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14931 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14934 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14936 * rs6000.md (prefetch): Make address V4SI mode so that the address
14937 is restricted to legitimate form for instruction.
14939 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14941 * doc/install.texi (xtensa-*-elf): New target.
14942 (xtensa-*-linux*): New target.
14943 * doc/contrib.texi: Add myself.
14945 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14947 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14948 purpose register to hold an SImode (or smaller) value.
14950 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14952 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14954 * crtstuff.c: Likewise.
14956 2002-01-25 Kazu Hirata <kazu@hxi.com>
14958 * config/h8300/h8300.md (negation patterns): Tighten
14959 predicates to register_operand.
14961 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
14963 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14966 * builtins.c (expand_builtin_prefetch): Same.
14968 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14970 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14973 2002-01-24 Kazu Hirata <kazu@hxi.com>
14975 * config/h8300/h8300.c (print_operand): Remove support for
14976 operand character 'A'.
14977 * config/h8300/h8300.md (three anonymous patterns): Replace
14978 operand character 'A' with either 'T' or 'S'.
14980 2002-01-24 Kazu Hirata <kazu@hxi.com>
14982 * config/h8300/h8300.c (print_operand): Remove support for
14983 operand character 'U'.
14985 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
14987 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14989 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
14991 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14992 values to be assigned to the stack pointer.
14994 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14996 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14997 to const_double needs to be done right for big-endian systems.
14999 2002-01-24 Jason Merrill <jason@redhat.com>
15002 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
15003 to can_throw_internal.
15005 2002-01-23 Richard Henderson <rth@redhat.com>
15007 * fold-const.c (fold): Change UINT_MAX test to check vs precision
15008 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
15010 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15012 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
15013 (symGOT2reg): Use them, then set as GOT value as unchanging.
15014 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
15015 as a temporary, if possible.
15016 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
15017 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
15019 2002-01-23 Kazu Hirata <kazu@hxi.com>
15021 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
15022 accept to accept 0x80 as operands[2].
15024 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15026 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
15028 2002-01-23 Richard Henderson <rth@redhat.com>
15030 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
15032 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
15034 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
15035 (parmlist_or_identifiers_1): Verify that only a parmlist follows
15038 2002-01-23 Richard Henderson <rth@redhat.com>
15040 * expr.c (move_by_pieces_1): Extend size before negation.
15042 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
15043 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
15044 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
15045 * config/m68k/t-m68kelf: Likewise.
15047 2002-01-23 Bob Wilson <bob.wilson@acm.org>
15049 * config/xtensa/elf.h: New file.
15050 * config/xtensa/lib1funcs.asm: New file.
15051 * config/xtensa/lib2funcs.S: New file.
15052 * config/xtensa/linux.h: New file.
15053 * config/xtensa/t-xtensa: New file.
15054 * config/xtensa/xtensa-config.h: New file.
15055 * config/xtensa/xtensa-protos.h: New file.
15056 * config/xtensa/xtensa.c: New file.
15057 * config/xtensa/xtensa.h: New file.
15058 * config/xtensa/xtensa.md: New file.
15059 * config.gcc (xtensa-*-elf*): New target.
15060 (xtensa-*-linux*): New target.
15061 * cse.c (canon_hash): Compare rtx pointers instead of register
15062 numbers. This is required for the Xtensa port.
15063 * integrate.c (copy_insn_list): Handle case where the static
15064 chain is in memory and the memory address has to be copied to
15066 * doc/invoke.texi (Option Summary): Add Xtensa options.
15067 (Xtensa Options): New node.
15068 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
15070 2002-01-23 Zack Weinberg <zack@codesourcery.com>
15072 * diagnostic.c (internal_error): Do ICE suppression only
15073 when ENABLE_CHECKING is not defined.
15075 * c-typeck.c (require_complete_type): Return error_mark_node
15076 if type is error_mark_node.
15078 2002-01-23 Janis Johnson <janis187@us.ibm.com>
15080 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
15081 -Os and issue a warning.
15083 2002-01-23 Zack Weinberg <zack@codesourcery.com>
15085 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
15086 current (lack of) need for host configuration by hand.
15088 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
15089 references. Documentation of some target macros moved from
15090 hostconfig.texi to tm.texi.
15092 2002-01-23 Will Cohen <wcohen@redhat.com>
15094 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
15097 2002-01-23 Kazu Hirata <kazu@hxi.com>
15099 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
15102 2002-01-23 Jason Merrill <jason@redhat.com>
15104 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
15106 * function.c (assign_parms): Don't put args of inline functions
15107 into registers when not optimizing.
15109 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
15111 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
15112 (prologue_use): New pattern.
15113 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
15114 preference to gen_rtx_USE.
15115 (thumb_expand_prologue): Use gen_prologue_use in preference to
15117 (thumb_expand_epilogue): Use gen_prologue_use in preference to
15120 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
15122 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
15124 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
15127 * doc/extend.texi: Correct documentation of __alignof__.
15129 2002-01-22 Zack Weinberg <zack@codesourcery.com>
15131 * params.h: Rename arguments of DEFPARAM so that it will be
15132 recognized as a translation keyword.
15134 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15136 * extend.texi: Document altivec functions.
15137 Fix N-bit adjectives in X86 builtin documentation.
15139 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
15141 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
15142 auto_inc_dec values.
15144 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
15146 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
15148 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
15150 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
15152 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
15154 2002-01-22 Richard Henderson <rth@redhat.com>
15156 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
15157 copy_insn not copy_rtx.
15159 2002-01-23 Alan Modra <amodra@bigpond.net.au>
15161 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
15162 "nonzero" as that might add "1" bits. Ensure "constop" is
15163 properly sign extened.
15164 (force_to_mode): Tweak for sign extended constop.
15166 2002-01-22 Richard Henderson <rth@redhat.com>
15168 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15169 for_each_rtx instead of assuming we're already looking at the MEM.
15170 (split_small_symbolic_mem_operand): Likewise.
15171 * config/alpha/alpha.h (PREDICATE_CODES): Update.
15172 * config/alpha/alpha.md (small symbolic memory splitters): Update.
15174 2002-01-22 Richard Henderson <rth@redhat.com>
15176 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15177 sequence number for the literal.
15178 (divmoddi_internal_er): Likewise.
15180 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
15183 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15184 in LIBICONV variable.
15185 * configure: Regenerated.
15187 2002-01-22 Krister Walfridsson <cato@df.lth.se>
15189 * dependence.c (build_def_use): Remove array_idx.
15191 * dwarfout.c (last_filename): Remove.
15192 (output_compile_unit_die): Remove last_filename.
15194 2002-01-22 Roger Sayle <roger@eyesopen.com>
15195 Richard Henderson <rth@redhat.com>
15198 * fold-const.c (fold): Optimize unsigned comparisons against
15199 UINT_MAX (and similar unsigned constants).
15201 2002-01-22 Janis Johnson <janis187@us.ibm.com>
15203 * Makefile.in (loop.o): Depend on OPTABS_H.
15204 * loop.c (emit_prefetch_instructions): Check the prefetch operand
15205 against the predicate.
15208 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15209 for the address operand.
15211 2002-01-22 Richard Henderson <rth@redhat.com>
15213 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15215 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
15218 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15219 preprocessor flags.
15221 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
15223 * config.gcc (x86_64-*-netbsd*): New target.
15224 * config/i386/netbsd64.h: New file.
15226 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15228 * regrename.c (kill_value): Fix typo.
15230 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15232 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15234 * config/rs6000/rs6000.h: Same.
15236 * function.c (instantiate_virtual_regs): Remove
15237 STARTING_FRAME_PHASE.
15238 (assign_stack_local_1): Same.
15239 Calculate frame phase.
15241 2002-01-22 Nick Clifton <nickc@redhat.com>
15243 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15244 variable declaration to outer scope in order to simplify
15246 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15247 arm_hard_regno_mode_ok.
15248 * config/arm/arm-protos.h: Add a prototype for
15249 arm_hard_regno_mode_ok.
15250 * config/arm/arm.c (soft_df_operand): Remove now redundant
15251 check for DImode values using IP_REGNUM.
15252 (nonimmediate_soft_df_operand): Remove now redundant check for
15253 DImode values using IP_REGNUM.
15254 (arm_hard_regno_mode_ok): New function. New check: make sure
15255 that DImode values are not stored in IP_REGNUM.
15257 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15259 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15261 2002-01-22 Jason Merrill <jason@redhat.com>
15263 * c-semantics.c (genrtl_compound_stmt): Only check nesting
15264 consistency if this COMPOUND_STMT is scoped.
15266 2002-01-22 Kazu Hirata <kazu@hxi.com>
15268 * predict.c: Fix formatting.
15269 * print-tree.c: Likewise.
15270 * protoize.c: Likewise.
15271 * real.h: Likewise.
15273 * sbitmap.h: Likewise.
15274 * scan.c: Likewise.
15275 * sched-deps.c: Likewise.
15276 * sched-vis.c: Likewise.
15277 * sdbout.c: Likewise.
15278 * sibcall.c: Likewise.
15280 * ssa-ccp.c: Likewise.
15281 * ssa-dce.c: Likewise.
15282 * stmt.c: Likewise.
15283 * stor-layout.c: Likewise.
15284 * system.h: Likewise.
15286 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15288 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15289 if fits in bounds of base type.
15291 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15292 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15293 (add_bound_info, default): If can't find a context, make a
15295 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15297 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
15299 * c-typeck.c (parser_build_binary_op): If result from
15300 build_binary_op is ERROR_MARK just return error_mark_node without
15301 further processing.
15303 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
15305 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15306 Split a.out-specific bits into...
15307 * config/netbsd-aout.h: ...this.
15308 * config/netbsd-elf.h: New file.
15309 * config/alpha/netbsd-elf.h: Remove.
15310 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15311 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15312 (STARTFILE_SPEC): Remove redundant definition.
15313 (ENDFILE_SPEC): Likewise.
15314 (LINK_SPEC): Likewise.
15315 (CPP_SPEC): Likewise.
15316 (ASM_SPEC): Likewise.
15317 (LIB_SPEC): Likewise.
15318 (SWITCH_TAKES_ARG): Likewise.
15319 (TARGET_MEM_FUNCTIONS): Likewise.
15320 (CPP_PREDEFINES): Redefine.
15321 (ASM_FINAL_SPEC): Remove redefinition.
15322 (ASM_COMMENT_START): Redefine.
15323 (FUNCTION_PROFILER): Define.
15324 (TARGET_VERSION): Redefine.
15325 Comment and formatting cleanup.
15326 * config/i386/netbsd.h: Include <netbsd-aout.h>.
15327 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15328 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15329 big- or little-endian.
15330 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15331 * config.gcc (*-*-netbsd*): Add definitions common to all
15333 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15334 gnu_ld definitions. Add netbsd-elf.h to and remove
15335 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
15336 tmake_file, and don't lose previous tmake_file contents.
15337 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15338 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15339 gnu_ld definitions. Add netbsd-elf.h to tm_file.
15340 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15341 (mipsel-*-netbsd*): Rename this to...
15342 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
15343 mips/little.h to tm_file for mips*el-*.
15344 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15345 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15346 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15348 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
15350 * pa-protos.h (reg_before_reload_operand): New function prototype.
15351 * pa.c (reg_before_reload_operand): New function implementation.
15352 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
15353 contraints to "*m".
15355 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15357 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15359 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
15361 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15362 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15363 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15364 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15365 (ENDFILE_SPEC): Undefine.
15366 (STARTFILE_SPEC): Redefine for PA.
15368 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15370 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15372 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
15374 * config.gcc: Add entries to supported PowerPC --with-cpu
15377 2002-01-21 Jakub Jelinek <jakub@redhat.com>
15379 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15380 true for 64-bit mode only SSE registers in 32-bit mode.
15382 2002-01-21 Kazu Hirata <kazu@hxi.com>
15384 * unwind-dw2.c: Fix formatting.
15385 * unwind-dw2-fde.c: Likewise.
15386 * unwind-dw2-fde.h: Likewise.
15387 * unwind-pe.h: Likewise.
15388 * varasm.c: Likewise.
15389 * varray.h: Likewise.
15391 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
15393 Remove workaround for register stack overwrite bug in mmix.
15394 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15395 support for TARGET_REG_STACK_FILL_BUG.
15396 * config/mmix/mmix.h: Remove member has_call_without_parameters.
15397 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15399 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15400 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15401 -mno-reg-stack-fill-bug-workaround.
15402 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15403 machine member has_call_without_parameters.
15404 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15405 -mreg-stack-fill-bug-workaround and
15406 -mno-reg-stack-fill-bug-workaround.
15407 (MMIX Options): Ditto.
15409 2002-01-21 Kazu Hirata <kazu@hxi.com>
15411 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15413 Remove redundant code.
15415 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
15417 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15418 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15419 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15420 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15421 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15422 out target macro definitions and non-target-specific comments
15423 mostly taken from old versions of the manual.
15425 2002-01-20 Kazu Hirata <kazu@hxi.com>
15427 * config/h8300/h8300.h: Fix comment formatting.
15428 * config/ia64/aix.h: Likewise.
15429 * config/ia64/ia64-protos.h: Likewise.
15430 * config/ia64/ia64.c: Likewise.
15431 * config/ia64/ia64.h: Likewise.
15432 * config/ia64/ia64intrin.h: Likewise.
15433 * config/ia64/linux.h: Likewise.
15434 * config/ia64/unwind-aix.c: Likewise.
15435 * config/ia64/unwind-ia64.c: Likewise.
15437 2002-01-20 Kazu Hirata <kazu@hxi.com>
15439 * config/h8300/h8300.c: Revise comments about shift code.
15441 2002-01-20 Kazu Hirata <kazu@hxi.com>
15443 * config/h8300/h8300.c (function_arg): Update a comment.
15445 2002-01-20 Kazu Hirata <kazu@hxi.com>
15447 * config/h8300/h8300.md: Update the comments at the beginning
15450 2002-01-20 Kazu Hirata <kazu@hxi.com>
15452 * config/i370/i370.c: Fix comment formatting.
15453 * config/i370/i370.h: Likewise.
15454 * config/i370/i370.md: Likewise.
15455 * config/i370/linux.h: Likewise.
15457 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15459 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15461 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15462 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15463 in incomplete case.
15465 2002-01-20 Graham Stott <grahams@redhat.com>
15467 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15469 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
15471 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15473 2002-01-19 Tom Rix <trix@redhat.com>
15475 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15477 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
15479 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15481 * function.c (assign_stack_local_1): Adjust x_frame_offset with
15482 STARTING_FRAME_PHASE.
15483 (STARTING_FRAME_PHASE): New.
15484 (instantiate_virtual_regs): Check saneness of
15485 STARTING_FRAME_PHASE.
15487 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15489 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
15491 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15493 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
15495 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15496 be used for bootstrapping GCC 3.0.
15498 2002-01-18 Kazu Hirata <kazu@hxi.com>
15500 * config/h8300/h8300.md: Fix an insn length.
15502 2002-01-18 Kazu Hirata <kazu@hxi.com>
15504 * bitmap.h: Fix comment formatting.
15505 * combine.c: Likewise.
15506 * cppfiles.c: Likewise.
15507 * c-pragma.h: Likewise.
15508 * c-typeck.c: Likewise.
15510 * dwarf2out.c: Likewise.
15511 * function.c: Likewise.
15513 * genattrtab.c: Likewise.
15514 * gthr-win32.h: Likewise.
15515 * haifa-sched.c: Likewise.
15516 * predict.c: Likewise.
15517 * rtlanal.c: Likewise.
15519 * unwind-dw2-fde.h: Likewise.
15520 * unwind-pe.h: Likewise.
15521 * vmsdbgout.c: Likewise.
15523 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15525 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15526 if type_required and passed decl.
15528 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
15530 * config.gcc (cpu_type): Include altivec.h in powerpc
15534 * config/rs6000/altivec.h: New.
15536 2002-01-17 David Edelsohn <edelsohn@gnu.org>
15538 * doc/install.texi (*-ibm-aix*): Update assembler and exception
15539 handling information.
15540 * doc/trouble.texi (Interoperation): Add libstdc++ information
15542 (Misunderstandings): Add template instantiation and static template
15543 member information for AIX.
15545 2002-01-17 Jason Merrill <jason@redhat.com>
15547 * dbxout.c (dbxout_type): Support const and volatile.
15549 * except.c (add_partial_entry): Remove backwards compatibility code.
15550 (end_protect_partials): Likewise.
15552 2002-01-17 Jakub Jelinek <jakub@redhat.com>
15554 * config/ia64/ia64.md (prologue_use): New.
15555 * config/ia64/ia64.c (ia64_expand_prologue): Use
15556 gen_prologue_use instead of gen_rtx_USE.
15557 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15558 as CODE_FOR_pred_rel_mutex.
15559 (ia64_sched_reorder2): Likewise.
15561 2002-01-16 Eric Christopher <echristo@redhat.com>
15563 * config/mips/r3900.h: Reformat.
15564 (SUBTARGET_CPP_SIZE_SPEC): Remove.
15565 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15566 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15567 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15568 * config/mips/t-elf: Remove mips3 multilib.
15570 2002-01-16 H.J. Lu <hjl@gnu.org>
15572 * config/mips/linux.h: Include "mips/abi64.h".
15574 2002-01-16 H.J. Lu <hjl@gnu.org>
15576 * config/mips/t-linux: New.
15578 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15580 * config/mips/linux.h: Don't include "gofast.h".
15581 (INIT_SUBTARGET_OPTABS): Removed.
15583 2002-01-16 Kazu Hirata <kazu@hxi.com>
15585 * config/h8300/h8300-protos.h: Replace emit_a_shift with
15587 * config/h8300/h8300.c: Likewise.
15588 * config/h8300/h8300.md: Likewise.
15590 2002-01-16 Kazu Hirata <kazu@hxi.com>
15592 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15593 spaces after an opcode name.
15594 (pushqi1_h8300hs): Likewise.
15595 (pushhi1_h8300hs): Likewise.
15597 2002-01-16 Kazu Hirata <kazu@hxi.com>
15599 * doc/extend.texi: Replace "option" with "attribute"
15602 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15604 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15605 (and:DI () (const_int -8)).
15606 (split_small_symbolic_mem_operand): Split
15607 (mem (and:DI () (const_int -8)).
15609 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15612 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15613 same way as TYPE_IMUL.
15614 (ultrasparc_sched_reorder): Likewise.
15615 * config/sparc/sparc.md (type): Add comment to update
15616 ultrasparc_sched_reorder when making changes.
15618 2002-01-16 Kazu Hirata <kazu@hxi.com>
15620 * doc/invoke.texi: Change the dump file name of block
15621 reordering pass from 28.bbro to 29.bbro.
15622 Mention -dk option.
15624 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
15626 * i386.md (minsf splitter): Fix pasto.
15628 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15630 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15631 to frame pointer initialisation instruction.
15632 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15633 initialisation instruction.
15634 (soft_df_operand): Do not accept the IP register.
15635 (nonimmediate_soft_df_operand): Do not accept the IP register.
15637 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15640 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15641 MASK_V8 being both set.
15643 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
15645 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15646 insn for GOT register; add REG_MAYBE_DEAD notes instead.
15647 config/s390/s390.md (call, call_value): Add GOT register to
15648 CALL_INSN_FUNCTION_USAGE where needed.
15649 (call_exp, call_value_exp): New.
15651 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15653 * config/arm/arm.c: General formatting tidy up.
15655 2002-01-16 Graham Stott <grahams@redhat.com>
15657 * calls.c (try_to_integrate): Use "(size_t)" intermediate
15658 cast and when casting an integer literal to "rtx" pointer.
15659 (expand_call): Likewise.
15660 * flow.c (try_pre_increment): Likewise.
15661 (find_use_as_address): Likewise.
15662 * integrate.c (expand_iline_function): Likewise.
15663 * regmove.c (try_auto_increment): Likewise.
15665 2002-01-16 Graham Stott <grahams@redhat.com>
15667 * sched-rgn.c (passed): Use sbitmap_free.
15668 (header): Likewise.
15670 (in_queue): Likewise.
15671 (in_stack): Likewise.
15673 2002-01-15 Eric Christopher <echristo@redhat.com>
15675 * flow.c (propagate_one_insn): Change to use fatal_insn.
15677 2002-01-15 Kazu Hirata <kazu@hxi.com>
15679 * expmed.c (extract_fixed_bit_field): Remove unused code.
15680 * system.h: Poison SLOW_ZERO_EXTEND.
15681 * doc/tm.texi: Remove.
15682 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15683 * config/arm/arm.h: Likewise.
15684 * config/avr/avr.h: Likewise.
15685 * config/clipper/clipper.h: Likewise.
15686 * config/convex/convex.h: Likewise.
15687 * config/d30v/d30v.h: Likewise.
15688 * config/dsp16xx/dsp16xx.h: Likewise.
15689 * config/elxsi/elxsi.h: Likewise.
15690 * config/fr30/fr30.h: Likewise.
15691 * config/h8300/h8300.h: Likewise.
15692 * config/i370/i370.h: Likewise.
15693 * config/i386/i386.h: Likewise.
15694 * config/m68k/m68k.h: Likewise.
15695 * config/mips/mips.h: Likewise.
15696 * config/ns32k/ns32k.h: Likewise.
15697 * config/pdp11/pdp11.h: Likewise.
15698 * config/pj/pj.h: Likewise.
15699 * config/s390/s390.h: Likewise.
15700 * config/sh/sh.h: Likewise.
15701 * config/stormy16/stormy16.h: Likewise.
15702 * config/v850/v850.h: Likewise.
15703 * config/vax/vax.h: Likewise.
15704 * config/we32k/we32k.h: Likewise.
15706 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15708 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15709 (altivec_lvsl): Change constraint to b.
15710 (altivec_lvsr): Same.
15711 (altivec_lvebx): Same.
15712 (altivec_lvehx): Same.
15713 (altivec_lvewx): Same.
15714 (altivec_lvxl): Same.
15715 (altivec_lvx): Same.
15716 (altivec_stvx): Add parallel.
15717 (altivec_stvxl): Same.
15718 (altivec_stvehx): Same.
15719 (altivec_stvebx): Same.
15720 (altivec_stvebx): Same.
15722 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15724 * config.gcc: Change altivec.h to altivec-defs.h.
15726 * config/rs6000/altivec.h: Delete.
15728 * config/rs6000/altivec-defs.h: Add.
15730 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15732 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15735 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15736 less than or equal to eight bytes.
15738 * vax.md (andsi3): Remove constraints and change SET destination
15739 operand type to nonimmediate_operand.
15740 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
15741 when it is a CONST_INT.
15743 2002-01-15 Jason Merrill <jason@redhat.com>
15745 * c-common.def (FILE_STMT): New code.
15746 * c-common.c (statement_code_p): It's a statement.
15747 * c-common.h (stmt_tree_s): Add x_last_filename.
15748 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15749 (last_expr_filename): New macro.
15750 * c-semantics.c (begin_stmt_tree): Initialize it.
15751 (add_stmt): If the filename changed, also insert a
15753 (expand_stmt): Handle seeing one.
15755 2002-01-15 Eric Christopher <echristo@redhat.com>
15757 * flow.c (propagate_one_insn): Add error message and print out
15758 insn for debugging.
15760 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15762 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15763 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15764 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15765 TRAMPOLINE_ALIGNMENT.
15766 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
15768 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15769 PCC_BITFIELD_TYPE_MATTERS.
15770 * config/interix.h (STDC_VALUE): Remove. Use
15771 STDC_0_IN_SYSTEM_HEADERS.
15772 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15773 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15774 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15776 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15778 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15779 not work on this platform currently.
15781 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15783 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15784 readonly_warning in _().
15786 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15788 * gcc.c (delete_if_ordinary): Backout previous change.
15790 2002-01-15 Kazu Hirata <kazu@hxi.com>
15792 * config/h8300/h8300.c (print_operand): Remove support for
15793 unused operand characters.
15795 * read-rtl.c: Fix formatting.
15796 * real.c: Likewise.
15797 * recog.c: Likewise.
15798 * regclass.c: Likewise.
15799 * regmove.c: Likewise.
15800 * reg-stack.c: Likewise.
15801 * reload1.c: Likewise.
15802 * rtlanal.c: Likewise.
15804 2002-01-15 Kazu Hirata <kazu@hxi.com>
15806 * config/i386/i386.c: Fix formatting.
15808 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15810 * c-typeck.c (process_init_element): Don't save_expr
15811 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15813 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15815 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15816 emit optional traceback table if optimize_size or TARGET_ELF.
15817 * config/rs6000/rs6000.md (prefetch): New.
15819 2002-01-15 Andreas Jaeger <aj@suse.de>
15821 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15823 2002-01-15 Kazu Hirata <kazu@hxi.com>
15825 * mips-tfile.c: Fix formatting.
15827 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15829 * unroll.c (final_reg_note_copy): Fix previous commit.
15831 2002-01-14 Kazu Hirata <kazu@hxi.com>
15833 * config/h8300/h8300-protos.h: Remove the prototype for
15835 * config/h8300/h8300.c (eq_operator): Remove.
15837 2002-01-14 Richard Henderson <rth@redhat.com>
15839 * config/i386/i386.md (prefetch): Tidy.
15840 (prefetch_3dnow): Fix locality operand.
15842 2002-01-14 Richard Henderson <rth@redhat.com>
15844 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15845 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15847 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
15849 * reload1.c (reload_combine): Pass reg_sum replacement through
15850 copy_rtx in loop performing multiple changes.
15852 2002-01-14 Jakub Jelinek <jakub@redhat.com>
15854 * except.c (remove_unreachable_regions): New.
15855 (free_eh_status): Clear exception_handler_labels.
15856 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15857 (find_exception_handler_labels): Don't add the same label more than
15859 (remove_exception_handler_label): Don't die if
15860 find_exception_handler_labels hasn't been called for the current
15863 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
15865 * toplev.c (rest_of_compilation): Rebuild jump labels after
15868 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
15870 * doc/extend.texi: Move documentation of X86 built-in functions
15872 * doc/invoke.texi: From here.
15873 * doc/sourcebuild.texi: Document location of documentation for
15874 machine built-in functions.
15876 2002-01-13 Christopher Faylor <cgf@redhat.com>
15878 * cppfiles.c (TEST_THRESHOLD): New macro.
15879 (SHOULD_MMAP): Ditto.
15880 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15883 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
15885 * unroll.c (final_reg_note_copy): Properly handle
15887 (unroll_loops): Fix LOOP_CONDITION heuristics.
15889 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
15891 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15892 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15894 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
15896 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15899 2002-01-14 Tom Rix <trix@redhat.com>
15901 * config/rs6000/rs6000.md: Fix typo with sradi.
15903 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15905 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15906 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15907 (clrstrdi, clrstrsi): Adapt callers.
15909 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15911 (movti splitter): Never use register 0 as base register.
15913 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15915 * combine.c (simplify_shift_const): Always generate new rtx
15916 for shift expression instead of reusing given expression.
15918 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15920 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15921 alpha_legitimize_address unless mode is Pmode.
15923 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15925 * doc/md.texi (Modifiers): Document the '*' constraint for the
15928 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15929 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15932 2002-01-13 Richard Henderson <rth@redhat.com>
15934 * reload.c (find_reloads): Use a hard reg destination as reload reg
15935 for an input reload of the source.
15937 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15939 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15942 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15944 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15945 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15947 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15949 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15951 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15953 2002-01-12 Tom Rix <trix@redhat.com>
15955 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15958 2002-01-12 Richard Henderson <rth@redhat.com>
15960 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15962 * doc/invoke.texi: Update Alpha options.
15964 * doc/invoke.texi: Update i386 built-in function lists.
15966 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
15968 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15969 referencing outside.
15971 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15973 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15974 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15975 offsets, and change line folding.
15976 * optabs.c (expand_binop): Remove warnings.
15977 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15979 2002-01-12 Graham Stott <grahams@redhat.com>
15981 * attribs.c (handle_deprecated_attribute): constify WHAT.
15982 * diagnostic.c (warn_deprecated_use): Add braces, fixes
15983 dangling else warning and constify WHAT.
15984 * except.h (struct function, struct inline_remap): Move
15985 struct tag forward defs before all prototypes.
15986 (duplicate_eh_regions): Whitespace.
15988 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
15990 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15991 MODE_BASE_REG_CLASS.
15992 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15994 2002-01-12 Richard Henderson <rth@redhat.com>
15996 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15997 (ix86_expand_vector_move): New.
15998 (bdesc_2arg): Remove andps, andnps, orps, xorps.
15999 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
16000 Remove old prefetch builtins. Special case the logicals removed above.
16001 (ix86_expand_builtin): Likewise.
16002 (safe_vector_operand): Use V4SFmode, not TImode.
16003 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
16004 (ix86_expand_timode_binop_builtin): New.
16005 * config/i386/i386-protos.h: Update.
16006 * config/i386/i386.h (enum ix86_builtins): Update.
16007 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
16008 Use ix86_expand_vector_move in vector move expanders.
16009 (movti_internal, movti_rex64): Add xorps alternative.
16010 (sse_clrv4sf): Rename and adjust from sse_clrti.
16011 (prefetch): Don't work so hard.
16012 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
16013 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
16014 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
16016 2002-01-11 Richard Henderson <rth@redhat.com>
16018 * config/i386/mmintrin.h: New file.
16019 * config/i386/xmmintrin.h: New file.
16020 * config.gcc (i?86-*-*): Add extra_headers.
16021 * simplify-rtx.c (simplify_unary_operation): Handle saturating
16023 (simplify_binary_operation): Handle saturating arithmetic codes.
16024 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
16025 not the lowpart subreg.
16026 (ix86_expand_builtin): Return a TImode dummy register instead of 0
16028 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
16030 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16032 * conflict.c (conflict_graph_compute): Free regsets when finished.
16033 * ssa.c (compute_coalesced_reg_partition): Likewise.
16035 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16037 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
16038 every where we allocate a register.
16040 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16042 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
16043 * lcm.c (compute_earliest, compute_farthest): Likewise.
16045 2002-01-11 Janis Johnson <janis187@us.ibm.com>
16047 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
16049 2002-01-11 Janis Johnson <janis187@us.ibm.com>
16051 * doc/rtl.texi (Insns): Fix 2 typos.
16053 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
16055 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
16056 options. Use @table @gcctabopt for MMIX options. Add index
16057 entries for MMIX options. Start new paragraph with first
16058 heading of the machine-dependent options.
16060 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
16063 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
16064 * combine.c (force_to_mode): Same.
16065 * reload1.c (clear_reload_reg_in_use): Same.
16067 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
16069 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
16072 2002-01-11 Andreas Jaeger <aj@suse.de>,
16073 Brad Lucier <lucier@math.purdue.edu>
16075 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
16078 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
16080 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
16081 Protect with IN_LIBGCC.
16082 (LINK_EH_SPEC): Add required trailing space.
16084 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
16086 * c-tree.h: Move function declarations so that they are listed
16087 under the filename which contains them.
16088 (check_identifier, finish_decl_top_level,
16089 lookup_name_current_level_global, shadow_record_fields): Remove.
16091 2002-01-11 Andreas Jaeger <aj@suse.de>
16093 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
16096 2002-01-10 Richard Henderson <rth@redhat.com>
16098 * config/alpha/alpha.c (print_operand): Add 'J'.
16099 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
16100 new operand with the sequence number for the lituse. When splitting
16101 the insns, use gen_movdi_er_high_g and generate a sequence number.
16102 (gen_movdi_er_high_g): Print the sequence number if non-zero.
16104 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
16106 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
16107 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
16109 (altivec_expand_builtin): Same.
16110 (altivec_expand_stv_builtin): New.
16112 * config/rs6000/rs6000.h (rs6000_builtins): Same.
16114 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
16115 ("altivec_lvehx"): New.
16116 ("altivec_lvewx"): New.
16117 ("altivec_lvxl"): New.
16118 ("altivec_lvx"): New.
16119 ("altivec_stvx"): New.
16120 ("altivec_stvebx"): New.
16121 ("altivec_stvehx"): New.
16122 ("altivec_stvewx"): New.
16123 ("altivec_stvxl"): New.
16125 2002-01-10 Richard Henderson <rth@redhat.com>
16127 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
16128 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
16129 care not to delete instructions twice.
16131 2002-01-10 Zack Weinberg <zack@codesourcery.com>
16133 * toplev.c: Don't declare environ (it's not used anywhere).
16134 * configure.in: Don't check for declaration of environ.
16135 * config/i386/xm-mingw32.h: Don't #define environ.
16136 * config.in, configure: Regenerate.
16138 2002-01-10 Zack Weinberg <zack@codesourcery.com>
16140 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
16141 * configure: Regenerate.
16143 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
16144 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
16145 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
16147 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
16148 LIMITS_H_TEST here, not in m68k/x-next.
16149 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
16150 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
16152 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
16153 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
16154 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
16156 * config/i386/x-djgpp: Renamed i386/t-djgpp.
16157 * config/m88k/x-dolph: Renamed m88k/t-dolph.
16158 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
16159 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
16160 replacement of quadlib.asm with quadlib.c.
16162 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
16163 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
16164 config/rs6000/xm-beos.h: Delete file.
16166 * config.gcc: Update to match above changes.
16168 2002-01-10 Kazu Hirata <kazu@hxi.com>
16170 * config/h8300/h8300.h: Fix comment typos.
16171 * config/h8300/h8300.md: Likewise.
16172 * config/h8300/lib1funcs.asm: Likewise.
16174 2002-01-10 Dale Johannesen <dalej@apple.com>
16176 PR optimization/5269
16177 * unroll.c (precondition_loop_p): Make *increment be the correct
16178 sign when n_iterations known, to avoid confusing caller.
16180 2002-01-10 Kazu Hirata <kazu@hxi.com>
16182 * doc/extend.texi (deprecated): Fix a typo.
16184 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
16186 * basic-block.h (update_br_prob_note): Declare.
16187 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16188 (try_forward_edges): Care negative frequencies and update note.
16189 (outgoing_edges_match): Tweek conditional merging heuristics.
16190 (try_crossjump_to_edge): use update_br_prob_note.
16191 * cfglayout.c (fixup_reorder_chain): Likewise.
16192 * cfrtl.c (update_br_prob_note): New.
16193 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16195 * i386.c (ix86_decompose_address): Return -1 if address contains
16197 (legitimate_address_p): Require ix86_decompose_address to return 1.
16199 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16200 (cprop_insn): Likewise.
16202 2002-01-10 Kazu Hirata <kazu@hxi.com>
16204 * toplev.c: Fix formatting.
16205 * tree.c: Likewise.
16206 * tree-dump.c: Likewise.
16207 * unroll.c: Likewise.
16208 * unwind-dw2.c: Likewise.
16209 * unwind-dw2-fde.c: Likewise.
16210 * unwind-dw2-fde-glibc.c: Likewise.
16211 * unwind-sjlj.c: Likewise.
16213 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
16215 * doc/invoke.texi: Document PDP-11 options.
16217 2002-01-10 Kazu Hirata <kazu@hxi.com>
16219 * config/h8300/h8300.h: Fix formatting.
16221 2002-01-10 Ira Ruben <ira@apple.com>
16223 Add __attribute__ ((deprecated)).
16224 * extend.texi: Document __attribute__ ((deprecated)).
16225 * invoke.texi: Document -Wno-deprecated-declarations.
16226 * testsuite/g++.dg/other/deprecated.C: New C++ test.
16227 * testsuite/gcc.dg/deprecated.c: New C test.
16228 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16229 (c_common_attribute_table): Add "deprecated" entry.
16230 (handle_deprecated_attribute): New function.
16231 * c-decl.c (deprecated_states): New enum.
16232 deprecated_state: State of "deprecated" handling.
16233 (start_decl): Set deprecated_state based on attributes.
16234 (grokdeclarator): Test for deprecated uses, propagate attribute.
16235 * c-typeck.c (build_component_ref): Test for deprecated fields.
16236 (build_external_ref): Test for deprecated primaries.
16237 * diagnostic.c (warn_deprecated_use) New function to issue
16238 warnings about __attribute__ ((depricated)) references.
16239 * flags.h (warn_deprecated_decl): Extern declared for
16240 -W[no-]deprecated-declarations option.
16241 * print-tree.c (print_node): Show deprecated flag status.
16242 * toplev.c (warn_deprecated_decl): Defined.
16243 (W_options): Added "deprecated-declaration".
16244 * toplev.h (warn_deprecated_use): Extern declared.
16245 * tree.h (struct tree_common): Define deprecated_flag.
16246 (TREE_DEPRECATED): New macro to access flag.
16247 * cp/call.c (build_call): Test for deprecated calls.
16248 * cp/class.c (add_implicitly_declared_members): Set global
16249 flag to tell grokdeclarator to not issue deprecated warnings.
16250 * cp/cp-tree.h: Add extern for adding_implicit_members.
16251 * cp/decl.c (deprecated_states): New enum.
16252 (start_decl): Set deprecated_state based on attributes.
16253 (grokdeclarator): Test for deprecated uses, propagate attribute.
16254 * cp/lex.c (do_identifier): Test for deprecated primaries.
16255 * cp/typeck.c (build_component_ref): Test for deprecated fields.
16257 2002-01-10 Ira Ruben <ira@apple.com>
16259 Fix to assign attributes to inline member functions.
16260 * cp/decl.c (start_method): Handle attrlist.
16262 2002-01-10 Kazu Hirata <kazu@hxi.com>
16264 * combine.c (expand_field_assignment): Use subreg_lsb().
16266 2002-01-10 David Edelsohn <edelsohn@gnu.org>
16268 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16269 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16270 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16271 Recurse for any operand of AND as long as constant is non-zero.
16273 2002-01-10 Kazu Hirata <kazu@hxi.com>
16275 * config/h8300/h8300.md: Remove constraints from expanders.
16277 2002-01-10 Kazu Hirata <kazu@hxi.com>
16279 * varasm.c: Fix formatting.
16280 * varray.c: Likewise.
16281 * vmsdbgout.c: Likewise.
16282 * xcoffout.c: Likewise.
16284 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
16286 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16287 update edge probabilities to match.
16289 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
16291 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16293 * doc/languages.texi, doc/sourcebuild.texi: New files.
16294 * doc/configfiles.texi: Make a subsubsection. Update.
16295 * doc/configterms.texi: Add @node. Remove warning that this isn't
16296 instructions for building GCC.
16297 * doc/makefile.texi: Make a subsection.
16298 * doc/gccint.texi: Update.
16300 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
16302 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16304 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
16306 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16308 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
16310 * optabs.c (expand_fix): Look for wider integer modes first.
16312 * i386.md (mov?f): Avoid the fake const double trick for medium
16314 (min?f*/max?f*): Prohibit memory operands for i387 variant.
16315 (fop_df_4): Disable for SSE compilation.
16317 2002-01-10 Graham Stott <grahams@redhat.com>
16319 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16320 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16322 2002-01-10 Richard Henderson <rth@redhat.com>
16324 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16326 2002-01-10 Richard Henderson <rth@redhat.com>
16328 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16329 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
16331 2002-01-10 Kazu Hirata <kazu@hxi.com>
16333 * combine.c (can_combine_p): Fix a comment typo.
16335 2002-01-09 Zack Weinberg <zack@codesourcery.com>
16337 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16338 empty list correctly. Change loop index $t to $f for
16339 consistency with rest of Makefile.
16341 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
16343 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16344 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16346 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16347 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16348 (altivec_init_builtins): Same.
16349 (altivec_expand_unop_builtin): Return NULL_RTX on error.
16350 (altivec_expand_binop_builtin): Same.
16351 (altivec_expand_ternop_builtin): Same.
16354 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16355 ("altivec_vctuxs"): Fix typo.
16356 ("altivec_vnmsubfp"): Same.
16357 ("altivec_dssall"): New.
16358 ("altivec_mfvscr"): New.
16359 ("altivec_dss"): New.
16360 ("altivec_lvsl"): New.
16361 ("altivec_lvsr"): New.
16362 ("altivec_dstt"): New.
16363 ("altivec_dstst"): New.
16364 ("altivec_dststt"): New.
16365 ("altivec_dst"): New.
16367 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16368 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16370 2002-01-09 Richard Henderson <rth@redhat.com>
16372 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16374 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
16376 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16378 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16380 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16382 2002-01-09 Kazu Hirata <kazu@hxi.com>
16384 * read-rtl.c: Fix formatting.
16385 * real.c: Likewise.
16386 * regclass.c: Likewise.
16387 * regrename.c: Likewise.
16388 * reg-stack.c: Likewise.
16389 * reload1.c: Likewise.
16390 * reload.c: Likewise.
16393 2002-01-09 Kazu Hirata <kazu@hxi.com>
16395 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16396 to extract items in the expr_list chain.
16398 2002-01-09 Richard Henderson <rth@redhat.com>
16400 * config/vax/vax.c (vax_rtx_cost): Never abort.
16402 * config/vax/vax.h (REAL_ARITHMETIC): Define.
16404 2002-01-09 Jan Hubicka <jh@suse.cz>
16406 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16408 2002-01-09 Richard Henderson <rth@redhat.com>
16410 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16411 Unify code from various alternatives.
16413 2002-01-09 Richard Henderson <rth@redhat.com>
16415 * regrename.c (copy_value): Ignore the copy if the source register
16416 is present in the value chain with a narrower mode.
16418 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16420 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16421 for the c4x target. Also improve layout.
16423 2002-01-09 Richard Henderson <rth@redhat.com>
16425 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16426 * config/m32r/m32r.md (and ior xor splitters): Swap operands
16427 to match insn patterns.
16429 2002-01-09 Richard Henderson <rth@redhat.com>
16431 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16432 (copyprop_hardreg_forward_1): Likewise.
16434 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
16436 * pa.md (decrement_and_branch_until_zero): Change predicate for
16437 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16439 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
16441 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16442 gets undefined. For Darwin.
16444 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16446 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16448 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16450 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16452 2002-01-08 Richard Henderson <rth@redhat.com>
16454 * regrename.c (copy_value): Ignore overlapping copies.
16456 2002-01-08 Richard Henderson <rth@redhat.com>
16458 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16459 as needed to avoid shared structure.
16461 2002-01-08 Kazu Hirata <kazu@hxi.com>
16463 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16466 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16468 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16469 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16470 documentation of obsolete macros.
16471 * system.h: Poison these macros.
16472 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16473 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16474 config/c4x/c4x.h, config/clipper/clipper.h,
16475 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16476 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16477 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16478 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16479 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16480 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16481 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16482 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16483 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16484 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16485 config/sparc/sparc.h, config/stormy16/stormy16.h,
16486 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16487 definitions and commented out definitions of obsolete macros.
16488 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16489 of MAX_INT_TYPE_SIZE.
16491 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16493 * config/s390/s390.c (s390_preferred_reload_class): Never
16494 return ADDR_REGS if it isn't a subset of the given class.
16495 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16496 FP_REGS, but all superclasses as well.
16498 * config/s390/s390.c (s390_function_profiler): Fix thinko.
16500 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16501 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16502 must not be a const_int.
16504 2002-01-08 Richard Henderson <rth@redhat.com>
16506 * Makefile.in (toplev.o): Depend on options.h.
16507 (gcc.o): Depend on specs.h.
16509 2002-01-08 Jakub Jelinek <jakub@redhat.com>
16511 * expr.c (store_expr): Convert VOIDmode constants back to target's
16514 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16516 * doc/invoke.texi: Markup gcc as @command. Refer to
16517 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16518 of http://gcc.gnu.org/thanks.html.
16520 2002-01-08 Dale Johannesen <dalej@apple.com>
16522 * config/rs6000/rs6000.md: Add missing int register
16523 target case to movdf_low.
16525 2002-01-08 Zack Weinberg <zack@codesourcery.com>
16527 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16528 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
16529 (cppinit.o): Depend on except.h.
16530 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16531 s-specs): New rules.
16533 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16534 Don't create specs.h/options.h/gencheck.h here. Remove
16535 unnecessary variable settings from last argument of AC_OUTPUT.
16536 * config.in, configure: Regenerate.
16537 * intl.c: Hardcode package name as "gcc".
16539 * cppinit.c: Include except.h.
16540 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16542 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16543 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16544 (!)USING_SJLJ_EXCEPTIONS.
16545 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16547 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16549 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16550 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16551 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16552 documentation of obsolete macros.
16553 * system.h: Poison these macros.
16554 * config/d30v/d30v.h, config/ns32k/encore.h,
16555 config/stormy16/stormy16.h: Remove definitions and commented out
16556 definitions of obsolete macros.
16558 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
16560 * objc/objc-act.c (handle_class_ref): Mark the declaration of
16561 %sobjc_class_ref_%s as used - to prevent unwanted compiler
16564 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16566 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16567 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16568 to insn adjusting stack/frame pointer.
16569 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16570 accept operands that cause the insn to be non-splittable.
16572 2002-01-08 Graham Stott <grahams@redhat.com>
16574 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16575 (C_TYPE_FIELDS_VOLATILE): Likewise.
16576 (C_TYPE_BEING_DEFINED): Likewise.
16577 (C_IS_RESERVED_WORD): Likewise.
16578 (C_TYPE_VARIABLE_SIZE): Likewise.
16579 (C_DECL_VARIABLE_SIZE): Likewise.
16580 (C_MISSING_PROTOTYPE_WARNED): Likewise.
16581 (C_SET_EXP_ORIGINAL_CODE): Likewise.
16582 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16584 (C_DECL_ANTICIPATED): Likewise.
16585 (c_build_type_variant): Add parenthesis.
16587 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16589 * gcc.c (option_map): Remove --version.
16590 (process_command): Handle -fversion following the GNU Coding
16591 Standards. Partially addresses PR other/704.
16593 2002-01-08 Graham Stott <grahams@redhat.com>
16595 * combine.c (combine_instructions): Fix typo.
16597 2002-01-08 Graham Stott <grahams@redhat.com>
16599 * debug.h: Use "tree" and "rtx" throughout.
16601 * debug.c: Likewise.
16603 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
16605 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16606 constant pool, use the pool's version of the symbol instead.
16608 2002-01-07 Richard Henderson <rth@redhat.com>
16610 * regrename.c (find_oldest_value_reg): Ignore the value chain if
16611 the original register was copied in a mode with a fewer number of
16612 hard registers than the desired mode.
16613 (copyprop_hardreg_forward_1): Likewise.
16614 (debug_value_data): Fix loop test.
16615 * toplev.c (parse_options_and_default_flags): Reenable
16616 -fcprop-registers at -O1.
16618 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16620 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16621 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16623 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16626 * config/rs6000/rs6000.md: Add altivec predicate patterns.
16628 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
16630 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16631 (pa_output_function_prologue): Output local label at the beginning of
16632 the prologue when profiling.
16633 (hppa_profile_hook): Use the local label rather than the function label.
16634 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16636 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16638 * config/rs6000/rs6000.c (print_operand): Remove extra space.
16639 (altivec_expand_unop_builtin): Fix thinko.
16640 (altivec_expand_binop_builtin): Same.
16641 (altivec_expand_ternop_builtin): Same.
16642 (altivec_expand_builtin): Same.
16644 2002-01-07 Richard Henderson <rth@redhat.com>
16646 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16648 2002-01-07 Jason Merrill <jason@redhat.com>
16650 * unwind-dw2.c (execute_cfa_program): Use < again.
16652 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16654 * predict.c (combine_predictions_for_insn): Avoid division by zero.
16656 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16658 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16659 Don't allow -1 - x -> ~x simplifications in the first pass.
16661 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16663 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16665 (altivec_expand_binop_builtin): Same.
16666 (altivec_expand_unop_builtin): Same.
16667 (print_operand): Fix typo.
16668 (bdesc_1arg): Add vupk* variants.
16670 * rs6000.h (rs6000_builtins): Add vupk* enums.
16672 * rs6000.md: Add altivec_vupk* variants.
16674 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
16676 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16677 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16678 and last update dates.
16680 2002-01-07 Janis Johnson <janis187@us.ibm.com>
16682 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16684 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
16686 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16687 * config/avr/avr.h (CPP_SPEC): Likewise.
16688 (LINK_SPEC): Likewise.
16689 (CRT_BINUTILS_SPECS): Likewise.
16690 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16691 * doc/invoke.texi (AVR Options): Document them.
16693 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
16695 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16698 2002-01-07 Graham Stott <grahams@redhat.com>
16700 * config/i386/i386.h: Update copyright date.
16701 (HALF_PIC_PTR): Add parenthesis.
16702 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16703 (CONSTANT_ALIGNMENT): Add parenthesis.
16704 (DATA_ALIGNMENT): Likewise.
16705 (LOCAL_ALIGNMENT): Likewise.
16706 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16707 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16708 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16709 (HARD_REGNO_NREGS): Add paranethesis.
16710 (VALID_SSE_REG_MODE): Whitespace.
16711 (VALID_MMX_REG_MODE): Whitespace.
16712 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16713 (ix86_hard_regno_mode_ok): Add parenthesis.
16714 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16715 (RETURN_IN_MEMORY): Whitespace.
16716 (N_REG_CLASSES): Add parenthesis.
16717 (INTEGER_CLASS_P): Add parenthesis and wrap.
16718 (FLOAT_CLASS_P): Likewise.
16719 (SSE_CLASS_P): Likewise.
16720 (MMX_CLASS_P): Likewise.
16721 (MAYBE_INTEGER_CLASS_P): Likewise.
16722 (MAYBE_FLOAT_CLASS_P): Likewise.
16723 (MAYBE_SSE_CLASS_P): Likewise.
16724 (MAYBE_MMX_CLASS_P): Likewise.
16725 (Q_CLASS_P): Likewise.
16726 (GENERAL_REGNO_P): Uppercase macro parameter.
16727 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16728 (FP_REGNO_P): Likewise.
16729 (ANY_FP_REGNO_P): Uppercase macro parameter.
16730 (SSE_REGNO_P): Likewise.
16731 (SSE_REGNO): Likewise.
16732 (SSE_REG_P): Likewise.
16733 (SSE_FLOAT_MODE_P): Likewise.
16734 (MMX_REGNO_P): Likewise.
16735 (MMX_REG_P):Likewise.
16736 (STACK_REG_P): Likewise.
16737 (NON_STACK_REG_P): Likewise.
16738 (STACK_TOP_P): Likewise.
16739 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16740 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16741 (SECONDARY_MEMORY_NEEDED): Likewise.
16742 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16743 (MD_ASM_CLOBBERS): Whitespace and wrap.
16744 (MUST_PASS_IN_STACK): Whitespace and wrap.
16745 (RETURN_POPS_ARGS): Add parenthesis.
16746 (INIT_CUMULATIVE_ARGS): Likewise.
16747 (FUNCTION_ARG): Likewise.
16748 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16749 (SETUP_INCOMING_VARARGS): Likewise.
16750 (BUILD_VA_LIST_TYPE): Add parenthesis.
16751 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16753 (EXPAND_BUILTIN_VA_ARG): Likewise.
16754 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16755 (INITIALIZE_TRAMPOLINE): Add parenthesis.
16756 (INITIAL_ELIMINATION_OFFSET): Likewise.
16757 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16758 (REGNO_OK_FOR_BASE_P): Likewise.
16759 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16760 (REGNO_OK_FOR_DIREG_P): Likewise.
16761 (REG_OK_FOR_INDEX_P): Whitespace.
16762 (REG_OK_FOR_BASE_P): Whitespace.
16763 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16765 (FIND_BASE_TERM): Fix typo.
16766 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
16767 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16768 (SYMBOLIC_CONST; Whitespace.
16769 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
16770 (ENCODE_SECTION_INFO): Whitespace.
16771 (FINALIZE_PIC): Remove do { ... } while (0).
16772 (PROMOTE_MODE): Wrap in do { ... } while (0).
16773 (CONST_COSTS): Whitespace.
16774 (RTX_COSTS): Add paramethesis, whitespace and wrap.
16775 (REGISTER_MOVE_COST): Add parenthesis.
16776 (MEMORY_MOVE_COST): Likewise.
16777 (EXTRA_CC_MODES): Whitespace.
16778 (SELECT_CC_MODE): Add parenthesis and whitespace.
16779 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16780 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16781 (ASM_OUTPUT_LABEL): Add paramethesis.
16782 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16783 (ASM_OUTPUT_REG_POP): Likewise.
16784 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16785 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16787 * config/i386/i386.c: Update copyright.
16788 (CHECK_STACK_LIMIT): Add parenthesis.
16789 (AT_BP): Uppercase macro parameter.
16790 (x86_64_int_parameter_registers): Constify.
16791 (x86_64_int_return_registers): Likewise.
16792 (ix86_compare_op0): Use rtx.
16793 (construct_container): Constify INTREG parameter.
16794 (function_arg): Use rtx.
16796 * diagnostic.h: Update copyright date.
16797 (output_buffer_state): Add parenthesis.
16798 (output_buffer_format_args): Likewise.
16800 * combine.c (combine_instructions): Replace XEXP (links, 0)
16803 2002-01-06 H.J. Lu <hjl@gnu.org>
16805 * cfgcleanup.c (thread_jump): Fix 2 typos.
16807 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16809 * config.gcc: Add support for --enable-altivec.
16811 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16813 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16815 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16817 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16818 __objc_class_name_*.
16820 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16822 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16824 2002-01-06 Richard Henderson <rth@redhat.com>
16826 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16827 nop them out. Increment label reference count for REG_LABEL.
16828 (fill_slots_from_thread): Frob label reference count around
16829 delete_related_insns.
16831 2002-01-05 Richard Henderson <rth@redhat.com>
16833 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16836 2002-01-05 Richard Henderson <rth@redhat.com>
16838 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16839 * integrate.c (output_inline_function): Likewise.
16840 * toplev.c (rest_of_compilation): Do it here instead. Move call
16841 to remove_unnecessary_notes after emitting abstract instance.
16842 Force an emitted nested function to have its parent emited as well.
16843 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16845 (rtl_for_decl_location): Do not look at reload data structures
16846 before reload has run.
16848 2002-01-05 Kazu Hirata <kazu@hxi.com>
16850 * cse.c: Fix formatting.
16851 * dwarf2asm.c: Likewise.
16852 * dwarf2out.c: Likewise.
16853 * explow.c: Likewise.
16854 * expmed.c: Likewise.
16855 * function.c: Likewise.
16856 * gcov.c: Likewise.
16857 * gencheck.c: Likewise.
16858 * genrecog.c: Likewise.
16859 * ggc-common.c: Likewise.
16860 * ggc-page.c: Likewise.
16861 * global.c: Likewise.
16863 2002-01-05 Kazu Hirata <kazu@hxi.com>
16865 * combine.c: Fix formatting.
16867 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
16870 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16872 2002-01-05 David Edelsohn <edelsohn@gnu.org>
16874 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16875 as 1 for __powerpc64__ as well.
16877 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16879 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16882 2002-01-05 Daniel Berlin <dan@dberlin.org>
16884 * lcm.c: Revert change, due to performance regression it causes on
16885 SPEC because it's slightly more conservative (sigh, I hate
16888 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
16890 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16892 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
16894 * doc/cppinternals.texi: Update.
16896 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16898 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16899 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16901 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16902 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16903 kludge for pre-october-14th mmix versions to handle new-found bug
16904 with PUSHJ/PUSHGO and the register stack.
16905 * config/mmix/mmix.h (struct machine_function): Rename member
16906 has_call_value_without_parameters to has_call_without_parameters.
16907 All referers changed.
16908 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16909 TARGET_MASK_BRANCH_PREDICT): New macros.
16910 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16911 -mno-reg-stack-fill-bug-workaround.
16912 * config/mmix/mmix.md ("call"): Set struct machine member
16913 has_call_without_parameters.
16915 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16917 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16919 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16921 * cfgcleanup.c: Include tm_p.h
16922 (mark_effect): Fix handling of hard register; fix handling of SET
16924 2002-01-04 Kazu Hirata <kazu@hxi.com>
16926 * config/h8300/h8300.md (anonymous patterns): Check that
16927 operands are registers before using REGNO on them.
16929 2002-01-03 Roland McGrath <roland@frob.com>
16931 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16933 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16935 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16936 * c-common.h (genrtl_expr_stmt_value): Likewise.
16937 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16938 (expand_expr_stmt_value): Add maybe_last argument.
16939 Don't warn about statement with no effect if it is the last statement
16940 in expression statement.
16941 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16942 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16943 expand_expr_stmt_value.
16944 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16945 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16946 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16947 as maybe_last to expand_expr_stmt_value.
16949 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16951 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16952 be passed in, do not build it.
16953 (c_begin_if_stmt): New function.
16954 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16955 * c-common.h (c_expand_start_cond): Update prototype.
16956 (c_begin_if_stmt): Prototype new function.
16957 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16958 * c-parse.in (if_prefix): Use c_begin_if_stmt,
16959 c_begin_while_stmt and c_finish_while_stmt_cond.
16961 2002-01-04 William Cohen <wcohen@redhat.com>
16963 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16964 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16965 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16966 * config/pa/som.h (ASM_FILE_START): Likewise.
16968 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
16970 * lcm.c: Include df.h.
16971 Add available_transfer_function prototype.
16972 (compute_available): Rework to use iterative dataflow framework.
16973 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16974 with bb_info in df.h
16975 (available_transfer_function): New function.
16977 * Makefile.in (lcm.o): add df.h to dependencies.
16979 2002-01-04 Richard Henderson <rth@redhat.com>
16981 * config/alpha/alpha.c (some_operand): Accept HIGH.
16982 (input_operand): Likewise; accept simple references to globals.
16983 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16984 (alpha_const_double_ok_for_letter_p): Likewise.
16985 (alpha_extra_constraint): Likewise.
16986 (alpha_preferred_reload_class): Likewise. Do not force
16987 symbolic constants to memory.
16988 (alpha_legitimate_address_p): Accept simple references
16989 to small_symbolic_operand.
16990 (alpha_legitimize_address): New arg scratch. Be prepared to be
16991 called when no_new_pseudos. Emit simple symbolic references.
16992 Split integers into low, high, and rest.
16993 (alpha_expand_mov): Use alpha_legitimize_address.
16994 (some_small_symbolic_mem_operand): New.
16995 (split_small_symbolic_mem_operand): New.
16996 * config/alpha/alpha-protos.h: Update.
16997 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16998 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16999 (EXTRA_CONSTRAINT): Likewise.
17000 (PREFERRED_RELOAD_CLASS): Likewise.
17001 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
17002 (PREDICATE_CODES): Update.
17003 * config/alpha/alpha.md: New post-reload splitters to convert
17004 simplfied symbolic operands to the form that references $29.
17005 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
17006 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
17008 2002-01-03 Richard Henderson <rth@redhat.com>
17010 * local-alloc.c (function_invariant_p): Update commentary.
17012 2002-01-04 H.J. Lu <hjl@gnu.org>
17014 * toplev.c (rest_of_compilation): Fix a typo when calling
17017 2002-01-03 Kazu Hirata <kazu@hxi.com>
17019 * c-common.c: Fix formatting.
17020 * diagnostic.c: Likewise.
17021 * doloop.c: Likewise.
17022 * dwarf2out.c: Likewise.
17024 2002-01-03 Kazu Hirata <kazu@hxi.com>
17026 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
17027 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
17029 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
17031 * cpperror.c: Update comments and copyright.
17032 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
17033 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
17035 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
17037 * collect2.c (main): Use strcmp when testing for "-shared".
17039 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
17041 * cppmacro.c: Don't include intl.h. Update comments.
17042 (new_number_token): Allocate enough buffer for 64-bit unsigned
17043 integers; update prototype.
17044 * cppmain.c: Update comments.
17046 2002-01-03 William Cohen <wcohen@redhat.com>
17048 * function.h (struct function): Add profile.
17049 (current_function_profile): New.
17050 doc/extend.texi: Update documentation.
17051 * final.c (final_start_function): Use current_function_profile
17052 instead of profile_flag.
17053 (profile_after_prologue): Likewise.
17054 * function.c (expand_function_start): Likewise.
17055 (expand_function_start): Likewise.
17056 * config/alpha/alpha.c (direct_call_operand):
17057 (alpha_does_function_need_gp): Likewise.
17058 (alpha_expand_prologue): Likewise.
17059 * config/arm/arm.c (arm_expand_prologue): Likewise.
17060 thumb_expand_prologue: Likewise.
17061 * config/d30v/d30v.c (d30v_stack_info): Likewise.
17062 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
17063 (fr30_expand_prologue): Likewise.
17064 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
17065 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
17066 * config/i386/i386.h (FINALIZE_PIC): Likewise.
17067 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
17068 * config/i960/i960.c (i960_output_function_prologue): Likewise.
17069 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
17070 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
17071 (m32r_expand_prologue): Likewise.
17072 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
17073 (m88k_expand_prologue): Likewise.
17074 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
17075 * config/mips/mips.c (compute_frame_size): Likewise.
17076 (mips_expand_prologue): Likewise.
17077 (mips_can_use_return_insn): Likewise.
17078 * config/pa/elf.h (ASM_FILE_START): Likewise.
17079 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17080 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
17081 * config/pa/som.h (ASM_FILE_START): Likewise.
17082 * config/romp/romp.c (romp_using_r14): Likewise.
17083 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
17084 (rs6000_stack_info): Likewise.
17085 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17086 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
17087 * config/v850/v850.c (compute_register_save_size): Likewise.
17089 2002-01-03 Jakub Jelinek <jakub@redhat.com>
17091 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
17092 gen_lowpart_common fails, use gen_lowpart_SUBREG.
17094 2002-01-03 Turly O'Connor <turly@apple.com>
17096 * darwin.c (machopic_output_possible_stub_label): Don't generate
17097 stub routines for pseudo-stubs which we've just defined.
17099 2002-01-03 Kazu Hirata <kazu@hxi.com>
17101 * builtins.c: Fix formatting.
17102 * c-typeck.c: Likewise.
17103 * combine.c: Likewise.
17104 * expr.c: Likewise.
17105 * loop.c: Likewise.
17107 2002-01-03 Andreas Schwab <schwab@suse.de>
17109 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
17110 and return true if _cpp_push_next_buffer pushed a new include
17112 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
17113 _cpp_pop_file_buffer did not push a new file.
17114 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
17116 2002-01-02 Eric Christopher <echristo@redhat.com>
17118 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
17119 FIND_REG_INC_NOTE call. Update copyright.
17120 * loop.c (canonicalize_condition): Ditto.
17121 * reorg.c (delete_scheduled_jump): Ditto.
17123 2002-01-03 Kazu Hirata <kazu@hxi.com>
17125 * gcse.c: Fix formatting.
17127 2002-01-03 Graham Stott <grahams@redhat.com>
17129 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
17130 forward defs for struct tags rtx_def, union_tree, rtvec_def
17131 also output corresponding typedefs for rtx, tree, and rtvec.
17133 * system.h: Move forward defs for struct tags rtx_def, union_tree,
17134 rtvec_def along with corresponding typedefs for rtx, tree, and
17135 rtvec to config.h, hconfig.h, tconfig.h.
17137 2002-01-03 Graham Stott <grahams@redhat.com>
17139 * tree.h: Update copyright date.
17140 (IS_EXPR_CODE_CLASS): Add parenthesis.
17141 (TREE_SET_CODE): Add whitespace.
17142 (TREE_CHECK): Add parenthesis.
17143 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
17144 (CST_OR_CONSTRUCTOR_CHECK):
17145 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
17146 (TREE_SYMBOL_REFERENCED): Whitespace.
17147 (INT_CST_LT): Likewise.
17148 (INT_CST_LT_UNSIGNED): Likewise.
17149 (tree_real_cst): Unwrap comment.
17150 (tree_string): Likewise.
17151 (tree_complex): Likewise.
17152 (IDENTIFIER_POINTER): correct cast.
17153 (SAVE_EXPR_CONTEXT): Whitespace.
17154 (EXPR_WFL_FILENAME_NODE): Likewise.
17155 (EXPR_WFL_FILENAME): Remove parenthesis.
17156 (DECL_ORIGIN): Add parenthesis.
17157 (DECL_FROM_INLINE): Use NULL_TREE.
17158 (build_int_2): Whitespace.
17159 (build_type_variant): Add parenthesis.
17161 * gcc/jcf-parse.c: Update copyright date.
17162 (yyparse): Constify resource_filename.
17164 2002-01-03 Graham Stott <grahams@redhat.com>
17166 * rtl.h: Update copyright date.
17167 (RTL_CHECK1): Wrap long line.
17168 (RTL_CHECK2): Likewise.
17169 (RTL_CHECKC1): Wrap long line and whitespace.
17170 (RTL_CHECKC2): Likewise.
17171 (XWINT): Whitespace.
17177 (XBITMAP): Likewise.
17179 (XBBDEF): Likewise.
17181 (X0WINT): Likewise.
17183 (X0UINT): Likewise.
17187 (X0MODE): Likewise.
17188 (X0BITMAP): Likewise.
17189 (X0TREE): Likewise.
17190 (X0BBDEF): Likewise.
17191 (X0ADVFLAGS): Likewise.
17192 (X0CSELIB): Likewise.
17193 (X0MEMATTR): Likewise.
17194 (XCWINT): Likewise.
17196 (XCUINT): Likewise.
17200 (XCMODE): Likewise.
17201 (XCBITMAP): Likewise.
17202 (XCTREE): Likewise.
17203 (XCBBDEF): Likewise.
17204 (XCADVFLAGS): Likewise.
17205 (XCCSELIB): Likewise.
17206 (XC2EXP): Likewise.
17207 (INSN_UID): Likewise.
17208 (PREV_INSN): Likewise.
17209 (PATTERN): Likewise.
17210 (INSN_CODE): Likewise.
17211 (PUT_REG_NOTE_KIND): Likewise.
17212 (CODE_LABEL_NUMBER): Likewise.
17213 (NOTE_SOURCE_FILE): Likewise.
17214 (NOTE_BLOCK): Likewise.
17215 (NOTE_EH_HANDLER): Likewise.
17216 (NOTE_RANGE_INFO): Likewise.
17217 (NOTE_LIVE_INFO): Likewise.
17218 (NOTE_BASIC_BLOCK): Likewise.
17219 (NOTE_EXPECTED_VALUE): Likewise.
17220 (NOTE_LINE_NUMBER): Likewise.
17221 (LABEL_NAME): Likewise.
17222 (LABEL_NUSES): Likewise.
17223 (LABEL_ALTERNATE_NAME): Likewise.
17224 (ADDRESSOF_DECL): Likewise.
17225 (JUMP_LABEL): Likewise.
17226 (LABEL_NEXTREF): Likewise.
17228 (ORIGINAL_REGNO: Likewise.
17229 (HARD_REGISTER_NUM_P): Add parenthesis.
17230 (SUBREG_REG): Whitespace.
17231 (SUBREG_BYTE): Likewise.
17232 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17233 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17234 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17235 (ASM_OPERANDS_INPUT_VEC): Likewise.
17236 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17237 (ASM_OPERANDS_INPUT): Likewise.
17238 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17239 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17240 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17241 (ASM_OPERANDS_INPUT_MODE): Likewise.
17242 (ASM_OPERANDS_SOURCE_FILE): Likewise.
17243 (ASM_OPERANDS_SOURCE_LINE): Likewise.
17244 (MEM_SET_IN_STRUCT_P): Minor reformat.
17245 (TRAP_CONDITION): Whitespace.
17246 (TRAP_CODE): Likewise.
17247 (COND_EXEC_TEST): Likewise.
17248 (COND_EXEC_CODE): Likewise.
17249 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17250 (PHI_NODE_P): Add parenthesis.
17251 (plus_constant): Whitespace and add parenthesis.
17253 2002-01-03 Kazu Hirata <kazu@hxi.com>
17255 * config/avr/avr.c: Fix comment typos.
17256 * config/c4x/c4x.md: Likewise.
17257 * config/dsp16xx/dsp16xx.h: Likewise.
17258 * config/dsp16xx/dsp16xx.md: Likewise.
17259 * config/i386/i386.md: Likewise.
17260 * config/ia64/ia64.c: Likewise.
17261 * config/m32r/m32r.h: Likewise.
17262 * config/m68hc11/m68hc11.md: Likewise.
17263 * config/mmix/mmix.c: Likewise.
17264 * config/mn10200/mn10200.c: Likewise.
17265 * config/romp/romp.c: Likewise.
17266 * config/sh/sh.c: Likewise.
17267 * config/stormy16/stormy16.c: Likewise.
17268 * config/stormy16/stormy16.h: Likewise.
17269 * config/stormy16/stormy16.md: Likewise.
17271 2002-01-03 Graham Stott <grahams@redhat.com>
17273 * loop.h: Update copyright date.
17274 (LOOP_MOVABLES): Fix typo.
17275 (LOOP_REGS): Likewise.
17276 (LOOP_IVS): Likewise.
17278 2002-01-03 Graham Stott <grahams@redhat.com>
17280 * cppinit.c: Update copyright date.
17281 Don't include output.h
17282 * Makefile.in: Update copyright date.
17285 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
17288 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17289 (-pthread) Add to RS/6000 options.
17291 2002-01-02 Kazu Hirata <kazu@hxi.com>
17293 * except.c: Fix comment typos.
17294 * loop.c: Likewise.
17295 * varasm.c: Likewise.
17296 * doc/tm.texi: Fix a typo.
17298 2002-01-02 Jakub Jelinek <jakub@redhat.com>
17300 * c-typeck.c (output_init_element): Allow initializing static storage
17301 duration objects with compound literals.
17303 2002-01-02 Richard Henderson <rth@redhat.com>
17305 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17308 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17310 * gcc.c (default_compilers): Const-ify.
17311 * mips-tdump.c (stab_names): Likewise.
17312 * mips-tfile.c (map_coff_types, map_coff_storage,
17313 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17314 pseudo_ops_t, pseudo_ops): Likewise.
17315 * protoize.c (default_include): Likewise
17317 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17318 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17319 Add array size in declaration.
17320 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17321 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17322 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17323 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17324 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17325 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17326 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17327 emtens, make_nan): Const-ify.
17328 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17329 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17331 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
17333 * config.gcc (ia64-*-*): Set extra_headers.
17334 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
17335 * config/alpha/t-osf: Remove.
17336 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17338 2002-01-02 David Edelsohn <edelsohn@gnu.org>
17340 * config/rs6000/t-aix43: Revert previous change.
17342 2002-01-02 Jason Merrill <jason@redhat.com>
17344 * c-decl.c (c_expand_body): Call outlining_inline_function when
17345 emitting an inline function out of line.
17347 2002-01-02 Richard Henderson <rth@redhat.com>
17349 * dwarf2out.c (limbo_die_node): Add created_for member.
17350 (new_die): New argument created_for. Update all callers.
17351 (mark_limbo_die_list): New.
17352 (dwarf2out_init): Register limbo_die_list as a root.
17353 (dwarf2out_finish): Force insert limbo dies into their function
17356 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
17359 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17361 2002-01-02 Kazu Hirata <kazu@hxi.com>
17363 * config/h8300/fixunssfsi.c: Update copyright.
17366 * config/h8300/h8300.c: Update copyright.
17367 Eliminate warnings.
17369 2002-01-02 Kazu Hirata <kazu@hxi.com>
17371 * config/romp/romp.c: Fix comment formatting.
17372 * config/romp/romp.h: Likewise.
17373 * config/romp/romp.md: Likewise.
17374 * config/s390/s390.c: Likewise.
17375 * config/stormy16/stormy16.c: Likewise.
17376 * config/stormy16/stormy16.h: Likewise.
17378 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
17380 * c-common.h (genrtl_expr_stmt_value): Declare.
17381 * c-semantics.c (genrtl_goto_stmt): Redirect to...
17382 (genrtl_goto_stmt_value): ... this new function. Pass new
17383 argument down to expand_expr_stmt_value, taking
17384 TREE_ADDRESSABLE into account.
17385 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17386 STMT_EXPR as addressable, i.e., one whose result we want.
17387 * expr.c (expand_expr): Don't save expression statement value
17388 of labeled_blocks or loop_exprs.
17389 * stmt.c (expand_expr_stmt): Redirect to...
17390 (expand_expr_stmt_value): ... this new function. Use new
17391 argument to tell whether to save expression value.
17392 (expand_end_stmt_expr): Reset last_expr_type and
17393 last_expr_value if we don't have either.
17394 * tree-inline.c (declare_return_variable): Mark its use
17395 statement as addressable.
17396 * tree.h: Document new use of TREE_ADDRESSABLE.
17397 (expand_expr_stmt_value): Declare.
17399 2002-01-01 Tom Rix <trix@redhat.com>
17401 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17402 rs6000_emit_allocate_stack.
17404 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
17406 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17407 ${srcdir}/ginclude/ to every entry in extra_headers.
17408 * configure: Regenerate.
17409 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17410 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17411 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17412 * ginclude/proto.h: Rename to config/convex/proto.h.
17414 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17416 * attribs.c (handle_vector_size_attribute): Use host_integerp
17417 and tree_int_cst; remove warnings.
17418 * caller-save.c (insert_restore): Add cast to get rid of warning.
17419 (insert_save): Likewise.
17420 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17421 * regmove.c (find_matches): Add temporary var to kill a warning.
17423 2002-01-01 Douglas B Rupp <rupp@gnat.com>
17425 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17426 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17427 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17428 (vms-dwarf2eh.o): Add Makefile rule.
17429 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17430 * config/alpha/vms-dwarf2eh.asm: New file.
17432 * gcc.c (delete_if_ordinary): Delete all versions.
17434 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
17436 * config/mmix/mmix.md: Update FIXME to not mention
17438 (MMIX_rJ_REGNUM): New define_constants constant.
17439 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17440 "*movdicc_real"): Adjust contraints formatting.
17441 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17442 for branch prediction.
17443 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17445 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17446 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17447 number. Delete related FIXMEs.
17448 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17449 from number to MMIX_rJ_REGNUM.
17450 (TARGET_MASK_BRANCH_PREDICT): New.
17451 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17452 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
17453 value. Add -mbranch-predict and -mno-branch-predict.
17454 (TARGET_VERSION): Drop date.
17455 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17456 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17457 for finding out global symbols.
17458 (mmix_asm_output_labelref): Revert condition for global symbol.
17459 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17460 (mmix_print_operand_punct_valid_p): A '+' is valid.
17462 See ChangeLog.6 for earlier changes.