1 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
3 * diagnostic.c (diagnostic_finish): Rename to output_flush.
4 (clear_disgnostic_info): Rename to output_clear_data. Use false
5 instead of 0 for boolean value.
6 Adjust function call throughout.
8 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
10 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
11 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
13 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
15 * d30v.h (CPP_PREDEFINES): Replace with
16 (TARGET_CPU_CPP_BUILTINS): New.
18 2002-06-02 Roger Sayle <roger@eyesopen.com>
20 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
22 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
24 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
26 2002-06-02 Richard Henderson <rth@redhat.com>
28 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
30 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
32 Support for C++ constructors/destructors.
33 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
34 instead of looping if main() returns.
35 (asm_file_start): Output global symbols that cause .data and .bss
36 initialization code to be linked in, unconditionally for now.
37 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
38 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
39 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
41 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
43 (__do_copy_data, __do_clear_bss): New.
44 (__do_global_ctors, __do_global_dtors): New.
45 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
48 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
50 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
51 (CPP_SPEC, CPP_PREDEFINES): Kill.
52 * c4x/rtems.h (CPP_PREDEFINES): Kill.
53 (TARGET_OS_CPP_BUILTINS): New.
55 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
57 * Makefile.in (tracer.o): New.
58 * params.def (TRACER_*): New options.
59 * rtl.h (tracer): Declare.
60 * timevar.def (TV_TRACER): New.
61 * toplev.c (dump_file_index): Add DFI_tracer.
62 (dump_file_info): Add tracer.
64 (lang_indepdenent_options): Add tracer.
65 (rest_of_compilation): Call tracer.
67 * invoke.texi (-ftracer): Document.
68 (--param tracer-*): Document.
70 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
72 * tree-inline.c (expand_call_inline): Make the statement
73 expression we generate have a COMPOUND_STMT.
75 2002-06-01 Roger Sayle <roger@eyesopen.com>
77 * gcse.c (cprop_cc0_jump): Function deleted.
78 (cprop_jump): Take an additional argument which is the possibly
79 NULL cc setting insn immediately before the conditional jump.
80 When a MODE_CC set is present, substitute it into the JUMP_INSN
81 before attempting the constant propagation.
82 (cprop_insn): Recognize cc setters followed by conditional jumps
83 as a special case. Use cprop_jump instead of cprop_cc0_jump.
84 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
85 (find_bypass_set): New function based upon find_avail_set used by
86 cprop, but finds constant expressions available at the end of
88 (bypass_block): New function. Given a basic block that begins
89 with a conditional jump and multiple incoming edges, perform
90 the jump bypass optimization.
91 (bypass_conditional_jumps): New function. Call bypass_block with
92 each suitable basic block in the CFG using a simple single pass.
94 2002-06-01 Roger Sayle <roger@eyesopen.com>
96 * tree.c (real_minus_onep): New function to test for -1.0.
97 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
99 2002-06-01 Roger Sayle <roger@eyesopen.com>
101 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
102 and "!p && !q" into "(p|q) == 0" under suitable conditions.
104 2002-06-01 Andreas Jaeger <aj@suse.de>
106 * cppexp.c (cpp_classify_number): Cast precission to int for
107 correct printf format.
109 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
111 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
112 expected, but don't really exist: atmega83, atmega85, attiny10.
113 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
114 emulations for all devices.
115 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
116 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
118 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
120 * config/h8300/h8300-protos.h: Add a prototype for
121 h8300_shift_needs_scratch_p.
122 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
123 * config/h8300/h8300.h (OK_FOR_R): New.
124 (OK_FOR_S): Likewise.
125 (OK_FOR_T): Likewise.
126 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
127 * config/h8300/h8300.md (anonymous shift patterns): Use
128 constraints R, S, and T.
130 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
132 * basic-block.h (struct basic_block_def): New field loop_father.
133 (BB_VISITED): New flag.
134 (struct loop): New field pred, removed field shared.
135 (struct loops): New field parray.
136 (LOOP_EXITS_DOMS): Removed.
137 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
138 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
139 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
140 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
141 verify_loop_structure): Declare.
142 * cfg.c (entry_exit_blocks): Initialize loop_father field.
143 * cfganal.c (dfs_enumerate_from): New function.
144 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
145 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
146 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
147 flow_loop_dump, flow_loops_dump, flow_loops_free,
148 flow_loop_tree_node_add, flow_loop_level_compute,
149 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
150 flow_loop_outside_edge_p): Modified for new infrastructure.
151 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
152 redirect_edge_with_latch_update, flow_loop_free): New static functions.
153 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
154 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
155 find_common_loop, verify_loop_structure, loop_latch_edge,
156 loop_preheader_edge): New functions.
157 (flow_loops_cfg_dump): Do not show dominators, as this information
158 does not remain up to date long.
159 (flow_loops_find): Store results in new format.
160 * predict.c (propagate_freq, estimate_probability,
161 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
164 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
166 * except.c (nothrow_function_p): Walk epilogue delay list
167 checking the insn, not the chain for potential throws.
169 2002-05-31 Zack Weinberg <zack@codesourcery.com>
171 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
172 (install): Refer to install-cpp directly.
173 (uninstall-cpp): Folded into uninstall rule.
174 * configure.in: Delete all code relating to --disable-cpp.
175 * configure: Regenerate.
176 * config/t-install-cpp: Delete.
178 2002-05-31 Richard Henderson <rth@redhat.com>
180 * configure.in (HAVE_AS_TLS): Add alpha tests.
181 * configure: Rebuild.
182 * config/alpha/alpha.c (TARGET_AS_TLS): New.
183 (alpha_tls_size, alpha_tls_size_string): New.
184 (overide_options): Set it. Always install machine_status hooks.
185 (input_operand): Accept got tls predicates.
186 (local_symbol_p): Merge into ...
187 (local_symbolic_operand): ... here. Reject tls symbols.
188 (global_symbolic_operand): Likewise.
189 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
190 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
191 (tp16_symbolic_operand, tp32_symbolic_operand): New.
192 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
193 (alpha_encode_section_info): Handle TLS symbols.
194 (alpha_strip_name_encoding): Likewise.
195 (alpha_legitimate_address_p): Likewise.
196 (alpha_legitimize_address): Likewise.
197 (alpha_expand_mov): Early exit to avoid nop moves.
198 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
199 (alpha_init_machine_status, alpha_mark_machine_status,
200 alpha_free_machine_status): Always define.
201 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
202 (print_operand, print_operand_address): Add TLS relocs.
203 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
204 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
205 (TARGET_SWITCHES): Add -mtls-kernel.
206 (alpha_tls_size, alpha_tls_size_string): New.
207 (TARGET_OPTIONS): Add -mtls-size=.
208 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
209 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
210 (ASM_OUTPUT_LABELREF): Skip %.
211 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
212 (PREDICATE_CODES): Update.
213 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
214 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
215 UNSPEC_TP, UNSPECV_SET_TP): New.
216 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
217 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
218 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
219 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
220 (call_value_osf_2_er): Accept anything as op4.
221 * config/alpha/alpha-protos.h: Update.
222 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
224 2002-05-31 Zack Weinberg <zack@codesourcery.com>
226 * cppinit.c (append_include_chain): Always pay attention to
227 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
230 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
232 * target.h: Fix formatting.
233 * timevar.h: Likewise.
235 * toplev.c: Likewise.
236 * toplev.h: Likewise.
238 * tree-dump.h: Likewise.
240 * tree-inline.h: Likewise.
241 * unroll.c: Likewise.
242 * unwind-dw2.c: Likewise.
243 * unwind-dw2-fde.c: Likewise.
244 * unwind-dw2-fde-glibc.c: Likewise.
245 * unwind-dw2-fde.h: Likewise.
246 * unwind.h: Likewise.
247 * unwind-sjlj.c: Likewise.
248 * varasm.c: Likewise.
249 * varray.h: Likewise.
250 * vmsdbg.h: Likewise.
251 * vmsdbgout.c: Likewise.
252 * xcoffout.h: Likewise.
254 2002-05-31 Igor Shevlyakov <igor@microunity.com>
256 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
257 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
259 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
261 * gcc.c (cpp_unique_options): Remove "-d" options.
262 (cpp_debug_options): New spec string.
263 (default_compilers): Use it.
264 * objc/lang-specs.h: Likewise.
266 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
268 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
269 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
270 * gcc/mklibgcc.in: Likewise.
271 * gcc/config/arc/t-arc: Likewise.
272 * gcc/configure.in: Likewise.
273 * gcc/configure: Regenerate.
275 2002-05-31 Stan Shebs <shebs@apple.com>
276 Turly O'Connor <turly@apple.com>
278 * c-decl.c (struct binding_level): Change int field n_incomplete
279 to tree list incomplete_list.
280 (clear_binding_level): Init field with NULL.
281 (pushdecl): Add incomplete type to list.
282 (mark_binding_level): Mark the incomplete list.
283 (finish_struct): Scan the incomplete list for types instead
284 of all decls in the current binding level.
286 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
288 * pa.c (output_millicode_call): Add missing '%' characters.
289 (output_call): Likewise.
291 2002-05-31 David Edelsohn <edelsohn@gnu.org>
293 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
294 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
296 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
298 * varasm.c (mark_constant_pool): Walk epilogue delay list
299 checking the insn, not the chain for potential constants.
301 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
303 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
305 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
307 * i386.c (classify_argument): Properly handle base types.
309 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
310 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
313 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
315 * gcse.c (gcse_emit_move_after): New.
316 (pre_delete, hoist_store): Use it.
318 * reload1.c (emit_input_reload_insns): Use constrain_operands
319 instead of constraint_accepts_reg_p to verify optimization.
320 (constraint_accepts_reg_p): Kill
322 * reload1.c (reload_cse_delete_noop_set): Kill.
323 (reload_cse_simplify): use delte_insn_and_edges.
325 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
327 * cfgloop.c (flow_loops_find): Initialize first and last fields
330 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
332 * c-common.c (builtin_define_std): Correct logic.
334 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
336 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
337 (output_call): Likewise.
339 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
341 * pa.c: Move output.h include after tree.h include.
342 (pa_asm_output_mi_thunk): Constify identifier lab.
344 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
346 * config/ns32k/ns32k.h: Define named constants for the
347 bits in target_flags and use them.
348 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
350 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
352 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
353 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
354 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
355 default scheduling model.
356 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
357 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
358 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
359 * doc/install.texi (hppa*-*-*): Document default scheduling.
361 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
363 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
365 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
367 * config.gcc (ns32k-*-netbsd*): Set tm_file to
368 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
369 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
370 netbsd.h, or netbsd-aout.h.
372 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
374 * longlong.h (count_trailing_zeros): Add missing \, and clean up
375 whitespace in __ns32000__ case.
377 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
379 * expr.c (expand_expr): Output partially zeroed out vectors with
382 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
384 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
386 (shl*-*-netbsdelf*): New targets.
387 * config/sh/netbsd-elf.h: New file.
389 2002-05-30 Richard Henderson <rth@redhat.com>
390 Eric Botcazou <ebotcazou@multimania.com>
393 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
394 to unsigned int for op1 comparisons. Use gen_int_mode.
396 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
398 * expmed.c (const_mult_add_overflow_p): New.
399 * expr.h: Declare it.
400 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
401 Don't eliminate the biv if the giv has a constant multiplier and
402 the rhs argument of the comparison does satisfy the predicate.
403 Use expand_mult_add to compute the replacement constant.
405 2002-05-30 Osku Salerma <osku@iki.fi>
407 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
408 (c_common_get_alias_set): Handle it.
409 * doc/extend.texi: Document it.
411 2002-05-30 Richard Henderson <rth@redhat.com>
413 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
414 * toplev.c (process_options): Don't check it.
415 * doc/tm.texi: Don't document it.
416 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
417 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
418 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
419 frame pointer optimization if current_function_profile.
421 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
423 * langhooks.c: Fix formatting.
424 * langhooks.h: Likewise.
426 * libgcc2.c: Likewise.
428 * local-alloc.c: Likewise.
432 2002-05-30 Marc Espie <espie@openbsd.org>
434 * config.gcc (sparc64-*-openbsd*): New.
435 * config/sparc/openbsd1-64.h: New.
436 * config/sparc/openbsd64.h: New.
438 2002-05-30 Jeff Law <law@redhat.com>
440 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
441 a dead insn with a REG_RETVAL note when the entire libcall is not
442 dead and remove the associated REG_LIBCALL note at the same time.
444 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
446 * lcm.c (output.h): #include.
447 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
448 as an ordinary block.
449 (optimize_mode_switching): Don't pretend that the exit block is
450 an ordinary block, or handle sucessors of entry block specially.
451 Instead, split edges from entry block and to exit block, and
452 put a computing definition on the thus gained post-entry-block,
453 and a need on the pre-exit-block.
455 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
457 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
458 * rtl.texi: Document 'B'
460 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
462 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
464 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
466 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
468 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
469 const0_rtx instead of NULL_RTX when in error.
470 (altivec_expand_abs_builtin): Same.
471 (rs6000_expand_binop_builtin): Same.
472 (altivec_expand_predicate_builtin): Same.
473 (altivec_expand_stv_builtin): Same.
474 (rs6000_expand_ternop_builtin): Same.
475 (altivec_expand_builtin): Same.
477 2002-05-29 David S. Miller <davem@redhat.com>
479 * rtl.h (clear_emit_caches): Delete.
480 * integrate.c (output_inline_function): Don't call it.
481 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
482 (clear_emit_caches): Delete definition.
483 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
485 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
487 * config/mmix/mmix.c: Include real.h.
488 (mmix_constant_address_p): Remove redundant test before switch.
490 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
492 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
493 only if not already defined.
495 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
497 * config/h8300/h8300-protos.h: Remove prototypes for
498 ok_for_bclr and small_power_of_two.
499 * config/h8300/h8300.c (small_power_of_two): Remove.
500 (ok_for_blcr): Likewise.
501 (fix_bit_operand): Make WHAT deal with an integer instead of a
502 constraint character.
503 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
504 (CONST_OK_FOR_P): Likewise.
505 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
506 CONST_OK_FOR_P any more.
507 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
512 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
514 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
515 (CPP_PREDEFINES): Make sure this is undefined.
516 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
517 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
518 or -U__MIPSEB__ before defining one or the other. Instead,
519 use %(subtarget_endian_default) if neither -EB nor -EL are
521 (SUBTARGET_EXTRA_SPECS): Define.
522 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
525 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
527 * doc/md.texi (Patterns): Note pattern condition pitfall
530 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
532 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
533 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
534 ternary operations from here...
535 (rs6000_expand_builtin): ...to here.
536 New argument expandedp.
537 Change all instances of altivec_expand_binop_builtin to
538 rs6000_expand_binop_builtin.
539 (altivec_expand_unop_builtin): Rename to
540 rs6000_expand_unop_builtin.
541 (altivec_expand_binop_builtin): Rename to
542 rs6000_expand_binop_builtin.
543 (altivec_expand_ternop_builtin): Rename to
544 rs6000_expand_ternop_builtin.
546 2002-05-29 Richard Henderson <rth@redhat.com>
548 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
549 (TARGET_BI_ARCH): Likewise.
550 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
551 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
552 (TARGET_64BIT_DEFAULT): Default to 0.
553 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
555 2002-05-29 Richard Henderson <rth@redhat.com>
557 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
558 (get_pc_thunk_name): New.
559 (output_set_got): Use it.
560 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
561 into linkonce sections.
563 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
565 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
566 (CPP_PREDEFINES): Make sure this is undefined.
567 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
568 (CPP_SUBTARGET_SPEC): Don't provide different versions for
569 default-32 and default-64. Just always use %(netbsd_cpp_spec).
570 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
571 cpp_subtarget_spec64. Add netbsd_cpp_spec.
572 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
573 (CPP_PREDEFINES): Make sure this is undefined.
574 (SUBTARGET_EXTRA_SPECS): Define.
575 (CPP_SPEC): Use %(netbsd_cpp_spec).
577 2002-05-29 Jeff Law <law@redhat.com>
579 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
581 * flow.c (propagate_one_insn): Do not remove a dead insn if it
582 contains a REG_RETVAL note.
584 * haifa-sched (sched_analyze): Remove another useless clearing
585 of SCHED_GROUP_P I missed yesterday.
587 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
588 * pa.c (pa_asm_output_mi_thunk): New function.
589 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
591 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
592 Marek Michalkiewicz <marekm@amelek.gda.pl>
594 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
595 (avr_asm_only_p): Make non-static.
596 (enum avr_arch): Remove.
597 (avr_arch_types): New.
598 (avr_mcu_types): Update.
599 (avr_override_options): Use avr_arch_types table instead of switch.
600 * avr.h (CPP_PREDEFINES): Die.
601 (avr_base_arch_macro, avr_extra_arch_macro): New.
602 (TARGET_CPU_CPP_BUILTINS): New.
603 (CPP_SPEC, EXTRA_SPECS): Simplify.
604 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
607 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
609 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
610 NETBSD_OS_CPP_BUILTINS_AOUT.
611 (SUBTARGET_EXTRA_SPECS): Define.
612 (CPP_SPEC): Use %(netbsd_cpp_spec).
614 2002-05-29 Richard Henderson <rth@redhat.com>
616 * config/i386/i386.c (ix86_output_function_epilogue): New.
617 (TARGET_ASM_FUNCTION_EPILOGUE): New.
618 (pic_label_name): Remove.
619 (pic_labels_used): New.
620 (ix86_asm_file_end): Emit one pc load stub for each register used.
621 (output_set_got): Generate deep pc load to any register.
622 (ix86_select_alt_pic_regnum): New.
623 (ix86_save_reg): Don't save pic register if we can find a valid
624 call-clobbered replacement.
625 (ix86_expand_prologue): If we found a valid replacement, renumber
626 pic_offset_table_rtx.
627 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
628 pic_offset_table_rtx after reload.
629 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
630 * config/i386/i386.md (set_got): Make insn, not expander.
631 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
633 2002-05-29 Richard Henderson <rth@redhat.com>
635 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
636 alignment for alloca.
638 2002-05-29 Richard Henderson <rth@redhat.com>
640 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
641 (print_operand_address): Only add rip for symbolic addresses
642 for which we do not have another relocation type.
644 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
646 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
647 (EXTRA_SPECS): Add netbsd_cpp_spec.
648 (CPP_SPEC): Use %(netbsd_cpp_spec).
649 (CPP_PREDEFINES): Remove.
650 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
651 (EXTRA_SPECS): Define.
652 (CPP_SPEC): Use %(netbsd_cpp_spec).
653 (CPP_PREDEFINES): Remove.
655 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
658 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
661 2002-05-29 Eric Christopher <echristo@redhat.com>
663 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
664 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
666 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
668 * config/fr30/fr30.md: Remove previous restriction on splits.
669 Enforce conformance through gen_lowpart and cont_int_operand.
670 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
671 as the assembler does not support ".bss".
673 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
675 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
676 (CPP_PREDEFINES): Remove.
677 (SUBTARGET_EXTRA_SPECS): Define.
678 (CPP_SPEC): Use %(netbsd_cpp_spec).
679 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
680 (CPP_PREDEFINES): Remove.
681 (SUBTARGET_EXTRA_SPECS): Define.
682 (CPP_SPEC): Use %(netbsd_cpp_spec).
683 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
684 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
685 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
687 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
689 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
690 Zack Weinberg <zack@codesourcery.com>
692 * cppexp.c (cpp_num): Move to cpplib.h.
694 (interpret_float_suffix, interpret_int_suffix): New.
695 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
696 (cpp_classify_number, cpp_interpret_integer): New.
697 (interpret_number): Remove.
698 (eval_token): Update to use new routines.
699 * cpphash.h (cpp_num_part): Move to cpplib.h.
700 * cppinit.c (cpp_post_options): Set warn_long_long.
701 * cpplib.h (struct cpp_options): Add warn_long_long.
702 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
703 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
704 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
705 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
706 cpp_interpret_integer): New.
708 2002-05-29 Joel Sherrill <joel@OARcorp.com>
710 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
712 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
714 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
715 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
716 (CPP_SUBTARGET_SPEC): Define.
717 (SUBTARGET_EXTRA_SPECS): Define.
720 2002-05-29 Chris Lattner <sabre@nondot.org>
722 * ssa.c (rename_insn_1): Rename uses of undefined registers to
723 prevent confusion if/when the register is defined.
725 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
728 * config/cris/cris.md: Fix typos and thinkos in comments.
729 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
731 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
732 ("*mov_sideqi_mem"): Similar, but for operand 3.
733 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
734 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
735 Remove spurious mode specifier on operand 2.
737 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
739 * config/h8300/h8300-protos.h: Remove the prototype for
741 Add prototypes for single_one_operand and single_zero_operand.
742 * config/h8300/h8300.c (o_operand): Remove.
743 (single_one_operand): New.
744 (single_zero_operand): Likewise.
745 (print_operand): For 'V' operand, and the operand with 0xff.
746 For 'V' and 'W' operands, do not and the bit position with 7.
747 * config/h8300/h8300.md (various anonymous patterns): Replace
748 use of exact_log2 with single_one_operand/single_zero_operand.
750 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
752 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
754 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
756 * config/s390/s390.c (legitimate_pic_operand_p): Do not
757 accept symbolic LARL operands.
758 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
761 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
763 * config/s390/s390.md (cmpstr_64/31): Mark whole
764 input registers as used.
766 2002-05-28 Richard Henderson <rth@redhat.com>
768 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
769 not current_function_uses_pic_offset_table and
770 current_function_uses_const_pool; examine current_function_profile.
771 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
772 input to blockage if needed.
773 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
774 (legitimize_pic_address): Likewise. Set regs_ever_live for
775 pic_offset_table_rtx when invoked during reload.
776 * config/i386/i386.h (FINALIZE_PIC): Remove.
777 * config/i386/i386.md (tablejump): Reformat. Do not set
778 current_function_uses_pic_offset_table.
779 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
780 (blockage): Accept anything as operand 0.
782 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
784 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
785 common CPP built-ins for all NetBSD a.out targets.
786 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
787 common CPP built-ins for all NetBSD ELF targets.
788 * config/netbsd.h: Add missing notice.
789 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
790 for all NetBSD targets.
791 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
792 for all NetBSD targets using an LP64 code model.
793 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
796 2002-05-28 Richard Henderson <rth@redhat.com>
798 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
799 update if UPDATE_LIFE_LOCAL.
801 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
803 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
805 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
806 Jason R. Thorpe <thorpej@wasabisystems.com>
808 config/sh reorganization to factor out endianness and coff:
810 * config/sh/little.h: New file.
811 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
812 defined, define to 0 to select big-endian.
813 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
814 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
815 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
816 * config/sh/t-be: New file.
817 * config/sh/t-le: New file.
819 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
820 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
821 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
822 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
823 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
824 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
825 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
826 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
827 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
828 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
829 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
830 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
831 (LINK_SPEC): Define to SH_LINK_SPEC.
832 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
833 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
834 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
835 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
836 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
837 * config/sh/coff.h: New file.
838 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
839 (TARGET_OBJFMT_CPP_BUILTINS): Define.
840 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
841 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
842 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
843 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
844 (PTRDIFF_TYPE): Likewise.
845 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
846 (CPP_PREDEFINES): Don't define.
847 (TARGET_OBJFMT_CPP_BUILTINS): Define.
848 (LINK_SPEC): Define to SH_LINK_SPEC.
849 (LINK_EMUL_PREFIX): Redefine.
850 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
851 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
852 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
853 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
854 (TARGET_OS_CPP_BUILTINS): Define.
855 (TARGET_DEFAULT): Redefine.
856 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
857 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
858 (LINK_SPEC): Don't redefine.
859 (LINK_DEFAULT_CPU_EMUL): Redefine.
860 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
861 * sh.c (sh_asm_named_section): Don't declare / define.
862 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
863 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
864 (sh64-*-elf* tm_file): Likewise.
865 (sh-*-rtemself* tm_file): Likewise.
866 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
867 (sh-*-linux* tmake_file): Add sh/t-le.
868 (sh-*-rtems* tm_file): Add sh/coff.h
869 (sh-*-* tm_file): Likewise.
871 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
873 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
874 CONSTANT_POOL_ADDRESS_P.
876 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
878 2002-05-28 David Edelsohn <edelsohn@gnu.org>
879 Jeff Law <law@redhat.com>
881 * optabs.c (expand_binop): Fix nwords sign warnings.
882 generate pseudo for add_optab.
884 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
885 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
887 2002-05-28 Marc Espie <espie@openbsd.org>
889 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
890 inherited from gas.h.
891 (ASM_QUAD): Undef. OpenBSD does not support it.
893 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
895 * doc/install.texi (binaries): Change mingw binaries
896 link to www.mingw.org.
898 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
900 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
902 2002-05-28 Richard Henderson <rth@redhat.com>
904 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
905 bottom alignment for leaf functions.
907 2002-05-28 Zack Weinberg <zack@codesourcery.com>
909 * config/pa/milli32.S, config/pa/lib1funcs.asm,
910 config/sparc/sol2-g1.asm: Delete unused files.
912 2002-05-28 Richard Henderson <rth@redhat.com>
914 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
916 * flow.c (calculate_global_regs_live): Rename call_used to
917 invalidated_by_call. Initialize from regs_invalidated_by_call
918 instead of call_used_regs.
920 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
923 2002-05-28 Zack Weinberg <zack@codesourcery.com>
925 * tree.h: Don't include real.h.
926 Forward-declare struct realvaluetype.
927 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
929 (TREE_REAL_CST_PTR): New accessor.
930 (TREE_REAL_CST): Update.
931 * real.h: Include machmode.h.
932 (realvaluetype): Make it struct realvaluetype, not a typedef.
933 (build_real): Prototype here.
935 * tree.c: Include real.h.
936 (build_real): Allocate the REAL_VALUE_TYPE as a separate
937 object in GC memory, set TREE_REAL_CST_PTR to point to it.
938 (build_real_from_int_cst): Use build_real.
939 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
942 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
943 fold-const.c, print-tree.c, real.c: Include real.h.
944 * Makefile.in: Update dependency lists.
946 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
948 * basic-block.h (last_basic_block): Declare.
949 (expunge_block_nocompact): Declaration removed.
950 (compact_blocks): Declare.
951 * cfg.c (last_basic_block): New variable.
952 (expunge_block_nocompact): Removed.
953 (expunge_block): Do not compact basic blocks.
954 (compact_blocks): New.
955 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
957 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
959 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
960 real positions of blocks.
961 (delete_unreachable_blocks): Simplified -- quadratic behavior now
963 (cleanup_cfg): Compact blocks.
964 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
965 basic_block_info varray.
966 (flow_delete_block): Comment update.
967 (back_edge_of_syntactic_loop_p): Modify position check code.
968 (verify_flow_info): Update checking.
969 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
970 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
971 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
972 indices no longer change.
973 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
975 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
976 * profile.c (branch_prob): Compact blocks.
977 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
980 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
982 * config/h8300/h8300.md (two anonymous patterns): New.
984 2002-05-28 David S. Miller <davem@redhat.com>
986 * config/sparc/sparc.md (cpu): Tidy.
987 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
989 (in_call_delay): Delete reference to 'return' type.
990 (eligible_for_return_delay, in_return_delay, define_delay
991 referencing those): Delete.
992 (rest of file): Use new type attributes as appropriate.
993 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
994 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
995 * config/sparc/ultra1_2.md (us1_single): New reservation.
996 (us1_ialuX): Likewise.
997 * config/sparc/ultra3.md (us3_single): Likewise.
998 (us3_ialuX): Likewise.
999 (us3_imul, us3_idiv): Tweak.
1001 2002-05-28 Richard Henderson <rth@redhat.com>
1003 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
1006 2002-05-28 Richard Henderson <rth@redhat.com>
1008 * config.gcc: Obsolete mn10200.
1010 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
1012 * cppexp.c (interpret_number): Optimize for single-digit
1013 and less-than-half-precision cases.
1014 (num_trim, num_positive, num_div_op): Cast constants.
1016 2002-05-27 Bo Thorsen <bo@suse.de>
1018 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
1019 3.1 branch. The file was made by Jakub Jelinek.
1020 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1021 support so multilib doesn't break. And don't define this at all
1022 when -Dinhibit_libc is used.
1023 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
1024 * config/i386/t-linux64: Implement full multilib support. Patch
1025 originally done by Andreas Jaeger and Jakub Jelinek.
1027 2002-05-27 Roger Sayle <roger@eyesopen.com>
1029 * c-common.c: Add support for __attribute__((nothrow)) to specify
1030 that a function cannot throw an exception (using TREE_NOTHROW).
1031 (handle_nothrow_attribute): New function to process this attribute.
1033 * doc/extend.texi: Document the new nothrow function attribute.
1035 2002-05-27 H.J. Lu (hjl@gnu.org)
1037 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
1038 (num_positive): Likewise.
1039 (num_div_op): Likewise.
1041 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1043 * c-common.c (c_common_init): Always use intmax_t.
1045 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1047 * c-common.c (c_common_init): Use intmax_t for now.
1049 2002-05-24 Andrew Haley <aph@redhat.com>
1051 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
1052 if T is a boolean type.
1054 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1056 * basic-block.h (last_basic_block): Defined as synonym for
1058 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1059 flow_depth_first_order_compute, flow_preorder_transversal_compute,
1060 flow_dfs_compute_reverse_init): Replaced relevant occurences of
1061 n_basic_blocks with last_basic_block.
1062 * cfgbuild.c (make_edges): Likewise.
1063 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1064 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1065 * combine.c (combine_instructions): Likewise.
1066 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1067 iterative_dataflow_bitmap): Likewise.
1068 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1069 calc_idoms, idoms_to_doms): Likewise.
1070 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1072 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1073 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1074 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1075 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1076 delete_null_pointer_checks, compute_code_hoist_vbeinout,
1077 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1078 compute_store_table, build_store_vectors): Likewise.
1079 * haifa-sched.c (sched_init): Likewise.
1080 * ifcvt.c (if_convert): Likewise.
1081 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1082 pre_edge_lcm, compute_available, compute_nearerout,
1083 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1085 * predict.c (estimate_probability, process_note_prediction,
1086 note_prediction_to_br_prob): Likewise.
1087 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1088 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1089 * regrename.c (copyprop_hardreg_forward): Likewise.
1090 * resource.c (init_resource_info): Likewise.
1091 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1092 init_regions, schedule_insns): Likewise.
1093 * ssa-ccp.c (ssa_const_prop): Likewise.
1094 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1095 * ssa.c (compute_dominance_frontiers,
1096 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1098 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1099 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1102 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
1104 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1106 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1107 hoist_insn_after, hoist_insn_to_edge): New.
1109 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
1111 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1112 (PROP_FINAL): Include.
1113 * flow.c (life_analysis, update_life_info,
1114 init_propagate_block_info, mark_set_1, mark_used_rgs):
1115 Support SCAN_DEAD_STORE.
1117 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
1119 * c-common.c (c_common_init): Set CPP arithmetic precision.
1120 * cppexp.c (cpp_num_part): Move typedef ...
1121 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1122 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1123 (sanity_checks): Update.
1125 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
1127 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1128 (mkheaders): New rule.
1129 (install-mkheaders): New rule.
1130 * configure.in (all_outputs): Add mkheaders.
1131 * configure: Regenerate.
1132 * mkheaders.in: New file.
1134 2002-05-26 Jakub Jelinek <jakub@redhat.com>
1136 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1138 2002-05-26 Andreas Jaeger <aj@suse.de>
1140 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1142 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
1144 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1145 right_shift): Remove.
1146 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1148 (struct op): Use cpp_num.
1149 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1150 num_part_mul, num_unary_op, num_binary_op, num_negate,
1151 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1152 num_div_op, num_lshift, num_rshift, append_digit): New.
1153 (interpret_number, parse_defined, eval_token, reduce): Update
1154 for two-integer arithmetic.
1155 (binary_handler): New typedef.
1157 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1158 (_cpp_parse_expr, reduce): Update to handle two-integers.
1159 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1161 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
1163 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1164 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1165 branch insn into account, do not assume 1.
1166 (avr_out_sbxx_branch): New function. Optimize cases of skipping
1167 over single word insn. Handle upper half of I/O space too.
1168 * config/avr/avr.md (*sbrx_branch): Use it.
1169 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1170 (*sbix_branch, *sbix_branch_bit7): Likewise.
1171 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1172 Use RTL peepholes to optimize register operand sign tests.
1174 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
1176 * config/avr/avr.c (avr_asm_only_p): New variable.
1177 (avr_override_options): Set it here if AVR1.
1178 (asm_file_start): Test it here, report an error if set.
1180 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
1182 * alias.c: Fix formatting.
1183 * attribs.c: Likewise.
1184 * bb-reorder.c: Likewise.
1185 * bitmap.c: Likewise.
1186 * bitmap.h: Likewise.
1187 * builtins.c: Likewise.
1189 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
1191 * reload.c (find_valid_class): Accept new argument DEST,
1192 choose class accordingly.
1193 (push_reload): Update callers.
1195 2002-05-26 Andreas Jaeger <aj@suse.de>
1197 * combine.c (combine_instructions): Do not indent #if for
1200 2002-05-25 Richard Henderson <rth@redhat.com>
1202 * c-pragma.c (apply_pragma_weak): Convert value identifier to
1203 string for decl_attributes.
1204 (handle_pragma_weak): Call assemble_alias if we're modifying
1207 2002-05-25 Richard Henderson <rth@redhat.com>
1210 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1211 using rtl instead of fprintf.
1212 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1213 * config/sparc/sparc-protos.h: Update.
1215 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
1217 * Makefile.in (C_COMMON_H): Fix.
1218 Update other targets.
1219 * c-common.c: Don't include c-lex.h.
1220 (builtin_define_with_value): Make static and prototype.
1221 (builtin_define_std): Move from c-lex.h.
1222 * c-common.h (init_c_lex): Move from c-lex.h.
1223 * c-decl.c: Don't include c-lex.h.
1224 (make_pointer_declarator): Move from c-parse.in.
1225 * c-lex.c: Don't include c-lex.h.
1227 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1228 (make_pointer_declarator): Move to c-decl.c.
1229 * c-pragma.c: Don't include c-lex.h.
1230 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1231 * c-tree.h (make_pointer_declarator): New.
1233 * passes.texi, tm.texi: Update.
1235 * Make-lang.in: Update and correct.
1236 * objc-act.c: Don't include c-lex.h or cpplib.h.
1238 * treetree.c: Don't include c-lex.h.
1240 * darwin-c.c: Don't include c-lex.h.
1241 * c4x/c4x-c.c: Don't include c-lex.h.
1242 * c4x/t-c4x: Update.
1243 * i370/i370-c.c: Don't include c-lex.h.
1244 * i370/t-i370: Update.
1245 * i960/i960-c.c: Don't include c-lex.h.
1246 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1247 * i960/t-960bare: Update.
1248 * i960/t-vxworks: Update.
1249 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1250 * rs6000/t-darwin: Update.
1251 * rs6000/t-rs6000-c-rule: Update.
1252 * v850/v850-c.c: Don't include c-lex.h.
1253 * v850/v850.c: Don't include c-lex.h or cpplib.h.
1256 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1258 * tree.def: Fix typos.
1259 * doc/install.texi: Likewise.
1261 2002-05-25 Richard Henderson <rth@redhat.com>
1263 * configure.in (HAVE_AS_TLS): Add ia64 test.
1264 * configure: Rebuild.
1265 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1266 (override_options): Set it.
1267 (TARGET_HAVE_TLS): New.
1268 (sdata_symbolic_operand): Look for 's'.
1269 (tls_symbolic_operand): New.
1270 (ia64_expand_load_address): Abort for tls symbols.
1271 (gen_tls_get_addr): New.
1272 (gen_thread_pointer): New.
1273 (ia64_expand_move): Split out from movdi. Handle tls symbols.
1274 (rtx_needs_barrier): Add new unspecs.
1275 (ia64_encode_section_info): Handle tls symbols.
1276 (ia64_strip_name_encoding): Strip two encoding chars.
1277 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1278 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1279 (TARGET_OPTIONS): Add tls-size.
1280 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1281 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1282 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1283 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1284 (movsf, movdf): Likewise.
1285 (movdi_symbolic): Use match_scratch. Don't split if we won't
1286 have a scratch availiable.
1287 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1288 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1289 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1290 * config/ia64/ia64-protos.h: Update.
1291 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1292 sdata_symbolic_operand.
1293 (ASM_OUTPUT_LABELREF): Strip two characters.
1295 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1297 * combine.c (simplify_set): Remove an unnecessary subreg.
1299 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
1301 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1303 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1305 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1307 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
1309 2002-05-25 Roger Sayle <roger@eyesopen.com>
1311 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1312 (cond (compare x y) 0) into the equivalent (cond x y).
1314 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1316 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
1318 2002-05-24 Zack Weinberg <zack@codesourcery.com>
1320 * config.gcc: Remove all stanzas for previously obsoleted
1321 systems. Where necessary, add explicit error stanzas to
1322 prevent removed systems from being misidentified as something
1323 else. Begin a fresh obsoletions list, with the systems that
1324 were reprieved last round.
1325 * doc/install.texi: Remove all mention of dead targets.
1326 * fixinc/mkfixinc.sh: Likewise.
1328 * config/arm/arm.h: Bit 31 of target_flags is no longer
1331 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1332 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1333 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1334 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1335 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1336 config/alpha/osf12.h, config/alpha/osf2or3.h,
1337 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1338 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1339 config/clipper/clipper-protos.h, config/clipper/clipper.c,
1340 config/clipper/clipper.h, config/clipper/clipper.md,
1341 config/clipper/clix.h, config/convex/convex-protos.h,
1342 config/convex/convex.c, config/convex/convex.h,
1343 config/convex/convex.md, config/convex/fixinc.convex,
1344 config/convex/proto.h, config/elxsi/elxsi-protos.h,
1345 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1346 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1347 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1348 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1349 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1350 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1351 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1352 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1353 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1354 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1355 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1356 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1357 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1358 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1359 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1360 config/m68k/altos3068.h, config/m68k/apollo68.h,
1361 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1362 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1363 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1364 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1365 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1366 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1367 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1368 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1369 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1370 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1371 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1372 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1373 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1374 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1375 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1376 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1377 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1378 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1379 config/mips/dec-osf1.h, config/mips/elflorion.h,
1380 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1381 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1382 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1383 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1384 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1385 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1386 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1387 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1388 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1389 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1390 config/ns32k/sequent.h, config/ns32k/tek6000.h,
1391 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1392 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1393 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1394 config/sparc/rtems.h, config/we32k/we32k-protos.h,
1395 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1398 2002-05-24 Richard Henderson <rth@redhat.com>
1400 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1401 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1402 * config/i386/i386.c (tls_model_chars): Add leading space.
1403 (tls_symbolic_operand): Don't bias by 1.
1404 (legitimize_address): Don't unbias by 1.
1406 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1408 * lcm.c (optimize_mode_switching): Change bb used as indices
1411 2002-05-24 Richard Henderson <rth@redhat.com>
1413 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1414 of update_life_info_in_dirty_blocks.
1416 2002-05-24 Jakub Jelinek <jakub@redhat.com>
1419 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1421 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
1423 PR preprocessor/6780
1424 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1426 2002-05-24 Jim Blandy <jimb@redhat.com>
1428 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1429 entry with a type code of zero, marking the end of the compilation
1432 2002-05-24 Richard Henderson <rth@redhat.com>
1434 * varasm.c (asm_output_bss): Always output one byte.
1435 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1437 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1439 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1442 2002-05-24 Andreas Jaeger <aj@suse.de>
1444 * ggc-page.c (alloc_page): Cast variables of type size_t to
1445 unsigned long, adjust printf format string.
1446 (ggc_alloc): Likewise.
1447 (ggc_print_statistics): Likewise.
1448 (ggc_print_statistics): Correct printf format string for SCALE to
1451 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
1453 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1455 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
1456 Zack Weinberg <zack@codesourcery.com>
1458 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1460 * dwarf2out.c (lookup_filename): Properly quote filename in .file
1461 directive in assembly file.
1462 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1463 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1464 * config/pj/pj.h (ASM_FILE_START): Likewise.
1465 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1466 * config/avr/avr.c (asm_file_end): Likewise.
1467 * toplev.c (output_quoted_string): Handle possibly signed plain
1469 * toplev.h (output_clean_symbol_name): Declare
1470 * toplev.c (output_clean_symbol_name): Define.
1471 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1472 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1474 2002-05-24 Alan Modra <amodra@bigpond.net.au>
1476 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1478 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
1480 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1481 of size of unsigned.
1483 2002-05-23 Richard Henderson <rth@redhat.com>
1485 * configure.in (HAVE_AS_TLS): New test.
1486 * config.in, configure: Rebuild.
1487 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1488 (ix86_tls_dialect_string, ix86_tls_dialect): New.
1489 (override_options): Set it.
1490 (tls_model_chars, tls_symbolic_operand): New.
1491 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1492 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1493 (local_exec_symbolic_operand): New.
1494 (get_pic_label_name): Merge into output_set_got.
1495 (ix86_asm_file_end): Emit pic_label_name if defined.
1496 (legitimate_constant_p, constant_address_p): New.
1497 (legitimate_pic_operand_p): New.
1498 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1499 (legitimate_address_p): Likewise.
1500 (ix86_encode_section_info): Rename from i386_; handle tls decls.
1501 (ix86_strip_name_encoding): New.
1502 (get_thread_pointer): New.
1503 (legitimize_address): Handle tls symbols.
1504 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1506 (struct machine_function): Add some_ld_name.
1507 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1508 (print_operand) [&]: Use it. Handle UNSPEC_TP.
1509 (output_addr_const_extra): New.
1510 (maybe_get_pool_constant): New.
1511 (ix86_split_to_parts): Use it.
1512 (ix86_expand_move): Handle tls symbols.
1513 (ix86_tls_get_addr): New.
1514 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1515 (TARGET_OPTIONS): Add tls-dialect.
1516 (CONSTANT_ADDRESS_P): Use new out-of-line function.
1517 (LEGITIMATE_CONSTANT_P): Likewise.
1518 (LEGITIMATE_PIC_OPERAND_P): Likewise.
1519 (TARGET_STRIP_NAME_ENCODING): New.
1520 (ASM_OUTPUT_LABELREF): New.
1521 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1522 (OUTPUT_ADDR_CONST_EXTRA): New.
1523 (PREDICATE_CODES): Update.
1524 (ix86_tls_dialect, ix86_tls_dialect_string): New.
1525 * config/i386/i386.md: Regroup and renumber unspec constants.
1526 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1527 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1528 (tls_global_dynamic, tls_local_dynamic_base): New.
1529 (tls_local_dynamic_once): New.
1530 * config/i386/i386-protos.h: Update.
1532 2002-05-23 Richard Henderson <rth@redhat.com>
1534 * genemit.c (gen_insn): Print file:lineno comment before function.
1536 * gensupport.c (struct queue_elem): Add filename member.
1537 (queue_pattern): Initialize it; update all callers.
1538 (process_include): Don't free filename.
1539 (read_md_rtx): Set read_rtx_filename.
1541 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
1543 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1545 2002-05-23 Richard Henderson <rth@redhat.com>
1547 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1549 2002-05-23 Richard Henderson <rth@redhat.com>
1551 * doc/extend.texi (C++98 Thread-Local Edits): Update with
1552 commentary from Mark.
1554 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1556 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1557 Use FOR_EACH_BB macros to iterate over basic block chain.
1558 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1559 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1561 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1562 find_unreachable_blocks, create_edge_list, verify_edge_list,
1563 remove_fake_edges, add_noreturn_fake_exit_edges,
1564 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1566 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1567 find_sub_basic_blocks): Likewise.
1568 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1570 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1572 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1574 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1575 commit_edge_insertions, commit_edge_insertions_watch_calls,
1576 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1577 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1578 * conflict.c (conflict_graph_compute): Likewise.
1579 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1580 df_modified_p, df_refs_unlink, df_dump): Likewise.
1581 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1582 * final.c (compute_alignments): Likewise.
1583 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1584 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1585 count_or_remove_death_notes): Likewise.
1586 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1587 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1588 classic_gcse, compute_transp, cprop, compute_pre_data,
1589 compute_transpout, invalidate_nonnull_info,
1590 delete_null_pointer_checks_1, delete_null_pointer_checks,
1591 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1592 compute_store_table, build_store_vectors, store_motion): Likewise.
1593 * global.c (global_conflicts, mark_elimination): Likewise.
1594 * graph.c (print_rtl_graph_with_bb): Likewise.
1595 * haifa-sched.c (sched_init): Likewise.
1596 * ifcvt.c (if_convert): Likewise.
1597 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1598 compute_available, compute_nearerout, compute_rev_insert_delete,
1599 optimize_mode_switching): Likewise.
1600 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1601 * predict.c (estimate_probability, note_prediction_to_br_prob,
1602 propagate_freq, counts_to_freqs, expensive_function_p,
1603 estimate_bb_frequencies): Likewise.
1604 * profile.c (instrument_edges, get_exec_counts,
1605 compute_branch_probabilities, compute_checksum, branch_prob,
1606 find_spanning_tree): Likewise.
1607 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1608 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1610 * regclass.c (scan_one_insn, regclass): Likewise.
1611 * regmove.c (mark_flags_life_zones, regmove_optimize,
1612 record_stack_memrefs): Likewise.
1613 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1614 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1615 * resource.c (find_basic_block): Likewise.
1616 * sched-ebb.c (schedule_ebbs): Likewise.
1617 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1618 find_single_block_region, find_rgns, schedule_insns)
1619 * sibcall.c (optimize_sibling_and_tail_recursive_call)
1620 * ssa-ccp.c (optimize_unexecutable_edges,
1621 ssa_ccp_df_delete_unreachable_insns): Likewise.
1622 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1623 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1624 rename_block, convert_to_ssa, compute_conservative_reg_partition,
1625 compute_coalesced_reg_partition, rename_equivalent_regs,
1626 convert_from_ssa): Likewise.
1627 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1628 process_for_unwind_directive): Likewise.
1630 * df.c (FOR_ALL_BBS): Removed.
1631 * gcse.c (struct null_pointer_info): Type of current_block field
1633 (struct reg_avail_info): Type of last_bb field changed.
1634 * config/ia64/ia64.c (block_num): Removed.
1635 (need_copy_state): Type changed.
1638 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1640 * cppinit.c (mark_named_operators): Split out from init_builtins.
1641 (cpp_finish_options): Call it from here instead.
1643 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1645 * builtin-attrs.def: Update copyright years.
1646 (ATTR_NONNULL): New attribute identifier.
1647 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1648 attribute tree lists.
1649 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1651 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1652 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1653 attribute lists. Chain the appropriate nonnull attribute.
1654 * c-format.c (check_format_arg): Remove null format string
1656 * testsuite/gcc.dg/format/null-1.c: New test.
1658 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1660 * Makefile.in (ADAC): Define.
1662 (.SUFFIXES): Move before language makefile fragments.
1663 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1665 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1667 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1670 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1672 * cfg.c (dump_flow_info): Print results of
1673 maybe_hot/probably_never_executed predicates.
1674 * toplev.c (open_dump_file): Print function frequency.
1676 2002-05-23 David S. Miller <davem@redhat.com>
1678 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1681 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1683 * c-common.c (warn_nonnull): Declare.
1684 (c_common_attribute_table): Add "nonnull" attribute.
1685 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1686 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1687 check_function_arguments_recurse): New functions.
1688 * c-common.h (warn_nonnull): Declare extern.
1689 (check_function_arguments, check_function_arguments_recurse): New
1691 * c-decl.c (c_decode_option): Add -Wnonnull option.
1692 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1694 (format_check_context): New structure.
1695 (check_format_info_recurse): Remove recursion and rename to...
1696 (check_format_arg): ...this. Update comment.
1697 (check_format_info): Use check_function_arguments_recurse.
1698 * c-typeck.c (build_function_call): Call check_function_arguments
1699 instead of check_function_format.
1700 * doc/extend.texi: Document "nonnull" attribute.
1701 * doc/invoke.texi: Docuemnt -Wnonnull option.
1702 * testsuite/gcc.dg/nonnull-1.c: New test.
1703 * testsuite/gcc.dg/nonnull-2.c: New test.
1705 2002-05-23 David S. Miller <davem@redhat.com>
1707 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1708 * cfgcleanup.c (cleanup_cfg): If it is set do not
1709 attempt to delete trivially dead insns.
1710 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1711 * toplev.c (rest_of_compilation): Document non-trivial aspect
1712 the RTL before optimize_save_area_alloca is run.
1714 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1716 * c-lex.c (indent_level): Remove.
1717 (cb_file_change, c_lex): Remove indent level handling.
1718 * c-lex.h (indent_level): Remove.
1719 * input.h (struct file_stack): Remove indent_level.
1720 * toplev.c (push_srcloc): Remove indent_level handling.
1722 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1725 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1726 of x in constraints for clarity.
1727 (sse_mov?fcc split): abort if op2 == op3.
1728 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1729 sse_movsfcc_const0_4): Add earlyclobber.
1730 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1731 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1732 Use Y instead of x in constraints.
1734 2002-05-23 Richard Henderson <rth@redhat.com>
1736 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1737 (C++98 Thread-Local Edits): New subsection.
1739 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1740 (ix86_arch): Set type to enum processor_type.
1742 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1743 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1745 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1747 * configure.in: Fix as version test for binutils 2.12.1 releases
1749 * configure: Rebuilt.
1751 2002-05-23 Richard Henderson <rth@redhat.com>
1753 * config/i386/i386.c (get_pic_label_name): New.
1754 (load_pic_register): Remove.
1755 (output_set_got): New.
1756 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1757 * config/i386/i386.md (UNSPEC_SET_GOT): New.
1758 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1759 (prologue_set_got, prologue_get_pc): Remove.
1760 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1761 (builtin_setjmp_receiver): Use gen_set_got.
1762 * config/i386/i386-protos.h: Update.
1764 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1766 * gcse.c (hash_expr): Do not use alias set for hashing.
1768 2002-05-22 Kevin Buettner <kevinb@redhat.com>
1770 * dbxout.c (dbxout_class_name_qualifiers): New function.
1771 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1773 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1775 * cpperror.c (_cpp_begin_message): No special casing
1777 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1778 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1779 * cpplib.c (do_include_common): Use DL_ERROR.
1780 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1782 * fix-header.c (read_scan_file): Update.
1784 2002-05-22 Richard Henderson <rth@redhat.com>
1786 * config/i386/i386.c (ix86_expand_call): New function, extracted
1787 from md call patterns. Add pic_offset_table_rtx to
1788 CALL_INSN_FUNCTION_USAGE when needed.
1789 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1790 (call_value_pop, call_value, untyped_call): Likewise.
1791 (call_exp, call_value_exp): Remove.
1792 * config/i386/i386-protos.h: Update.
1794 2002-05-22 Richard Henderson <rth@redhat.com>
1796 * varasm.c (default_section_type_flags): Check for VAR_DECL
1797 before using DECL_THREAD_LOCAL.
1799 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1801 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1802 (STARTFILE_SPEC): Delete PE crt0.o.
1803 * config/rs6000/aix51.h: Same.
1804 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1805 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1806 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1807 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1808 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1810 2002-05-22 Richard Henderson <rth@redhat.com>
1812 * varasm.c (default_section_type_flags): Handle tls data and
1814 (default_unique_section): Handle tls sections.
1816 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1818 * configure.in (CROSS): Define NATIVE_CROSS.
1819 * configure: Regenerate.
1820 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1821 (startfile_prefix_spec): New var.
1822 (static_specs): Add startfile_prefix_spec.
1823 (do_spec_2): Split out from..
1825 (main): Process startfile_prefix_spec.
1826 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1828 (STARTFILE_PREFIX_SPEC): Define.
1829 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1832 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1834 * cpperror.c: Fix formatting.
1835 * cppexp.c: Likewise.
1836 * cppfiles.c: Likewise.
1837 * cpphash.c: Likewise.
1838 * cpphash.h: Likewise.
1839 * cppinit.c: Likewise.
1840 * cpplex.c: Likewise.
1841 * cpplib.c: Likewise.
1842 * cppmacro.c: Likewise.
1843 * cppmain.c: Likewise.
1844 * cppspec.c: Likewise.
1846 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1848 * combine.c (force_to_mode): Use gen_int_mode.
1849 Don't clear CONST_INT bits outside of mode.
1851 2002-05-22 Richard Henderson <rth@redhat.com>
1853 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1854 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1856 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1859 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1860 if DECL_SIZE_UNIT is INTEGER_CST.
1862 2002-05-22 Richard Henderson <rth@redhat.com>
1864 * flow.c (life_analysis): Delete broken reg_label check.
1866 2002-05-22 Richard Henderson <rth@redhat.com>
1868 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1869 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1871 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1873 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1874 (embed-bb.c): New rule.
1875 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1876 * config/sh/embed_bb.c: Delete.
1878 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1880 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1882 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1884 * config/h8300/h8300.md (*andorqi3): New.
1886 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
1888 PR preprocessor/6517
1889 * Makefile.in: Update.
1890 * c-common.c (c_common_post_options): Add preprocessor
1891 errors to the error count.
1892 * c-lang.c (c_post_options): Kill.
1893 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1894 * hooks.h: Add header guards.
1895 * langhooks-def.h: Include hooks.h.
1896 (LANG_HOOKS_POST_OPTIONS): Update.
1897 * langhooks.h (struct lang_hooks): Update post_options.
1898 * toplev.c (parse_options_and_default_flags): Update.
1900 * objc-lang.c (objc_post_options): Kill.
1901 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1903 2002-05-21 Bruce Korb <bkorb@gnu.org>
1905 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1906 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1907 * fixinc/fixincl.x: regen.
1909 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
1911 * cfgbuild.c: Fix formatting.
1913 * cfgcleanup.c: Likewise.
1914 * cfglayout.c: Likewise.
1915 * cfgloop.c: Likewise.
1916 * cfgrtl.c: Likewise.
1918 2002-05-21 Richard Henderson <rth@redhat.com>
1920 * c-common.h (enum rid): Add RID_THREAD.
1921 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1922 (grokdeclarator): Grok __thread.
1923 * c-parse.in (reswords): Add __thread.
1924 (rid_to_yy): Add RID_THREAD.
1926 * tree.h (DECL_THREAD_LOCAL): New.
1927 (struct tree_decl): Add thread_local_flag.
1928 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1929 * tree.c (staticp): TLS variables are not static.
1931 * target-def.h (TARGET_HAVE_TLS): New.
1932 * target.h (have_tls): New.
1933 * output.h (SECTION_TLS): New.
1934 * varasm.c (assemble_variable): TLS variables can't be common for now.
1935 (default_section_type_flags): Handle .tdata and .tbss.
1936 (default_elf_asm_named_section): Handle SECTION_TLS.
1937 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1939 * flags.h (flag_tls_default): Declare.
1940 * toplev.c (flag_tls_default): Define.
1941 (display_help): Display help for it.
1942 (decode_f_option): Set it.
1944 * doc/extend.texi (Thread-Local): New node describing language-level
1945 thread-local storage.
1946 * doc/invoke.texi (-ftls-model): Document.
1948 * fixinc/inclhack.def (thread_keyword): New.
1949 * fixinc/fixincl.x: Rebuild.
1951 2002-05-21 Jeffrey A Law <law@redhat.com>
1953 * optabs.c (expand_binop): For double-word integer multiplies,
1954 do not compute intermediate results into something that is
1955 not a register (such as a SUBREG or MEM).
1957 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1958 (ix86_sched_reorder): Make sure to initialize scheduling
1959 data even when there's only one insn in the ready queue.
1961 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1963 * genautomata.c (reserv_sets_hash_value): Fix a typo.
1965 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1967 * genautomata.c (reserv_sets_hash_value): Define hash_value as
1968 set_el_t. Transform the hash value into unsigned.
1969 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1970 (transform_3): Add code to process `(A,B)+(D,E)'.
1972 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
1974 * reload1.c (do_output_reload): Run delete_output_reload
1977 2002-05-21 Roger Sayle <roger@eyesopen.com>
1980 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1981 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
1982 (can_store_by_pieces): ... and here to limit the largest mode used.
1983 Add a comment to document this function.
1985 2002-05-21 Richard Henderson <rth@redhat.com>
1987 * flow.c (life_analysis): Fix test for deleted label.
1989 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
1991 * doc/tm.texi: Fix typo.
1993 2002-05-21 Zack Weinberg <zack@codesourcery.com>
1995 * c-common.c (c_common_init): Set options->unsigned_char from
1997 (cb_register_builtins): Define __STRICT_ANSI__ and
1998 __CHAR_UNSIGNED__ here...
1999 * cppinit.c (init_builtins): Not here.
2000 (cpp_create_reader): unsigned_char option defaults to 0, not
2001 !DEFAULT_SIGNED_CHAR.
2002 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
2003 and -funsigned-char.
2005 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
2006 * cpphash.c (_cpp_init_hashtable): Don't set it.
2007 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
2008 directly. Clarify comment.
2010 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2012 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
2013 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
2014 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
2015 BASIC_BLOCK (n_basic_blocks - 1).
2016 * cfganal.c (can_fallthru, flow_call_edges_add,
2017 flow_preorder_transversal_compute): Too.
2018 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
2019 find_sub_basic_blocks): Too.
2020 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
2021 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
2022 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
2023 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
2024 * combine.c (this_basic_block): Type changed to basic_block.
2025 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
2026 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2027 get_last_value, distribute_notes, distribute_links): Too.
2028 * final.c (compute_alignments): Too.
2029 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
2030 * function.c (thread_prologue_and_epilogue_insns): Too.
2031 * gcse.c (compute_code_hoist_vbeinout): Too.
2032 * global.c (build_insn_chain): Too.
2033 * ifcvt.c (find_if_block, find_cond_trap): Too.
2034 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
2035 * regmove.c (regmove_optimize): Too.
2036 * resource.c (find_basic_block): Too.
2037 * sched-ebb.c (schedule_ebbs): Too.
2038 * ssa-dce.c (find_control_dependence, find_pdom): Too.
2040 2002-05-21 Andreas Jaeger <aj@suse.de>
2042 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
2044 2002-05-21 Richard Henderson <rth@redhat.com>
2046 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
2047 unspec names, not numbers.
2049 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
2051 * doc/sourcebuild.texi: Mention snapshot-README and
2052 snapshot-index.html as needing updating for new front ends.
2054 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2056 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2057 disabling checking, and avoid multiple evaluation of RTX.
2059 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
2061 * bitmap.c (bitmap_find_bit): Return early if we have the correct
2064 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2066 * profile.c (gen_edge_profiler): Set alias set before the memory is
2069 2002-05-20 David S. Miller <davem@redhat.com>
2071 * cselib.c (max_value_regs): New.
2072 (cselib_lookup, cselib_invalidate_regno): Initialize it when
2073 adding new entries to the REG_VALUES table and we are dealing with
2075 (clear_table): Initialize it.
2076 (cselib_invalidate_regno): Use it to determine which hard
2077 registers to scan when mode is not VOIDmode.
2079 2002-05-20 Duraid Madina <duraid@fl.net.au>
2081 * tradcpp.c (fixup_newlines): Use old-style function header.
2083 2002-05-20 Krister Walfridsson <cato@df.lth.se>
2085 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2087 2002-05-20 H.J. Lu (hjl@gnu.org)
2089 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2091 * config/mips/mips.h (DFMODE_NAN): Defined.
2092 (SFMODE_NAN): Likewise.
2094 2002-05-20 Dale Johannesen <dalej@apple.com>
2096 * combine.c (cant_combine_insn_p): Back out my
2099 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2101 * params.c: Fix formatting.
2102 * params.h: Likewise.
2103 * predict.c: Likewise.
2104 * prefix.c: Likewise.
2105 * print-rtl.c: Likewise.
2106 * print-tree.c: Likewise.
2107 * profile.c: Likewise.
2109 2002-05-20 H.J. Lu (hjl@gnu.org)
2111 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2113 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
2115 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2116 switches straight on to the assembler, do not abbreviate them.
2117 * config/arm/elf.h (ASM_SPEC): As above.
2118 * config/arm/semi.h (ASM_SPEC): As above.
2119 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2120 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2121 -mcpu=xscale on to the assembler by default.
2122 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2124 2002-05-20 Richard Henderson <rth@redhat.com>
2126 * cse.c (canon_hash): Reorder do_not_record test. Always
2127 allow pic_offset_table_rtx.
2129 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
2131 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2132 (expand_binop): Ditto (3 times).
2134 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
2136 * Makefile.in (distclean): Remove QMTest stuff.
2137 (QMTEST_PATH): New variable.
2138 (QMTESTFLAGS): Likewise.
2139 (QMTESTRUNFLAGS): Likewise.
2141 (QMTEST_GPP_TESTS): Likewise.
2142 (QMTEST_DIR): Likewise.
2143 (QMTEST_DIR/context): New target.
2144 (qmtest-g++): Likeise.
2145 (qmtest-gui): Likewise.
2146 (QMTEST_DIR/gpp-expected.qmr): Likewise.
2148 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
2150 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2151 an altivec register if TARGET_ALTIVEC.
2153 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2154 to ALTIVEC_VECTOR_MODE.
2155 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2156 (rs6000_va_arg): Vectors may go in registers if they are not
2159 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
2161 * protoize.c: Fix formatting.
2163 2002-05-19 Richard Henderson <rth@redhat.com>
2165 * gensupport.c (init_include_reader): Merge into ...
2166 (process_include): ... here. Simplify composite path creation.
2167 Plug memory leaks. Fix file/line number tracking. Do not
2168 process_define_cond_exec. Return void.
2169 (process_rtx): Don't check process_include return value.
2171 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2173 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2175 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2176 traversing basic block chain.
2177 (create_basic_block_structure, create_basic_block): Declaration changed.
2178 (link_block, unlink_block): Declare.
2179 * cfg.c (entry_exit_blocks): Initialize new fields.
2180 (link_block, unlink_block): New.
2181 (expunge_block_nocompact): Unlink basic block.
2182 (dump_flow_info): Print prev_bb/next_bb fields.
2183 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2184 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2185 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2186 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2187 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2188 (verify_flow_info): Check that list agrees with numbering.
2190 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
2192 * c-common.c (preprocessing_asm): New macro.
2193 * c-lex.h (builtin_define, builtin_assert): Use pfile.
2197 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2198 (CPP_SPEC): Simplify.
2199 (TARGET_CPU_CPP_BUILTINS): Update.
2200 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2201 (CPP_SPEC): Simplify.
2202 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2203 (TARGET_OS_CPP_BUILTINS): Update.
2204 * osf.h (CPP_XFLOAT_SPEC): Kill.
2205 (TARGET_OS_CPP_BUILTINS): Update.
2206 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2207 * osf5.h (CPP_XFLOAT_SPEC): Kill.
2208 * vms.h (CPP_SUBTARGET_SPEC): Kill.
2209 (TARGET_OS_CPP_BUILTINS): Update.
2211 2002-05-19 Richard Henderson <rth@redhat.com>
2213 * varasm.c (default_binds_local_p): Fix typo.
2215 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
2217 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2218 CONST_INT operand to the correct mode after adding 1 to it.
2220 2002-05-19 Mark Mitchell <mark@codesourcery.com>
2222 * config.gcc (powerpc-wrs-windiss*): New target.
2224 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2226 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2229 2002-05-18 Mark Mitchell <mark@codesourcery.com>
2231 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2233 * config.in: Regenerated.
2234 * configure: Regenerated.
2236 2002-05-19 Richard Henderson <rth@redhat.com>
2238 * target-def.h (TARGET_BINDS_LOCAL_P): New.
2239 * target.h (struct gcc_target): Move boolean fields to the end.
2241 * varasm.c (default_binds_local_p): New.
2242 * output.h: Declare it.
2244 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2245 * config/cris/cris.c (cris_encode_section_info): Likewise.
2246 * config/i386/i386.c (i386_encode_section_info): Likewise.
2247 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2248 * config/sh/sh.c (sh_encode_section_info): Likewise.
2250 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2251 (TARGET_BINDS_LOCAL_P): New.
2253 2002-05-19 Richard Henderson <rth@redhat.com>
2255 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2256 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2257 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2259 * toplev.c (display_help): Kill -a -ax help.
2261 * config/1750a/1750a.h, config/alpha/alpha.h,
2262 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2263 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2264 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2265 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2267 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2268 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2270 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2271 (ix86_output_function_block_profiler): Kill.
2272 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2273 (m68hc11_function_block_profiler): Kill.
2274 * config/m68hc11/m68hc11-protos.h: Update.
2275 * config/m88k/m88k.c (output_block_profiler): Kill.
2276 (output_function_block_profiler): Kill.
2277 * config/m88k/m88k-protos.h: Update.
2279 2002-05-19 Richard Henderson <rth@redhat.com>
2281 * system.h (STRIP_NAME_ENCODING): Poison it.
2282 * output.h (STRIP_NAME_ENCODING): Remove.
2283 (default_strip_name_encoding): Declare.
2284 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2285 * target.h (strip_name_encoding): New.
2286 * varasm.c (default_strip_name_encoding): New.
2288 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2289 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2290 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2291 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2292 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2293 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2294 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2295 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2296 config/v850/v850.h: Use the hook, not the macro.
2298 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2299 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2300 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2301 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2302 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2303 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2304 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2305 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2306 config/v850/v850.c, config/v850/v850.h:
2307 Move STRIP_NAME_ENCODING to out-of-line function and add
2308 TARGET_STRIP_NAME_ENCODING.
2310 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2311 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2312 with TARGET_STRIP_NAME_ENCODING referencing existing function;
2313 make function static.
2315 * xcoffout.c: Include target.h
2316 * Makefile.in (xcoffout.o): Update.
2318 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2319 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2320 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2321 reloc argument unused.
2322 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2324 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2325 STRIP_NAME_ENCODING docs.
2327 2002-05-19 Andreas Jaeger <aj@suse.de>
2329 * gengenrtl.c: Add prototype for excluded_rtx.
2331 * real.h: Add prototype for exact_real_truncate.
2333 2002-05-18 Richard Henderson <rth@redhat.com>
2335 * system.h (ENCODE_SECTION_INFO): Poison it.
2336 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2337 * target.h (encode_section_info): New.
2338 * varasm.c (make_decl_rtl, output_constant_def): Use it.
2339 * hooks.c (hook_tree_int_void): New.
2340 * hooks.h: Declare it.
2342 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2343 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2344 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2345 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2346 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2347 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2348 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2349 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2350 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2351 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2352 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2353 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2354 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2355 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2356 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2357 referencing existing function. Make function static.
2359 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2360 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2361 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2362 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2363 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2364 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2365 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2366 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2367 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2368 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2369 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2370 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2371 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2372 Move ENCODE_SECTION_INFO to out-of-line function and add
2373 TARGET_ENCODE_SECTION_INFO.
2375 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2376 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2378 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2380 (switch_to_section): Replace in_rdata case with in_readonly_data.
2382 * config/h8300/h8300.c (h8300_encode_label): Make static.
2383 * config/h8300/h8300-protos.h: Update.
2385 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2386 from rs6000_encode_section_info; make static.
2387 (rs6000_xcoff_encode_section_info): New.
2389 * config/v850/v850.c (v850_encode_data_area): Make static.
2390 * config/v850/v850-protos.h: Update.
2392 * config/vax/vax.c: Include flags.h.
2393 (vms_select_section): Fix typo.
2395 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2396 ENCODE_SECTION_INFO docs.
2398 2002-05-18 Richard Henderson <rth@redhat.com>
2400 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2401 REGISTER_TARGET_PRAGMAS.
2402 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2404 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2406 2002-05-18 Richard Henderson <rth@redhat.com>
2408 * system.h (SELECT_RTX_SECTION): Poison.
2409 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2410 * target.h (select_rtx_section): New.
2411 * varasm.c (output_constant_pool): Use it.
2412 (default_select_rtx_section, default_elf_select_rtx_section): New.
2413 * output.h: Declare them.
2415 * config/darwin.h (SELECT_RTX_SECTION): Move ...
2416 * config/darwin.c (machopic_select_rtx_section): ... here.
2417 * config/darwin-protos.h: Update.
2419 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2420 * config/nextstep.c (machopic_select_rtx_section): ... here.
2421 (nextstep_select_section): Rename variable to avoid macro clash.
2422 * config/nextstep-protos.h: Update.
2424 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2425 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2426 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2427 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2428 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2429 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2430 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2431 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2432 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2433 (SELECT_RTX_SECTION): Remove.
2435 * config/darwin.h, config/elfos.h, config/nextstep.h,
2436 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2437 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2438 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2439 config/sparc/lynx.h, config/xtensa/xtensa.c
2440 (TARGET_ASM_SELECT_RTX_SECTION): New.
2442 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2443 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2444 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2445 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2446 (ia64_aix_select_rtx_section): New.
2447 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2449 * config/mips/mips.c (mips_select_rtx_section): Make static.
2450 Support ELF SHF_MERGE features.
2451 * config/mips/mips-protos.h: Update.
2452 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2453 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2454 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2455 make static, fall back to default_elf_select_rtx_section.
2456 * config/rs6000/rs6000-protos.h: Update.
2457 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2458 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2459 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2460 * config/romp/romp.c (romp_select_rtx_section): New.
2461 * config/s390/s390.c (s390_select_rtx_section): New.
2462 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
2463 declarations before target macro definition.
2464 (xtensa_emit_call): Use static buffer.
2465 (xtensa_select_rtx_section): New.
2466 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2467 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2468 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2470 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2471 SELECT_RTX_SECTION docs.
2473 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
2475 * i386.md (movsi/movdi): Fix template.
2476 (sse2 patterns): Set attributes consistently.
2478 * i386.md (pushqi2, ashrqi_*): Fix constraint.
2480 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
2482 * optabs.c (complex_part_zero_p): New.
2483 * (expand_cmplxdiv_straight): Use it.
2484 * (expand_cmplxdiv_wide): Ditto.
2485 * (expand_binop): Ditto.
2487 2002-05-18 Richard Henderson <rth@redhat.com>
2489 * final.c (HAVE_READONLY_DATA_SECTION): New.
2490 (shorten_branches): Use it instead of ifdefs.
2491 * varasm.c (enum in_section): Add in_readonly_data.
2492 (text_section, data_section): Tidy.
2493 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2495 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2496 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2497 (READONLY_DATA_SECTION): Don't undef.
2499 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2500 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2501 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2503 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2504 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2505 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2506 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2508 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2509 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2510 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2511 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2512 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2513 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2514 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2515 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2516 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2518 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2519 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2520 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2521 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2522 config/pa/pa64-hpux.h, config/sparc/litecoff.h
2523 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2525 * config/elfos.h, config/netware.h, config/svr3.h,
2526 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2527 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2528 config/h8300/h8300.h, config/i386/i386-interix.h,
2529 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2530 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2532 * config/elfos.h, config/netware.h, config/svr3.h,
2533 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2534 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2535 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2536 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2538 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2539 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2540 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2541 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2542 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2543 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2544 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2545 config/rs6000/sysv4.h, config/v850/v850.h
2546 (EXTRA_SECTIONS): Remove in_const/in_rdata.
2547 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2549 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2550 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2551 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2552 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2553 * config/alpha/alpha.c (alpha_start_function): Likewise.
2554 (alpha_write_linkage): Likewise.
2555 * config/m32r/m32r.c (m32r_select_section): Likewise.
2556 * config/m88k/m88k.c (m88k_select_section): Likewise.
2557 * config/mips/mips.c (mips_select_rtx_section): Likewise.
2558 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2559 (rs6000_elf_select_section): Likewise.
2560 * config/v850/v850.c (v850_select_section): Likewise.
2562 * config/1750a/1750a.h, config/i860/sysv3.h
2563 (READONLY_DATA_SECTION_ASM_OP): New.
2564 READONLY_DATA_SECTION_ASM_OP.
2565 * config/i386/interix.c, config/i386/winnt.c
2566 (i386_pe_unique_section): Always use .rdata prefix.
2567 * config/pa/som.h (readonly_data): Always switch to read-only section.
2568 (READONLY_DATA_SECTION): Predicate on flag_pic.
2569 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2570 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2571 (READONLY_DATA_SECTION): Update.
2573 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
2575 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2576 is used without -Wformat.
2577 * c-common.h (warn_format_zero_length): Declare extern.
2578 * c-decl.c (warn_options): Add "format-zero-length".
2579 * c-format.c (warn_format_zero_length): Declare.
2580 (set_Wformat): Set warn_format_zero_length for -Wformat.
2581 (check_format_info): Only warn about zero-length formats if
2582 warn_format_zero_length is true. Include the format type
2583 name in the warning message.
2584 * doc/invoke.texi: Document -Wformat-zero-length.
2585 * testsuite/gcc.dg/format/zero-length-1.c: New test.
2587 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2589 * timevar.c: Fix formatting.
2590 * tlink.c: Likewise.
2591 * toplev.c: Likewise.
2592 * tree-dump.c: Likewise.
2593 * tree-inline.c: Likewise.
2595 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2597 * cppinit.c (cpp_post_options): If preprocessed, turn off
2598 traditional. If traditional, turn off column numbers.
2599 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2600 * cpptrad.c (handle_newline): Update line_base.
2601 (skip_comment): Handle -Wcomment.
2603 2002-05-17 Zack Weinberg <zack@codesourcery.com>
2605 * cppinit.c (struct builtin): Remove unused fields.
2606 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2607 (operator_array): New - was second half of builtin_array.
2608 (init_builtins): Simplify loop over builtin_array/operator_array.
2610 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2612 * defaults.h (UNIQUE_SECTION): Remove.
2613 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2615 2002-05-17 Richard Henderson <rth@redhat.com>
2617 * expr.c (init_expr_once): Don't use start/end_sequence.
2618 Use rtx_alloc instead of emit_insn.
2619 * toplev.c (lang_dependent_init): Run init_expr_once here ...
2620 (lang_independent_init): ... not here.
2622 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2624 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2626 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2628 * config/avr/avr.c (avr_regs_to_save): New function. Also check
2629 for fixed registers, possibly used for global register variables.
2630 (initial_elimination_offset, avr_output_function_prologue,
2631 avr_output_function_epilogue): Move common code to avr_regs_to_save.
2633 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2635 * Makefile.in: Update for cpptrad.c.
2636 * cpphash.h (struct cpp_buffer): New members for buffer
2638 (struct cpp_reader): New members for traditional output.
2639 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2640 * cppinit.c (cpp_create_reader): Set trad_line.
2641 (cpp_destroy): Free trad_out_base if used.
2642 (cpp_read_main_file): Overlay an empty buffer if traditional.
2643 (cpp_finish_options): Don't do builtins.
2644 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2645 (cpp_handle_option): Handle it.
2646 * cpplex.c (continue_after_nul): New.
2647 (_cpp_lex_direct): Use handle_nul.
2648 * cpplib.h (struct cpp_options): New traditional option.
2649 * cpptrad.c: New file.
2651 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2653 * c-common.c (c_common_init_options): Use C89 for Objective-C,
2654 and set the options flag.
2655 * cppinit.c (lang_flags): Remove objc.
2656 (lang_defaults): Remove OBJC and OBJCXX.
2658 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2659 (cpp_handle_option): Remove -+ and -lang-objc++.
2660 For ObjC, just set a flag.
2661 (print_help): Update.
2662 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2664 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2666 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2667 bootstrap with -mips3.
2669 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2671 * final.c: Fix formatting.
2672 * fix-header.c: Likewise.
2674 * fold-const.c: Likewise.
2675 * function.c: Likewise.
2677 2002-05-17 David S. Miller <davem@redhat.com>
2679 PR c/6689, PR optimization/6615
2680 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2681 and make it a pointer to rtx. Update comments.
2682 (update_equiv_regs): When scanning for equivalences, record
2683 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2684 it while making the equiv replacements.
2686 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2688 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2690 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2692 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2693 when encoding visibility into SYMBOL_REF_FLAG.
2695 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2697 * expr.c (force_operand): Fix reversed move.
2699 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2701 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2702 that can be ignored.
2704 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2706 * doc/install.texi (Final install): Recommend to install into a
2707 "clean" target directory.
2709 2002-05-17 Richard Henderson <rth@redhat.com>
2711 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2712 for code blocks. Tidy whitespace.
2714 2002-05-17 Richard Henderson <rth@redhat.com>
2716 * hooks.c (hook_tree_bool_false): New.
2717 * hooks.h: Declare it.
2718 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2719 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2720 * target.h (select_section, unique_section): New.
2721 (in_small_data_p): New.
2722 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2723 (variable_section, output_constant_def_contents): Likewise.
2724 (default_select_section, default_unique_section): New.
2725 (categorize_decl_for_section, default_elf_select_section): New.
2726 * output.h: Declare them.
2728 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2729 (TARGET_ASM_SELECT_SECTION): New.
2730 (SELECT_SECTION): Move ...
2731 * config/darwin.c (machopic_select_section): ... here.
2732 * config/darwin-protos.h: Update.
2734 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2735 (SELECT_SECTION): Move ...
2736 * config/nextstep.c (nextstep_select_section): ... here.
2737 * config/nextstep-protos.h: Update.
2739 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2740 (TARGET_ASM_SELECT_SECTION): New.
2741 * config/svr3.h (SELECT_SECTION): Remove.
2743 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2744 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2745 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2746 (alpha_encode_section_info): Use it.
2747 * config/alpha/alpha-protos.h: Update.
2748 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2749 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2750 (TARGET_ASM_SELECT_SECTION): New.
2751 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2753 * config/arm/pe.h (UNIQUE_SECTION): Remove.
2754 (TARGET_ASM_UNIQUE_SECTION): New.
2756 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2757 (avr_unique_section): Rename from unique_section; make static.
2758 * config/avr/avr-protos.h: Update.
2759 * config/avr/avr.h (UNIQUE_SECTION): Remove.
2761 * config/c4x/c4x.h (SELECT_SECTION): Remove.
2763 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2764 (TARGET_ASM_UNIQUE_SECTION): New.
2765 * config/i386/i386-interix.h: Likewise.
2766 * config/i386/win32.h: Likewise.
2767 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2768 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2769 * config/i386/sco5.h (SELECT_SECTION): Remove.
2770 (TARGET_ASM_SELECT_SECTION): New.
2771 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2773 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2774 instead of SELECT_SECTION.
2775 * config/m68k/dpx2.h: Likewise.
2776 * config/rs6000/lynx.h: Likewise.
2778 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2779 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2780 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2781 (ia64_in_small_data_p): New.
2782 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2783 (ia64_aix_select_section, ia64_aix_unique_section): New.
2784 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2785 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2787 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2788 (TARGET_ASM_SELECT_SECTION): New.
2789 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2790 * config/m32r/m32r-protos.h: Update.
2792 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2793 (SELECT_SECTION): Move ...
2794 * config/m88k/m88k.c (m88k_select_section): ... here.
2796 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2797 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2798 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2799 (mcore_unique_section): Make static.
2800 * config/mcore/mcore-protos.h: Update.
2802 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2803 (TARGET_ASM_UNIQUE_SECTION): New.
2804 * config/mips/elf64.h: Likewise.
2805 * config/mips/iris6gld.h: Likewise.
2806 * config/mips/linux.h: Likewise.
2807 * config/mips/mips-protos.h: Update.
2808 * config/mips/mips.c (mips_select_section): Add align argument.
2809 * config/mips/mips.h (SELECT_SECTION): Remove.
2810 (TARGET_ASM_SELECT_SECTION): New.
2812 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2813 * config/mmix/mmix.c (mmix_select_section): Remove.
2814 (mmix_unique_section): Remove.
2815 * config/mmix/mmix-protos.h: Update.
2817 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2818 (SELECT_SECTION): Move ...
2819 * config/pa/pa.c (pa_select_section): ... here.
2820 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2822 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2823 from rs6000_select_section and make static.
2824 (rs6000_elf_unique_section): Similarly.
2825 (rs6000_xcoff_select_section): From xcoff.h.
2826 (rs6000_xcoff_unique_section): Likewise.
2827 * config/rs6000/rs6000-protos.h: Update.
2828 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2829 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2830 * config/rs6000/xcoff.h: Likewise.
2832 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2833 (SELECT_SECTION): Move ...
2834 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2836 * config/v850/v850.h (SELECT_SECTION): Move ...
2837 * config/v850/v850.c (v850_select_section): ... here.
2838 (TARGET_ASM_SELECT_SECTION): New.
2840 * config/vax/vms.h (SELECT_SECTION): Move ...
2841 * config/vax/vax.c (vms_select_section): ... here.
2842 (TARGET_ASM_SELECT_SECTION): New.
2844 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2845 for the target hooks.
2847 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
2849 * config/arm/arm.c (emit_multi_reg_push): Do not set
2850 RTX_FRAME_RELATED_P on the SEQUENCE.
2852 2002-05-16 Richard Henderson <rth@redhat.com>
2854 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2855 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
2857 2002-05-16 Richard Henderson <rth@redhat.com>
2859 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2861 * config/ia64/ia64.c (saveable_obstack): Do not declare.
2863 2002-05-16 Richard Henderson <rth@redhat.com>
2865 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2866 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2867 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2868 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2869 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2870 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2871 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2872 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2873 Revert "Basic block renumbering removal", and two followup patches.
2875 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2877 * lcm.c (optimize_mode_switching): Revert previous change.
2879 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2881 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2882 with only extant block numbers.
2884 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2886 * lcm.c (optimize_mode_switching): Fix typo.
2888 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2890 * flow.c (calculate_global_regs_live): Queue blocks in program order.
2892 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2894 * doc/install.texi (Configuration): Document PWDCMD.
2896 2002-05-16 Dale Johannesen <dalej@apple.com>
2898 * combine.c (cant_combine_insn_p): Reenable combinations
2899 involving hard regs unless CLASS_LIKELY_SPILLED_P.
2901 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2903 * c-common.c (cb_register_builtins): Handle more built-ins
2904 here rather than in gcc.c specs.
2905 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2906 (cpp_options): Pass -O flags even when only preprocessing.
2907 * toplev.c (set_fast_math_flags): New prototype.
2908 (fast_math_flags_set_p): New.
2909 (set_no_fast_math_flags): Remove.
2910 (decode_f_option): Update.
2911 * toplev.h (set_fast_math_flags): Update.
2912 (fast_math_flags_set_p): New.
2913 (set_no_fast_math_flags): Remove.
2915 * c4x/c4x.c (c4x_override_options): Update.
2917 2002-05-16 Zack Weinberg <zack@codesourcery.com>
2919 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2920 Default-define here.
2921 (builtin_define_with_value): Can now wrap the expansion in
2922 quotation marks if such is wanted.
2923 (cb_register_builtins): Update calls to builtin_define_with_value.
2924 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2926 (c_common_init): Set options->stdc_0_in_system_headers.
2927 * c-lex.h: Update prototype of builtin_define_with_value.
2928 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2929 and REGISTER_PREFIX.
2931 * cppinit.c (VERS, ULP, C, X): Kill.
2932 (builtin_array): Remove entries for __VERSION__,
2933 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2934 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
2936 (init_builtins): Kill off a bunch of now-dead code.
2937 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2938 -fno-leading-underscore.
2939 (cpp_handle_option): Remove code to set user_label_prefix.
2940 (cpp_post_options): Likewise.
2942 * cpplib.h (struct cpp_options): Remove user_label_prefix.
2943 (stdc_0_in_system_headers): New.
2944 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2945 stdc_0_in_system_headers) too to decide the value of __STDC__.
2947 * tradcpp.c (user_label_prefix): Kill.
2948 (main): Remove code handling -f(no-)leading-underscore.
2949 (initialize_builtins): Don't define __REGISTER_PREFIX__
2950 or __USER_LABEL_PREFIX__.
2951 (install_value): Wrap compound statement in dummy loop so the
2952 macro works properly in an if statement.
2955 2002-05-16 Janis Johnson <janis187@us.ibm.com>
2957 * loop.h (struct loop_info): Add member has_prefetch.
2958 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2959 (prescan_loop): Initialize has_prefetch.
2960 (struct prefetch_info): Change prefetch_in_loop and
2961 prefetch_before_loop from bit fields to ints.
2962 (emit_prefetch_instructions): Several small fixes.
2963 (check_dbra_loop): Don't reverse loop that uses prefetch.
2965 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2967 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2968 * configure.in: Likewise.
2969 * fixinc/check.tpl: Likewise.
2970 * fixinc/fixinc.dgux: Likewise.
2971 * fixinc/fixinc.svr4: Likewise.
2972 * fixinc/fixinc.winnt: Likewise.
2973 * fixinc/fixincl.sh: Likewise.
2974 * fixproto: Likewise.
2975 * configure: Regenerate.
2977 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2979 Basic block renumbering removal:
2980 * basic_block.h (struct basic_block_def): Renamed index to sindex,
2981 added prev_bb and next_bb fields.
2982 (n_basic_blocks): Renamed to num_basic_blocks.
2983 (last_basic_block): New, index of last basic block.
2984 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2985 traversing basic block chain.
2986 (BLOCK_NUM): index -> sindex.
2987 (create_basic_block_structure, create_basic_block): Declaration changed.
2988 (debug_num2bb): Declare.
2989 (expunge_block_nocompact): Declaration removed.
2990 (link_block, unlink_block, compact_blocks): Declare.
2991 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2992 * cfg.c (entry_exit_blocks): Initialize new fields.
2993 (clear_edges, alloc_block, expunge_block, cached_make_edge,
2994 redirect_edge_pred, dump_flow_info, dump_edge_info,
2995 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2996 free_aux_for_edges): Modified.
2997 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2998 (expunge_block_nocompact): Removed.
2999 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
3000 find_unreachable_blocks, create_edge_list, print_edge_list,
3001 verify_edge_list, flow_edge_list_print, remove_fake_successors,
3002 remove_fake_edges, flow_reverse_top_sort_order_compute,
3003 flow_depth_first_order_compute, flow_preorder_transversal_compute,
3004 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
3005 flow_dfs_compute_reverse_execute): Modified.
3006 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
3007 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
3009 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3010 merge_blocks_move_predecessor_nojumps,
3011 merge_blocks_move_successor_nojumps, merge_blocks,
3012 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
3013 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
3014 * cfglayout.c (skip_insns_after_block, label_for_bb,
3015 record_effective_endpoints, scope_to_insns_finalize,
3016 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
3017 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
3018 cfg_layout_duplicate_bb): Modified.
3019 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
3020 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3021 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
3022 flow_loops_find, flow_loop_outside_edge_p): Modified.
3023 * cfgrtl.c (create_basic_block_structure, create_basic_block,
3024 flow_delete_block, compute_bb_for_insn, split_block,
3025 try_redirect_by_replacing_jump, redirect_edge_and_branch,
3026 force_nonfallthru_and_redirect, tidy_fallthru_edge,
3027 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
3028 commit_edge_insertions, commit_edge_insertions_watch_calls,
3029 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3030 purge_all_dead_edges): Modified.
3031 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
3032 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3033 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
3035 * conflict.c (conflict_graph_compute): Modified.
3036 * df.c (FOR_ALL_BBS): Removed.
3037 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3038 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
3039 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
3040 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
3041 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3042 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
3043 * final.c (compute_alignments, final_scan_insn): Modified.
3044 * flow.c (verify_local_live_at_start, update_life_info,
3045 update_life_info_in_dirty_blocks, free_basic_block_vars,
3046 delete_noop_moves, calculate_global_regs_live,
3047 initialize_uninitialized_subregs, allocate_bb_life_data,
3048 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
3049 mark_used_reg, count_or_remove_death_notes): Modified.
3050 * function.c (thread_prologue_and_epilogue_insns): Modified.
3051 * gcse.c (struct null_pointer_info): Change typo of current_block
3053 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3054 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3055 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3056 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3057 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3058 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3059 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3060 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3061 pre_delete, one_pre_gcse_pass, compute_transpout,
3062 invalidate_nonnull_info, delete_null_pointer_checks_1,
3063 free_code_hoist_mem, compute_code_hoist_vbeinout,
3064 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3065 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3066 compute_store_table, build_store_vectors, insert_insn_start_bb,
3067 insert_store, replace_store_insn, free_store_memory, store_motion):
3069 * global.c (global_alloc, global_conflicts, mark_elimination,
3070 build_insn_chain): Modified.
3071 * graph.c (print_rtl_graph_with_bb): Modified.
3072 * haifa-sched.c (sched_init): Modified.
3073 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3074 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3075 if_convert): Modified.
3076 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3077 compute_insert_delete, pre_edge_lcm, compute_available,
3078 compute_farthest, compute_nearerout, compute_rev_insert_delete,
3079 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3081 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3082 * loop.c (loop_dump_aux): Modified.
3083 * predict.c (combine_predictions_for_insn, estimate_probability,
3084 last_basic_block_p, process_note_prediction, process_note_predictions,
3085 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3086 expensive_function_p, estimate_bb_frequencies,
3087 compute_function_frequency): Modified.
3088 * print-rtl.c (print_rtx): Modified.
3089 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3090 get_exec_counts, compute_branch_probabilities, compute_checksum,
3091 branch_prob, find_spanning_tree): Modified.
3092 * recog.c (split_all_insns, peephole2_optimize): Modified.
3093 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3094 convert_regs_1, convert_regs_2, convert_regs): Modified.
3095 * regclass.c (scan_one_insn, regclass): Modified.
3096 * regmove.c (mark_flags_life_zones, regmove_optimize,
3097 combine_stack_adjustments): Modified.
3098 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3099 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3100 * reorg.c (dbr_schedule): Modified.
3101 * resource.c (find_basic_block, init_resource_info): Modified.
3102 * sbitmap.c (sbitmap_intersection_of_succs,
3103 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3104 sbitmap_union_of_preds): Modified.
3105 * sched-deps.c (init_dependency_caches): Modified.
3106 * sched-ebb.c (schedule_ebbs): Modified.
3107 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3108 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3109 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3110 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3111 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3112 ssa_const_prop): Modified.
3113 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3114 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3115 * ssa.c (remove_phi_alternative, find_evaluations,
3116 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3117 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3118 make_regs_equivalent_over_bad_edges,
3119 make_equivalent_phi_alternatives_equival,
3120 compute_conservative_reg_partition,
3121 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3122 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3125 2002-05-16 Mark Mitchell <mark@codesourcery.com>
3127 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3129 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
3131 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3132 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3133 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3134 calling CONSTANT_POOL_ADDRESS_P.
3135 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3136 to decide whether to define __arm__ or __thumb.
3137 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3138 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3140 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3142 * config/arc/arc.h (CPP_PREDEFINES): Remove.
3144 (TARGET_CPU_CPP_BUILTINS): New.
3146 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
3148 * cpphash.h (cpp_macro): Move here, and make expansion a union.
3149 * cppmacro.c (cpp_macro): Remove.
3150 (enter_macro_context, replace_args, warn_of_redefinition,
3151 _cpp_create_definition, cpp_macro_definition): Update.
3153 2002-05-16 Jason Merrill <jason@redhat.com>
3155 * config/mips/mips.c (mips_output_external): Don't do sdata
3156 optimization for a variable with DECL_COMDAT set.
3158 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3160 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3161 Cleanups for accepting modifiers on pointers.
3162 Fix predicate typos.
3163 Allow long pointers as well as int pointers.
3165 2002-05-15 Richard Henderson <rth@redhat.com>
3167 * varasm.c (merge_weak): Remove special case for extern and common.
3169 2002-05-15 Matt Hiller <hiller@redhat.com>
3171 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3173 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3174 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3175 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3176 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3177 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3178 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3180 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3182 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3184 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
3186 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3187 ("altivec_mfvscr"): Read from VSCR.
3189 Add vscr sets for the following insns: altivec_vctuxs,
3190 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3191 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3192 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3193 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3194 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3195 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3196 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3197 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3198 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3199 altivec_vsum2sws, altivec_vsumsws.
3201 * config/rs6000/rs6000.h: Add VSCR fixed register.
3202 (CALL_REALLY_USED_REGISTERS): Add vscr.
3203 (CALL_USED_REGISTERS): Same.
3204 (FIXED_REGISTERS): Same.
3205 (REG_ALLOC_ORDER): Same.
3206 (reg_class): Add VSCR_REGS.
3207 (REG_CLASS_NAMES): Same.
3208 (REG_CLASS_CONTENTS): Same.
3210 (REGISTER_NAMES): Add vscr.
3211 (DEBUG_REGISTER_NAMES): Same.
3212 (ADDITIONAL_REGISTER_NAMES): Same.
3213 (FIRST_PSEUDO_REGISTER): Increment.
3214 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3216 2002-05-15 Jakub Jelinek <jakub@redhat.com>
3218 * fold-const.c (fold): Fix a typo.
3220 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
3222 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3223 comparison against the highest or lowest integer value before
3224 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3225 transformation and that of an unsigned comparison against 0
3228 2002-05-15 Richard Henderson <rth@redhat.com>
3230 * varasm.c (merge_weak): Error for any weakening after definition.
3231 Adjust weakening after use warning to catch more cases.
3232 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3233 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3235 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
3237 * invoke.texi (-malign-double): Re-add lost warning.
3239 * i386-protos.h (x86_output_mi_thunk): Declare.
3240 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3241 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3243 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3244 when flag_asynchronous_unwind_tables is set.
3246 * flags.h (flag_reorder_functions): Declare.
3247 * function.c (prepare_function_start): Initialize frequnecy.
3248 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3249 * Makefile.in (predict.o): Add dependency on target.h and params.h
3250 * defaults.h (HOT_TEXT_SECTION_NAME,
3251 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3252 * predict.c (choose_function_section): New function.
3253 (estimate_bb_frequencies): Use it.
3254 * toplev.c (flag_reorder_functions): New global variable.
3255 (lang_independent_options): New.
3256 (parse_options_and_default_flags): Set.
3257 * varasm.c (assemble_start_function): Bypass functdion alignment
3258 for never executed functions.
3259 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3260 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3261 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3264 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
3266 * predict.c: Inlude profile.h
3267 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3268 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3269 Use the information about maximal counter in the program.
3271 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
3273 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3274 probably_never_executed_bb_p): New functions.
3275 * cfgcleanup.c (outgoing_edges_match): Use them.
3276 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3277 (maybe_hot_bb_p, probably_cold_bb_p,
3278 probably_never_executed_bb_p): New functions.
3280 * function.h (function): Add new field function_frequency.
3281 * predict.c (compute_function_frequency): New function.
3282 (estimate_probability): Call it.
3284 2002-03-09 Jakub Jelinek <jakub@redhat.com>
3286 PR optimization/5172, optimization/5200
3287 * gcse.c (gcse_main): Disable store_motion.
3289 2002-05-14 Zack Weinberg <zack@codesourcery.com>
3291 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3292 (c_common_nodes_and_builtins): Use it.
3293 (builtin_define_with_value): New function.
3294 (cb_register_builtins): Define __SIZE_TYPE__,
3295 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3296 using builtin_define_with_value. Use consistent notation when
3297 defining __GXX_WEAK__.
3298 (WCHAR_TYPE_SIZE): Don't redefine.
3299 (combine_strings): Don't use WCHAR_TYPE_SIZE.
3301 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3302 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3303 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3304 * tradcpp.c (initialize_builtins): Likewise.
3305 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3307 * c-lex.h (builtin_define_with_value): Prototype.
3308 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3309 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3310 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3312 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3313 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3314 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3315 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3316 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3317 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3318 config/sparc/sol2-bi.h, config/sparc/sparc.h:
3319 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
3320 to __SIZE_TYPE__ etc from all spec strings. When this makes
3321 extra specs empty, delete them.
3323 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
3325 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3326 for PA8000 or generating dwarf2 call frame information.
3327 (output_call): Remove DO_FRAME_NOTES check from return pointer
3329 (following_call): Return 0 when scheduling for PA8000 or generating
3330 dwarf2 call frame information. Revise comment.
3332 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3335 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3336 and __IEEE_FP_INEXACT as appropriate.
3337 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3338 (CPP_SPEC): Remove ieee defines.
3339 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3342 2002-05-14 Richard Henderson <rth@redhat.com>
3344 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3345 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3347 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3349 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3351 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3352 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3353 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3354 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3355 (EXTRA_SPECS): Update.
3356 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3357 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3358 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3359 define TARGET_OS_CPP_BUILTINS if necessary.
3361 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3363 * gcc.c (cpp_options): Must pass -m* and -f* options
3364 to the front end even when only preprocessing.
3365 (cc1_options): Remove redundant -lang-c.
3366 * tradcpp.c (main): Ignore -m options.
3368 * lang-specs.h: Similarly.
3370 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
3372 * genautomata.c (transform_3): Add code for transformation
3373 `(A,B,...)+C -> A+C,B,...'.
3375 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
3377 * final.c (end_final): Do not output profile_arcs constructor, when
3378 no functions are instrumented.
3380 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
3382 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3384 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3386 * doc/install.texi: Remove special markup originally required for
3387 HTML generation with texi2html.
3389 2002-05-14 Andreas Schwab <schwab@suse.de>
3391 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3393 (UNIQUE_SECTION): Define to get small data correctly.
3395 * varasm.c (resolve_unique_section): Add third parameter
3396 flag_function_or_data_sections and use it instead of
3397 flag_function_sections.
3398 (assemble_start_function): Pass flag_function_sections.
3399 (asm_emit_uninitialised): Pass flag_data_sections.
3400 (assemble_variable): Likewise.
3402 2002-05-14 Richard Henderson <rth@redhat.com>
3404 * config/i386/i386.md: Use define_constants for unspec numbers.
3405 * config/i386/i386.c: Likewise.
3407 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3409 * doc/contrib.texi: Update my entry.
3411 2002-05-13 Mark Mitchell <mark@codesourcery.com>
3413 * fixinc/inclhack.def (winidss_valist): Limit applicability.
3414 * fixinc/fixincl.x: Regenerated.
3415 * fixinc/tests/base/math.h: Update.
3416 * fixinc/tests/base/testing.h: Likewise.
3418 2002-05-13 Zack Weinberg <zack@codesourcery.com>
3420 * genattr.c (gen_attr): Don't emit a comma after the last
3423 2002-05-13 Richard Henderson <rth@redhat.com>
3425 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3427 * recog.c (peephole2_optimize): Likewise.
3429 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
3431 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3434 2002-05-13 Jeffrey A Law (law@redhat.com)
3436 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3437 Update prototype and callers.
3438 (propagate_one_insn): Stack pointer adjustments kill MEMs on
3439 the mem_set_list which reference the stack pointer, as do
3440 calls to constant functions as they may clobber outgoing
3443 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3445 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3446 (ia32_multipass_dfa_lookahead): New function.
3448 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3450 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3451 (translate_options): Remove 'V'.
3452 (process_command): Similarly.
3454 * invoke.texi: Remove documentation of 'V'.
3456 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3458 * config/s390/linux.h: Revert 2002-04-22 changes.
3460 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
3462 * config/fr30/fr30.md: Only allow splits of immediate loads
3463 if the destination is a register.
3465 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3467 * Makefile.in (c-common.o, cppinit.o): Update.
3468 * c-common.c: Include except.h.
3469 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3470 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3471 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3472 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3473 CPP_PREDEFINES): Handle here.
3475 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3476 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3477 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3478 TARGET_OS_CPP_BUILTINS.
3479 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3480 (CPP_SPEC, EXTRA_SPECS): Update.
3481 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3482 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3483 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3484 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3485 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3487 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3488 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3490 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3492 * emit-rtl.c (global_rtl): Update comment.
3493 (const_double_htab, const_double_htab_hash,
3494 const_double_htab_hash, lookup_const_double): New.
3495 (const_int_htab_hash, const_int_htab_eq): Remove const
3496 qualifiers, which cause tons of warnings with RTL checking on.
3497 (gen_rtx_CONST_DOUBLE): Deleted.
3498 (const_double_from_real_value): New function - bears some
3499 resemblance to the former immed_real_const_1.
3500 (immed_double_const): Moved here from varasm.c and
3502 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3503 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3504 (gen_rtx): Use immed_double_const.
3505 (init_emit_once): Initialize the const_double_htab. Use
3506 REAL_VALUE_FROM_INT where possible. Can now use
3507 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3508 * varasm.c (struct varasm_status): Remove x_const_double_chain.
3509 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3510 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3511 (init_varasm_status, mark_varasm_status): Don't touch
3512 x_const_double_chain.
3514 * output.h: Delete prototype for clear_const_double_mem.
3515 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
3516 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
3517 const_double_from_real_value, not immed_real_const_1, and use
3518 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
3520 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3521 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3522 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3523 (gen_rtx_REG): Second arg is unsigned.
3525 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3526 (excluded_rtx): New, return true for CONST_DOUBLE.
3527 (genmacro): Write nothing for excluded codes.
3528 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3529 * expr.c (expand_expr): Likewise.
3530 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3532 * toplev.c (rest_of_compilation): Don't call
3533 clear_const_double_mem.
3535 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3536 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3537 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3538 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3539 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3540 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3541 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3542 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3544 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3546 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3548 2002-05-12 Tom Tromey <tromey@redhat.com>
3550 * tree.h (copy_node): Don't mention TREE_PERMANENT.
3552 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3554 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3555 (scan_comma_elt): New function. Accepts whitespace in comma lists.
3556 * gensupport.h: Prototype new routines.
3557 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
3559 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3560 (next_comma_elt): Use scan_comma_elt.
3562 * config/i386/i386.md: Use new attribute notation to break up
3563 long lines in define_attr forms.
3565 2002-05-12 Richard Henderson <rth@redhat.com>
3567 * expr.c (compress_float_constant): New.
3568 (emit_move_insn): Use it.
3569 (float_extend_from_mem): New.
3570 (init_expr_once): Initialize it.
3571 * real.c (exact_real_truncate): New.
3573 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3574 dropped into memory; penalize for size.
3575 (RTX_COSTS): FLOAT_EXTEND is free.
3576 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3577 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3579 2002-05-12 Richard Henderson <rth@redhat.com>
3581 * profile.h (profile_info): Add missing extern to declaration.
3582 * profile.c (profile_info): Define it.
3584 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3586 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3587 used for DImode and TImode.
3589 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3591 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3594 2002-05-11 Zack Weinberg <zack@codesourcery.com>
3596 * config/rs6000/rs6000.c (rs6000_default_long_calls,
3597 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3598 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3599 (rs6000_override_options): Handle -m(no-)longcall.
3600 (init_cumulative_args, output_mi_thunk): Check for both
3601 longcall and shortcall attributes on the function.
3602 (rs6000_attribute_table): Add "shortcall".
3603 (rs6000_handle_longcall_attribute): Update comment.
3604 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3605 altivec_expand_ternop_builtin): Add default clauses to switches
3606 to silence warnings.
3608 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3609 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
3610 (TARGET_OPTIONS): Add longcall and no-longcall.
3612 * config/rs6000/rs6000.md (call_nonlocal_sysv,
3613 call_value_nonlocal_sysv): Split by alternatives. One pair
3614 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3615 the call cookie. The other pair accepts only LR/CTR and has
3618 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3619 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3621 * config/rs6000/rs6000-c.c: New file.
3622 * config/rs6000/t-rs6000-c-rule: New file.
3623 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3624 Prototype rs6000_pragma_longcall.
3626 * doc/extend.texi: Document shortcall attribute.
3627 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3629 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3631 * reorg.c (dbr_schedule): Remove unnecessary test.
3633 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3635 * i386.md (testsi to testqi spliters): New.
3637 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
3639 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3641 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3643 * basic-block.h: New flag EDGE_CAN_FALLTHRU
3644 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3645 that can be made fallthru.
3647 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
3649 * cfglayout.c (cleanup_unconditional_jumps): New static function.
3650 (cfg_layout_initialize): Use it.
3652 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
3654 * config/avr/avr.c (avr_mcu_types): Update supported devices.
3655 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3656 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3658 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3660 * dbxout.c: Fix formatting.
3661 * dependence.c: Likewise.
3663 * diagnostic.c: Likewise.
3664 * doloop.c: Likewise.
3665 * dominance.c: Likewise.
3666 * doschk.c: Likewise.
3667 * dwarf2asm.c: Likewise.
3668 * dwarf2out.c: Likewise.
3669 * dwarfout.c: Likewise.
3671 2002-05-10 Richard Henderson <rth@redhat.com>
3673 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3674 Convert integers constants as needed. Replace "nwords" field with
3676 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3677 * function.h: Fix typo in comment.
3678 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3680 2002-05-10 Roger Sayle <roger@eyesopen.com>
3682 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3683 into the equivalent (signed char)c > 0.
3685 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3687 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3688 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3689 (struct prefetch_info): Fix spelling of member bytes_accessed.
3690 (emit_prefetch_instructions): Make dump messages more regular;
3691 restructure code to add more dump messages; use new macros for
3692 heuristics. (There are no code generation changes in any of this).
3694 2002-05-10 David S. Miller <davem@redhat.com>
3696 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3697 (struct rtx_def): Update unchanging flag comment.
3698 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3699 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3700 to be handled to INSN too.
3701 (dbr_schedule): Likewise.
3702 * resource.c (next_insn_no_annul): Likewise.
3704 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3707 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3709 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3710 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3711 (possibly) work around broken /bin/sh.
3713 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3715 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3716 . as N64/N32 libgcc_s.so subdirs.
3718 2002-05-10 David S. Miller <davem@redhat.com>
3720 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3722 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3724 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3726 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3727 * doc/rtl.texi: Document these macros more accurately.
3728 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3729 JUMP_INSNs and CALL_INSNs.
3730 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3731 or INSN_FROM_TARGET_P if the code is appropriate.
3733 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3735 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3736 before using SYMBOL_REF_FLAG (addr).
3738 * config/avr/avr-protos.h (avr_io_address_p): Declare.
3739 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3740 Make non-static. Update all callers.
3741 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3742 New insns to clear/set/test a single bit in I/O address space.
3744 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3746 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3748 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3750 * Makefile.in: Update.
3751 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3752 builtin_define_std): New.
3753 (c_common_init): Register CPP builtins callback.
3754 * c-common.h (flag_iso, flag_undef): New.
3755 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3756 * c-lex.c: Don't include target.h.
3757 (cb_register_builtins): Move to c-common.c.
3758 (init_c_lex): Don't register hook here.
3759 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3760 (cpp_define, cpp_assert): Remove.
3761 * gcc.c (cc1_options): Pass -undef to front end.
3762 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3763 (TARGET_INITIALIZER): Update.
3764 * target.h (struct cpp_reader): Don't predeclare.
3765 (struct gcc_target): Remove cpp builtin hook.
3766 * tree.c (default_register_cpp_builtins): Remove.
3770 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3772 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3774 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3776 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3777 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3779 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3781 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3782 * config/sparc/libgcc-sparc-glibc.ver: New file.
3783 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3784 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3786 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3789 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3790 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3791 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3793 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3794 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3795 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3796 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3798 2002-05-09 Richard Henderson <rth@redhat.com>
3800 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3801 * config/ia64/ia64.c: Likewise.
3803 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3805 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3806 (save_restore_insns): Likewise.
3807 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3808 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3810 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
3812 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3813 * i386.md: Move scheduling information into new files.
3815 * i386.md (type attribute): Add "rotate" for rotate insns.
3816 (rotate insns): Set type to "rotate".
3817 (various attributes and function units): Treat rotate like shift.
3818 (pent_pair attribute): Only rotates by one bit position are
3820 (sbb insns): Explicitly set pent_pair attribute on a couple
3821 that were missing it.
3823 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3825 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3826 make sure that buffer starts on odd word address.
3827 (sh_va_arg): Skip odd fp registers when reading a double precision
3830 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3832 * tree.h (preserve_data, object_permanent_p, type_precision):
3835 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3837 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3838 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3840 * cpp.texi: Update for removal of obsolete features.
3842 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
3843 Jeffrey A Law (law@redhat.com)
3845 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
3846 the DFA interface for Pentium processors.
3847 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3848 (attr_pent_pair, ix86_pent_find_pair): Remove.
3849 (ix86_sched_reorder_pentium): Remove.
3850 (ix86_sched_reorder): Remove reordering for Pentium.
3851 * i386.md (Pentium scheduling): Rewrite using DFA description.
3853 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
3855 * cfganal.c (can_fallthru): Fix fast path.
3856 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3857 with edges to the next block.
3859 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3860 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3862 * final.c (end_final): Use C trees to output data structures for profiling.
3864 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3865 (profile.o): New dependency profile.h
3866 (final.o): New dependency profile.h
3867 * profile.h: New file. New global structure profile_info.
3868 * final.h (count_edges_instrumented_now): Declare.
3869 (current_function_cfg_checksum): Declare.
3870 (function_list): New structure.
3871 (functions_head, functions_tail): New static variables.
3872 (end_final): Emits more data, removed some -ax stuff.
3873 (final): Stores function names and chcksums.
3874 * gcov-io.h (__write_gcov_string): New function.
3875 (__read_gcov_string): New function.
3876 * gcov.c (read_profile): New function.
3877 (create_program_flow_graph): Uses read_profile instead of reading
3879 (read_files): Removed da_file checking, it's done by read_profile now.
3880 * libgcc2.c (bb_function_info): New structure.
3881 (bb): New field in structure, removed some -ax stuff.
3882 (__bb_exit_func): Changed structure of da_file.
3883 * profile.c (count_edges_instrumented_now): New global variable.
3884 (current_function_cfg_checksum): New global variable.
3885 (max_counter_in_program): New global variable.
3886 (get_exec_counts): New function.
3887 (compute_checksum): New function.
3888 (instrument_edges): Sets count_edges_instrumented_now.
3889 (compute_branch_probabilities): Uses get_exec_counts instead of
3891 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3892 (init_branch_prob): Removed da_file checking, done in get_exec_counts
3894 (end_branch_prob): Removed da_file checking, done in get_exec_counts
3896 * gcov.texi: Updated information about gcov file format.
3898 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3900 * sbitmap.c: Fix formatting.
3902 * scan-decls.c: Likewise.
3903 * sched-deps.c: Likewise.
3904 * sched-ebb.c: Likewise.
3905 * sched-rgn.c: Likewise.
3906 * sched-vis.c: Likewise.
3907 * sdbout.c: Likewise.
3908 * sibcall.c: Likewise.
3909 * simplify-rtx.c: Likewise.
3911 * ssa-ccp.c: Likewise.
3912 * ssa-dce.c: Likewise.
3914 * stor-layout.c: Likewise.
3915 * stringpool.c: Likewise.
3917 2002-05-09 David S. Miller <davem@redhat.com>
3919 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3921 2002-05-07 David S. Miller <davem@redhat.com>
3923 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3924 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3925 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3926 library implementation clobbers the output before the inputs
3927 are fully consumed, use stack temporary for the output.
3929 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
3931 * config/netbsd.h (CPP_SPEC): Remove.
3932 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3933 * config/i386/netbsd.h (CPP_SPEC): Define.
3934 * config/ns32k/netbsd.h (CPP_SPEC): Define.
3935 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3936 * config/sparc/netbsd.h (CPP_SPEC): Define.
3937 * config/vax/netbsd.h (CPP_SPEC): Define.
3939 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3941 * read-rtl.c: Fix formatting.
3943 * recog.c: Likewise.
3944 * regclass.c: Likewise.
3945 * regmove.c: Likewise.
3946 * reg-stack.c: Likewise.
3947 * reload1.c: Likewise.
3948 * reload.c: Likewise.
3949 * resource.c: Likewise.
3950 * rtlanal.c: Likewise.
3952 * rtl-error.c: Likewise.
3954 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3956 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3957 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3959 2002-05-08 Bernd Schmidt <bernds@redhat.com>
3961 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3962 use __SSE2__ macro instead.
3963 * config/i386/xmmintrin.h: Likewise.
3965 2002-05-08 Janis Johnson <janis187@us.ibm.com>
3967 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3968 and use it in all invocations of these macros. Clean up comments.
3969 * rtl.c (rtl_check_failed_flag): Add an argument for the name
3970 of the flag access macro whose check failed.
3971 * doc/rtl.texi (Flags): Document additional flag uses.
3973 2002-05-08 Robert Spier <rspier@pobox.com>
3974 Neil Booth <neil@daikokuya.demon.co.uk>
3976 PR preprocessor/6521
3977 * cppfiles.c (handle_missing_header): Don't do anything
3978 different for <> includes.
3980 * cppopts.texi: Update documentation for -MG.
3982 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
3984 * cpplex.c (cpp_interpret_charconst): Truncate as well as
3987 * cpp.texi: Clarify multichar charconst valuation.
3989 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3991 * doc/invoke.texi: Document -mwindiss option.
3993 2002-05-08 Jason Merrill <jason@redhat.com>
3995 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3997 * dwarf2out.c (gen_type_die): Abort on broken recursion.
4000 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
4003 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
4005 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
4006 little-endian multilibs to override arm/thumb multilibs.
4007 Do not build hardware floating point multilibs, nor apcs-26
4008 multilibs for the Thumb.
4010 2002-05-08 Mark Mitchell <mark@codesourcery.com>
4013 * varasm.c (mark_weak): New function.
4014 (merge_weak): Use it. Do not call declare_weak.
4015 (declare_weak): Use merge_weak.
4017 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4019 * cse.c (dead_libcall_p): Update counts.
4020 (delete_trivially_dead_insns): Update call of dead_libcall_p.
4022 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
4024 * cfglayout.c (function_tail_eff_head): Rename to ...
4025 (function_footer): ... this one.
4026 (unlink_insn_chain): New functions.
4027 (label_for_bb): Only call block_label and emit debug message.
4028 (record_effective_endpoints): Actually unlink the headers and footers.
4029 (fixup_reorder_cahin): Re-insert the unlinked sequences.
4030 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
4031 * cfglayout.h (struct reorder_block_def): New fields footer/header;
4032 remove eff_head/eff_end.
4033 * rtl.h (set_first_insn): Declare.
4034 * emit-rtl.c (set_first_insn): New function.
4036 * cfglayout.c (fixup_reorder_chain): Dump duplicated
4037 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4038 cfg_layout_duplicate_bb): New global function.
4039 (duplicate_insn_chain): New static function.
4040 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4041 cfg_layout_duplicate_bb): Declare.
4042 (struct reorder_block_def): Add "original" field.
4043 * emit-rtl.c (emit_copy_of_insn_after): New function.
4044 * rtl.h (emit_copy_of_insn_after): Declare.
4046 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
4047 (fixup_reorder_chain): properly handle edges to exit block.
4049 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4050 Jan Hubicka <jh@suse.cz>
4052 * basic-block.h (note_prediction_to_br_prob): declare.
4053 * c-semantics.c: Inlucde predit.h
4054 (expand_stmt): predict GOTO_STMT as not taken.
4055 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4056 (cleanup_cfg): Do not free tail_recursion_list.
4057 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4058 (flow_delete_block): Kill predictions past end of basic block.
4059 * output.h (delete_unreachable_blocks): Declare.
4060 * predict.c (predicted_by_p, process_note_predictions,
4061 process_note_prediction, last_block_p): New function.
4062 (estimate_probability): Bypass loop on PRED_CONTINUE;
4063 do not handle noreturn heuristics; kill PRED_RETURN; add
4065 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4066 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4067 * predict.h (IS_TAKEN): New constant.
4068 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4069 * rtl.c (NOTE_INSN_PREDICTION): New.
4070 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4072 (insn_note): add NOTE_INSN_PREDICTION.
4073 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4074 CFG; free tail_recursion_label_list.
4075 * stmt.c: Include predict.h;
4076 (return_prediction): New.
4077 (expand_value_return): Use it.
4078 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4080 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
4082 * config/mips/mips.md: Name the unspecs with define_constant.
4083 (*HILO_delay): Rename to 'hilo_delay' (no star).
4084 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4085 (reload_outdi, reload_outsi): Likewise.
4087 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4089 * toplev.c: Fix formatting.
4091 2002-05-07 Janis Johnson <janis187@us.ibm.com>
4093 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4094 * configure.in (ac_rtlflag_checking): New.
4095 * doc/install.texi (--enable-checking): Document RTL flag checking.
4097 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
4099 * c-common.c (c_common_init): Set options->unsigned_wchar.
4100 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4101 group target dependencies.
4102 (init_builtins, cpp_handle_option): Update.
4103 * cpplex.c (cpp_interpret_charconst): Update.
4104 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4105 signed_char to unsigned_char, group target dependencies.
4106 * defaults.h (WCHAR_UNSIGNED): Remove.
4107 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4109 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4110 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4111 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4112 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4113 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4115 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4117 2002-05-07 Mark Mitchell <mark@codesourcery.com>
4119 * fixinc/inclhack.def (windiss_math1): New fix.
4120 (windiss_math2): Likewise.
4121 (windiss_valist): Likewise.
4122 * fixinc/fixincl.x: Regenerated.
4124 2002-05-07 Andreas Jaeger <aj@suse.de>
4126 * genautomata.c (output_internal_min_issue_delay_func): Add
4127 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4128 (output_internal_trans_func): Likewise.
4130 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
4132 * pa.c (hppa_profile_hook): Use force_reg to get the address
4133 of the profile hook into an appropriate pseudo register.
4135 2002-05-07 Mark Mitchell <mark@codesourcery.com>
4137 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4138 (LINK_START_SPEC): Handle it.
4139 (LINK_OS_SPEC): Likewise.
4140 (CPP_SPEC): Likewise.
4141 (STARTFILE_SPEC): Likewise.
4142 (LIB_SPEC): Likewise.
4143 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
4145 (CRTSAVRES_DEFAULT_SPEC): New macro.
4146 (LIB_WINDISS_SPEC): New macro.
4147 (CPP_OS_WINDISS_SPEC): Likewise.
4148 (STARTFILE_WINDISS_SPEC): Likewise.
4149 (ENDFILE_WINDISS_SPEC): Likewise.
4150 (LINK_START_WINDISS_SPEC): Likewise.
4151 (LINK_OS_WINDISS_SPEC): Likewise.
4152 * config/rs6000/windiss.h: New file.
4154 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
4156 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4158 2002-05-06 David S. Miller <davem@redhat.com>
4160 * config/sparc/sparc.md (shift insns): Do not mask off
4161 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4164 2002-05-06 Richard Henderson <rth@redhat.com>
4167 * expr.c (highest_pow2_factor_for_type): New.
4168 (expand_assignment): Use it.
4170 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
4172 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4174 ("altivec_mfvscr"): Same.
4176 2002-05-06 Janis Johnson <janis187@us.ibm.com>
4178 * rtl.h (struct rtx_def): Update comments.
4179 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
4180 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
4181 RTL_FLAG_CHECK macros with list of expected RTL codes.
4182 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4183 (rtl_check_failed_flag): New.
4184 * reload1.c (reload): Use REG macro before changing rtx to MEM.
4185 (reload_cse_noop_set_p): Check rtx code before using access macro.
4186 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4187 before using access macro.
4189 2002-05-06 Janis Johnson <janis187@us.ibm.com>
4191 * doc/rtl.texi (Flags): Update to reflect current usage.
4193 2002-05-06 Roger Sayle <roger@eyesopen.com>
4196 * fold-const.c (sign_bit_p): New function.
4197 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4198 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4199 Reapply fold when converting (A & C) == C into (A & C) != 0.
4200 (fold_binary_op_with_conditional_arg): Fix typo in comment.
4202 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
4204 * c-common.c (warn_multichar): New.
4205 (c_common_init): Set CPP's warn_multichar.
4206 * c-common.h (warn_multichar): New.
4207 * c-decl.c (warn_multichar): Remove.
4208 * c-lex.c (lex_charconst): Update.
4209 * c-tree.h (warn_multichar): Remove.
4210 * cppexp.c (eval_token): Sign-extend charconst value.
4211 * cppinit.c (cpp_create_reader): Set warn_multichar.
4212 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4213 each character. Update prototype. Sign-extend the result.
4214 * cpplib.h: Fix conditions.
4215 (struct cpp_options): Add new warning flag.
4216 (cpp_interpret_charconst): Update prototype.
4218 * cpp.texi: Update documentation.
4220 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
4222 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4223 Fix typo in usage of allof instead of unit.
4225 2002-05-06 Richard Henderson <rth@redhat.com>
4227 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4228 and any jump or call for IN.
4230 2002-05-06 Bernd Schmidt <bernds@redhat.com>
4232 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4234 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4236 2002-05-06 Roger Sayle <roger@eyesopen.com>
4238 * fold-const.c (lshift-double): Cast the high word to an unsigned
4239 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4240 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4241 avoid compiler warning. (fold): Remove redundant code from
4242 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4244 2002-05-06 Jeff Law <law@redhat.com>
4246 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4247 * pa.c (pa_adjust_cost): Remove all true dependency cost
4248 adjustments. Also remove support for non-DFA scheduling.
4249 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4250 to adjust true dependency costs. Update various comments.
4251 (7100lc, 7200, 7300 scheduling): Simplify by combining the
4252 FP ALU & MPY units into a single unit.
4254 2002-05-06 Catherine Moore <clm@redhat.com>
4256 * config/v850/v850.c (compute_register_save_size): Make sure
4257 to count all of the registers that will be saved.
4259 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4261 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4263 2002-05-06 David S. Miller <davem@redhat.com>
4265 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4266 allow result to overlap input operands in memory.
4268 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
4271 * cpp.texi: Update multichar charconst docs.
4273 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
4275 * cpplex.c (cpp_interpret_charconst): Sign-extend each
4276 character. Don't ignore excess characters. Treat
4277 multicharacter character constants as signed.
4278 (cpp_parse_escape): Clarify diagnostic.
4280 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4282 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4283 use add instead of shift.
4284 (ashldi3_sp64): Likewise.
4285 (ashlsi3_const1, ashldi3_const1): Remove.
4286 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4287 * config/sparc/sparc.c (const1_operand): New.
4289 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
4291 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4293 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4296 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4298 2002-05-05 Richard Henderson <rth@redhat.com>
4300 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4301 memory latency adjustments.
4302 (alpha_variable_issue): Remove.
4303 (alpha_use_dfa_pipeline_interface): New.
4304 (alpha_multipass_dfa_lookahead): New.
4305 * config/alpha/alpha.md: Remove define_function_unit scheduling;
4306 include new dfa scheduling.
4307 (attr type): Add none.
4309 * config/alpha/ev4.md: New.
4310 * config/alpha/ev5.md: New.
4311 * config/alpha/ev6.md: New.
4313 2002-05-05 David S. Miller <davem@redhat.com>
4315 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4317 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
4319 * cse.c: Fix formatting.
4320 * emit-rtl.c: Likewise.
4322 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4324 * genautomata.c (initiate_states): Add additional guard to
4325 initialize `units_array'.
4327 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4329 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4330 process_unit_to_form_the_same_automaton_unit_lists,
4331 form_the_same_automaton_unit_lists
4332 check_unit_distributions_to_automata): New prototypes and
4334 (check_automata): Rename it into `check_automata_insn_issues'.
4335 (unit_decl): New fields `the_same_automaton_unit' and
4336 `the_same_automaton_message_reported_p'.
4337 (unit_decl_t): New typedef.
4338 (the_same_automaton_lists): New gloval variable.
4339 (unit_regexp, unit_set_el, units_array, units_cmp,
4340 output_get_cpu_unit_code_func): Use the typedef.
4341 (evaluate_max_reserv_cycles): Increment
4342 `description->max_insn_reserv_cycles'.
4343 (initiate_states): Don't increment `max_cycles_num'.
4344 (transform_insn_regexps): Move code around transformation of
4345 regexps from `generate'.
4346 (generate): Remove call of `transform_insn_regexps'.
4347 (expand_automata): Call `transform_insn_regexps' and
4348 `check_unit_distributions_to_automata'. Check errors before
4351 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4352 automaton `ultrasparc3_1'.
4354 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
4356 * c-common.c (c_common_init): Set up CPP arithmetic.
4357 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4358 something reasonable for the host.
4359 (sanity_checks): Add checks.
4360 (cpp_read_main_file): Call sanity_checks() from here...
4361 (cpp_post_options): ... not here.
4362 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4363 * cpplib.h (struct cpp_options): New member int_precision.
4365 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4367 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4369 2002-05-04 David S. Miller <davem@redhat.com>
4371 * config/sparc/linux.h, config/sparc/linux64.h
4372 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4374 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4376 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4378 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4381 2002-05-05 Tim Josling <tej@melbpc.org.au>
4383 * treelang; New directory for new sample language treelang.
4385 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4387 * Makefile.in (c-lex.o): Update.
4388 * c-lex.c: Include target.h.
4389 (cb_register_builtins): New.
4390 (init_c_lex): Set builtins callback.
4391 * c-lex.h (cpp_define, cpp_assert): New prototypes.
4392 * cppinit.c (init_builtins): Use callback, including for
4394 * cpplib.h (struct cpp_callbacks): New member.
4395 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4396 (TARGET_INITIALIZER): Update.
4397 * target.h (struct gcc_target): New hook.
4398 * tree.c (default_register_cpp_builtins): New.
4399 * tree.h (default_register_cpp_builtins): New.
4401 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4403 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4405 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4406 (cpp_post_options): Move sanity checks to...
4407 (sanity_checks): New.
4408 * cpplex.c (maybe_read_ucs): Fix prototype.
4409 (parse_string, cpp_parse_escape): Cast for %c format specifier.
4410 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4413 2002-05-04 Bernd Schmidt <bernds@redhat.com>
4415 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4416 builtins. Use V2DI patterns instead of TI for logical operations.
4417 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4418 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4419 (ix86_expand_builtins): Change the pattern used for movntdq.
4420 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4421 sse2_nandv2di3): New patterns.
4422 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4424 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4425 (cvtdq2pd): Correct mode on operand 1.
4426 (sse2_umulsidi3): Describe without unspec.
4427 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4429 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4430 (ashlv2di3): Likewise, from sse2_ashlv2di3.
4431 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4432 ashlv4si3, ashlv2di3): Use SImode for shift count.
4433 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4434 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4436 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4438 (__m128i, __m128d): New macros.
4439 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4440 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4441 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4442 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4443 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4444 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4445 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4446 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4447 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4448 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4449 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4450 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4451 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4452 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4453 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4454 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4455 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4456 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4457 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4458 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4459 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4460 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4461 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4462 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4463 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4464 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4465 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4466 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4467 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4468 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4469 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4470 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4471 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4472 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4473 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4474 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4475 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4477 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4478 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4480 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4482 * dwarf2out.c: Fix formatting.
4483 * varasm.c: Likewise.
4485 2002-05-04 David Edelsohn <edelsohn@gnu.org>
4488 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4489 clobber and use result as temporary value.
4491 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4493 * expr.c (force_operand): Use expand_simple_* to handle more
4496 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4498 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4500 (lex_charconst): Update for change in prototype of
4501 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
4503 * cpphash.h (BITS_PER_CPPCHAR_T): New.
4504 * cppinit.c (cpp_create_reader): Initialize them for no
4505 change in semantics.
4506 (cpp_post_options): Add sanity checks.
4507 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4508 and truncation issues. Calculate in type cppchar_t.
4509 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4510 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
4511 run-time dependent precision correctly. Return whether the
4512 result is signed or not.
4513 * cpplib.c (dequote_string): Use cppchar_t; update.
4514 * cpplib.h (cppchar_signed_t): New.
4515 struct cpp_options): New precision members.
4516 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4517 * cppexp.c (eval_token): Update.
4519 2002-05-03 David S. Miller <davem@redhat.com>
4521 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4522 * config/sparc/sparc.c (sparc_rtx_costs): New function
4523 implementing RTX_COSTS and CONST_COSTS.
4524 * config/sparc/sparc.h (CONST_COSTS): Delete.
4525 (RTX_COSTS_CASES): Define.
4526 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4529 * config/sparc/sparc.md (DFA schedulers): Split out...
4530 * config/sparc/cypress.md, config/sparc/hypersparc.md,
4531 config/sparc/sparclet.md, config/sparc/supersparc.md,
4532 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4534 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4535 checks on it, always defined for Sparc.
4537 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4538 Tweak, and add more detailed comments.
4540 2002-05-03 Zack Weinberg <zack@codesourcery.com>
4542 * Re-apply patch accidentally reverted with
4543 DFA scheduler merge: remove all rules and variables to slurp
4544 source files out of libiberty and rebuild them with HOST_CC.
4545 ($(HOST_PREFIX_1)varray.o): New rule.
4546 (genattrtab rule): Word wrap.
4548 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4550 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4551 (CPP_SUBTARGET_SPEC): Define.
4552 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4553 cpp_subtarget specs.
4554 (CPP_SPEC): Redefine to include %(cpp_subtarget).
4556 2002-05-03 David S. Miller <davem@redhat.com>
4558 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4559 * target.h (struct gcc_target): Delete cycle_display member.
4561 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4562 (rtx_needs_barrier): Delete reference to cycle_display unspec.
4563 (ia64_sched_reorder2): Mention need for cycle display handling
4564 once such notes exist.
4566 2002-05-03 Richard Henderson <rth@redhat.com>
4568 * real.c (etoasc): Strip most trailing zeros for clarity.
4569 * sched-vis.c: Include real.h.
4570 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4571 * Makefile.in (sched-vis.o): Add real.h.
4573 2002-05-03 David S. Miller <davem@redhat.com>
4575 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4578 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
4580 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4581 when we get an out of range literal.
4582 (altivec_expand_ternop_builtin): Same.
4583 (altivec_expand_unop_builtin): Same.
4584 (altivec_expand_builtin): Same, for dss.
4585 (altivec_expand_builtin): Use trees instead of rtl when
4586 determining literal argument validity.
4588 2002-05-03 David S. Miller <davem@redhat.com>
4590 Delete cycle display scheduling hook.
4591 * config/ia64/ia64.c (ia64_cycle_display,
4592 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4593 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4594 and use emit_insn_before instead of ia64_emit_insn_before.
4595 * config/ia64/ia64.md (unspec usage): Delete cycle display.
4596 (cycle_display): Delete insn pattern.
4597 * config/sparc/sparc.md (unspec usage): Delete cycle display.
4598 (cycle_display): Delete insn pattern.
4599 * config/sparc/sparc.c (sparc_cycle_display,
4600 TARGET_SCHED_CYCLE_DISPLAY): Delete.
4601 * doc/md.texi (cycle_display): Don't mention.
4602 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4604 2002-05-03 Richard Henderson <rth@redhat.com>
4606 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4607 * recog.h: Declare them.
4609 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4610 * config/sparc/sparc.md: Use store_data_bypass_p instead.
4611 * config/sparc/sparc-protos.h: Update.
4613 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4615 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4616 -D__arch64__. Add -D_LP64.
4617 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4619 (CPP_ARCH64_SPEC): Likewise.
4620 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4621 (NO_BUILTIN_SIZE_TYPE): Undef.
4623 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
4625 * genautomata.c (min_issue_delay_pass_states): Change return type
4627 (min_issue_delay_pass_states): Change the algorithm.
4628 (min_issue_delay): Set up min_insn_issue_delay for the state.
4629 (output_min_issue_delay_table): Interchange the nested loops and
4630 and initiate min_insn_issue_delay for states.
4632 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
4634 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
4637 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4639 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
4642 2002-05-03 Richard Henderson <rth@redhat.com>
4645 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4646 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4647 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4648 code before JUMP, not EARLIEST.
4650 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
4652 * c-format.c (check_format_info_main): Don't check for presence of
4653 parameter for * width until after operand number has been read,
4654 and only check for it if format parameters are available.
4657 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4659 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4660 (LINK_SPEC): Undef before defining.
4662 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4664 PR preprocessor/6489
4665 * tradcpp.c (fixup_newlines): New.
4666 (main, finclude): Use it.
4668 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4670 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4671 * config/mips/mips.c (mips_unique_section): Strip encoding from
4674 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4676 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4679 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4681 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4682 (Specific): Removed buildstats references.
4683 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4684 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4685 Accomodate Solaris versions beyond 8.
4686 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4687 (Specific, *-*-solaris2.8): Removed, obsolete.
4689 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4692 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4693 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4694 fill leaf_reg_remap with identity.
4695 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4697 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4699 * config/h8300/crti.asm: Remove trailing spaces.
4700 * config/h8300/h8300.c: Likewise.
4701 * config/h8300/lib1funcs.asm: Likewise.
4703 2002-05-02 Jason Merrill <jason@redhat.com>
4705 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4706 * c-decl.c (c_init_decl_processing): Use it.
4707 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4708 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4709 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4711 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4713 * regrename.c: Fix formatting.
4716 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4718 * i386.md (attribute memory): Handle compares properly.
4720 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4722 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4725 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4727 * function.c: Fix formatting.
4729 2002-05-02 Jan Hubicka <jh@suse.cz>
4731 * haifa-sched.c (schedule_insn): Print table of instructions and
4733 (sched_block): Do not print ready list at verbosity level 1.
4734 * sched-vis.c (print_insn): Make global.
4735 * sched-ebb.c (ebb_print_insn): Rename from...
4736 (print_insn): ... this one.
4737 * sched-int.h (print_insn): Declare
4739 2002-05-02 Richard Henderson <rth@redhat.com>
4741 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4742 emitted by cycle_display.
4744 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
4746 * doc/install.texi (*-*-freebsd*): Update to latest status.
4748 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4751 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4752 * config/float-sparc.h: Assume 128-bit long double if
4753 __LONG_DOUBLE_128__ is defined.
4755 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
4757 * genattrtab.c (write_function_unit_info): Add a dummy element
4758 when num_units == 0.
4760 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4762 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4763 TYPE_MODE (double_type_node) instead of DFmode.
4765 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
4767 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4769 * toplev.c (rest_of_compilation): Revert Richard's patch.
4771 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4773 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4775 2002-05-02 Catherine Moore <clm@redhat.com>
4777 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4779 2002-05-02 Kazu Hirata <kazu@hxi.com>
4781 * combine.c: Fix comment typos.
4783 * genautomata.c: Likewise.
4787 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4789 * doc/install.texi: State GNAT version requirements.
4791 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4793 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4794 of the frame pointer or arg pointer register which strict register
4795 checking is not enabled.
4797 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4799 * gcc.dg/altivec-8.c: New.
4801 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4802 PRE_INC and PRE_DEC for altivec modes.
4804 2002-05-01 Bruce Korb <bkorb@gnu.org>
4806 * fixinc/check.tpl(set-writable): make sure the function exists first
4807 * fixinc/inclhack.def(alpha_assert): fix test_text
4808 * fixinc/tests/base/assert.h: add in missing result
4810 2002-05-01 Jeff Law <law@redhat.com>
4812 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4815 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4817 * dbxout.c (dbxout_type): Emit size information for range types,
4818 as well, but only when using GDB extensions.
4820 2002-05-01 Richard Henderson <rth@redhat.com>
4822 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4823 target-independent gnu binutils date test.
4825 2002-05-01 Richard Henderson <rth@redhat.com>
4827 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4828 info before expunging the block.
4830 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4832 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4833 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4834 -M -or -MM is in effect.
4836 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4838 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4839 A29k configurations.
4840 * doc/install.texi: Update to match.
4842 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4845 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4846 for duplicates. Always loop over whole list.
4848 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4850 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4852 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4854 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4857 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4859 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4861 2002-05-01 David Edelsohn <edelsohn@gnu.org>
4863 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4864 (nabs_nopower): Same.
4865 (floatdisf2): New pattern.
4866 (absdi2): Convert to define_insn_and_split.
4871 (fix_trunctfdi2): Same.
4872 (fix_trunctfsi2): Same.
4874 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
4876 * doc/install.texi: Update Texinfo version requirement
4879 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4881 PR target/6512, PR target/5628
4882 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4883 when memory is not aligned.
4884 (movdf_insn_v9only_vis): Likewise.
4885 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4886 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4887 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4889 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
4891 * gcc.dg/altivec-7.c: New.
4893 * config/rs6000/altivec.h: Cleanup.
4895 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
4897 * doc/invoke.texi (Option Summary): Add -mvrsave=.
4898 (RS/6000 and PowerPC Options): Document -mvrsave=.
4900 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4901 (rs6000_altivec_vrsave_string): Same.
4902 (rs6000_override_options): Call rs6000_parse_vrsave_option.
4903 (rs6000_parse_vrsave_option): New.
4904 (rs6000_stack_info): Only generate vrsave instructions when
4905 TARGET_ALTIVEC_VRSAVE.
4907 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4908 (rs6000_altivec_vrsave_string): Define extern.
4909 (rs6000_altivec_vrsave): Same.
4910 (TARGET_ALTIVEC_VRSAVE): New.
4912 2002-04-30 Richard Henderson <rth@redhat.com>
4915 * toplev.c (rest_of_compilation): Don't run cross-jump before
4918 2002-04-30 Tom Rix <trix@redhat.com>
4920 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4921 check which_alternative.
4923 2002-04-30 Kazu Hirata <kazu@hxi.com>
4925 * cpplex.c: Fix comment formatting.
4926 * function.c: Likewise.
4927 * integrate.c: Likewise.
4928 * regrename.c: Likewise.
4929 * sibcall.c: Likewise.
4930 * simplify-rtx.c: Likewise.
4931 * tree-inline.c: Likewise.
4933 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4935 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4936 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4937 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4938 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4939 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4940 * pa/x-ada: New file. Define ADA_CFLAGS.
4942 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
4944 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4945 from MMIX_LAST_REGISTER_FILE_REGNUM.
4946 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4947 (struct machine_function): New member highest_saved_stack_register
4948 previously static variable in mmix.c.
4949 (MACHINE_DEPENDENT_REORG): Define.
4950 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4951 (MMIX_OUTPUT_REGNO): New.
4952 (mmix_target_asm_function_prologue): Move calculation of last used
4953 saved-stack-register into...
4954 (mmix_machine_dependent_reorg): New function. Update to also handle
4956 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4957 register names, simplify somewhat by new variable regno.
4958 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
4960 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4961 emitting register names.
4962 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4963 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4965 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4968 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4970 2002-04-30 Richard Henderson <rth@redhat.com>
4972 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4973 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4974 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4975 emit_tfmode_cvt): New.
4976 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4977 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4978 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4979 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4980 * config/sparc/sparc-protos.h: Update.
4982 2002-04-30 Janis Johnson <janis187@us.ibm.com>
4984 * install.texi (Final install): Add to the list of info to include
4985 in a report of a successful bootstrap, and add link to 3.1 list.
4987 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
4989 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4990 (mode): Add vector modes
4991 (i387): Kill attribute.
4992 (unit): New attribute.
4993 (length_immediate): Grok new types.
4994 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4995 (modrm): Use "unit".
4996 (memory): Handle MMX/SSE properly.
4997 (scheduling descriptions): Kill uses of fop1.
4998 (sse, mmx, fp patterns): Set type and mode properly.
5000 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
5002 * pa.c (override_options): Default to PA8000 scheduling.
5003 * doc/invoke.texi (HP-PA options): Mention newly added 7300
5004 scheduling parameter.
5006 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
5007 handling of double precision multiplies.
5009 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
5010 fpdiv and fpsqrt instructions.
5011 (7200 & 7300 scheduling): Fix typo in handling of
5012 store-load and store-store penalties.
5014 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5016 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
5017 mips. Add two missing commas.
5019 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
5021 * doc/contrib.texi (Contributors): Update Paolo Carlini's
5022 and Benjamin Kosnik's entries.
5024 2002-04-29 David S. Miller <davem@redhat.com>
5026 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
5027 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5028 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
5029 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5031 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5033 * combine.c (find_split_point): Use gen_int_mode.
5035 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
5037 Merging code from dfa-branch:
5039 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
5041 * genautomata.c (output_reserv_sets): Fix typo.
5043 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
5045 * genautomata.c (output_reserv_sets): Remove
5046 next_cycle_output_flag.
5048 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
5050 * sched-rgn.c (init_ready_list): Make the DFA code handle
5051 USE/CLOBBER insns in the same way as the traditional
5053 (new_ready): Similarly..
5055 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
5057 * haifa-sched.c (schedule_block): Change the DFA state only after
5060 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
5062 * pa.c (hppa_use_dfa_pipeline_interface): New function.
5063 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5064 (override_options): Add PA7300 scheduling support.
5065 (pa_adjust_cost): Update various comments. Properly
5066 handle anti and output dependencies when using the
5068 (pa_issue_rate): Add PA7300 scheduling support.
5069 (pa_can_combine_p): Call extract_insn before calling
5070 constrain_operands (taken from mainline tree).
5071 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5072 * pa.md (cpu attr): Add 7300. Rewrite pipeline
5073 descriptions using DFA descriptions. Add PA7300
5076 2002-03-30 David S. Miller <davem@redhat.com>
5078 Add UltraSPARC-III DFA scheduling support.
5079 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5080 Update FP conditional move on register insn patterns to use it, as
5082 (define_attr cpu): Add ultrasparc3.
5083 (define_attr us3load_type): New, update integer load patterns to
5084 set it, as appropriate.
5085 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5086 (rest): Add UltraSPARC3 scheduling description.
5087 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5088 (PROCESSOR_ULTRASPARC3): New.
5089 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5090 ({ASM,CPP}_CPU_SPEC): Likewise.
5091 (REGISTER_MOVE_COST): Likewise.
5092 (RTX_COSTS): Likewise.
5093 * config/sparc/sparc.c (sparc_override_options,
5094 sparc_initialize_trampoline, sparc64_initialize_trampoline,
5095 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5096 sparc_issue_rate): Likewise.
5097 * config/sparc/sol2.h: Likewise.
5098 * config/sparc/sol2-sld-64.h: Likewise.
5099 * config/sparc/linux64.h: Likewise.
5101 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
5103 * doc/md.texi: Add comments about usage the latency time for the
5104 different dependencies and about case when two or more conditions
5105 in different define_insn_reservations returns TRUE for an insn.
5107 * doc/md.texi: Add reference for automaton based pipeline
5110 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
5112 * doc/passes.texi: Add missed information about genattrtab.
5114 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
5116 * genautomata.c (output_automata_list_transition_code): Check
5117 automata_list on NULL.
5119 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
5121 * genautomata.c (output_insn_code_cases,
5122 output_automata_list_min_issue_delay_code,
5123 output_automata_list_transition_code,
5124 output_automata_list_state_alts_code): Comment the functions.
5126 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
5128 * genautomata.c (automata_list_el_t): New typedef.
5129 (get_free_automata_list_el,free_automata_list_el,
5130 free_automata_list, automata_list_hash, automata_list_eq_p,
5131 initiate_automata_lists, automata_list_start, automata_list_add,
5132 automata_list_finish, finish_automata_lists,
5133 output_insn_code_cases, output_automata_list_min_issue_delay_code,
5134 output_automata_list_transition_code,
5135 output_automata_list_state_alts_code, add_automaton_state,
5136 form_important_insn_automata_lists): New functions and prototypes.
5137 (insn_reserv_decl): Add members important_automata_list and
5139 (ainsn): Add members important_p.
5140 (automata_list_el): New structure.
5141 (first_free_automata_list_el, current_automata_list,
5142 automata_list_table): New global variables.
5143 (create_ainsns): Initiate member important_p.
5144 (output_internal_min_issue_delay_func): Generate the switch and
5145 call output_insn_code_cases.
5146 (output_internal_trans_func, output_internal_state_alts_func):
5148 (generate): Call initiate_automata_lists.
5149 (automaton_states): New global variable.
5150 (expand_automata): Call form_important_insn_automata_lists.
5151 (write_automata): Call finish_automata_lists.
5153 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
5155 * genautomata.c (add_excls, add_presence_absence): Check that
5156 cpu units in the sets belong the same automaton.
5158 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5159 about that cpu units in the sets belong the same automaton.
5161 * doc/md.texi: Ditto.
5163 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
5164 Nitin Gupta <niting@noida.hcltech.com>
5166 * config/sh/sh.c (sh_use_dfa_interface): New function.
5168 (sh_issue_rate): New Function.
5169 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5170 TARGET_SCHED_ISSUE_RATE: define.
5172 * config/sh/sh.md: Add DFA based pipeline description for SH4.
5174 (define_attr insn_class): New attribute used for DFA
5176 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5177 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5178 cmpeqdi_t): Likewise.
5180 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5181 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5183 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5185 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
5187 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5190 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
5192 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5193 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5195 (output_dfa_start_func): Initiate new variable insn_codes_length,
5196 (write_automata): Output definition of the new variable.
5198 2001-10-02 David S. Miller <davem@redhat.com>
5200 * haifa-sched.c (advance_one_cycle): New function.
5201 (schedule_block): Use it.
5202 (queue_to_ready): Use it, and also make sure to advance the DFA
5203 state on all stall cycles, not just those where insn_queue links
5206 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
5208 * haifa-sched.c (max_issue): Remove last_p argument. Only return
5209 non-zero if the highest-priority instruction could be scheduled.
5210 (choose_ready): Remove last argument from max_issue call.
5212 2001-09-28 David S. Miller <davem@redhat.com>
5214 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5215 ultrasparc and 3 for other multi-issue sparcs.
5217 2001-09-27 David S. Miller <davem@redhat.com>
5219 * config/sparc/sparc.md (cycle_display): New pattern.
5220 * config/sparc/sparc.c (sparc_cycle_display): New.
5221 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5223 2001-09-25 David S. Miller <davem@redhat.com>
5225 Convert all of Sparc scheduling to DFA
5226 * config/sparc/sparc.md: Kill all define_function_unit
5227 directives and replace with DFA equivalent.
5228 * config/sparc/sparc.c (ultrasparc_adjust_cost,
5229 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5230 ultra_fpmode_conflict_exists, ultra_find_type,
5231 ultra_build_types_avail, ultra_flush_pipeline,
5232 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5233 ultrasparc_variable_issue, ultrasparc_sched_init,
5234 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5235 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5236 ultra_cur_hist, ultra_cycles_elapsed): Kill.
5237 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5238 ultrasparc_store_bypass_p): New.
5239 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5242 2001-09-24 David S. Miller <davem@redhat.com>
5244 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5245 ready->vec[foo] not ready[foo].
5247 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
5249 * doc/md.texi: Correct examples for define_insn_reservations
5252 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
5254 * genautomata.c (create_automata): Print message about creation of
5256 (generate): Remove printing meease about creation of
5259 2001-09-05 David S. Miller <davem@redhat.com>
5261 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5262 * config/sparc/linux64.h: Likewise.
5264 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
5266 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5267 schedule_block, sched_init, sched_finish): Add missed calls of
5268 use_dfa_pipeline_interface.
5270 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5273 * sched-vis.c (get_visual_tbl_length): Ditto.
5275 2001-08-27 Richard Henderson <rth@redhat.com>
5277 * genattr.c (main): Emit state_t even when not doing scheduling.
5279 2001-08-27 Richard Henderson <rth@redhat.com>
5281 * genautomata.c (expand_automata): Always create a description.
5283 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
5285 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5286 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5287 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5290 * genattr.c (main): New variable num_insn_reservations. Increase
5291 it if there is DEFINE_INSN_RESERVATION. Output automaton based
5292 pipeline hazard recognizer interface.
5294 * genattrtab.h: New file.
5296 * genattrtab.c: Include genattrtab.h.
5297 (attr_printf, check_attr_test, make_internal_attr,
5298 make_numeric_value): Move protypes into genattrtab.h. Define them
5300 (num_dfa_decls): New global variable.
5301 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5302 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5303 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5304 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
5306 * genautomata.c: New file.
5308 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5310 * sched-int.h: (curr_state): Add the external definition for
5311 automaton pipeline interface.
5312 (haifa_insn_data): Add comments for members blockage and units.
5314 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5315 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5316 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5317 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5318 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5319 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5320 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5322 (TARGET_SCHED): Use the new macros.
5324 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5325 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5326 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5327 dfa_bubble): New members in gcc_target.sched.
5329 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5330 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5331 (insn_queue): Redefine it as pointer to array.
5332 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5334 (max_insn_queue_index_macro_value): New variable.
5335 (curr_state, dfa_state_size, ready_try): New varaibles for
5336 automaton interface.
5337 (ready_element, ready_remove, max_issue): New function prototypes
5338 for automaton interface.
5339 (choose_ready): New function prototype.
5340 (insn_unit, blockage_range): Add comments.
5341 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5342 FUNCTION_UNITS_SIZE == 0.
5343 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5344 actual_hazard, potential_hazard): Add comments.
5345 (insn_cost): Use cost -1 as undefined value. Remove
5346 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
5348 (ready_element, ready_remove): New functions for automaton
5350 (schedule_insn): Add new code for automaton pipeline interface.
5351 (queue_to_ready): Add new code for automaton pipeline interface.
5352 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5353 (debug_ready_list): Print newline when the queue is empty.
5354 (max_issue): New function for automaton pipeline interface.
5355 (choose_ready): New function.
5356 (schedule_block): Add new code for automaton pipeline interface.
5357 Print ready list before scheduling each insn.
5358 (sched_init): Add new code for automaton pipeline interface.
5359 Initiate insn cost by -1.
5360 (sched_finish): Free the current automaton state and finalize
5361 automaton pipeline interface.
5363 * sched-rgn.c: Include target.h.
5364 (init_ready_list, new_ready, debug_dependencies): Add new code for
5365 automaton pipeline interface.
5367 * sched-vis.c: Include target.h.
5368 (get_visual_tbl_length): Add code for automaton interface.
5369 (target_units, print_block_visualization): Add comments.
5371 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5372 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5373 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5374 (getruntime.o, genautomata.o): New entries.
5375 (genattrtab.o): Add new dependency file genattrtab.h.
5376 (genattrtab): Add new dependencies. Link it with `libm.a'.
5377 (getruntime.o, hashtab.o): New entries for canadian cross.
5379 * doc/md.texi: Description of automaton based model.
5381 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5383 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5384 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5385 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5386 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5387 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5388 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5389 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5391 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5392 MAX_DFA_ISSUE_RATE): New macro descriptions.
5394 * doc/contrib.texi: Add dfa based scheduler contribution.
5396 * doc/gcc.texi: Add more information about genattrtab.
5398 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5400 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5401 adjust_address_nv call.
5403 2002-04-29 Janis Johnson <janis187@us.ibm.com>
5405 * doc/install.texi (Testing): Provide additional information, and
5406 a stronger encouragement, for running the testsuites.
5408 2002-04-29 DJ Delorie <dj@redhat.com>
5410 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5411 given in upper case.
5413 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5415 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5416 Solaris 2 <widec.h> if missing.
5417 * fixinc/fixincl.x: Regenerate.
5418 * fixinc/tests/base/widec.h: New file.
5420 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
5422 * toplev.c (f_options): Add "profile" switch so that
5423 -fno-profile can be used to disable -p.
5425 2002-04-29 Bernd Schmidt <bernds@redhat.com>
5427 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5429 * tree.c (build_common_tree_nodes_2): Likewise.
5430 * tree.h (enum tree_index): Likewise.
5431 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5433 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5435 (init_mmx_sse_builtins): Initialize SSE2 builtins.
5436 (ix86_expand_builtin): Add support for SSE2 builtins.
5437 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5438 (VALID_SSE_REG_MODE): Use it.
5439 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5440 (enum ix86_builtins): Add SSE2 builtins.
5441 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5442 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5443 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5444 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5445 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5446 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5447 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5448 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5449 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5450 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5451 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5452 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5453 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5454 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5455 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5456 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5457 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5458 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5459 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5460 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5461 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5462 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5463 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5464 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5465 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5466 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5467 lfence_insn): New patterns.
5468 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5469 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5471 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
5473 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5475 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5477 * doc/contrib.texi (Contributors): Add Paolo Carlini and
5479 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5480 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5481 and CPU instead of cpu.
5483 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5485 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5487 (lang_independent_options): Add -fif-conversion, -fif-conversion2
5488 (rest_of_compilation): Do if conversion only when asked for.
5489 (parse_options_and_default_flags): Set new variables to 1 for -O1
5490 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5492 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5494 * i386.c (dbx64_register_map): Fix typo.
5496 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5498 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5499 real_one_half, real_bb_freq_max): New static variables.
5500 (debug_profile_bbauxs): Kill.
5501 (process_note_predictions): Kill unused variable.
5502 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5504 (propagate_freq): Use REAL_ARITHMETICS.
5505 (estimate_bb_frequencies): Likevise; init new static variables.
5506 * Makefile.in (predict.o): Add dependency on real.h
5508 2002-04-28 David S. Miller <davem@redhat.com>
5511 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5512 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
5513 several {reads,writes} instead.
5514 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5517 2002-04-27 David S. Miller <davem@redhat.com>
5520 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5523 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5524 including signal.h and sys/ucontext.h, not needed.
5526 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
5528 * varasm.c (output_constant_def): Correct test for not calling
5529 ENCODE_SECTION_INFO for INTEGER_CST.
5531 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
5533 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5534 keep most cases as function eval_token.
5535 (eval_token): New function.
5536 (_cpp_parse_expr): Read token here for improved diagnostics.
5537 Don't use op_as_text. Detect bad ':' here.
5538 (reduce): Don't detect bad ':' here.
5539 (op_as_text): Remove.
5540 * cpphash.h (_cpp_test_assertion): Change prototype.
5541 * cpplib.c (_cpp_test_assertion): Change prototype.
5543 2002-04-28 Richard Henderson <rth@redhat.com>
5546 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5547 (ggc_mark_rtx_children): New.
5549 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5552 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5553 after call peepholes for UltraSPARC.
5554 (call + jump 64-bit peepholes): Remove.
5556 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5559 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5560 result as temporary value.
5562 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5565 * toplev.c (rest_of_compilation): Only run regrename and copy
5566 propagation if optimizing.
5568 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5570 PR optimization/6475
5571 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5572 register of REGNO_DECL (i).
5573 * Makefile.in (reload1.o): Add $(TREE_H).
5575 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
5577 * cppexp.c (lex): Update to use state.skip_eval.
5578 (struct op): Remove prio and flags members.
5579 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5580 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5581 (LEFT_ASSOC): New macro.
5582 (optab): New table of operator priorities and flags.
5584 (_cpp_parse_expr): Clean up logic. Return bool. Use a
5585 malloc-ed parser stack.
5586 (reduce): New; reduce the operator stack.
5587 (_cpp_expand_op_stack): Expand the operator stack as necessary.
5588 * cpphash.h (struct op): Predeclare.
5589 (struct cpp_reader): New members op_stack, op_limit.
5590 (struct lexer_state): New member skip_eval.
5591 (_cpp_parse_expr): Update.
5592 (_cpp_expand_op_stack): New.
5593 * cpplib.c (do_if): Update.
5594 * cppinit.c (cpp_create_reader): Create op stack.
5595 (cpp_destroy): And destroy it.
5596 * cpplib.h (CPP_LAST_CPP_OP): Correct.
5597 (TTYPE_TABLE): Correct.
5599 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5602 * c-decl.c (duplicate_decls): Call merge_weak.
5603 * c-pragma.c (apply_pragma_weak): Warn about misuse.
5604 * output.h (merge_weak): Prototype merge_weak.
5605 * varasm.c (merge_weak): New function.
5606 (declare_weak): Make sure we don't give an error on VAR_DECLs.
5607 Mark RTL with SYMBOL_REF_WEAK.
5609 2002-04-27 Kurt Garloff <garloff@suse.de>
5611 * tree-inline.c (inlinable_function_p): Improve heuristics
5612 by using a smoother function to cut down allowable inlinable size.
5613 * param.def: Add parameters max-inline-insns-single,
5614 max-inline-slope, min-inline-insns that determine the exact
5615 shape of the above function.
5616 * param.h: Likewise.
5618 2002-04-26 Richard Henderson <rth@redhat.com>
5620 * c-parse.in (malloced_yyss, malloced_yyvs): New.
5621 (yyoverflow): Re-add. Set them.
5622 (free_parser_stacks): New.
5623 * c-common.h: Declare it.
5624 * c-lex.c (c_common_parse_file): Call it.
5626 2002-04-26 Richard Henderson <rth@redhat.com>
5628 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5629 for fallthru search.
5631 2002-04-26 Eric Christopher <echristo@redhat.com>
5633 PR optimization/3700
5634 * config/mips/mips.c (mips_issue_rate): Define. New function.
5635 (TARGET_SCHED_ISSUE_RATE): Use.
5637 2002-04-25 David S. Miller <davem@redhat.com>
5640 * reorg.c (optimize_skip): Do not allow exception causing
5641 instructions to be considered for delay slots.
5642 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5643 (relax_delay_slots): Do not try to consider exception causing
5644 instructions as redundant.
5646 2002-04-26 Richard Henderson <rth@redhat.com>
5649 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5651 2002-04-26 Mark Mitchell <mark@codesourcery.com>
5654 * config/i386/i386.md (untyped_call): Return the value in a float
5655 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5658 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
5660 * tree.c (tree_int_cst_lt): Compare constants whose types differ
5661 in unsigned-ness correctly.
5663 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5665 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5666 portable runtime model.
5668 2002-04-26 Richard Henderson <rth@redhat.com>
5670 * c-parse.in (yyoverflow): Revert.
5672 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5673 Richard Henderson <rth@redhat.com>
5675 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5676 result as temporary value.
5678 2002-04-26 Richard Henderson <rth@redhat.com>
5681 * c-common.c (fix_string_type): Split out of ...
5682 (combine_strings): ... here. Take a varray, not a tree list.
5683 (c_expand_builtin_printf): Use fix_string_type.
5684 * c-common.h: Update decls.
5685 * c-parse.in (string): Remove. Update all uses to use STRING
5686 instead, and not call combine_strings.
5689 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5690 (build_asm_stmt): Likewise.
5691 * objc/objc-act.c (my_build_string): Use fix_string_type.
5692 (build_objc_string_object): Build varray for combine_strings.
5694 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5696 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5699 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5701 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5702 (HAVE_NO_R_OPERAND): Remove.
5703 (HAVE_VALUE): Remove.
5704 (op_to_prio): Update.
5705 (UNARY): Don't alter flags.
5706 (_cpp_parse_expr): want_value used to indicate whether
5707 a number or unary operator is expected next. Distinguish
5708 unary and binary +/-.
5709 (op_as_text): Update for unary operators.
5711 2002-04-25 Richard Henderson <rth@redhat.com>
5714 * c-parse.in (yyoverflow): New.
5716 2002-04-25 Richard Henderson <rth@redhat.com>
5719 * c-common.c (shorten_compare): Simplfy conditions leading to
5720 the generation of a warning.
5722 2002-04-25 Richard Henderson <rth@redhat.com>
5725 * expmed.c (extract_bit_field): Fall through to generic code rather
5726 than aborting on subreg special case.
5728 2002-04-25 David S. Miller <davem@redhat.com>
5730 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5731 for DECL being NULL.
5733 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5735 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5737 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
5739 * c-decl.c (grokdeclarator): Remove outdated ??? note
5740 on invalid declaration of flexible array members.
5742 2002-04-25 Richard Henderson <rth@redhat.com>
5744 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5746 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5748 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5749 needed by the compiler, even if they are used as global regs.
5751 2002-04-25 Matt Hiller <hiller@redhat.com>
5753 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5755 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5756 of the corresponding functions.
5757 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5760 2002-04-25 Matt Hiller <hiller@redhat.com>
5762 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5764 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5765 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5766 registers, adjust comment accordingly.
5767 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5768 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5769 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5770 for coprocessor registers.
5771 (ADDITIONAL_REGISTER_NAMES): Include
5772 ALL_COP_ADDITIONAL_REGISTER_NAMES.
5774 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5775 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5776 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5777 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5778 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5780 (mips_char_to_class): Adjust comment to include coprocessor
5783 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5785 (mips_reg_names, mips_regno_to_class): Include coprocessor
5787 (mips_sw_reg_names): Ditto, make non-static.
5788 (mips_move_1word): Handle moves to and from coprocessor registers.
5789 (mips_move_2words): Handle moves to and from coprocessor
5791 (mips_class_max_nregs, mips_register_move_cost): Handle
5792 coprocessor register classes.
5793 (override_options): Initialize mips_char_to_class and
5794 mips_hard_regno_mode_ok properly for coprocessor registers.
5796 * config/mips/mips.md (movdi_internal, movdi_internal2,
5797 movsi_internal1, movsi_internal2): Add constraint-sets for
5798 coprocessor registers.
5799 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5800 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5802 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5803 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5805 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5806 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5808 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5809 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5812 * doc/tm.texi: Document feature.
5814 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5816 * integrate.c (function_attribute_inlinable_p): Simplify.
5817 Check the table pointer is not NULL.
5819 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5821 * doc/c-tree.texi: Fix typo in introduction.
5823 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5825 * c-common.h (c_common_parse_file): Update.
5826 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5827 * c-lex.c (YYDEBUG): Get from c-lex.h.
5828 (c_common_parse_file): Update.
5829 * c-lex.h (YYDEBUG, yydebug): New.
5830 * c-parse.in (YYDEBUG): Get from c-lex.h.
5831 (c_set_yydebug): Remove.
5832 * c-tree.h (c_set_yydebug): Remove.
5833 * langhooks-def.h (lhd_do_nothing_i): New.
5834 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5835 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5836 * langhooks.c (lhd_do_nothing_i): New.
5837 (lhd_set_yydebug): Remove.
5838 * langhooks.h (struct lang_hooks): Update.
5839 * toplev.c (set_yydebug): New.
5840 (compile_file): Update call to parse_file hook.
5841 (decode_d_option): Update.
5843 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5845 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
5847 * loop.c (load_mems): Don't change the interface of called functions.
5849 * calls.c (expand_call): Take current_function_pretend_args_size
5850 into account when setting argblock for sibcalls.
5852 2002-04-24 Matt Hiller <hiller@redhat.com>
5854 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5857 * cpplex.c (skip_line_comment): Process comment one multibyte
5858 character at a time rather than one char at a time, if
5860 (parse_string): Process string one multibyte character at a time
5861 rather than one char at a time, if appropriate.
5862 * c-lex.c (lex_string): Lex and copy multibyte strings
5864 * cpplib.h (cppchar_t): Change to unsigned.
5866 2002-04-24 Richard Henderson <rth@redhat.com>
5869 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5872 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
5874 * sh.c (sh_va_arg): If argument was passed by reference,
5875 dereference the pointer.
5877 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5879 * sh.md (divsi3_i4_media): Use match_operand for input values
5880 rather than hard registers.
5881 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5882 unnecessarily through hard registers. Keep copies of pseudo
5883 registers outside of the libcall sequence.
5885 * sh.md (casesi_shift_media): Add modes.
5887 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5890 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
5892 * attribs.c (c_common_attribute_table): Move table and handlers
5894 (format_attribute_table, lang_attribute_table,
5895 lang_attribute_common): Remove.
5896 (init_attributes): Replace NULL pointers with pointers to the
5898 (handle_packed_attribute, handle_nocommon_attribute,
5899 handle_common_attribute, handle_noreturn_attribute,
5900 handle_noinline_attribute, handle_always_inline_attribute,
5901 handle_used_attribute, handle_unused_attribute,
5902 handle_const_attribute, handle_transparent_union_attribute,
5903 handle_constructor_attribute, handle_destructor_attribute,
5904 handle_mode_attribute, handle_section_attribute,
5905 handle_aligned_attribute, handle_weak_attribute,
5906 handle_alias_attribute, handle_visibility_attribute,
5907 handle_no_instrument_function_attribute, handle_malloc_attribute,
5908 handle_no_limit_stack_attribute, handle_pure_attribute,
5909 handle_deprecated_attribute, handle_vector_size_attribute,
5910 vector_size_helper): Move to c-common.c.
5911 * c-common.c (c_common_attribute_table,
5912 handle_packed_attribute, handle_nocommon_attribute,
5913 handle_common_attribute, handle_noreturn_attribute,
5914 handle_noinline_attribute, handle_always_inline_attribute,
5915 handle_used_attribute, handle_unused_attribute,
5916 handle_const_attribute, handle_transparent_union_attribute,
5917 handle_constructor_attribute, handle_destructor_attribute,
5918 handle_mode_attribute, handle_section_attribute,
5919 handle_aligned_attribute, handle_weak_attribute,
5920 handle_alias_attribute, handle_visibility_attribute,
5921 handle_no_instrument_function_attribute, handle_malloc_attribute,
5922 handle_no_limit_stack_attribute, handle_pure_attribute,
5923 handle_deprecated_attribute, handle_vector_size_attribute,
5924 vector_size_helper): Move from attribs.c.
5925 * c-common.h (c_common_attribute_table,
5926 c_common_format_attribute_table): New.
5927 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5928 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5929 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5930 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5931 (LANG_HOOKS_INITIALIZER): Update.
5932 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5933 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5934 * target.h: Update comment.
5935 * tree.c (default_target_attribute_table): Remove.
5936 * tree.h (default_target_attribute_table, format_attribute_table,
5937 lang_attribute_table, lang_attribute_common): Remove.
5939 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5940 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5942 2002-04-24 Jason Merrill <jason@redhat.com>
5944 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5945 * dwarf2out.c (dwarf_attr_name): Support it.
5946 (gen_array_type_die): Emit it.
5947 (lookup_type_die): No special handling for VECTOR_TYPE.
5948 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5950 2002-04-24 Richard Henderson <rth@redhat.com>
5952 * config/mips/mips.md (movdi_usd): Renumber.
5954 2002-04-24 David S. Miller <davem@redhat.com>
5957 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5958 32-bit Sparc and current_function_returns_struct is true.
5960 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5962 * loop.c (canonicalize_condition): Use gen_int_mode.
5964 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
5966 * config/rs6000/altivec.h: Cleanup file. Add non individual
5988 (vec_vcmpequb): New.
5989 (vec_vcmpequh): New.
5990 (vec_vcmpequw): New.
5991 (vec_vcmpeqfp): New.
5992 (vec_vcmpgefp): New.
5993 (vec_vcmpgtub): New.
5994 (vec_vcmpgtsb): New.
5995 (vec_vcmpgtuh): New.
5996 (vec_vcmpgtsh): New.
5997 (vec_vcmpgtuw): New.
5998 (vec_vcmpgtsw): New.
5999 (vec_vcmpgtfp): New.
6000 (vec_vcmpgefp): New.
6005 (vec_vexptefp): New.
6010 (vec_lde): Add vector float variant.
6015 (vec_vmhaddshs): New.
6037 (vec_vmladduhm): New.
6038 (vec_vmhraddshs): New.
6040 (vec_vmsummbm): New.
6041 (vec_vmsumuhm): New.
6042 (vec_vmsumshm): New.
6043 (vec_vmsumuhs): New.
6044 (vec_vmsumshs): New.
6053 (vec_vnmsubfp): New.
6071 (vec_vrsqrtefp): New.
6082 (vec_vspltisb): New.
6083 (vec_vspltish): New.
6084 (vec_vspltisw): New.
6109 (vec_vsum4ubs): New.
6110 (vec_vsum4sbs): New.
6111 (vec_vsum4shs): New.
6112 (vec_vsum2sws): New.
6123 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
6126 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6127 added literals from substracted literals.
6128 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6129 (fold) [associate]: Preserve MINUS_EXPR if needed.
6131 2002-04-23 Zack Weinberg <zack@codesourcery.com>
6133 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6136 2002-04-23 Tom Tromey <tromey@redhat.com>
6138 * gcc.c: Added --resource. For PR java/6314.
6140 2002-04-23 David O'Brien <obrien@FreeBSD.org>
6142 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6143 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6146 2002-04-23 David O'Brien <obrien@FreeBSD.org>
6148 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6150 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
6152 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6154 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6155 (ix86_expand_clrstr): Fix typo.
6156 * loop.c (gen_load_of_final_value): New.
6157 (loop_givs_rescan, strength_reduce, check_dbra_loop):
6160 2002-04-23 Roger Sayle <roger@eyesopen.com>
6162 * builtins.c (builtin_memset_gen_str): New function.
6163 (expand_builtin_memset): Optimize the case of constant length, but
6166 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
6168 * config/rs6000/altivec.h (vec_step): Remove extraneous
6170 (vec_ctu): Cast return.
6172 2002-04-23 Alan Modra <amodra@bigpond.net.au>
6175 * function.h: (struct function): Add profile_label_no field.
6176 (current_function_profile_label_no): Define.
6177 * function.c: (profile_label_no): New static var.
6178 (expand_function_start): Increment it, and copy to
6179 current_function_profile_label_no.
6180 * output.h (profile_label_no): Delete.
6181 * final.c (profile_label_no): Delete.
6182 (profile_function): Use current_function_profile_label_no.
6183 (final_end_function): Don't increment profile_label_no here.
6184 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6185 profile_label_no with current_function_profile_label_no.
6186 * config/pa/pa.c (current_function_number): Delete.
6187 (pa_output_function_prologue): Don't output profile label here.
6188 (hppa_profile_hook): Use label_no param rather than
6189 current_function_number.
6190 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6191 * config/pa/pa.h: .. here.
6192 (FUNCTION_PROFILER): Output profile label here.
6194 2002-04-22 Eric Christopher <echristo@redhat.com>
6196 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6197 patch of 2002-04-09 due to binutils issues.
6198 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6200 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6202 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6203 constraint to 'o' for m=r and r=m alternatives.
6204 ("*movv8hi_internal1"): Same.
6205 ("*movv16qi_internal1"): Same.
6206 ("*movv4sf_internal1"): Same.
6208 2002-04-22 Janis Johnson <janis187@us.ibm.com>
6210 * rtl.h (RTX_FLAG): New macro.
6211 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6212 * final.c (alter_subreg): Use macro to access rtx flag.
6213 * integrate.c (copy_rtx_and_substitute): Use new access macro.
6214 * print-rtl.c (print_rtx): Use new access macro.
6216 * cse.c (insert): Check rtx code before accessing flag.
6218 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6219 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6220 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6221 convert_const_symbol_ref, make_canonical, make_alternative_compare,
6222 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6223 simplify_test_exp, optimize_attrs, simplify_by_exploding,
6224 find_and_mark_used_attributes, unmark_used_attributes,
6225 add_values_to_cover, simplify_with_current_value,
6226 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6227 copy_rtx_unchanging, main): Use new access macros.
6229 2002-04-22 Tom Rix <trix@redhat.com>
6231 * expmed.c (init_expmed): Generate shifted constant once.
6233 2002-04-22 Zack Weinberg <zack@codesourcery.com>
6235 * c-lex.c (lex_charconst): Call convert to get constant in
6236 proper type; don't just smash the type field.
6239 * config.gcc: Add list of obsolete configurations. Disallow
6240 building these without --enable-obsolete.
6241 * doc/install.texi: Document --enable-obsolete and obsoletion
6242 policy. Mention obsoletion of individual targets in
6245 2002-04-22 Richard Henderson <rth@redhat.com>
6247 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6249 2002-04-22 Mark Mitchell <mark@codesourcery.com>
6252 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6253 (walk_fixup_memory_subreg): Likewise.
6254 (fixup_var_refs_insn): Adjust accordingly.
6255 (fixup_var_refs_1): Likewise.
6257 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
6259 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6260 LIBPATH_ARCH64_SPEC): Define.
6261 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6262 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6263 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6264 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6266 2002-04-22 Joel Sherrill <joel@OARcorp.com>
6268 * gthr-rtems.h: Correct prototypes to remove warnings.
6270 2002-04-22 Richard Henderson <rth@redhat.com>
6273 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6275 * gcse.c (free_insn_expr_list_list): New.
6276 (clear_modify_mem_tables): Use it. Fix bit set usage.
6277 (canon_list_insert): Use EXPR_LISTs for expressions.
6278 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6280 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
6282 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
6283 file change and include code to _cpp_pop_buffer.
6284 * cpphash.h (struct pending_option): Predeclare.
6285 (struct cpp_reader): New member next_include_file.
6286 (_cpp_pop_file_buffer): Update.
6287 (_cpp_push_next_buffer): Update, rename.
6288 * cppinit.c (cpp_destroy): Free include chain and pending here.
6289 (cpp_finish_options): Simplify.
6290 (_cpp_push_next_buffer): Rename and clean up.
6291 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6293 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6295 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6297 * config/rs6000/altivec.h (vec_xor): Add variant for both args
6298 being vector signed int.
6300 (vec_xor): Add variant for both args being vector signed char.
6301 Remove redundant variant.
6304 2002-04-21 David S. Miller <davem@redhat.com>
6306 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6307 compare mode in output RTL.
6309 2002-04-22 David Edelsohn <edelsohn@gnu.org>
6311 * config/rs6000/rs6000.c (rs6000_override_options): Correct
6312 style and formatting of previous patch.
6314 2002-04-22 Alan Modra <amodra@bigpond.net.au>
6316 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6317 flag_pic for ABI_AIX.
6319 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6321 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6322 * cppfiles.c (read_include_file): Similarly.
6323 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6324 uxstrdup ustrchr, ufputs): Similarly.
6325 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6326 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6327 cpp_ideq, parse_identifier, parse_number): Similarly.
6328 * cpplib.c (struct directive, dequote_string, D, run_directive,
6329 cpp_push_buffer): Similarly.
6330 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6331 _cpp_create_definition, check_trad_stringification,
6332 cpp_macro_definition): Similarly.
6334 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6336 * cppmacro.c (funlike_invocation_p): Don't step back
6339 2002-04-21 David Edelsohn <edelsohn@gnu.org>
6341 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6344 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
6346 * doc/invoke.texi: Remove Chill references.
6347 * doc/gcc.texi: Update last modified date.
6349 2002-04-20 Kazu Hirata <kazu@hxi.com>
6351 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6352 push and pop. Replace add.l with add.w.
6354 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6356 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6357 multiply instructions for H8/300H case.
6359 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6361 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6362 Bum three instructions from each routine.
6364 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
6366 * Makefile.in: Update.
6367 * decl.c (push_c_function_context, pop_c_function_context,
6368 mark_c_function_context): Rename for consistency.
6369 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6370 * c-tree.h (push_c_function_context, pop_c_function_context,
6371 mark_c_function_context): Rename for consistency.
6372 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6373 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6374 * function.c (init_lang_status, save_lang_status,
6375 restore_lang_status, mark_lang_status, free_lang_status):
6376 Move to langhooks.h.
6377 (push_function_context_to, pop_function_context_from,
6378 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6380 * function.h (init_lang_status, save_lang_status,
6381 restore_lang_status, mark_lang_status, free_lang_status):
6382 Move to langhooks.h.
6383 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6384 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6385 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6386 LANG_HOOKS_FUNCTION_INITIALIZER): New.
6387 (LANG_HOOKS_INITIALIZER): Update.
6388 (lhd_do_nothing_f): New.
6389 * langhooks.h (struct lang_hooks_for_functions): New.
6390 (struct lang_hooks): New hooks.
6391 * langhooks.c (lhd_do_nothing_f): New.
6393 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6394 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6396 2002-04-19 David S. Miller <davem@redhat.com>
6398 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6399 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6401 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6403 PR optimization/3756
6404 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6405 x = ((int) y < 0) ? cst1 : cst2.
6407 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6410 * function.c: Reapply patch for c/6358.
6411 (expand_function_end): Copy decl_rtl's mode, not
6412 current_function_return_rtx mode.
6414 2002-04-19 Joel Sherrill <joel@OARcorp.com>
6416 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6419 2002-04-19 Tom Tromey <tromey@redhat.com>
6421 * doc/install.texi (Specific): Update status of Solaris 2.8.
6424 2002-04-19 Andreas Schwab <schwab@suse.de>
6426 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6427 (PUT_REAL): Restore old definition.
6429 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6430 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6432 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6433 binutils 2.11.2 and higher generate smaller binaries than Sun's
6436 2002-04-19 Mark Mitchell <mark@codesourcery.com>
6439 * toplev.c (rest_of_compilation): Do not defer functions for which
6440 TREE_SYMBOL_REFERENCED has already been set.
6442 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
6444 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6447 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
6449 * builtins.c: Include langhooks.h.
6450 (lang_type_promotes_to): Remove.
6451 (expand_builtin_va_arg): Use new hook.
6452 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6453 (simple_type_promotes_to): Move to c-typeck.c.
6454 * c-common.h (simple_type_promotes_to): Remove.
6455 * c-decl.c (duplicate_decls, grokdeclarator): Update.
6456 * c-format.c: Include langhooks.h.
6457 (check_format_types): Update.
6458 * c-tree.h (c_type_promotes_to): New.
6459 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6460 (type_lists_compatible_p): Update.
6461 * langhooks-def.h (lhd_type_promotes_to): New.
6462 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6463 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6464 * langhooks.c (lhd_type_promotes_to): New.
6465 * langhooks.h (struct lang_hooks_for_types): New hook.
6466 * tree.h (lang_type_promotes_to): Remove.
6468 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6470 2002-04-18 Richard Henderson <rth@redhat.com>
6472 * function.c: Revert patch for c/6358.
6474 2002-04-18 Richard Henderson <rth@redhat.com>
6476 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6477 blocks. Handle multiple references to the TRAP block. Handle
6478 non-adjacent THEN and OTHER blocks.
6480 2002-04-18 Richard Henderson <rth@redhat.com>
6482 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6483 crash with no type for by-mode libcalls.
6485 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6487 2002-04-18 Bob Wilson <bob.wilson@acm.org>
6489 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6490 __xtensa_nonlocal_goto): Use a syscall instructions to flush
6491 the register windows.
6493 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6495 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6496 appropriate. Document need for extended precision even when
6497 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
6498 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
6499 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
6500 instead of relying on later syntax error when REAL_WIDTH > 5.
6501 * real.c: Define NE based only on whether or not we have a
6502 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6503 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
6504 define GET_REAL and PUT_REAL as simple memcpy operations; no
6505 need to byteswap or round.
6506 Use #error instead of #ifdef-ing out the entire file, for
6507 prompt error detection.
6509 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6511 2002-04-18 David S. Miller <davem@redhat.com>
6513 * config/sparc/sparc.h (BRANCH_COST): Define.
6515 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6518 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
6520 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6521 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6522 propagate_block calls after relaxation loop using new variable
6523 stabilized_prop_flags.
6525 2002-04-18 Richard Henderson <rth@redhat.com>
6527 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6528 (ia64_va_arg): Expect variable sized types by reference.
6529 * config/ia64/ia64-protos.h: Update.
6530 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6531 ia64_function_arg_pass_by_reference.
6533 2002-04-18 Richard Henderson <rth@redhat.com>
6535 * ifcvt.c: Include except.h.
6536 (block_has_only_trap): Break out from find_cond_trap.
6537 (find_cond_trap): Use it. Always delete the trap block.
6538 (merge_if_block): Allow then block null. Be less simplistic about
6539 what insns can end a block.
6540 * Makefile.in (ifcvt.o): Depend on except.h.
6542 * config/ia64/ia64.md (trap, conditional_trap): New.
6544 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6547 * function.c (assign_parms): Assign hard current_function_return_rtx
6549 (expand_function_end): ...not here.
6551 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
6553 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6554 * c-tree.h (c_incomplete_type_error): New.
6555 * c-typeck.c (require_complete_type, build_component_ref): Update.
6556 (incomplete_type_error): Rename.
6557 * langhooks-def.h (lhd_incomplete_type_error): New.
6558 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6559 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6560 * langhooks.c (lhd_incomplete_type_error): New.
6561 * langhooks.h (struct lang_hooks_for_types): New hook.
6562 * tree.c (size_in_bytes): Use new hook.
6563 * tree.h (incomplete_type_error): Remove.
6565 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6567 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6569 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6570 TARGET_FLOAT_FORMAT blocks.
6572 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6574 * doc/install.texi (Downloading the source): Do not mention Chill
6575 any longer, but mention Ada.
6576 (Configuration): Do not mention Chill any longer.
6578 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
6580 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6582 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
6584 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6587 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6589 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6590 instead of unsigned_type.
6592 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6594 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6595 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6598 2002-04-18 Bernd Schmidt <bernds@redhat.com>
6600 * attribs.c (vector_type_node_list): New static variable.
6601 (handle_vector_size_attribute): Use it to avoid generating a
6602 new type node each time we are called.
6604 * combine.c (subst): Avoid trying to make a vector mode subreg of
6605 an integer constant.
6606 (gen_lowpart_for_combine): Likewise.
6608 2002-04-18 Roger Sayle <roger@eyesopen.com>
6609 Jakub Jelinek <jakub@redhat.com>
6611 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6612 for integer constant c (if x has unsigned type or sign bit is not
6613 set in c). This folds the zero/sign extension into the bit-wise and
6616 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6619 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6622 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
6624 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6626 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
6628 * gcc.c (read_specs): Detect and fail if an attempt is made to
6629 rename a spec string to an already existing string.
6631 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6633 * config/s390/s390.c (legitimize_pic_address): Do not generate
6634 illegal address constant without CONST.
6636 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6638 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6639 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6641 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6643 PR optimization/6305
6644 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6645 to make sure previous reloads are taken into account. Generate
6646 better code if one operand is an in-range immediate constant.
6648 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
6650 * doc/install.texi (Building): libgcj requires GNU make.
6652 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6655 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6656 even if hard quad and register is not floating.
6657 (movtf reg<-mem split): Disallow splitting if hard quad and
6658 register is floating.
6659 (movtf mem<-reg split): Likewise.
6660 * config/sparc/sparc.c (fp_register_operand): New predicate.
6661 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6663 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6665 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6666 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6667 (unprotoize.o): Ditto. Build from protoize.c. Define
6668 UNPROTOIZE on command line.
6669 * protoize.c: Include cppdefault.h. Delete include_defaults.
6670 (in_system_include_dir): Use cpp_include_defaults (defined in
6672 * unprotoize.c: Delete file.
6674 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6676 * config/rs6000/altivec.h (vec_ld): Add array variants.
6680 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6681 Aldy Hernandez <aldyh@redhat.com>
6683 * config/rs6000/altivec.h: Define __ALTIVEC__.
6690 Add parentheses to all macro arguments.
6692 2002-04-16 Richard Henderson <rth@redhat.com>
6695 * except.c (remove_eh_handler): Insert inner regions at beginning
6696 of sibling chain. Refactor expressions.
6698 2002-04-16 Richard Henderson <rth@redhat.com>
6700 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6701 * config/sparc/sol2-gas-bi.h: New file.
6702 * config.gcc (sparc*-solaris): Add it as needed.
6703 * configure.in (AS_SPARC64_FLAG): Remove check.
6704 * config.in, configure: Regenerate.
6706 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6708 2002-04-16 Richard Henderson <rth@redhat.com>
6710 * config/mips/mips.c (override_options): Don't override N32 for
6714 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6715 (HILO_delay): Set can_delay false.
6717 2002-04-16 Dale Johannesen <dalej@apple.com>
6719 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6720 instruction addresses.
6721 (rs6000_output_function_epilogue): Likewise.
6723 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6725 * c-parse.in (poplevel, compstmt_start,
6726 compstmt_primary_start): Add ending ';', in accordance
6729 2002-04-16 Richard Henderson <rth@redhat.com>
6731 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6732 Adjust tm_file order to get TARGET_DEFAULT set properly.
6733 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6734 * doc/install.texi (sparc-solaris): Update.
6736 2002-04-16 Dale Johannesen <dalej@apple.com>
6738 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6739 comparison operands do not match each other or if modes of
6740 conditions do not match result.
6742 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
6745 * config/s390/s390.md (mulsidi3): Set both subregs of the
6748 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
6750 * config/rs6000/altivec.h (vec_addc): Type check.
6752 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6755 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6757 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6759 2002-04-15 Richard Henderson <rth@redhat.com>
6761 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6762 call_really_used_regs too.
6764 2002-04-15 Richard Henderson <rth@redhat.com>
6766 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6768 2002-04-15 David S. Miller <davem@redhat.com>
6770 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6773 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6776 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6777 CONST_VECTOR is { 0, ... 0 }.
6779 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
6781 * doc/install.texi (Installing GCC: Configuration): Clarify
6782 the only supported ways to configure gcc.
6784 2002-04-15 Roland McGrath <roland@frob.com>
6786 * config.gcc (alpha*-*-gnu*): New target configuration.
6787 * config/alpha/gnu.h: New file for it.
6788 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6790 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6792 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6793 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6794 * tree.h (expand_start_stmt_expr): Update prototype.
6795 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6796 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6797 on the STMT_EXPR created for the inline function.
6799 2002-04-15 Richard Henderson <rth@redhat.com>
6801 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6802 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6803 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6804 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6805 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6806 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6807 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6808 Define __gnu_linux__, not gnu_linux.
6809 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6811 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6813 Remove Chill front end.
6814 * gcc.c (default_compilers): Remove Chill entries.
6815 * ch: Remove directory.
6816 * doc/frontends.texi: Remove information about Chill.
6817 * doc/sourcebuild.texi: Likewise.
6818 * doc/standards.texi: Likewise.
6820 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6822 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6823 (LONGLONG_STANDALONE): Define.
6825 2002-04-15 David S. Miller <davem@redhat.com>
6827 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6828 Call emit_library_call with LCT_NORMAL.
6829 (sparc_initialize_trampoline): Use LCT_foo instead of
6830 magic constant in emit_library_call invocations.
6831 (sparc64_initialize_trampoline): Likewise.
6832 (sparc_profile_hook): Likewise.
6833 * config/sparc/sparc.md: Likewise.
6835 * config/sparc/sparc.c (sparc_extra_constraint_check):
6836 Fix type of argument 'c'.
6837 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6840 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6842 * diagnostic.h (output_buffer_state): Redefine.
6843 (output_format_decoder): New macro.
6844 (output_prefixing_rule): Likewise.
6845 (output_line_cutoff): Likewise.
6846 (diagnostic_format_decoder): Adjust.
6847 (diagnostic_prefixing_rule): Likewise.
6848 (diagnostic_line_cutoff): Likewise.
6849 (diagnostic_state): Likewise.
6850 (diagnostic_kind_count): Likewise.
6851 (diagnostic_buffer): Now a macro.
6853 * diagnostic.c (diagnostic_buffer): Remove definition.
6854 (output_is_line_wrapping): Adjust.
6855 (set_real_maximum_length): Likewise.
6856 (output_set_maximum_length): Likewise.
6857 (init_output_buffer): Likewise.
6858 (lhd_print_error_function): Likewise.
6859 (output_do_verbatim): Likewise.
6861 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
6863 * cpperror.c (print_location): Don't print include chain
6865 (cpp_begin_message): Update to use DL_ macros.
6866 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6867 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6868 cpp_notice, cpp_notice_from_errno): Remove.
6869 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6872 * cppexp.c (CPP_ICE): Remove.
6873 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6874 lex, integer_overflow, _cpp_parse_expr): Update.
6875 * cppfiles.c (read_include_file, find_include_file,
6876 handle_missing_header, _cpp_read_file, remap_filename): Update.
6877 * cpphash.h (enum error_type): Remove.
6878 (_cpp_begin_message): Update.
6879 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6880 cpp_handle_option, cpp_post_options): Update.
6881 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6882 skip_whitespace, parse_identifier, parse_slow, parse_string,
6883 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6884 cpp_interpret_charconst): Update.
6885 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6886 lex_macro_node, do_undef, glue_header_name, parse_include,
6887 do_include_common, read_flag, do_line, do_linemarker, do_ident,
6888 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6889 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6890 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6891 _cpp_pop_buffer, do_diagnostic): Update.
6892 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6893 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6894 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6895 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6896 cpp_notice, cpp_notice_from_errno): Remove.
6897 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6900 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6901 collect_args, enter_macro_context, save_parameter, parse_params,
6902 _cpp_create_definition, check_trad_stringification,
6903 cpp_macro_definition): Update.
6904 * cppmain.c (cpp_preprocess_file): Update.
6905 * fix-header.c (read_scan_file): Update.
6907 2002-04-14 Andreas Schwab <schwab@suse.de>
6909 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6911 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6913 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6915 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6917 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6920 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
6922 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6924 2002-04-13 Joel Sherrill <joel@OARcorp.com>
6926 * config/sparc/t-elf: Enable v8 multilibs. Impacts
6927 sparc-elf and sparc-rtems targets.
6929 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6931 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6932 defined, and __gnu_hurd__ wherever __GNU__ is defined.
6933 * arm/linux-elf.h: Likewise.
6934 * cris/aout.h: Likewise.
6935 * cris/linux.h: Likewise.
6936 * i370/linux.h: Likewise.
6937 * i386/gnu.h: Likewise.
6938 * i386/linux-aout.h: Likewise.
6939 * i386/linux-oldld.h: Likewise.
6940 * i386/linux.h: Likewise.
6941 * i386/linux64.h: Likewise.
6942 * ia64/linux.h: Likewise.
6943 * m68k/linux-aout.h: Likewise.
6944 * m68k/linux.h: Likewise.
6945 * mips/linux.h: Likewise.
6946 * pa/pa-linux.h: Likewise.
6947 * pj/linux.h: Likewise.
6948 * rs6000/sysv4.h: Likewise.
6949 * s390/linux.h: Likewise.
6950 * sh/linux.h: Likewise.
6951 * sparc/linux-aout.h: Likewise.
6952 * sparc/linux.h: Likewise.
6953 * sparc/linux64.h: Likewise.
6954 * xtensa/linux.h: Likewise.
6956 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
6958 * stmt.c (check_unique_operand_names): Expect operand names to
6959 be strings rather than identifiers. Use simple_cst_equal to
6961 (resolve_operand_name_1): Make same identifier to string change here.
6962 * c-parse.in (asm_operand): Convert a named operand into a string.
6963 * cp/parse.y (asm_operand): Likewise.
6965 2002-04-13 Andreas Schwab <schwab@suse.de>
6967 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6969 2002-04-12 Mark Mitchell <mark@codesourcery.com>
6971 Revert these changes:
6973 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6976 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6978 2002-04-12 Richard Henderson <rth@redhat.com>
6980 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6981 (sparc*-*-solaris): Clean up header files.
6982 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6983 and plan on generating 64-bit code.
6984 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6985 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6986 * config/sparc/sol2-sld-64.h: Rename ...
6987 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
6988 for AS_SPARC64_FLAG not defined.
6989 * config/sparc/sol2-gld-bi.h: New.
6990 * config/sparc/sol2-sld.h: Remove.
6991 * config/sparc/sol26-sld.h: New.
6992 * config/sparc/sol2.h: Tidy comments.
6993 * doc/install.texi: Document sparc-solaris configury changes.
6995 2002-04-12 Richard Henderson <rth@redhat.com>
6997 * recog.c (offsettable_address_p): Match the logic in adjust_address.
6999 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
7000 in 64-bit mode only. Use only for 32-bit or MEDLOW.
7002 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7004 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
7006 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
7008 * pa.c (pa_can_combine_p): Call extract_insn before calling
7011 2002-04-12 Douglas B Rupp <rupp@gnat.com>
7013 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
7014 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
7015 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7016 (CPP_PREDEFINES): Handle __declspec.
7017 * config/i386/t-interix (USER_H): Remove.
7019 2002-04-12 DJ Delorie <dj@redhat.com>
7021 * integrate.c (compare_blocks): Make comparisons safe for when
7022 sizeof(int) < sizeof(char *).
7023 (find_block): Likewise.
7025 2002-04-12 Jan Hubicka <jh@suse.cz>
7026 David Edelsohn <edelsohn@gnu.org>
7028 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
7030 (symbol_ref_operand): New.
7031 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
7032 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
7034 2002-04-12 Andreas Schwab <schwab@suse.de>
7036 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
7037 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
7038 overrides the definition in config/svr4.h.
7040 2002-04-12 Eric Norum <eric.norum@usask.ca>
7042 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
7043 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
7044 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
7045 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
7046 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
7047 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
7048 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
7049 definitions to config/rtems.h and make the targets more similar.
7051 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7053 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7054 POINTERS_EXTEND_UNSIGNED.
7055 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7056 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7058 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7061 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
7063 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7064 depends on TARGET_SHMEDIA, not TARGET_SH5.
7066 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
7068 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7069 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7071 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
7073 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7076 2002-04-12 Andreas Schwab <schwab@suse.de>
7078 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7080 2002-04-12 Richard Henderson <rth@redhat.com>
7083 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7085 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7086 modes spanning multiple hard regs.
7088 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7090 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7092 * pa.c (pa_output_function_prologue): Don't accumulate the total
7093 number of code bytes when using TARGET_64BIT, or gas, SOM and not
7094 the portable runtime.
7095 (output_deferred_plabels): Handle 64bit plabels.
7096 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7097 generating pic code using the GAS assembler for object formats that
7098 are not SOM (ie., ELF32 and ELF64).
7099 (output_millicode_call): Check attribute type if attribute length is 28.
7100 Likewise use $PIC_pcrel$0. Only call get_attr_length and
7101 dbr_sequence_length once.
7102 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7103 dbr_sequence_length once.
7104 * pa.h (TARGET_SOM): Define if not defined.
7105 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7106 with GAS and not SOM.
7107 (jump, call_internal_reg, call_value_internal_reg): Likewise.
7108 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
7110 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7112 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7113 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7114 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7115 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7116 elfos.h and dbxelf.h values are fine now.
7117 * config/i386/freebsd.h, config/alpha/freebsd.h
7118 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7120 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7122 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7123 or set Acpu or Amachine. Reformat.
7124 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7126 (LINK_SPEC): Do not need to undef.
7127 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7128 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7129 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7131 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7132 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7133 (LINK_SPEC): Do not need to undef.
7134 (DONT_USE_BUILTIN_SETJMP): Do not define.
7135 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7136 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
7137 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7138 Remove trailing spaces.
7139 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7140 __ELF__, or set Acpu or Amachine. Reformat.
7141 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7144 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7146 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7147 all other *-*-freebsd* targets.
7149 2002-04-11 Richard Henderson <rth@redhat.com>
7151 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7153 2002-04-11 David O'Brien <obrien@FreeBSD.org>
7155 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7156 Include {cpu}/{cpu}.h thru tm_file.
7157 (alpha*-*-linux*ecoff): Remove target.
7158 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7159 (LINK_SPEC): Remove, is not OS independent.
7160 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7161 (LINK_SPEC): Do not need to #undef any longer.
7162 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7164 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7166 (LINK_SPEC): Moved here from alpha/elf.h.
7167 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7169 * config/alpha/linux-ecoff.h: Remove.
7170 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7171 (CPP_SPEC): Define _POSIX_SOURCE as needed.
7172 (CPP_SUBTARGET_SPEC): Do not define.
7173 (LINK_SPEC): Do not need to #undef any longer.
7174 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7175 * config/alpha/vms.h: Likewise.
7177 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
7179 * doc/extend.texi: Remove old claim that typedefs cannot have
7180 an alignment attribute.
7182 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7184 PR optimization/6177
7185 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7186 bitpos is 0 and bitsize CONCAT size.
7188 2002-04-11 Jakub Jelinek <jakub@redhat.com>
7191 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7193 2002-04-10 David O'Brien <obrien@FreeBSD.org>
7195 * config/alpha/freebsd.h: Minor reformatting.
7196 (CPP_SPEC): Define ELF and add cpp_subtarget.
7197 (ASM_SPEC): No longer needed.
7199 2002-04-11 Richard Henderson <rth@redhat.com>
7201 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7202 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
7203 (dimode mem/zero splitter): New.
7205 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
7207 * config/cris/cris.c (cris_override_options): Tweak error message
7208 for PIC not implemented.
7210 * config/cris/cris.h: Tweak comments related to parameter-passing.
7212 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7214 2002-04-10 Richard Henderson <rth@redhat.com>
7216 * except.c (add_ehl_entry): Allow duplicates after landing pad
7219 2002-04-10 David Edelsohn <edelsohn@gnu.org>
7221 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7223 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
7225 * c-decl.c (c_init_decl_processing): Move generation of
7226 decls for g77_integer_type_node and friends from here ...
7227 * c-common.c (c_common_nodes_and_builtins): ... to here.
7229 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
7231 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7232 is only used as frame pointer when frame_pointer_needed is true.
7234 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
7237 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7238 for the fact that the pool entry uses two words.
7239 (movdf_hard_insn): Similarly. Also, ADR instruction can span
7241 (movdf_soft_insn): Similarly.
7242 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7243 for the fact that the pool entry uses three words.
7245 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
7247 * config/mips/mips.c (mips_va_arg): When using the struct version
7248 of the EABI va_list, allow arguments in the register save area to
7249 take up less room than a stack argument.
7251 2002-04-10 Richard Henderson <rth@redhat.com>
7253 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7254 if EXPAND_INITIALIZER.
7256 2002-04-09 Richard Henderson <rth@redhat.com>
7258 * config/alpha/alpha.md (movdi_er_maybe_g): New.
7259 * config/alpha/alpha.c (alpha_expand_mov): Use it.
7261 2002-04-10 Alan Modra <amodra@bigpond.net.au>
7263 PR optimization/6233
7264 * rtlanal.c (pure_call_p): New function.
7265 * rtl.h (pure_call_p): Declare.
7266 * loop.c (prescan_loop): Use it to set has_nonconst_call.
7267 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7269 2002-04-09 Eric Christopher <echristo@redhat.com>
7271 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7272 information to .comm directive.
7274 2002-04-09 Richard Henderson <rth@redhat.com>
7277 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7279 2002-04-09 Richard Henderson <rth@redhat.com>
7281 * basic-block.h (flow_delete_block_noexpunge): Declare.
7282 (expunge_block_nocompact): Declare.
7283 * cfg.c (expunge_block_nocompact): Split out from ...
7284 (expunge_block): ... here.
7285 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7286 (flow_delete_block_noexpunge): Split out from ...
7287 (flow_delete_block): ... here.
7288 * cfgcleanup.c (delete_unreachable_blocks): Compact while
7289 removing dead blocks.
7290 * except.c (exception_handler_labels): Remove.
7291 (exception_handler_label_map): New.
7292 (struct eh_region): Add aka member.
7293 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7294 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7295 (for_each_eh_label, for_each_eh_label_1): New.
7296 (init_eh): Register exception_handler_label_map.
7297 (free_eh_status): Use free_region.
7298 (find_exception_handler_labels): Use the map, not the list.
7299 (remove_exception_handler_label): Likewise.
7300 (maybe_remove_eh_handler): Likewise.
7301 (remove_eh_handler): Use the region aka bitmap.
7302 * except.h (exception_handler_labels): Remove.
7303 (for_each_eh_label): Declare.
7304 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7305 * loop.c (invalidate_loops_containing_label): New.
7306 (find_and_verify_loops): Use it. Use for_each_eh_label.
7307 * sched-rgn.c (is_cfg_nonregular): Use
7308 current_function_has_exception_handlers.
7310 2002-04-09 Richard Henderson <rth@redhat.com>
7312 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7313 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7314 Do not return changed status.
7315 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7316 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7317 New functions that do return changed status.
7318 * sbitmap.h: Update decls.
7319 * gcse.c, lcm.c: Use _cg functions as needed.
7321 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7323 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7324 (sh64-*-elf*, sh-*-rtemself*): Likewise.
7325 * config/sh/embed_bb.c: New file.
7326 * config/sh/embed-elf.h: New file.
7327 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7328 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
7329 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7331 (SUBTARGET_CPP_PTR_SPEC): Don't define.
7332 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7333 Add subtarget_asm_endian_spec.
7334 (ASM_SPEC): Use subtarget_asm_endian_spec.
7335 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7336 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7337 (WCHAR_UNSIGNED): Define.
7338 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7339 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7340 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7342 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7343 (sh_adjust_cost): Likewise.
7344 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7346 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7347 (WCHAR_TYPE_SIZE): Likewise.
7348 (ASM_SPEC): Use subtarget_asm_endian_spec.
7349 (SH_ELF_WCHAR_TYPE): #undef/ #define.
7350 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7351 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7352 (MAX_WCHAR_TYPE_SIZE): Don't #define .
7353 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7354 (USER_LABEL_PREFIX): Don't #undef /#define .
7355 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7356 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7357 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7358 (ASM_SPEC): Likewise.
7359 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7360 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7361 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7362 (LIB2FUNCS_EXTRA): Define.
7363 * t-sh64 (LIB2FUNCS_EXTRA): Define.
7364 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7365 (LIB1ASMFUNCS_CACHE): Define.
7366 (LIB2FUNCS_EXTRA): Redefine empty.
7368 2002-04-08 Richard Henderson <rth@redhat.com>
7370 * reorg.c (get_branch_condition): Use reversed_comparison_code.
7372 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7374 * config/m68hc11/larith.asm (__map_data_section): Fix condition
7375 and optimize for size.
7376 (__do_global_ctors): Fix pointer comparison.
7377 (__do_global_dtors): Likewise.
7379 2002-04-09 David S. Miller <davem@redhat.com>
7381 * config/sparc/sparc.c (sparc_extra_constraint_check): New
7382 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
7383 allow reloading pseudos.
7384 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7385 * config/sparc/sparc-protos.h: Declare it.
7387 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7388 unsigned comparison warning.
7389 (output_restore_regs): Mark leaf_function as unused.
7391 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7393 * expr.c (is_aligning_offset): New function.
7394 (expand_expr, case COMPONENT_EXPR): Call it.
7396 2002-04-08 David S. Miller <davem@redhat.com>
7399 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7401 Make init_priority work on Sparc when using GNU ld.
7402 * config/sparc/linux.h, config/sparc/linux64.h,
7403 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7404 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7405 * config/sparc/sol2-gld.h: New file to do the same.
7406 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7407 sparc/sol2-gld.h to tm_file.
7409 PR optimization/4328
7410 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7411 * doc/md.texi: Document it.
7412 * config/sparc/sparc.md (movdi_insn_sp64_novis,
7413 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7414 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7415 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7416 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7418 2002-04-08 Andreas Jaeger <aj@suse.de>
7420 * stmt.c (expand_asm_operands): Revert last patch from Richard
7423 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7425 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7426 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
7428 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7430 * doc/contrib.texi (Contributors): Add David O'Brien.
7432 2002-04-08 Alan Modra <amodra@bigpond.net.au>
7434 * configure.in (auto-build.h): Use target_alias and build_alias
7435 when running configure.
7436 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7437 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7438 * configure: Regenerate.
7440 2002-04-07 David S. Miller <davem@redhat.com>
7442 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7444 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
7447 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7448 generating 32-bit pic code.
7450 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
7452 * cppinit.c (cpp_create_reader): Initialize
7453 discard_comments_in_macro_exp.
7454 (COMMAND_LINE_OPTIONS): Add "-CC" option.
7455 (cpp_handle_option): Handle "-CC" option.
7456 * cpplex.c (save_comment): If saving a C++ comment in
7457 a directive, convert it to a C comment.
7458 (_cpp_lex_direct): Pass second comment start character to
7459 save_comment to indicate comment type.
7460 * cpplib.c (_cpp_handle_directive): If processing
7461 a "#define" directive and discard_comments_in_macro_exp
7462 is false, re-enable saving of comments.
7463 (lex_macro_node): If discard_comments_in_macro_exp is false,
7464 discard any comments before the macro identifier.
7465 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7467 * cppmacro.c (cpp_get_token): If expanding a macro while
7468 processing a directive, discard any comments we might encounter.
7469 (parse_params): If discard_comments_in_macro_exp is false,
7470 ignore comments in the macro parameter list.
7471 * gcc.c (cpp_unique_options): Add "-CC" option.
7472 (option_map): Map "--comments-in-macros" to "-CC".
7473 * doc/cppopts.texi: Document "-CC" option.
7474 * f/lang-specs.h: Add "-CC" option.
7475 * testsuite/gcc.dg/cpp/maccom1.c: New test.
7476 * testsuite/gcc.dg/cpp/maccom2.c: New test.
7477 * testsuite/gcc.dg/cpp/maccom3.c: New test.
7478 * testsuite/gcc.dg/cpp/maccom4.c: New test.
7479 * testsuite/gcc.dg/cpp/maccom5.c: New test.
7480 * testsuite/gcc.dg/cpp/maccom6.c: New test.
7482 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7485 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7487 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7490 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7493 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7494 RTX_UNCHANGING_P for the functions arguments when a tail call
7497 2002-04-06 Jason Merrill <jason@redhat.com>
7499 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7500 (parse_options_and_default_flags): Set them appropriately.
7501 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7503 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
7505 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7508 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7511 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7512 types come in by-reference. Fix typo in comment.
7514 2002-04-05 David S. Miller <davem@redhat.com>
7516 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7517 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7518 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7519 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7521 2002-04-05 David S. Miller <davem@redhat.com>
7523 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7524 are not going to emit return instructions, emit at least a nop
7525 for the sake of sane backtraces.
7527 2002-04-05 Richard Henderson <rth@redhat.com>
7529 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7531 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
7533 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7535 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
7537 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7538 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7539 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7541 2002-04-05 Andreas Schwab <schwab@suse.de>
7543 * c-convert.c: Include c-common.h.
7544 * Makefile.in (c-convert.o): Updated.
7546 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7548 * mklibgcc.in: Use separate libgcc.map for each multilib.
7549 * Makefile.in (distclean): Don't remove libgcc.map here.
7551 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7553 * Makefile.in (s-mlib): Handle --disable-multilib by separate
7554 genmultilib invocation.
7556 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
7558 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7559 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
7560 to num_gprs for symmetry.
7561 * config/mips/mips.c: Adjust accordingly.
7563 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
7565 * c-common.c (truthvalue_conversion): Rename, update.
7566 * c-common.h (c_common_truthvalue_conversion): New.
7567 * c-convert.c (convert): Update.
7568 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7569 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7570 * c-typeck.c (build_binary_op, build_unary_op,
7571 build_conditional_expr): Update.
7572 * fold-const.c (constant_boolean_node, fold): Use langhook.
7573 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7574 * langhooks.h (struct lang_hooks): New hook.
7575 * stmt.c (expand_decl_cleanup): Use langhook.
7576 * tree.h (truthvalue_conversion): Remove.
7578 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7580 2002-04-05 Alan Modra <amodra@bigpond.net.au>
7582 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7583 Add rules to make null object file.
7585 2002-04-04 Jim Blandy <jimb@redhat.com>
7587 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7588 macro formal parameter names.
7590 2002-04-04 David S. Miller <davem@redhat.com>
7592 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7594 2002-04-04 Richard Henderson <rth@redhat.com>
7597 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7598 Support copies into and out of memory. Don't accept allows_reg
7599 and allows_mem as gospel.
7601 2002-04-04 Richard Henderson <rth@redhat.com>
7604 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7605 (write_dependence_p): Likewise.
7607 2002-04-04 Richard Henderson <rth@redhat.com>
7609 * predict.c (estimate_bb_frequencies): Do frequency calculation
7610 with a volatile temporary.
7612 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
7614 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7616 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7619 * final.c (final_start_function): Don't bump profile_label_no here...
7620 (final_end_function): ...but here.
7622 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7624 * config/sparc/sparc.md (pic): New attribute.
7625 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7627 (split after do_builtin_setjmp_setup): New.
7629 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7632 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7635 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7637 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7638 UNITS_PER_WORD for zero sized aggregates.
7640 2002-04-03 David S. Miller <davem@redhat.com>
7642 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7643 one-character spec for this, just use %(link_gcc_c_sequence).
7645 2002-04-03 David S. Miller <davem@redhat.com>
7647 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7650 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7652 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7653 (DWARF_FRAME_RETURN_COLUMN): Move.
7654 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7655 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7656 * pa.c (except.h, predict.h): Include.
7658 (store_reg_modify, set_reg_plus_d): Revise prototypes.
7659 (output_ascii): Add cast.
7660 (store_reg_modify): Revise to add frame notes.
7661 (set_reg_plus_d): Likewise.
7662 (compute_frame_size): Include space for eh data registers in frame if
7663 the current function calls eh_return.
7664 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7665 function calls eh_return. Save eh data registers if the current
7666 function calls eh_return. Fix code to add frame notes. Emit
7667 blockage to prevent insns with frame notes being scheduled in the
7668 delay slot of calls.
7669 (hppa_expand_epilogue): Restore eh data registers and do final stack
7670 adjustment if the current function calls eh_return. Don't add frame
7672 (output_call): Revise for change in length of call insn. Don't do
7673 return pointer adjustment for an unconditional jump in the delay slot
7674 of a call when using frame notes.
7675 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7676 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7677 (ARG_POINTER_CFA_OFFSET): Define.
7678 * pa.md (return_external_pic): New pattern.
7679 (prologue): Correct formatting. Use return_external_pic if current
7680 function calls eh_return.
7681 (call_internal_symref, call_value_internal_symref,
7682 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7683 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7685 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7687 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7688 list of targets to check using "nop" insn.
7689 * configure: Rebuilt.
7691 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7693 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7695 2002-04-03 David S. Miller <davem@redhat.com>
7697 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7698 library sequence passed to the linker.
7699 (LINK_COMMAND_SPEC): Use it.
7700 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7701 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7702 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7704 2002-04-03 Jason Merrill <jason@redhat.com>
7706 * except.c (struct eh_status): Remove protect_list.
7707 (begin_protect_partials, end_protect_partials): Remove.
7708 (add_partial_entry): Remove.
7709 * except.h: Remove prototypes.
7711 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7712 expand_decl_cleanup_eh.
7715 * tree.h (CLEANUP_EH_ONLY): New macro.
7716 * stmt.c (expand_decl_cleanup_eh): New fn.
7717 (expand_cleanups): Check CLEANUP_EH_ONLY.
7718 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7719 Use expand_decl_cleanup_eh.
7720 (expand_stmt): Adjust.
7721 * c-common.h: Adjust prototype.
7723 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7725 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7726 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7727 (cris_target_asm_function_epilogue): Ditto.
7728 (cris_initial_frame_pointer_offset): Ditto.
7729 (cris_simple_epilogue): Ditto.
7730 (cris_expand_builtin_va_arg): Variable-size types come in
7733 2002-04-03 David S. Miller <davem@redhat.com>
7735 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7737 (set_fast_math): Correct 'fsr' type.
7739 2002-04-03 Richard Henderson <rth@redhat.com>
7742 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7743 * toplev.c (check_global_declarations): Use it.
7744 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7745 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7746 (LANG_HOOKS_DECLS): Add it.
7747 * langhooks.c (lhd_warn_unused_global_decl): New.
7748 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7749 * c-objc-common.c (c_warn_unused_global_decl): New.
7750 * c-tree.h (c_warn_unused_global_decl): Declare.
7751 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7753 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
7755 * langhooks-def.h (lhd_set_decl_assembler_name,
7756 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7757 (LANG_HOOKS_INITIALIZER): Update.
7758 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7759 * langhooks.h (struct lang_hooks): New hook.
7760 * tree.c (set_decl_assembler_name): Move to langhooks.c.
7761 (lang_set_decl_assembler_name): Remove.
7762 (init_obstacks): Don't set hook.
7763 (decl_assembler_name): New function.
7764 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7765 (decl_assembler_name): New.
7766 (lang_set_decl_assembler_name): Remove.
7768 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7770 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7771 works properly with .hidden symbols.
7772 * configure: Rebuilt.
7773 * config.in: Rebuilt.
7774 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7775 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7776 properly with .hidden symbols.
7778 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7781 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7784 2002-04-03 Richard Henderson <rth@redhat.com>
7787 * sched-rgn.c (sets_likely_spilled): New.
7788 (sets_likely_spilled_1): New.
7789 (add_branch_dependences): Use it.
7791 2002-04-02 Richard Henderson <rth@redhat.com>
7794 * loop.h (LOOP_FIRST_PASS): New.
7795 * loop.c (strength_reduce): Mind it when deciding to unroll.
7796 * toplev.c (rest_of_compilation): Set it.
7798 2002-04-02 David S. Miller <davem@redhat.com>
7800 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7801 mems_ok_for_ldd_peep when the order of the loads being examined
7803 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7804 existing comment to increase comprehension of this situation.
7806 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7808 * config/sh/sh.md: Don't use union real_extract.
7810 2002-04-02 Richard Henderson <rth@redhat.com>
7812 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7814 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7816 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7817 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7818 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7819 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7820 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7821 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7822 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7823 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7824 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7825 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7826 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7827 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7828 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7829 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7830 Include as many configury headers via tm_file as possible. This
7831 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7832 * config/openbsd-oldgas.h: New file.
7833 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7834 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7835 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7836 config/i386/i386-coff.h, config/i386/i386-interix.h,
7837 config/i386/iscdbx.h, config/i386/linux-aout.h,
7838 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7839 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7840 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7841 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7842 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7843 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7844 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7845 config/i386/vxi386.h: Do not directly include configury headers.
7846 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7847 Directly include configury headers that are no longer automatically
7848 included by the above headers.
7849 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7850 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7851 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7852 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7853 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7854 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7855 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7856 (TARGET_VERSION): Define.
7857 * config/i386/beos-elf.h, config/i386/freebsd.h,
7858 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7859 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7860 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7861 config/i386/sco5.h, config/i386/sysv4.h
7862 (TARGET_VERSION): Do not need to protect.
7863 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7864 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7865 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7866 config/i386/i386-interix.h, config/i386/linux-aout.h,
7867 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7868 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7869 (YES_UNDERSCORES): Do not define - not needed.
7870 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7871 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7872 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7873 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7874 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7875 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7876 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7877 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7879 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
7880 Richard Henderson <rth@redhat.com>
7883 * function.c (assign_temp): Accept either type or decl argument.
7884 Detect variables whose size is too large to fit into an integer.
7885 * stmt.c (expand_decl): Pass the decl, not the type.
7887 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7889 * protoize.c: Match include directory usage with cppdefault.c.
7891 2002-04-03 Jeffrey A Law (law@redhat.com)
7892 Hans-Peter Nilsson <hp@bitrange.com>
7894 * combine.c (simplify_comparison): Avoid narrowing a comparison
7895 with a paradoxical subreg when doing so would drop signficant bits.
7897 2002-04-02 Steve Ellcey <sje@cup.hp.com>
7899 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7900 if POINTERS_EXTEND_UNSIGNED is defined.
7902 2002-04-02 Richard Henderson <rth@redhat.com>
7905 * local-alloc.c (contains_replace_regs): LO_SUM may contain
7908 2002-04-02 Richard Henderson <rth@redhat.com>
7910 * doc/standards.texi: Document required freestanding libc entry points.
7912 2002-04-02 Alan Modra <amodra@bigpond.net.au>
7914 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7915 associated splitter. Remove MQ constraint.
7916 (ctrdi_internal4): Correct CCmode clobber.
7918 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7920 * milli64.S ($$dyncall): New function.
7921 * t-linux (LIB1ASMFUNCS): Revise module list.
7922 (LIB1ASMSRC): Use pa/milli64.S.
7924 2002-04-02 Richard Henderson <rth@redhat.com>
7926 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7927 rename solaris_sys_varargs_h.
7929 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7931 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7932 the same mode as its component.
7934 2002-04-02 Richard Henderson <rth@redhat.com>
7937 * final.c (this_is_asm_operands): Export.
7938 * output.h (this_is_asm_operands): Declare.
7939 * config/i386/i386.c (print_operand): Error odd asm operands.
7941 2002-04-02 Richard Henderson <rth@redhat.com>
7944 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7946 2002-04-01 Richard Henderson <rth@redhat.com>
7949 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7950 * fixinc/fixincl.x: Rebuild.
7952 2002-04-01 Richard Henderson <rth@redhat.com>
7954 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7955 (atomic_alloc, atomic_free): New.
7956 (SIZE, MASK_FOR, PTR_IN): New.
7957 (emergency_reg_state, emergency_reg_state_free): New.
7958 (emergency_labeled_state, emergency_labeled_state_free): New.
7959 (reg_state_alloced, labeled_state_alloced): New.
7960 (alloc_reg_state, free_reg_state): New.
7961 (alloc_label_state, free_label_state, free_label_states): New.
7962 (push, pop, dup_state_stack, free_state_stack): Use them.
7963 (desc_label_state): Likewise.
7964 (uw_frame_state_for): Free label states and state stack.
7965 (uw_update_reg_address): Eliminate warnings.
7967 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
7969 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7970 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7972 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7974 * c-decl.c (grokdeclarator): Update.
7975 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7976 * c-tree.h (c_mark_addressable): New.
7977 * c-typeck.c (default_function_array_conversion, build_unary_op,
7978 build_array_ref, convert_for_assignment): Update.
7979 (mark_addressable): Rename.
7980 * calls.c (try_to_integrate, expand_call): Use langhook.
7981 * expr.c (expand_expr): Use langhook.
7982 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7983 * langhooks.h (struct lang_hooks): New hook.
7984 * stmt.c (expand_asm_operands): Use langhook.
7985 * tree.h (mark_addressable): Remove.
7987 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7989 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7991 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7994 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7996 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7997 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7999 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8001 * c-common.c (unsigned_conversion_warning, convert_and_check,
8002 unsigned_type, signed_type, shorten_compare,
8003 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
8004 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
8005 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
8007 * c-decl.c (grokdeclarator): Update.
8008 * c-format.c (check_format_types): Update.
8009 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8010 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8011 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
8012 * convert.c (convert_to_integer): Use new hooks.
8013 * expmed.c (make_tree): Use new hooks.
8014 * expr.c (store_expr): Use new hooks.
8015 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
8016 all_ones_mask_p, unextend, fold): Use new hooks.
8017 * langhooks.h (struct lang_hooks_for_types): New hooks.
8018 * tree.h (signed_or_unsigned_type, signed_type,
8019 unsigned_type): Remove.
8021 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8022 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8024 2002-03-31 Richard Henderson <rth@redhat.com>
8026 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
8027 (desc_frgr_mem): Fix reference to f16-f31.
8029 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8031 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
8032 RTVEC_ELT): Const-ify.
8033 * varray.h (VARRAY_CHECK): Const-ify.
8034 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
8035 ggc_mark_rtvec, ggc_mark): Const-ify.
8037 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8039 * diagnostic.c: Include langhooks-def.h.
8040 * Makefile.in (diagnostic.o): Update.
8042 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
8044 * c-common.c (c_unsafe_for_reeval): Rename.
8045 * c-common.h (c_unsafe_for_reeval): Rename.
8046 * c-decl.c (finish_incomplete_decl): Rename.
8047 (c_init_decl_processing): Don't set langhook.
8048 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8049 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8050 * c-objc-common.c (c_objc_common_init): Don't set langhook.
8051 * c-tree.h (finish_incomplete_decl): Rename.
8052 * langhooks-def.h (lhd_unsafe_for_reeval): New.
8053 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8054 (LANG_HOOKS_INITIALIZER): Update.
8055 * langhooks.c (lhd_unsafe_For_reeval): New.
8056 * langhooks.h (struct langhooks): New hooks.
8057 * toplev.c (incomplete_decl_finalize_hook): Remove.
8058 (wrapup_global_declarations): Update.
8059 * tree.c (lang_unsafe_for_reeval): Remove.
8060 (unsafe_for_reeval): Update.
8061 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8064 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8065 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8067 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
8069 * diagnostic.c (print_error_function): Remove.
8070 (default_print_error_function): Rename.
8071 (report_error_function): Update.
8072 * diagnostic.h (print_error_function): Remove.
8073 (default_print_error_function): Remove.
8074 * langhooks-def.h (struct diagnostic_context): Predeclare.
8075 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8076 (LANG_HOOKS_INITIALIZER): Update.
8077 * langhooks.h (struct diagnostic context): Predeclare.
8078 (struct lang_hooks): New hook.
8080 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8082 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8083 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8085 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8086 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8087 of PIC_OFFSET_TABLE_REGNUM thruout.
8088 * config/rs6000/rs6000.md: Likewise.
8089 * config/rs6000/darwin.h: Likewise.
8091 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8093 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8094 unsigned HOST_WIDE_INT, not unsigned int.
8096 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8098 PR middle-end/6096, middle-end/6098, middle-end/6099
8099 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8101 (fill_slots_from_thread): Likewise.
8103 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8105 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8106 floating fields in float regs.
8107 (function_arg_record_value_2): Likewise.
8109 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8111 * config/mmix/mmix.md (define_constants): Remove misleading
8112 FIXME. Add MMIX_fp_rO_OFFSET.
8113 ("nonlocal_goto_receiver"): Don't have stack-frame address of
8114 saved rO as part of the pattern. Remove FIXME.
8115 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
8116 here, at output-time.
8118 2002-03-31 Jakub Jelinek <jakub@redhat.com>
8121 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8123 (output_v9branch): Likewise.
8125 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
8127 * gcc.c: Revert previous patch for now.
8128 * config/i386/djgpp.h: Likewise.
8130 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8132 * config/mmix/crti.asm (_init): Register _fini with atexit.
8133 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8135 2002-03-31 Richard Henderson <rth@redhat.com>
8138 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8139 (ASM_OUTPUT_DEF_FROM_DECLS): New.
8141 2002-03-31 Richard Henderson <rth@redhat.com>
8143 * libgcc2.c (__bb_exit_func): Make static.
8145 * config/alpha/alpha.md (trap): New.
8147 2002-03-31 Richard Henderson <rth@redhat.com>
8149 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8150 promoted argument types; build trap.
8151 (expand_builtin_trap): New.
8152 (expand_builtin): Use it.
8153 * stmt.c (expand_nl_goto_receivers): Likewise.
8154 * expr.h (expand_builtin_trap): Declare.
8155 * libfuncs.h (LTI_abort, abort_libfunc): New.
8156 * optabs.c (init_optabs): Init abort_libfunc.
8158 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
8160 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8161 (LINK_COMMAND_SPEC): ... from here.
8162 (init_gcc_specs): Duplicate it here too, omitting
8163 shared_name in the second copy.
8164 (init_spec): Test for duplicate
8165 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8167 2002-03-30 David S. Miller <davem@redhat.com>
8169 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8170 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8172 2002-03-30 Roger Sayle <roger@eyesopen.com>
8173 Richard Henderson <rth@redhat.com>
8175 * regmove.c (combine_stack_adjustments_for_block): Avoid
8176 emitting a stack adjustment of zero bytes. Let delete_insn
8179 2002-03-30 Richard Henderson <rth@redhat.com>
8181 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8182 (sparc_emitting_epilogue): New.
8183 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8184 * config/sparc/sparc-protos.h: Update.
8185 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8186 (TARGET_SWITCHES): Update.
8187 * config/sparc/sparc.md (return): Remove.
8188 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8189 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8190 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8191 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8192 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8193 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8194 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8195 Remove MASK_EPILOGUE.
8196 * doc/invoke.texi: Update.
8198 2002-03-30 Daniel Berlin <dan@dberlin.org>
8200 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8201 CPP will start the file for us.
8203 2002-03-30 Richard Henderson <rth@redhat.com>
8206 * config/ia64/ia64.c (group_barrier_needed_p): Special case
8207 prologue_allocate_stack.
8208 (ia64_single_set): Use insn codes for recognition of special
8209 cases, not rtl matching.
8210 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8212 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
8214 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8216 2002-03-30 Richard Henderson <rth@redhat.com>
8219 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8220 or -fomit-frame-pointer with profiling.
8221 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8222 (FUNCTION_PROFILER): Do nothing.
8223 (PROFILE_HOOK): New.
8224 * config/sparc/sparc.c (sparc_override_options): Don't check
8225 code models for profiling.
8226 (sparc_function_profiler): Remove.
8227 (sparc_profile_hook): New.
8228 * config/sparc/sparc-protos.h: Update.
8230 2002-03-30 Jakub Jelinek <jakub@redhat.com>
8232 PR optimization/6086
8233 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8234 of SUBREG of volatile MEM or because the MEM was mode dependent,
8235 return CLOBBER instead of unmodified SUBREG.
8237 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
8239 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8240 when not optimizing.
8242 * toplev.c (rest_of_compilation): Cann mark_constant_function
8243 only when optimizing.
8245 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8248 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8249 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8250 (try_optimize_cfg): clear all AUX fields.
8252 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8253 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8254 (ix86_address_cost): Be prepared for SUBREGed registers.
8255 (legitimate_address_p): Accept SUBREGed registers.
8257 2002-03-29 Richard Henderson <rth@redhat.com>
8260 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8262 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8264 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8265 for aggregate and TFmode types.
8267 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8269 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8271 2002-03-29 Richard Henderson <rth@redhat.com>
8274 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8275 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8277 2002-03-29 Richard Henderson <rth@redhat.com>
8280 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8281 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8282 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8283 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8285 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8287 2002-03-29 Dale Johannesen <dalej@apple.com>
8289 * loop.c (combine_movables): Do allow combination of pseudos.
8291 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
8293 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8294 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8295 No functional change except ...
8296 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
8297 * doc/install.texi (*-*-freebsd*): Document port configuration.
8299 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8301 * Makefile.in (convert.o, calls.o, expmed.o): Update.
8302 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8304 * builtin-types.def (BT_PTRMODE): Update.
8305 * c-common.c (type_for_size): Rename c_common_type_for_size.
8306 (type_for_mode): Similarly.
8307 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8309 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8310 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8311 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8313 * c-typeck.c (common_type, comptypes, default_conversion):
8315 * calls.c: Include langhooks.h.
8316 (emit_library_call_value_1): Use new hooks. Avoid redundant
8318 * convert.c: Include langhooks.h
8319 (convert_to_pointer, convert_to_integer): Use new hooks.
8320 * except.c (init_eh): Similarly.
8321 * expmed.c: Include langhooks.h.
8322 (expand_mult_add): Use new hooks.
8323 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8324 try_casesi): Similarly.
8325 * fold-const.c (optimize_bit_field_compare, make_range,
8326 decode_field_reference, fold_truthop, fold): Similarly.
8327 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8328 put_var_into_stack): Similarly.
8329 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8330 LANG_HOOKS_TYPE_FOR_SIZE): New.
8331 (LANG_HOOKS_TYPES_INITIALIZER): Update.
8332 * langhooks.h (lang_hooks_for_types): New hooks.
8333 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8334 * tree.c (get_unwidened, get_narrower): Similarly.
8335 * tree.h (type_for_mode, type_for_size): Remove.
8336 * varasm.c (force_const_mem): Use new hooks.
8337 * utils2.c (nonbinary_modular_operation): Update.
8339 * objc-act.c (handle_impent): Update.
8340 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8343 2002-03-29 Steve Ellcey <sje@cup.hp.com>
8345 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8346 * config/ia64/ia64.c (basereg_operand): New.
8347 * config/ia64/ia64-protos.h (basereg_operand): Declare.
8348 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8350 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8352 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8353 unwind information when frame_pointer_needed.
8354 (mmix_assemble_integer): Tweak wording in comment.
8356 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8358 * Makefile.in (except.o): Update.
8359 * except.c: Include langhooks.h.
8360 (init_eh): Use langhook.
8361 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8362 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8363 (LANG_HOOKS_INITIALIZER): Update.
8364 * langhooks.h (lang_hooks_for_types): New.
8365 (struct lang_hooks): Add it.
8366 * tree.c (make_lang_type_fn, make_lang_type): Remove.
8367 * tree.h (make_lang_type_fn, make_lang_type): Remove.
8369 * alpha/alpha.c: Include langhooks.h.
8370 (alpha_build_va_list): Use langhook.
8371 * d30v/d30v.c: Include langhooks.h.
8372 (d30v_build_va_list): Use langhook.
8373 * i386/i386.c: Include langhooks.h.
8374 (ix86_build_va_list): Use langhook.
8375 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8376 * s390/s390.c: Include langhooks.h.
8377 (s390_build_va_list): Use langhook.
8378 * stormy16/stormy16.c: Include langhooks.h.
8379 (stormy16_build_va_list): Use langhook.
8381 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8384 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8386 (length): Compute variable length for branches/calls/jumps here.
8387 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8388 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8389 define branch_type attribute.
8390 (divsi3_sp32): Maximum length is 6 not 7.
8391 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8392 call_address_untyped_struct_value_sp32,
8393 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8394 * config/sparc/sparc.c (empty_delay_slot): New function.
8395 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8396 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8398 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8400 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8401 nonzero_bits if not needed.
8402 (nonzero_bits) [XOR]: Likewise.
8403 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8404 reg_last_set_mode and mode are both MODE_INT, but not equal.
8405 (record_value_for_reg): Compute reg_last_set_nonzero_bits
8406 in nonzero_bits_mode for MODE_INT modes.
8408 2002-03-28 Richard Henderson <rth@redhat.com>
8411 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8412 to GAS. Correct drift between alternatives.
8414 2002-03-28 Richard Henderson <rth@redhat.com>
8417 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8419 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
8421 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8422 emulation to the linker.
8424 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
8426 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8427 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8429 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
8431 * combine.c (simplify_and_const_int): Make sure to apply mask
8432 when force_to_mode returns a constant integer. PR3311.
8434 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8436 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8438 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8440 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8441 and Objective-C Dialect Options.
8443 2002-03-28 Richard Henderson <rth@redhat.com>
8445 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8446 comparison should be done vs !=0 not >0 return code. Tidy cases.
8448 2002-03-28 Richard Henderson <rth@redhat.com>
8450 * c-decl.c (finish_function): New arg can_defer_p. Pass it
8451 on to c_expand_body.
8452 * c-tree.h (finish_function): Update decl.
8453 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8455 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
8457 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8459 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
8461 * rtlanal.c: Include flags.h
8462 (may_trap_p): Do not mark FP operations if trapping
8463 if !flag_trapping_math
8464 * Makefile.in (rtlanal.o): Add dependency on flag.h
8465 * ifcvt.c (noce_operand_ok): Avoid the lameness.
8467 2002-03-27 Zack Weinberg <zack@codesourcery.com>
8469 * mips.md: Use dconst1, not 1.0, as first argument of
8470 REAL_VALUE_LDEXP. Don't use union real_extract.
8472 2002-03-28 Alan Modra <amodra@bigpond.net.au>
8474 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8475 rather than $target. Heed program_prefix and
8476 program_transform_name. Search for gas in cross-compiler case too.
8477 "test -x" rather than "test -f".
8478 (gcc_cv_ld): Likewise.
8479 (gcc_cv_nm): Heed program_prefix and program_transform_name.
8480 (gcc_cv_objdump): Likewise.
8481 * configure: Regenerate.
8483 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8485 * Makefile.in (attribs.o): Update.
8486 * attribs.c: Include langhooks.h.
8487 (decl_attributes): Use langhook.
8488 * c-decl.c (insert_default_attributes): Rename.
8489 * c-tree.h (c_insert_default_attributes): New.
8490 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8491 (LANG_HOOKS_INITIALIZER): Update.
8492 * langhooks.h (struct lang_hooks): New hook.
8493 * tree.h (insert_default_attributes): Remove.
8495 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8497 2002-03-27 Andreas Schwab <schwab@suse.de>
8499 * config/i386/i386.c (classify_argument): Also check for
8502 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8504 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8507 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
8509 * i960.md (ret): Set PC.
8510 (nonlocal_goto): Fix expander.
8511 * builtins.c (epxand_builin_longjmp): Check that we've emitted
8514 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
8516 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8519 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8521 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8522 assigning to BLOCK_FOR_INSN directly.
8524 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
8526 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8528 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8530 * c-common.c (c_expand_expr): Fix prototype.
8531 * c-common.h (c_expand_expr): Always declare, update.
8532 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8533 * c-objc-common.c (c_objc_common_init): No global hook.
8534 * expr.c (expand_expr): Use langhook.
8535 * expr.h (enum expand_modifier): Conditionally declare.
8536 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8537 (LANG_HOOKS_INITIALIZER): Update.
8538 * langhooks.c (lhd_expand_expr): New.
8539 * langhooks.h (struct lang_hooks): New hook.
8540 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8541 (lang_independent_init): Don't default hook.
8543 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8545 2002-03-27 Richard Henderson <rth@redhat.com>
8548 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8549 TARGET_CONST_GP. Simplify conditions.
8551 2002-03-27 Richard Henderson <rth@redhat.com>
8553 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8554 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8555 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8557 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
8559 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8560 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8561 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8562 Remove unnecessary masks.
8563 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8564 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8565 -mwindows, -mdll switches and their negations.
8567 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8569 * gcc-common.c (lang_mark_false_label_stack): Remove.
8570 * ggc.h (lang_mark_false_label_stack): Similarly.
8572 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
8574 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8576 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8577 or __rtems_ is defined.
8579 2002-03-26 Richard Henderson <rth@redhat.com>
8581 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8582 if a non-trivial load was emitted.
8583 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
8584 in high+extra+low case.
8586 2002-03-26 Richard Henderson <rth@redhat.com>
8588 * config.gcc (sparc*-solaris): Use float_format=sparc.
8590 2002-03-26 Richard Henderson <rth@redhat.com>
8592 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8593 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8594 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8595 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8596 (WINT_TYPE_SIZE): Fix at 32.
8598 2002-03-26 Richard Henderson <rth@redhat.com>
8600 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8601 until after eh landing pad generation.
8602 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8603 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8605 2002-03-26 Richard Henderson <rth@redhat.com>
8607 * expr.h (ADD_PARM_SIZE): One more convert for INC.
8609 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
8611 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
8612 and warning switches.
8613 (cc1_options): Likewise.
8615 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
8617 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8618 Restore more of the signal context. Set no_reg_stack_frame.
8619 * config/ia64/unwind-ia64.c (unw_state_record):
8620 Add no_reg_stack_frame, comments.
8621 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8622 (uw_update_context): Adjust bsp when unwinding from leaf,
8623 but not signal frame.
8625 2002-03-26 David Edelsohn <edelsohn@gnu.org>
8627 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8629 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8631 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8633 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8636 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8637 "Add a pool_range attribute", which was lost during the ARM/Thumb
8640 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8642 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8643 a register into the MAC16 accumulator.
8645 2002-03-26 Andrew Cagney <ac131313@redhat.com>
8647 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8648 (Warning Options): Document -Wswitch-enum.
8649 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
8651 (warn_switch_enum): Define variables.
8652 * flags.h (warn_switch_enum): Declare variables.
8653 * stmt.c (expand_end_case_type): When warn_switch_enum /
8654 -Wswitch-enum, perform switch checks.
8657 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8659 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8660 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8661 (reload_muladdsi_compare0_scratch): Delete.
8663 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8665 * doc/install.texi (*-*-freebsd*): Update.
8667 2002-03-26 Richard Henderson <rth@redhat.com>
8669 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8670 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8672 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8673 types from the normal argument frame.
8675 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8676 variable sized objects by reference.
8677 (sparc_va_arg): Receive them by reference too.
8679 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8681 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8682 code to not restoring global registers.
8684 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8686 * Makefile.in (ggc-common.o): Update.
8687 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8688 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8689 * c-tree.h (c_mark_tree): New.
8690 * ggc-common.c: Include langhooks.h.
8691 (gcc_mark_trees): Use new langhook.
8692 * ggc-callbacks.c: Delete file.
8693 * ggc.h (lang_mark_tree): Remove.
8694 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8695 (LANG_HOOKS_INITIALIZER): Update.
8696 * langhooks.h (struct lang_hooks): New hook.
8698 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8700 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8702 * doc/cpp.texi: Exclude entire Top node from printed manual.
8703 Move option index after directive index. Insert page breaks
8704 before GFDL and concept index. Index environment variables
8705 with command line options.
8706 * doc/cppenv.texi: Use @vtable for environment variable list.
8707 Add paragraph explaining semantics of empty elements in path
8708 variables. Exclude a cross-reference to Fishkill from the
8709 manpage. Remove an unnecessary cross-reference of the entry
8710 right above the referer. Don't use @anchor in text that goes
8712 * doc/cppopts.texi: Cross-reference the environment variables
8713 section, not the specific environment variable, for consistency.
8715 2002-03-25 Richard Henderson <rth@redhat.com>
8717 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8718 anywhere in the block. Don't refer to insns that have been
8719 removed from the chain. Iterate backward through the new insns.
8720 Don't refer to edges that have been removed.
8722 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8724 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8725 test for overflow of constant.
8727 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8730 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8731 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8732 these patterns on arm_archv4.
8734 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
8736 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8739 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8741 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
8742 float_handled, float_handler, float_signal, set_float_handler,
8743 and do_float_handler. Set handler for SIGFPE to crash_signal.
8744 * toplev.h: Don't prototype do_float_handler.
8746 * c-lex.c: Fold parse_float into lex_number. Make warning
8747 about portability of hex float constants more informative, and
8748 don't issue it on top of a syntax error.
8749 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8751 * real.h: Define REAL_VALUE_ABS here...
8752 * simplify-rtx.c: ... not here. Fold check_fold_consts,
8753 simplify_unary_real, simplify_binary_real, and
8754 simplify_binary_is2orm1 into their callers.
8755 * tree.c: Fold build_real_from_int_cst_1 into caller.
8757 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8759 * tsystem.h: Include float.h here...
8760 * libgcc2.c: ... not here.
8762 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
8764 Fixes for: PR bootstrap/3591, target/5676
8765 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8766 defined. Do not disable exceptions or rtti.
8767 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8768 mcore.h. Disable exceptions and rtti, since they are not
8771 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8773 * c-decl.c (maybe_build_cleanup): Remove.
8774 * expr.c (expand_expr): Use langhook.
8775 * langhooks-def.h (lhd_return_null_tree,
8776 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8777 (LANGHOOKS_INITIALIZER): Update.
8778 * langhooks.c (lhd_return_null_tree): New.
8779 * langhooks.h (struct lang_hooks): New hook.
8780 * tree-inline.c (initialize_inlined_parameters): Use langhook.
8781 * tree.h (maybe_build_cleanup): Remove.
8783 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8785 * regrename.c (build_def_use): Move recog_memoized
8786 before extract_insn.
8788 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8791 * expr.c (emit_group_store): Handle storing into CONCAT.
8793 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8795 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8796 corresponding MATCH_DUP.
8798 2002-03-24 Richard Henderson <rth@redhat.com>
8800 * unroll.c (unroll_loop): Zero label_map.
8802 * gcse.c: Include except.h.
8803 * Makefile.in (gcse.o): Update.
8805 2002-03-24 Richard Henderson <rth@redhat.com>
8807 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8808 Do resolve_unique_section before shared data clause.
8810 2002-03-24 Richard Henderson <rth@redhat.com>
8812 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8814 2002-03-24 Richard Henderson <rth@redhat.com>
8816 * recog.c (peephole2_optimize): Split blocks when EH insns are
8817 generated in the middle of a block. Do global life update if
8820 2002-03-24 Richard Henderson <rth@redhat.com>
8822 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8824 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8827 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8828 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8829 (init_dependency_output): Don't make no_output decision here.
8831 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8833 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8834 warn_switch. Update description.
8835 (expand_end_case_type): Call check_for_full_enumeration_handling
8838 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8840 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8841 (m68hc11_split_move): Call it to see if the source and destination
8842 operands use the same direction auto inc/dec mode, otherwise make the
8843 source an offsetable memory operand and generate an add.
8845 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8847 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8848 register for operand 2.
8849 ("*subsi3_zero_extendqi"): Likewise.
8850 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8851 bits so that it is compatible with a pop.
8852 ("*andhi3_gen"): Likewise.
8853 ("xorhi3"): Likewise.
8855 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8857 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8859 (cpp_post_options): ... not here.
8861 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8862 Aldy Hernandez <aldyh@redhat.com>
8864 Removal of separate preprocessor cpp0.
8866 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8867 cpp0, install-common): Update.
8868 * c-common.c (flag_preprocess_only): New.
8869 (c_common_init): Preprocess for -E.
8870 * c-common.h (flag_preprocess_only): New.
8871 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8872 * c-objc-common.c (c_init_decl_processing): Exit quickly
8873 for NULL return from c_common_init.
8874 * cpplib.h (cpp_preprocess_file): New.
8875 * cppmain.c (main, general_init, pfile, progname): Remove.
8876 (do_preprocessing): Rename cpp_preprocess_file, don't call
8877 cpp_finish. Don't close stdout here.
8878 (setup_callbacks): Update prototype.
8879 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8881 * tradcpp.c (main): Ignore -quiet.
8883 * lang-specs.h (default_compilers): Preprocess with cc1obj.
8885 2002-03-24 Richard Henderson <rth@redhat.com>
8887 PR optimization/5742
8888 * machmode.def: Add inner mode field to complex modes.
8889 * config/mips/mips.c (mips_function_value): Always define. Add
8890 new argument to handle libcalls.
8891 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8892 (FUNCTION_VALUE): Likewise.
8893 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8894 * config/mips/mips-protos.h: Update.
8896 2002-03-23 Richard Henderson <rth@redhat.com>
8898 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8899 * config/sparc/sparc-protos.h: Update.
8900 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8902 2002-03-23 Richard Henderson <rth@redhat.com>
8904 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8905 _start or _init begins the text segment.
8907 2002-03-23 David Edelsohn <edelsohn@gnu.org>
8909 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
8910 not HOST_WIDEST_INT.
8911 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8913 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
8916 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8917 operand argument to output_return_instruction.
8918 * arm.c (arm_print_operand, case 'd'): If the operand is
8919 const_true_rtx then just return.
8920 (arm_print_operand, case 'D'): If the operand is const_true_rtx
8923 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8925 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8926 (Warning Options): Document -Wswitch-default.
8927 * toplev.c (W_options): Add -Wswitch-default. Update comment on
8929 (warn_switch_default): Define variable.
8930 (warn_switch): Update comment.
8931 * flags.h (warn_switch_default): Declare variable.
8932 (warn_switch): Update comment.
8933 * stmt.c (expand_end_case): Check for and, when
8934 warn_switch_no_default, warn of a missing default case.
8936 2002-03-23 Alan Modra <amodra@bigpond.net.au>
8938 * real.h (N): Special case 128 bit doubles.
8940 * combine.c (simplify_comparison): When widening modes, ignore
8941 sign extension on CONST_INTs.
8943 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8945 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8946 passed to adjust_address. Fix comment formatting.
8949 2002-03-22 Zack Weinberg <zack@codesourcery.com>
8951 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8952 Always make REAL_VALUE_TYPE a struct containing an array of
8953 HOST_WIDE_INT, not a double. Tidy up the code deciding how
8954 big it is. Don't declare or use union real_extract.
8956 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8957 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8958 (print_operand), config/arm/arm.c (output_move_double),
8959 config/arm/arm.md (consttable_4, consttable_8),
8960 config/romp/romp.c (output_fpops), config/s390/s390.h
8961 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8962 (xtensa_output_literal): Don't use union real_extract.
8964 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8965 (sfmode_constant_to_ulong), config/ns32k/merlin.h
8966 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8967 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8968 (PRINT_OPERAND): Don't use local version of union
8971 * config/convex/convex.c (check_float_value), config/vax/vax.c
8972 (vax_float_literal), config/m88k/m88k.md (divdf3),
8973 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8974 config/pdp11/pdp11.c (output_move_quad): Don't do host
8975 arithmetic on target floating point quantities.
8977 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8978 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8980 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8981 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8983 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8984 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8986 * print-rtl.c (print_rtx): Disable code which needs
8987 floating-point emulator.
8988 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8989 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8990 depending on HOST_FLOAT_FORMAT to be defined properly.
8992 * config/1750a/1750a.c (get_double, float_label): Delete.
8993 (print_operand): Delete huge commented-out chunk. Use
8994 REAL_VALUE_TO_DECIMAL.
8995 * config/1750a/1750a-protos.h: Delete prototypes of deleted
8997 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8999 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
9000 Use REAL_VALUE_TO_DECIMAL as ELF version does.
9001 * config/m88k/m88k.c (real_power_of_2_operand,
9002 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
9003 real_extract out of the union; run the input through
9004 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
9005 from that into the union.
9006 * config/pdp11/pdp11.c (output_move_double): Rearrange
9007 parentheses to make automatic indenter happy.
9009 * doc/tm.texi (Cross-compilation): Rename node to "Floating
9010 Point" and rewrite to describe current situation. Also adjust
9011 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
9013 * doc/rtl.texi: Adjust cross reference.
9015 2002-03-22 Bob Wilson <bob.wilson@acm.org>
9017 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
9018 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
9019 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
9020 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
9021 prevent use of sp as a reload register.
9022 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
9023 non_acc_reg_operand.
9024 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
9025 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
9026 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
9027 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
9029 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
9031 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
9032 * cpplex.c (unterminated): Delete.
9033 (parse_string): No string literal may extend over multiple
9034 lines. Suppress the error when preprocessing assembly.
9035 * cppmain.c (scan_translation_unit): Strings are single-line.
9037 * doc/cpp.texi: Update to match.
9039 2002-03-22 Jakub Jelinek <jakub@redhat.com>
9041 PR optimization/5854
9042 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
9044 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
9045 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
9046 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
9047 const0 if scratch register was not allocated.
9048 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
9049 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
9051 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
9052 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
9053 with GEN_INT (...) everywhere. Remove constraints in define_split
9055 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9056 require scratch register for setting 0 into regs/non-pushable memory.
9058 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
9060 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9061 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9063 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
9065 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
9066 * cppinit.c (cpp_create_reader): On by default.
9067 (cpp_handle_option): Handle -W[no-]endif-labels.
9068 (cpp_post_options): Also enable if -pedantic.
9069 * cpplib.c (do_else): Use it.
9070 (do_endif): Likewise.
9071 * doc/cppopts.texi: Document new option.
9072 * doc/invoke.texi: Document new option.
9074 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
9076 * config/i386/i386.c, config/i386/i386.md: Change all occurences
9077 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9079 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
9081 * flow.c (calculate_global_regs_live): Clear aux fields of
9084 2002-03-22 Jakub Jelinek <jakub@redhat.com>
9086 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9087 REG or MEM subregs, pass rtx * instead of rtx to it.
9088 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9089 rtx * instead of rtx to alter_subreg.
9090 * config/m32r/m32r.c (gen_split_move_double): Likewise.
9091 * config/pj/pj.c (pj_output_rval): Likewise.
9093 2002-03-22 Richard Henderson <rth@redhat.com>
9096 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9097 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9098 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9099 (ia64_expand_prologue): Look at int_regs, not words, for number
9100 of incomming int regs.
9102 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
9104 * expr.c (expand_expr): A RESULT_DECL is part of a call.
9106 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
9108 * toplev.c (flag_loop_optimize, flag_crossjumping):
9109 New static variables.
9110 (rest_of_compilation): Conditionalize crossjumping and
9112 (parse_options_and_default_flags): Default loop_optimize and
9114 (lang_independent_options): Add -fcrossjumping and -floop-optimize
9115 * invoke.texi (crossjumping, loop-optimize): Document.
9117 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9119 * real.c (eiisneg): Move outside #ifdef NANS.
9121 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
9123 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9124 frequencies match; avoid match on different loop depths.
9125 (try_crossjump_to_bb): Kill tests that no longer brings time
9127 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9129 (split_edge): Likewise.
9131 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9134 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9135 * cfgrtl.c: Include insn-config.h
9136 (split_block) Dirtify block in presence of conditional execution
9138 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9140 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9141 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9142 (function_arg): Constify CUMULATIVE_ARGS.
9143 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9144 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9145 (UNITS_PER_DOUBLE): New macro.
9146 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
9147 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
9148 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
9149 fp_regs and stack_words.
9150 (EABI_FLOAT_VARARGS_P): New macro.
9151 * config/mips/mips.c (struct mips_arg_info): New.
9152 (mips_arg_info): New function.
9153 (function_arg_advance): Use it. Add adjustment instructions here
9154 rather than in function_arg.
9155 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
9156 for VOIDmode at the beginning of the function.
9157 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
9158 (function_arg_pass_by_reference): Likewise.
9159 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9160 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9161 (mips_va_start): Likewise. Use the new stack_words field of
9162 CUMULATIVE_ARGS to set up overflow area. Reformat.
9163 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
9164 doubles and other types, aligning the overflow pointer for non-doubles
9165 too. Remove some code duplication. Replace hard-coded constants.
9167 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
9169 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9170 (CLASS_UNITS): Undefine.
9171 (CLASS_MAX_NREGS): Use FP_INC.
9172 * config/mips/mips.c (compute_frame_size): Likewise.
9173 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9175 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
9177 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9178 prototype, and handle lexing numbers and identifiers.
9179 (parse_identifier): Update to new form of parse_slow.
9180 (parse_number): Fast path only, use parse_slow otherwise.
9181 (_cpp_lex_direct): Update calls to parse_number.
9183 2002-03-21 DJ Delorie <dj@redhat.com>
9185 * bb-reorder.c (make_reorder_chain_1): Protect against
9186 when redundant edges are omitted.
9187 * predict.c (dump_prediction): Likewise.
9189 2002-03-21 Richard Henderson <rth@redhat.com>
9192 * fixinc/inclhack.def (solaris_stdio_tag): New.
9193 * fixinc/fixincl.x: Regenerate.
9195 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
9198 * c-typeck.c (process_init_element): Flag non-static
9199 initialization of a flexible array member as illegal.
9201 2002-03-22 Alan Modra <amodra@bigpond.net.au>
9203 * config/rs6000/t-linux64: New.
9204 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9205 t-ppccomm. Use t-rs6000 and t-linux64.
9206 (powerpc64-*-gnu* <tmake_file>): Likewise.
9207 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9208 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9209 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9211 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
9213 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9214 flag_really_no_inline instead of optimize == 0.
9216 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9218 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9220 * flags.h (flag_really_no_inline): New.
9222 * c-common.c (c_common_post_options): Initialize
9223 flag_really_no_inline.
9225 * toplev.c (flag_really_no_inline): New.
9227 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9229 * config/avr/avr.md (length): Fix length computation for
9230 conditional branches.
9232 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
9234 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9235 sdbout.o, profile.o): Update.
9236 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9238 * c-common.h (gettags): Move here from tree.h.
9239 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9240 insert_block, getdecls, kept_level_p, global_bindings_p): New.
9241 * dbxout.c (dbxout_init): Use getdecls langhook.
9242 * expr.c (expand_expr): Use insert_block langhook.
9243 * fold-const.c: Include langhooks.h.
9244 (fold_range_test, fold_binary_op_with_conditional_arg,
9245 fold): Use global_bindings_p langhook.
9246 * integrate.c (expand_inline_function): Use insert_block langhook.
9247 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9248 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9249 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9250 LANG_HOOKS_GETDECLS): New.
9251 (LANG_HOOKS_INITIALIZER): Update.
9252 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9254 * langhooks.h (struct lang_hooks_for_decls): New.
9255 (struct lang_hooks): Update.
9256 * profile.c: Include langhooks.h.
9257 (output_func_start_profiler): Use new langhooks.
9258 * sdbout.c: Include langhooks.h.
9259 (sdbout_init, sdbout_finish): Use getdecls langhook.
9260 * stmt.c: Include langhooks.h.
9261 (expand_fixup, fixup_gotos): Use new langhooks.
9262 * stor-layout.c: Include langhooks.h.
9263 (variable_size): Use global_bindings_p langhook.
9264 * toplev.c (compile_file): Use getdecls langhook.
9265 * tree-inline.c (remap_block): Use insert_block langhook.
9266 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9267 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9269 2002-03-21 Richard Henderson <rth@redhat.com>
9271 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9272 constants in .data when -fpic.
9274 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9276 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9279 2002-03-21 Tom Tromey <tromey@redhat.com>
9281 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
9283 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9285 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9287 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9289 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
9290 Richard Henderson <rth@redhat.com>
9293 * c-common.c (c_expand_expr): Preserve result of a statement
9294 expression if needed.
9296 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9299 * genrecog.c (maybe_both_true_mode): Remove.
9300 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9301 * machmode.def (Pmode): Likewise.
9303 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
9305 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9306 (nonlocal_mentioned_p_1): New function.
9307 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9308 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9309 (mark_constant_function): Recognize pure functions.
9310 * rtl.h (global_reg_mentioned_p): New prototype.
9311 * rtlanal.c (global_reg_mentioned_p,
9312 global_reg_mentioned_p_1): New function.
9314 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9316 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9318 * fixinc/fixincl.x: Regenerate.
9320 2002-03-20 Jason Merrill <jason@redhat.com>
9322 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9324 2002-03-20 Michael Meissner <meissner@redhat.com>
9326 * doc/invoke.texi (Optimize Options): Document that -O2 sets
9329 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9331 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9332 ".literal_position" directive before the constant pool.
9334 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9336 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9337 Add Craig Rodrigues.
9338 Add Brad Lucier to testers.
9340 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9343 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9345 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9346 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9347 instead of insn_extract.
9349 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9352 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9354 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9355 stmt if some case has been output.
9357 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9360 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9361 movsfcc_1, movdfcc_1): Add %O2.
9362 * config/i386/i386.c (print_operand): Handle %ON.
9363 Print . before float condition codes in Sun as cmov syntax.
9364 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9365 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9368 2002-03-20 Philip Blundell <pb@nexus.co.uk>
9370 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9371 return instruction if PC was popped.
9373 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9375 * config/xtensa/xtensa.md: Remove unused type attributes.
9376 (adddi_carry, subddi_carry): Change type attribute to "multi".
9378 2002-03-19 Dale Johannesen <dalej@apple.com>
9380 PR optimization/5999, middle-end/5731
9381 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9382 multiplications by reciprocals.
9384 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
9386 * Makefile.in: Update.
9387 * c-common.c: Include langhooks.h.
9388 (inline_forbidden_p): Use new hook.
9389 * diagnostic.c: Include langhooks.h.
9390 (format_with_decl, announce_function,
9391 default_print_error_function): Use new hook.
9392 * dwarf2out.c (dwarf2_name): Use new hook.
9393 * function.c: Include langhooks.h.
9394 (init_function_start): Use new hook.
9395 * langhooks-def.h (lhd_decl_printable_name): New.
9396 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9397 (LANGHOOKS_INITIALIZER): Update.
9398 * langhooks.c (lhd_decl_printable_name): New.
9399 * langhooks.h (struct lang_hooks): New hook.
9400 * toplev.c (decl_name, decl_printable_name): Remove.
9401 (open_dump_file): Use new hook.
9402 (process_options): Remove old hook.
9403 * tree.h (decl_printable_name): Remove.
9405 * objc-act.c (objc_init): Remove old hook.
9406 (objc_printable_name): Export.
9407 * objc-act.h (objc_printable_name): New.
9408 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9410 2002-03-19 Jim Blandy <jimb@redhat.com>
9412 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9413 the start_source_file debug hook, not the current line number.
9415 2002-03-19 Richard Henderson <rth@redhat.com>
9417 * flow.c (EH_USES): Provide default.
9418 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9419 * doc/tm.texi (EH_USES): New.
9421 * config/ia64/ia64.c (ia64_eh_uses): New.
9422 * config/ia64/ia64-protos.h: Update.
9423 * config/ia64/ia64.h (EH_USES): New.
9425 2002-03-19 Richard Henderson <rth@redhat.com>
9427 * varasm.c (output_constant_def): Fix stupid typo.
9429 2002-03-19 Richard Henderson <rth@redhat.com>
9432 * except.c (current_function_has_exception_handlers): New.
9433 * except.h: Declare it.
9434 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9435 Combine tests that disable all sibcalls for the function.
9437 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
9439 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9442 2002-03-19 Richard Henderson <rth@redhat.com>
9445 * config/ia64/ia64.c: Revert 2002-03-01 patch.
9446 * config/ia64/ia64.h (INIT_EXPANDERS): New.
9448 2002-03-19 Jim Blandy <jimb@redhat.com>
9450 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9451 name, even if the replacement list contains no tokens, as required
9454 2002-03-19 Jason Merrill <jason@redhat.com>
9456 * varasm.c (globalize_decl): Get the name from the RTL, not
9457 DECL_ASSEMBLER_NAME.
9459 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9461 2002-03-19 Bob Wilson <bob.wilson@acm.org>
9463 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9464 subdi_carry): Define.
9466 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9468 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9469 about -fpic/-fPIC if extra_warnings set.
9471 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9473 * expr.c (expand_expr): Sign-extend CONST_INT generated from
9474 TREE_STRING_POINTER.
9475 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9477 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9479 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9480 in favor of SP if FRAME_POINTER_REQUIRED is false.
9482 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
9484 * emit-rtl.c (gen_int_mode): New function.
9485 * rtl.h: Prototype for it.
9486 * combine.c (make_extraction, simplify_comparison), expmed.c
9487 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9488 (convert_modes, store_field), optabs.c (expand_fix),
9489 simplify-rtx.c (neg_const_int, simplify_unary_real),
9491 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9492 Use it instead of GEN_INT (trunc_int_for_mode (...)).
9494 2002-03-19 Jakub Jelinek <jakub@redhat.com>
9497 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9498 convert_parm_for_inlining.
9499 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9501 * langhooks-def.h: Likewise.
9502 * objc/objc-lang.c: Likewise.
9503 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9505 * tree-inline.c (initialize_inlined_parameters):
9506 Call convert_parm_for_inlining lang hook if needed.
9507 * c-typeck.c (c_convert_parm_for_inlining): New function.
9508 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9510 2002-03-18 Mark Mitchell <mark@codesourcery.com>
9512 * calls.c (precompute_arguments): Do not assume that temporaries
9513 can be destroyed after expanding the argument.
9514 (expand_call): Likewise.
9516 2002-03-15 Eric Christopher <echristo@redhat.com>
9518 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9519 Fix register preference on last change.
9520 * config/mips/mips.c (mips_return_in_memory): New function.
9521 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9522 * config/mips/mips-protos.h: Declare.
9523 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9524 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9526 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
9528 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9530 (anddi3, iorsi3): Likewise.
9532 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9533 use %gprel for symbols that are going to be placed in linkonce
9536 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9537 RETURN_ADDRESS_POINTER_REGNUM to $ra.
9538 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9539 not needed. Disregard leaf_function_p().
9540 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9541 mips16 frame pointer.
9542 * config/mips/mips.md (store ra): Only to small SP offsets.
9543 2001-08-22 Graham Stott <grahams@redhat.com>
9544 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9545 return a REG rtx for the return address register.
9547 2002-03-18 Bob Wilson <bob.wilson@acm.org>
9549 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9550 constant-pool addresses as "mode-dependent".
9551 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9553 2002-03-18 Jakub Jelinek <jakub@redhat.com>
9556 * expr.c (emit_group_load): Use extract_bit_field if
9557 needed for CONCAT arguments.
9559 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
9562 * arm.md (tablejump): Make this a define_expand. For PIC add the
9563 offset to the base of the table.
9564 (thumb_tablejump): Matcher for Thumb tablejump insn.
9565 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9566 as the difference of two labels.
9567 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9568 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9570 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9571 * arm.c (get_jump_table_size): If the table is not in the text
9572 section, return zero.
9574 2002-03-18 Bernd Schmidt <bernds@redhat.com>
9576 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9578 (arm_reload_out_hi): Use gen_lowpart instead of
9579 gen_rtx_SUBREG to access QImode components.
9580 * config/arm/arm.md: Disable zero_extend split for QImode
9581 subregs in BIG_ENDIAN mode.
9582 (storehi_bigend): Match use of least significant byte.
9583 (storeinthi): Remove extraneous SUBREG.
9584 Add missing construction of operands[2].
9585 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9586 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9587 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9589 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
9591 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9594 2002-03-17 Richard Henderson <rth@redhat.com>
9596 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9599 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9601 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9602 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9604 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9606 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9608 * predict.c (estimate_bb_frequencies): Delete unused variables.
9610 2002-03-17 Richard Henderson <rth@redhat.com>
9612 * config/ia64/ia64.c (ia64_attribute_table): Move before
9613 targetm definition. Make static.
9615 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
9617 * c-common.h (yyparse, c_common_parse_file): New.
9618 * c-lang.c: Include c-common.h.
9619 (LANG_HOOKS_PARSE_FILE): Redefine.
9620 * c-lex.c: Include c-common.h.
9621 (yyparse): Rename c_common_parse_file. Call yyparse.
9622 * c-parse.in (yyparse): Remove macro.
9623 * c-tree.h (yyparse_1): Remove.
9624 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9625 (LANG_HOOKS_INITIALIZER): Update.
9626 * langhooks.h (struct lang_hoooks): New hook parse_file.
9627 * toplev.c (compile_file): Use parse_file hook.
9628 * tree.h (yyparse): Remove.
9629 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9631 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9633 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9634 float_truncate, not fix.
9635 ("*truncdfsf2_real"): Ditto.
9636 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9638 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9640 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
9642 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9643 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
9644 where appropriate. Make the second reference to
9645 leaf_function_p a function call, as intended. Reindented.
9647 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9648 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9650 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9651 add register to non-constant into sp.
9653 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9654 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9655 (mips16_gp_pseudo_rtx): Lose.
9656 (INIT_EXPANDERS): Deleted.
9657 * config/mips/mips.c (mips_init_machine_status): New.
9658 (mips_free_machine_status): New.
9659 (mips_mark_machine_status): New.
9660 (override_options): Set them.
9661 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9662 (struct machine_function): ... new. Replaced all references.
9663 (mips_add_gc_roots): Don't mark them.
9664 (embedded_pic_fnaddr_reg): New, extracted from...
9665 (embedded_pic_offset): ... here.
9666 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9669 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9671 * cppinit.c: Revert -MD removal.
9673 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9675 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9676 soft registers by default for 68HC12.
9677 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9678 when compiling with -fomit-frame-pointer.
9679 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9680 (expand_epilogue): Likewise.
9681 (m68hc11_gen_rotate): Use exg when rotating by 8.
9683 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9685 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9686 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9687 (splits): Remove unused add splits.
9688 ("*addhi3_68hc12"): Tune constraints.
9689 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9690 constant fits in 8-bits and D is dead use abx/aby instructions.
9691 ("*addhi3"): Remove extern declaration of ix_reg.
9692 ("*subsi3"): Optimize and provide new split.
9693 ("subhi3"): Cleanup.
9694 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9695 (arith splits): For 68hc12 save the address register on the stack
9696 and do the arithmetic operation with a pop.
9698 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9700 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9701 allocating QImode in address registers.
9702 ("*movqi_m68hc11"): Likewise.
9704 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9706 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9708 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9710 * cppinit.c (print_help): Display -MD and -MMD.
9711 Don't display usage string. Update assertion syntax and
9713 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9714 (cpp_handle_option): Update.
9716 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9718 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9719 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9720 and define it so that regardless of target CPU size,
9721 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9722 of "int" rather than "long."
9724 2002-03-15 Richard Henderson <rth@redhat.com>
9726 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9729 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9731 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9732 ("tstqi" split): Avoid using memory for tstqi on address register.
9733 (splits): Remove constraints.
9734 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9735 ("cmpdf", "cmpsf"): Remove since not used.
9736 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9737 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9739 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9741 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9742 ("neghi2"): Tighten constraints.
9743 ("one_cmplsi2"): Optimize and simplify split.
9744 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9746 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9748 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9749 and split of AND operation to clear the upper bits.
9750 ("*logicalsi3_zextqi"): Likewise.
9751 ("*logicallhi3_zexthi_ashift8"): Likewise.
9752 ("*logicalsi3_silshr16"): Likewise.
9753 ("logicalsi3_silshl16"): Likewise.
9754 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9756 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9758 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9759 (m68hc11_indirect_p): New function.
9760 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9761 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9763 (asm_print_register): Likewise.
9764 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9765 (m68hc11_indirect_p): Declare.
9766 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9767 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9768 (TARGET_SWITCHES): New option -mrelax.
9769 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9771 ("iorsi3", "xorsi3"): Likewise.
9772 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9773 ("*andhi3_mem"): New to handle destination in memory with bclr
9774 and a scratch register.
9775 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9776 ("*andhi3_const"): New when operand2 is constant.
9777 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9778 ("*andhi3_gen"): Cleanup of the old "andhi3".
9779 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9780 ("xorqi3"): Update constraints.
9782 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9784 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9785 for reg_equiv_memory_loc when the operand is a register that does
9786 not get a hard register (stack location).
9787 (tst_operand): After reload, accept all memory operand.
9788 (symbolic_memory_operand): Fix detection of symbolic references.
9789 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9790 accept symbols and any constant.
9792 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9794 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9795 note on the insn that sets the soft frame register.
9796 (must_parenthesize): ix and iy are also reserved names.
9797 (print_operand_address): One more place where parenthesis are required
9798 to avoid confusion with register names.
9799 (m68hc11_gen_movhi): Allow push of stack pointer.
9800 (m68hc11_check_z_replacement): Fix handling of parallel with a
9802 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9803 the replacement register is.
9804 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9805 and D8_REGS classes.
9806 (MODES_TIEABLE_P): All modes are tieable except QImode.
9808 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9810 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9811 (___subdi3): Likewise.
9812 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9813 (__map_data_section): Optimize 68hc11 case.
9815 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9817 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9818 than a shift to avoid adding a register with itself.
9819 (m68hc11_memory_move_cost): Take into account NO_REGS.
9820 (m68hc11_register_move_cost): Update and use memory move cost
9822 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9823 it gives more opportunities to cse to optimize.
9824 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9825 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9827 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9829 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9830 * c-common.def (CLEANUP_STMT): New tree node.
9831 * c-common.h (CLEANUP_DECL): New macro.
9832 (CLEANUP_EXPR): Likewise.
9833 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9834 * expr.c (expand_expr): Tidy.
9835 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9836 * tree-inline.c (initialize_inlined_parameters): Clean up
9837 new local variables.
9839 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9842 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9843 before movrXX only, use reg_overlap_mentioned_p.
9844 Only special case NE if just one insn can be generated.
9846 2002-03-15 Jason Merrill <jason@redhat.com>
9848 * varasm.c (assemble_variable): Call resolve_unique_section before
9849 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
9852 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9855 * arm.md (split pattern for thumb shiftable immediates): Add comment
9856 explaining non-obvious test.
9858 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9861 * arm.md (movaddr, movaddr_insn): Delete.
9863 2002-03-15 Jason Merrill <jason@redhat.com>
9865 * toplev.c (wrapup_global_declarations): Clarify variable handling.
9866 -fkeep-static-consts doesn't apply to comdats.
9868 2002-03-14 Richard Henderson <rth@redhat.com>
9870 * c-decl.c: Include c-pragma.h.
9871 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9872 (finish_function): Tidy.
9873 * c-pragma.c: Include c-common.h.
9874 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9875 (handle_pragma_weak): Use them.
9876 (init_pragma): Register pending_weaks.
9877 * c-pragma.h (maybe_apply_pragma_weak): Declare.
9878 * print-tree.c (print_node): Print DECL_WEAK.
9879 * varasm.c (mark_weak_decls): Remove.
9880 (remove_from_pending_weak_list): Remove.
9882 (asm_emit_uninitialised): Call globalize_decl for weak commons.
9883 (weak_decls): Make a tree_list.
9884 (declare_weak): Cons weak_decls directly.
9885 (globalize_decl): Remove weak_decls elements directly.
9886 (weak_finish): Simplify weak_decls walk. Don't weaken unused
9887 symbols. Don't pretend to handle aliases.
9888 (init_varasm_once): Update weak_decls registry.
9889 * Makefile.in: Update dependencies.
9891 2002-03-14 Richard Henderson <rth@redhat.com>
9894 * config/ia64/ia64.c: Include tm_p.h last.
9895 (gen_nop_type): Remove duplicate definition.
9896 (cycle_end_fill_slots): Set sched_data for second L slot.
9897 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9898 (nop_cycles_until): Fix typos.
9900 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9902 PR optimization/5891
9903 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9905 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9907 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9908 descriptors correctly.
9910 2002-03-14 Michael Meissner <meissner@redhat.com>
9912 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9913 100, allowing MAX_UNROLLED_INSNS to be overridden.
9915 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9918 * unroll.c (params.h): Include.
9919 (MAX_UNROLLED_INSNS): Delete, now in params.h.
9921 * doc/invoke.texi (--param max-unroll-insns): Document.
9923 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9925 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9927 * arm.md: Fix warnings about constraints in peepholes and splits.
9929 2002-03-14 Zack Weinberg <zack@codesourcery.com>
9931 * cpphash.h (struct lexer_state): Remove line_extension member.
9932 * cpplib.c (dequote_string, do_linemarker): New functions.
9933 (linemarker_dir): New data object.
9934 (DIRECTIVE_TABLE): No longer need to interpret #line in
9935 preprocessed source. Delete obsolete comment about return
9937 (end_directive, directive_diagnostics, _cpp_handle_directive):
9938 Don't muck with line_extension.
9939 (directive_diagnostics): No need to issue warnings for
9941 (_cpp_handle_directive): Issue warnings for linemarkers here,
9942 when appropriate. Dispatch linemarkers to do_linemarker, not
9944 (do_line): Code to handle linemarkers split out to do_linemarker.
9945 Convert escape sequences in filename argument, both places.
9947 * cppmacro.c (quote_string): Rename cpp_quote_string and
9948 export. All callers changed.
9949 * cpplib.h (cpp_quote_string): Prototype.
9950 * cppmain.c (print_line): Call cpp_quote_string on to_file
9953 * doc/cpp.texi: Document that escapes are now interpreted in
9954 #line and in linemarkers, and that non-printing characters are
9955 converted to octal escapes when linemarkers are generated.
9957 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
9959 * emit-rtl.c (try_split): Use delete_insns.
9960 * recog.c (split_all_insns): Fix terminating condition.
9962 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9963 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9966 * arm.c (arm_output_epilogue): Fix floating-point register save
9967 adjustment when using a frame pointer.
9969 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
9971 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9972 * config/mips/mips.c (compute_frame_size): Retrofit them here.
9973 (save_restore_insns, mips_expand_epilogue): And here.
9974 (build_mips16_call_stub): And here.
9975 (mips_function_value): Use the new macros to decide whether a single
9976 or complex float can be returned in floating-point registers. Return
9977 a parallel rtx in the complex case.
9979 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
9981 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9982 call after liveness analysis.
9984 * recog.c (split_insn): Use delete_insn_and_edges.
9986 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9987 instructions to have branch prediction notes.
9988 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9990 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
9992 * configure.in: Don't pass -Wno-long-long to a ADA compiler
9993 that doesn't support it.
9994 * configure: Regenerate.
9996 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9999 * config/sparc/sparc.md (normal_branch, inverted_branch,
10000 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10001 inverted_fp_branch): Adjust calls to output_cbranch.
10002 Set length attribute.
10003 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
10004 output_v9branch. Set length attribute.
10005 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
10007 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
10008 (output_cbranch): Likewise. Handle far branches.
10009 (output_v9branch): Handle far branches.
10010 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
10012 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
10013 noov_compare64_op predicates.
10015 2002-03-13 Jason Merrill <jason@redhat.com>
10017 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
10018 into the function and constify it.
10019 * gthr-dce.h, gthr-solaris.h: Likewise.
10021 2002-03-13 David Edelsohn <edelsohn@gnu.org>
10023 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
10024 * config/rs6000/rs6000.c (rs6000_va_arg): Use
10025 std_expand_builtin_va_arg if not ABI_V4.
10027 2002-03-13 Jason Merrill <jason@redhat.com>
10029 * varasm.c (globalize_decl): New fn.
10030 (assemble_start_function): Use it.
10031 (asm_emit_uninitialized): Use it.
10032 (assemble_alias): Use it.
10033 (assemble_variable): Use it.
10035 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
10037 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
10038 2002-03-12 internal visibility change.
10039 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
10040 visibility into SYMBOL_REF_FLAG.
10042 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
10044 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
10045 VOIDmode operand. Add compile-time optimization for constant results.
10047 2002-03-12 Jason Merrill <jason@redhat.com>
10049 * c-typeck.c (convert_for_assignment): Don't allow conversions
10050 between pointers and references. Only allow lvalues to convert to
10053 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
10055 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10056 before prologue, to avoid scheduling problems.
10058 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10060 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10061 (ELIMINABLE_REGS): Add sfp->sp.
10062 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10064 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10066 PR optimization/5892
10067 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10069 2002-03-13 Jakub Jelinek <jakub@redhat.com>
10071 * loop.c (basic_induction_var): Don't call convert_modes if mode
10072 classes are different.
10074 2002-03-12 Richard Henderson <rth@redhat.com>
10076 PR optimization/5901
10077 * function.c (reposition_prologue_and_epilogue_notes): Position
10078 the markers after/before the last/first insn not deleted.
10080 2002-03-12 Richard Henderson <rth@redhat.com>
10082 PR optimization/5878
10083 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10084 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10085 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10087 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10088 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10089 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10091 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10092 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10093 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10094 also. Don't set it if not flag_pic.
10095 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10096 to be INVALID_REGNUM when not used.
10098 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
10100 * expmed.c (store_bit_field): Reset alias set for memory.
10101 (extract_bit_field): Same.
10103 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10105 * c-common.c (c_tree_code_type, c_tree_code_length,
10106 c_tree_code_name, add_c_tree_codes): Delete.
10107 * c-common.h (add_c_tree_codes): Delete.
10108 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10110 * c-objc-common.c (c_objc_common_init): Don't call
10111 add_c_tree_codes, instead set lang_unsafe_for_reeval.
10112 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10113 objc_tree_code_name, add_objc_tree_codes): Delete.
10114 (objc_init): Don't call add_objc_tree_codes.
10115 * objc/objc-lang.c (tree_code_type, tree_code_length,
10116 tree_code_name): Define.
10117 * toplev.c (lang_independent_init): Don't set
10118 tree_code_length[IDENTIFIER_NODE].
10119 * tree.c (tree_code_type, tree_code_length, tree_code_name):
10120 Delete definitions, moved to language front-ends.
10121 * tree.def (IDENTIFIER_NODE): Hardwire the length.
10122 * tree.h (tree_code_type, tree_code_length, tree_code_name):
10124 (tree_code_length): Change type to unsigned char.
10126 2002-03-12 Richard Henderson <rth@redhat.com>
10128 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10129 internal visibility change.
10131 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10133 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10134 validize_mem() instead of change_address to avoid clobbering
10137 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
10139 * c-lex.h (position_after_whitespace): Remove.
10141 2002-03-12 Jakub Jelinek <jakub@redhat.com>
10143 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10144 (lex_string): Use unsigned char pointers.
10146 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
10148 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10149 is not a valid memory_operand.
10151 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10153 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10154 * config/xtensa/lib1funcs.asm: Fix copyright to include
10155 special case for libgcc files.
10156 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10157 (__divsi3): Likewise.
10158 (__umodsi3): Likewise.
10159 (__modsi3): Likewise.
10160 * config/xtensa/lib2funcs.S: Fix copyright to include
10161 special case for libgcc files.
10163 2002-03-12 Tom Rix <trix@redhat.com>
10165 * collect2.c (resolve_lib_name): Move outside of
10166 OBJECT_FORMAT_COFF ifdef.
10167 (ignore_library): Same.
10169 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10171 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10173 2002-03-12 Bob Wilson <bob.wilson@acm.org>
10175 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10176 to function_section before writing out the constant pool.
10178 2002-03-12 David Edelsohn <edelsohn@gnu.org>
10180 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10182 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10184 2002-03-12 Alan Modra <amodra@bigpond.net.au>
10186 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10187 (adddi3): Likewise.
10190 (cmpsi splitter): Likewise.
10191 (modsi3): Fail if <= 0.
10192 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10193 redundant test when HOST_BITS_PER_WIDE_INT != 32.
10194 (reg_or_sub_cint64_operand): Likewise.
10195 (num_insns_constant_wide): Optimize sign extension.
10196 (rs6000_legitimize_address): Likewise.
10198 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
10200 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10201 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10203 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
10205 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10206 address calculation.
10208 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
10210 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10211 scratch register to DImode / TImode.
10212 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10213 register used does not overlap the target.
10215 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10217 * Makefile.in (debug.o): Depend on debug.h.
10218 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10219 * debug.c (do_nothing_debug_hooks): Likewise.
10220 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10221 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10222 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10223 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10224 * dwarfout.c (dwarf_debug_hooks): Likewise.
10225 * integrate.c (output_inline_function): Likewise.
10226 * objc/objc-act.c (synth_module_prologue): Likewise.
10227 * sdbout.c (sdb_debug_hooks): Likewise.
10228 * toplev.c (debug_hooks): Likewise.
10229 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10231 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10233 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10234 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10235 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10236 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10237 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10238 * defaults.h (POINTER_SIZE): Define.
10239 * doc/tm.texi (POINTER_SIZE): Document default.
10241 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10243 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10245 2002-03-11 Richard Henderson <rth@redhat.com>
10247 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10248 if rebuild_label_notes_after_reload.
10250 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
10252 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
10253 emit pic register load if "internal" visibility.
10254 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10255 (cris_expand_builtin_va_arg): Do all computations on trees.
10257 2002-03-11 Richard Henderson <rth@redhat.com>
10259 * rtlanal.c: Include recog.h.
10260 (keep_with_call_p): Fix thinko.
10261 * Makefile.in (rtlanal.o): Update dependencies.
10263 2002-03-11 Chris Meyer <cmeyer@gatan.com>
10265 * genflags.c (gen_insn): Use IS_VSPACE.
10266 * genoutput.c (output_insn_data): Likewise.
10267 (process_template): Likewise.
10269 2002-03-11 Richard Henderson <rth@redhat.com>
10271 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10273 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
10275 * Makefile.in: Update.
10276 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10277 Update documentation.
10278 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10279 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10281 2002-03-11 Zack Weinberg <zack@codesourcery.com>
10283 * Makefile.in: Give texi2pod its input file as a command line
10284 argument, not on stdin.
10286 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
10287 Daniel Berlin <dan@dberlin.org>
10289 C++ alias analysis improvement.
10290 * alias.c (record_component_aliases): Record aliases for base
10293 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10295 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10297 2002-03-11 Douglas B Rupp <rupp@gnat.com>
10299 * toplev.c (vms_fopen): Remove, not needed.
10301 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10303 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10305 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10306 for FP, already done later.
10308 * toplev.c (debug_args): Add entry for VMS_DEBUG.
10309 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10311 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
10313 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10314 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10315 LARGEST_EXPONENT_IS_NORMAL for the given mode.
10316 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10317 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10318 (ediv, emul, eldexp, esqrt): Likewise.
10319 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10320 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10321 (saturate): New function.
10322 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10323 (make_nan): Use a saturation value instead of a NaN if
10324 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
10325 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10326 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
10327 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
10328 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10329 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10330 !ROUND_TOWARDS_ZERO.
10331 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10332 (ROUND_TOWARDS_ZERO): Document.
10334 2002-03-11 Andreas Jaeger <aj@suse.de>
10336 * cfg.c (dump_flow_info): Remove unused variable.
10338 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
10340 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10341 computations on trees.
10343 2002-03-10 Richard Henderson <rth@redhat.com>
10346 * reload.c (copy_replacements_1): New.
10347 (copy_replacements): Use it to recurse through the rtx.
10349 2002-03-10 Richard Henderson <rth@redhat.com>
10351 * loop.c (strength_reduce): Compute number of iterations as
10352 unsigned HOST_WIDE_INT.
10354 2002-03-10 Richard Henderson <rth@redhat.com>
10356 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10357 to move away from the end of the block.
10359 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
10361 PR preprocessor/5899
10362 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10364 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10366 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10368 * attribs.c (decl_attributes): Fix signed/unsigned warning.
10370 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
10372 * config/mmix/mmix.c: Improve comments.
10373 (mmix_target_asm_function_prologue): Drop variable
10374 empty_stack_frame. Don't allocate unused slot above fp.
10375 (mmix_target_asm_function_epilogue): Mirror prologue changes.
10376 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10377 brace in first column.
10378 (enum reg_class): Ditto.
10379 (FIRST_PARM_OFFSET): Now 0.
10380 (USER_LABEL_PREFIX): Remove #if 0:d definition.
10382 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10384 * combine.c (make_extraction): Fix error in last change.
10386 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10388 * c4x.c (c4x_fp_reglist): Const-ify.
10389 * cris.c (cris_print_operand): Likewise.
10390 * i386.c (ix86_va_arg): Likewise.
10391 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10392 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10393 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10394 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10395 * mcore.h (regno_reg_class): Likewise.
10396 * mips.c (gen_int_relational): Likewise.
10397 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10398 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10399 * pdp11.c (move_costs): Likewise.
10400 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10401 * s390.c (s390_branch_condition_mnemonic, regclass_map):
10403 * s390.h (regclass_map): Likewise.
10404 * sh.c (shift_amounts): Likewise.
10405 * sh.md (rotlsi3): Likewise.
10407 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10409 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10410 (ne0+5): Use new clobber to generate proper shift pattern.
10411 Patch by Michael Matz <matz@kde.org>.
10413 2002-03-09 Andreas Schwab <schwab@suse.de>
10415 * gcc.c (validate_all_switches): Also handle `%W{...}'.
10417 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10419 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10421 2002-03-09 Jakub Jelinek <jakub@redhat.com>
10424 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10425 even for non-representable constants.
10427 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10429 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10430 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10431 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10432 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10433 (pop_function_context): Compute MAY_SHARE parameter for
10435 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10436 (gen_mem_addressof): Call fixup_var_refs with new parm.
10438 * combine.c (make_extraction): Don't make extension of CONST_INT.
10440 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10442 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10443 in o32 and o64 ABIs.
10444 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10445 but getting fixed-size structs passed in registers regardless of
10446 padding in o32 and o64 ABIs.
10448 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10449 offset before loading address of argument passed by transparent
10452 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10454 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10456 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10458 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10459 marker such that registers after it are saved.
10461 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10463 * sparc.c (arith_4096_operand): Fix error in last change.
10465 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10467 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10468 defaults for MEABI.
10470 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10472 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10475 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10477 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10479 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
10481 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10482 removed; fix return value.
10483 * combine.c (combine_instructions): Dirtify blocks where we failed to
10484 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10485 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10487 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10489 * gcse.c (insert_insn_end_bb): Fix typo in last change.
10491 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
10493 * recog.c (peephole2_optimize): Re-distribute EH edges.
10495 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
10497 * expr.c (expand_expr): Use unsave lang hook.
10498 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10499 (LANG_HOOKS_INITIALIZER): Update.
10500 * langhooks.h (struct lang_hooks): New hook unsave.
10501 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10502 (unsave_expr_1): Remove unused lang_unsave_expr_now.
10503 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
10504 (unsave_expr_now): Remove.
10505 * tree.h (unsave_expr_now, lang_unsave,
10506 lang_unsave_expr_now): Remove.
10509 2002-03-08 Andreas Jaeger <aj@suse.de>
10511 * flow.c (propagate_block_delete_insn): Remove unused variable.
10513 2002-03-08 Kazu Hirata <kazu@hxi.com>
10515 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10516 insn length for memory load/store.
10518 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
10520 * doc/install.texi (--with-libiconv-prefix): Document.
10522 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
10524 * doc/sourcebuild.texi: Fix typo.
10526 2002-03-08 Jakub Jelinek <jakub@redhat.com>
10529 * builtins.c (std_expand_builtin_va_arg): Do all computations on
10532 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10534 * rtl.c (copy_most_rtx): Move from here ...
10535 * emit-rtl.c (copy_most_rtx): ... to here.
10537 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10539 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10540 SUBTARGET_CPP_SIZE_SPEC.
10541 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10543 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10545 2002-03-07 Matt Hiller <hiller@redhat.com>
10547 * gensupport.c (first_dir_md_include): Renamed from include;
10548 change all references.
10549 (last_dir_md_include): Renamed from last_include; change all
10551 (init_md_reader): Unconditionally initialize base_dir whether or
10552 not filename is a relative path.
10554 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
10556 * config/fp-bit.c (_unord_f2): Compile it in even if
10557 US_SOFTWARE_GOFAST is enabled.
10559 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10560 NULL_RTX. Set all HFmode operations as NULL_RTX.
10561 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10562 NULL_RTX, try reversing the comparison and the operands.
10564 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10566 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10567 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10570 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
10572 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10574 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10576 * basic-block.h (fixup_abnormal_edges): Declare.
10577 * reload1.c (fixup_abnormal_edges): New function.
10578 * reg-stack.c (convert_regs): Use it.
10580 * gcse.c (insert_insn_end_bb): Handle trapping insns.
10582 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10584 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
10586 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10587 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10588 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10589 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10590 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10591 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10592 unless x and y could be infinite.
10593 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10594 Check that the common type of both arguments is a real, even for
10595 targets without unordered comparisons. Allow an integer argument
10596 to be compared against a real.
10597 (expand_tree_builtin): Use expand_unordered_cmp.
10598 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10599 * cse.c (fold_rtx): Likewise. Fix indentation.
10600 * fold-const.c (fold_real_zero_addition_p): New.
10601 (fold): Use it, and the new HONOR_... macros.
10602 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10603 * jump.c (reversed_comparison_code_parts): After searching for
10604 the true comparison mode, use HONOR_NANS to decide whether it
10605 can be safely reversed.
10606 (reverse_condition_maybe_unordered): Remove IEEE check.
10607 * simplify-rtx.c (simplify_binary_operation): Use the new macros
10608 to decide which simplifications are valid. Allow the following
10609 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10610 and (a - -b) to (a + b).
10611 (simplify_relational_operation): Use HONOR_NANS.
10612 * doc/tm.texi: Document the MODE_HAS_... macros.
10614 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10616 * combine.c (simplify_comparison): If simplifying a logical shift
10617 right and compare with constant, force the comparison to unsigned.
10619 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
10621 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10623 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10625 (alt_reg_names): Remove % for vrsave.
10627 2002-03-06 Richard Henderson <rth@redhat.com>
10629 PR optimization/5844
10630 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
10631 if used indicates we've already emitted one copy of an operand.
10632 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10633 (gen_split): Supply a non-null used.
10635 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10637 * reload1.c (reload): Unshare all rtl after reload is done.
10639 * simplify-rtx.c (simplify_plus_minus): Do not abort,
10640 but simply fail if the expression is too complex to simplify.
10641 (simplify_gen_binary): Handle simplify_plus_minus failures.
10643 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
10645 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10646 consistently call delete_trivially_dead_insns after CSE and GCSE;
10647 fix DFI_life dumping; do jump threading after liveness; do crossjumping
10648 after liveness2; update comment in last crossjumping.
10649 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10651 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
10653 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10654 after completing fast dead code elimination.
10656 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10659 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
10661 * version.c: Fix misplaced leading blanks on first line.
10663 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10665 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10667 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10669 * cfgcleanup.c (mentions_nonequal_regs): New function.
10670 (thread_jump): Use it.
10671 * toplev.c (rest_of_compilation): Run jump threading after
10674 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10676 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10679 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10681 * predict.c (estimate_bb_frequencies): Do not reload the
10682 frequencies from notes.
10684 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10686 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10687 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10689 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10690 delete_noop_moves): Return indeger.
10691 * flow.c (ndead): New variable.
10692 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10693 BB argument; update callers.
10694 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10695 (life_analysis): Do not call purge_all_dead_edges.
10696 (update_life_info): Return number of deleted insns; print statistics.
10697 (update_life_info_in_dirty_blocks): likewise.
10698 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10699 return number of insns deleted.
10701 * cse.c: Include timevar.h
10702 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10703 iterate until stabilizes; print statistics; return number of killed
10705 * Makefile.in: (cse.o): Add timevar.h dependency
10706 * rtl.h (delete_trivially_dead_insns): New.
10707 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10708 * toplev.c (rest_of_compilation): Update callers.
10710 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10711 (try_optimize_cfg): Do not update liveness.
10712 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10713 removal stabilizes; use delete_trivially_dead_insns.
10715 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10717 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10719 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10720 callbacks when processing assembly language.
10722 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10724 * pa.h (ASM_FILE_END): Define.
10725 * som.h (ASM_FILE_END): Delete.
10727 * pa.c (function_arg): Don't pass floats in general registers in
10728 indirect calls if TARGET_ELF32.
10730 2002-03-05 Richard Henderson <rth@redhat.com>
10732 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10734 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
10736 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10738 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10740 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10741 -r command line. Don't hide any symbols if not building
10744 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
10746 * cfg.c (dump_flow_info): Warn about profile mismatches.
10747 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10748 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10750 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10752 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10753 wide volatile memory by parts.
10755 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10757 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10760 2002-03-05 Richard Henderson <rth@redhat.com>
10762 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10764 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10766 * toplev.c (documented_lang_options): Document more
10767 language-specific options.
10768 * doc/invoke.texi (Warning Options): Correct documentation for
10769 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10770 * c-decl.c (c_decode_option): Use a table to handle warning options.
10772 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
10774 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10775 parameter to mmix_encode_section_info.
10776 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10777 relocatably. Always produce ELF, not mmo if linking relocatably.
10778 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10779 first is non-zero, don't add symbol prefix.
10780 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10781 prototype accordingly.
10783 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10785 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10787 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10789 * configure.in: Increase required makeinfo version to 4.1.
10790 * configure: Regenerate.
10792 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10794 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10797 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10799 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10800 * doc/invoke.texi: Fix @math uses.
10802 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10804 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10807 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10809 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10810 (powerpc-*-eabisimaltivec*): Same.
10812 * config/rs6000/t-ppcendian: New.
10814 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10816 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10817 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10818 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10820 2002-03-03 Richard Henderson <rth@redhat.com>
10822 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10824 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10826 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10827 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10828 tree.c, config/m68k/m68k.c:
10829 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10830 REAL_ARITHMETIC blocks unconditional. Delete some further
10831 #ifdef blocks predicated on REAL_ARITHMETIC.
10832 * flags.h, toplev.c: Delete remaining references to
10833 flag_pretend_float.
10835 * doc/invoke.texi: Remove documentation of -fpretend-float.
10836 * doc/tm.texi: Describe the various REAL_* macros as provided by
10837 real.h, not by the target configuration files.
10839 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10840 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10841 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10842 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10843 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10844 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10845 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10846 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10847 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10848 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10849 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10850 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10851 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10852 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10853 config/xtensa/xtensa.h:
10854 Do not define, undefine, or mention in comments any of
10855 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10856 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10857 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10858 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10859 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10860 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10861 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10862 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10863 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10865 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10867 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10868 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10869 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10870 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10871 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10872 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10874 * defaults.h (BITS_PER_WORD): Define.
10875 * doc/tm.texi (BITS_PER_WORD): Document default value.
10877 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10878 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10879 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10881 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10883 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10884 lieu of explicit sizeof/sizeof.
10885 * i386.c (override_options, ix86_init_mmx_sse_builtins,
10886 ix86_expand_builtin): Likewise.
10887 * mips.c (mips_add_gc_roots): Likewise.
10888 * mmix.c (mmix_output_condition): Likewise.
10889 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10890 altivec_init_builtins): Likewise.
10891 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10892 * cppexp.c (Nsuff, parse_number): Likewise.
10893 * cppinit.c (builtin_array_end): Likewise.
10894 * gcc.c (n_default_compilers, process_command): Likewise.
10895 * genpreds.c (output_predicate_decls): Likewise.
10896 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10897 * lcm.c (N_ENTITIES): Likewise.
10898 * stor-layout.c (set_sizetype): Likewise.
10900 2002-03-03 Richard Henderson <rth@redhat.com>
10902 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10903 for types or labels.
10905 2002-03-03 Richard Henderson <rth@redhat.com>
10907 * c-decl.c (start_decl): Initialized variables are not common.
10909 2002-03-02 Per Bothner <per@bothner.com>
10911 * gcc.c (option_map): Suport new --bootclasspath option.
10912 --CLASSPATH is now just an alias for --classpath.
10914 2002-03-02 Richard Henderson <rth@redhat.com>
10916 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10917 load if "internal" visibility.
10918 * doc/extend.texi: Document visibility meanings.
10920 2002-03-02 Richard Henderson <rth@redhat.com>
10922 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10923 to functions as well.
10925 2002-03-02 Richard Henderson <rth@redhat.com>
10927 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10928 (handle_visibility_attribute): Don't call assemble_visibility.
10929 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10930 without asmspec. Invoke assemble_alias when needed.
10931 * varasm.c (maybe_assemble_visibility): New.
10932 (assemble_start_function, assemble_variable, assemble_alias): Use it.
10934 2002-03-02 Richard Henderson <rth@redhat.com>
10936 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10937 invoke ENCODE_SECTION_INFO with first call flag.
10939 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10940 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10941 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10942 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10943 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10944 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10945 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10946 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10947 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10948 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10949 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10950 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10951 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10952 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10953 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10954 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10955 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10956 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10957 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10958 config/sh/sh.h, config/sparc/sparc.h,
10959 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10960 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10961 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10962 FIRST argument. As needed, examine it and do nothing.
10964 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10965 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10966 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10968 * config/arm/t-pe (pe.o): Add dependencies.
10970 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10972 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10973 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10974 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10975 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10976 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10977 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10978 * defaults.h (BITS_PER_UNIT): Define.
10979 * doc/tm.texi (BITS_PER_UNIT): Document default value.
10981 2002-03-02 Kazu Hirata <kazu@hxi.com>
10983 * config/h8300/h8300-protos.h: Add a prototype for
10984 compute_a_shift_length.
10985 * config/h8300/h8300.c (h8300_asm_insn_count): New.
10986 (compute_a_shift_length): Likewise.
10987 (h8300_adjust_insn_length): Do not adjust insn length of shift
10989 * config/h8300/h8300.md (anonymous shift patterns): Use
10990 compute_a_shift_length.
10992 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10994 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10995 trunc_int_for_mode.
10997 * emit-rtl.c (offset_address): Call update_temp_slot_address.
10999 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11001 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
11002 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
11003 * flags.h (flag_zero_initialized_in_bss): Declare.
11004 * toplev.c (flag_zero_initialized_in_bss): New flag.
11005 (lang_independent_options): Add flag_zero_initialized_in_bss.
11006 * tree.c (initializer_zerop): New function.
11007 * tree.h (initializer_zerop): Declare.
11008 * varasm.c (assemble_variable): If we can emit bss, put zero
11009 initializers in the bss section.
11011 2002-03-02 Alan Modra <amodra@bigpond.net.au>
11013 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
11014 like more than one symbol per .weak directive.
11016 2002-03-01 Richard Henderson <rth@redhat.com>
11018 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
11019 adjust argument_pointer by pretend_args_size.
11020 (ia64_va_start): Adjust va_start address by -pretend_args_size.
11022 2002-03-01 Kazu Hirata <kazu@hxi.com>
11024 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
11026 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
11028 * toplev.c (rest_of_compilation): Delete dead jumptables before
11030 * flow.c (delete_dead_jumptables): Make global.
11031 * rtl.h (delete_dead_jumptables): Declare.
11033 2002-03-01 David Edelsohn <edelsohn@gnu.org>
11035 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
11036 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
11037 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
11039 2002-03-01 Kazu Hirata <kazu@hxi.com>
11041 * config/h8300/h8300-protos.h: Fix formatting.
11042 * config/h8300/h8300.c: Likewise.
11043 * config/h8300/h8300.h: Likewise.
11045 2002-03-01 Kazu Hirata <kazu@hxi.com>
11047 * config/h8300/h8300.c (print_operand): Support 16-bit
11048 constant addresses.
11049 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
11051 2002-02-28 Richard Henderson <rth@redhat.com>
11053 * expmed.c (store_bit_field): Prevent generation of CONCATs;
11054 pun complex values as integers; use gen_lowpart instead of
11056 (extract_bit_field): Likewise.
11058 2002-03-01 Alan Modra <amodra@bigpond.net.au>
11059 David Edelsohn <edelsohn@gnu.org>
11061 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11062 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11063 (SUPPORTS_WEAK): Likewise.
11064 * output.h (add_weak): Add tree param.
11065 * varasm.c (add_weak): Likewise. Save decl.
11066 (struct weak_syms): Add decl field.
11067 (mark_weak_decls): New function.
11068 (init_varasm_once): ggc_add_root mark_weak_decls.
11069 (assemble_start_function): Use ASM_WEAKEN_DECL.
11070 (assemble_variable): Likewise.
11071 (assemble_alias): Likewise.
11072 (declare_weak): Pass decl to add_weak.
11073 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11074 (remove_from_pending_weak_list): Declare and define for
11076 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11077 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11078 * defaults.h (SUPPORTS_WEAK): Likewise.
11079 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11080 .weak for code sym. Do emit .size for descriptor sym.
11081 (ASM_DECLARE_FUNCTION_SIZE): Define.
11082 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11083 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
11084 .lglobl unless TARGET_XCOFF. Formatting fixes.
11085 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11086 .weak for code sym.
11087 (HANDLE_PRAGMA_WEAK): Remove.
11088 (ASM_WEAKEN_LABEL): Remove.
11089 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11091 2002-03-01 Jason Merrill <jason@redhat.com>
11093 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11094 (TARGET_EXPR_CLEANUP): New macro.
11096 2002-02-28 Steve Ellcey <sje@cup.hp.com>
11098 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11099 to take ptr_extend into account as third type of extension.
11100 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11101 fields used by SUBREG_PROMOTED_UNSIGNED_P.
11102 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11103 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11104 * calls.c (precompute_arguments): Use new macro.
11105 (expand_call): Ditto.
11106 * combine.c (nonzero_bits): Ditto.
11107 (record_promoted_value): Ditto.
11108 * expr.c (store_expr): Ditto.
11109 (expand_expr): Ditto.
11110 * function.c (assign_parms): Ditto.
11112 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
11114 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11115 override -shared and -shared-libgcc.
11117 2002-02-28 David O'Brien <obrien@FreeBSD.org>
11119 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11121 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
11124 2002-02-28 Richard Henderson <rth@redhat.com>
11126 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11127 4 cycle latency from MM producers.
11128 (ia64_internal_sched_reorder): Likewise with pipeline flush.
11130 2002-02-28 Jakub Jelinek <jakub@redhat.com>
11132 * mklibgcc.in: Don't use GNU make extension.
11134 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11136 * c-parse.in (STATIC): New terminal.
11137 (scspec): New non-terminal. Update productions accordingly.
11138 (program): Remove bogus ifc / end ifc.
11139 (array_declarator): Simplify production using STATIC.
11141 2002-02-28 Jim Meyering <meyering@lucent.com>
11143 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11144 \a still means TARGET_BELL.
11146 2002-02-28 Richard Henderson <rth@redhat.com>
11148 * haifa-sched.c (sched_emit_insn): New.
11149 (schedule_block): Use last_scheduled_insn to track last insn.
11150 * sched-int.h (sched_emit_insn): Prototype.
11151 * config/ia64/ia64.c (last_issued): Remove.
11152 (ia64_variable_issue): Don't set it.
11153 (nop_cycles_until): Use sched_emit_insn.
11155 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
11157 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11158 extended constants.
11160 2002-02-28 Kazu Hirata <kazu@hxi.com>
11162 * config/h8300/h8300.c: Fix formatting.
11163 * config/h8300/h8300.h: Likewise.
11165 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
11167 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11168 which may overwrite the high byte of the frame pointer.
11170 2002-02-28 Bo Thorsen <bo@suse.de>
11172 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11173 (STARTFILE_SPEC): Add 64 bit files.
11174 (ENDFILE_SPEC): Likewise.
11176 2002-02-28 Jason Merrill <jason@redhat.com>
11178 * c-decl.c (finish_function): Only warn about missing return
11179 statement with -Wreturn-type.
11181 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
11183 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11185 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11186 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11188 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
11190 * basic-block.h (BB_REACHABLE): Renumber.
11191 (BB_DIRTY, BB_NEW): New flags.
11192 (clear_bb_flags): Declare.
11193 (update_life_info_in_dirty_blocks): Declare.
11194 * cfg.c (clear_bb_flags): New function.
11195 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11196 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11197 reorder_insns, emit_insn_after): Mark block as dirty.
11198 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11199 (update_life_info_in_dirty_blocks): New function.
11200 * recog.c (apply_change_group): Dirtify block.
11202 * cse.c (cse_insn): Reorder emitting of jump insn to keep
11204 * gcse.c (delete_null_pointer_checks): Likewise.
11206 * toplev.c (dump_file_index): Move cse2 after bp,
11208 (dump_file_info): Similary.
11209 (rest_of_compilation): Avoid most of CFG rebuilds;
11210 do first if converision after null pointer checks, do cse2
11211 after branch prediction; avoid full liveness rebuild after
11212 initializing subregs.
11213 * invoke.texi (-d options): Document -du, renumber.
11215 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11216 (notice_new_block): Do not set BB_UPDATE_LIFE.
11217 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11218 merge_blocks_move_successor_nojumps, merge_blocks,
11219 try_crossjump_to_edge): Likewise.
11220 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11221 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11222 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11223 (merge_of_block): Do not use life_data_ok.
11224 (find_if_case_1): Do not use SET_UPDATE_LIFE.
11225 (if_convert): Use BB_DIRTY mechanizm to update life.
11226 * lcm.c (optimize_mode_switching): Update
11227 update_life_info_in_dirty_blocks
11229 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11231 * Makefile.in (integrate.o): Update.
11232 * c-decl.c (copy_lang_decl): Rename.
11233 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11234 * integrate.c: Include langhooks.h.
11235 (copy_decl_for_inlining): Update to use langhook.
11236 * langhooks-def.h (lhd_do_nothing_t,
11237 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11238 (LANG_HOOKS_INITIALIZER): Update.
11239 * langhooks.c (lhd_do_nothing_t): New.
11240 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11241 * tree.h (copy_lang_decl): Remove.
11243 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11245 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
11247 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11248 POST_DEC, and POST_MODIFY.
11250 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11252 * c-typeck.c (digest_init): Remove unused parameter; all
11255 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
11257 * expmed.c (expand_shift): Correctly test for low part of a
11260 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
11262 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11263 insn UIDs with insn addresses.
11265 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11267 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11268 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11269 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11270 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11271 gcc.c, toplev.c: Delete code implementing -traditional mode.
11273 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11274 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11275 Document removal of -traditional mode for compilation, and
11276 remove documentation only relevant to that mode.
11278 * config/nextstep.h, config/ptx4.h, config/svr4.h,
11279 config/convex/convex.h, config/d30v/d30v.h,
11280 config/i386/dgux.h, config/i386/osf1elf.h,
11281 config/i386/osfelf.h, config/i386/osfrose.h,
11282 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11283 config/m68k/hp310.h, config/m88k/dgux.h,
11284 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11285 config/m88k/m88k.h, config/m88k/openbsd.h,
11286 config/mips/abi64.h, config/mips/osfrose.h,
11287 config/mips/svr4-5.h, config/mips/svr4-t.h,
11288 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11289 config/stormy16/stormy16.h: Remove all references to
11290 -traditional from target specs. Delete all mention of the
11291 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
11292 delete a couple of commented-out definitions of
11293 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11296 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11297 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11299 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11301 * mklibgcc.in: Don't use \n in a line subject to
11302 interpretation by echo.
11304 2002-02-27 Graham Stott <grahams@redhat.com>
11306 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11309 * loop.c (prescan_loop): Handle PARALLEL.
11311 * unroll.c (loop_iterations): Return 0 if the add_val for
11314 * final.c (output_operand_lossage): Constify PFX_STR.
11316 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11318 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
11320 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11321 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11323 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
11325 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11327 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
11329 * cpplex.c (_cpp_lex_token): Handle directives in macro
11331 * cpplib.c (_cpp_handle_directive): Save and restore state
11332 if parsing macro args when entering a directive.
11333 * cppmacro.c (collect_args): No need to handle directives
11334 in macro arguments.
11335 (enter_macro_context, replace_args): Use the original macro
11336 definition in case it was redefined whilst collecting arguments.
11338 * cpp.texi: Update.
11340 2002-02-26 David Edelsohn <edelsohn@gnu.org>
11342 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11343 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11344 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11346 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11347 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11348 (load_toc_v4_PIC_2): Same.
11350 2002-02-26 Alan Modra <amodra@bigpond.net.au>
11352 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11354 2002-02-26 Richard Henderson <rth@redhat.com>
11356 * config/alpha/alpha.md (ashldi_se): Re-enable.
11358 2002-02-26 Richard Henderson <rth@redhat.com>
11360 * config/alpha/alpha.c (alpha_encode_section_info): Examine
11361 MODULE_LOCAL_P; improve commentary.
11363 2002-02-26 Zack Weinberg <zack@codesourcery.com>
11365 * doc/cpp.texi: Clarify documentation of relationship between
11366 #line and #include.
11368 2002-02-26 Kazu Hirata <kazu@hxi.com>
11370 * config/h8300/h8300-protos.h: Update the prototype for
11371 compute_logical_op_length. Add the prototype for
11372 compute_logical_op_cc.
11373 * config/h8300/h8300.c (compute_logical_op_length): Figure out
11374 code from operands.
11375 (compute_logical_op_cc): New.
11376 * config/h8300/h8300.md: Combine all the logical op patterns
11377 in HImode and SImode. Use compute_logical_op_cc.
11379 2002-02-26 Kelley Cook <kelleycook@comcast.net>
11381 * config/i386/i386.c (print_operand): Don't append ATT-style
11382 length suffixs to x87 opcodes when in Intel mode.
11384 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
11386 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11387 (init_emit_once): Update calls.
11388 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11389 (init_syntax_once): Prototype.
11391 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11393 * pa-linux.h (LIB_SPEC): Update definition.
11394 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11396 2002-02-26 Richard Henderson <rth@redhat.com>
11398 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11399 if we emitted a stop bit.
11401 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11403 * configure.in (libgcc_visibility): Substitute.
11404 * configure: Rebuilt.
11405 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11406 defined symbols .hidden.
11408 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11410 * attribs.c (c_common_attribute_table): Add visibility.
11411 (handle_visibility_attribute): New function.
11412 * varasm.c (assemble_visibility): New function.
11413 * output.h (assemble_visibility): Add prototype.
11414 * tree.h (MODULE_LOCAL_P): Define.
11415 * crtstuff.c (__dso_handle): Use visibility attribute.
11416 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11417 for MODULE_LOCAL_P symbols too.
11418 * config/ia64/ia64.c (ia64_encode_section_info): Handle
11419 MODULE_LOCAL_P symbols the same way as local symbols.
11420 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11421 into .sdata/.sbss by the user.
11422 * doc/extend.texi (Function Attributes): Document visibility
11425 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11428 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11429 STRING_CST initializer spanning the whole variable without
11431 If expand_expr returned MEM, don't use it.
11433 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
11435 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11436 generate a die for the lexical block.
11438 2002-02-26 Kazu Hirata <kazu@hxi.com>
11440 * config/h8300/h8300-protos.h: Add a prototype for
11441 compute_logical_op_length.
11442 * config/h8300/h8300.c (compute_logical_op_length): New.
11443 * config/h8300/h8300.md (anonymous logical patterns): Use
11444 compute_logical_op_length for length.
11446 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11448 * dwarf2out.c (modified_type_die): Do not call type_main_variant
11450 (gen_type_die): Same.
11452 * attribs.c (handle_vector_size_attribute): Set debug information.
11454 2002-02-26 Daniel Egger <degger@fhm.edu>
11456 * config/rs6000/rs6000.md: Swap define_insn attributes to
11457 fix incorrect generation of merge high instructions instead
11460 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11462 * c-typeck.c (really_start_incremental_init): Use
11463 bitsize_zero_node for vectors.
11465 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11467 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11468 ("*set_vrsave_internal"): Same.
11470 2002-02-25 Richard Henderson <rth@redhat.com>
11472 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11473 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
11475 2002-02-25 Jakub Jelinek <jakub@redhat.com>
11478 * config/i386/i386.c (ix86_return_pops_args): Only pop
11479 fake structure return argument if it was passed on the stack.
11481 2002-02-25 Jason Merrill <jason@redhat.com>
11483 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11486 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11488 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11489 link with shared_name only.
11490 * doc/invoke.texi (Link Options): Document new behavior.
11492 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11494 * c-typeck.c (push_init_level): Handle vectors.
11496 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11498 * config/sparc/sparc.c (const64_high_operand): Zero-extend
11499 operands of SPARC_SETHI_P.
11500 (input_operand): Likewise.
11501 (sparc_emit_set_const32): Likewise.
11502 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11503 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11504 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
11505 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11506 (movdi_insn_sp64_vis): Likewise.
11507 (movdi split, movdf split): Use SETHI32.
11508 * doc/md.texi: Document SPARC constraints L, M and N.
11510 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11512 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11513 ("*set_vrsave_internal"): use mfspr for Darwin.
11515 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11516 gen_get_vrsave_internal.
11518 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11520 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11522 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
11524 * cpplex.c (cpp_interpret_charconst): Get signedness or
11525 otherwise of wide character constants correct.
11526 * cppexp.c (lex): Get signedness of wide charconsts correct.
11528 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11530 * optabs.c (widen_operand): Only call convert_modes for
11531 promoted SUBREG if signedness matches.
11532 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11534 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11536 * cpplib.c (glue_header_name): Use local buffer to build up
11539 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11541 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11543 2002-02-23 Kazu Hirata <kazu@hxi.com>
11545 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11546 H8/300[HS] separately.
11547 * config/h8300/h8300.md: Remove the early clobber constraint
11548 from bit field patterns.
11550 2002-02-23 Kazu Hirata <kazu@hxi.com>
11552 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11554 (mulhisi3): Likewise.
11555 (umulqisi3): Likewise.
11556 (umulhisi3): Likewise.
11558 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11560 * cppinit.c (output_deps): Correct test for stdout output.
11561 (init_dependency_output): Cure warning.
11563 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11565 * expr.c (store_expr): When converting expression to promoted
11566 equivalent type, allow using SUBREG_REG of TARGET as the target
11567 of the expansion of EXP.
11568 * loop.c (basic_induction_var, case SUBREG): Always look inside.
11569 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11570 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11571 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11572 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11574 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
11576 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11577 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11578 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11580 2002-02-23 Jakub Jelinek <jakub@redhat.com>
11582 PR optimization/5747
11583 * loop.c (scan_loop): Update reg info if move_movables created new
11586 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11588 * gcc.c (init_gcc_spec): Revert last change.
11590 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11592 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11593 gpc_reg_operand constraint.
11595 2002-02-23 Alan Modra <amodra@bigpond.net.au>
11597 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11598 Simplify comparison of `low'.
11599 (add_operand): Fix formatting.
11600 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11601 (mask_operand): Disallow mask to wrap in 64-bit mode.
11602 (rs6000_stack_info): Remove redundant test setting push_p.
11603 (output_toc): Fix formatting.
11604 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11605 cc_reg_not_cr0_operand constraint.
11606 (booldi3, boolcdi3 splitters): Same.
11608 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
11610 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11612 2002-02-22 David Edelsohn <edelsohn@gnu.org>
11614 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11615 gcc invoked with -shared-libgcc.
11617 2002-02-22 Jakub Jelinek <jakub@redhat.com>
11620 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11621 decl if any of elements was TREE_USED.
11623 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
11625 * config/sparc/sol2.h: Don't include sys/mman.h.
11626 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11627 (arith_4096_operand): Don't throw high bits away.
11628 (const64_operand): Take sign extension of CONST_INTs into account.
11629 (const64_high_operand, sparc_emit_set_const32): Likewise.
11630 (GEN_HIGHINT64): Likewise.
11631 (sparc_emit_set_const64_quick1): Likewise.
11632 (const64_is_2insns): Likewise.
11633 (print_operand): Use trunc_int_for_mode for sign extension.
11634 * config/sparc/sparc.h (SMALL_INT32): Likewise.
11635 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11636 chars. Assume CONST_INT is already properly sign-extended.
11637 (movdi split): Sign-extend each SImode part.
11638 (andsi3 split): Don't mask high bits off, so that result
11639 remains properly sign-extend.
11640 (iorsi3 split): Likewise.
11641 (xorsi3 split): Likewise.
11643 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
11645 * fold-const.c (fold): Fix typo in comments.
11647 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11649 * Makefile.in (langhooks.o): Update dependencies.
11651 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11653 * langhooks.c: Include flags.h.
11655 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
11657 * testsuite/gcc.dg/attr-alwaysinline.c: New.
11659 * c-common.c (c_common_post_options): Set inline trees by
11662 * doc/extend.texi (Function Attributes): Document always_inline
11664 Update documentation about inlining when not optimizing.
11666 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11668 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11669 unless DECL_ALWAYS_INLINE.
11671 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11672 unless DECL_ALWAYS_INLINE.
11673 (c_disregard_inline_limits): Disregard if always_inline set.
11675 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11676 Disregard if always_inline set.
11677 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11678 unless DECL_ALWAYS_INLINE.
11680 * attribs.c (handle_always_inline_attribute): New.
11681 (c_common_attribute_table): Add always_inline.
11683 * config/rs6000/altivec.h: Add prototypes for builtins
11684 requiring the always_inline attribute.
11686 2002-02-21 Eric Christopher <echristo@redhat.com>
11688 * expmed.c (store_bit_field): Try to simplify the subreg
11689 before generating a new one when when the mode size of
11690 value is less than maxmode.
11692 2002-02-21 Richard Henderson <rth@redhat.com>
11694 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11695 than gen_rtx_PLUS to form the sum.
11696 * explow.c (force_reg): Rearrange to not allocate new pseudo
11697 when force_operand returns a register.
11698 * expr.c (expand_assignment): Allow offset_rtx expansion to
11699 return a sum. Do not force addresses into registers.
11700 (expand_expr): Likewise.
11701 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11702 to canonicalize arithmetic that didn't simpify.
11703 (simplify_plus_minus): New argument force; update
11704 all callers. Don't split CONST unless we can do something with it,
11705 and wouldn't lose the constness of the operands.
11707 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11708 that we generated earlier.
11710 2002-02-21 Tom Tromey <tromey@redhat.com>
11712 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11713 (output_line_info): Use constant `1', with a long explanatory
11715 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11717 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11719 * jump.c (redirect_jump): If old label has no UID, don't try to
11722 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11724 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11725 If input is constant, do shifts at compile time.
11727 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11729 * doc/extend.texi: Fix some more overfull hboxes.
11731 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11733 PR optimization/4994
11734 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11737 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11740 * expr.h (expand_and): Add mode argument.
11741 * expmed.c (expand_and): Add mode argument.
11742 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11743 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11744 * except.c (expand_builtin_extract_return_addr): Likewise.
11745 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11746 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11747 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11748 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11749 * config/c4x/c4x.md: Use GEN_INT (x) instead of
11750 gen_rtx (CONST_INT, VOIDmode, x).
11752 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11755 * stmt.c (warn_if_unused_value): Move side effects test once more.
11757 2002-02-20 Torbjorn Granlund <tege@swox.com>
11759 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11760 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11762 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
11764 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11765 SUBREG or ZERO_EXTEND.
11767 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
11769 * sh.h (current_function_anonymous_args): Remove.
11770 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11771 of current_function_varargs and current_function_stdarg is set.
11772 * sh.c (sh_expand_prologue): Check current_function_varargs /
11773 current_function_stdarg / TARGET_SH5 instead of
11774 current_function_anonymous_args.
11776 * sh64.h (TARGET_VERSION): Define.
11778 2002-02-20 David Edelsohn <edelsohn@gnu.org>
11780 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11781 VRSAVE_REGNO on TARGET_ALTIVEC.
11783 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11785 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11786 bits of SImode const_int.
11787 (includes_rshift_p): Likewise.
11788 (print_operand): Call mask_operand and mask64_operand with correct
11790 (rs6000_output_function_epilogue): Pad traceback table to word.
11791 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11792 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11793 mask64_operand with correct mode.
11794 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11796 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11799 * varasm.c (get_pool_constant_mark): New.
11800 * rtl.h (get_pool_constant_mark): Add prototype.
11801 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11802 be represented if it has not been output.
11804 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11806 * combine.c (do_SUBST): Sanity check substitutions of
11807 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11808 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11809 CONST_INT into its operand.
11810 (known_cond): Likewise, for ZERO_EXTEND.
11811 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11812 allow for simplification of wide modes. Reject CONST_INTs in
11813 ZERO_EXTEND when their actual mode is not given.
11815 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11817 * c-decl.c (pushdecl): If no global declaration is found for an
11818 extern declaration in block scope, try a limbo one.
11820 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11823 * c-common.c (pointer_int_sum): Moved from...
11824 * c-typeck.c (pointer_int_sum): ...here.
11825 * c-common.h (pointer_int_sum): Add prototype.
11827 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11830 * c-decl.c (duplicate_decls): Return 0 if issued error about
11833 2002-02-20 Roger Sayle <roger@eyesopen.com>
11834 Jakub Jelinek <jakub@redhat.com>
11837 * tree.c (host_integerp): Ensure that the constant integer is
11838 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11839 when pos is zero or non-zero respectively. Clarify comment.
11840 * c-format.c (check_format_info_recurse): Fix host_integerp
11841 usage; the pos argument should be zero when assigning to a
11842 signed HOST_WIDE_INT.
11844 2002-02-20 Richard Henderson <rth@redhat.com>
11846 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11847 of the operand, rather than assuming TImode.
11848 (ix86_expand_binop_builtin): Cope with commutative patterns
11849 using nonimmediate_operand for both operands.
11850 (ix86_expand_timode_binop_builtin): Likewise.
11851 (ix86_expand_store_builtin): Validate operand 1.
11852 (ix86_expand_unop1_builtin): Likewise.
11854 2002-02-20 Philip Blundell <philb@gnu.org>
11857 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11859 2002-02-20 Richard Henderson <rth@redhat.com>
11862 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11864 2002-02-20 Tom Tromey <tromey@redhat.com>
11866 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11867 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11868 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11869 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11870 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11873 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11875 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11876 for (const_int 0) in X not just INTVAL.
11878 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
11880 * doc/extend.texi: Avoid or reduce overfull hboxes.
11882 2002-02-20 Diego Novillo <dnovillo@redhat.com>
11884 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11885 operations if the field does not start at a mode boundary.
11887 2001-02-20 Joel Sherrill <joel@OARcorp.com>
11889 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11890 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11891 Also done for -Acpu and -Amachine.
11893 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
11895 * cppinit.c (init_dependency_output): Take deps output file
11896 from -o if none given with -MF. Suppress normal output.
11897 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11898 * doc/cpp.texi, doc/invoke.texi: Update.
11900 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11902 * toplev.c (output_quoted_string): Write unprintable
11903 characters with octal escapes.
11905 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11907 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11908 really_call_used[VRSAVE_REGNO] if not Altivec.
11910 2002-02-19 Alan Modra <amodra@bigpond.net.au>
11912 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11914 (constant_pool_expr_1): Fix formatting.
11915 (rs6000_legitimize_reload_address): Likewise.
11917 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11919 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11920 now that we have one.
11922 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11924 * tree.h (struct tree_common): Remove aux. Add unused_0 at
11925 end of first block of bitfields (which was only seven bits);
11926 rename dummy to unused_1; remove comment which is no longer true.
11928 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11930 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11932 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11935 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11939 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11940 arm_is_longcall_p rather than inspecting call-type cookie
11942 (call_value_insn) [TARGET_THUMB]: Likewise.
11944 2002-02-19 Graham Stott <grahams@redhat.com>
11946 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11948 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11950 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11951 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11952 (FP_SAVE_INLINE): Delete.
11954 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11955 * config/rs6000/eabi.asm: Remove ABI save restore routines.
11956 * config/rs6000/t-ppccomm: Build crtsavres.o.
11957 * config/rs6000/crtsavres.asm: New file.
11959 2002-02-19 Philip Blundell <philb@gnu.org>
11961 * config/arm/arm.c (use_return_insn): Don't reject interrupt
11963 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11964 (output_return_instruction): Allow interrupt functions to return with
11965 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
11966 (arm_expand_prologue): Subtract 4 before stacking LR in an
11967 interrupt function.
11969 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11971 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11972 decl, not just FUNCTION_DECL.
11973 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11974 (arm_assemble_integer): Likewise.
11975 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11978 2002-02-19 matthew green <mrg@eterna.com.au>
11980 * config.gcc (sparc-*-netbsdelf*): Enable target.
11981 (sparc64-*-netbsd*): New target.
11982 * config/sparc/netbsd-elf.h: New file.
11983 * config/sparc/t-netbsd64: New file.
11985 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11987 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11989 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
11991 * doc/invoke.texi: explicitly list the style guidelines that
11992 -Weffc++ checks for.
11994 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
11996 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11998 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
12001 * gcc.c (cpp_unique_options): Treat -o as indicating object file
12002 only if not -E. If -E, pass -o through to the preprocessor.
12004 2002-02-19 Kazu Hirata <kazu@hxi.com>
12006 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
12007 register number with an appropriate macro.
12009 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12011 * doc/rtl.texi (Constants): Close @code tag.
12013 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
12015 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
12016 ("mmx_uavgv4hi3"): Same.
12017 ("pmulhrwv4hi3"): Same.
12019 * tree-inline.c (walk_tree): Handle vectors.
12021 * c-common.c (constant_expression_warning): Handle vectors.
12022 (overflow_warning): Same.
12024 * sched-deps.c (sched_analyze_2): Handle vectors.
12026 * rtlanal.c (rtx_unstable_p): Handle vectors.
12027 (rtx_varies_p): Same.
12028 (count_occurrences): Same.
12029 (regs_set_between_p): Same.
12030 (modified_between_p): Same.
12031 (modified_in_p): Same.
12032 (volatile_insn_p): Same.
12033 (volatile_refs_p): Same.
12034 (side_effects_p): Same.
12035 (may_trap_p): Same.
12036 (inequality_comparisons_p): Same.
12037 (replace_regs): Same.
12038 (computed_jump_p_1): Same.
12040 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
12042 (inner_mode_array): New.
12043 (copy_rtx): Handle vectors.
12044 (copy_most_rtx): Same.
12045 (rtx_equal_p): Same.
12046 (get_mode_alignment): Adjust for vectors.
12048 * resource.c (mark_referenced_resources): Handle vectors.
12049 (mark_set_resources): Same.
12051 * reload1.c (eliminate_regs): Handle vectors.
12052 (elimination_effects): Same.
12053 (scan_paradoxical_subregs): Same.
12055 * reload.c (subst_reg_equivs): Handle vectors.
12057 * regrename.c (scan_rtx): Handle vectors.
12059 * regclass.c (reg_scan_mark_refs): Handle vectors.
12061 * recog.c (find_single_use_1): Handle vectors.
12063 * local-alloc.c (equiv_init_varies_p): Handle vectors.
12064 (contains_replace_regs): Same.
12065 (memref_referenced_p): Same.
12067 * integrate.c (copy_rtx_and_substitute): Handle vectors.
12068 (subst_constants): Same.
12070 * genattrtab.c (attr_copy_rtx): Handle vectors.
12071 (encode_units_mask): Same.
12072 (clear_struct_flag): Same.
12073 (count_sub_rtxs): Same.
12075 * gcse.c (want_to_gcse_p): Handle vectors.
12076 (oprs_unchanged_p): Same.
12077 (hash_expr_1): Same.
12078 (oprs_not_set_p): Same.
12079 (expr_killed_p): Same.
12080 (compute_transp): Same.
12081 (store_ops_ok): Same.
12083 * function.c (purge_addressof_1): Do not allow paradoxical subregs
12085 (fixup_var_refs_1): Same.
12086 (instantiate_virtual_regs_1): Same.
12088 * fold-const.c (operand_equal_p): Handle vectors.
12090 (rtl_expr_nonnegative_p): Same.
12092 * flow.c (mark_used_regs): Handle vectors.
12094 * df.c (df_uses_record): Handle vectors.
12096 * cselib.c (cselib_subst_to_values): Handle vectors.
12097 (cselib_mem_conflict_p): Same.
12100 * cse.c (canon_reg): Handle vectors.
12102 (cse_process_notes): Same.
12103 (count_reg_usage): Same.
12104 (canon_hash): Same.
12106 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12108 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12110 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12111 (gen_rtx): Handle CONST_VECTOR.
12112 (gen_const_vector_0): New.
12113 (copy_rtx_if_shared): CONST_VECTORs can be shared.
12114 (reset_used_flags): Same.
12115 (copy_insn_1): Same.
12116 (initializer_constant_valid_p): Handle VECTOR_CST.
12118 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12120 * doc/rtl.texi (Constants): Document const_vector.
12121 (CONST0_RTX): Update for vectors.
12122 (RTL sharing): Same.
12124 * print-tree.c (print_node): Add case for VECTOR_CST.
12126 * tree.h (TREE_VECTOR_CST_ELTS): New.
12127 (struct tree_vector): New.
12128 (union tree_node): Add vector node.
12129 (build_vector): Add prototype.
12131 * tree.def (VECTOR_CST): New.
12133 * tree.c (build_vector): New.
12135 * expmed.c (make_tree): Handle CONST_VECTOR.
12137 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12138 (CONST_VECTOR_ELT): New.
12139 (CONST_VECTOR_NUNITS): New.
12141 * machmode.h (GET_MODE_INNER): New.
12142 (DEF_MACHMODE): Accept 8th arg.
12144 * machmode.def: Add 8th argument for vector inner mode.
12145 Add inner vector modes for vectors.
12147 * rtl.def (VEC_CONST): Remove.
12148 (CONST_VECTOR): New.
12150 * expr.c (clear_storage): Allow vectors.
12151 (is_zeros_p): Handle VECTOR_CST.
12153 * varasm.c (output_constant_pool): Handle vectors.
12154 (rtx_const): Add veclo and vechi fields.
12155 (kind): Add RTX_VECTOR.
12156 (decode_rtx_const): Add case for vector.
12158 * config/rs6000/rs6000-protos.h: Add zero_constant.
12160 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12161 constants. Force easy vector constants into memory.
12162 (easy_vector_constant): New.
12163 (emit_easy_vector_constant): New.
12164 (rs6000_legitimize_reload_address): Do not generate bad reloads on
12167 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12169 ("altivec_lvxl"): Same.
12170 (altivec_lvebx): Same.
12171 (altivec_lvehx): Same.
12172 (altivec_lvewx): Same.
12173 ("*movv4si_const0"): New.
12174 ("*movv4sf_const0"): New.
12175 ("*movv8hi_const0"): New.
12176 ("*movv16qi_const0"): New.
12178 2002-02-18 Kazu Hirata <kazu@hxi.com>
12180 * config/h8300/h8300.c (notice_update_cc): Use
12183 2002-02-18 Kazu Hirata <kazu@hxi.com>
12185 * config/h8300/h8300.md (divmod patterns): Change the
12186 constraints for operands[1] to register_operand.
12188 2002-02-18 Kazu Hirata <kazu@hxi.com>
12190 * config/h8300/h8300-protos.h: Remove the prototype for
12192 * config/h8300/h8300.c (p_operand): Remove.
12193 * config/h8300/h8300.md: Replace p_operand with
12196 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12198 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12200 (output_return_instruction): Allow use of LDR to unstack
12201 return addresss even for interrupt handlers or when
12202 interworking. If compiling for ARMv5, use interworking-safe
12203 return instructions by default. Remove duplicated code and
12204 lengthy "strcat" sequences.
12206 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12208 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12209 (LINK_EH_SPEC): Define.
12210 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12212 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
12214 * config/s390/s390.c (s390_emit_prologue): Do not set the
12215 frame_related flag for call-clobbered registers.
12217 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
12219 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12220 (construct_container): Fix handling of SSE operands.
12221 (ix86_expand_builtin): Fix handling of 64bit pointers.
12222 (mmx_maskmovq_rex): New pattern.
12224 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
12226 * regrename.c (kill_set_value): Handle subregs properly.
12228 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
12230 * objc/objc-act.c (handle_impent): Remove leading '*'
12231 from objc_class_name.
12233 2002-02-17 Richard Henderson <rth@redhat.com>
12235 * config/alpha/alpha.c (some_small_symbolic_operand,
12236 some_small_symbolic_operand_1, split_small_symbolic_operand,
12237 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12238 Handle small SYMBOL_REFs anywhere, not just inside memories.
12239 * config/alpha/alpha-protos.h: Update.
12240 * config/alpha/alpha.h (PREDICATE_CODES): Update.
12241 * config/alpha/alpha.md (small symbolic operand splitter): Update.
12243 2002-02-17 Roland McGrath <roland@frob.com>
12245 * config.gcc (powerpc-*-gnu-gnualtivec*,
12246 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12247 * config/rs6000/gnu.h: New file.
12248 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12249 Grok "gnu" in rs6000_abi_name.
12250 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12251 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12252 Grok -mcall-gnu analogous to -mcall-linux et al.
12253 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12254 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12255 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12257 2002-02-17 Jakub Jelinek <jakub@redhat.com>
12260 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12263 2002-02-17 Philipp Thomas <pthomas@suse.de>
12265 * config/cris/cris.h: Undefine STARTFILE_SPEC and
12266 ENDFILE_SPEC before (re)defining them.
12268 2002-02-17 Kazu Hirata <kazu@hxi.com>
12270 * config/h8300/h8300.c: Fix formatting.
12271 * config/h8300/h8300.h: Likewise.
12273 2002-02-17 Philipp Thomas <pthomas@suse.de>
12275 * doc/tm.texi: Explain why empty strings should not be
12276 marked for translation.
12278 2002-02-17 Philipp Thomas <pthomas@suse.de>
12280 * final.c (output_operand_lossage): Changed to accept
12281 printf style arguments. Change calls where necessary.
12282 * output.h (output_operand_lossage): Change declaration
12283 accordingly. Update copyright.
12284 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12285 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12286 Update copyright date where necessary.
12288 * config/i386/i386.c (print_operand): Likewise. Remove use of
12291 * config/cris/cris.c (cris_operand_lossage): Likewise.
12292 Rename parameter so that exgettext recognizes it as
12293 translatable message.
12294 (LOSE_AND_RETURN): Rename parameter to msgid.
12296 2002-02-17 Kazu Hirata <kazu@hxi.com>
12298 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12299 hard coded register number with an appropriate macro.
12300 (HARD_REGNO_MODE_OK): Likewise.
12301 (ARG_POINTER_REGNUM): Likewise.
12302 (STATIC_CHAIN_REGNUM): Likewise.
12303 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12304 * config/h8300/h8300.md (define_constants): Define more
12307 2002-02-17 Philipp Thomas <pthomas@suse.de>
12309 * config/i386/i386.h: Don't mark empty strings for translation.
12311 2002-02-16 H.J. Lu <hjl@gnu.org>
12313 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12315 2002-02-16 Zack Weinberg <zack@codesourcery.com>
12317 * cppinit.c (merge_include_chains): Check for brack being
12318 NULL before attempting to merge it with qtail.
12320 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12322 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12325 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12327 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12329 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12331 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12332 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12333 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12335 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12337 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12338 now only if !TARGET_FIX.
12339 (*movsi_nt_vms_fix): New pattern.
12341 2002-02-16 Douglas B Rupp <rupp@gnat.com>
12343 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12344 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12345 (alpha_sa_mask, alpha_sa_size): Reflect above change.
12346 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12347 (alpha_start_function, alpha_expand_epilogue): Likewise.
12348 (unicosmk_gen_dsib): Likewise.
12350 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12352 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12354 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
12356 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12357 check_and_change_labels, s390_final_chunkify): Delete.
12358 (s390_split_branches, s390_chunkify_pool): New functions.
12359 (s390_function_prologue): Call them.
12361 * config/s390/s390.h (S390_REL_MAX): Delete.
12362 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12364 * config/s390/s390.md (cjump, icjump, jump): Fix length
12365 attribute calculation.
12368 2002-02-15 David Edelsohn <edelsohn@gnu.org>
12370 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12371 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12373 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12375 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12376 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12377 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12379 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12381 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12383 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12385 * reload.c (find_dummy_reload): Check that an output register
12386 is valid for its mode.
12388 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
12390 * combine.c (known_cond): After replacing the REG of a SUBREG, try
12393 * function.c (assign_parms): Demote promoted argument passed by
12394 transparent reference.
12396 2001-02-14 Joel Sherrill <joel@OARcorp.com>
12398 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12399 -Acpu() and -Amachine() to eliminate warnings.
12401 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
12403 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12405 2002-02-14 Kazu Hirata <kazu@hxi.com>
12407 * config/h8300/h8300-protos.h: Update the prototype for
12409 * config/h8300/h8300.c (const_costs): Treat SET as a little
12410 more expensive operation.
12411 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12412 reference to const_costs.
12414 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
12416 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12418 2002-02-14 Jakub Jelinek <jakub@redhat.com>
12421 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12422 use arguments from newtype.
12424 2002-02-13 Eric Christopher <echristo@redhat.com>
12426 * config/mips/mips.c (override_options): Add check for march/mipsX
12427 on the same command line. Fix error message in cpu processing.
12428 Remove architecture and ISA checks.
12430 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12432 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12434 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12436 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12438 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12440 ("*movv8hi_internal1"): Same.
12441 ("*movv16qi_internal1"): Same.
12442 ("*movv4sf_internal1"): Same.
12444 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12445 not push_reload for altivec modes.
12447 2002-02-13 Joel Sherrill <joel@OARcorp.com>
12449 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12450 all RTEMS targets including removal of #includes from config/*/rtems*.h
12451 file and adding them to tm_file setting. Added xm_defines=POSIX to
12453 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12454 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12455 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12456 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12457 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12458 config/m68k/rtemself.h: Ditto.
12459 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12460 config/mips/rtems64.h: Ditto.
12461 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12462 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12464 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12465 config/sparc/rtemself.h: Ditto.
12466 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12467 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12468 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12470 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12471 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12472 target made more similar to i386-elf.
12473 * config/i386/t-rtems-i386: Added soft float support and multilibs.
12474 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12475 be similar to config/m68k/t-m68kelf.
12476 * gthr-rtems.h: Encapsulate with extern "C" for C++.
12478 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
12480 * regmove.c (kill_value): Handle subregs.
12482 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
12484 * i386.md (mul patterns): Allow memory operand to be first;
12485 add expanders where needed; fix constraints.
12486 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12487 Allow memory operand to be the first.
12489 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12492 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12495 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12498 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12500 PR optimization/5547:
12501 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12502 all valid IA-32 address modes involving non-scaled %ebx and
12503 GOT/GOTOFF as displacement.
12505 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
12507 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12508 after emitting ltorg insns.
12510 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12511 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12512 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12513 *abssf2): Fix "op_type" attribute.
12515 2002-02-13 Douglas B Rupp <rupp@gnat.com>
12517 * mkconfig.sh: Avoid using a subshell redirect.
12518 ($output.T): Change to $(output)T.
12519 (ENABLE_NLS): Remove unneeded undef.
12521 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12522 * config/alpha/x-vms (libsubdir): Define.
12524 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12525 register frame procedures. Optimize retrieving context.
12527 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12528 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12529 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12531 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12533 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12534 Make same change as for find_base_value.
12536 2002-02-13 Kazu Hirata <kazu@hxi.com>
12538 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12539 of QImode and SImode.
12541 2002-02-13 Kazu Hirata <kazu@hxi.com>
12543 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12544 length computation of movsi.
12545 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12547 2002-02-13 Kazu Hirata <kazu@hxi.com>
12549 * config/h8300/h8300.md (subqi3): Tighten the predicate for
12550 operands[2] to register_operand.
12552 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
12554 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12556 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
12558 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12559 for altivec_lvx* and altivec_stvx*.
12560 ("*movv4si_internal"): Add constraint for loading from GPRs.
12561 ("*movv8hi_internal1"): Same.
12562 ("*movv16qi_internal1"): Same.
12563 ("*movv4sf_internal1"): Same.
12565 * config/rs6000/rs6000.c (altivec_register_operand): New.
12567 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12568 altivec_register_operand.
12570 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
12572 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12575 2002-02-13 Stan Shebs <shebs@apple.com>
12577 * c-typeck.c (digest_init): Handle vectors.
12578 (really_start_incremental_init): Same.
12579 (pop_init_level): Same.
12580 (process_init_element): Same.
12582 * varasm.c (output_constant): Same.
12584 * expr.c (clear_storage): Same.
12585 (store_constructor): Same.
12587 2002-02-12 Eric Christopher <echristo@redhat.com>
12589 * explow.c (hard_function_value): Add comment explaining
12590 signed/unsigned comparison.
12592 2002-02-12 Jakub Jelinek <jakub@redhat.com>
12594 * jump.c (never_reached_warning): Add finish argument.
12595 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12596 real insn after end.
12597 * rtl.h (never_reached_warning): Adjust prototype.
12598 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12599 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12600 never_reached_warning.
12602 2002-02-12 Graham Stott <grahams@redhat.com>
12604 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12606 2002-02-12 Kazu Hirata <kazu@hxi.com>
12608 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12609 logical shifts on H8/300.
12610 (shift_alg_si): Improve several shifts on H8/300.
12611 (get_shift_alg): Likewise.
12613 2002-02-12 Graham Stott <grahams@redhat.com>
12615 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12617 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12619 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12620 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12622 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
12624 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12625 non-CONST_INT through default_assemble_integer.
12626 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12627 <case 8>: Abort for CONST_DOUBLE.
12629 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12631 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12633 * config/pa/pa-linux.h (LIB_SPEC): Delete.
12634 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12636 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
12638 * config/stormy16/stormy16.md (zero_extendqihi2): New.
12640 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
12642 * regrename.c (regrename_optimize): Don't accept a
12643 part-clobbered register if the replaced register is not part
12646 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12647 take padding into account when computing the argument value.
12649 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12651 * combine.c (try_combine): Apply substitutions in
12652 CALL_INSN_FUNCTION_USAGE too.
12654 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
12656 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12657 __builtin_altivec_abs*.
12660 * config/rs6000/rs6000.h (rs6000_builtins): Add
12661 ALTIVEC_BUILTIN_ABS*.
12663 * config/rs6000/altivec.h: Use const char for builtins expecting
12665 (vec_abs): New versions for C and C++.
12668 2002-02-10 Kazu Hirata <kazu@hxi.com>
12670 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12673 2002-02-10 Kazu Hirata <kazu@hxi.com>
12675 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12676 constant definition from h8300.md.
12677 (FRAME_POINTER_REGNUM): Likewise.
12678 * config/h8300/h8300.md (define_constants): Add FP_REG.
12680 2002-02-10 Kazu Hirata <kazu@hxi.com>
12682 * config/h8300/h8300.c (print_operand): Remove redundant code.
12684 2002-02-10 Kazu Hirata <kazu@hxi.com>
12686 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12687 * config/h8300/h8300.c (byte_reg): Make it static.
12689 2002-02-10 Richard Henderson <rth@redhat.com>
12692 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12694 2002-02-10 Richard Henderson <rth@redhat.com>
12697 * tree.c (append_random_chars): Don't abort if main_input_filename
12700 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12702 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12704 2002-02-10 Kazu Hirata <kazu@hxi.com>
12706 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12707 (pushhi1): Likewise.
12709 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12711 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12712 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12714 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12716 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12718 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12720 2002-02-09 Kazu Hirata <kazu@hxi.com>
12722 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12723 a half of an SImode register on H8/300.
12725 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12727 * i386.md (movdi_2): Add missing '!'.
12729 2002-02-09 Kazu Hirata <kazu@hxi.com>
12731 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12734 2002-02-09 Kazu Hirata <kazu@hxi.com>
12736 * config/h8300/h8300.md (length): Correct the distance valid
12737 for the short branch.
12739 2002-02-09 Kazu Hirata <kazu@hxi.com>
12741 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12743 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12745 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12746 registers in SImode.
12747 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12750 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12753 Contribute sh64-elf.
12754 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12755 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12756 (sh_cannot_modify_jumps_p): New function.
12757 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12758 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12759 (sh_ms_bitfield_layout_p): New function.
12760 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
12761 Zack Weinberg <zack@codesourcery.com>
12762 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12763 expand_simple_binop instead of expand_binop.
12764 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
12765 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12766 use of .quad and .uaquad.
12767 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12768 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12769 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12770 * config/sh/sh.md (movdi_const, movdi_const_32bit,
12771 movdi_const_16bit): Make sure all CONSTs have modes.
12772 (sym2PIC): Ditto, but by adjusting all callers.
12773 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12774 if the prologue calls the SHmedia argument decoder or register
12776 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12777 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12778 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12779 (sh_expand_epilogue): Don't emit USE of return target register.
12780 (prepare_move_operands): Legitimize DImode PIC addresses.
12781 (sh_media_register_for_return): Skip tr0, used to initialize the
12783 (sh_expand_prologue): Remove explicit USE of return register.
12784 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12785 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12786 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12787 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12788 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12789 EXTRA_CONSTRAINT_T.
12790 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12791 (MOVI_SHORI_BASE_OPERAND_P): New.
12792 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12793 (EXTRA_CONSTRAINT_T): Define in terms of them.
12794 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12795 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12796 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12797 alternatives supporting TARGET_REGS.
12798 (UNSPEC_GOTPLT): New constant.
12799 (movdi split): Move incrementing of LABEL_NUSES...
12800 (movdi_const, movdi_const_32bit): Here. Use
12801 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12802 (movdi_const_16bit): New.
12803 (call, call_value) [flag_pic]: Use GOTPLT.
12804 (call_pop, call_value_pop): New expands.
12805 (call_pop_compact, call_pop_rettramp): New insns.
12806 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12807 (sibcall) [flag_pic]: Use GOT.
12808 (builtint_setjmp_receiver): Remove bogus, unused expand.
12809 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12810 (*pt, *ptb, ptrel): New insns.
12811 (sym2GOT): Handle DImode GOT.
12812 (sym2GOTPLT, symGOTPLT2reg): New expands.
12813 (sym2PIC): New expand.
12814 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12815 (shcompact_return_tramp_i): Use return register explicitly.
12816 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12817 disable flag_reorder_blocks.
12818 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12819 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12820 clobbers, for clarity.
12821 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12822 restoring of r0 in macl as MAYBE_DEAD.
12823 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12824 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12825 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12826 alter_subreg all over.
12827 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12828 reload, instead of emitting instructions that would require
12830 (casesi_load_media): Add missing modes.
12831 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12832 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12833 as used if the argument decoder is called.
12834 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12835 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12836 Pmode, then extend it to DImode if necessary.
12837 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12838 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12839 constants in FPU-enabled SHmedia, let them be loaded from memory.
12840 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12841 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12842 Adjust whitespace in assembly output templates.
12843 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12844 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12845 mode of if_then_else.
12846 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
12847 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12849 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
12850 Joern Rennecke <amylaar@redhat.com>
12851 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12852 (SUBTARGET_CPP_PTR_SPEC): New.
12853 (SUBTARGET_CPP_SPEC): Remove.
12854 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12855 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12856 Fix typo in previous checkin.
12857 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
12858 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12859 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
12860 Alexandre Oliva <aoliva@redhat.com>
12861 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12862 what single FP register can hold for SHmedia target.
12863 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12864 Alexandre Oliva <aoliva@redhat.com>
12865 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12866 Do not split into SUBREG.
12867 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
12868 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12869 and added new functions as specified in SH5 ABI r9.
12870 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
12871 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12873 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
12874 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12875 gen_consttable_4 and gen_consttable_8. Emit multiple labels
12876 and consttable_window_ends.
12877 2001-06-03 Graham Stott <grahams@redhat,com>
12878 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12879 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
12880 * config/sh/sh.c (print_operand): Handle floating-point pair,
12881 vector and matrix registers.
12882 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12883 vector modes into account.
12884 * config/sh/sh.md (movv2sf): Split move between registers into
12886 (movv4sf, movv16sf): Introduce insns that get split only after
12888 * config/sh/shmedia.h: Fix Copyright dates.
12889 * config/sh/ushmedia.h: Likewise. Move loop counter
12890 declarations into conditionals that uses them.
12891 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12893 * config/sh/sshmedia.h: Fix Copyright dates.
12894 (sh_media_PUTCFG): Fix constraints.
12895 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
12896 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12897 ptrmemfunc_vbit_in_delta for SH5.
12898 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
12899 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12900 * invoke.texi: Likewise.
12901 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
12902 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12903 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12904 GCC_pop_shmedia_regs_nofpu): New global symbols.
12905 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12906 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12907 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12908 compact function with nonlocal labels.
12909 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12910 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12911 (initial_elimination_offset): Account for their stack space.
12912 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12913 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12914 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12915 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12916 least one of the operands to be a register.
12917 (movv2sf): Likewise. Renamed to movv2sf_i.
12918 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12919 prepare_move_operands() before emitting SHmedia insns.
12920 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
12921 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12922 Don't save nor initialize r12. Don't mis-align the stack.
12923 Pad the code with a nop.
12924 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
12926 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
12927 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12928 [__SHMEDIA__]: Implement.
12929 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
12930 * config/sh/sh.md: Set latency of `pt' closer to reality.
12931 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12932 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12933 Set move, load and store type attributes.
12934 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12935 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12937 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12938 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12939 * config/sh/sh.c (sh_media_register_for_return): New function.
12940 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12941 branch-target register.
12942 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12943 * config/sh/sh.md (return_media_i): Use any call-clobbered
12944 branch-target register.
12945 (return_media): If r18 wasn't copied in the prologue, copy it
12947 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12948 Clear class FP0_REGS.
12949 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12951 2001-03-08 DJ Delorie <dj@redhat.com>
12952 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12953 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
12954 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12955 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
12956 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12957 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
12958 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12959 return value correctly for call_cookie.
12960 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
12961 * config/sh/crt1.asm (start): Modified so as to call
12962 ___setup_argv_and_call_main.
12963 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
12964 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12966 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
12967 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12968 (STRIP_NAME_ENCODING): Use it.
12969 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
12970 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
12971 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12972 prepare_scc_operands().
12973 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12974 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12975 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
12976 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12977 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
12978 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12979 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12980 used in shcompact_incoming_args.
12981 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12983 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12985 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12986 Adjust accordingly.
12987 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12988 Simplify. Adjust. Add sanity check.
12989 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12991 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12993 (udivsi3, divsi3): Use them.
12994 (force_mode_for_call): New insn.
12995 (call, call_value, sibcall_value): Emit it before SHcompact
12997 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
12998 * config/sh/sh.md (call, call_value, sibcall): Make sure the
12999 call cookie is non-NULL before taking its value.
13000 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
13001 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
13002 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
13003 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
13005 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
13006 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
13007 temporary for stack adjusts. Use MACL and MACH to pass
13008 arguments to shcompact_incoming_args.
13009 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
13011 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
13012 (nested_trampoline): Load static chain address into r1.
13013 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
13014 2001-01-07 Alexandre Oliva <aoliva@redhat.com
13015 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
13016 fp_arith_reg_operand().
13017 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
13018 * config/sh/sh.md (casesi): Sign-extend the first two operands,
13019 and use signed compares for them.
13020 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
13021 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
13022 ones properly aligned.
13023 (find_barrier): Account for extra alignment needed for 8-byte wide
13025 (machine_dependent_reorg): Require a label for the second 4-byte
13026 constant after an 8-byte one.
13027 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
13029 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
13030 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
13031 last_float when switching float modes.
13032 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
13033 auto-increment for general-purpose registers.
13034 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
13036 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
13038 * config/sh/sh.c (sh_builtin_saveregs): Support using all
13039 registers for varargs.
13040 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
13041 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
13042 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
13043 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
13044 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
13045 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
13046 call_cookie accordingly.
13047 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
13048 (SHCOMPACT_BYREF): Likewise.
13049 (SHCOMPACT_FORCE_ON_STACK): New macro.
13050 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
13051 (sh_builtin_saveregs): Likewise.
13052 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13053 shcompact_incoming_args): Use new shift values. Support
13054 sequences of consecutive and non-consecutive pushes/pops.
13055 * config/sh/sh.md (return): Don't explicitly use PR_REG.
13056 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
13057 * config/sh/sh.h (TEXT_SECTION): Define.
13058 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13059 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
13060 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13061 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13062 return values on FPU-enabled SHmedia.
13063 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13064 FPU-enabled SHmedia.
13065 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13066 value is returned in a non-FP reg and is not returned by
13068 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13070 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
13071 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13072 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13073 quad-aligned to be passed by callee-copy reference.
13074 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
13075 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13076 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13077 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
13078 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13079 copying low-numbered FP regs to r7 and r8.
13080 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13081 FP regs to general-purpose regs only if the copy was passed on the
13083 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13084 copying FP reg to r9.
13085 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13086 copy FP regs to general-purpose regs only in outgoing calls.
13087 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13088 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
13090 * config/sh/sh.h (struct sh_args): Document all fields.
13091 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13092 passed partially on the stack should not consider making
13094 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13095 stack_regs only for incoming calls. When passing FP args,
13096 make sure there are FP regs available before modifying
13098 (SHCOMPACT_BYREF): Pass double args in general-purpose
13099 registers by reference.
13100 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
13101 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13102 attempt to generate sibcalls if the caller got any arguments
13104 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13105 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13106 to 8-byte boundaries.
13107 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13108 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13109 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13110 stored in the stack.
13111 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13112 for the offsets to have the ISA bit set.
13113 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
13114 invocation. Use beq instead of bgt to mark end of sequence of
13116 (shcompact_incoming_args): Fix store of r2. Use beq instead of
13117 bgt to mark end of sequence of stores.
13118 * config/sh/sh.c (arith_operand): Don't check whether
13119 CONST_OK_FOR_J for now.
13120 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13121 instead of long for conversion.
13122 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
13123 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13124 before passing it to fprintf.
13125 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
13126 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13127 Call set_fpscr before reading/writing SR.
13128 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13130 * config/sh/lib1funcs.asm: Add `.align 2' directives before
13132 (FMOVD_WORKS): Define on SH5 with FPU.
13133 (set_fpscr): Define on SH5. Remove separate _fpscr_values
13135 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13137 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
13138 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13140 (ia_main_table): Ditto.
13141 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
13142 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13143 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13144 the definitions from sh.h.
13145 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13147 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13148 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13149 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13150 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
13151 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13152 Increment LABEL_NUSES.
13154 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13156 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13158 * config/sh/elf.h (SIZE_TYPE): Likewise.
13159 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13160 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13161 shcompact_incoming_args): Load switch table addresses using
13163 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13164 (NO_BUILTIN_SIZE_TYPE): Define.
13165 (SIZE_TYPE): Don't define.
13166 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13167 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13168 definition of __SH5__=32 for -m5-compact-nofpu.
13169 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13171 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
13172 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13173 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
13174 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13175 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13176 (INSN_LENGTH_ALIGNMENT): Likewise.
13177 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13178 * config/sh/sh.md (call, call_value, sibcall): Simplify
13179 copying of non-branch-target register.
13180 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13181 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
13182 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13183 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
13184 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13185 floating-point values as structs.
13186 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13187 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13188 general-purpose register.
13189 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13190 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
13191 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13192 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13193 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13194 (ENCODE_SECTION_INFO): Enclose variables and constants in
13196 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13197 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13198 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13199 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13200 only for LABEL_REFs. For SYMBOL_REFs, prepend
13201 SH_DATALABEL_ENCODING to the symbol name.
13202 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13204 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
13205 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13207 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13208 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13209 (DATALABEL_REF_P): Don't require CONST.
13210 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13212 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
13213 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13215 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
13216 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13217 Use shallow_copy_rtx and PUT_MODE to change the mode of
13218 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13219 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13220 on SHmedia using GENERAL_REGs.
13221 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13222 bltu_media_i): Fix reversion of conditions.
13223 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
13224 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13225 * config/sh/sh.c (output_far_jump): Save r13 in macl.
13226 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
13227 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13228 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
13229 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13230 (GCC_nested_trampoline): Likewise.
13231 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13232 * config/sh/sh.c (gen_datalabel_ref): Define.
13233 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13234 (INITIALIZE_TRAMPOLINE): Likewise.
13235 (TRAMPOLINE_ADJUST_ADDRESS): Define.
13236 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13237 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13238 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13239 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13240 (ic_invalidate): Adjust for SH5.
13241 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13242 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13243 _nested_trampoline.
13244 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
13245 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13246 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13247 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
13248 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13249 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13250 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
13251 * config/sh/sh.c (target_reg_operand): Match only target-branch
13252 registers and pseudos that aren't virtual registers.
13253 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13254 Copy operands that don't match target_reg_operand to pseudos.
13255 (call_media, call_value_media, sibcall_media): Use
13256 target_reg_operand instead of target_operand.
13257 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
13258 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13259 * config/sh/sh.c (target_reg_operand): Match hardware registers
13260 other than branch-target registers.
13261 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13262 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13263 (fpscr_values) [SH5 == 32]: Define.
13264 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13265 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13266 Handle function addresses coming in SUBREGs.
13267 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
13268 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13269 shcompact_return_trampoline): Use datalabel where appropriate.
13270 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
13271 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13272 general-purpose register to copy one branch-target register to
13274 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13275 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13276 SYMBOL_REFs with VOIDmode.
13277 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13278 bltu_media_i): New insns.
13279 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13280 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13281 (INIT_CUMULATIVE_ARGS): Likewise.
13282 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
13283 * machmode.def (V16SFmode): New mode.
13284 * c-common.c (type_for_mode): Support V2SF and V16SF.
13285 * tree.c (build_common_tree_nodes_2): Likewise.
13286 * tree.h (tree_index): Likewise.
13287 * calls.c (emit_call_1): Take args_so_far. Adjust all
13288 callers. Introduce CALL_POPS_ARGS.
13289 * tm.texi (CALL_POPS_ARGS): Document.
13290 * config/sh/crt1.asm: Implement in SHmedia mode.
13291 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13292 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13293 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13294 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13295 Implement divsi and udivsi in SHmedia mode. Introduce
13296 SHcompact trampolines.
13297 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13299 (regno_reg_class): Rewrite.
13300 (fp_reg_names): Remove.
13301 (sh_register_names, sh_additional_register_names): New.
13302 (print_operand): Added `u'. Support SUBREGs in addresses.
13303 Add parentheses around shifted CONSTs.
13304 (output_file_start): Output .mode and .abi directives.
13305 (shiftcosts, addsubcosts, multcosts): Adjust.
13306 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
13307 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
13308 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
13309 bytes, not registers. Take into account the need for the
13310 SHcompact incoming args trampoline. Adjust all callers.
13311 (sh_expand_prologue): Take stack_regs into account. Call
13312 incoming args trampoline. Keep stack aligned as per SH5 ABI.
13313 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
13314 stack aligned as per SH5 ABI.
13315 (sh_builtin_saveregs): Support SH5 ABI.
13316 (sh_build_va_list, sh_va_start): Likewise.
13317 (initial_elimination_offset): Take alignment into account.
13318 Compute location of PR according to the SH5 stack frame.
13319 (arith_reg_operand): Reject branch-target registers.
13320 (shmedia_6bit_operand): New.
13321 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13322 (target_reg_operand): Match DImode only. Accept SUBREGs.
13323 (target_operand): New.
13324 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13325 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
13326 SIBCALL_REGS for SHmedia.
13327 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13328 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13329 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13330 (TARGET_SWITCHES): New SH5 flags.
13331 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
13332 VALID_REGISTER_P to disable unsupported registers.
13333 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13334 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13335 (FUNCTION_ARG_PADDING): Define.
13336 (FASTEST_ALIGNMENT): Adjust.
13337 (SH_REGISTER_NAMES_INITIALIZER): New.
13338 (sh_register_names): Declare.
13339 (DEBUG_REGISTER_NAMES): Define.
13340 (REGISTER_NAMES): Define based on sh_register_names.
13341 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13342 (sh_additional_register_names): Declare.
13343 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13344 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13345 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13346 (REGISTER_NATURAL_MODE): Define.
13347 (FIRST_PSEUDO_REGISTER): Adjust.
13348 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13349 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13350 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13351 (VECTOR_MODE_SUPPORTED_P): Define.
13352 (REG_CLASS_CONTENTS): Adjust.
13353 (SMALL_REGISTER_CLASSES): Adjust.
13354 (REG_ALLOC_ORDER): Adjust.
13355 (INDEX_REG_CLASS): Adjust.
13356 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13357 (CONST_OK_FOR_LETTER_P): Adjust.
13358 (PREFERRED_RELOAD_CLASS): Adjust.
13359 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13360 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13361 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13362 (FIRST_FP_PARM_REG): Adjust.
13363 (CALL_POPS_ARGS): Define.
13364 (FUNCTION_ARG_REGNO_P): Adjust.
13365 (struct sh_args): New fields.
13366 (GET_SH_ARG_CLASS): Adjust.
13367 (INIT_CUMULATIVE_ARGS): Adjust.
13368 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13369 (FUNCTION_ARG_ADVANCE): Adjust.
13370 (FUNCTION_ARG): Adjust.
13371 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13372 (FUNCTION_ARG_CALLEE_COPIES): Define.
13373 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13374 (STRICT_ARGUMENT_NAMING): Define.
13375 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13376 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13377 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13378 (SETUP_INCOMING_VARARGS): Adjust.
13379 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13380 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13381 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13382 (SUBREG_OK_FOR_INDEX_P): Adjust.
13383 (EXTRA_CONSTRAINT_S): Update.
13384 (EXTRA_CONSTRAINT_T): New.
13385 (EXTRA_CONSTRAINT): Adjust.
13386 (GO_IF_LEGITIMATE_INDEX): Adjust.
13387 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13388 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13389 (MOVE_MAX): Adjust.
13390 (MAX_MOVE_MAX): Define.
13392 (CONST_COSTS): Adjust.
13393 (REGISTER_MOVE_COST): Adjust.
13394 (BRANCH_COST): Adjust.
13395 (TEXT_SECTION_ASM_OP): Adjust.
13396 (DBX_REGISTER_NUMBER): Adjust.
13397 (ASM_OUTPUT_DOUBLE_INT): New.
13398 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13399 (PREDICATE_CODES): Adjust.
13400 (PROMOTE_MODE): Adjust.
13401 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13402 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13403 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13404 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13405 (DR0_REG, DR2_REG, DR4_REG): Renumber.
13406 (TR0_REG, TR1_REG, TR2_REG): New.
13407 (XD0_REG): Renumber.
13408 (UNSPEC_COMPACT_ARGS): New.
13409 (type): Added pt and ptabs.
13410 (length): Default to 4 on SHmedia. Default pt length to 12
13411 and 20 on SHmedia32 and SHmedia64, respectively.
13412 (pt): New function unit.
13413 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
13414 Add whitespace between operands of SHmedia instructions.
13416 (adddi3_media, addsi3_media): Adjust constraints.
13417 (subsi3) [SHmedia]: Force operand 1 into a register.
13418 (udivsi3_i1_media, udivsi3_i4_media): New.
13419 (udivsi3): Support SHmedia.
13420 (divsi3_i1_media, divsi3_i4_media): New.
13421 (divsi3): Support SHmedia.
13422 (anddi3, iordi3, xordi3): Adjust constraints.
13423 (zero_extendhidi2, zero_extendqidi2): New.
13424 (extendsidi2, extendhidi2, extendqidi2): New.
13425 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13426 (pop_e, pop_fpul, pop_4): Likewise.
13427 (movsi_media): Support FP and BT registers.
13428 (movsi_media_nofpu): New. Adjust splits to DImode.
13429 (lduw, ldub): Renamed to zero_extend* above.
13430 (movqi_media): Fix typo.
13431 (movdi_media): Support FP and BT registers.
13432 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
13433 (movdi_const_32bit): New.
13434 (shori_media): Require immediate operand. Use `u' for output.
13435 (movdf_media, movsf_media): Simplified.
13436 (movdf_media_nofpu, movsf_media_nofpu): New.
13437 (movdf, movsf): Adjust
13438 (movv2sf, movv2sf, movv16sf): New.
13439 (beq_media, beq_media_i): Adjust constraints. Don't use
13440 scratch BT register.
13441 (bne_media, bne_media_i): Likewise.
13442 (bgt_media, bgt_media_i): Likewise.
13443 (bge_media, bge_media_i): Likewise.
13444 (bgtu_media, bgtu_media_i): Likewise.
13445 (bgeu_media, bgeu_media_i): Likewise.
13446 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13447 bunordered): Emit jump insn. Force operands to registers when
13449 (jump_media, jump): Simplify.
13450 (call_compact, call_compact_rettramp): New.
13451 (call_value_compact, call_value_compact_rettramp): New.
13452 (call_media, call_value_media): Simplify.
13453 (sibcall_compact, sibcall_media): New.
13454 (call, call_value): Adjust for SHmedia and SHcompact.
13455 (sibcall, sibcall_value, untyped_call): Likewise.
13456 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13457 (indirect_jump): Adjust for SHmedia.
13458 (casesi_jump_media): New.
13459 (nop): Re-enable for SHmedia.
13460 (call_site): Restrict to SH1.
13461 (casesi): Adjust for SHmedia.
13462 (casesi_shift_media, casesi_load_media): New.
13463 (return): Explicitly use PR register. Call return trampoline
13465 (return_i): Explicitly use PR register.
13466 (shcompact_return_tramp, shcompact_return_tramp_i): New.
13467 (return_media): Adjust.
13468 (shcompact_incoming_args): New.
13469 (epilogue): Adjust.
13470 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13471 (movstrsi): Disable on SH5.
13472 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13473 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13474 (subsf3, subsf3_media): Likewise.
13475 (mulsf3, mulsf3_media, mac_media): Likewise.
13476 (divsf3, divsf3_media): Likewise.
13477 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
13478 (floatsisf2, fux_truncsfsi2): Likewise.
13479 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
13481 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13482 (cmpunsf_media, cmpsf): Likewise.
13483 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13484 (abssf2, abssf2_media): Likewise.
13485 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13486 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13487 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
13488 (floatsidf2, fix_truncdfsi2): Likewise.
13489 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
13491 (cmpeqdf_media, cmpgtdf_media): Likewise.
13492 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13493 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13494 (absdf2, absdf2_media): Likewise.
13495 (extendsfdf2, extendsfdf2_media): Likewise.
13496 (truncsfdf2, truncsfdf2_media): Likewise.
13497 * config/sh/sh64.h: New file.
13498 * config/sh/t-sh64: New file.
13499 * config/sh/shmedia.h: New file.
13500 * config/sh/ushmedia.h: New file.
13501 * config/sh/sshmedia.h: New file.
13502 * configure.in: Added sh64-*-elf.
13503 * configure: Rebuilt.
13504 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
13505 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13506 (reg_class_from_letter): Use `b' for TARGET_REGS.
13507 (print_operand): Support `%M', `%m', `AND' and
13508 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
13509 (andcosts): Adjust for SHmedia.
13510 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13512 (target_reg_operand): New function.
13513 * config/sh/sh-protos.h (target_reg_operand): Declare.
13514 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13515 FP registers on SH5.
13516 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13518 (TARGET_REGISTER_P): New macro.
13519 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13520 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13521 (EXTRA_CONSTRAINT_S): New macro.
13522 (EXTRA_CONSTRAINT): Adjust.
13523 (FLOAT_TYPE_SIZE): Define to 32.
13524 (Pmode): DImode on SHmedia.
13525 (CONST_COSTS): Adjust for SHmedia literals.
13526 (PREDICATE_CODES): Added target_reg_operand.
13527 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13528 * config/sh/sh.md: Remove all attrs from SHmedia insns.
13529 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13530 (cmpdi): Accept SHmedia.
13531 (movdicc_false, movdicc_true): New insns.
13532 (movdicc): New expand.
13533 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13535 (addsi3_media): Match `S' constraint.
13536 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13537 (negdi2): Expand for SHmedia.
13538 (one_cmpldi2): New expand.
13539 (zero_extendsidi2): Change from expand to insn.
13540 (extendsidi2): Add constraints.
13541 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
13542 LD/ST address. Fix SI immediate loading split.
13543 (movhi_media, movqi_media, lduw, ldub): New insns.
13544 (movhi, movqi): Accept SHmedia.
13545 (shori_media, movdi_media): Relax input constraints. Split
13546 symbolic constants.
13547 (movdf_media, movsf_media): New insn. New split to movdi.
13548 (movdf, movsf): Match on SHmedia.
13549 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13550 bgeu_media): New insns and splits. New insns with `_i' suffix.
13551 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13552 (bunordered): New expand.
13553 (jump_compact): Renamed from `jump'.
13554 (jump_media): New insn.
13555 (jump): New expand.
13556 (call_media, call_value_media): New insns.
13557 (call, call_value): Adjust.
13558 (indirect_jump_compact): Renamed from `indirect_jump'.
13559 (indirect_jump_media): New insn.
13560 (indirect_jump): New expand.
13561 (untyped_call, return): Accept SHmedia.
13562 (return_media): New insn.
13563 (prologue, epilogue, blockage): Accept SHmedia.
13564 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13565 (sunordered): New expand.
13566 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13567 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13568 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13569 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13570 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13571 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13572 abssf2_media): New insns.
13573 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13574 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13575 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13576 floatdidf2, floatsidf2_media, fix_truncdfdi2,
13577 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13578 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13579 absdf2_media): New insns.
13580 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13581 (extendsfdf2_media, truncdfsf2_media): New insns.
13582 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
13583 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13584 * config/sh/sh.h (CONST_OK_FOR_J): Document.
13585 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13586 * config/sh/sh.md (adddi3): New expand.
13587 (adddi3_media, adddi3z_media): New insns.
13588 (adddi3_compact): Renamed from adddi3.
13589 (addsi3_media): Use add.l r63 to add constant zero.
13590 (subdi3): New expand.
13591 (subdi3_media): New insn.
13592 (subdi3_compact): Renamed from subdi3.
13593 (mulsidi3): New expand.
13594 (mulsidi3_media): New insn.
13595 (mulsidi3_compact): Renamed from mulsidi3.
13596 (umulsidi3): New expand.
13597 (umulsidi3_media): New insn.
13598 (umulsidi3_compact): Renamed from umulsidi3.
13599 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13600 (ashlsi3, ashrsi3, lshrsi3): Use them.
13601 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13602 (ashldi3, ashrdi3, lshrdi3): Use them.
13603 (zero_extendsidi2): New expand.
13604 (extendsidi2): New insn.
13605 (movsi_media): New insn. Split to movdi to load constants.
13606 (movsi): Enable for shmedia.
13607 (movdi_media): New insn. Use shori_media to load wide constants.
13608 (short_media): New insn.
13609 (movdi): Enable for shmedia.
13610 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
13611 * config/sh/sh.h (CPP_SPEC): Added `m5'.
13612 (SUBTARGET_CPP_SPEC): Added `!m5'.
13613 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13614 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
13615 to all other SH variants.
13616 (TARGET_DEFAULT): Set to SH1_BIT.
13617 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13618 (BITS_PER_WORD): Raise to 64 on shmedia.
13619 (MAX_BITS_PER_WORD): Change to 64.
13620 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13621 (INT_TYPE_SIZE): Keep as 32.
13622 (UNITS_PER_WORD): Raise to 8 on shmedia.
13623 (MIN_UNITS_PER_WORD): Keep as 4.
13624 (POINTER_SIZE): Raise to 64 on shmedia.
13625 (CONST_OK_FOR_J): New macro.
13626 (CONST_OK_FOR_LETTER_P): Use it.
13627 (processor_type): Add PROCESSOR_SH5.
13628 * config/sh/sh.md: Conditionalize all expands, insns and
13629 splits to TARGET_SH1.
13631 (addsi3_compact): Renamed from...
13632 (addsi3): Now an expand.
13633 (addsi3_media, subsi3_media): New insns.
13634 (subsi3): Don't negate constants with SHmedia.
13636 * hooks.c: New file.
13637 * hooks.h: New file.
13638 * Makefile.in (HOOKS_H): New.
13639 (TARGET_DEF_H): Added $(HOOKS_H).
13640 (OBJS): Added hooks.o.
13641 (cfgcleanup.o, bb-reorder.o): Added target.h.
13642 (hooks.o): Added dependencies.
13643 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13644 (TARGET_INITIALIZER): this.
13645 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13646 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13647 * bb-reorder.c: Include target.h.
13648 (reorder_basic_blocks): Skip if cannot modify jumps.
13649 * cfgcleanup.c: Include target.h.
13650 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13652 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13654 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13655 Protect jump delay slot instructions with .set noreorder and
13658 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13660 * config/mips/mips.md (casesi_internal_di): Calculate
13661 the index into the target offset table correctly.
13663 2002-02-08 Richard Henderson <rth@redhat.com>
13665 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13666 * final.c (output_addr_const): Accept and discard SUBREG.
13667 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13668 mark them unknown instead.
13669 (simplify_subtraction): Handle RTX_UNKNOWN.
13670 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13672 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13674 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13676 2002-02-08 Richard Henderson <rth@redhat.com>
13678 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13680 2002-02-08 Andreas Jaeger <aj@suse.de>
13682 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13683 * config/i386/t-linux64: New file.
13685 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13687 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13688 * c-parse.in (compstmt): Clear last_expr_type.
13690 2002-02-07 Richard Henderson <rth@redhat.com>
13692 * loop.c (strength_reduce): Sink final_value when not
13695 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13697 * config/sparc/freebsd.h: Fix mismatched spec {.
13699 2002-02-07 Richard Henderson <rth@redhat.com>
13701 * cfgrtl.c: Include recog.h and insn-config.h.
13702 (keep_with_call_p): Fix general_operand invocation.
13703 * Makefile.in (cfgrtl.o): Update dependencies.
13705 2002-02-07 Kazu Hirata <kazu@hxi.com>
13707 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13708 comment. Accept HImode only if TARGET_H8300.
13710 2002-02-07 Eric Christopher <echristo@redhat.com>
13712 * config/mips/crtn.asm: Cleanup #ifdefs.
13714 2002-02-07 Eric Christopher <echristo@redhat.com>
13716 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13717 register 7 as RA instead of $31.
13718 * config/mips/crtn.asm: Ditto.
13719 * config/mips/mips.c (mips_move_2words): Add case for
13720 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13721 (compute_frame_size): Fix typo.
13722 (save_restore_insns): Ditto. Make documentation about using
13723 register $7 as return register more precise.
13724 (mips_expand_epilogue): Fix comment. Add code to work around not
13725 being able to add to the stack pointer directly.
13726 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13727 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13730 2002-02-07 Tom Rix <trix@redhat.com>
13732 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13733 immediates in ldu and stdu DS opcode field.
13734 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13735 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13736 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13738 2002-02-07 Jeff Sturm <jsturm@one-point.com>
13740 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13741 offset for stack bias.
13743 2002-02-07 H.J. Lu <hjl@gnu.org>
13745 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13747 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
13749 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13751 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
13753 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13754 * i386.c (x86_order_regs_for_local_alloc): New global function.
13755 * i386.h (REG_ALLOC_ORDER): CLeanup.
13756 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13758 2002-02-07 Richard Henderson <rth@redhat.com>
13760 PR optimization/2463
13761 * alias.c (find_base_value): Recall base values for fixed hard regs.
13762 * loop.c (loop_regs_update): Don't use single_set on non-insns.
13764 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
13766 * config/mips/mips.md (define_delay) [mips16]: Adjust required
13769 2002-02-06 Richard Henderson <rth@redhat.com>
13772 * stmt.c (resolve_operand_name_1): Take more care with mixed
13773 named and unnamed operands.
13775 2002-02-06 Janis Johnson <janis187@us.ibm.com>
13776 Jan Hubicka <jh@suse.cz>
13778 * loop.c (remove_constant_addition): Avoid clobbering a shared
13781 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13783 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13784 * config/s390/t-linux64: New file.
13785 * config/s390/libgcc-glibc.ver: New file.
13787 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13789 * config/s390/linux64.h: Delete file.
13790 * config/s390/s390x.h: New file.
13791 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13792 as target header file.
13793 * config/s390/linux.h (TARGET_VERSION): Define depending on
13794 DEFAULT_TARGET_64BIT.
13795 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13796 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13797 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13798 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13799 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13800 (EXTRA_SPEC): New define.
13801 * config/s390/s390.h (TARGET_VERSION): Define depending on
13802 DEFAULT_TARGET_64BIT.
13803 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13805 2002-02-06 Jason Merrill <jason@redhat.com>
13807 * c-decl.c (finish_function): Warn about a non-void function with
13808 no return statement and no abnormal exit.
13809 (current_function_returns_abnormally): New variable.
13810 (start_function): Clear it.
13811 (struct c_language_function): Add returns_abnormally.
13812 (push_c_function_context): Save it.
13813 (pop_c_function_context): Restore it.
13814 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13815 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13816 an explicit return type.
13817 * c-tree.h: Declare current_function_returns_abnormally.
13818 (C_FUNCTION_IMPLICIT_INT): New macro.
13819 * c-typeck.c (build_function_call): Set it.
13820 (c_expand_return): Set current_function_returns_value even if the
13821 value is erroneous.
13823 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13826 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13827 unsafe for reevaluation.
13829 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13832 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13833 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13835 2002-02-06 Richard Henderson <rth@redhat.com>
13837 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13838 be a general_operand. Dest for function value must be a pseudo.
13840 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13842 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13843 as SYMBOL_REFs from the constant pool.
13845 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
13847 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13848 passed by invisible reference.
13850 2002-02-05 Richard Henderson <rth@redhat.com>
13852 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13854 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
13856 Implement using "base addresses" in insn operands as default.
13857 * config/mmix/mmix.c (mmix_conditional_register_usage): if
13858 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13859 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13860 used to read the rtx value.
13861 (mmix_target_asm_function_epilogue): Fix spacing.
13862 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13863 (mmix_legitimate_address): Ditto.
13864 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13865 should be loaded with a GETA insn. Don't allocate needless extra
13866 char for nul termination and fix misleading comment.
13867 (mmix_print_operand_address): Handle constants if
13868 TARGET_BASE_ADDRESSES.
13869 (mmix_output_register_setting): Use base addressing if
13870 TARGET_BASE_ADDRESSES and the number of insns is 3.
13871 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13872 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13873 to use R as constraint, add LDA to match s.
13874 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13875 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13876 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13877 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13878 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13879 order with other fixed registers.
13880 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13881 other parameter/call-clobbered registers.
13882 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13883 -mbase-addresses, -mno-base-addresses.
13884 (MMIX Options): Ditto.
13886 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13888 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13890 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
13892 * config/rs6000/altivec.h: Change elem to _S_elem.
13894 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13896 * config/netbsd.h (WCHAR_TYPE): Define.
13897 (WCHAR_TYPE_SIZE): Ditto.
13898 (WINT_TYPE): Ditto.
13899 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13900 (WCHAR_UNSIGNED): Ditto.
13901 (WCHAR_TYPE_SIZE): Ditto.
13902 (WINT_TYPE): Ditto.
13903 * config/arm/netbsd.h: Likewise.
13904 * config/i386/netbsd-elf.h: Likewise.
13905 * config/i386/netbsd.h: Likewise.
13906 * config/m68k/netbsd-elf.h: Likewise.
13907 * config/m68k/netbsd.h: Likewise.
13908 * config/ns32k/netbsd.h: Likewise.
13909 * config/sparc/netbsd.h: Likewise.
13910 * config/vax/netbsd.: Likewise.
13912 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
13914 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13915 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
13916 (TARGET_INITIALIZER): this.
13917 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13918 (BITFIELD_NBYTES_LIMITED): Markup fix.
13919 * tree.h (default_ms_bitfield_layout_p): Declare.
13920 (record_layout_info): Added prev_field.
13921 * tree.c (default_ms_bitfield_layout_p): New fn.
13922 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13923 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13924 * stor-layout.c: Include target.h.
13925 (start_record_layout): Initialize prev_field.
13926 (place_field): Handle MS bit-field layout, and disregard
13927 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13928 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
13929 * Makefile.in (stor-layout.o): Adjust dependencies.
13931 2002-02-05 Jason Merrill <jason@redhat.com>
13933 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13935 2002-02-05 Andreas Jaeger <aj@suse.de>
13937 * crtstuff.c: Fix comments.
13939 2002-02-05 Richard Henderson <rth@redhat.com>
13942 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13943 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13946 * config/mips/mips.c (function_arg): Handle TImode.
13947 (function_arg_advance): Likewise.
13949 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13951 * config/rs6000/altivec.h (vec_step_help): Rename to
13954 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13956 * config/rs6000/altivec.h: Fix typos.
13958 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13960 * config/arm/netbsd.h: Correct a comment.
13962 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13964 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13965 building void typed builtins.
13967 * config/rs6000/altivec.h (vec_ld*): Fix typos.
13968 (vec_step): Implement for C++.
13970 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13972 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13974 2002-02-04 Richard Henderson <rth@redhat.com>
13976 * combine.c (nonzero_bits): Re-introduce special case for
13977 sp/fp/ap wrt REGNO_POINTER_ALIGN.
13979 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13981 * doc/extend.texi: Warn about unsupported usage of altivec
13984 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13985 (altivec_predicate_*): New.
13987 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13988 Add C++ version of vec_*() functions.
13990 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13991 (bdesc_2arg): Remove altivec predicates.
13992 (altivec_expand_builtin): Handle predicates.
13993 (altivec_init_builtins): Handle predicates.
13994 (altivec_expand_predicate_builtin): New.
13996 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13998 * pa.c (DO_FRAME_NOTES): Move forward.
13999 (store_reg): Revise handling of frame notes.
14000 (load_reg): Likewise.
14001 (set_reg_plus_d): Likewise.
14002 (hppa_expand_prologue): Likewise.
14003 (hppa_expand_epilogue): Likewise.
14005 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14007 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
14009 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14011 PR c/4475, c++/3780:
14012 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
14013 * c-common.h (SWITCH_TYPE): Define.
14014 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
14015 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
14016 Rename spareness variable to sparseness.
14017 (expand_end_case_type): Renamed from expand_end_case, use orig_type
14018 if non-NULL instead of TREE_TYPE (orig_index).
14019 * tree.h (expand_end_case_type): Renamed from expand_end_case.
14020 (expand_end_case): Define using expand_end_case_type.
14021 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
14022 to expand_end_case_type.
14023 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
14025 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14027 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
14028 (BIGGEST_ALIGNMENT): Change to 128.
14030 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14032 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
14034 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
14036 * pa.md (call_internal_reg_64bit): Remove unused variable.
14038 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
14040 * config/arm/arm.h (machine_function): Add uses_anonymous_args
14042 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
14043 * config/arm/arm.c (current_function_anonymous_args): Delete,
14044 replace uses with cfun->machine->uses_anonymous_args.
14045 (arm_reorg): Do not reset uses_anonymous_args.
14047 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
14048 any geenral register.
14050 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
14052 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
14055 2002-02-04 Richard Henderson <rth@redhat.com>
14057 * combine.c (force_to_mode): Remove STACK_BIAS code.
14058 (nonzero_bits): Likewise. Replace sp/fp special case with
14059 REGNO_POINTER_ALIGN.
14061 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14062 (HARD_FRAME_POINTER_REGNUM): New.
14063 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14064 (FIXED_REGS, CALL_USED_REGS): Update.
14065 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14066 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14067 (HARD_REGNO_NREGS): Update for SFP.
14068 (STACK_POINTER_OFFSET): Include bias here ...
14069 (FIRST_PARM_OFFSET): ... not here.
14070 (STACK_BIAS): Remove.
14071 (INIT_EXPANDERS): New.
14072 (STARTING_FRAME_OFFSET): Do not include bias.
14073 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14074 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14075 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14076 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14077 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14078 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14079 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14080 (MUST_SAVE_REGISTER): Likewise.
14081 (sparc_flat_function_prologue): Likewise.
14082 (sparc_flat_function_epilogue): Likewise.
14083 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14084 (sparc_init_modes): SFP is GENERAL_REGS.
14085 (sparc_builtin_saveregs): SFP does not have bias applied.
14087 2002-02-04 Richard Henderson <rth@redhat.com>
14089 * config/alpha/alpha.c (current_function_is_thunk): Don't check
14090 current_function_is_thunk.
14091 (alpha_sa_mask): Distinguish between current_function_is_thunk
14092 called from ASM_OUTPUT_MI_THUNK and not.
14093 (alpha_does_function_need_gp): Thunks always need gp.
14094 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14095 (alpha_output_mi_thunk_osf): New.
14096 * config/alpha/alpha-protos.h: Update.
14097 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14099 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
14101 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14102 function types, not when they're taken away.
14104 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
14106 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14107 CODE_LABEL and jump table when replacing a table jump with a
14110 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14112 * config/s390/s390-protos.h (legitimize_la_operand,
14113 s390_secondary_input_reload_class, s390_plus_operand,
14114 s390_expand_plus_operand): Add prototypes.
14116 config/s390/s390.c (s390_secondary_input_reload_class,
14117 s390_plus_operand, s390_expand_plus_operand): New functions.
14119 (struct s390_address): New member 'pointer'.
14120 (s390_decompose_address): Compute it.
14121 (legitimate_la_operand_p): Use it.
14122 (legitimize_la_operand): New function.
14123 (movti, movdi, movdf splitters): Call it.
14125 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14126 (PREDICATE_CODES): Add s390_plus_operand.
14128 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14129 (la_ccclobber): Allow GENERAL_REGS as output operand.
14131 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14132 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14133 (*la_64, *la_31, reload_indi, reload_insi): ... these.
14135 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14137 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14138 register names for regular asm () construct.
14140 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14142 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14145 2002-02-04 Jakub Jelinek <jakub@redhat.com>
14147 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14150 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
14152 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14153 constant pool to be identical by string address and index.
14155 2002-02-04 Anthony Green <green@redhat.com>
14157 * output.h (SECTION_OVERRIDE): Define.
14158 * varasm.c (named_section): Obey SECTION_OVERRIDE.
14160 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
14162 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14163 by existing arm*-*-netbsd* (a.out) target.
14164 (ns32k-*-netbsdelf*): Likewise.
14165 (sparc-*-netbsdelf*): Likewise.
14166 (vax-*-netbsdelf*): Likewise.
14168 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
14170 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14171 headers and libobjc headers.
14173 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
14175 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14176 (_mingw.h): Remove duplicate include.
14178 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
14180 * config.gcc: Set cpu_type to m68k for 68010, as well.
14181 (m68010-*-netbsdelf*): New...
14182 (m68k*-*-netbsdelf*): ...targets.
14183 * config/m68k/netbsd-elf.h: New file.
14185 2002-02-02 Kazu Hirata <kazu@hxi.com>
14187 * config/h8300/h8300.c (hand_list): Move inside function_arg.
14189 2002-02-02 Kazu Hirata <kazu@hxi.com>
14191 * config/h8300/h8300.c (h8_push_ops): Move inside
14193 (h8_pop_ops): Likewise.
14194 (h8_move_ops): Likewise.
14196 2002-02-02 Kazu Hirata <kazu@hxi.com>
14198 * config/h8300/h8300.c (os_task): Make it static.
14199 (monitor): Likewise.
14200 (pragma_saveall): Likewise.
14202 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
14204 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14205 constant is a valid sign-extension for Pmode.
14207 2002-02-02 Kazu Hirata <kazu@hxi.com>
14209 * config/h8300/h8300.c: Fix formatting.
14211 2002-02-02 Kazu Hirata <kazu@hxi.com>
14213 * config/h8300/h8300.md: Fix formatting.
14215 2002-02-02 Kazu Hirata <kazu@hxi.com>
14217 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14218 predicates of operands[1]. Split the patterns for each
14221 2002-02-02 Kazu Hirata <kazu@hxi.com>
14223 * config/h8300/h8300.md (xor patterns): Tighten the predicates
14224 of operands[1] to register_operand.
14226 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
14228 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14229 * cpphash.c (_cpp_init_hashtable): Similarly.
14230 * cppinit.c (cpp_create_reader): Default the signed_char flag.
14231 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14232 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14233 (cpp_handle_option): Handle the new options.
14234 * cpplex.c (cpp_interpret_charconst): Use new flag.
14235 * cpplib.h (struct cpp_options): New member signed_char.
14236 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14237 (cpp_options): Handle -fsigned-char and -funsigned-char.
14238 (static_specs): Remove signed_char_spec.
14239 (do_spec1): Don't handle %c.
14240 * system.h: Poison SIGNED_CHAR_SPEC.
14241 * tradcif.y (yylex): Use flag_signed_char.
14242 * tradcpp.h (flag_signed_char): New.
14243 * tradcpp.c (flag_signed_char): New.
14244 (main): Handle new command-line options.
14245 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14247 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14248 * avr/avr.h: Remove old comments.
14249 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14250 (CC1_SPEC): Pass -fsigned-char if -mic*.
14251 (SIGNED_CHAR_SPEC): Remove.
14253 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14255 2002-02-01 Eric Christopher <echristo@redhat.com>
14257 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14258 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14259 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14260 (ASM_OUTPUT_REG_POP): Ditto.
14262 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
14264 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14267 2002-02-02 Jakub Jelinek <jakub@redhat.com>
14269 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14271 2002-02-02 Jakub Jelinek <jakub@redhat.com>
14274 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14277 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14279 * cfganal.c: Include tm_p.h.
14280 (keep_with_call_p): Fix the test that determines if a register holds
14281 the return value of a call.
14283 2002-02-01 DJ Delorie <dj@redhat.com>
14285 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14286 we are given conflicting registers, switch to the other one we
14287 had allocated for us.
14288 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14289 as TImode so we know when the "other" register is available.
14291 2002-02-01 David O'Brien <obrien@FreeBSD.org>
14293 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14296 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14298 * cfganal.c (keep_with_call_p): New function.
14299 (flow_call_edges_add): Prevent splitting a block between a call and
14300 a single-set instruction that should be kept in the same block.
14302 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
14304 * doc/install.texi (avr): Update outdated URL.
14306 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
14308 * config/stormy16/stormy16.md (pushqi): New.
14312 (movhi): Remove stack operands.
14314 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14315 nonimmediate_nonstack_operand.
14316 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14318 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14321 2002-01-31 Jason Merrill <jason@redhat.com>
14323 * Makefile.in (c-parse.c): Handle .output file.
14324 * objc/Make-lang.in (objc-parse.c): Likewise.
14326 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
14328 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14329 the -me[lb] option is given. Don't output the default flag
14332 2002-01-31 Zack Weinberg <zack@codesourcery.com>
14334 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14335 the primary source file; this has not been done yet.
14336 * c-decl.c (c_expand_body): Reset input_filename from
14337 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14339 2002-01-31 Kazu Hirata <kazu@hxi.com>
14341 * rtlanal.c (subreg_regno_offset): Do not use
14342 SUBREG_REGNO_OFFSET.
14343 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14344 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14346 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14348 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
14349 version rather than GNATS version in --version output.
14351 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
14353 * ifcvt.c (noce_process_if_block): Make a copy of the destination
14354 when copying back from a temporary.
14356 2002-01-30 Richard Henderson <rth@redhat.com>
14358 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14359 and new_dest are the same.
14361 2002-01-30 Richard Henderson <rth@redhat.com>
14364 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14365 * rtl.c (note_insn_name): Update.
14366 * emit-rtl.c (remove_unnecessary_notes): Kill it.
14367 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
14368 to perform loop rotation.
14369 (expand_exit_loop_top_cond): New.
14370 * tree.h (expand_exit_loop_top_cond): Declare it.
14371 * c-semantics.c (genrtl_while_stmt): Use it.
14372 (genrtl_for_stmt): Likewise.
14374 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
14376 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14377 arguments to 64-bit boundaries on 64-bit ABIs.
14379 2002-01-30 Steve Ellcey <sje@cup.hp.com>
14381 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14383 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14385 * c-decl.c (grokdeclarator): Handle type being a typedef for an
14388 2002-01-30 David O'Brien <obrien@FreeBSD.org>
14390 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14391 * config/sparc/sparc_bi.h: Remove file.
14392 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14394 2002-01-30 Richard Henderson <rth@redhat.com>
14396 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14398 2002-01-30 Zack Weinberg <zack@codesourcery.com>
14400 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14402 2002-01-30 Jason Merrill <jason@redhat.com>
14404 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14405 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14406 (reg_save): Use DW_CFA_offset_extended_sf instead.
14408 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14410 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14412 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14415 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
14417 * rs6000.md ("*call_value_local32"): Remove constraints.
14418 ("*call_value_local64"): Same.
14419 ("*call_value_indirect_nonlocal_aix32"): Same.
14420 ("*call_value_nonlocal_aix32"): Same.
14421 ("*call_value_indirect_nonlocal_aix64"): Same.
14422 ("*call_value_nonlocal_aix64"): Same.
14423 ("*call_value_nonlocal_sysv"): Same.
14425 2002-01-29 Richard Henderson <rth@redhat.com>
14427 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14429 2002-01-29 Richard Henderson <rth@redhat.com>
14431 * expr.c (force_operand): Ignore flag_pic for detecting pic
14433 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14434 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14435 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14436 instead of open-coded loop.
14437 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14438 be fixed when in use.
14440 2002-01-29 Richard Henderson <rth@redhat.com>
14442 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14443 * sched-rgn.c (propagate_deps): Update them.
14444 * sched-deps.c (sched_analyze_insn): Update them. Flush the
14445 clobbers list when either gets too long.
14447 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14449 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14450 and INDEX_REGS the same as GENERAL_REGS.
14451 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14453 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14455 * tree.c (build_nonstandard_integer_type): Correct prototype.
14457 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
14459 * config/s390/s390.md (movstrsico, movstrdix_64,
14460 movstrsix_31): Remove, replace by ...
14461 (movstrdi_short, movstrsi_short, movstrdi_long,
14462 movstrsi_long): ... these. New.
14463 (movstrdi, movstrsi): Adapt.
14465 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14466 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14467 Remove unnecessary CC clobber.
14468 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14469 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14471 (divmoddi4): Don't partially initialize TImode register.
14473 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
14475 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14477 2002-01-29 Richard Henderson <rth@redhat.com>
14479 * flow.c (print_rtl_and_abort): Remove.
14480 (print_rtl_and_abort_fcn): Remove.
14481 (verify_local_live_at_start): Use dump_bb instead.
14482 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14483 (verify_wide_reg_1): Return 2 on mode test failure.
14485 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14487 PR c/3325, c/3326, c/2511, c/3347
14488 * c-decl.c (enum_decl_context): Remove BITFIELD.
14489 (grokdeclarator): Take bitfield width as an input.
14490 Ensure bitfields are given the correct type. Perform
14491 bitfield width validation with build_bitfield_integer_type
14492 rather than waiting for finish_struct.
14493 (grok_typename, grok_typename_in_parm_context, start_decl,
14494 push_parmdecl, grokfield, start_function): Update calls to
14496 (build_bitfield_integer_type): New function.
14497 (finish_struct): Move bitfield validation to grokdeclarator
14498 and build_bitfield_integer_type.
14499 * tree.c (build_nonstandard_integer_type): New function.
14500 * tree.h (build_nonstandard_integer_type): New prototype.
14502 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14504 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14507 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14508 don't ignore unrecognized -W* options.
14509 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14510 * cpplib.h (cpp_handle_option): Adjust prototype.
14511 * c-decl.c (c_decode_options): Pass 0 as last argument to
14515 * gcc.c (cpp_unique_options): Split from cpp_options.
14516 (cpp_options): Source cpp_unique_options.
14517 (default_compilers): Use cpp_unique_options instead of cpp_options
14518 when used together with cc1_options.
14519 (static_specs): Add cpp_unique_options.
14520 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14521 when used together with cc1_options.
14523 2002-01-29 Kazu Hirata <kazu@hxi.com>
14525 * config/h8300/h8300-protos.h: Update the prototype of
14527 * config/h8300/h8300.c (output_a_shift): Remove an unused
14528 argument 'insn'. Remove redundant code.
14529 * config/h8300/h8300.md: Adust to the new prototype of
14532 2002-01-29 Kazu Hirata <kazu@hxi.com>
14534 * config/h8300/h8300-protos.h: Update the prototypes of
14535 emit_a_rotate and expand_a_rotate.
14536 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14537 first argument to 'enum rtx_code'.
14538 (expand_a_rotate): Likewise.
14540 2002-01-28 Kazu Hirata <kazu@hxi.com>
14542 * config/h8300/h8300-protos.h: Update the prototype of
14544 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14546 * config/h8300/h8300.md: Adjust to the new prototype.
14548 2002-01-28 Kazu Hirata <kazu@hxi.com>
14550 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14553 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14555 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14556 is a fixed register before returning pic_offset_table_rtx.
14557 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14558 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14560 2002-01-28 Jason Merrill <jason@redhat.com>
14562 * dwarf2.h: Sync with src version.
14564 2002-01-28 Paul Koning <pkoning@equallogic.com>
14566 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14567 BT_FN_VOID_PTR_VAR.
14568 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14569 * doc/extend.texi (__builtin_prefetch): Update documentation:
14570 first argument is now const void ptr.
14572 2002-01-28 Kazu Hirata <kazu@hxi.com>
14574 * config/h8300/h8300-protos.h: Remove an unused prototype.
14576 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
14578 * toplev.c (lang_independent_init): Round up identifier size.
14580 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14582 * config.gcc: Revert previous change.
14584 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
14586 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14588 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14590 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14591 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
14592 other non-elf netbsd config frags.
14593 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14594 collect2 will does that.
14595 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14596 shared-lib frobbing will work.
14598 2002-01-28 Kazu Hirata <kazu@hxi.com>
14600 * config/h8300/h8300.h: Fix formatting.
14601 * config/h8300/h8300.md: Likewise.
14603 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
14605 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14606 the old, removed AAA_standards fix.
14607 * fixinc/fixincl.x: Rebuilt.
14609 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
14611 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14612 atexit call in crtbegin, hooked in after call to frame_dummy;
14613 register EH before registering __fini__start.
14615 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
14617 * config/rs6000/altivec.h: Remove spurious semicolons.
14619 2002-01-27 Kazu Hirata <kazu@hxi.com>
14621 * config/h8300/h8300.md: Replace dead bit extraction patterns
14622 with ones that work.
14624 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14626 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14627 if not STRICT_ALIGNMENT.
14628 * rtl.h (MEM_ALIGN): Likewise.
14630 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
14632 * doc/invoke.texi (-fdump-translation-unit): Revert this
14633 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
14635 2002-01-27 Kazu Hirata <kazu@hxi.com>
14637 * config/h8300/h8300.md (define_constants): New.
14638 (anonymous patterns) Use defined constants appropriately.
14640 2002-01-27 Kazu Hirata <kazu@hxi.com>
14642 * config/h8300/h8300.c (function_arg): Remove redundant code.
14644 2002-01-26 Richard Henderson <rth@redhat.com>
14646 * sched-deps.c (reg_pending_uses_head): New.
14647 (reg_pending_barrier): Rename from reg_pending_sets_all.
14648 (find_insn_list): Don't mark inline.
14649 (find_insn_mem_list): Remove.
14650 (add_dependence_list, add_dependence_list_and_free): New.
14651 (flush_pending_lists): Replace only_write param with separate
14652 for_read and for_write parameters. Update all callers. Use
14653 add_dependence_list_and_free.
14654 (sched_analyze_1): Do not add reg dependencies here; just set
14655 the pending bits. Use add_dependence_list.
14656 (sched_analyze_2): Likewise.
14657 (sched_analyze_insn): Replace schedule_barrier_found with
14658 reg_pending_barrier. Add all dependencies for pending reg
14659 uses, sets, and clobbers.
14660 (sched_analyze): Don't add reg dependencies for calls, just
14661 set pending bits. Use regs_invalidated_by_call. Treat
14662 sched_before_next_call as a normal list, not a fake insn.
14663 (init_deps): No funny init for sched_before_next_call.
14664 (free_deps): Free pending mems lists. Don't zero reg_last.
14665 (init_deps_global): Init reg_pending_uses.
14666 (finish_deps_global): Free it.
14667 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14668 (find_insn_mem_list): Remove.
14669 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14670 (propagate_deps): Use them. Zero temp mem lists.
14672 2002-01-26 Richard Henderson <rth@redhat.com>
14674 * Makefile.in (CRTSTUFF_CFLAGS): New.
14675 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14676 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14677 crtstuff.c instead of alpha assembly version.
14678 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14679 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14680 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14681 (__do_global_dtors_aux): Mark used.
14682 (frame_dummy, __do_global_ctors_aux): Mark used.
14683 (fini_dummy, init_dummy): Remove.
14685 * config/alpha/crtbegin.asm: Remove file.
14686 * config/alpha/crtend.asm: Remove file.
14687 * config/alpha/t-crtbe: Remove file.
14688 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14689 (LINK_EH_SPEC): New.
14691 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14692 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14693 calling constructors.
14694 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14696 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14697 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14698 CRT_END_INIT_DUMMY hack.
14699 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14700 FORCE_{INIT,FINI}_SECTION_ALIGN.
14702 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14703 FORCE_{INIT,FINI}_SECTION_ALIGN.
14705 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14706 invocation sequence.
14707 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14709 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14710 (FORCE_CODE_SECTION_ALIGN): New.
14712 2002-01-26 Richard Henderson <rth@redhat.com>
14714 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14716 2002-01-26 Richard Henderson <rth@redhat.com>
14718 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14719 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14721 2002-01-26 Kazu Hirata <kazu@hxi.com>
14723 * config/h8300/h8300.md: Remove bit extraction patterns that
14724 cannot be triggered.
14725 Restrict each bit extraction pattern to a variant on which the
14728 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14730 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14732 2002-01-26 Kazu Hirata <kazu@hxi.com>
14734 * config/h8300/h8300.md: Remove bit test patterns that cannot
14736 Restrict each bit test pattern to a variant on which the
14739 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14741 * builtins.c (expand_builtin_strncat): Remove redundant check for
14744 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14746 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14748 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14751 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14753 * dbxout.c (dbxout_init): Use assemble_name rather than just
14754 stripping off the first character.
14755 (dbxout_source_file): Likewise.
14757 2002-01-25 DJ Delorie <dj@redhat.com>
14759 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14760 using rtx_equal_p, not by comparing pointers.
14762 2002-01-25 Steve Ellcey <sje@cup.hp.com>
14764 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14765 for PIC_OFFSET_TABLE_REGNUM.
14766 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14768 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14770 * config.gcc (x86_64-*-freebsd*): New target.
14771 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14773 (i[34567]86-*-freebsd*): Don't include svr4.h.
14774 * config/i386/freebsd64.h: New file.
14776 2002-01-25 Douglas B Rupp <rupp@gnat.com>
14778 * config/alpha/x-vms (version): Make static.
14780 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14781 in previous checkin.
14783 * Makefile.in (install-headers-cp): New target.
14784 * config.gcc (alpha-dec-*vms*): Install headers with
14787 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14789 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14792 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14794 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14795 of compare_tree_int.
14796 (expand_builtin_strncat): Likewise.
14797 * c-decl.c (finish_struct): Use tree_low_cst.
14798 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14799 * tree.c (compare_tree_int): Likewise.
14801 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14803 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14804 adjustments even if they are implemented by more than two insns.
14806 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14808 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14809 * df.h (struct ref): Kill B.
14810 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14812 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14813 * flow.c (propagate_one_insn): Use it.
14814 (mark_used_regs): Handle NIL.
14816 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14818 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14821 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14823 * rs6000.md (prefetch): Make address V4SI mode so that the address
14824 is restricted to legitimate form for instruction.
14826 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14828 * doc/install.texi (xtensa-*-elf): New target.
14829 (xtensa-*-linux*): New target.
14830 * doc/contrib.texi: Add myself.
14832 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14834 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14835 purpose register to hold an SImode (or smaller) value.
14837 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14839 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14841 * crtstuff.c: Likewise.
14843 2002-01-25 Kazu Hirata <kazu@hxi.com>
14845 * config/h8300/h8300.md (negation patterns): Tighten
14846 predicates to register_operand.
14848 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
14850 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14853 * builtins.c (expand_builtin_prefetch): Same.
14855 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14857 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14860 2002-01-24 Kazu Hirata <kazu@hxi.com>
14862 * config/h8300/h8300.c (print_operand): Remove support for
14863 operand character 'A'.
14864 * config/h8300/h8300.md (three anonymous patterns): Replace
14865 operand character 'A' with either 'T' or 'S'.
14867 2002-01-24 Kazu Hirata <kazu@hxi.com>
14869 * config/h8300/h8300.c (print_operand): Remove support for
14870 operand character 'U'.
14872 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
14874 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14876 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
14878 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14879 values to be assigned to the stack pointer.
14881 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14883 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14884 to const_double needs to be done right for big-endian systems.
14886 2002-01-24 Jason Merrill <jason@redhat.com>
14889 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14890 to can_throw_internal.
14892 2002-01-23 Richard Henderson <rth@redhat.com>
14894 * fold-const.c (fold): Change UINT_MAX test to check vs precision
14895 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
14897 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14899 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14900 (symGOT2reg): Use them, then set as GOT value as unchanging.
14901 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
14902 as a temporary, if possible.
14903 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
14904 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14906 2002-01-23 Kazu Hirata <kazu@hxi.com>
14908 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14909 accept to accept 0x80 as operands[2].
14911 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14913 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14915 2002-01-23 Richard Henderson <rth@redhat.com>
14917 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14919 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
14921 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14922 (parmlist_or_identifiers_1): Verify that only a parmlist follows
14925 2002-01-23 Richard Henderson <rth@redhat.com>
14927 * expr.c (move_by_pieces_1): Extend size before negation.
14929 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14930 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14931 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14932 * config/m68k/t-m68kelf: Likewise.
14934 2002-01-23 Bob Wilson <bob.wilson@acm.org>
14936 * config/xtensa/elf.h: New file.
14937 * config/xtensa/lib1funcs.asm: New file.
14938 * config/xtensa/lib2funcs.S: New file.
14939 * config/xtensa/linux.h: New file.
14940 * config/xtensa/t-xtensa: New file.
14941 * config/xtensa/xtensa-config.h: New file.
14942 * config/xtensa/xtensa-protos.h: New file.
14943 * config/xtensa/xtensa.c: New file.
14944 * config/xtensa/xtensa.h: New file.
14945 * config/xtensa/xtensa.md: New file.
14946 * config.gcc (xtensa-*-elf*): New target.
14947 (xtensa-*-linux*): New target.
14948 * cse.c (canon_hash): Compare rtx pointers instead of register
14949 numbers. This is required for the Xtensa port.
14950 * integrate.c (copy_insn_list): Handle case where the static
14951 chain is in memory and the memory address has to be copied to
14953 * doc/invoke.texi (Option Summary): Add Xtensa options.
14954 (Xtensa Options): New node.
14955 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14957 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14959 * diagnostic.c (internal_error): Do ICE suppression only
14960 when ENABLE_CHECKING is not defined.
14962 * c-typeck.c (require_complete_type): Return error_mark_node
14963 if type is error_mark_node.
14965 2002-01-23 Janis Johnson <janis187@us.ibm.com>
14967 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14968 -Os and issue a warning.
14970 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14972 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14973 current (lack of) need for host configuration by hand.
14975 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14976 references. Documentation of some target macros moved from
14977 hostconfig.texi to tm.texi.
14979 2002-01-23 Will Cohen <wcohen@redhat.com>
14981 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14984 2002-01-23 Kazu Hirata <kazu@hxi.com>
14986 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14989 2002-01-23 Jason Merrill <jason@redhat.com>
14991 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14993 * function.c (assign_parms): Don't put args of inline functions
14994 into registers when not optimizing.
14996 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
14998 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14999 (prologue_use): New pattern.
15000 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
15001 preference to gen_rtx_USE.
15002 (thumb_expand_prologue): Use gen_prologue_use in preference to
15004 (thumb_expand_epilogue): Use gen_prologue_use in preference to
15007 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
15009 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
15011 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
15014 * doc/extend.texi: Correct documentation of __alignof__.
15016 2002-01-22 Zack Weinberg <zack@codesourcery.com>
15018 * params.h: Rename arguments of DEFPARAM so that it will be
15019 recognized as a translation keyword.
15021 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15023 * extend.texi: Document altivec functions.
15024 Fix N-bit adjectives in X86 builtin documentation.
15026 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
15028 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
15029 auto_inc_dec values.
15031 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
15033 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
15035 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
15037 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
15039 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
15041 2002-01-22 Richard Henderson <rth@redhat.com>
15043 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
15044 copy_insn not copy_rtx.
15046 2002-01-23 Alan Modra <amodra@bigpond.net.au>
15048 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
15049 "nonzero" as that might add "1" bits. Ensure "constop" is
15050 properly sign extened.
15051 (force_to_mode): Tweak for sign extended constop.
15053 2002-01-22 Richard Henderson <rth@redhat.com>
15055 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15056 for_each_rtx instead of assuming we're already looking at the MEM.
15057 (split_small_symbolic_mem_operand): Likewise.
15058 * config/alpha/alpha.h (PREDICATE_CODES): Update.
15059 * config/alpha/alpha.md (small symbolic memory splitters): Update.
15061 2002-01-22 Richard Henderson <rth@redhat.com>
15063 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15064 sequence number for the literal.
15065 (divmoddi_internal_er): Likewise.
15067 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
15070 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15071 in LIBICONV variable.
15072 * configure: Regenerated.
15074 2002-01-22 Krister Walfridsson <cato@df.lth.se>
15076 * dependence.c (build_def_use): Remove array_idx.
15078 * dwarfout.c (last_filename): Remove.
15079 (output_compile_unit_die): Remove last_filename.
15081 2002-01-22 Roger Sayle <roger@eyesopen.com>
15082 Richard Henderson <rth@redhat.com>
15085 * fold-const.c (fold): Optimize unsigned comparisons against
15086 UINT_MAX (and similar unsigned constants).
15088 2002-01-22 Janis Johnson <janis187@us.ibm.com>
15090 * Makefile.in (loop.o): Depend on OPTABS_H.
15091 * loop.c (emit_prefetch_instructions): Check the prefetch operand
15092 against the predicate.
15095 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15096 for the address operand.
15098 2002-01-22 Richard Henderson <rth@redhat.com>
15100 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15102 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
15105 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15106 preprocessor flags.
15108 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
15110 * config.gcc (x86_64-*-netbsd*): New target.
15111 * config/i386/netbsd64.h: New file.
15113 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15115 * regrename.c (kill_value): Fix typo.
15117 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
15119 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15121 * config/rs6000/rs6000.h: Same.
15123 * function.c (instantiate_virtual_regs): Remove
15124 STARTING_FRAME_PHASE.
15125 (assign_stack_local_1): Same.
15126 Calculate frame phase.
15128 2002-01-22 Nick Clifton <nickc@redhat.com>
15130 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15131 variable declaration to outer scope in order to simplify
15133 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15134 arm_hard_regno_mode_ok.
15135 * config/arm/arm-protos.h: Add a prototype for
15136 arm_hard_regno_mode_ok.
15137 * config/arm/arm.c (soft_df_operand): Remove now redundant
15138 check for DImode values using IP_REGNUM.
15139 (nonimmediate_soft_df_operand): Remove now redundant check for
15140 DImode values using IP_REGNUM.
15141 (arm_hard_regno_mode_ok): New function. New check: make sure
15142 that DImode values are not stored in IP_REGNUM.
15144 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15146 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15148 2002-01-22 Jason Merrill <jason@redhat.com>
15150 * c-semantics.c (genrtl_compound_stmt): Only check nesting
15151 consistency if this COMPOUND_STMT is scoped.
15153 2002-01-22 Kazu Hirata <kazu@hxi.com>
15155 * predict.c: Fix formatting.
15156 * print-tree.c: Likewise.
15157 * protoize.c: Likewise.
15158 * real.h: Likewise.
15160 * sbitmap.h: Likewise.
15161 * scan.c: Likewise.
15162 * sched-deps.c: Likewise.
15163 * sched-vis.c: Likewise.
15164 * sdbout.c: Likewise.
15165 * sibcall.c: Likewise.
15167 * ssa-ccp.c: Likewise.
15168 * ssa-dce.c: Likewise.
15169 * stmt.c: Likewise.
15170 * stor-layout.c: Likewise.
15171 * system.h: Likewise.
15173 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15175 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15176 if fits in bounds of base type.
15178 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15179 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15180 (add_bound_info, default): If can't find a context, make a
15182 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15184 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
15186 * c-typeck.c (parser_build_binary_op): If result from
15187 build_binary_op is ERROR_MARK just return error_mark_node without
15188 further processing.
15190 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
15192 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15193 Split a.out-specific bits into...
15194 * config/netbsd-aout.h: ...this.
15195 * config/netbsd-elf.h: New file.
15196 * config/alpha/netbsd-elf.h: Remove.
15197 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15198 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15199 (STARTFILE_SPEC): Remove redundant definition.
15200 (ENDFILE_SPEC): Likewise.
15201 (LINK_SPEC): Likewise.
15202 (CPP_SPEC): Likewise.
15203 (ASM_SPEC): Likewise.
15204 (LIB_SPEC): Likewise.
15205 (SWITCH_TAKES_ARG): Likewise.
15206 (TARGET_MEM_FUNCTIONS): Likewise.
15207 (CPP_PREDEFINES): Redefine.
15208 (ASM_FINAL_SPEC): Remove redefinition.
15209 (ASM_COMMENT_START): Redefine.
15210 (FUNCTION_PROFILER): Define.
15211 (TARGET_VERSION): Redefine.
15212 Comment and formatting cleanup.
15213 * config/i386/netbsd.h: Include <netbsd-aout.h>.
15214 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15215 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15216 big- or little-endian.
15217 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15218 * config.gcc (*-*-netbsd*): Add definitions common to all
15220 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15221 gnu_ld definitions. Add netbsd-elf.h to and remove
15222 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
15223 tmake_file, and don't lose previous tmake_file contents.
15224 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15225 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15226 gnu_ld definitions. Add netbsd-elf.h to tm_file.
15227 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15228 (mipsel-*-netbsd*): Rename this to...
15229 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
15230 mips/little.h to tm_file for mips*el-*.
15231 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15232 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15233 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15235 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
15237 * pa-protos.h (reg_before_reload_operand): New function prototype.
15238 * pa.c (reg_before_reload_operand): New function implementation.
15239 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
15240 contraints to "*m".
15242 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15244 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15246 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
15248 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15249 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15250 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15251 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15252 (ENDFILE_SPEC): Undefine.
15253 (STARTFILE_SPEC): Redefine for PA.
15255 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15257 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15259 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
15261 * config.gcc: Add entries to supported PowerPC --with-cpu
15264 2002-01-21 Jakub Jelinek <jakub@redhat.com>
15266 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15267 true for 64-bit mode only SSE registers in 32-bit mode.
15269 2002-01-21 Kazu Hirata <kazu@hxi.com>
15271 * unwind-dw2.c: Fix formatting.
15272 * unwind-dw2-fde.c: Likewise.
15273 * unwind-dw2-fde.h: Likewise.
15274 * unwind-pe.h: Likewise.
15275 * varasm.c: Likewise.
15276 * varray.h: Likewise.
15278 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
15280 Remove workaround for register stack overwrite bug in mmix.
15281 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15282 support for TARGET_REG_STACK_FILL_BUG.
15283 * config/mmix/mmix.h: Remove member has_call_without_parameters.
15284 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15286 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15287 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15288 -mno-reg-stack-fill-bug-workaround.
15289 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15290 machine member has_call_without_parameters.
15291 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15292 -mreg-stack-fill-bug-workaround and
15293 -mno-reg-stack-fill-bug-workaround.
15294 (MMIX Options): Ditto.
15296 2002-01-21 Kazu Hirata <kazu@hxi.com>
15298 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15300 Remove redundant code.
15302 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
15304 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15305 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15306 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15307 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15308 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15309 out target macro definitions and non-target-specific comments
15310 mostly taken from old versions of the manual.
15312 2002-01-20 Kazu Hirata <kazu@hxi.com>
15314 * config/h8300/h8300.h: Fix comment formatting.
15315 * config/ia64/aix.h: Likewise.
15316 * config/ia64/ia64-protos.h: Likewise.
15317 * config/ia64/ia64.c: Likewise.
15318 * config/ia64/ia64.h: Likewise.
15319 * config/ia64/ia64intrin.h: Likewise.
15320 * config/ia64/linux.h: Likewise.
15321 * config/ia64/unwind-aix.c: Likewise.
15322 * config/ia64/unwind-ia64.c: Likewise.
15324 2002-01-20 Kazu Hirata <kazu@hxi.com>
15326 * config/h8300/h8300.c: Revise comments about shift code.
15328 2002-01-20 Kazu Hirata <kazu@hxi.com>
15330 * config/h8300/h8300.c (function_arg): Update a comment.
15332 2002-01-20 Kazu Hirata <kazu@hxi.com>
15334 * config/h8300/h8300.md: Update the comments at the beginning
15337 2002-01-20 Kazu Hirata <kazu@hxi.com>
15339 * config/i370/i370.c: Fix comment formatting.
15340 * config/i370/i370.h: Likewise.
15341 * config/i370/i370.md: Likewise.
15342 * config/i370/linux.h: Likewise.
15344 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15346 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15348 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15349 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15350 in incomplete case.
15352 2002-01-20 Graham Stott <grahams@redhat.com>
15354 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15356 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
15358 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15360 2002-01-19 Tom Rix <trix@redhat.com>
15362 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15364 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
15366 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15368 * function.c (assign_stack_local_1): Adjust x_frame_offset with
15369 STARTING_FRAME_PHASE.
15370 (STARTING_FRAME_PHASE): New.
15371 (instantiate_virtual_regs): Check saneness of
15372 STARTING_FRAME_PHASE.
15374 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15376 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
15378 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15380 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
15382 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15383 be used for bootstrapping GCC 3.0.
15385 2002-01-18 Kazu Hirata <kazu@hxi.com>
15387 * config/h8300/h8300.md: Fix an insn length.
15389 2002-01-18 Kazu Hirata <kazu@hxi.com>
15391 * bitmap.h: Fix comment formatting.
15392 * combine.c: Likewise.
15393 * cppfiles.c: Likewise.
15394 * c-pragma.h: Likewise.
15395 * c-typeck.c: Likewise.
15397 * dwarf2out.c: Likewise.
15398 * function.c: Likewise.
15400 * genattrtab.c: Likewise.
15401 * gthr-win32.h: Likewise.
15402 * haifa-sched.c: Likewise.
15403 * predict.c: Likewise.
15404 * rtlanal.c: Likewise.
15406 * unwind-dw2-fde.h: Likewise.
15407 * unwind-pe.h: Likewise.
15408 * vmsdbgout.c: Likewise.
15410 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15412 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15413 if type_required and passed decl.
15415 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
15417 * config.gcc (cpu_type): Include altivec.h in powerpc
15421 * config/rs6000/altivec.h: New.
15423 2002-01-17 David Edelsohn <edelsohn@gnu.org>
15425 * doc/install.texi (*-ibm-aix*): Update assembler and exception
15426 handling information.
15427 * doc/trouble.texi (Interoperation): Add libstdc++ information
15429 (Misunderstandings): Add template instantiation and static template
15430 member information for AIX.
15432 2002-01-17 Jason Merrill <jason@redhat.com>
15434 * dbxout.c (dbxout_type): Support const and volatile.
15436 * except.c (add_partial_entry): Remove backwards compatibility code.
15437 (end_protect_partials): Likewise.
15439 2002-01-17 Jakub Jelinek <jakub@redhat.com>
15441 * config/ia64/ia64.md (prologue_use): New.
15442 * config/ia64/ia64.c (ia64_expand_prologue): Use
15443 gen_prologue_use instead of gen_rtx_USE.
15444 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15445 as CODE_FOR_pred_rel_mutex.
15446 (ia64_sched_reorder2): Likewise.
15448 2002-01-16 Eric Christopher <echristo@redhat.com>
15450 * config/mips/r3900.h: Reformat.
15451 (SUBTARGET_CPP_SIZE_SPEC): Remove.
15452 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15453 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15454 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15455 * config/mips/t-elf: Remove mips3 multilib.
15457 2002-01-16 H.J. Lu <hjl@gnu.org>
15459 * config/mips/linux.h: Include "mips/abi64.h".
15461 2002-01-16 H.J. Lu <hjl@gnu.org>
15463 * config/mips/t-linux: New.
15465 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15467 * config/mips/linux.h: Don't include "gofast.h".
15468 (INIT_SUBTARGET_OPTABS): Removed.
15470 2002-01-16 Kazu Hirata <kazu@hxi.com>
15472 * config/h8300/h8300-protos.h: Replace emit_a_shift with
15474 * config/h8300/h8300.c: Likewise.
15475 * config/h8300/h8300.md: Likewise.
15477 2002-01-16 Kazu Hirata <kazu@hxi.com>
15479 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15480 spaces after an opcode name.
15481 (pushqi1_h8300hs): Likewise.
15482 (pushhi1_h8300hs): Likewise.
15484 2002-01-16 Kazu Hirata <kazu@hxi.com>
15486 * doc/extend.texi: Replace "option" with "attribute"
15489 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15491 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15492 (and:DI () (const_int -8)).
15493 (split_small_symbolic_mem_operand): Split
15494 (mem (and:DI () (const_int -8)).
15496 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15499 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15500 same way as TYPE_IMUL.
15501 (ultrasparc_sched_reorder): Likewise.
15502 * config/sparc/sparc.md (type): Add comment to update
15503 ultrasparc_sched_reorder when making changes.
15505 2002-01-16 Kazu Hirata <kazu@hxi.com>
15507 * doc/invoke.texi: Change the dump file name of block
15508 reordering pass from 28.bbro to 29.bbro.
15509 Mention -dk option.
15511 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
15513 * i386.md (minsf splitter): Fix pasto.
15515 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15517 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15518 to frame pointer initialisation instruction.
15519 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15520 initialisation instruction.
15521 (soft_df_operand): Do not accept the IP register.
15522 (nonimmediate_soft_df_operand): Do not accept the IP register.
15524 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15527 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15528 MASK_V8 being both set.
15530 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
15532 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15533 insn for GOT register; add REG_MAYBE_DEAD notes instead.
15534 config/s390/s390.md (call, call_value): Add GOT register to
15535 CALL_INSN_FUNCTION_USAGE where needed.
15536 (call_exp, call_value_exp): New.
15538 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15540 * config/arm/arm.c: General formatting tidy up.
15542 2002-01-16 Graham Stott <grahams@redhat.com>
15544 * calls.c (try_to_integrate): Use "(size_t)" intermediate
15545 cast and when casting an integer literal to "rtx" pointer.
15546 (expand_call): Likewise.
15547 * flow.c (try_pre_increment): Likewise.
15548 (find_use_as_address): Likewise.
15549 * integrate.c (expand_iline_function): Likewise.
15550 * regmove.c (try_auto_increment): Likewise.
15552 2002-01-16 Graham Stott <grahams@redhat.com>
15554 * sched-rgn.c (passed): Use sbitmap_free.
15555 (header): Likewise.
15557 (in_queue): Likewise.
15558 (in_stack): Likewise.
15560 2002-01-15 Eric Christopher <echristo@redhat.com>
15562 * flow.c (propagate_one_insn): Change to use fatal_insn.
15564 2002-01-15 Kazu Hirata <kazu@hxi.com>
15566 * expmed.c (extract_fixed_bit_field): Remove unused code.
15567 * system.h: Poison SLOW_ZERO_EXTEND.
15568 * doc/tm.texi: Remove.
15569 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15570 * config/arm/arm.h: Likewise.
15571 * config/avr/avr.h: Likewise.
15572 * config/clipper/clipper.h: Likewise.
15573 * config/convex/convex.h: Likewise.
15574 * config/d30v/d30v.h: Likewise.
15575 * config/dsp16xx/dsp16xx.h: Likewise.
15576 * config/elxsi/elxsi.h: Likewise.
15577 * config/fr30/fr30.h: Likewise.
15578 * config/h8300/h8300.h: Likewise.
15579 * config/i370/i370.h: Likewise.
15580 * config/i386/i386.h: Likewise.
15581 * config/m68k/m68k.h: Likewise.
15582 * config/mips/mips.h: Likewise.
15583 * config/ns32k/ns32k.h: Likewise.
15584 * config/pdp11/pdp11.h: Likewise.
15585 * config/pj/pj.h: Likewise.
15586 * config/s390/s390.h: Likewise.
15587 * config/sh/sh.h: Likewise.
15588 * config/stormy16/stormy16.h: Likewise.
15589 * config/v850/v850.h: Likewise.
15590 * config/vax/vax.h: Likewise.
15591 * config/we32k/we32k.h: Likewise.
15593 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15595 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15596 (altivec_lvsl): Change constraint to b.
15597 (altivec_lvsr): Same.
15598 (altivec_lvebx): Same.
15599 (altivec_lvehx): Same.
15600 (altivec_lvewx): Same.
15601 (altivec_lvxl): Same.
15602 (altivec_lvx): Same.
15603 (altivec_stvx): Add parallel.
15604 (altivec_stvxl): Same.
15605 (altivec_stvehx): Same.
15606 (altivec_stvebx): Same.
15607 (altivec_stvebx): Same.
15609 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15611 * config.gcc: Change altivec.h to altivec-defs.h.
15613 * config/rs6000/altivec.h: Delete.
15615 * config/rs6000/altivec-defs.h: Add.
15617 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15619 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15622 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15623 less than or equal to eight bytes.
15625 * vax.md (andsi3): Remove constraints and change SET destination
15626 operand type to nonimmediate_operand.
15627 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
15628 when it is a CONST_INT.
15630 2002-01-15 Jason Merrill <jason@redhat.com>
15632 * c-common.def (FILE_STMT): New code.
15633 * c-common.c (statement_code_p): It's a statement.
15634 * c-common.h (stmt_tree_s): Add x_last_filename.
15635 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15636 (last_expr_filename): New macro.
15637 * c-semantics.c (begin_stmt_tree): Initialize it.
15638 (add_stmt): If the filename changed, also insert a
15640 (expand_stmt): Handle seeing one.
15642 2002-01-15 Eric Christopher <echristo@redhat.com>
15644 * flow.c (propagate_one_insn): Add error message and print out
15645 insn for debugging.
15647 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15649 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15650 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15651 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15652 TRAMPOLINE_ALIGNMENT.
15653 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
15655 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15656 PCC_BITFIELD_TYPE_MATTERS.
15657 * config/interix.h (STDC_VALUE): Remove. Use
15658 STDC_0_IN_SYSTEM_HEADERS.
15659 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15660 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15661 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15663 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15665 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15666 not work on this platform currently.
15668 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15670 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15671 readonly_warning in _().
15673 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15675 * gcc.c (delete_if_ordinary): Backout previous change.
15677 2002-01-15 Kazu Hirata <kazu@hxi.com>
15679 * config/h8300/h8300.c (print_operand): Remove support for
15680 unused operand characters.
15682 * read-rtl.c: Fix formatting.
15683 * real.c: Likewise.
15684 * recog.c: Likewise.
15685 * regclass.c: Likewise.
15686 * regmove.c: Likewise.
15687 * reg-stack.c: Likewise.
15688 * reload1.c: Likewise.
15689 * rtlanal.c: Likewise.
15691 2002-01-15 Kazu Hirata <kazu@hxi.com>
15693 * config/i386/i386.c: Fix formatting.
15695 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15697 * c-typeck.c (process_init_element): Don't save_expr
15698 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15700 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15702 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15703 emit optional traceback table if optimize_size or TARGET_ELF.
15704 * config/rs6000/rs6000.md (prefetch): New.
15706 2002-01-15 Andreas Jaeger <aj@suse.de>
15708 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15710 2002-01-15 Kazu Hirata <kazu@hxi.com>
15712 * mips-tfile.c: Fix formatting.
15714 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15716 * unroll.c (final_reg_note_copy): Fix previous commit.
15718 2002-01-14 Kazu Hirata <kazu@hxi.com>
15720 * config/h8300/h8300-protos.h: Remove the prototype for
15722 * config/h8300/h8300.c (eq_operator): Remove.
15724 2002-01-14 Richard Henderson <rth@redhat.com>
15726 * config/i386/i386.md (prefetch): Tidy.
15727 (prefetch_3dnow): Fix locality operand.
15729 2002-01-14 Richard Henderson <rth@redhat.com>
15731 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15732 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15734 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
15736 * reload1.c (reload_combine): Pass reg_sum replacement through
15737 copy_rtx in loop performing multiple changes.
15739 2002-01-14 Jakub Jelinek <jakub@redhat.com>
15741 * except.c (remove_unreachable_regions): New.
15742 (free_eh_status): Clear exception_handler_labels.
15743 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15744 (find_exception_handler_labels): Don't add the same label more than
15746 (remove_exception_handler_label): Don't die if
15747 find_exception_handler_labels hasn't been called for the current
15750 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
15752 * toplev.c (rest_of_compilation): Rebuild jump labels after
15755 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
15757 * doc/extend.texi: Move documentation of X86 built-in functions
15759 * doc/invoke.texi: From here.
15760 * doc/sourcebuild.texi: Document location of documentation for
15761 machine built-in functions.
15763 2002-01-13 Christopher Faylor <cgf@redhat.com>
15765 * cppfiles.c (TEST_THRESHOLD): New macro.
15766 (SHOULD_MMAP): Ditto.
15767 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15770 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
15772 * unroll.c (final_reg_note_copy): Properly handle
15774 (unroll_loops): Fix LOOP_CONDITION heuristics.
15776 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
15778 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15779 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15781 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
15783 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15786 2002-01-14 Tom Rix <trix@redhat.com>
15788 * config/rs6000/rs6000.md: Fix typo with sradi.
15790 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15792 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15793 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15794 (clrstrdi, clrstrsi): Adapt callers.
15796 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15798 (movti splitter): Never use register 0 as base register.
15800 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15802 * combine.c (simplify_shift_const): Always generate new rtx
15803 for shift expression instead of reusing given expression.
15805 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15807 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15808 alpha_legitimize_address unless mode is Pmode.
15810 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15812 * doc/md.texi (Modifiers): Document the '*' constraint for the
15815 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15816 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15819 2002-01-13 Richard Henderson <rth@redhat.com>
15821 * reload.c (find_reloads): Use a hard reg destination as reload reg
15822 for an input reload of the source.
15824 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15826 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15829 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15831 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15832 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15834 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15836 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15838 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15840 2002-01-12 Tom Rix <trix@redhat.com>
15842 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15845 2002-01-12 Richard Henderson <rth@redhat.com>
15847 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15849 * doc/invoke.texi: Update Alpha options.
15851 * doc/invoke.texi: Update i386 built-in function lists.
15853 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
15855 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15856 referencing outside.
15858 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15860 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15861 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15862 offsets, and change line folding.
15863 * optabs.c (expand_binop): Remove warnings.
15864 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15866 2002-01-12 Graham Stott <grahams@redhat.com>
15868 * attribs.c (handle_deprecated_attribute): constify WHAT.
15869 * diagnostic.c (warn_deprecated_use): Add braces, fixes
15870 dangling else warning and constify WHAT.
15871 * except.h (struct function, struct inline_remap): Move
15872 struct tag forward defs before all prototypes.
15873 (duplicate_eh_regions): Whitespace.
15875 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
15877 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15878 MODE_BASE_REG_CLASS.
15879 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15881 2002-01-12 Richard Henderson <rth@redhat.com>
15883 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15884 (ix86_expand_vector_move): New.
15885 (bdesc_2arg): Remove andps, andnps, orps, xorps.
15886 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
15887 Remove old prefetch builtins. Special case the logicals removed above.
15888 (ix86_expand_builtin): Likewise.
15889 (safe_vector_operand): Use V4SFmode, not TImode.
15890 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
15891 (ix86_expand_timode_binop_builtin): New.
15892 * config/i386/i386-protos.h: Update.
15893 * config/i386/i386.h (enum ix86_builtins): Update.
15894 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15895 Use ix86_expand_vector_move in vector move expanders.
15896 (movti_internal, movti_rex64): Add xorps alternative.
15897 (sse_clrv4sf): Rename and adjust from sse_clrti.
15898 (prefetch): Don't work so hard.
15899 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15900 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15901 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15903 2002-01-11 Richard Henderson <rth@redhat.com>
15905 * config/i386/mmintrin.h: New file.
15906 * config/i386/xmmintrin.h: New file.
15907 * config.gcc (i?86-*-*): Add extra_headers.
15908 * simplify-rtx.c (simplify_unary_operation): Handle saturating
15910 (simplify_binary_operation): Handle saturating arithmetic codes.
15911 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15912 not the lowpart subreg.
15913 (ix86_expand_builtin): Return a TImode dummy register instead of 0
15915 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15917 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15919 * conflict.c (conflict_graph_compute): Free regsets when finished.
15920 * ssa.c (compute_coalesced_reg_partition): Likewise.
15922 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15924 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15925 every where we allocate a register.
15927 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15929 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15930 * lcm.c (compute_earliest, compute_farthest): Likewise.
15932 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15934 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15936 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15938 * doc/rtl.texi (Insns): Fix 2 typos.
15940 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
15942 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
15943 options. Use @table @gcctabopt for MMIX options. Add index
15944 entries for MMIX options. Start new paragraph with first
15945 heading of the machine-dependent options.
15947 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
15950 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15951 * combine.c (force_to_mode): Same.
15952 * reload1.c (clear_reload_reg_in_use): Same.
15954 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
15956 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15959 2002-01-11 Andreas Jaeger <aj@suse.de>,
15960 Brad Lucier <lucier@math.purdue.edu>
15962 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15965 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
15967 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15968 Protect with IN_LIBGCC.
15969 (LINK_EH_SPEC): Add required trailing space.
15971 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
15973 * c-tree.h: Move function declarations so that they are listed
15974 under the filename which contains them.
15975 (check_identifier, finish_decl_top_level,
15976 lookup_name_current_level_global, shadow_record_fields): Remove.
15978 2002-01-11 Andreas Jaeger <aj@suse.de>
15980 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15983 2002-01-10 Richard Henderson <rth@redhat.com>
15985 * config/alpha/alpha.c (print_operand): Add 'J'.
15986 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15987 new operand with the sequence number for the lituse. When splitting
15988 the insns, use gen_movdi_er_high_g and generate a sequence number.
15989 (gen_movdi_er_high_g): Print the sequence number if non-zero.
15991 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
15993 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15994 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15996 (altivec_expand_builtin): Same.
15997 (altivec_expand_stv_builtin): New.
15999 * config/rs6000/rs6000.h (rs6000_builtins): Same.
16001 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
16002 ("altivec_lvehx"): New.
16003 ("altivec_lvewx"): New.
16004 ("altivec_lvxl"): New.
16005 ("altivec_lvx"): New.
16006 ("altivec_stvx"): New.
16007 ("altivec_stvebx"): New.
16008 ("altivec_stvehx"): New.
16009 ("altivec_stvewx"): New.
16010 ("altivec_stvxl"): New.
16012 2002-01-10 Richard Henderson <rth@redhat.com>
16014 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
16015 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
16016 care not to delete instructions twice.
16018 2002-01-10 Zack Weinberg <zack@codesourcery.com>
16020 * toplev.c: Don't declare environ (it's not used anywhere).
16021 * configure.in: Don't check for declaration of environ.
16022 * config/i386/xm-mingw32.h: Don't #define environ.
16023 * config.in, configure: Regenerate.
16025 2002-01-10 Zack Weinberg <zack@codesourcery.com>
16027 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
16028 * configure: Regenerate.
16030 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
16031 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
16032 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
16034 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
16035 LIMITS_H_TEST here, not in m68k/x-next.
16036 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
16037 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
16039 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
16040 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
16041 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
16043 * config/i386/x-djgpp: Renamed i386/t-djgpp.
16044 * config/m88k/x-dolph: Renamed m88k/t-dolph.
16045 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
16046 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
16047 replacement of quadlib.asm with quadlib.c.
16049 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
16050 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
16051 config/rs6000/xm-beos.h: Delete file.
16053 * config.gcc: Update to match above changes.
16055 2002-01-10 Kazu Hirata <kazu@hxi.com>
16057 * config/h8300/h8300.h: Fix comment typos.
16058 * config/h8300/h8300.md: Likewise.
16059 * config/h8300/lib1funcs.asm: Likewise.
16061 2002-01-10 Dale Johannesen <dalej@apple.com>
16063 PR optimization/5269
16064 * unroll.c (precondition_loop_p): Make *increment be the correct
16065 sign when n_iterations known, to avoid confusing caller.
16067 2002-01-10 Kazu Hirata <kazu@hxi.com>
16069 * doc/extend.texi (deprecated): Fix a typo.
16071 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
16073 * basic-block.h (update_br_prob_note): Declare.
16074 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16075 (try_forward_edges): Care negative frequencies and update note.
16076 (outgoing_edges_match): Tweek conditional merging heuristics.
16077 (try_crossjump_to_edge): use update_br_prob_note.
16078 * cfglayout.c (fixup_reorder_chain): Likewise.
16079 * cfrtl.c (update_br_prob_note): New.
16080 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16082 * i386.c (ix86_decompose_address): Return -1 if address contains
16084 (legitimate_address_p): Require ix86_decompose_address to return 1.
16086 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16087 (cprop_insn): Likewise.
16089 2002-01-10 Kazu Hirata <kazu@hxi.com>
16091 * toplev.c: Fix formatting.
16092 * tree.c: Likewise.
16093 * tree-dump.c: Likewise.
16094 * unroll.c: Likewise.
16095 * unwind-dw2.c: Likewise.
16096 * unwind-dw2-fde.c: Likewise.
16097 * unwind-dw2-fde-glibc.c: Likewise.
16098 * unwind-sjlj.c: Likewise.
16100 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
16102 * doc/invoke.texi: Document PDP-11 options.
16104 2002-01-10 Kazu Hirata <kazu@hxi.com>
16106 * config/h8300/h8300.h: Fix formatting.
16108 2002-01-10 Ira Ruben <ira@apple.com>
16110 Add __attribute__ ((deprecated)).
16111 * extend.texi: Document __attribute__ ((deprecated)).
16112 * invoke.texi: Document -Wno-deprecated-declarations.
16113 * testsuite/g++.dg/other/deprecated.C: New C++ test.
16114 * testsuite/gcc.dg/deprecated.c: New C test.
16115 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16116 (c_common_attribute_table): Add "deprecated" entry.
16117 (handle_deprecated_attribute): New function.
16118 * c-decl.c (deprecated_states): New enum.
16119 deprecated_state: State of "deprecated" handling.
16120 (start_decl): Set deprecated_state based on attributes.
16121 (grokdeclarator): Test for deprecated uses, propagate attribute.
16122 * c-typeck.c (build_component_ref): Test for deprecated fields.
16123 (build_external_ref): Test for deprecated primaries.
16124 * diagnostic.c (warn_deprecated_use) New function to issue
16125 warnings about __attribute__ ((depricated)) references.
16126 * flags.h (warn_deprecated_decl): Extern declared for
16127 -W[no-]deprecated-declarations option.
16128 * print-tree.c (print_node): Show deprecated flag status.
16129 * toplev.c (warn_deprecated_decl): Defined.
16130 (W_options): Added "deprecated-declaration".
16131 * toplev.h (warn_deprecated_use): Extern declared.
16132 * tree.h (struct tree_common): Define deprecated_flag.
16133 (TREE_DEPRECATED): New macro to access flag.
16134 * cp/call.c (build_call): Test for deprecated calls.
16135 * cp/class.c (add_implicitly_declared_members): Set global
16136 flag to tell grokdeclarator to not issue deprecated warnings.
16137 * cp/cp-tree.h: Add extern for adding_implicit_members.
16138 * cp/decl.c (deprecated_states): New enum.
16139 (start_decl): Set deprecated_state based on attributes.
16140 (grokdeclarator): Test for deprecated uses, propagate attribute.
16141 * cp/lex.c (do_identifier): Test for deprecated primaries.
16142 * cp/typeck.c (build_component_ref): Test for deprecated fields.
16144 2002-01-10 Ira Ruben <ira@apple.com>
16146 Fix to assign attributes to inline member functions.
16147 * cp/decl.c (start_method): Handle attrlist.
16149 2002-01-10 Kazu Hirata <kazu@hxi.com>
16151 * combine.c (expand_field_assignment): Use subreg_lsb().
16153 2002-01-10 David Edelsohn <edelsohn@gnu.org>
16155 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16156 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16157 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16158 Recurse for any operand of AND as long as constant is non-zero.
16160 2002-01-10 Kazu Hirata <kazu@hxi.com>
16162 * config/h8300/h8300.md: Remove constraints from expanders.
16164 2002-01-10 Kazu Hirata <kazu@hxi.com>
16166 * varasm.c: Fix formatting.
16167 * varray.c: Likewise.
16168 * vmsdbgout.c: Likewise.
16169 * xcoffout.c: Likewise.
16171 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
16173 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16174 update edge probabilities to match.
16176 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
16178 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16180 * doc/languages.texi, doc/sourcebuild.texi: New files.
16181 * doc/configfiles.texi: Make a subsubsection. Update.
16182 * doc/configterms.texi: Add @node. Remove warning that this isn't
16183 instructions for building GCC.
16184 * doc/makefile.texi: Make a subsection.
16185 * doc/gccint.texi: Update.
16187 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
16189 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16191 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
16193 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16195 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
16197 * optabs.c (expand_fix): Look for wider integer modes first.
16199 * i386.md (mov?f): Avoid the fake const double trick for medium
16201 (min?f*/max?f*): Prohibit memory operands for i387 variant.
16202 (fop_df_4): Disable for SSE compilation.
16204 2002-01-10 Graham Stott <grahams@redhat.com>
16206 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16207 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16209 2002-01-10 Richard Henderson <rth@redhat.com>
16211 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16213 2002-01-10 Richard Henderson <rth@redhat.com>
16215 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16216 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
16218 2002-01-10 Kazu Hirata <kazu@hxi.com>
16220 * combine.c (can_combine_p): Fix a comment typo.
16222 2002-01-09 Zack Weinberg <zack@codesourcery.com>
16224 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16225 empty list correctly. Change loop index $t to $f for
16226 consistency with rest of Makefile.
16228 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
16230 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16231 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16233 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16234 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16235 (altivec_init_builtins): Same.
16236 (altivec_expand_unop_builtin): Return NULL_RTX on error.
16237 (altivec_expand_binop_builtin): Same.
16238 (altivec_expand_ternop_builtin): Same.
16241 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16242 ("altivec_vctuxs"): Fix typo.
16243 ("altivec_vnmsubfp"): Same.
16244 ("altivec_dssall"): New.
16245 ("altivec_mfvscr"): New.
16246 ("altivec_dss"): New.
16247 ("altivec_lvsl"): New.
16248 ("altivec_lvsr"): New.
16249 ("altivec_dstt"): New.
16250 ("altivec_dstst"): New.
16251 ("altivec_dststt"): New.
16252 ("altivec_dst"): New.
16254 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16255 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16257 2002-01-09 Richard Henderson <rth@redhat.com>
16259 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16261 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
16263 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16265 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16267 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16269 2002-01-09 Kazu Hirata <kazu@hxi.com>
16271 * read-rtl.c: Fix formatting.
16272 * real.c: Likewise.
16273 * regclass.c: Likewise.
16274 * regrename.c: Likewise.
16275 * reg-stack.c: Likewise.
16276 * reload1.c: Likewise.
16277 * reload.c: Likewise.
16280 2002-01-09 Kazu Hirata <kazu@hxi.com>
16282 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16283 to extract items in the expr_list chain.
16285 2002-01-09 Richard Henderson <rth@redhat.com>
16287 * config/vax/vax.c (vax_rtx_cost): Never abort.
16289 * config/vax/vax.h (REAL_ARITHMETIC): Define.
16291 2002-01-09 Jan Hubicka <jh@suse.cz>
16293 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16295 2002-01-09 Richard Henderson <rth@redhat.com>
16297 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16298 Unify code from various alternatives.
16300 2002-01-09 Richard Henderson <rth@redhat.com>
16302 * regrename.c (copy_value): Ignore the copy if the source register
16303 is present in the value chain with a narrower mode.
16305 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16307 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16308 for the c4x target. Also improve layout.
16310 2002-01-09 Richard Henderson <rth@redhat.com>
16312 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16313 * config/m32r/m32r.md (and ior xor splitters): Swap operands
16314 to match insn patterns.
16316 2002-01-09 Richard Henderson <rth@redhat.com>
16318 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16319 (copyprop_hardreg_forward_1): Likewise.
16321 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
16323 * pa.md (decrement_and_branch_until_zero): Change predicate for
16324 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16326 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
16328 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16329 gets undefined. For Darwin.
16331 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16333 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16335 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16337 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16339 2002-01-08 Richard Henderson <rth@redhat.com>
16341 * regrename.c (copy_value): Ignore overlapping copies.
16343 2002-01-08 Richard Henderson <rth@redhat.com>
16345 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16346 as needed to avoid shared structure.
16348 2002-01-08 Kazu Hirata <kazu@hxi.com>
16350 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16353 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16355 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16356 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16357 documentation of obsolete macros.
16358 * system.h: Poison these macros.
16359 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16360 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16361 config/c4x/c4x.h, config/clipper/clipper.h,
16362 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16363 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16364 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16365 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16366 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16367 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16368 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16369 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16370 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16371 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16372 config/sparc/sparc.h, config/stormy16/stormy16.h,
16373 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16374 definitions and commented out definitions of obsolete macros.
16375 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16376 of MAX_INT_TYPE_SIZE.
16378 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16380 * config/s390/s390.c (s390_preferred_reload_class): Never
16381 return ADDR_REGS if it isn't a subset of the given class.
16382 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16383 FP_REGS, but all superclasses as well.
16385 * config/s390/s390.c (s390_function_profiler): Fix thinko.
16387 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16388 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16389 must not be a const_int.
16391 2002-01-08 Richard Henderson <rth@redhat.com>
16393 * Makefile.in (toplev.o): Depend on options.h.
16394 (gcc.o): Depend on specs.h.
16396 2002-01-08 Jakub Jelinek <jakub@redhat.com>
16398 * expr.c (store_expr): Convert VOIDmode constants back to target's
16401 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16403 * doc/invoke.texi: Markup gcc as @command. Refer to
16404 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16405 of http://gcc.gnu.org/thanks.html.
16407 2002-01-08 Dale Johannesen <dalej@apple.com>
16409 * config/rs6000/rs6000.md: Add missing int register
16410 target case to movdf_low.
16412 2002-01-08 Zack Weinberg <zack@codesourcery.com>
16414 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16415 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
16416 (cppinit.o): Depend on except.h.
16417 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16418 s-specs): New rules.
16420 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16421 Don't create specs.h/options.h/gencheck.h here. Remove
16422 unnecessary variable settings from last argument of AC_OUTPUT.
16423 * config.in, configure: Regenerate.
16424 * intl.c: Hardcode package name as "gcc".
16426 * cppinit.c: Include except.h.
16427 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16429 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16430 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16431 (!)USING_SJLJ_EXCEPTIONS.
16432 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16434 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16436 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16437 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16438 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16439 documentation of obsolete macros.
16440 * system.h: Poison these macros.
16441 * config/d30v/d30v.h, config/ns32k/encore.h,
16442 config/stormy16/stormy16.h: Remove definitions and commented out
16443 definitions of obsolete macros.
16445 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
16447 * objc/objc-act.c (handle_class_ref): Mark the declaration of
16448 %sobjc_class_ref_%s as used - to prevent unwanted compiler
16451 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16453 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16454 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16455 to insn adjusting stack/frame pointer.
16456 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16457 accept operands that cause the insn to be non-splittable.
16459 2002-01-08 Graham Stott <grahams@redhat.com>
16461 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16462 (C_TYPE_FIELDS_VOLATILE): Likewise.
16463 (C_TYPE_BEING_DEFINED): Likewise.
16464 (C_IS_RESERVED_WORD): Likewise.
16465 (C_TYPE_VARIABLE_SIZE): Likewise.
16466 (C_DECL_VARIABLE_SIZE): Likewise.
16467 (C_MISSING_PROTOTYPE_WARNED): Likewise.
16468 (C_SET_EXP_ORIGINAL_CODE): Likewise.
16469 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16471 (C_DECL_ANTICIPATED): Likewise.
16472 (c_build_type_variant): Add parenthesis.
16474 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16476 * gcc.c (option_map): Remove --version.
16477 (process_command): Handle -fversion following the GNU Coding
16478 Standards. Partially addresses PR other/704.
16480 2002-01-08 Graham Stott <grahams@redhat.com>
16482 * combine.c (combine_instructions): Fix typo.
16484 2002-01-08 Graham Stott <grahams@redhat.com>
16486 * debug.h: Use "tree" and "rtx" throughout.
16488 * debug.c: Likewise.
16490 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
16492 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16493 constant pool, use the pool's version of the symbol instead.
16495 2002-01-07 Richard Henderson <rth@redhat.com>
16497 * regrename.c (find_oldest_value_reg): Ignore the value chain if
16498 the original register was copied in a mode with a fewer number of
16499 hard registers than the desired mode.
16500 (copyprop_hardreg_forward_1): Likewise.
16501 (debug_value_data): Fix loop test.
16502 * toplev.c (parse_options_and_default_flags): Reenable
16503 -fcprop-registers at -O1.
16505 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16507 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16508 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16510 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16513 * config/rs6000/rs6000.md: Add altivec predicate patterns.
16515 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
16517 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16518 (pa_output_function_prologue): Output local label at the beginning of
16519 the prologue when profiling.
16520 (hppa_profile_hook): Use the local label rather than the function label.
16521 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16523 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16525 * config/rs6000/rs6000.c (print_operand): Remove extra space.
16526 (altivec_expand_unop_builtin): Fix thinko.
16527 (altivec_expand_binop_builtin): Same.
16528 (altivec_expand_ternop_builtin): Same.
16529 (altivec_expand_builtin): Same.
16531 2002-01-07 Richard Henderson <rth@redhat.com>
16533 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16535 2002-01-07 Jason Merrill <jason@redhat.com>
16537 * unwind-dw2.c (execute_cfa_program): Use < again.
16539 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16541 * predict.c (combine_predictions_for_insn): Avoid division by zero.
16543 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16545 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16546 Don't allow -1 - x -> ~x simplifications in the first pass.
16548 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16550 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16552 (altivec_expand_binop_builtin): Same.
16553 (altivec_expand_unop_builtin): Same.
16554 (print_operand): Fix typo.
16555 (bdesc_1arg): Add vupk* variants.
16557 * rs6000.h (rs6000_builtins): Add vupk* enums.
16559 * rs6000.md: Add altivec_vupk* variants.
16561 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
16563 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16564 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16565 and last update dates.
16567 2002-01-07 Janis Johnson <janis187@us.ibm.com>
16569 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16571 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
16573 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16574 * config/avr/avr.h (CPP_SPEC): Likewise.
16575 (LINK_SPEC): Likewise.
16576 (CRT_BINUTILS_SPECS): Likewise.
16577 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16578 * doc/invoke.texi (AVR Options): Document them.
16580 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
16582 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16585 2002-01-07 Graham Stott <grahams@redhat.com>
16587 * config/i386/i386.h: Update copyright date.
16588 (HALF_PIC_PTR): Add parenthesis.
16589 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16590 (CONSTANT_ALIGNMENT): Add parenthesis.
16591 (DATA_ALIGNMENT): Likewise.
16592 (LOCAL_ALIGNMENT): Likewise.
16593 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16594 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16595 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16596 (HARD_REGNO_NREGS): Add paranethesis.
16597 (VALID_SSE_REG_MODE): Whitespace.
16598 (VALID_MMX_REG_MODE): Whitespace.
16599 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16600 (ix86_hard_regno_mode_ok): Add parenthesis.
16601 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16602 (RETURN_IN_MEMORY): Whitespace.
16603 (N_REG_CLASSES): Add parenthesis.
16604 (INTEGER_CLASS_P): Add parenthesis and wrap.
16605 (FLOAT_CLASS_P): Likewise.
16606 (SSE_CLASS_P): Likewise.
16607 (MMX_CLASS_P): Likewise.
16608 (MAYBE_INTEGER_CLASS_P): Likewise.
16609 (MAYBE_FLOAT_CLASS_P): Likewise.
16610 (MAYBE_SSE_CLASS_P): Likewise.
16611 (MAYBE_MMX_CLASS_P): Likewise.
16612 (Q_CLASS_P): Likewise.
16613 (GENERAL_REGNO_P): Uppercase macro parameter.
16614 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16615 (FP_REGNO_P): Likewise.
16616 (ANY_FP_REGNO_P): Uppercase macro parameter.
16617 (SSE_REGNO_P): Likewise.
16618 (SSE_REGNO): Likewise.
16619 (SSE_REG_P): Likewise.
16620 (SSE_FLOAT_MODE_P): Likewise.
16621 (MMX_REGNO_P): Likewise.
16622 (MMX_REG_P):Likewise.
16623 (STACK_REG_P): Likewise.
16624 (NON_STACK_REG_P): Likewise.
16625 (STACK_TOP_P): Likewise.
16626 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16627 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16628 (SECONDARY_MEMORY_NEEDED): Likewise.
16629 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16630 (MD_ASM_CLOBBERS): Whitespace and wrap.
16631 (MUST_PASS_IN_STACK): Whitespace and wrap.
16632 (RETURN_POPS_ARGS): Add parenthesis.
16633 (INIT_CUMULATIVE_ARGS): Likewise.
16634 (FUNCTION_ARG): Likewise.
16635 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16636 (SETUP_INCOMING_VARARGS): Likewise.
16637 (BUILD_VA_LIST_TYPE): Add parenthesis.
16638 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16640 (EXPAND_BUILTIN_VA_ARG): Likewise.
16641 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16642 (INITIALIZE_TRAMPOLINE): Add parenthesis.
16643 (INITIAL_ELIMINATION_OFFSET): Likewise.
16644 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16645 (REGNO_OK_FOR_BASE_P): Likewise.
16646 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16647 (REGNO_OK_FOR_DIREG_P): Likewise.
16648 (REG_OK_FOR_INDEX_P): Whitespace.
16649 (REG_OK_FOR_BASE_P): Whitespace.
16650 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16652 (FIND_BASE_TERM): Fix typo.
16653 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
16654 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16655 (SYMBOLIC_CONST; Whitespace.
16656 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
16657 (ENCODE_SECTION_INFO): Whitespace.
16658 (FINALIZE_PIC): Remove do { ... } while (0).
16659 (PROMOTE_MODE): Wrap in do { ... } while (0).
16660 (CONST_COSTS): Whitespace.
16661 (RTX_COSTS): Add paramethesis, whitespace and wrap.
16662 (REGISTER_MOVE_COST): Add parenthesis.
16663 (MEMORY_MOVE_COST): Likewise.
16664 (EXTRA_CC_MODES): Whitespace.
16665 (SELECT_CC_MODE): Add parenthesis and whitespace.
16666 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16667 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16668 (ASM_OUTPUT_LABEL): Add paramethesis.
16669 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16670 (ASM_OUTPUT_REG_POP): Likewise.
16671 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16672 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16674 * config/i386/i386.c: Update copyright.
16675 (CHECK_STACK_LIMIT): Add parenthesis.
16676 (AT_BP): Uppercase macro parameter.
16677 (x86_64_int_parameter_registers): Constify.
16678 (x86_64_int_return_registers): Likewise.
16679 (ix86_compare_op0): Use rtx.
16680 (construct_container): Constify INTREG parameter.
16681 (function_arg): Use rtx.
16683 * diagnostic.h: Update copyright date.
16684 (output_buffer_state): Add parenthesis.
16685 (output_buffer_format_args): Likewise.
16687 * combine.c (combine_instructions): Replace XEXP (links, 0)
16690 2002-01-06 H.J. Lu <hjl@gnu.org>
16692 * cfgcleanup.c (thread_jump): Fix 2 typos.
16694 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16696 * config.gcc: Add support for --enable-altivec.
16698 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16700 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16702 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16704 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16705 __objc_class_name_*.
16707 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16709 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16711 2002-01-06 Richard Henderson <rth@redhat.com>
16713 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16714 nop them out. Increment label reference count for REG_LABEL.
16715 (fill_slots_from_thread): Frob label reference count around
16716 delete_related_insns.
16718 2002-01-05 Richard Henderson <rth@redhat.com>
16720 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16723 2002-01-05 Richard Henderson <rth@redhat.com>
16725 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16726 * integrate.c (output_inline_function): Likewise.
16727 * toplev.c (rest_of_compilation): Do it here instead. Move call
16728 to remove_unnecessary_notes after emitting abstract instance.
16729 Force an emitted nested function to have its parent emited as well.
16730 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16732 (rtl_for_decl_location): Do not look at reload data structures
16733 before reload has run.
16735 2002-01-05 Kazu Hirata <kazu@hxi.com>
16737 * cse.c: Fix formatting.
16738 * dwarf2asm.c: Likewise.
16739 * dwarf2out.c: Likewise.
16740 * explow.c: Likewise.
16741 * expmed.c: Likewise.
16742 * function.c: Likewise.
16743 * gcov.c: Likewise.
16744 * gencheck.c: Likewise.
16745 * genrecog.c: Likewise.
16746 * ggc-common.c: Likewise.
16747 * ggc-page.c: Likewise.
16748 * global.c: Likewise.
16750 2002-01-05 Kazu Hirata <kazu@hxi.com>
16752 * combine.c: Fix formatting.
16754 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
16757 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16759 2002-01-05 David Edelsohn <edelsohn@gnu.org>
16761 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16762 as 1 for __powerpc64__ as well.
16764 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16766 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16769 2002-01-05 Daniel Berlin <dan@dberlin.org>
16771 * lcm.c: Revert change, due to performance regression it causes on
16772 SPEC because it's slightly more conservative (sigh, I hate
16775 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
16777 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16779 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
16781 * doc/cppinternals.texi: Update.
16783 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16785 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16786 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16788 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16789 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16790 kludge for pre-october-14th mmix versions to handle new-found bug
16791 with PUSHJ/PUSHGO and the register stack.
16792 * config/mmix/mmix.h (struct machine_function): Rename member
16793 has_call_value_without_parameters to has_call_without_parameters.
16794 All referers changed.
16795 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16796 TARGET_MASK_BRANCH_PREDICT): New macros.
16797 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16798 -mno-reg-stack-fill-bug-workaround.
16799 * config/mmix/mmix.md ("call"): Set struct machine member
16800 has_call_without_parameters.
16802 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16804 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16806 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16808 * cfgcleanup.c: Include tm_p.h
16809 (mark_effect): Fix handling of hard register; fix handling of SET
16811 2002-01-04 Kazu Hirata <kazu@hxi.com>
16813 * config/h8300/h8300.md (anonymous patterns): Check that
16814 operands are registers before using REGNO on them.
16816 2002-01-03 Roland McGrath <roland@frob.com>
16818 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16820 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16822 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16823 * c-common.h (genrtl_expr_stmt_value): Likewise.
16824 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16825 (expand_expr_stmt_value): Add maybe_last argument.
16826 Don't warn about statement with no effect if it is the last statement
16827 in expression statement.
16828 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16829 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16830 expand_expr_stmt_value.
16831 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16832 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16833 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16834 as maybe_last to expand_expr_stmt_value.
16836 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16838 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16839 be passed in, do not build it.
16840 (c_begin_if_stmt): New function.
16841 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16842 * c-common.h (c_expand_start_cond): Update prototype.
16843 (c_begin_if_stmt): Prototype new function.
16844 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16845 * c-parse.in (if_prefix): Use c_begin_if_stmt,
16846 c_begin_while_stmt and c_finish_while_stmt_cond.
16848 2002-01-04 William Cohen <wcohen@redhat.com>
16850 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16851 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16852 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16853 * config/pa/som.h (ASM_FILE_START): Likewise.
16855 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
16857 * lcm.c: Include df.h.
16858 Add available_transfer_function prototype.
16859 (compute_available): Rework to use iterative dataflow framework.
16860 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16861 with bb_info in df.h
16862 (available_transfer_function): New function.
16864 * Makefile.in (lcm.o): add df.h to dependencies.
16866 2002-01-04 Richard Henderson <rth@redhat.com>
16868 * config/alpha/alpha.c (some_operand): Accept HIGH.
16869 (input_operand): Likewise; accept simple references to globals.
16870 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16871 (alpha_const_double_ok_for_letter_p): Likewise.
16872 (alpha_extra_constraint): Likewise.
16873 (alpha_preferred_reload_class): Likewise. Do not force
16874 symbolic constants to memory.
16875 (alpha_legitimate_address_p): Accept simple references
16876 to small_symbolic_operand.
16877 (alpha_legitimize_address): New arg scratch. Be prepared to be
16878 called when no_new_pseudos. Emit simple symbolic references.
16879 Split integers into low, high, and rest.
16880 (alpha_expand_mov): Use alpha_legitimize_address.
16881 (some_small_symbolic_mem_operand): New.
16882 (split_small_symbolic_mem_operand): New.
16883 * config/alpha/alpha-protos.h: Update.
16884 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16885 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16886 (EXTRA_CONSTRAINT): Likewise.
16887 (PREFERRED_RELOAD_CLASS): Likewise.
16888 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16889 (PREDICATE_CODES): Update.
16890 * config/alpha/alpha.md: New post-reload splitters to convert
16891 simplfied symbolic operands to the form that references $29.
16892 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16893 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16895 2002-01-03 Richard Henderson <rth@redhat.com>
16897 * local-alloc.c (function_invariant_p): Update commentary.
16899 2002-01-04 H.J. Lu <hjl@gnu.org>
16901 * toplev.c (rest_of_compilation): Fix a typo when calling
16904 2002-01-03 Kazu Hirata <kazu@hxi.com>
16906 * c-common.c: Fix formatting.
16907 * diagnostic.c: Likewise.
16908 * doloop.c: Likewise.
16909 * dwarf2out.c: Likewise.
16911 2002-01-03 Kazu Hirata <kazu@hxi.com>
16913 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16914 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16916 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16918 * cpperror.c: Update comments and copyright.
16919 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16920 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16922 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
16924 * collect2.c (main): Use strcmp when testing for "-shared".
16926 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16928 * cppmacro.c: Don't include intl.h. Update comments.
16929 (new_number_token): Allocate enough buffer for 64-bit unsigned
16930 integers; update prototype.
16931 * cppmain.c: Update comments.
16933 2002-01-03 William Cohen <wcohen@redhat.com>
16935 * function.h (struct function): Add profile.
16936 (current_function_profile): New.
16937 doc/extend.texi: Update documentation.
16938 * final.c (final_start_function): Use current_function_profile
16939 instead of profile_flag.
16940 (profile_after_prologue): Likewise.
16941 * function.c (expand_function_start): Likewise.
16942 (expand_function_start): Likewise.
16943 * config/alpha/alpha.c (direct_call_operand):
16944 (alpha_does_function_need_gp): Likewise.
16945 (alpha_expand_prologue): Likewise.
16946 * config/arm/arm.c (arm_expand_prologue): Likewise.
16947 thumb_expand_prologue: Likewise.
16948 * config/d30v/d30v.c (d30v_stack_info): Likewise.
16949 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16950 (fr30_expand_prologue): Likewise.
16951 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16952 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16953 * config/i386/i386.h (FINALIZE_PIC): Likewise.
16954 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16955 * config/i960/i960.c (i960_output_function_prologue): Likewise.
16956 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16957 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16958 (m32r_expand_prologue): Likewise.
16959 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16960 (m88k_expand_prologue): Likewise.
16961 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16962 * config/mips/mips.c (compute_frame_size): Likewise.
16963 (mips_expand_prologue): Likewise.
16964 (mips_can_use_return_insn): Likewise.
16965 * config/pa/elf.h (ASM_FILE_START): Likewise.
16966 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16967 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16968 * config/pa/som.h (ASM_FILE_START): Likewise.
16969 * config/romp/romp.c (romp_using_r14): Likewise.
16970 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16971 (rs6000_stack_info): Likewise.
16972 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16973 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16974 * config/v850/v850.c (compute_register_save_size): Likewise.
16976 2002-01-03 Jakub Jelinek <jakub@redhat.com>
16978 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16979 gen_lowpart_common fails, use gen_lowpart_SUBREG.
16981 2002-01-03 Turly O'Connor <turly@apple.com>
16983 * darwin.c (machopic_output_possible_stub_label): Don't generate
16984 stub routines for pseudo-stubs which we've just defined.
16986 2002-01-03 Kazu Hirata <kazu@hxi.com>
16988 * builtins.c: Fix formatting.
16989 * c-typeck.c: Likewise.
16990 * combine.c: Likewise.
16991 * expr.c: Likewise.
16992 * loop.c: Likewise.
16994 2002-01-03 Andreas Schwab <schwab@suse.de>
16996 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16997 and return true if _cpp_push_next_buffer pushed a new include
16999 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
17000 _cpp_pop_file_buffer did not push a new file.
17001 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
17003 2002-01-02 Eric Christopher <echristo@redhat.com>
17005 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
17006 FIND_REG_INC_NOTE call. Update copyright.
17007 * loop.c (canonicalize_condition): Ditto.
17008 * reorg.c (delete_scheduled_jump): Ditto.
17010 2002-01-03 Kazu Hirata <kazu@hxi.com>
17012 * gcse.c: Fix formatting.
17014 2002-01-03 Graham Stott <grahams@redhat.com>
17016 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
17017 forward defs for struct tags rtx_def, union_tree, rtvec_def
17018 also output corresponding typedefs for rtx, tree, and rtvec.
17020 * system.h: Move forward defs for struct tags rtx_def, union_tree,
17021 rtvec_def along with corresponding typedefs for rtx, tree, and
17022 rtvec to config.h, hconfig.h, tconfig.h.
17024 2002-01-03 Graham Stott <grahams@redhat.com>
17026 * tree.h: Update copyright date.
17027 (IS_EXPR_CODE_CLASS): Add parenthesis.
17028 (TREE_SET_CODE): Add whitespace.
17029 (TREE_CHECK): Add parenthesis.
17030 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
17031 (CST_OR_CONSTRUCTOR_CHECK):
17032 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
17033 (TREE_SYMBOL_REFERENCED): Whitespace.
17034 (INT_CST_LT): Likewise.
17035 (INT_CST_LT_UNSIGNED): Likewise.
17036 (tree_real_cst): Unwrap comment.
17037 (tree_string): Likewise.
17038 (tree_complex): Likewise.
17039 (IDENTIFIER_POINTER): correct cast.
17040 (SAVE_EXPR_CONTEXT): Whitespace.
17041 (EXPR_WFL_FILENAME_NODE): Likewise.
17042 (EXPR_WFL_FILENAME): Remove parenthesis.
17043 (DECL_ORIGIN): Add parenthesis.
17044 (DECL_FROM_INLINE): Use NULL_TREE.
17045 (build_int_2): Whitespace.
17046 (build_type_variant): Add parenthesis.
17048 * gcc/jcf-parse.c: Update copyright date.
17049 (yyparse): Constify resource_filename.
17051 2002-01-03 Graham Stott <grahams@redhat.com>
17053 * rtl.h: Update copyright date.
17054 (RTL_CHECK1): Wrap long line.
17055 (RTL_CHECK2): Likewise.
17056 (RTL_CHECKC1): Wrap long line and whitespace.
17057 (RTL_CHECKC2): Likewise.
17058 (XWINT): Whitespace.
17064 (XBITMAP): Likewise.
17066 (XBBDEF): Likewise.
17068 (X0WINT): Likewise.
17070 (X0UINT): Likewise.
17074 (X0MODE): Likewise.
17075 (X0BITMAP): Likewise.
17076 (X0TREE): Likewise.
17077 (X0BBDEF): Likewise.
17078 (X0ADVFLAGS): Likewise.
17079 (X0CSELIB): Likewise.
17080 (X0MEMATTR): Likewise.
17081 (XCWINT): Likewise.
17083 (XCUINT): Likewise.
17087 (XCMODE): Likewise.
17088 (XCBITMAP): Likewise.
17089 (XCTREE): Likewise.
17090 (XCBBDEF): Likewise.
17091 (XCADVFLAGS): Likewise.
17092 (XCCSELIB): Likewise.
17093 (XC2EXP): Likewise.
17094 (INSN_UID): Likewise.
17095 (PREV_INSN): Likewise.
17096 (PATTERN): Likewise.
17097 (INSN_CODE): Likewise.
17098 (PUT_REG_NOTE_KIND): Likewise.
17099 (CODE_LABEL_NUMBER): Likewise.
17100 (NOTE_SOURCE_FILE): Likewise.
17101 (NOTE_BLOCK): Likewise.
17102 (NOTE_EH_HANDLER): Likewise.
17103 (NOTE_RANGE_INFO): Likewise.
17104 (NOTE_LIVE_INFO): Likewise.
17105 (NOTE_BASIC_BLOCK): Likewise.
17106 (NOTE_EXPECTED_VALUE): Likewise.
17107 (NOTE_LINE_NUMBER): Likewise.
17108 (LABEL_NAME): Likewise.
17109 (LABEL_NUSES): Likewise.
17110 (LABEL_ALTERNATE_NAME): Likewise.
17111 (ADDRESSOF_DECL): Likewise.
17112 (JUMP_LABEL): Likewise.
17113 (LABEL_NEXTREF): Likewise.
17115 (ORIGINAL_REGNO: Likewise.
17116 (HARD_REGISTER_NUM_P): Add parenthesis.
17117 (SUBREG_REG): Whitespace.
17118 (SUBREG_BYTE): Likewise.
17119 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17120 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17121 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17122 (ASM_OPERANDS_INPUT_VEC): Likewise.
17123 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17124 (ASM_OPERANDS_INPUT): Likewise.
17125 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17126 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17127 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17128 (ASM_OPERANDS_INPUT_MODE): Likewise.
17129 (ASM_OPERANDS_SOURCE_FILE): Likewise.
17130 (ASM_OPERANDS_SOURCE_LINE): Likewise.
17131 (MEM_SET_IN_STRUCT_P): Minor reformat.
17132 (TRAP_CONDITION): Whitespace.
17133 (TRAP_CODE): Likewise.
17134 (COND_EXEC_TEST): Likewise.
17135 (COND_EXEC_CODE): Likewise.
17136 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17137 (PHI_NODE_P): Add parenthesis.
17138 (plus_constant): Whitespace and add parenthesis.
17140 2002-01-03 Kazu Hirata <kazu@hxi.com>
17142 * config/avr/avr.c: Fix comment typos.
17143 * config/c4x/c4x.md: Likewise.
17144 * config/dsp16xx/dsp16xx.h: Likewise.
17145 * config/dsp16xx/dsp16xx.md: Likewise.
17146 * config/i386/i386.md: Likewise.
17147 * config/ia64/ia64.c: Likewise.
17148 * config/m32r/m32r.h: Likewise.
17149 * config/m68hc11/m68hc11.md: Likewise.
17150 * config/mmix/mmix.c: Likewise.
17151 * config/mn10200/mn10200.c: Likewise.
17152 * config/romp/romp.c: Likewise.
17153 * config/sh/sh.c: Likewise.
17154 * config/stormy16/stormy16.c: Likewise.
17155 * config/stormy16/stormy16.h: Likewise.
17156 * config/stormy16/stormy16.md: Likewise.
17158 2002-01-03 Graham Stott <grahams@redhat.com>
17160 * loop.h: Update copyright date.
17161 (LOOP_MOVABLES): Fix typo.
17162 (LOOP_REGS): Likewise.
17163 (LOOP_IVS): Likewise.
17165 2002-01-03 Graham Stott <grahams@redhat.com>
17167 * cppinit.c: Update copyright date.
17168 Don't include output.h
17169 * Makefile.in: Update copyright date.
17172 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
17175 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17176 (-pthread) Add to RS/6000 options.
17178 2002-01-02 Kazu Hirata <kazu@hxi.com>
17180 * except.c: Fix comment typos.
17181 * loop.c: Likewise.
17182 * varasm.c: Likewise.
17183 * doc/tm.texi: Fix a typo.
17185 2002-01-02 Jakub Jelinek <jakub@redhat.com>
17187 * c-typeck.c (output_init_element): Allow initializing static storage
17188 duration objects with compound literals.
17190 2002-01-02 Richard Henderson <rth@redhat.com>
17192 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17195 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17197 * gcc.c (default_compilers): Const-ify.
17198 * mips-tdump.c (stab_names): Likewise.
17199 * mips-tfile.c (map_coff_types, map_coff_storage,
17200 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17201 pseudo_ops_t, pseudo_ops): Likewise.
17202 * protoize.c (default_include): Likewise
17204 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17205 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17206 Add array size in declaration.
17207 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17208 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17209 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17210 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17211 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17212 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17213 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17214 emtens, make_nan): Const-ify.
17215 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17216 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17218 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
17220 * config.gcc (ia64-*-*): Set extra_headers.
17221 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
17222 * config/alpha/t-osf: Remove.
17223 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17225 2002-01-02 David Edelsohn <edelsohn@gnu.org>
17227 * config/rs6000/t-aix43: Revert previous change.
17229 2002-01-02 Jason Merrill <jason@redhat.com>
17231 * c-decl.c (c_expand_body): Call outlining_inline_function when
17232 emitting an inline function out of line.
17234 2002-01-02 Richard Henderson <rth@redhat.com>
17236 * dwarf2out.c (limbo_die_node): Add created_for member.
17237 (new_die): New argument created_for. Update all callers.
17238 (mark_limbo_die_list): New.
17239 (dwarf2out_init): Register limbo_die_list as a root.
17240 (dwarf2out_finish): Force insert limbo dies into their function
17243 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
17246 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17248 2002-01-02 Kazu Hirata <kazu@hxi.com>
17250 * config/h8300/fixunssfsi.c: Update copyright.
17253 * config/h8300/h8300.c: Update copyright.
17254 Eliminate warnings.
17256 2002-01-02 Kazu Hirata <kazu@hxi.com>
17258 * config/romp/romp.c: Fix comment formatting.
17259 * config/romp/romp.h: Likewise.
17260 * config/romp/romp.md: Likewise.
17261 * config/s390/s390.c: Likewise.
17262 * config/stormy16/stormy16.c: Likewise.
17263 * config/stormy16/stormy16.h: Likewise.
17265 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
17267 * c-common.h (genrtl_expr_stmt_value): Declare.
17268 * c-semantics.c (genrtl_goto_stmt): Redirect to...
17269 (genrtl_goto_stmt_value): ... this new function. Pass new
17270 argument down to expand_expr_stmt_value, taking
17271 TREE_ADDRESSABLE into account.
17272 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17273 STMT_EXPR as addressable, i.e., one whose result we want.
17274 * expr.c (expand_expr): Don't save expression statement value
17275 of labeled_blocks or loop_exprs.
17276 * stmt.c (expand_expr_stmt): Redirect to...
17277 (expand_expr_stmt_value): ... this new function. Use new
17278 argument to tell whether to save expression value.
17279 (expand_end_stmt_expr): Reset last_expr_type and
17280 last_expr_value if we don't have either.
17281 * tree-inline.c (declare_return_variable): Mark its use
17282 statement as addressable.
17283 * tree.h: Document new use of TREE_ADDRESSABLE.
17284 (expand_expr_stmt_value): Declare.
17286 2002-01-01 Tom Rix <trix@redhat.com>
17288 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17289 rs6000_emit_allocate_stack.
17291 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
17293 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17294 ${srcdir}/ginclude/ to every entry in extra_headers.
17295 * configure: Regenerate.
17296 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17297 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17298 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17299 * ginclude/proto.h: Rename to config/convex/proto.h.
17301 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17303 * attribs.c (handle_vector_size_attribute): Use host_integerp
17304 and tree_int_cst; remove warnings.
17305 * caller-save.c (insert_restore): Add cast to get rid of warning.
17306 (insert_save): Likewise.
17307 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17308 * regmove.c (find_matches): Add temporary var to kill a warning.
17310 2002-01-01 Douglas B Rupp <rupp@gnat.com>
17312 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17313 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17314 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17315 (vms-dwarf2eh.o): Add Makefile rule.
17316 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17317 * config/alpha/vms-dwarf2eh.asm: New file.
17319 * gcc.c (delete_if_ordinary): Delete all versions.
17321 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
17323 * config/mmix/mmix.md: Update FIXME to not mention
17325 (MMIX_rJ_REGNUM): New define_constants constant.
17326 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17327 "*movdicc_real"): Adjust contraints formatting.
17328 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17329 for branch prediction.
17330 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17332 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17333 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17334 number. Delete related FIXMEs.
17335 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17336 from number to MMIX_rJ_REGNUM.
17337 (TARGET_MASK_BRANCH_PREDICT): New.
17338 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17339 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
17340 value. Add -mbranch-predict and -mno-branch-predict.
17341 (TARGET_VERSION): Drop date.
17342 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17343 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17344 for finding out global symbols.
17345 (mmix_asm_output_labelref): Revert condition for global symbol.
17346 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17347 (mmix_print_operand_punct_valid_p): A '+' is valid.
17349 See ChangeLog.6 for earlier changes.