1 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
2 * varasm.c (mark_constant_pool): Walk epilogue delay list
3 checking the insn, not the chain for potential constants.
5 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
7 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
9 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
11 * i386.c (classify_argument): Properly handle base types.
13 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
14 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
17 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
19 * gcse.c (gcse_emit_move_after): New.
20 (pre_delete, hoist_store): Use it.
22 * reload1.c (emit_input_reload_insns): Use constrain_operands
23 instead of constraint_accepts_reg_p to verify optimization.
24 (constraint_accepts_reg_p): Kill
26 * reload1.c (reload_cse_delete_noop_set): Kill.
27 (reload_cse_simplify): use delte_insn_and_edges.
29 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
31 * cfgloop.c (flow_loops_find): Initialize first and last fields
34 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
36 * c-common.c (builtin_define_std): Correct logic.
38 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
40 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
41 (output_call): Likewise.
43 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
45 * pa.c: Move output.h include after tree.h include.
46 (pa_asm_output_mi_thunk): Constify identifier lab.
48 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
50 * config/ns32k/ns32k.h: Define named constants for the
51 bits in target_flags and use them.
52 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
54 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
56 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
57 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
58 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
59 default scheduling model.
60 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
61 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
62 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
63 * doc/install.texi (hppa*-*-*): Document default scheduling.
65 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
67 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
69 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
71 * config.gcc (ns32k-*-netbsd*): Set tm_file to
72 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
73 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
74 netbsd.h, or netbsd-aout.h.
76 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
78 * longlong.h (count_trailing_zeros): Add missing \, and clean up
79 whitespace in __ns32000__ case.
81 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
83 * expr.c (expand_expr): Output partially zeroed out vectors with
86 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
88 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
90 (shl*-*-netbsdelf*): New targets.
91 * config/sh/netbsd-elf.h: New file.
93 2002-05-30 Richard Henderson <rth@redhat.com>
94 Eric Botcazou <ebotcazou@multimania.com>
97 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
98 to unsigned int for op1 comparisons. Use gen_int_mode.
100 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
102 * expmed.c (const_mult_add_overflow_p): New.
103 * expr.h: Declare it.
104 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
105 Don't eliminate the biv if the giv has a constant multiplier and
106 the rhs argument of the comparison does satisfy the predicate.
107 Use expand_mult_add to compute the replacement constant.
109 2002-05-30 Osku Salerma <osku@iki.fi>
111 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
112 (c_common_get_alias_set): Handle it.
113 * doc/extend.texi: Document it.
115 2002-05-30 Richard Henderson <rth@redhat.com>
117 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
118 * toplev.c (process_options): Don't check it.
119 * doc/tm.texi: Don't document it.
120 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
121 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
122 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
123 frame pointer optimization if current_function_profile.
125 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
127 * langhooks.c: Fix formatting.
128 * langhooks.h: Likewise.
130 * libgcc2.c: Likewise.
132 * local-alloc.c: Likewise.
136 2002-05-30 Marc Espie <espie@openbsd.org>
138 * config.gcc (sparc64-*-openbsd*): New.
139 * config/sparc/openbsd1-64.h: New.
140 * config/sparc/openbsd64.h: New.
142 2002-05-30 Jeff Law <law@redhat.com>
144 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
145 a dead insn with a REG_RETVAL note when the entire libcall is not
146 dead and remove the associated REG_LIBCALL note at the same time.
148 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
150 * lcm.c (output.h): #include.
151 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
152 as an ordinary block.
153 (optimize_mode_switching): Don't pretend that the exit block is
154 an ordinary block, or handle sucessors of entry block specially.
155 Instead, split edges from entry block and to exit block, and
156 put a computing definition on the thus gained post-entry-block,
157 and a need on the pre-exit-block.
159 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
161 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
162 * rtl.texi: Document 'B'
164 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
166 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
168 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
170 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
172 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
173 const0_rtx instead of NULL_RTX when in error.
174 (altivec_expand_abs_builtin): Same.
175 (rs6000_expand_binop_builtin): Same.
176 (altivec_expand_predicate_builtin): Same.
177 (altivec_expand_stv_builtin): Same.
178 (rs6000_expand_ternop_builtin): Same.
179 (altivec_expand_builtin): Same.
181 2002-05-29 David S. Miller <davem@redhat.com>
183 * rtl.h (clear_emit_caches): Delete.
184 * integrate.c (output_inline_function): Don't call it.
185 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
186 (clear_emit_caches): Delete definition.
187 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
189 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
191 * config/mmix/mmix.c: Include real.h.
192 (mmix_constant_address_p): Remove redundant test before switch.
194 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
196 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
197 only if not already defined.
199 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
201 * config/h8300/h8300-protos.h: Remove prototypes for
202 ok_for_bclr and small_power_of_two.
203 * config/h8300/h8300.c (small_power_of_two): Remove.
204 (ok_for_blcr): Likewise.
205 (fix_bit_operand): Make WHAT deal with an integer instead of a
206 constraint character.
207 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
208 (CONST_OK_FOR_P): Likewise.
209 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
210 CONST_OK_FOR_P any more.
211 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
216 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
218 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
219 (CPP_PREDEFINES): Make sure this is undefined.
220 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
221 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
222 or -U__MIPSEB__ before defining one or the other. Instead,
223 use %(subtarget_endian_default) if neither -EB nor -EL are
225 (SUBTARGET_EXTRA_SPECS): Define.
226 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
229 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
231 * doc/md.texi (Patterns): Note pattern condition pitfall
234 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
236 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
237 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
238 ternary operations from here...
239 (rs6000_expand_builtin): ...to here.
240 New argument expandedp.
241 Change all instances of altivec_expand_binop_builtin to
242 rs6000_expand_binop_builtin.
243 (altivec_expand_unop_builtin): Rename to
244 rs6000_expand_unop_builtin.
245 (altivec_expand_binop_builtin): Rename to
246 rs6000_expand_binop_builtin.
247 (altivec_expand_ternop_builtin): Rename to
248 rs6000_expand_ternop_builtin.
250 2002-05-29 Richard Henderson <rth@redhat.com>
252 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
253 (TARGET_BI_ARCH): Likewise.
254 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
255 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
256 (TARGET_64BIT_DEFAULT): Default to 0.
257 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
259 2002-05-29 Richard Henderson <rth@redhat.com>
261 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
262 (get_pc_thunk_name): New.
263 (output_set_got): Use it.
264 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
265 into linkonce sections.
267 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
269 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
270 (CPP_PREDEFINES): Make sure this is undefined.
271 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
272 (CPP_SUBTARGET_SPEC): Don't provide different versions for
273 default-32 and default-64. Just always use %(netbsd_cpp_spec).
274 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
275 cpp_subtarget_spec64. Add netbsd_cpp_spec.
276 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
277 (CPP_PREDEFINES): Make sure this is undefined.
278 (SUBTARGET_EXTRA_SPECS): Define.
279 (CPP_SPEC): Use %(netbsd_cpp_spec).
281 2002-05-29 Jeff Law <law@redhat.com>
283 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
285 * flow.c (propagate_one_insn): Do not remove a dead insn if it
286 contains a REG_RETVAL note.
288 * haifa-sched (sched_analyze): Remove another useless clearing
289 of SCHED_GROUP_P I missed yesterday.
291 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
292 * pa.c (pa_asm_output_mi_thunk): New function.
293 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
295 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
296 Marek Michalkiewicz <marekm@amelek.gda.pl>
298 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
299 (avr_asm_only_p): Make non-static.
300 (enum avr_arch): Remove.
301 (avr_arch_types): New.
302 (avr_mcu_types): Update.
303 (avr_override_options): Use avr_arch_types table instead of switch.
304 * avr.h (CPP_PREDEFINES): Die.
305 (avr_base_arch_macro, avr_extra_arch_macro): New.
306 (TARGET_CPU_CPP_BUILTINS): New.
307 (CPP_SPEC, EXTRA_SPECS): Simplify.
308 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
311 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
313 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
314 NETBSD_OS_CPP_BUILTINS_AOUT.
315 (SUBTARGET_EXTRA_SPECS): Define.
316 (CPP_SPEC): Use %(netbsd_cpp_spec).
318 2002-05-29 Richard Henderson <rth@redhat.com>
320 * config/i386/i386.c (ix86_output_function_epilogue): New.
321 (TARGET_ASM_FUNCTION_EPILOGUE): New.
322 (pic_label_name): Remove.
323 (pic_labels_used): New.
324 (ix86_asm_file_end): Emit one pc load stub for each register used.
325 (output_set_got): Generate deep pc load to any register.
326 (ix86_select_alt_pic_regnum): New.
327 (ix86_save_reg): Don't save pic register if we can find a valid
328 call-clobbered replacement.
329 (ix86_expand_prologue): If we found a valid replacement, renumber
330 pic_offset_table_rtx.
331 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
332 pic_offset_table_rtx after reload.
333 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
334 * config/i386/i386.md (set_got): Make insn, not expander.
335 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
337 2002-05-29 Richard Henderson <rth@redhat.com>
339 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
340 alignment for alloca.
342 2002-05-29 Richard Henderson <rth@redhat.com>
344 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
345 (print_operand_address): Only add rip for symbolic addresses
346 for which we do not have another relocation type.
348 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
350 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
351 (EXTRA_SPECS): Add netbsd_cpp_spec.
352 (CPP_SPEC): Use %(netbsd_cpp_spec).
353 (CPP_PREDEFINES): Remove.
354 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
355 (EXTRA_SPECS): Define.
356 (CPP_SPEC): Use %(netbsd_cpp_spec).
357 (CPP_PREDEFINES): Remove.
359 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
362 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
365 2002-05-29 Eric Christopher <echristo@redhat.com>
367 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
368 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
370 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
372 * config/fr30/fr30.md: Remove previous restriction on splits.
373 Enforce conformance through gen_lowpart and cont_int_operand.
374 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
375 as the assembler does not support ".bss".
377 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
379 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
380 (CPP_PREDEFINES): Remove.
381 (SUBTARGET_EXTRA_SPECS): Define.
382 (CPP_SPEC): Use %(netbsd_cpp_spec).
383 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
384 (CPP_PREDEFINES): Remove.
385 (SUBTARGET_EXTRA_SPECS): Define.
386 (CPP_SPEC): Use %(netbsd_cpp_spec).
387 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
388 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
389 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
391 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
393 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
394 Zack Weinberg <zack@codesourcery.com>
396 * cppexp.c (cpp_num): Move to cpplib.h.
398 (interpret_float_suffix, interpret_int_suffix): New.
399 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
400 (cpp_classify_number, cpp_interpret_integer): New.
401 (interpret_number): Remove.
402 (eval_token): Update to use new routines.
403 * cpphash.h (cpp_num_part): Move to cpplib.h.
404 * cppinit.c (cpp_post_options): Set warn_long_long.
405 * cpplib.h (struct cpp_options): Add warn_long_long.
406 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
407 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
408 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
409 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
410 cpp_interpret_integer): New.
412 2002-05-29 Joel Sherrill <joel@OARcorp.com>
414 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
416 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
418 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
419 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
420 (CPP_SUBTARGET_SPEC): Define.
421 (SUBTARGET_EXTRA_SPECS): Define.
424 2002-05-29 Chris Lattner <sabre@nondot.org>
426 * ssa.c (rename_insn_1): Rename uses of undefined registers to
427 prevent confusion if/when the register is defined.
429 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
432 * config/cris/cris.md: Fix typos and thinkos in comments.
433 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
435 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
436 ("*mov_sideqi_mem"): Similar, but for operand 3.
437 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
438 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
439 Remove spurious mode specifier on operand 2.
441 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
443 * config/h8300/h8300-protos.h: Remove the prototype for
445 Add prototypes for single_one_operand and single_zero_operand.
446 * config/h8300/h8300.c (o_operand): Remove.
447 (single_one_operand): New.
448 (single_zero_operand): Likewise.
449 (print_operand): For 'V' operand, and the operand with 0xff.
450 For 'V' and 'W' operands, do not and the bit position with 7.
451 * config/h8300/h8300.md (various anonymous patterns): Replace
452 use of exact_log2 with single_one_operand/single_zero_operand.
454 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
456 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
458 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
460 * config/s390/s390.c (legitimate_pic_operand_p): Do not
461 accept symbolic LARL operands.
462 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
465 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
467 * config/s390/s390.md (cmpstr_64/31): Mark whole
468 input registers as used.
470 2002-05-28 Richard Henderson <rth@redhat.com>
472 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
473 not current_function_uses_pic_offset_table and
474 current_function_uses_const_pool; examine current_function_profile.
475 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
476 input to blockage if needed.
477 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
478 (legitimize_pic_address): Likewise. Set regs_ever_live for
479 pic_offset_table_rtx when invoked during reload.
480 * config/i386/i386.h (FINALIZE_PIC): Remove.
481 * config/i386/i386.md (tablejump): Reformat. Do not set
482 current_function_uses_pic_offset_table.
483 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
484 (blockage): Accept anything as operand 0.
486 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
488 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
489 common CPP built-ins for all NetBSD a.out targets.
490 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
491 common CPP built-ins for all NetBSD ELF targets.
492 * config/netbsd.h: Add missing notice.
493 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
494 for all NetBSD targets.
495 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
496 for all NetBSD targets using an LP64 code model.
497 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
500 2002-05-28 Richard Henderson <rth@redhat.com>
502 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
503 update if UPDATE_LIFE_LOCAL.
505 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
507 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
509 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
510 Jason R. Thorpe <thorpej@wasabisystems.com>
512 config/sh reorganization to factor out endianness and coff:
514 * config/sh/little.h: New file.
515 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
516 defined, define to 0 to select big-endian.
517 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
518 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
519 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
520 * config/sh/t-be: New file.
521 * config/sh/t-le: New file.
523 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
524 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
525 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
526 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
527 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
528 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
529 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
530 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
531 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
532 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
533 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
534 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
535 (LINK_SPEC): Define to SH_LINK_SPEC.
536 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
537 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
538 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
539 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
540 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
541 * config/sh/coff.h: New file.
542 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
543 (TARGET_OBJFMT_CPP_BUILTINS): Define.
544 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
545 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
546 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
547 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
548 (PTRDIFF_TYPE): Likewise.
549 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
550 (CPP_PREDEFINES): Don't define.
551 (TARGET_OBJFMT_CPP_BUILTINS): Define.
552 (LINK_SPEC): Define to SH_LINK_SPEC.
553 (LINK_EMUL_PREFIX): Redefine.
554 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
555 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
556 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
557 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
558 (TARGET_OS_CPP_BUILTINS): Define.
559 (TARGET_DEFAULT): Redefine.
560 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
561 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
562 (LINK_SPEC): Don't redefine.
563 (LINK_DEFAULT_CPU_EMUL): Redefine.
564 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
565 * sh.c (sh_asm_named_section): Don't declare / define.
566 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
567 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
568 (sh64-*-elf* tm_file): Likewise.
569 (sh-*-rtemself* tm_file): Likewise.
570 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
571 (sh-*-linux* tmake_file): Add sh/t-le.
572 (sh-*-rtems* tm_file): Add sh/coff.h
573 (sh-*-* tm_file): Likewise.
575 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
577 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
578 CONSTANT_POOL_ADDRESS_P.
580 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
582 2002-05-28 David Edelsohn <edelsohn@gnu.org>
583 Jeff Law <law@redhat.com>
585 * optabs.c (expand_binop): Fix nwords sign warnings.
586 generate pseudo for add_optab.
588 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
589 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
591 2002-05-28 Marc Espie <espie@openbsd.org>
593 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
594 inherited from gas.h.
595 (ASM_QUAD): Undef. OpenBSD does not support it.
597 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
599 * doc/install.texi (binaries): Change mingw binaries
600 link to www.mingw.org.
602 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
604 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
606 2002-05-28 Richard Henderson <rth@redhat.com>
608 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
609 bottom alignment for leaf functions.
611 2002-05-28 Zack Weinberg <zack@codesourcery.com>
613 * config/pa/milli32.S, config/pa/lib1funcs.asm,
614 config/sparc/sol2-g1.asm: Delete unused files.
616 2002-05-28 Richard Henderson <rth@redhat.com>
618 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
620 * flow.c (calculate_global_regs_live): Rename call_used to
621 invalidated_by_call. Initialize from regs_invalidated_by_call
622 instead of call_used_regs.
624 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
627 2002-05-28 Zack Weinberg <zack@codesourcery.com>
629 * tree.h: Don't include real.h.
630 Forward-declare struct realvaluetype.
631 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
633 (TREE_REAL_CST_PTR): New accessor.
634 (TREE_REAL_CST): Update.
635 * real.h: Include machmode.h.
636 (realvaluetype): Make it struct realvaluetype, not a typedef.
637 (build_real): Prototype here.
639 * tree.c: Include real.h.
640 (build_real): Allocate the REAL_VALUE_TYPE as a separate
641 object in GC memory, set TREE_REAL_CST_PTR to point to it.
642 (build_real_from_int_cst): Use build_real.
643 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
646 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
647 fold-const.c, print-tree.c, real.c: Include real.h.
648 * Makefile.in: Update dependency lists.
650 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
652 * basic-block.h (last_basic_block): Declare.
653 (expunge_block_nocompact): Declaration removed.
654 (compact_blocks): Declare.
655 * cfg.c (last_basic_block): New variable.
656 (expunge_block_nocompact): Removed.
657 (expunge_block): Do not compact basic blocks.
658 (compact_blocks): New.
659 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
661 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
663 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
664 real positions of blocks.
665 (delete_unreachable_blocks): Simplified -- quadratic behavior now
667 (cleanup_cfg): Compact blocks.
668 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
669 basic_block_info varray.
670 (flow_delete_block): Comment update.
671 (back_edge_of_syntactic_loop_p): Modify position check code.
672 (verify_flow_info): Update checking.
673 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
674 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
675 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
676 indices no longer change.
677 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
679 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
680 * profile.c (branch_prob): Compact blocks.
681 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
684 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
686 * config/h8300/h8300.md (two anonymous patterns): New.
688 2002-05-28 David S. Miller <davem@redhat.com>
690 * config/sparc/sparc.md (cpu): Tidy.
691 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
693 (in_call_delay): Delete reference to 'return' type.
694 (eligible_for_return_delay, in_return_delay, define_delay
695 referencing those): Delete.
696 (rest of file): Use new type attributes as appropriate.
697 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
698 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
699 * config/sparc/ultra1_2.md (us1_single): New reservation.
700 (us1_ialuX): Likewise.
701 * config/sparc/ultra3.md (us3_single): Likewise.
702 (us3_ialuX): Likewise.
703 (us3_imul, us3_idiv): Tweak.
705 2002-05-28 Richard Henderson <rth@redhat.com>
707 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
710 2002-05-28 Richard Henderson <rth@redhat.com>
712 * config.gcc: Obsolete mn10200.
714 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
716 * cppexp.c (interpret_number): Optimize for single-digit
717 and less-than-half-precision cases.
718 (num_trim, num_positive, num_div_op): Cast constants.
720 2002-05-27 Bo Thorsen <bo@suse.de>
722 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
723 3.1 branch. The file was made by Jakub Jelinek.
724 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
725 support so multilib doesn't break. And don't define this at all
726 when -Dinhibit_libc is used.
727 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
728 * config/i386/t-linux64: Implement full multilib support. Patch
729 originally done by Andreas Jaeger and Jakub Jelinek.
731 2002-05-27 Roger Sayle <roger@eyesopen.com>
733 * c-common.c: Add support for __attribute__((nothrow)) to specify
734 that a function cannot throw an exception (using TREE_NOTHROW).
735 (handle_nothrow_attribute): New function to process this attribute.
737 * doc/extend.texi: Document the new nothrow function attribute.
739 2002-05-27 H.J. Lu (hjl@gnu.org)
741 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
742 (num_positive): Likewise.
743 (num_div_op): Likewise.
745 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
747 * c-common.c (c_common_init): Always use intmax_t.
749 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
751 * c-common.c (c_common_init): Use intmax_t for now.
753 2002-05-24 Andrew Haley <aph@redhat.com>
755 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
756 if T is a boolean type.
758 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
760 * basic-block.h (last_basic_block): Defined as synonym for
762 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
763 flow_depth_first_order_compute, flow_preorder_transversal_compute,
764 flow_dfs_compute_reverse_init): Replaced relevant occurences of
765 n_basic_blocks with last_basic_block.
766 * cfgbuild.c (make_edges): Likewise.
767 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
768 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
769 * combine.c (combine_instructions): Likewise.
770 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
771 iterative_dataflow_bitmap): Likewise.
772 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
773 calc_idoms, idoms_to_doms): Likewise.
774 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
776 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
777 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
778 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
779 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
780 delete_null_pointer_checks, compute_code_hoist_vbeinout,
781 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
782 compute_store_table, build_store_vectors): Likewise.
783 * haifa-sched.c (sched_init): Likewise.
784 * ifcvt.c (if_convert): Likewise.
785 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
786 pre_edge_lcm, compute_available, compute_nearerout,
787 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
789 * predict.c (estimate_probability, process_note_prediction,
790 note_prediction_to_br_prob): Likewise.
791 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
792 * recog.c (split_all_insns, peephole2_optimize): Likewise.
793 * regrename.c (copyprop_hardreg_forward): Likewise.
794 * resource.c (init_resource_info): Likewise.
795 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
796 init_regions, schedule_insns): Likewise.
797 * ssa-ccp.c (ssa_const_prop): Likewise.
798 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
799 * ssa.c (compute_dominance_frontiers,
800 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
802 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
803 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
806 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
808 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
810 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
811 hoist_insn_after, hoist_insn_to_edge): New.
813 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
815 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
816 (PROP_FINAL): Include.
817 * flow.c (life_analysis, update_life_info,
818 init_propagate_block_info, mark_set_1, mark_used_rgs):
819 Support SCAN_DEAD_STORE.
821 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
823 * c-common.c (c_common_init): Set CPP arithmetic precision.
824 * cppexp.c (cpp_num_part): Move typedef ...
825 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
826 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
827 (sanity_checks): Update.
829 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
831 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
832 (mkheaders): New rule.
833 (install-mkheaders): New rule.
834 * configure.in (all_outputs): Add mkheaders.
835 * configure: Regenerate.
836 * mkheaders.in: New file.
838 2002-05-26 Jakub Jelinek <jakub@redhat.com>
840 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
842 2002-05-26 Andreas Jaeger <aj@suse.de>
844 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
846 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
848 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
849 right_shift): Remove.
850 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
852 (struct op): Use cpp_num.
853 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
854 num_part_mul, num_unary_op, num_binary_op, num_negate,
855 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
856 num_div_op, num_lshift, num_rshift, append_digit): New.
857 (interpret_number, parse_defined, eval_token, reduce): Update
858 for two-integer arithmetic.
859 (binary_handler): New typedef.
861 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
862 (_cpp_parse_expr, reduce): Update to handle two-integers.
863 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
865 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
867 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
868 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
869 branch insn into account, do not assume 1.
870 (avr_out_sbxx_branch): New function. Optimize cases of skipping
871 over single word insn. Handle upper half of I/O space too.
872 * config/avr/avr.md (*sbrx_branch): Use it.
873 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
874 (*sbix_branch, *sbix_branch_bit7): Likewise.
875 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
876 Use RTL peepholes to optimize register operand sign tests.
878 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
880 * config/avr/avr.c (avr_asm_only_p): New variable.
881 (avr_override_options): Set it here if AVR1.
882 (asm_file_start): Test it here, report an error if set.
884 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
886 * alias.c: Fix formatting.
887 * attribs.c: Likewise.
888 * bb-reorder.c: Likewise.
889 * bitmap.c: Likewise.
890 * bitmap.h: Likewise.
891 * builtins.c: Likewise.
893 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
895 * reload.c (find_valid_class): Accept new argument DEST,
896 choose class accordingly.
897 (push_reload): Update callers.
899 2002-05-26 Andreas Jaeger <aj@suse.de>
901 * combine.c (combine_instructions): Do not indent #if for
904 2002-05-25 Richard Henderson <rth@redhat.com>
906 * c-pragma.c (apply_pragma_weak): Convert value identifier to
907 string for decl_attributes.
908 (handle_pragma_weak): Call assemble_alias if we're modifying
911 2002-05-25 Richard Henderson <rth@redhat.com>
914 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
915 using rtl instead of fprintf.
916 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
917 * config/sparc/sparc-protos.h: Update.
919 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
921 * Makefile.in (C_COMMON_H): Fix.
922 Update other targets.
923 * c-common.c: Don't include c-lex.h.
924 (builtin_define_with_value): Make static and prototype.
925 (builtin_define_std): Move from c-lex.h.
926 * c-common.h (init_c_lex): Move from c-lex.h.
927 * c-decl.c: Don't include c-lex.h.
928 (make_pointer_declarator): Move from c-parse.in.
929 * c-lex.c: Don't include c-lex.h.
931 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
932 (make_pointer_declarator): Move to c-decl.c.
933 * c-pragma.c: Don't include c-lex.h.
934 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
935 * c-tree.h (make_pointer_declarator): New.
937 * passes.texi, tm.texi: Update.
939 * Make-lang.in: Update and correct.
940 * objc-act.c: Don't include c-lex.h or cpplib.h.
942 * treetree.c: Don't include c-lex.h.
944 * darwin-c.c: Don't include c-lex.h.
945 * c4x/c4x-c.c: Don't include c-lex.h.
947 * i370/i370-c.c: Don't include c-lex.h.
948 * i370/t-i370: Update.
949 * i960/i960-c.c: Don't include c-lex.h.
950 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
951 * i960/t-960bare: Update.
952 * i960/t-vxworks: Update.
953 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
954 * rs6000/t-darwin: Update.
955 * rs6000/t-rs6000-c-rule: Update.
956 * v850/v850-c.c: Don't include c-lex.h.
957 * v850/v850.c: Don't include c-lex.h or cpplib.h.
960 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
962 * tree.def: Fix typos.
963 * doc/install.texi: Likewise.
965 2002-05-25 Richard Henderson <rth@redhat.com>
967 * configure.in (HAVE_AS_TLS): Add ia64 test.
968 * configure: Rebuild.
969 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
970 (override_options): Set it.
971 (TARGET_HAVE_TLS): New.
972 (sdata_symbolic_operand): Look for 's'.
973 (tls_symbolic_operand): New.
974 (ia64_expand_load_address): Abort for tls symbols.
975 (gen_tls_get_addr): New.
976 (gen_thread_pointer): New.
977 (ia64_expand_move): Split out from movdi. Handle tls symbols.
978 (rtx_needs_barrier): Add new unspecs.
979 (ia64_encode_section_info): Handle tls symbols.
980 (ia64_strip_name_encoding): Strip two encoding chars.
981 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
982 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
983 (TARGET_OPTIONS): Add tls-size.
984 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
985 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
986 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
987 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
988 (movsf, movdf): Likewise.
989 (movdi_symbolic): Use match_scratch. Don't split if we won't
990 have a scratch availiable.
991 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
992 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
993 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
994 * config/ia64/ia64-protos.h: Update.
995 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
996 sdata_symbolic_operand.
997 (ASM_OUTPUT_LABELREF): Strip two characters.
999 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1001 * combine.c (simplify_set): Remove an unnecessary subreg.
1003 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
1005 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1007 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1009 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1011 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
1013 2002-05-25 Roger Sayle <roger@eyesopen.com>
1015 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1016 (cond (compare x y) 0) into the equivalent (cond x y).
1018 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1020 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
1022 2002-05-24 Zack Weinberg <zack@codesourcery.com>
1024 * config.gcc: Remove all stanzas for previously obsoleted
1025 systems. Where necessary, add explicit error stanzas to
1026 prevent removed systems from being misidentified as something
1027 else. Begin a fresh obsoletions list, with the systems that
1028 were reprieved last round.
1029 * doc/install.texi: Remove all mention of dead targets.
1030 * fixinc/mkfixinc.sh: Likewise.
1032 * config/arm/arm.h: Bit 31 of target_flags is no longer
1035 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1036 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1037 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1038 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1039 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1040 config/alpha/osf12.h, config/alpha/osf2or3.h,
1041 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1042 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1043 config/clipper/clipper-protos.h, config/clipper/clipper.c,
1044 config/clipper/clipper.h, config/clipper/clipper.md,
1045 config/clipper/clix.h, config/convex/convex-protos.h,
1046 config/convex/convex.c, config/convex/convex.h,
1047 config/convex/convex.md, config/convex/fixinc.convex,
1048 config/convex/proto.h, config/elxsi/elxsi-protos.h,
1049 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1050 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1051 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1052 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1053 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1054 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1055 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1056 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1057 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1058 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1059 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1060 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1061 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1062 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1063 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1064 config/m68k/altos3068.h, config/m68k/apollo68.h,
1065 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1066 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1067 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1068 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1069 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1070 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1071 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1072 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1073 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1074 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1075 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1076 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1077 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1078 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1079 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1080 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1081 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1082 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1083 config/mips/dec-osf1.h, config/mips/elflorion.h,
1084 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1085 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1086 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1087 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1088 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1089 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1090 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1091 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1092 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1093 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1094 config/ns32k/sequent.h, config/ns32k/tek6000.h,
1095 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1096 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1097 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1098 config/sparc/rtems.h, config/we32k/we32k-protos.h,
1099 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1102 2002-05-24 Richard Henderson <rth@redhat.com>
1104 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1105 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1106 * config/i386/i386.c (tls_model_chars): Add leading space.
1107 (tls_symbolic_operand): Don't bias by 1.
1108 (legitimize_address): Don't unbias by 1.
1110 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1112 * lcm.c (optimize_mode_switching): Change bb used as indices
1115 2002-05-24 Richard Henderson <rth@redhat.com>
1117 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1118 of update_life_info_in_dirty_blocks.
1120 2002-05-24 Jakub Jelinek <jakub@redhat.com>
1123 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1125 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
1127 PR preprocessor/6780
1128 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1130 2002-05-24 Jim Blandy <jimb@redhat.com>
1132 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1133 entry with a type code of zero, marking the end of the compilation
1136 2002-05-24 Richard Henderson <rth@redhat.com>
1138 * varasm.c (asm_output_bss): Always output one byte.
1139 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1141 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1143 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1146 2002-05-24 Andreas Jaeger <aj@suse.de>
1148 * ggc-page.c (alloc_page): Cast variables of type size_t to
1149 unsigned long, adjust printf format string.
1150 (ggc_alloc): Likewise.
1151 (ggc_print_statistics): Likewise.
1152 (ggc_print_statistics): Correct printf format string for SCALE to
1155 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
1157 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1159 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
1160 Zack Weinberg <zack@codesourcery.com>
1162 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1164 * dwarf2out.c (lookup_filename): Properly quote filename in .file
1165 directive in assembly file.
1166 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1167 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1168 * config/pj/pj.h (ASM_FILE_START): Likewise.
1169 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1170 * config/avr/avr.c (asm_file_end): Likewise.
1171 * toplev.c (output_quoted_string): Handle possibly signed plain
1173 * toplev.h (output_clean_symbol_name): Declare
1174 * toplev.c (output_clean_symbol_name): Define.
1175 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1176 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1178 2002-05-24 Alan Modra <amodra@bigpond.net.au>
1180 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1182 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
1184 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1185 of size of unsigned.
1187 2002-05-23 Richard Henderson <rth@redhat.com>
1189 * configure.in (HAVE_AS_TLS): New test.
1190 * config.in, configure: Rebuild.
1191 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1192 (ix86_tls_dialect_string, ix86_tls_dialect): New.
1193 (override_options): Set it.
1194 (tls_model_chars, tls_symbolic_operand): New.
1195 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1196 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1197 (local_exec_symbolic_operand): New.
1198 (get_pic_label_name): Merge into output_set_got.
1199 (ix86_asm_file_end): Emit pic_label_name if defined.
1200 (legitimate_constant_p, constant_address_p): New.
1201 (legitimate_pic_operand_p): New.
1202 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1203 (legitimate_address_p): Likewise.
1204 (ix86_encode_section_info): Rename from i386_; handle tls decls.
1205 (ix86_strip_name_encoding): New.
1206 (get_thread_pointer): New.
1207 (legitimize_address): Handle tls symbols.
1208 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1210 (struct machine_function): Add some_ld_name.
1211 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1212 (print_operand) [&]: Use it. Handle UNSPEC_TP.
1213 (output_addr_const_extra): New.
1214 (maybe_get_pool_constant): New.
1215 (ix86_split_to_parts): Use it.
1216 (ix86_expand_move): Handle tls symbols.
1217 (ix86_tls_get_addr): New.
1218 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1219 (TARGET_OPTIONS): Add tls-dialect.
1220 (CONSTANT_ADDRESS_P): Use new out-of-line function.
1221 (LEGITIMATE_CONSTANT_P): Likewise.
1222 (LEGITIMATE_PIC_OPERAND_P): Likewise.
1223 (TARGET_STRIP_NAME_ENCODING): New.
1224 (ASM_OUTPUT_LABELREF): New.
1225 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1226 (OUTPUT_ADDR_CONST_EXTRA): New.
1227 (PREDICATE_CODES): Update.
1228 (ix86_tls_dialect, ix86_tls_dialect_string): New.
1229 * config/i386/i386.md: Regroup and renumber unspec constants.
1230 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1231 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1232 (tls_global_dynamic, tls_local_dynamic_base): New.
1233 (tls_local_dynamic_once): New.
1234 * config/i386/i386-protos.h: Update.
1236 2002-05-23 Richard Henderson <rth@redhat.com>
1238 * genemit.c (gen_insn): Print file:lineno comment before function.
1240 * gensupport.c (struct queue_elem): Add filename member.
1241 (queue_pattern): Initialize it; update all callers.
1242 (process_include): Don't free filename.
1243 (read_md_rtx): Set read_rtx_filename.
1245 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
1247 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1249 2002-05-23 Richard Henderson <rth@redhat.com>
1251 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1253 2002-05-23 Richard Henderson <rth@redhat.com>
1255 * doc/extend.texi (C++98 Thread-Local Edits): Update with
1256 commentary from Mark.
1258 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1260 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1261 Use FOR_EACH_BB macros to iterate over basic block chain.
1262 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1263 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1265 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1266 find_unreachable_blocks, create_edge_list, verify_edge_list,
1267 remove_fake_edges, add_noreturn_fake_exit_edges,
1268 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1270 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1271 find_sub_basic_blocks): Likewise.
1272 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1274 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1276 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1278 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1279 commit_edge_insertions, commit_edge_insertions_watch_calls,
1280 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1281 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1282 * conflict.c (conflict_graph_compute): Likewise.
1283 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1284 df_modified_p, df_refs_unlink, df_dump): Likewise.
1285 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1286 * final.c (compute_alignments): Likewise.
1287 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1288 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1289 count_or_remove_death_notes): Likewise.
1290 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1291 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1292 classic_gcse, compute_transp, cprop, compute_pre_data,
1293 compute_transpout, invalidate_nonnull_info,
1294 delete_null_pointer_checks_1, delete_null_pointer_checks,
1295 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1296 compute_store_table, build_store_vectors, store_motion): Likewise.
1297 * global.c (global_conflicts, mark_elimination): Likewise.
1298 * graph.c (print_rtl_graph_with_bb): Likewise.
1299 * haifa-sched.c (sched_init): Likewise.
1300 * ifcvt.c (if_convert): Likewise.
1301 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1302 compute_available, compute_nearerout, compute_rev_insert_delete,
1303 optimize_mode_switching): Likewise.
1304 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1305 * predict.c (estimate_probability, note_prediction_to_br_prob,
1306 propagate_freq, counts_to_freqs, expensive_function_p,
1307 estimate_bb_frequencies): Likewise.
1308 * profile.c (instrument_edges, get_exec_counts,
1309 compute_branch_probabilities, compute_checksum, branch_prob,
1310 find_spanning_tree): Likewise.
1311 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1312 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1314 * regclass.c (scan_one_insn, regclass): Likewise.
1315 * regmove.c (mark_flags_life_zones, regmove_optimize,
1316 record_stack_memrefs): Likewise.
1317 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1318 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1319 * resource.c (find_basic_block): Likewise.
1320 * sched-ebb.c (schedule_ebbs): Likewise.
1321 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1322 find_single_block_region, find_rgns, schedule_insns)
1323 * sibcall.c (optimize_sibling_and_tail_recursive_call)
1324 * ssa-ccp.c (optimize_unexecutable_edges,
1325 ssa_ccp_df_delete_unreachable_insns): Likewise.
1326 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1327 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1328 rename_block, convert_to_ssa, compute_conservative_reg_partition,
1329 compute_coalesced_reg_partition, rename_equivalent_regs,
1330 convert_from_ssa): Likewise.
1331 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1332 process_for_unwind_directive): Likewise.
1334 * df.c (FOR_ALL_BBS): Removed.
1335 * gcse.c (struct null_pointer_info): Type of current_block field
1337 (struct reg_avail_info): Type of last_bb field changed.
1338 * config/ia64/ia64.c (block_num): Removed.
1339 (need_copy_state): Type changed.
1342 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1344 * cppinit.c (mark_named_operators): Split out from init_builtins.
1345 (cpp_finish_options): Call it from here instead.
1347 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1349 * builtin-attrs.def: Update copyright years.
1350 (ATTR_NONNULL): New attribute identifier.
1351 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1352 attribute tree lists.
1353 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1355 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1356 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1357 attribute lists. Chain the appropriate nonnull attribute.
1358 * c-format.c (check_format_arg): Remove null format string
1360 * testsuite/gcc.dg/format/null-1.c: New test.
1362 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1364 * Makefile.in (ADAC): Define.
1366 (.SUFFIXES): Move before language makefile fragments.
1367 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1369 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1371 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1374 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1376 * cfg.c (dump_flow_info): Print results of
1377 maybe_hot/probably_never_executed predicates.
1378 * toplev.c (open_dump_file): Print function frequency.
1380 2002-05-23 David S. Miller <davem@redhat.com>
1382 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1385 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1387 * c-common.c (warn_nonnull): Declare.
1388 (c_common_attribute_table): Add "nonnull" attribute.
1389 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1390 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1391 check_function_arguments_recurse): New functions.
1392 * c-common.h (warn_nonnull): Declare extern.
1393 (check_function_arguments, check_function_arguments_recurse): New
1395 * c-decl.c (c_decode_option): Add -Wnonnull option.
1396 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1398 (format_check_context): New structure.
1399 (check_format_info_recurse): Remove recursion and rename to...
1400 (check_format_arg): ...this. Update comment.
1401 (check_format_info): Use check_function_arguments_recurse.
1402 * c-typeck.c (build_function_call): Call check_function_arguments
1403 instead of check_function_format.
1404 * doc/extend.texi: Document "nonnull" attribute.
1405 * doc/invoke.texi: Docuemnt -Wnonnull option.
1406 * testsuite/gcc.dg/nonnull-1.c: New test.
1407 * testsuite/gcc.dg/nonnull-2.c: New test.
1409 2002-05-23 David S. Miller <davem@redhat.com>
1411 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1412 * cfgcleanup.c (cleanup_cfg): If it is set do not
1413 attempt to delete trivially dead insns.
1414 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1415 * toplev.c (rest_of_compilation): Document non-trivial aspect
1416 the RTL before optimize_save_area_alloca is run.
1418 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1420 * c-lex.c (indent_level): Remove.
1421 (cb_file_change, c_lex): Remove indent level handling.
1422 * c-lex.h (indent_level): Remove.
1423 * input.h (struct file_stack): Remove indent_level.
1424 * toplev.c (push_srcloc): Remove indent_level handling.
1426 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1429 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1430 of x in constraints for clarity.
1431 (sse_mov?fcc split): abort if op2 == op3.
1432 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1433 sse_movsfcc_const0_4): Add earlyclobber.
1434 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1435 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1436 Use Y instead of x in constraints.
1438 2002-05-23 Richard Henderson <rth@redhat.com>
1440 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1441 (C++98 Thread-Local Edits): New subsection.
1443 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1444 (ix86_arch): Set type to enum processor_type.
1446 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1447 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1449 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1451 * configure.in: Fix as version test for binutils 2.12.1 releases
1453 * configure: Rebuilt.
1455 2002-05-23 Richard Henderson <rth@redhat.com>
1457 * config/i386/i386.c (get_pic_label_name): New.
1458 (load_pic_register): Remove.
1459 (output_set_got): New.
1460 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1461 * config/i386/i386.md (UNSPEC_SET_GOT): New.
1462 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1463 (prologue_set_got, prologue_get_pc): Remove.
1464 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1465 (builtin_setjmp_receiver): Use gen_set_got.
1466 * config/i386/i386-protos.h: Update.
1468 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1470 * gcse.c (hash_expr): Do not use alias set for hashing.
1472 2002-05-22 Kevin Buettner <kevinb@redhat.com>
1474 * dbxout.c (dbxout_class_name_qualifiers): New function.
1475 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1477 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1479 * cpperror.c (_cpp_begin_message): No special casing
1481 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1482 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1483 * cpplib.c (do_include_common): Use DL_ERROR.
1484 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1486 * fix-header.c (read_scan_file): Update.
1488 2002-05-22 Richard Henderson <rth@redhat.com>
1490 * config/i386/i386.c (ix86_expand_call): New function, extracted
1491 from md call patterns. Add pic_offset_table_rtx to
1492 CALL_INSN_FUNCTION_USAGE when needed.
1493 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1494 (call_value_pop, call_value, untyped_call): Likewise.
1495 (call_exp, call_value_exp): Remove.
1496 * config/i386/i386-protos.h: Update.
1498 2002-05-22 Richard Henderson <rth@redhat.com>
1500 * varasm.c (default_section_type_flags): Check for VAR_DECL
1501 before using DECL_THREAD_LOCAL.
1503 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1505 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1506 (STARTFILE_SPEC): Delete PE crt0.o.
1507 * config/rs6000/aix51.h: Same.
1508 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1509 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1510 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1511 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1512 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1514 2002-05-22 Richard Henderson <rth@redhat.com>
1516 * varasm.c (default_section_type_flags): Handle tls data and
1518 (default_unique_section): Handle tls sections.
1520 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1522 * configure.in (CROSS): Define NATIVE_CROSS.
1523 * configure: Regenerate.
1524 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1525 (startfile_prefix_spec): New var.
1526 (static_specs): Add startfile_prefix_spec.
1527 (do_spec_2): Split out from..
1529 (main): Process startfile_prefix_spec.
1530 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1532 (STARTFILE_PREFIX_SPEC): Define.
1533 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1536 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1538 * cpperror.c: Fix formatting.
1539 * cppexp.c: Likewise.
1540 * cppfiles.c: Likewise.
1541 * cpphash.c: Likewise.
1542 * cpphash.h: Likewise.
1543 * cppinit.c: Likewise.
1544 * cpplex.c: Likewise.
1545 * cpplib.c: Likewise.
1546 * cppmacro.c: Likewise.
1547 * cppmain.c: Likewise.
1548 * cppspec.c: Likewise.
1550 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1552 * combine.c (force_to_mode): Use gen_int_mode.
1553 Don't clear CONST_INT bits outside of mode.
1555 2002-05-22 Richard Henderson <rth@redhat.com>
1557 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1558 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1560 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1563 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1564 if DECL_SIZE_UNIT is INTEGER_CST.
1566 2002-05-22 Richard Henderson <rth@redhat.com>
1568 * flow.c (life_analysis): Delete broken reg_label check.
1570 2002-05-22 Richard Henderson <rth@redhat.com>
1572 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1573 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1575 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1577 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1578 (embed-bb.c): New rule.
1579 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1580 * config/sh/embed_bb.c: Delete.
1582 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1584 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1586 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1588 * config/h8300/h8300.md (*andorqi3): New.
1590 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
1592 PR preprocessor/6517
1593 * Makefile.in: Update.
1594 * c-common.c (c_common_post_options): Add preprocessor
1595 errors to the error count.
1596 * c-lang.c (c_post_options): Kill.
1597 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1598 * hooks.h: Add header guards.
1599 * langhooks-def.h: Include hooks.h.
1600 (LANG_HOOKS_POST_OPTIONS): Update.
1601 * langhooks.h (struct lang_hooks): Update post_options.
1602 * toplev.c (parse_options_and_default_flags): Update.
1604 * objc-lang.c (objc_post_options): Kill.
1605 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1607 2002-05-21 Bruce Korb <bkorb@gnu.org>
1609 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1610 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1611 * fixinc/fixincl.x: regen.
1613 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
1615 * cfgbuild.c: Fix formatting.
1617 * cfgcleanup.c: Likewise.
1618 * cfglayout.c: Likewise.
1619 * cfgloop.c: Likewise.
1620 * cfgrtl.c: Likewise.
1622 2002-05-21 Richard Henderson <rth@redhat.com>
1624 * c-common.h (enum rid): Add RID_THREAD.
1625 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1626 (grokdeclarator): Grok __thread.
1627 * c-parse.in (reswords): Add __thread.
1628 (rid_to_yy): Add RID_THREAD.
1630 * tree.h (DECL_THREAD_LOCAL): New.
1631 (struct tree_decl): Add thread_local_flag.
1632 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1633 * tree.c (staticp): TLS variables are not static.
1635 * target-def.h (TARGET_HAVE_TLS): New.
1636 * target.h (have_tls): New.
1637 * output.h (SECTION_TLS): New.
1638 * varasm.c (assemble_variable): TLS variables can't be common for now.
1639 (default_section_type_flags): Handle .tdata and .tbss.
1640 (default_elf_asm_named_section): Handle SECTION_TLS.
1641 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1643 * flags.h (flag_tls_default): Declare.
1644 * toplev.c (flag_tls_default): Define.
1645 (display_help): Display help for it.
1646 (decode_f_option): Set it.
1648 * doc/extend.texi (Thread-Local): New node describing language-level
1649 thread-local storage.
1650 * doc/invoke.texi (-ftls-model): Document.
1652 * fixinc/inclhack.def (thread_keyword): New.
1653 * fixinc/fixincl.x: Rebuild.
1655 2002-05-21 Jeffrey A Law <law@redhat.com>
1657 * optabs.c (expand_binop): For double-word integer multiplies,
1658 do not compute intermediate results into something that is
1659 not a register (such as a SUBREG or MEM).
1661 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1662 (ix86_sched_reorder): Make sure to initialize scheduling
1663 data even when there's only one insn in the ready queue.
1665 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1667 * genautomata.c (reserv_sets_hash_value): Fix a typo.
1669 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1671 * genautomata.c (reserv_sets_hash_value): Define hash_value as
1672 set_el_t. Transform the hash value into unsigned.
1673 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1674 (transform_3): Add code to process `(A,B)+(D,E)'.
1676 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
1678 * reload1.c (do_output_reload): Run delete_output_reload
1681 2002-05-21 Roger Sayle <roger@eyesopen.com>
1684 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1685 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
1686 (can_store_by_pieces): ... and here to limit the largest mode used.
1687 Add a comment to document this function.
1689 2002-05-21 Richard Henderson <rth@redhat.com>
1691 * flow.c (life_analysis): Fix test for deleted label.
1693 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
1695 * doc/tm.texi: Fix typo.
1697 2002-05-21 Zack Weinberg <zack@codesourcery.com>
1699 * c-common.c (c_common_init): Set options->unsigned_char from
1701 (cb_register_builtins): Define __STRICT_ANSI__ and
1702 __CHAR_UNSIGNED__ here...
1703 * cppinit.c (init_builtins): Not here.
1704 (cpp_create_reader): unsigned_char option defaults to 0, not
1705 !DEFAULT_SIGNED_CHAR.
1706 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1707 and -funsigned-char.
1709 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1710 * cpphash.c (_cpp_init_hashtable): Don't set it.
1711 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1712 directly. Clarify comment.
1714 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1716 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1717 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
1718 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
1719 BASIC_BLOCK (n_basic_blocks - 1).
1720 * cfganal.c (can_fallthru, flow_call_edges_add,
1721 flow_preorder_transversal_compute): Too.
1722 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1723 find_sub_basic_blocks): Too.
1724 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1725 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1726 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1727 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1728 * combine.c (this_basic_block): Type changed to basic_block.
1729 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1730 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1731 get_last_value, distribute_notes, distribute_links): Too.
1732 * final.c (compute_alignments): Too.
1733 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1734 * function.c (thread_prologue_and_epilogue_insns): Too.
1735 * gcse.c (compute_code_hoist_vbeinout): Too.
1736 * global.c (build_insn_chain): Too.
1737 * ifcvt.c (find_if_block, find_cond_trap): Too.
1738 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1739 * regmove.c (regmove_optimize): Too.
1740 * resource.c (find_basic_block): Too.
1741 * sched-ebb.c (schedule_ebbs): Too.
1742 * ssa-dce.c (find_control_dependence, find_pdom): Too.
1744 2002-05-21 Andreas Jaeger <aj@suse.de>
1746 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1748 2002-05-21 Richard Henderson <rth@redhat.com>
1750 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1751 unspec names, not numbers.
1753 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
1755 * doc/sourcebuild.texi: Mention snapshot-README and
1756 snapshot-index.html as needing updating for new front ends.
1758 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1760 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1761 disabling checking, and avoid multiple evaluation of RTX.
1763 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
1765 * bitmap.c (bitmap_find_bit): Return early if we have the correct
1768 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1770 * profile.c (gen_edge_profiler): Set alias set before the memory is
1773 2002-05-20 David S. Miller <davem@redhat.com>
1775 * cselib.c (max_value_regs): New.
1776 (cselib_lookup, cselib_invalidate_regno): Initialize it when
1777 adding new entries to the REG_VALUES table and we are dealing with
1779 (clear_table): Initialize it.
1780 (cselib_invalidate_regno): Use it to determine which hard
1781 registers to scan when mode is not VOIDmode.
1783 2002-05-20 Duraid Madina <duraid@fl.net.au>
1785 * tradcpp.c (fixup_newlines): Use old-style function header.
1787 2002-05-20 Krister Walfridsson <cato@df.lth.se>
1789 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1791 2002-05-20 H.J. Lu (hjl@gnu.org)
1793 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1795 * config/mips/mips.h (DFMODE_NAN): Defined.
1796 (SFMODE_NAN): Likewise.
1798 2002-05-20 Dale Johannesen <dalej@apple.com>
1800 * combine.c (cant_combine_insn_p): Back out my
1803 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1805 * params.c: Fix formatting.
1806 * params.h: Likewise.
1807 * predict.c: Likewise.
1808 * prefix.c: Likewise.
1809 * print-rtl.c: Likewise.
1810 * print-tree.c: Likewise.
1811 * profile.c: Likewise.
1813 2002-05-20 H.J. Lu (hjl@gnu.org)
1815 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1817 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
1819 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1820 switches straight on to the assembler, do not abbreviate them.
1821 * config/arm/elf.h (ASM_SPEC): As above.
1822 * config/arm/semi.h (ASM_SPEC): As above.
1823 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1824 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1825 -mcpu=xscale on to the assembler by default.
1826 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1828 2002-05-20 Richard Henderson <rth@redhat.com>
1830 * cse.c (canon_hash): Reorder do_not_record test. Always
1831 allow pic_offset_table_rtx.
1833 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
1835 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1836 (expand_binop): Ditto (3 times).
1838 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
1840 * Makefile.in (distclean): Remove QMTest stuff.
1841 (QMTEST_PATH): New variable.
1842 (QMTESTFLAGS): Likewise.
1843 (QMTESTRUNFLAGS): Likewise.
1845 (QMTEST_GPP_TESTS): Likewise.
1846 (QMTEST_DIR): Likewise.
1847 (QMTEST_DIR/context): New target.
1848 (qmtest-g++): Likeise.
1849 (qmtest-gui): Likewise.
1850 (QMTEST_DIR/gpp-expected.qmr): Likewise.
1852 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
1854 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1855 an altivec register if TARGET_ALTIVEC.
1857 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1858 to ALTIVEC_VECTOR_MODE.
1859 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1860 (rs6000_va_arg): Vectors may go in registers if they are not
1863 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
1865 * protoize.c: Fix formatting.
1867 2002-05-19 Richard Henderson <rth@redhat.com>
1869 * gensupport.c (init_include_reader): Merge into ...
1870 (process_include): ... here. Simplify composite path creation.
1871 Plug memory leaks. Fix file/line number tracking. Do not
1872 process_define_cond_exec. Return void.
1873 (process_rtx): Don't check process_include return value.
1875 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1877 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1879 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1880 traversing basic block chain.
1881 (create_basic_block_structure, create_basic_block): Declaration changed.
1882 (link_block, unlink_block): Declare.
1883 * cfg.c (entry_exit_blocks): Initialize new fields.
1884 (link_block, unlink_block): New.
1885 (expunge_block_nocompact): Unlink basic block.
1886 (dump_flow_info): Print prev_bb/next_bb fields.
1887 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1888 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1889 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1890 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1891 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1892 (verify_flow_info): Check that list agrees with numbering.
1894 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
1896 * c-common.c (preprocessing_asm): New macro.
1897 * c-lex.h (builtin_define, builtin_assert): Use pfile.
1901 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1902 (CPP_SPEC): Simplify.
1903 (TARGET_CPU_CPP_BUILTINS): Update.
1904 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1905 (CPP_SPEC): Simplify.
1906 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1907 (TARGET_OS_CPP_BUILTINS): Update.
1908 * osf.h (CPP_XFLOAT_SPEC): Kill.
1909 (TARGET_OS_CPP_BUILTINS): Update.
1910 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1911 * osf5.h (CPP_XFLOAT_SPEC): Kill.
1912 * vms.h (CPP_SUBTARGET_SPEC): Kill.
1913 (TARGET_OS_CPP_BUILTINS): Update.
1915 2002-05-19 Richard Henderson <rth@redhat.com>
1917 * varasm.c (default_binds_local_p): Fix typo.
1919 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1921 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1922 CONST_INT operand to the correct mode after adding 1 to it.
1924 2002-05-19 Mark Mitchell <mark@codesourcery.com>
1926 * config.gcc (powerpc-wrs-windiss*): New target.
1928 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1930 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1933 2002-05-18 Mark Mitchell <mark@codesourcery.com>
1935 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1937 * config.in: Regenerated.
1938 * configure: Regenerated.
1940 2002-05-19 Richard Henderson <rth@redhat.com>
1942 * target-def.h (TARGET_BINDS_LOCAL_P): New.
1943 * target.h (struct gcc_target): Move boolean fields to the end.
1945 * varasm.c (default_binds_local_p): New.
1946 * output.h: Declare it.
1948 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1949 * config/cris/cris.c (cris_encode_section_info): Likewise.
1950 * config/i386/i386.c (i386_encode_section_info): Likewise.
1951 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1952 * config/sh/sh.c (sh_encode_section_info): Likewise.
1954 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1955 (TARGET_BINDS_LOCAL_P): New.
1957 2002-05-19 Richard Henderson <rth@redhat.com>
1959 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1960 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1961 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1963 * toplev.c (display_help): Kill -a -ax help.
1965 * config/1750a/1750a.h, config/alpha/alpha.h,
1966 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1967 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1968 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1969 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1971 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1972 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1974 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1975 (ix86_output_function_block_profiler): Kill.
1976 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1977 (m68hc11_function_block_profiler): Kill.
1978 * config/m68hc11/m68hc11-protos.h: Update.
1979 * config/m88k/m88k.c (output_block_profiler): Kill.
1980 (output_function_block_profiler): Kill.
1981 * config/m88k/m88k-protos.h: Update.
1983 2002-05-19 Richard Henderson <rth@redhat.com>
1985 * system.h (STRIP_NAME_ENCODING): Poison it.
1986 * output.h (STRIP_NAME_ENCODING): Remove.
1987 (default_strip_name_encoding): Declare.
1988 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1989 * target.h (strip_name_encoding): New.
1990 * varasm.c (default_strip_name_encoding): New.
1992 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1993 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1994 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1995 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1996 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1997 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1998 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1999 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2000 config/v850/v850.h: Use the hook, not the macro.
2002 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2003 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2004 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2005 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2006 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2007 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2008 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2009 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2010 config/v850/v850.c, config/v850/v850.h:
2011 Move STRIP_NAME_ENCODING to out-of-line function and add
2012 TARGET_STRIP_NAME_ENCODING.
2014 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2015 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2016 with TARGET_STRIP_NAME_ENCODING referencing existing function;
2017 make function static.
2019 * xcoffout.c: Include target.h
2020 * Makefile.in (xcoffout.o): Update.
2022 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2023 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2024 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2025 reloc argument unused.
2026 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2028 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2029 STRIP_NAME_ENCODING docs.
2031 2002-05-19 Andreas Jaeger <aj@suse.de>
2033 * gengenrtl.c: Add prototype for excluded_rtx.
2035 * real.h: Add prototype for exact_real_truncate.
2037 2002-05-18 Richard Henderson <rth@redhat.com>
2039 * system.h (ENCODE_SECTION_INFO): Poison it.
2040 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2041 * target.h (encode_section_info): New.
2042 * varasm.c (make_decl_rtl, output_constant_def): Use it.
2043 * hooks.c (hook_tree_int_void): New.
2044 * hooks.h: Declare it.
2046 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2047 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2048 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2049 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2050 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2051 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2052 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2053 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2054 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2055 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2056 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2057 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2058 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2059 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2060 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2061 referencing existing function. Make function static.
2063 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2064 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2065 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2066 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2067 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2068 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2069 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2070 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2071 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2072 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2073 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2074 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2075 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2076 Move ENCODE_SECTION_INFO to out-of-line function and add
2077 TARGET_ENCODE_SECTION_INFO.
2079 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2080 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2082 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2084 (switch_to_section): Replace in_rdata case with in_readonly_data.
2086 * config/h8300/h8300.c (h8300_encode_label): Make static.
2087 * config/h8300/h8300-protos.h: Update.
2089 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2090 from rs6000_encode_section_info; make static.
2091 (rs6000_xcoff_encode_section_info): New.
2093 * config/v850/v850.c (v850_encode_data_area): Make static.
2094 * config/v850/v850-protos.h: Update.
2096 * config/vax/vax.c: Include flags.h.
2097 (vms_select_section): Fix typo.
2099 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2100 ENCODE_SECTION_INFO docs.
2102 2002-05-18 Richard Henderson <rth@redhat.com>
2104 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2105 REGISTER_TARGET_PRAGMAS.
2106 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2108 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2110 2002-05-18 Richard Henderson <rth@redhat.com>
2112 * system.h (SELECT_RTX_SECTION): Poison.
2113 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2114 * target.h (select_rtx_section): New.
2115 * varasm.c (output_constant_pool): Use it.
2116 (default_select_rtx_section, default_elf_select_rtx_section): New.
2117 * output.h: Declare them.
2119 * config/darwin.h (SELECT_RTX_SECTION): Move ...
2120 * config/darwin.c (machopic_select_rtx_section): ... here.
2121 * config/darwin-protos.h: Update.
2123 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2124 * config/nextstep.c (machopic_select_rtx_section): ... here.
2125 (nextstep_select_section): Rename variable to avoid macro clash.
2126 * config/nextstep-protos.h: Update.
2128 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2129 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2130 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2131 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2132 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2133 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2134 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2135 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2136 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2137 (SELECT_RTX_SECTION): Remove.
2139 * config/darwin.h, config/elfos.h, config/nextstep.h,
2140 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2141 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2142 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2143 config/sparc/lynx.h, config/xtensa/xtensa.c
2144 (TARGET_ASM_SELECT_RTX_SECTION): New.
2146 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2147 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2148 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2149 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2150 (ia64_aix_select_rtx_section): New.
2151 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2153 * config/mips/mips.c (mips_select_rtx_section): Make static.
2154 Support ELF SHF_MERGE features.
2155 * config/mips/mips-protos.h: Update.
2156 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2157 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2158 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2159 make static, fall back to default_elf_select_rtx_section.
2160 * config/rs6000/rs6000-protos.h: Update.
2161 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2162 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2163 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2164 * config/romp/romp.c (romp_select_rtx_section): New.
2165 * config/s390/s390.c (s390_select_rtx_section): New.
2166 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
2167 declarations before target macro definition.
2168 (xtensa_emit_call): Use static buffer.
2169 (xtensa_select_rtx_section): New.
2170 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2171 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2172 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2174 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2175 SELECT_RTX_SECTION docs.
2177 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
2179 * i386.md (movsi/movdi): Fix template.
2180 (sse2 patterns): Set attributes consistently.
2182 * i386.md (pushqi2, ashrqi_*): Fix constraint.
2184 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
2186 * optabs.c (complex_part_zero_p): New.
2187 * (expand_cmplxdiv_straight): Use it.
2188 * (expand_cmplxdiv_wide): Ditto.
2189 * (expand_binop): Ditto.
2191 2002-05-18 Richard Henderson <rth@redhat.com>
2193 * final.c (HAVE_READONLY_DATA_SECTION): New.
2194 (shorten_branches): Use it instead of ifdefs.
2195 * varasm.c (enum in_section): Add in_readonly_data.
2196 (text_section, data_section): Tidy.
2197 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2199 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2200 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2201 (READONLY_DATA_SECTION): Don't undef.
2203 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2204 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2205 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2207 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2208 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2209 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2210 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2212 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2213 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2214 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2215 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2216 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2217 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2218 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2219 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2220 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2222 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2223 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2224 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2225 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2226 config/pa/pa64-hpux.h, config/sparc/litecoff.h
2227 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2229 * config/elfos.h, config/netware.h, config/svr3.h,
2230 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2231 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2232 config/h8300/h8300.h, config/i386/i386-interix.h,
2233 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2234 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2236 * config/elfos.h, config/netware.h, config/svr3.h,
2237 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2238 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2239 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2240 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2242 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2243 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2244 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2245 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2246 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2247 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2248 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2249 config/rs6000/sysv4.h, config/v850/v850.h
2250 (EXTRA_SECTIONS): Remove in_const/in_rdata.
2251 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2253 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2254 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2255 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2256 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2257 * config/alpha/alpha.c (alpha_start_function): Likewise.
2258 (alpha_write_linkage): Likewise.
2259 * config/m32r/m32r.c (m32r_select_section): Likewise.
2260 * config/m88k/m88k.c (m88k_select_section): Likewise.
2261 * config/mips/mips.c (mips_select_rtx_section): Likewise.
2262 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2263 (rs6000_elf_select_section): Likewise.
2264 * config/v850/v850.c (v850_select_section): Likewise.
2266 * config/1750a/1750a.h, config/i860/sysv3.h
2267 (READONLY_DATA_SECTION_ASM_OP): New.
2268 READONLY_DATA_SECTION_ASM_OP.
2269 * config/i386/interix.c, config/i386/winnt.c
2270 (i386_pe_unique_section): Always use .rdata prefix.
2271 * config/pa/som.h (readonly_data): Always switch to read-only section.
2272 (READONLY_DATA_SECTION): Predicate on flag_pic.
2273 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2274 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2275 (READONLY_DATA_SECTION): Update.
2277 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
2279 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2280 is used without -Wformat.
2281 * c-common.h (warn_format_zero_length): Declare extern.
2282 * c-decl.c (warn_options): Add "format-zero-length".
2283 * c-format.c (warn_format_zero_length): Declare.
2284 (set_Wformat): Set warn_format_zero_length for -Wformat.
2285 (check_format_info): Only warn about zero-length formats if
2286 warn_format_zero_length is true. Include the format type
2287 name in the warning message.
2288 * doc/invoke.texi: Document -Wformat-zero-length.
2289 * testsuite/gcc.dg/format/zero-length-1.c: New test.
2291 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2293 * timevar.c: Fix formatting.
2294 * tlink.c: Likewise.
2295 * toplev.c: Likewise.
2296 * tree-dump.c: Likewise.
2297 * tree-inline.c: Likewise.
2299 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2301 * cppinit.c (cpp_post_options): If preprocessed, turn off
2302 traditional. If traditional, turn off column numbers.
2303 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2304 * cpptrad.c (handle_newline): Update line_base.
2305 (skip_comment): Handle -Wcomment.
2307 2002-05-17 Zack Weinberg <zack@codesourcery.com>
2309 * cppinit.c (struct builtin): Remove unused fields.
2310 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2311 (operator_array): New - was second half of builtin_array.
2312 (init_builtins): Simplify loop over builtin_array/operator_array.
2314 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2316 * defaults.h (UNIQUE_SECTION): Remove.
2317 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2319 2002-05-17 Richard Henderson <rth@redhat.com>
2321 * expr.c (init_expr_once): Don't use start/end_sequence.
2322 Use rtx_alloc instead of emit_insn.
2323 * toplev.c (lang_dependent_init): Run init_expr_once here ...
2324 (lang_independent_init): ... not here.
2326 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2328 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2330 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2332 * config/avr/avr.c (avr_regs_to_save): New function. Also check
2333 for fixed registers, possibly used for global register variables.
2334 (initial_elimination_offset, avr_output_function_prologue,
2335 avr_output_function_epilogue): Move common code to avr_regs_to_save.
2337 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2339 * Makefile.in: Update for cpptrad.c.
2340 * cpphash.h (struct cpp_buffer): New members for buffer
2342 (struct cpp_reader): New members for traditional output.
2343 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2344 * cppinit.c (cpp_create_reader): Set trad_line.
2345 (cpp_destroy): Free trad_out_base if used.
2346 (cpp_read_main_file): Overlay an empty buffer if traditional.
2347 (cpp_finish_options): Don't do builtins.
2348 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2349 (cpp_handle_option): Handle it.
2350 * cpplex.c (continue_after_nul): New.
2351 (_cpp_lex_direct): Use handle_nul.
2352 * cpplib.h (struct cpp_options): New traditional option.
2353 * cpptrad.c: New file.
2355 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2357 * c-common.c (c_common_init_options): Use C89 for Objective-C,
2358 and set the options flag.
2359 * cppinit.c (lang_flags): Remove objc.
2360 (lang_defaults): Remove OBJC and OBJCXX.
2362 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2363 (cpp_handle_option): Remove -+ and -lang-objc++.
2364 For ObjC, just set a flag.
2365 (print_help): Update.
2366 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2368 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2370 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2371 bootstrap with -mips3.
2373 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2375 * final.c: Fix formatting.
2376 * fix-header.c: Likewise.
2378 * fold-const.c: Likewise.
2379 * function.c: Likewise.
2381 2002-05-17 David S. Miller <davem@redhat.com>
2383 PR c/6689, PR optimization/6615
2384 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2385 and make it a pointer to rtx. Update comments.
2386 (update_equiv_regs): When scanning for equivalences, record
2387 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2388 it while making the equiv replacements.
2390 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2392 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2394 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2396 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2397 when encoding visibility into SYMBOL_REF_FLAG.
2399 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2401 * expr.c (force_operand): Fix reversed move.
2403 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2405 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2406 that can be ignored.
2408 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2410 * doc/install.texi (Final install): Recommend to install into a
2411 "clean" target directory.
2413 2002-05-17 Richard Henderson <rth@redhat.com>
2415 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2416 for code blocks. Tidy whitespace.
2418 2002-05-17 Richard Henderson <rth@redhat.com>
2420 * hooks.c (hook_tree_bool_false): New.
2421 * hooks.h: Declare it.
2422 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2423 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2424 * target.h (select_section, unique_section): New.
2425 (in_small_data_p): New.
2426 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2427 (variable_section, output_constant_def_contents): Likewise.
2428 (default_select_section, default_unique_section): New.
2429 (categorize_decl_for_section, default_elf_select_section): New.
2430 * output.h: Declare them.
2432 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2433 (TARGET_ASM_SELECT_SECTION): New.
2434 (SELECT_SECTION): Move ...
2435 * config/darwin.c (machopic_select_section): ... here.
2436 * config/darwin-protos.h: Update.
2438 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2439 (SELECT_SECTION): Move ...
2440 * config/nextstep.c (nextstep_select_section): ... here.
2441 * config/nextstep-protos.h: Update.
2443 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2444 (TARGET_ASM_SELECT_SECTION): New.
2445 * config/svr3.h (SELECT_SECTION): Remove.
2447 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2448 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2449 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2450 (alpha_encode_section_info): Use it.
2451 * config/alpha/alpha-protos.h: Update.
2452 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2453 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2454 (TARGET_ASM_SELECT_SECTION): New.
2455 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2457 * config/arm/pe.h (UNIQUE_SECTION): Remove.
2458 (TARGET_ASM_UNIQUE_SECTION): New.
2460 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2461 (avr_unique_section): Rename from unique_section; make static.
2462 * config/avr/avr-protos.h: Update.
2463 * config/avr/avr.h (UNIQUE_SECTION): Remove.
2465 * config/c4x/c4x.h (SELECT_SECTION): Remove.
2467 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2468 (TARGET_ASM_UNIQUE_SECTION): New.
2469 * config/i386/i386-interix.h: Likewise.
2470 * config/i386/win32.h: Likewise.
2471 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2472 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2473 * config/i386/sco5.h (SELECT_SECTION): Remove.
2474 (TARGET_ASM_SELECT_SECTION): New.
2475 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2477 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2478 instead of SELECT_SECTION.
2479 * config/m68k/dpx2.h: Likewise.
2480 * config/rs6000/lynx.h: Likewise.
2482 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2483 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2484 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2485 (ia64_in_small_data_p): New.
2486 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2487 (ia64_aix_select_section, ia64_aix_unique_section): New.
2488 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2489 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2491 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2492 (TARGET_ASM_SELECT_SECTION): New.
2493 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2494 * config/m32r/m32r-protos.h: Update.
2496 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2497 (SELECT_SECTION): Move ...
2498 * config/m88k/m88k.c (m88k_select_section): ... here.
2500 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2501 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2502 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2503 (mcore_unique_section): Make static.
2504 * config/mcore/mcore-protos.h: Update.
2506 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2507 (TARGET_ASM_UNIQUE_SECTION): New.
2508 * config/mips/elf64.h: Likewise.
2509 * config/mips/iris6gld.h: Likewise.
2510 * config/mips/linux.h: Likewise.
2511 * config/mips/mips-protos.h: Update.
2512 * config/mips/mips.c (mips_select_section): Add align argument.
2513 * config/mips/mips.h (SELECT_SECTION): Remove.
2514 (TARGET_ASM_SELECT_SECTION): New.
2516 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2517 * config/mmix/mmix.c (mmix_select_section): Remove.
2518 (mmix_unique_section): Remove.
2519 * config/mmix/mmix-protos.h: Update.
2521 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2522 (SELECT_SECTION): Move ...
2523 * config/pa/pa.c (pa_select_section): ... here.
2524 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2526 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2527 from rs6000_select_section and make static.
2528 (rs6000_elf_unique_section): Similarly.
2529 (rs6000_xcoff_select_section): From xcoff.h.
2530 (rs6000_xcoff_unique_section): Likewise.
2531 * config/rs6000/rs6000-protos.h: Update.
2532 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2533 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2534 * config/rs6000/xcoff.h: Likewise.
2536 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2537 (SELECT_SECTION): Move ...
2538 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2540 * config/v850/v850.h (SELECT_SECTION): Move ...
2541 * config/v850/v850.c (v850_select_section): ... here.
2542 (TARGET_ASM_SELECT_SECTION): New.
2544 * config/vax/vms.h (SELECT_SECTION): Move ...
2545 * config/vax/vax.c (vms_select_section): ... here.
2546 (TARGET_ASM_SELECT_SECTION): New.
2548 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2549 for the target hooks.
2551 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
2553 * config/arm/arm.c (emit_multi_reg_push): Do not set
2554 RTX_FRAME_RELATED_P on the SEQUENCE.
2556 2002-05-16 Richard Henderson <rth@redhat.com>
2558 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2559 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
2561 2002-05-16 Richard Henderson <rth@redhat.com>
2563 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2565 * config/ia64/ia64.c (saveable_obstack): Do not declare.
2567 2002-05-16 Richard Henderson <rth@redhat.com>
2569 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2570 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2571 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2572 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2573 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2574 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2575 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2576 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2577 Revert "Basic block renumbering removal", and two followup patches.
2579 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2581 * lcm.c (optimize_mode_switching): Revert previous change.
2583 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2585 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2586 with only extant block numbers.
2588 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2590 * lcm.c (optimize_mode_switching): Fix typo.
2592 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2594 * flow.c (calculate_global_regs_live): Queue blocks in program order.
2596 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2598 * doc/install.texi (Configuration): Document PWDCMD.
2600 2002-05-16 Dale Johannesen <dalej@apple.com>
2602 * combine.c (cant_combine_insn_p): Reenable combinations
2603 involving hard regs unless CLASS_LIKELY_SPILLED_P.
2605 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2607 * c-common.c (cb_register_builtins): Handle more built-ins
2608 here rather than in gcc.c specs.
2609 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2610 (cpp_options): Pass -O flags even when only preprocessing.
2611 * toplev.c (set_fast_math_flags): New prototype.
2612 (fast_math_flags_set_p): New.
2613 (set_no_fast_math_flags): Remove.
2614 (decode_f_option): Update.
2615 * toplev.h (set_fast_math_flags): Update.
2616 (fast_math_flags_set_p): New.
2617 (set_no_fast_math_flags): Remove.
2619 * c4x/c4x.c (c4x_override_options): Update.
2621 2002-05-16 Zack Weinberg <zack@codesourcery.com>
2623 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2624 Default-define here.
2625 (builtin_define_with_value): Can now wrap the expansion in
2626 quotation marks if such is wanted.
2627 (cb_register_builtins): Update calls to builtin_define_with_value.
2628 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2630 (c_common_init): Set options->stdc_0_in_system_headers.
2631 * c-lex.h: Update prototype of builtin_define_with_value.
2632 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2633 and REGISTER_PREFIX.
2635 * cppinit.c (VERS, ULP, C, X): Kill.
2636 (builtin_array): Remove entries for __VERSION__,
2637 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2638 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
2640 (init_builtins): Kill off a bunch of now-dead code.
2641 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2642 -fno-leading-underscore.
2643 (cpp_handle_option): Remove code to set user_label_prefix.
2644 (cpp_post_options): Likewise.
2646 * cpplib.h (struct cpp_options): Remove user_label_prefix.
2647 (stdc_0_in_system_headers): New.
2648 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2649 stdc_0_in_system_headers) too to decide the value of __STDC__.
2651 * tradcpp.c (user_label_prefix): Kill.
2652 (main): Remove code handling -f(no-)leading-underscore.
2653 (initialize_builtins): Don't define __REGISTER_PREFIX__
2654 or __USER_LABEL_PREFIX__.
2655 (install_value): Wrap compound statement in dummy loop so the
2656 macro works properly in an if statement.
2659 2002-05-16 Janis Johnson <janis187@us.ibm.com>
2661 * loop.h (struct loop_info): Add member has_prefetch.
2662 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2663 (prescan_loop): Initialize has_prefetch.
2664 (struct prefetch_info): Change prefetch_in_loop and
2665 prefetch_before_loop from bit fields to ints.
2666 (emit_prefetch_instructions): Several small fixes.
2667 (check_dbra_loop): Don't reverse loop that uses prefetch.
2669 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2671 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2672 * configure.in: Likewise.
2673 * fixinc/check.tpl: Likewise.
2674 * fixinc/fixinc.dgux: Likewise.
2675 * fixinc/fixinc.svr4: Likewise.
2676 * fixinc/fixinc.winnt: Likewise.
2677 * fixinc/fixincl.sh: Likewise.
2678 * fixproto: Likewise.
2679 * configure: Regenerate.
2681 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2683 Basic block renumbering removal:
2684 * basic_block.h (struct basic_block_def): Renamed index to sindex,
2685 added prev_bb and next_bb fields.
2686 (n_basic_blocks): Renamed to num_basic_blocks.
2687 (last_basic_block): New, index of last basic block.
2688 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2689 traversing basic block chain.
2690 (BLOCK_NUM): index -> sindex.
2691 (create_basic_block_structure, create_basic_block): Declaration changed.
2692 (debug_num2bb): Declare.
2693 (expunge_block_nocompact): Declaration removed.
2694 (link_block, unlink_block, compact_blocks): Declare.
2695 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2696 * cfg.c (entry_exit_blocks): Initialize new fields.
2697 (clear_edges, alloc_block, expunge_block, cached_make_edge,
2698 redirect_edge_pred, dump_flow_info, dump_edge_info,
2699 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2700 free_aux_for_edges): Modified.
2701 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2702 (expunge_block_nocompact): Removed.
2703 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2704 find_unreachable_blocks, create_edge_list, print_edge_list,
2705 verify_edge_list, flow_edge_list_print, remove_fake_successors,
2706 remove_fake_edges, flow_reverse_top_sort_order_compute,
2707 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2708 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2709 flow_dfs_compute_reverse_execute): Modified.
2710 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2711 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2713 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2714 merge_blocks_move_predecessor_nojumps,
2715 merge_blocks_move_successor_nojumps, merge_blocks,
2716 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2717 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2718 * cfglayout.c (skip_insns_after_block, label_for_bb,
2719 record_effective_endpoints, scope_to_insns_finalize,
2720 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2721 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2722 cfg_layout_duplicate_bb): Modified.
2723 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2724 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2725 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2726 flow_loops_find, flow_loop_outside_edge_p): Modified.
2727 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2728 flow_delete_block, compute_bb_for_insn, split_block,
2729 try_redirect_by_replacing_jump, redirect_edge_and_branch,
2730 force_nonfallthru_and_redirect, tidy_fallthru_edge,
2731 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2732 commit_edge_insertions, commit_edge_insertions_watch_calls,
2733 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2734 purge_all_dead_edges): Modified.
2735 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2736 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2737 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2739 * conflict.c (conflict_graph_compute): Modified.
2740 * df.c (FOR_ALL_BBS): Removed.
2741 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2742 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2743 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2744 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2745 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2746 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2747 * final.c (compute_alignments, final_scan_insn): Modified.
2748 * flow.c (verify_local_live_at_start, update_life_info,
2749 update_life_info_in_dirty_blocks, free_basic_block_vars,
2750 delete_noop_moves, calculate_global_regs_live,
2751 initialize_uninitialized_subregs, allocate_bb_life_data,
2752 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2753 mark_used_reg, count_or_remove_death_notes): Modified.
2754 * function.c (thread_prologue_and_epilogue_insns): Modified.
2755 * gcse.c (struct null_pointer_info): Change typo of current_block
2757 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2758 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2759 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2760 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2761 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2762 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2763 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2764 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2765 pre_delete, one_pre_gcse_pass, compute_transpout,
2766 invalidate_nonnull_info, delete_null_pointer_checks_1,
2767 free_code_hoist_mem, compute_code_hoist_vbeinout,
2768 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2769 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2770 compute_store_table, build_store_vectors, insert_insn_start_bb,
2771 insert_store, replace_store_insn, free_store_memory, store_motion):
2773 * global.c (global_alloc, global_conflicts, mark_elimination,
2774 build_insn_chain): Modified.
2775 * graph.c (print_rtl_graph_with_bb): Modified.
2776 * haifa-sched.c (sched_init): Modified.
2777 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2778 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2779 if_convert): Modified.
2780 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2781 compute_insert_delete, pre_edge_lcm, compute_available,
2782 compute_farthest, compute_nearerout, compute_rev_insert_delete,
2783 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2785 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2786 * loop.c (loop_dump_aux): Modified.
2787 * predict.c (combine_predictions_for_insn, estimate_probability,
2788 last_basic_block_p, process_note_prediction, process_note_predictions,
2789 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2790 expensive_function_p, estimate_bb_frequencies,
2791 compute_function_frequency): Modified.
2792 * print-rtl.c (print_rtx): Modified.
2793 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2794 get_exec_counts, compute_branch_probabilities, compute_checksum,
2795 branch_prob, find_spanning_tree): Modified.
2796 * recog.c (split_all_insns, peephole2_optimize): Modified.
2797 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2798 convert_regs_1, convert_regs_2, convert_regs): Modified.
2799 * regclass.c (scan_one_insn, regclass): Modified.
2800 * regmove.c (mark_flags_life_zones, regmove_optimize,
2801 combine_stack_adjustments): Modified.
2802 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2803 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2804 * reorg.c (dbr_schedule): Modified.
2805 * resource.c (find_basic_block, init_resource_info): Modified.
2806 * sbitmap.c (sbitmap_intersection_of_succs,
2807 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2808 sbitmap_union_of_preds): Modified.
2809 * sched-deps.c (init_dependency_caches): Modified.
2810 * sched-ebb.c (schedule_ebbs): Modified.
2811 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2812 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2813 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2814 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2815 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2816 ssa_const_prop): Modified.
2817 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2818 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2819 * ssa.c (remove_phi_alternative, find_evaluations,
2820 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2821 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2822 make_regs_equivalent_over_bad_edges,
2823 make_equivalent_phi_alternatives_equival,
2824 compute_conservative_reg_partition,
2825 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2826 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2829 2002-05-16 Mark Mitchell <mark@codesourcery.com>
2831 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2833 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
2835 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2836 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2837 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2838 calling CONSTANT_POOL_ADDRESS_P.
2839 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2840 to decide whether to define __arm__ or __thumb.
2841 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2842 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2844 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2846 * config/arc/arc.h (CPP_PREDEFINES): Remove.
2848 (TARGET_CPU_CPP_BUILTINS): New.
2850 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2852 * cpphash.h (cpp_macro): Move here, and make expansion a union.
2853 * cppmacro.c (cpp_macro): Remove.
2854 (enter_macro_context, replace_args, warn_of_redefinition,
2855 _cpp_create_definition, cpp_macro_definition): Update.
2857 2002-05-16 Jason Merrill <jason@redhat.com>
2859 * config/mips/mips.c (mips_output_external): Don't do sdata
2860 optimization for a variable with DECL_COMDAT set.
2862 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2864 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2865 Cleanups for accepting modifiers on pointers.
2866 Fix predicate typos.
2867 Allow long pointers as well as int pointers.
2869 2002-05-15 Richard Henderson <rth@redhat.com>
2871 * varasm.c (merge_weak): Remove special case for extern and common.
2873 2002-05-15 Matt Hiller <hiller@redhat.com>
2875 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2877 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2878 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2879 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2880 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2881 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2882 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2884 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2886 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2888 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2890 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2891 ("altivec_mfvscr"): Read from VSCR.
2893 Add vscr sets for the following insns: altivec_vctuxs,
2894 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2895 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2896 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2897 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2898 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2899 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2900 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2901 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2902 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2903 altivec_vsum2sws, altivec_vsumsws.
2905 * config/rs6000/rs6000.h: Add VSCR fixed register.
2906 (CALL_REALLY_USED_REGISTERS): Add vscr.
2907 (CALL_USED_REGISTERS): Same.
2908 (FIXED_REGISTERS): Same.
2909 (REG_ALLOC_ORDER): Same.
2910 (reg_class): Add VSCR_REGS.
2911 (REG_CLASS_NAMES): Same.
2912 (REG_CLASS_CONTENTS): Same.
2914 (REGISTER_NAMES): Add vscr.
2915 (DEBUG_REGISTER_NAMES): Same.
2916 (ADDITIONAL_REGISTER_NAMES): Same.
2917 (FIRST_PSEUDO_REGISTER): Increment.
2918 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2920 2002-05-15 Jakub Jelinek <jakub@redhat.com>
2922 * fold-const.c (fold): Fix a typo.
2924 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
2926 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2927 comparison against the highest or lowest integer value before
2928 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2929 transformation and that of an unsigned comparison against 0
2932 2002-05-15 Richard Henderson <rth@redhat.com>
2934 * varasm.c (merge_weak): Error for any weakening after definition.
2935 Adjust weakening after use warning to catch more cases.
2936 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2937 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2939 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2941 * invoke.texi (-malign-double): Re-add lost warning.
2943 * i386-protos.h (x86_output_mi_thunk): Declare.
2944 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2945 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2947 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2948 when flag_asynchronous_unwind_tables is set.
2950 * flags.h (flag_reorder_functions): Declare.
2951 * function.c (prepare_function_start): Initialize frequnecy.
2952 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2953 * Makefile.in (predict.o): Add dependency on target.h and params.h
2954 * defaults.h (HOT_TEXT_SECTION_NAME,
2955 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2956 * predict.c (choose_function_section): New function.
2957 (estimate_bb_frequencies): Use it.
2958 * toplev.c (flag_reorder_functions): New global variable.
2959 (lang_independent_options): New.
2960 (parse_options_and_default_flags): Set.
2961 * varasm.c (assemble_start_function): Bypass functdion alignment
2962 for never executed functions.
2963 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2964 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2965 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2968 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
2970 * predict.c: Inlude profile.h
2971 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2972 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2973 Use the information about maximal counter in the program.
2975 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
2977 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2978 probably_never_executed_bb_p): New functions.
2979 * cfgcleanup.c (outgoing_edges_match): Use them.
2980 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2981 (maybe_hot_bb_p, probably_cold_bb_p,
2982 probably_never_executed_bb_p): New functions.
2984 * function.h (function): Add new field function_frequency.
2985 * predict.c (compute_function_frequency): New function.
2986 (estimate_probability): Call it.
2988 2002-03-09 Jakub Jelinek <jakub@redhat.com>
2990 PR optimization/5172, optimization/5200
2991 * gcse.c (gcse_main): Disable store_motion.
2993 2002-05-14 Zack Weinberg <zack@codesourcery.com>
2995 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2996 (c_common_nodes_and_builtins): Use it.
2997 (builtin_define_with_value): New function.
2998 (cb_register_builtins): Define __SIZE_TYPE__,
2999 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3000 using builtin_define_with_value. Use consistent notation when
3001 defining __GXX_WEAK__.
3002 (WCHAR_TYPE_SIZE): Don't redefine.
3003 (combine_strings): Don't use WCHAR_TYPE_SIZE.
3005 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3006 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3007 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3008 * tradcpp.c (initialize_builtins): Likewise.
3009 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3011 * c-lex.h (builtin_define_with_value): Prototype.
3012 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3013 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3014 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3016 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3017 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3018 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3019 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3020 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3021 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3022 config/sparc/sol2-bi.h, config/sparc/sparc.h:
3023 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
3024 to __SIZE_TYPE__ etc from all spec strings. When this makes
3025 extra specs empty, delete them.
3027 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
3029 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3030 for PA8000 or generating dwarf2 call frame information.
3031 (output_call): Remove DO_FRAME_NOTES check from return pointer
3033 (following_call): Return 0 when scheduling for PA8000 or generating
3034 dwarf2 call frame information. Revise comment.
3036 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3039 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3040 and __IEEE_FP_INEXACT as appropriate.
3041 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3042 (CPP_SPEC): Remove ieee defines.
3043 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3045 2002-05-14 Richard Henderson <rth@redhat.com>
3047 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3048 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3050 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3052 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3054 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3055 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3056 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3057 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3058 (EXTRA_SPECS): Update.
3059 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3060 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3061 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3062 define TARGET_OS_CPP_BUILTINS if necessary.
3064 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3066 * gcc.c (cpp_options): Must pass -m* and -f* options
3067 to the front end even when only preprocessing.
3068 (cc1_options): Remove redundant -lang-c.
3069 * tradcpp.c (main): Ignore -m options.
3071 * lang-specs.h: Similarly.
3073 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
3075 * genautomata.c (transform_3): Add code for transformation
3076 `(A,B,...)+C -> A+C,B,...'.
3078 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
3080 * final.c (end_final): Do not output profile_arcs constructor, when
3081 no functions are instrumented.
3083 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
3085 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3087 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3089 * doc/install.texi: Remove special markup originally required for
3090 HTML generation with texi2html.
3092 2002-05-14 Andreas Schwab <schwab@suse.de>
3094 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3096 (UNIQUE_SECTION): Define to get small data correctly.
3098 * varasm.c (resolve_unique_section): Add third parameter
3099 flag_function_or_data_sections and use it instead of
3100 flag_function_sections.
3101 (assemble_start_function): Pass flag_function_sections.
3102 (asm_emit_uninitialised): Pass flag_data_sections.
3103 (assemble_variable): Likewise.
3105 2002-05-14 Richard Henderson <rth@redhat.com>
3107 * config/i386/i386.md: Use define_constants for unspec numbers.
3108 * config/i386/i386.c: Likewise.
3110 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3112 * doc/contrib.texi: Update my entry.
3114 2002-05-13 Mark Mitchell <mark@codesourcery.com>
3116 * fixinc/inclhack.def (winidss_valist): Limit applicability.
3117 * fixinc/fixincl.x: Regenerated.
3118 * fixinc/tests/base/math.h: Update.
3119 * fixinc/tests/base/testing.h: Likewise.
3121 2002-05-13 Zack Weinberg <zack@codesourcery.com>
3123 * genattr.c (gen_attr): Don't emit a comma after the last
3126 2002-05-13 Richard Henderson <rth@redhat.com>
3128 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3130 * recog.c (peephole2_optimize): Likewise.
3132 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
3134 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3137 2002-05-13 Jeffrey A Law (law@redhat.com)
3139 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3140 Update prototype and callers.
3141 (propagate_one_insn): Stack pointer adjustments kill MEMs on
3142 the mem_set_list which reference the stack pointer, as do
3143 calls to constant functions as they may clobber outgoing
3146 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3148 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3149 (ia32_multipass_dfa_lookahead): New function.
3151 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3153 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3154 (translate_options): Remove 'V'.
3155 (process_command): Similarly.
3157 * invoke.texi: Remove documentation of 'V'.
3159 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3161 * config/s390/linux.h: Revert 2002-04-22 changes.
3163 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
3165 * config/fr30/fr30.md: Only allow splits of immediate loads
3166 if the destination is a register.
3168 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3170 * Makefile.in (c-common.o, cppinit.o): Update.
3171 * c-common.c: Include except.h.
3172 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3173 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3174 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3175 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3176 CPP_PREDEFINES): Handle here.
3178 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3179 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3180 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3181 TARGET_OS_CPP_BUILTINS.
3182 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3183 (CPP_SPEC, EXTRA_SPECS): Update.
3184 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3185 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3186 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3187 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3188 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3190 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3191 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3193 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3195 * emit-rtl.c (global_rtl): Update comment.
3196 (const_double_htab, const_double_htab_hash,
3197 const_double_htab_hash, lookup_const_double): New.
3198 (const_int_htab_hash, const_int_htab_eq): Remove const
3199 qualifiers, which cause tons of warnings with RTL checking on.
3200 (gen_rtx_CONST_DOUBLE): Deleted.
3201 (const_double_from_real_value): New function - bears some
3202 resemblance to the former immed_real_const_1.
3203 (immed_double_const): Moved here from varasm.c and
3205 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3206 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3207 (gen_rtx): Use immed_double_const.
3208 (init_emit_once): Initialize the const_double_htab. Use
3209 REAL_VALUE_FROM_INT where possible. Can now use
3210 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3211 * varasm.c (struct varasm_status): Remove x_const_double_chain.
3212 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3213 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3214 (init_varasm_status, mark_varasm_status): Don't touch
3215 x_const_double_chain.
3217 * output.h: Delete prototype for clear_const_double_mem.
3218 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
3219 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
3220 const_double_from_real_value, not immed_real_const_1, and use
3221 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
3223 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3224 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3225 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3226 (gen_rtx_REG): Second arg is unsigned.
3228 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3229 (excluded_rtx): New, return true for CONST_DOUBLE.
3230 (genmacro): Write nothing for excluded codes.
3231 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3232 * expr.c (expand_expr): Likewise.
3233 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3235 * toplev.c (rest_of_compilation): Don't call
3236 clear_const_double_mem.
3238 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3239 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3240 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3241 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3242 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3243 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3244 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3245 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3247 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3249 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3251 2002-05-12 Tom Tromey <tromey@redhat.com>
3253 * tree.h (copy_node): Don't mention TREE_PERMANENT.
3255 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3257 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3258 (scan_comma_elt): New function. Accepts whitespace in comma lists.
3259 * gensupport.h: Prototype new routines.
3260 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
3262 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3263 (next_comma_elt): Use scan_comma_elt.
3265 * config/i386/i386.md: Use new attribute notation to break up
3266 long lines in define_attr forms.
3268 2002-05-12 Richard Henderson <rth@redhat.com>
3270 * expr.c (compress_float_constant): New.
3271 (emit_move_insn): Use it.
3272 (float_extend_from_mem): New.
3273 (init_expr_once): Initialize it.
3274 * real.c (exact_real_truncate): New.
3276 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3277 dropped into memory; penalize for size.
3278 (RTX_COSTS): FLOAT_EXTEND is free.
3279 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3280 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3282 2002-05-12 Richard Henderson <rth@redhat.com>
3284 * profile.h (profile_info): Add missing extern to declaration.
3285 * profile.c (profile_info): Define it.
3287 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3289 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3290 used for DImode and TImode.
3292 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3294 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3297 2002-05-11 Zack Weinberg <zack@codesourcery.com>
3299 * config/rs6000/rs6000.c (rs6000_default_long_calls,
3300 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3301 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3302 (rs6000_override_options): Handle -m(no-)longcall.
3303 (init_cumulative_args, output_mi_thunk): Check for both
3304 longcall and shortcall attributes on the function.
3305 (rs6000_attribute_table): Add "shortcall".
3306 (rs6000_handle_longcall_attribute): Update comment.
3307 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3308 altivec_expand_ternop_builtin): Add default clauses to switches
3309 to silence warnings.
3311 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3312 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
3313 (TARGET_OPTIONS): Add longcall and no-longcall.
3315 * config/rs6000/rs6000.md (call_nonlocal_sysv,
3316 call_value_nonlocal_sysv): Split by alternatives. One pair
3317 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3318 the call cookie. The other pair accepts only LR/CTR and has
3321 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3322 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3324 * config/rs6000/rs6000-c.c: New file.
3325 * config/rs6000/t-rs6000-c-rule: New file.
3326 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3327 Prototype rs6000_pragma_longcall.
3329 * doc/extend.texi: Document shortcall attribute.
3330 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3332 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3334 * reorg.c (dbr_schedule): Remove unnecessary test.
3336 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3338 * i386.md (testsi to testqi spliters): New.
3340 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
3342 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3344 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3346 * basic-block.h: New flag EDGE_CAN_FALLTHRU
3347 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3348 that can be made fallthru.
3350 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
3352 * cfglayout.c (cleanup_unconditional_jumps): New static function.
3353 (cfg_layout_initialize): Use it.
3355 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
3357 * config/avr/avr.c (avr_mcu_types): Update supported devices.
3358 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3359 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3361 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3363 * dbxout.c: Fix formatting.
3364 * dependence.c: Likewise.
3366 * diagnostic.c: Likewise.
3367 * doloop.c: Likewise.
3368 * dominance.c: Likewise.
3369 * doschk.c: Likewise.
3370 * dwarf2asm.c: Likewise.
3371 * dwarf2out.c: Likewise.
3372 * dwarfout.c: Likewise.
3374 2002-05-10 Richard Henderson <rth@redhat.com>
3376 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3377 Convert integers constants as needed. Replace "nwords" field with
3379 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3380 * function.h: Fix typo in comment.
3381 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3383 2002-05-10 Roger Sayle <roger@eyesopen.com>
3385 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3386 into the equivalent (signed char)c > 0.
3388 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3390 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3391 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3392 (struct prefetch_info): Fix spelling of member bytes_accessed.
3393 (emit_prefetch_instructions): Make dump messages more regular;
3394 restructure code to add more dump messages; use new macros for
3395 heuristics. (There are no code generation changes in any of this).
3397 2002-05-10 David S. Miller <davem@redhat.com>
3399 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3400 (struct rtx_def): Update unchanging flag comment.
3401 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3402 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3403 to be handled to INSN too.
3404 (dbr_schedule): Likewise.
3405 * resource.c (next_insn_no_annul): Likewise.
3407 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3410 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3412 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3413 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3414 (possibly) work around broken /bin/sh.
3416 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3418 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3419 . as N64/N32 libgcc_s.so subdirs.
3421 2002-05-10 David S. Miller <davem@redhat.com>
3423 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3425 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3427 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3429 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3430 * doc/rtl.texi: Document these macros more accurately.
3431 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3432 JUMP_INSNs and CALL_INSNs.
3433 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3434 or INSN_FROM_TARGET_P if the code is appropriate.
3436 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3438 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3439 before using SYMBOL_REF_FLAG (addr).
3441 * config/avr/avr-protos.h (avr_io_address_p): Declare.
3442 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3443 Make non-static. Update all callers.
3444 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3445 New insns to clear/set/test a single bit in I/O address space.
3447 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3449 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3451 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3453 * Makefile.in: Update.
3454 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3455 builtin_define_std): New.
3456 (c_common_init): Register CPP builtins callback.
3457 * c-common.h (flag_iso, flag_undef): New.
3458 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3459 * c-lex.c: Don't include target.h.
3460 (cb_register_builtins): Move to c-common.c.
3461 (init_c_lex): Don't register hook here.
3462 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3463 (cpp_define, cpp_assert): Remove.
3464 * gcc.c (cc1_options): Pass -undef to front end.
3465 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3466 (TARGET_INITIALIZER): Update.
3467 * target.h (struct cpp_reader): Don't predeclare.
3468 (struct gcc_target): Remove cpp builtin hook.
3469 * tree.c (default_register_cpp_builtins): Remove.
3473 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3475 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3477 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3479 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3480 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3482 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3484 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3485 * config/sparc/libgcc-sparc-glibc.ver: New file.
3486 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3487 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3489 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3492 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3493 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3494 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3496 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3497 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3498 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3499 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3501 2002-05-09 Richard Henderson <rth@redhat.com>
3503 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3504 * config/ia64/ia64.c: Likewise.
3506 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3508 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3509 (save_restore_insns): Likewise.
3510 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3511 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3513 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
3515 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3516 * i386.md: Move scheduling information into new files.
3518 * i386.md (type attribute): Add "rotate" for rotate insns.
3519 (rotate insns): Set type to "rotate".
3520 (various attributes and function units): Treat rotate like shift.
3521 (pent_pair attribute): Only rotates by one bit position are
3523 (sbb insns): Explicitly set pent_pair attribute on a couple
3524 that were missing it.
3526 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3528 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3529 make sure that buffer starts on odd word address.
3530 (sh_va_arg): Skip odd fp registers when reading a double precision
3533 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3535 * tree.h (preserve_data, object_permanent_p, type_precision):
3538 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3540 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3541 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3543 * cpp.texi: Update for removal of obsolete features.
3545 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
3546 Jeffrey A Law (law@redhat.com)
3548 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
3549 the DFA interface for Pentium processors.
3550 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3551 (attr_pent_pair, ix86_pent_find_pair): Remove.
3552 (ix86_sched_reorder_pentium): Remove.
3553 (ix86_sched_reorder): Remove reordering for Pentium.
3554 * i386.md (Pentium scheduling): Rewrite using DFA description.
3556 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
3558 * cfganal.c (can_fallthru): Fix fast path.
3559 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3560 with edges to the next block.
3562 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3563 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3565 * final.c (end_final): Use C trees to output data structures for profiling.
3567 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3568 (profile.o): New dependency profile.h
3569 (final.o): New dependency profile.h
3570 * profile.h: New file. New global structure profile_info.
3571 * final.h (count_edges_instrumented_now): Declare.
3572 (current_function_cfg_checksum): Declare.
3573 (function_list): New structure.
3574 (functions_head, functions_tail): New static variables.
3575 (end_final): Emits more data, removed some -ax stuff.
3576 (final): Stores function names and chcksums.
3577 * gcov-io.h (__write_gcov_string): New function.
3578 (__read_gcov_string): New function.
3579 * gcov.c (read_profile): New function.
3580 (create_program_flow_graph): Uses read_profile instead of reading
3582 (read_files): Removed da_file checking, it's done by read_profile now.
3583 * libgcc2.c (bb_function_info): New structure.
3584 (bb): New field in structure, removed some -ax stuff.
3585 (__bb_exit_func): Changed structure of da_file.
3586 * profile.c (count_edges_instrumented_now): New global variable.
3587 (current_function_cfg_checksum): New global variable.
3588 (max_counter_in_program): New global variable.
3589 (get_exec_counts): New function.
3590 (compute_checksum): New function.
3591 (instrument_edges): Sets count_edges_instrumented_now.
3592 (compute_branch_probabilities): Uses get_exec_counts instead of
3594 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3595 (init_branch_prob): Removed da_file checking, done in get_exec_counts
3597 (end_branch_prob): Removed da_file checking, done in get_exec_counts
3599 * gcov.texi: Updated information about gcov file format.
3601 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3603 * sbitmap.c: Fix formatting.
3605 * scan-decls.c: Likewise.
3606 * sched-deps.c: Likewise.
3607 * sched-ebb.c: Likewise.
3608 * sched-rgn.c: Likewise.
3609 * sched-vis.c: Likewise.
3610 * sdbout.c: Likewise.
3611 * sibcall.c: Likewise.
3612 * simplify-rtx.c: Likewise.
3614 * ssa-ccp.c: Likewise.
3615 * ssa-dce.c: Likewise.
3617 * stor-layout.c: Likewise.
3618 * stringpool.c: Likewise.
3620 2002-05-09 David S. Miller <davem@redhat.com>
3622 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3624 2002-05-07 David S. Miller <davem@redhat.com>
3626 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3627 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3628 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3629 library implementation clobbers the output before the inputs
3630 are fully consumed, use stack temporary for the output.
3632 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
3634 * config/netbsd.h (CPP_SPEC): Remove.
3635 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3636 * config/i386/netbsd.h (CPP_SPEC): Define.
3637 * config/ns32k/netbsd.h (CPP_SPEC): Define.
3638 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3639 * config/sparc/netbsd.h (CPP_SPEC): Define.
3640 * config/vax/netbsd.h (CPP_SPEC): Define.
3642 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3644 * read-rtl.c: Fix formatting.
3646 * recog.c: Likewise.
3647 * regclass.c: Likewise.
3648 * regmove.c: Likewise.
3649 * reg-stack.c: Likewise.
3650 * reload1.c: Likewise.
3651 * reload.c: Likewise.
3652 * resource.c: Likewise.
3653 * rtlanal.c: Likewise.
3655 * rtl-error.c: Likewise.
3657 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3659 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3660 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3662 2002-05-08 Bernd Schmidt <bernds@redhat.com>
3664 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3665 use __SSE2__ macro instead.
3666 * config/i386/xmmintrin.h: Likewise.
3668 2002-05-08 Janis Johnson <janis187@us.ibm.com>
3670 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3671 and use it in all invocations of these macros. Clean up comments.
3672 * rtl.c (rtl_check_failed_flag): Add an argument for the name
3673 of the flag access macro whose check failed.
3674 * doc/rtl.texi (Flags): Document additional flag uses.
3676 2002-05-08 Robert Spier <rspier@pobox.com>
3677 Neil Booth <neil@daikokuya.demon.co.uk>
3679 PR preprocessor/6521
3680 * cppfiles.c (handle_missing_header): Don't do anything
3681 different for <> includes.
3683 * cppopts.texi: Update documentation for -MG.
3685 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
3687 * cpplex.c (cpp_interpret_charconst): Truncate as well as
3690 * cpp.texi: Clarify multichar charconst valuation.
3692 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3694 * doc/invoke.texi: Document -mwindiss option.
3696 2002-05-08 Jason Merrill <jason@redhat.com>
3698 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3700 * dwarf2out.c (gen_type_die): Abort on broken recursion.
3703 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3706 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
3708 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3709 little-endian multilibs to override arm/thumb multilibs.
3710 Do not build hardware floating point multilibs, nor apcs-26
3711 multilibs for the Thumb.
3713 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3716 * varasm.c (mark_weak): New function.
3717 (merge_weak): Use it. Do not call declare_weak.
3718 (declare_weak): Use merge_weak.
3720 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3722 * cse.c (dead_libcall_p): Update counts.
3723 (delete_trivially_dead_insns): Update call of dead_libcall_p.
3725 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3727 * cfglayout.c (function_tail_eff_head): Rename to ...
3728 (function_footer): ... this one.
3729 (unlink_insn_chain): New functions.
3730 (label_for_bb): Only call block_label and emit debug message.
3731 (record_effective_endpoints): Actually unlink the headers and footers.
3732 (fixup_reorder_cahin): Re-insert the unlinked sequences.
3733 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3734 * cfglayout.h (struct reorder_block_def): New fields footer/header;
3735 remove eff_head/eff_end.
3736 * rtl.h (set_first_insn): Declare.
3737 * emit-rtl.c (set_first_insn): New function.
3739 * cfglayout.c (fixup_reorder_chain): Dump duplicated
3740 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3741 cfg_layout_duplicate_bb): New global function.
3742 (duplicate_insn_chain): New static function.
3743 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3744 cfg_layout_duplicate_bb): Declare.
3745 (struct reorder_block_def): Add "original" field.
3746 * emit-rtl.c (emit_copy_of_insn_after): New function.
3747 * rtl.h (emit_copy_of_insn_after): Declare.
3749 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3750 (fixup_reorder_chain): properly handle edges to exit block.
3752 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3753 Jan Hubicka <jh@suse.cz>
3755 * basic-block.h (note_prediction_to_br_prob): declare.
3756 * c-semantics.c: Inlucde predit.h
3757 (expand_stmt): predict GOTO_STMT as not taken.
3758 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3759 (cleanup_cfg): Do not free tail_recursion_list.
3760 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3761 (flow_delete_block): Kill predictions past end of basic block.
3762 * output.h (delete_unreachable_blocks): Declare.
3763 * predict.c (predicted_by_p, process_note_predictions,
3764 process_note_prediction, last_block_p): New function.
3765 (estimate_probability): Bypass loop on PRED_CONTINUE;
3766 do not handle noreturn heuristics; kill PRED_RETURN; add
3768 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3769 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3770 * predict.h (IS_TAKEN): New constant.
3771 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3772 * rtl.c (NOTE_INSN_PREDICTION): New.
3773 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3775 (insn_note): add NOTE_INSN_PREDICTION.
3776 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3777 CFG; free tail_recursion_label_list.
3778 * stmt.c: Include predict.h;
3779 (return_prediction): New.
3780 (expand_value_return): Use it.
3781 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3783 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
3785 * config/mips/mips.md: Name the unspecs with define_constant.
3786 (*HILO_delay): Rename to 'hilo_delay' (no star).
3787 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3788 (reload_outdi, reload_outsi): Likewise.
3790 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3792 * toplev.c: Fix formatting.
3794 2002-05-07 Janis Johnson <janis187@us.ibm.com>
3796 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3797 * configure.in (ac_rtlflag_checking): New.
3798 * doc/install.texi (--enable-checking): Document RTL flag checking.
3800 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3802 * c-common.c (c_common_init): Set options->unsigned_wchar.
3803 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3804 group target dependencies.
3805 (init_builtins, cpp_handle_option): Update.
3806 * cpplex.c (cpp_interpret_charconst): Update.
3807 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3808 signed_char to unsigned_char, group target dependencies.
3809 * defaults.h (WCHAR_UNSIGNED): Remove.
3810 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3812 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3813 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3814 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3815 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3816 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3818 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3820 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3822 * fixinc/inclhack.def (windiss_math1): New fix.
3823 (windiss_math2): Likewise.
3824 (windiss_valist): Likewise.
3825 * fixinc/fixincl.x: Regenerated.
3827 2002-05-07 Andreas Jaeger <aj@suse.de>
3829 * genautomata.c (output_internal_min_issue_delay_func): Add
3830 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3831 (output_internal_trans_func): Likewise.
3833 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
3835 * pa.c (hppa_profile_hook): Use force_reg to get the address
3836 of the profile hook into an appropriate pseudo register.
3838 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3840 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3841 (LINK_START_SPEC): Handle it.
3842 (LINK_OS_SPEC): Likewise.
3843 (CPP_SPEC): Likewise.
3844 (STARTFILE_SPEC): Likewise.
3845 (LIB_SPEC): Likewise.
3846 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
3848 (CRTSAVRES_DEFAULT_SPEC): New macro.
3849 (LIB_WINDISS_SPEC): New macro.
3850 (CPP_OS_WINDISS_SPEC): Likewise.
3851 (STARTFILE_WINDISS_SPEC): Likewise.
3852 (ENDFILE_WINDISS_SPEC): Likewise.
3853 (LINK_START_WINDISS_SPEC): Likewise.
3854 (LINK_OS_WINDISS_SPEC): Likewise.
3855 * config/rs6000/windiss.h: New file.
3857 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
3859 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3861 2002-05-06 David S. Miller <davem@redhat.com>
3863 * config/sparc/sparc.md (shift insns): Do not mask off
3864 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3867 2002-05-06 Richard Henderson <rth@redhat.com>
3870 * expr.c (highest_pow2_factor_for_type): New.
3871 (expand_assignment): Use it.
3873 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
3875 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3877 ("altivec_mfvscr"): Same.
3879 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3881 * rtl.h (struct rtx_def): Update comments.
3882 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
3883 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
3884 RTL_FLAG_CHECK macros with list of expected RTL codes.
3885 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3886 (rtl_check_failed_flag): New.
3887 * reload1.c (reload): Use REG macro before changing rtx to MEM.
3888 (reload_cse_noop_set_p): Check rtx code before using access macro.
3889 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3890 before using access macro.
3892 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3894 * doc/rtl.texi (Flags): Update to reflect current usage.
3896 2002-05-06 Roger Sayle <roger@eyesopen.com>
3899 * fold-const.c (sign_bit_p): New function.
3900 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3901 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3902 Reapply fold when converting (A & C) == C into (A & C) != 0.
3903 (fold_binary_op_with_conditional_arg): Fix typo in comment.
3905 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3907 * c-common.c (warn_multichar): New.
3908 (c_common_init): Set CPP's warn_multichar.
3909 * c-common.h (warn_multichar): New.
3910 * c-decl.c (warn_multichar): Remove.
3911 * c-lex.c (lex_charconst): Update.
3912 * c-tree.h (warn_multichar): Remove.
3913 * cppexp.c (eval_token): Sign-extend charconst value.
3914 * cppinit.c (cpp_create_reader): Set warn_multichar.
3915 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3916 each character. Update prototype. Sign-extend the result.
3917 * cpplib.h: Fix conditions.
3918 (struct cpp_options): Add new warning flag.
3919 (cpp_interpret_charconst): Update prototype.
3921 * cpp.texi: Update documentation.
3923 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
3925 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3926 Fix typo in usage of allof instead of unit.
3928 2002-05-06 Richard Henderson <rth@redhat.com>
3930 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3931 and any jump or call for IN.
3933 2002-05-06 Bernd Schmidt <bernds@redhat.com>
3935 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3937 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3939 2002-05-06 Roger Sayle <roger@eyesopen.com>
3941 * fold-const.c (lshift-double): Cast the high word to an unsigned
3942 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3943 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3944 avoid compiler warning. (fold): Remove redundant code from
3945 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3947 2002-05-06 Jeff Law <law@redhat.com>
3949 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3950 * pa.c (pa_adjust_cost): Remove all true dependency cost
3951 adjustments. Also remove support for non-DFA scheduling.
3952 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3953 to adjust true dependency costs. Update various comments.
3954 (7100lc, 7200, 7300 scheduling): Simplify by combining the
3955 FP ALU & MPY units into a single unit.
3957 2002-05-06 Catherine Moore <clm@redhat.com>
3959 * config/v850/v850.c (compute_register_save_size): Make sure
3960 to count all of the registers that will be saved.
3962 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3964 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3966 2002-05-06 David S. Miller <davem@redhat.com>
3968 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3969 allow result to overlap input operands in memory.
3971 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3974 * cpp.texi: Update multichar charconst docs.
3976 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3978 * cpplex.c (cpp_interpret_charconst): Sign-extend each
3979 character. Don't ignore excess characters. Treat
3980 multicharacter character constants as signed.
3981 (cpp_parse_escape): Clarify diagnostic.
3983 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3985 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3986 use add instead of shift.
3987 (ashldi3_sp64): Likewise.
3988 (ashlsi3_const1, ashldi3_const1): Remove.
3989 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3990 * config/sparc/sparc.c (const1_operand): New.
3992 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3994 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3996 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3999 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4001 2002-05-05 Richard Henderson <rth@redhat.com>
4003 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4004 memory latency adjustments.
4005 (alpha_variable_issue): Remove.
4006 (alpha_use_dfa_pipeline_interface): New.
4007 (alpha_multipass_dfa_lookahead): New.
4008 * config/alpha/alpha.md: Remove define_function_unit scheduling;
4009 include new dfa scheduling.
4010 (attr type): Add none.
4012 * config/alpha/ev4.md: New.
4013 * config/alpha/ev5.md: New.
4014 * config/alpha/ev6.md: New.
4016 2002-05-05 David S. Miller <davem@redhat.com>
4018 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4020 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
4022 * cse.c: Fix formatting.
4023 * emit-rtl.c: Likewise.
4025 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4027 * genautomata.c (initiate_states): Add additional guard to
4028 initialize `units_array'.
4030 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4032 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4033 process_unit_to_form_the_same_automaton_unit_lists,
4034 form_the_same_automaton_unit_lists
4035 check_unit_distributions_to_automata): New prototypes and
4037 (check_automata): Rename it into `check_automata_insn_issues'.
4038 (unit_decl): New fields `the_same_automaton_unit' and
4039 `the_same_automaton_message_reported_p'.
4040 (unit_decl_t): New typedef.
4041 (the_same_automaton_lists): New gloval variable.
4042 (unit_regexp, unit_set_el, units_array, units_cmp,
4043 output_get_cpu_unit_code_func): Use the typedef.
4044 (evaluate_max_reserv_cycles): Increment
4045 `description->max_insn_reserv_cycles'.
4046 (initiate_states): Don't increment `max_cycles_num'.
4047 (transform_insn_regexps): Move code around transformation of
4048 regexps from `generate'.
4049 (generate): Remove call of `transform_insn_regexps'.
4050 (expand_automata): Call `transform_insn_regexps' and
4051 `check_unit_distributions_to_automata'. Check errors before
4054 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4055 automaton `ultrasparc3_1'.
4057 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
4059 * c-common.c (c_common_init): Set up CPP arithmetic.
4060 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4061 something reasonable for the host.
4062 (sanity_checks): Add checks.
4063 (cpp_read_main_file): Call sanity_checks() from here...
4064 (cpp_post_options): ... not here.
4065 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4066 * cpplib.h (struct cpp_options): New member int_precision.
4068 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4070 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4072 2002-05-04 David S. Miller <davem@redhat.com>
4074 * config/sparc/linux.h, config/sparc/linux64.h
4075 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4077 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4079 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4081 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4084 2002-05-05 Tim Josling <tej@melbpc.org.au>
4086 * treelang; New directory for new sample language treelang.
4088 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4090 * Makefile.in (c-lex.o): Update.
4091 * c-lex.c: Include target.h.
4092 (cb_register_builtins): New.
4093 (init_c_lex): Set builtins callback.
4094 * c-lex.h (cpp_define, cpp_assert): New prototypes.
4095 * cppinit.c (init_builtins): Use callback, including for
4097 * cpplib.h (struct cpp_callbacks): New member.
4098 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4099 (TARGET_INITIALIZER): Update.
4100 * target.h (struct gcc_target): New hook.
4101 * tree.c (default_register_cpp_builtins): New.
4102 * tree.h (default_register_cpp_builtins): New.
4104 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4106 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4108 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4109 (cpp_post_options): Move sanity checks to...
4110 (sanity_checks): New.
4111 * cpplex.c (maybe_read_ucs): Fix prototype.
4112 (parse_string, cpp_parse_escape): Cast for %c format specifier.
4113 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4116 2002-05-04 Bernd Schmidt <bernds@redhat.com>
4118 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4119 builtins. Use V2DI patterns instead of TI for logical operations.
4120 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4121 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4122 (ix86_expand_builtins): Change the pattern used for movntdq.
4123 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4124 sse2_nandv2di3): New patterns.
4125 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4127 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4128 (cvtdq2pd): Correct mode on operand 1.
4129 (sse2_umulsidi3): Describe without unspec.
4130 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4132 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4133 (ashlv2di3): Likewise, from sse2_ashlv2di3.
4134 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4135 ashlv4si3, ashlv2di3): Use SImode for shift count.
4136 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4137 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4139 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4141 (__m128i, __m128d): New macros.
4142 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4143 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4144 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4145 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4146 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4147 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4148 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4149 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4150 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4151 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4152 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4153 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4154 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4155 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4156 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4157 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4158 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4159 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4160 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4161 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4162 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4163 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4164 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4165 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4166 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4167 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4168 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4169 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4170 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4171 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4172 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4173 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4174 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4175 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4176 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4177 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4178 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4180 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4181 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4183 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4185 * dwarf2out.c: Fix formatting.
4186 * varasm.c: Likewise.
4188 2002-05-04 David Edelsohn <edelsohn@gnu.org>
4191 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4192 clobber and use result as temporary value.
4194 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4196 * expr.c (force_operand): Use expand_simple_* to handle more
4199 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4201 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4203 (lex_charconst): Update for change in prototype of
4204 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
4206 * cpphash.h (BITS_PER_CPPCHAR_T): New.
4207 * cppinit.c (cpp_create_reader): Initialize them for no
4208 change in semantics.
4209 (cpp_post_options): Add sanity checks.
4210 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4211 and truncation issues. Calculate in type cppchar_t.
4212 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4213 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
4214 run-time dependent precision correctly. Return whether the
4215 result is signed or not.
4216 * cpplib.c (dequote_string): Use cppchar_t; update.
4217 * cpplib.h (cppchar_signed_t): New.
4218 struct cpp_options): New precision members.
4219 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4220 * cppexp.c (eval_token): Update.
4222 2002-05-03 David S. Miller <davem@redhat.com>
4224 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4225 * config/sparc/sparc.c (sparc_rtx_costs): New function
4226 implementing RTX_COSTS and CONST_COSTS.
4227 * config/sparc/sparc.h (CONST_COSTS): Delete.
4228 (RTX_COSTS_CASES): Define.
4229 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4232 * config/sparc/sparc.md (DFA schedulers): Split out...
4233 * config/sparc/cypress.md, config/sparc/hypersparc.md,
4234 config/sparc/sparclet.md, config/sparc/supersparc.md,
4235 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4237 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4238 checks on it, always defined for Sparc.
4240 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4241 Tweak, and add more detailed comments.
4243 2002-05-03 Zack Weinberg <zack@codesourcery.com>
4245 * Re-apply patch accidentally reverted with
4246 DFA scheduler merge: remove all rules and variables to slurp
4247 source files out of libiberty and rebuild them with HOST_CC.
4248 ($(HOST_PREFIX_1)varray.o): New rule.
4249 (genattrtab rule): Word wrap.
4251 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4253 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4254 (CPP_SUBTARGET_SPEC): Define.
4255 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4256 cpp_subtarget specs.
4257 (CPP_SPEC): Redefine to include %(cpp_subtarget).
4259 2002-05-03 David S. Miller <davem@redhat.com>
4261 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4262 * target.h (struct gcc_target): Delete cycle_display member.
4264 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4265 (rtx_needs_barrier): Delete reference to cycle_display unspec.
4266 (ia64_sched_reorder2): Mention need for cycle display handling
4267 once such notes exist.
4269 2002-05-03 Richard Henderson <rth@redhat.com>
4271 * real.c (etoasc): Strip most trailing zeros for clarity.
4272 * sched-vis.c: Include real.h.
4273 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4274 * Makefile.in (sched-vis.o): Add real.h.
4276 2002-05-03 David S. Miller <davem@redhat.com>
4278 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4281 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
4283 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4284 when we get an out of range literal.
4285 (altivec_expand_ternop_builtin): Same.
4286 (altivec_expand_unop_builtin): Same.
4287 (altivec_expand_builtin): Same, for dss.
4288 (altivec_expand_builtin): Use trees instead of rtl when
4289 determining literal argument validity.
4291 2002-05-03 David S. Miller <davem@redhat.com>
4293 Delete cycle display scheduling hook.
4294 * config/ia64/ia64.c (ia64_cycle_display,
4295 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4296 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4297 and use emit_insn_before instead of ia64_emit_insn_before.
4298 * config/ia64/ia64.md (unspec usage): Delete cycle display.
4299 (cycle_display): Delete insn pattern.
4300 * config/sparc/sparc.md (unspec usage): Delete cycle display.
4301 (cycle_display): Delete insn pattern.
4302 * config/sparc/sparc.c (sparc_cycle_display,
4303 TARGET_SCHED_CYCLE_DISPLAY): Delete.
4304 * doc/md.texi (cycle_display): Don't mention.
4305 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4307 2002-05-03 Richard Henderson <rth@redhat.com>
4309 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4310 * recog.h: Declare them.
4312 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4313 * config/sparc/sparc.md: Use store_data_bypass_p instead.
4314 * config/sparc/sparc-protos.h: Update.
4316 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4318 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4319 -D__arch64__. Add -D_LP64.
4320 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4322 (CPP_ARCH64_SPEC): Likewise.
4323 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4324 (NO_BUILTIN_SIZE_TYPE): Undef.
4326 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
4328 * genautomata.c (min_issue_delay_pass_states): Change return type
4330 (min_issue_delay_pass_states): Change the algorithm.
4331 (min_issue_delay): Set up min_insn_issue_delay for the state.
4332 (output_min_issue_delay_table): Interchange the nested loops and
4333 and initiate min_insn_issue_delay for states.
4335 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
4337 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
4340 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4342 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
4345 2002-05-03 Richard Henderson <rth@redhat.com>
4348 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4349 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4350 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4351 code before JUMP, not EARLIEST.
4353 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
4355 * c-format.c (check_format_info_main): Don't check for presence of
4356 parameter for * width until after operand number has been read,
4357 and only check for it if format parameters are available.
4360 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4362 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4363 (LINK_SPEC): Undef before defining.
4365 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4367 PR preprocessor/6489
4368 * tradcpp.c (fixup_newlines): New.
4369 (main, finclude): Use it.
4371 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4373 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4374 * config/mips/mips.c (mips_unique_section): Strip encoding from
4377 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4379 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4382 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4384 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4385 (Specific): Removed buildstats references.
4386 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4387 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4388 Accomodate Solaris versions beyond 8.
4389 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4390 (Specific, *-*-solaris2.8): Removed, obsolete.
4392 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4395 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4396 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4397 fill leaf_reg_remap with identity.
4398 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4400 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4402 * config/h8300/crti.asm: Remove trailing spaces.
4403 * config/h8300/h8300.c: Likewise.
4404 * config/h8300/lib1funcs.asm: Likewise.
4406 2002-05-02 Jason Merrill <jason@redhat.com>
4408 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4409 * c-decl.c (c_init_decl_processing): Use it.
4410 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4411 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4412 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4414 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4416 * regrename.c: Fix formatting.
4419 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4421 * i386.md (attribute memory): Handle compares properly.
4423 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4425 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4428 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4430 * function.c: Fix formatting.
4432 2002-05-02 Jan Hubicka <jh@suse.cz>
4434 * haifa-sched.c (schedule_insn): Print table of instructions and
4436 (sched_block): Do not print ready list at verbosity level 1.
4437 * sched-vis.c (print_insn): Make global.
4438 * sched-ebb.c (ebb_print_insn): Rename from...
4439 (print_insn): ... this one.
4440 * sched-int.h (print_insn): Declare
4442 2002-05-02 Richard Henderson <rth@redhat.com>
4444 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4445 emitted by cycle_display.
4447 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
4449 * doc/install.texi (*-*-freebsd*): Update to latest status.
4451 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4454 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4455 * config/float-sparc.h: Assume 128-bit long double if
4456 __LONG_DOUBLE_128__ is defined.
4458 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
4460 * genattrtab.c (write_function_unit_info): Add a dummy element
4461 when num_units == 0.
4463 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4465 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4466 TYPE_MODE (double_type_node) instead of DFmode.
4468 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
4470 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4472 * toplev.c (rest_of_compilation): Revert Richard's patch.
4474 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4476 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4478 2002-05-02 Catherine Moore <clm@redhat.com>
4480 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4482 2002-05-02 Kazu Hirata <kazu@hxi.com>
4484 * combine.c: Fix comment typos.
4486 * genautomata.c: Likewise.
4490 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4492 * doc/install.texi: State GNAT version requirements.
4494 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4496 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4497 of the frame pointer or arg pointer register which strict register
4498 checking is not enabled.
4500 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4502 * gcc.dg/altivec-8.c: New.
4504 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4505 PRE_INC and PRE_DEC for altivec modes.
4507 2002-05-01 Bruce Korb <bkorb@gnu.org>
4509 * fixinc/check.tpl(set-writable): make sure the function exists first
4510 * fixinc/inclhack.def(alpha_assert): fix test_text
4511 * fixinc/tests/base/assert.h: add in missing result
4513 2002-05-01 Jeff Law <law@redhat.com>
4515 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4518 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4520 * dbxout.c (dbxout_type): Emit size information for range types,
4521 as well, but only when using GDB extensions.
4523 2002-05-01 Richard Henderson <rth@redhat.com>
4525 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4526 target-independent gnu binutils date test.
4528 2002-05-01 Richard Henderson <rth@redhat.com>
4530 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4531 info before expunging the block.
4533 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4535 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4536 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4537 -M -or -MM is in effect.
4539 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4541 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4542 A29k configurations.
4543 * doc/install.texi: Update to match.
4545 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4548 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4549 for duplicates. Always loop over whole list.
4551 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4553 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4555 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4557 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4560 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4562 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4564 2002-05-01 David Edelsohn <edelsohn@gnu.org>
4566 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4567 (nabs_nopower): Same.
4568 (floatdisf2): New pattern.
4569 (absdi2): Convert to define_insn_and_split.
4574 (fix_trunctfdi2): Same.
4575 (fix_trunctfsi2): Same.
4577 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
4579 * doc/install.texi: Update Texinfo version requirement
4582 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4584 PR target/6512, PR target/5628
4585 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4586 when memory is not aligned.
4587 (movdf_insn_v9only_vis): Likewise.
4588 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4589 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4590 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4592 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
4594 * gcc.dg/altivec-7.c: New.
4596 * config/rs6000/altivec.h: Cleanup.
4598 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
4600 * doc/invoke.texi (Option Summary): Add -mvrsave=.
4601 (RS/6000 and PowerPC Options): Document -mvrsave=.
4603 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4604 (rs6000_altivec_vrsave_string): Same.
4605 (rs6000_override_options): Call rs6000_parse_vrsave_option.
4606 (rs6000_parse_vrsave_option): New.
4607 (rs6000_stack_info): Only generate vrsave instructions when
4608 TARGET_ALTIVEC_VRSAVE.
4610 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4611 (rs6000_altivec_vrsave_string): Define extern.
4612 (rs6000_altivec_vrsave): Same.
4613 (TARGET_ALTIVEC_VRSAVE): New.
4615 2002-04-30 Richard Henderson <rth@redhat.com>
4618 * toplev.c (rest_of_compilation): Don't run cross-jump before
4621 2002-04-30 Tom Rix <trix@redhat.com>
4623 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4624 check which_alternative.
4626 2002-04-30 Kazu Hirata <kazu@hxi.com>
4628 * cpplex.c: Fix comment formatting.
4629 * function.c: Likewise.
4630 * integrate.c: Likewise.
4631 * regrename.c: Likewise.
4632 * sibcall.c: Likewise.
4633 * simplify-rtx.c: Likewise.
4634 * tree-inline.c: Likewise.
4636 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4638 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4639 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4640 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4641 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4642 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4643 * pa/x-ada: New file. Define ADA_CFLAGS.
4645 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
4647 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4648 from MMIX_LAST_REGISTER_FILE_REGNUM.
4649 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4650 (struct machine_function): New member highest_saved_stack_register
4651 previously static variable in mmix.c.
4652 (MACHINE_DEPENDENT_REORG): Define.
4653 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4654 (MMIX_OUTPUT_REGNO): New.
4655 (mmix_target_asm_function_prologue): Move calculation of last used
4656 saved-stack-register into...
4657 (mmix_machine_dependent_reorg): New function. Update to also handle
4659 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4660 register names, simplify somewhat by new variable regno.
4661 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
4663 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4664 emitting register names.
4665 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4666 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4668 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4671 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4673 2002-04-30 Richard Henderson <rth@redhat.com>
4675 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4676 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4677 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4678 emit_tfmode_cvt): New.
4679 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4680 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4681 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4682 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4683 * config/sparc/sparc-protos.h: Update.
4685 2002-04-30 Janis Johnson <janis187@us.ibm.com>
4687 * install.texi (Final install): Add to the list of info to include
4688 in a report of a successful bootstrap, and add link to 3.1 list.
4690 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
4692 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4693 (mode): Add vector modes
4694 (i387): Kill attribute.
4695 (unit): New attribute.
4696 (length_immediate): Grok new types.
4697 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4698 (modrm): Use "unit".
4699 (memory): Handle MMX/SSE properly.
4700 (scheduling descriptions): Kill uses of fop1.
4701 (sse, mmx, fp patterns): Set type and mode properly.
4703 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
4705 * pa.c (override_options): Default to PA8000 scheduling.
4706 * doc/invoke.texi (HP-PA options): Mention newly added 7300
4707 scheduling parameter.
4709 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4710 handling of double precision multiplies.
4712 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4713 fpdiv and fpsqrt instructions.
4714 (7200 & 7300 scheduling): Fix typo in handling of
4715 store-load and store-store penalties.
4717 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4719 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4720 mips. Add two missing commas.
4722 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
4724 * doc/contrib.texi (Contributors): Update Paolo Carlini's
4725 and Benjamin Kosnik's entries.
4727 2002-04-29 David S. Miller <davem@redhat.com>
4729 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4730 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4731 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4732 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4734 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4736 * combine.c (find_split_point): Use gen_int_mode.
4738 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
4740 Merging code from dfa-branch:
4742 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
4744 * genautomata.c (output_reserv_sets): Fix typo.
4746 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
4748 * genautomata.c (output_reserv_sets): Remove
4749 next_cycle_output_flag.
4751 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
4753 * sched-rgn.c (init_ready_list): Make the DFA code handle
4754 USE/CLOBBER insns in the same way as the traditional
4756 (new_ready): Similarly..
4758 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
4760 * haifa-sched.c (schedule_block): Change the DFA state only after
4763 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
4765 * pa.c (hppa_use_dfa_pipeline_interface): New function.
4766 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4767 (override_options): Add PA7300 scheduling support.
4768 (pa_adjust_cost): Update various comments. Properly
4769 handle anti and output dependencies when using the
4771 (pa_issue_rate): Add PA7300 scheduling support.
4772 (pa_can_combine_p): Call extract_insn before calling
4773 constrain_operands (taken from mainline tree).
4774 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4775 * pa.md (cpu attr): Add 7300. Rewrite pipeline
4776 descriptions using DFA descriptions. Add PA7300
4779 2002-03-30 David S. Miller <davem@redhat.com>
4781 Add UltraSPARC-III DFA scheduling support.
4782 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4783 Update FP conditional move on register insn patterns to use it, as
4785 (define_attr cpu): Add ultrasparc3.
4786 (define_attr us3load_type): New, update integer load patterns to
4787 set it, as appropriate.
4788 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4789 (rest): Add UltraSPARC3 scheduling description.
4790 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4791 (PROCESSOR_ULTRASPARC3): New.
4792 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4793 ({ASM,CPP}_CPU_SPEC): Likewise.
4794 (REGISTER_MOVE_COST): Likewise.
4795 (RTX_COSTS): Likewise.
4796 * config/sparc/sparc.c (sparc_override_options,
4797 sparc_initialize_trampoline, sparc64_initialize_trampoline,
4798 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4799 sparc_issue_rate): Likewise.
4800 * config/sparc/sol2.h: Likewise.
4801 * config/sparc/sol2-sld-64.h: Likewise.
4802 * config/sparc/linux64.h: Likewise.
4804 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
4806 * doc/md.texi: Add comments about usage the latency time for the
4807 different dependencies and about case when two or more conditions
4808 in different define_insn_reservations returns TRUE for an insn.
4810 * doc/md.texi: Add reference for automaton based pipeline
4813 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
4815 * doc/passes.texi: Add missed information about genattrtab.
4817 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
4819 * genautomata.c (output_automata_list_transition_code): Check
4820 automata_list on NULL.
4822 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
4824 * genautomata.c (output_insn_code_cases,
4825 output_automata_list_min_issue_delay_code,
4826 output_automata_list_transition_code,
4827 output_automata_list_state_alts_code): Comment the functions.
4829 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
4831 * genautomata.c (automata_list_el_t): New typedef.
4832 (get_free_automata_list_el,free_automata_list_el,
4833 free_automata_list, automata_list_hash, automata_list_eq_p,
4834 initiate_automata_lists, automata_list_start, automata_list_add,
4835 automata_list_finish, finish_automata_lists,
4836 output_insn_code_cases, output_automata_list_min_issue_delay_code,
4837 output_automata_list_transition_code,
4838 output_automata_list_state_alts_code, add_automaton_state,
4839 form_important_insn_automata_lists): New functions and prototypes.
4840 (insn_reserv_decl): Add members important_automata_list and
4842 (ainsn): Add members important_p.
4843 (automata_list_el): New structure.
4844 (first_free_automata_list_el, current_automata_list,
4845 automata_list_table): New global variables.
4846 (create_ainsns): Initiate member important_p.
4847 (output_internal_min_issue_delay_func): Generate the switch and
4848 call output_insn_code_cases.
4849 (output_internal_trans_func, output_internal_state_alts_func):
4851 (generate): Call initiate_automata_lists.
4852 (automaton_states): New global variable.
4853 (expand_automata): Call form_important_insn_automata_lists.
4854 (write_automata): Call finish_automata_lists.
4856 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
4858 * genautomata.c (add_excls, add_presence_absence): Check that
4859 cpu units in the sets belong the same automaton.
4861 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4862 about that cpu units in the sets belong the same automaton.
4864 * doc/md.texi: Ditto.
4866 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
4867 Nitin Gupta <niting@noida.hcltech.com>
4869 * config/sh/sh.c (sh_use_dfa_interface): New function.
4871 (sh_issue_rate): New Function.
4872 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4873 TARGET_SCHED_ISSUE_RATE: define.
4875 * config/sh/sh.md: Add DFA based pipeline description for SH4.
4877 (define_attr insn_class): New attribute used for DFA
4879 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4880 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4881 cmpeqdi_t): Likewise.
4883 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4884 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4886 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4888 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4890 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4893 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4895 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4896 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4898 (output_dfa_start_func): Initiate new variable insn_codes_length,
4899 (write_automata): Output definition of the new variable.
4901 2001-10-02 David S. Miller <davem@redhat.com>
4903 * haifa-sched.c (advance_one_cycle): New function.
4904 (schedule_block): Use it.
4905 (queue_to_ready): Use it, and also make sure to advance the DFA
4906 state on all stall cycles, not just those where insn_queue links
4909 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
4911 * haifa-sched.c (max_issue): Remove last_p argument. Only return
4912 non-zero if the highest-priority instruction could be scheduled.
4913 (choose_ready): Remove last argument from max_issue call.
4915 2001-09-28 David S. Miller <davem@redhat.com>
4917 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4918 ultrasparc and 3 for other multi-issue sparcs.
4920 2001-09-27 David S. Miller <davem@redhat.com>
4922 * config/sparc/sparc.md (cycle_display): New pattern.
4923 * config/sparc/sparc.c (sparc_cycle_display): New.
4924 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4926 2001-09-25 David S. Miller <davem@redhat.com>
4928 Convert all of Sparc scheduling to DFA
4929 * config/sparc/sparc.md: Kill all define_function_unit
4930 directives and replace with DFA equivalent.
4931 * config/sparc/sparc.c (ultrasparc_adjust_cost,
4932 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4933 ultra_fpmode_conflict_exists, ultra_find_type,
4934 ultra_build_types_avail, ultra_flush_pipeline,
4935 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4936 ultrasparc_variable_issue, ultrasparc_sched_init,
4937 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4938 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4939 ultra_cur_hist, ultra_cycles_elapsed): Kill.
4940 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4941 ultrasparc_store_bypass_p): New.
4942 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4945 2001-09-24 David S. Miller <davem@redhat.com>
4947 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4948 ready->vec[foo] not ready[foo].
4950 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4952 * doc/md.texi: Correct examples for define_insn_reservations
4955 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4957 * genautomata.c (create_automata): Print message about creation of
4959 (generate): Remove printing meease about creation of
4962 2001-09-05 David S. Miller <davem@redhat.com>
4964 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4965 * config/sparc/linux64.h: Likewise.
4967 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
4969 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4970 schedule_block, sched_init, sched_finish): Add missed calls of
4971 use_dfa_pipeline_interface.
4973 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4976 * sched-vis.c (get_visual_tbl_length): Ditto.
4978 2001-08-27 Richard Henderson <rth@redhat.com>
4980 * genattr.c (main): Emit state_t even when not doing scheduling.
4982 2001-08-27 Richard Henderson <rth@redhat.com>
4984 * genautomata.c (expand_automata): Always create a description.
4986 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4988 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4989 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4990 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4993 * genattr.c (main): New variable num_insn_reservations. Increase
4994 it if there is DEFINE_INSN_RESERVATION. Output automaton based
4995 pipeline hazard recognizer interface.
4997 * genattrtab.h: New file.
4999 * genattrtab.c: Include genattrtab.h.
5000 (attr_printf, check_attr_test, make_internal_attr,
5001 make_numeric_value): Move protypes into genattrtab.h. Define them
5003 (num_dfa_decls): New global variable.
5004 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5005 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5006 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5007 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
5009 * genautomata.c: New file.
5011 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5013 * sched-int.h: (curr_state): Add the external definition for
5014 automaton pipeline interface.
5015 (haifa_insn_data): Add comments for members blockage and units.
5017 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5018 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5019 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5020 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5021 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5022 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5023 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5025 (TARGET_SCHED): Use the new macros.
5027 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5028 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5029 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5030 dfa_bubble): New members in gcc_target.sched.
5032 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5033 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5034 (insn_queue): Redefine it as pointer to array.
5035 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5037 (max_insn_queue_index_macro_value): New variable.
5038 (curr_state, dfa_state_size, ready_try): New varaibles for
5039 automaton interface.
5040 (ready_element, ready_remove, max_issue): New function prototypes
5041 for automaton interface.
5042 (choose_ready): New function prototype.
5043 (insn_unit, blockage_range): Add comments.
5044 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5045 FUNCTION_UNITS_SIZE == 0.
5046 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5047 actual_hazard, potential_hazard): Add comments.
5048 (insn_cost): Use cost -1 as undefined value. Remove
5049 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
5051 (ready_element, ready_remove): New functions for automaton
5053 (schedule_insn): Add new code for automaton pipeline interface.
5054 (queue_to_ready): Add new code for automaton pipeline interface.
5055 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5056 (debug_ready_list): Print newline when the queue is empty.
5057 (max_issue): New function for automaton pipeline interface.
5058 (choose_ready): New function.
5059 (schedule_block): Add new code for automaton pipeline interface.
5060 Print ready list before scheduling each insn.
5061 (sched_init): Add new code for automaton pipeline interface.
5062 Initiate insn cost by -1.
5063 (sched_finish): Free the current automaton state and finalize
5064 automaton pipeline interface.
5066 * sched-rgn.c: Include target.h.
5067 (init_ready_list, new_ready, debug_dependencies): Add new code for
5068 automaton pipeline interface.
5070 * sched-vis.c: Include target.h.
5071 (get_visual_tbl_length): Add code for automaton interface.
5072 (target_units, print_block_visualization): Add comments.
5074 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5075 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5076 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5077 (getruntime.o, genautomata.o): New entries.
5078 (genattrtab.o): Add new dependency file genattrtab.h.
5079 (genattrtab): Add new dependencies. Link it with `libm.a'.
5080 (getruntime.o, hashtab.o): New entries for canadian cross.
5082 * doc/md.texi: Description of automaton based model.
5084 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5086 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5087 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5088 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5089 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5090 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5091 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5092 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5094 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5095 MAX_DFA_ISSUE_RATE): New macro descriptions.
5097 * doc/contrib.texi: Add dfa based scheduler contribution.
5099 * doc/gcc.texi: Add more information about genattrtab.
5101 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5103 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5104 adjust_address_nv call.
5106 2002-04-29 Janis Johnson <janis187@us.ibm.com>
5108 * doc/install.texi (Testing): Provide additional information, and
5109 a stronger encouragement, for running the testsuites.
5111 2002-04-29 DJ Delorie <dj@redhat.com>
5113 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5114 given in upper case.
5116 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5118 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5119 Solaris 2 <widec.h> if missing.
5120 * fixinc/fixincl.x: Regenerate.
5121 * fixinc/tests/base/widec.h: New file.
5123 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
5125 * toplev.c (f_options): Add "profile" switch so that
5126 -fno-profile can be used to disable -p.
5128 2002-04-29 Bernd Schmidt <bernds@redhat.com>
5130 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5132 * tree.c (build_common_tree_nodes_2): Likewise.
5133 * tree.h (enum tree_index): Likewise.
5134 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5136 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5138 (init_mmx_sse_builtins): Initialize SSE2 builtins.
5139 (ix86_expand_builtin): Add support for SSE2 builtins.
5140 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5141 (VALID_SSE_REG_MODE): Use it.
5142 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5143 (enum ix86_builtins): Add SSE2 builtins.
5144 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5145 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5146 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5147 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5148 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5149 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5150 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5151 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5152 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5153 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5154 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5155 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5156 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5157 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5158 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5159 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5160 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5161 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5162 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5163 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5164 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5165 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5166 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5167 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5168 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5169 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5170 lfence_insn): New patterns.
5171 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5172 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5174 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
5176 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5178 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5180 * doc/contrib.texi (Contributors): Add Paolo Carlini and
5182 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5183 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5184 and CPU instead of cpu.
5186 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5188 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5190 (lang_independent_options): Add -fif-conversion, -fif-conversion2
5191 (rest_of_compilation): Do if conversion only when asked for.
5192 (parse_options_and_default_flags): Set new variables to 1 for -O1
5193 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5195 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5197 * i386.c (dbx64_register_map): Fix typo.
5199 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5201 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5202 real_one_half, real_bb_freq_max): New static variables.
5203 (debug_profile_bbauxs): Kill.
5204 (process_note_predictions): Kill unused variable.
5205 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5207 (propagate_freq): Use REAL_ARITHMETICS.
5208 (estimate_bb_frequencies): Likevise; init new static variables.
5209 * Makefile.in (predict.o): Add dependency on real.h
5211 2002-04-28 David S. Miller <davem@redhat.com>
5214 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5215 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
5216 several {reads,writes} instead.
5217 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5220 2002-04-27 David S. Miller <davem@redhat.com>
5223 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5226 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5227 including signal.h and sys/ucontext.h, not needed.
5229 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
5231 * varasm.c (output_constant_def): Correct test for not calling
5232 ENCODE_SECTION_INFO for INTEGER_CST.
5234 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
5236 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5237 keep most cases as function eval_token.
5238 (eval_token): New function.
5239 (_cpp_parse_expr): Read token here for improved diagnostics.
5240 Don't use op_as_text. Detect bad ':' here.
5241 (reduce): Don't detect bad ':' here.
5242 (op_as_text): Remove.
5243 * cpphash.h (_cpp_test_assertion): Change prototype.
5244 * cpplib.c (_cpp_test_assertion): Change prototype.
5246 2002-04-28 Richard Henderson <rth@redhat.com>
5249 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5250 (ggc_mark_rtx_children): New.
5252 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5255 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5256 after call peepholes for UltraSPARC.
5257 (call + jump 64-bit peepholes): Remove.
5259 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5262 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5263 result as temporary value.
5265 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5268 * toplev.c (rest_of_compilation): Only run regrename and copy
5269 propagation if optimizing.
5271 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5273 PR optimization/6475
5274 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5275 register of REGNO_DECL (i).
5276 * Makefile.in (reload1.o): Add $(TREE_H).
5278 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
5280 * cppexp.c (lex): Update to use state.skip_eval.
5281 (struct op): Remove prio and flags members.
5282 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5283 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5284 (LEFT_ASSOC): New macro.
5285 (optab): New table of operator priorities and flags.
5287 (_cpp_parse_expr): Clean up logic. Return bool. Use a
5288 malloc-ed parser stack.
5289 (reduce): New; reduce the operator stack.
5290 (_cpp_expand_op_stack): Expand the operator stack as necessary.
5291 * cpphash.h (struct op): Predeclare.
5292 (struct cpp_reader): New members op_stack, op_limit.
5293 (struct lexer_state): New member skip_eval.
5294 (_cpp_parse_expr): Update.
5295 (_cpp_expand_op_stack): New.
5296 * cpplib.c (do_if): Update.
5297 * cppinit.c (cpp_create_reader): Create op stack.
5298 (cpp_destroy): And destroy it.
5299 * cpplib.h (CPP_LAST_CPP_OP): Correct.
5300 (TTYPE_TABLE): Correct.
5302 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5305 * c-decl.c (duplicate_decls): Call merge_weak.
5306 * c-pragma.c (apply_pragma_weak): Warn about misuse.
5307 * output.h (merge_weak): Prototype merge_weak.
5308 * varasm.c (merge_weak): New function.
5309 (declare_weak): Make sure we don't give an error on VAR_DECLs.
5310 Mark RTL with SYMBOL_REF_WEAK.
5312 2002-04-27 Kurt Garloff <garloff@suse.de>
5314 * tree-inline.c (inlinable_function_p): Improve heuristics
5315 by using a smoother function to cut down allowable inlinable size.
5316 * param.def: Add parameters max-inline-insns-single,
5317 max-inline-slope, min-inline-insns that determine the exact
5318 shape of the above function.
5319 * param.h: Likewise.
5321 2002-04-26 Richard Henderson <rth@redhat.com>
5323 * c-parse.in (malloced_yyss, malloced_yyvs): New.
5324 (yyoverflow): Re-add. Set them.
5325 (free_parser_stacks): New.
5326 * c-common.h: Declare it.
5327 * c-lex.c (c_common_parse_file): Call it.
5329 2002-04-26 Richard Henderson <rth@redhat.com>
5331 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5332 for fallthru search.
5334 2002-04-26 Eric Christopher <echristo@redhat.com>
5336 PR optimization/3700
5337 * config/mips/mips.c (mips_issue_rate): Define. New function.
5338 (TARGET_SCHED_ISSUE_RATE): Use.
5340 2002-04-25 David S. Miller <davem@redhat.com>
5343 * reorg.c (optimize_skip): Do not allow exception causing
5344 instructions to be considered for delay slots.
5345 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5346 (relax_delay_slots): Do not try to consider exception causing
5347 instructions as redundant.
5349 2002-04-26 Richard Henderson <rth@redhat.com>
5352 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5354 2002-04-26 Mark Mitchell <mark@codesourcery.com>
5357 * config/i386/i386.md (untyped_call): Return the value in a float
5358 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5361 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
5363 * tree.c (tree_int_cst_lt): Compare constants whose types differ
5364 in unsigned-ness correctly.
5366 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5368 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5369 portable runtime model.
5371 2002-04-26 Richard Henderson <rth@redhat.com>
5373 * c-parse.in (yyoverflow): Revert.
5375 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5376 Richard Henderson <rth@redhat.com>
5378 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5379 result as temporary value.
5381 2002-04-26 Richard Henderson <rth@redhat.com>
5384 * c-common.c (fix_string_type): Split out of ...
5385 (combine_strings): ... here. Take a varray, not a tree list.
5386 (c_expand_builtin_printf): Use fix_string_type.
5387 * c-common.h: Update decls.
5388 * c-parse.in (string): Remove. Update all uses to use STRING
5389 instead, and not call combine_strings.
5392 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5393 (build_asm_stmt): Likewise.
5394 * objc/objc-act.c (my_build_string): Use fix_string_type.
5395 (build_objc_string_object): Build varray for combine_strings.
5397 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5399 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5402 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5404 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5405 (HAVE_NO_R_OPERAND): Remove.
5406 (HAVE_VALUE): Remove.
5407 (op_to_prio): Update.
5408 (UNARY): Don't alter flags.
5409 (_cpp_parse_expr): want_value used to indicate whether
5410 a number or unary operator is expected next. Distinguish
5411 unary and binary +/-.
5412 (op_as_text): Update for unary operators.
5414 2002-04-25 Richard Henderson <rth@redhat.com>
5417 * c-parse.in (yyoverflow): New.
5419 2002-04-25 Richard Henderson <rth@redhat.com>
5422 * c-common.c (shorten_compare): Simplfy conditions leading to
5423 the generation of a warning.
5425 2002-04-25 Richard Henderson <rth@redhat.com>
5428 * expmed.c (extract_bit_field): Fall through to generic code rather
5429 than aborting on subreg special case.
5431 2002-04-25 David S. Miller <davem@redhat.com>
5433 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5434 for DECL being NULL.
5436 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5438 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5440 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
5442 * c-decl.c (grokdeclarator): Remove outdated ??? note
5443 on invalid declaration of flexible array members.
5445 2002-04-25 Richard Henderson <rth@redhat.com>
5447 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5449 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5451 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5452 needed by the compiler, even if they are used as global regs.
5454 2002-04-25 Matt Hiller <hiller@redhat.com>
5456 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5458 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5459 of the corresponding functions.
5460 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5463 2002-04-25 Matt Hiller <hiller@redhat.com>
5465 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5467 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5468 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5469 registers, adjust comment accordingly.
5470 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5471 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5472 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5473 for coprocessor registers.
5474 (ADDITIONAL_REGISTER_NAMES): Include
5475 ALL_COP_ADDITIONAL_REGISTER_NAMES.
5477 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5478 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5479 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5480 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5481 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5483 (mips_char_to_class): Adjust comment to include coprocessor
5486 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5488 (mips_reg_names, mips_regno_to_class): Include coprocessor
5490 (mips_sw_reg_names): Ditto, make non-static.
5491 (mips_move_1word): Handle moves to and from coprocessor registers.
5492 (mips_move_2words): Handle moves to and from coprocessor
5494 (mips_class_max_nregs, mips_register_move_cost): Handle
5495 coprocessor register classes.
5496 (override_options): Initialize mips_char_to_class and
5497 mips_hard_regno_mode_ok properly for coprocessor registers.
5499 * config/mips/mips.md (movdi_internal, movdi_internal2,
5500 movsi_internal1, movsi_internal2): Add constraint-sets for
5501 coprocessor registers.
5502 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5503 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5505 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5506 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5508 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5509 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5511 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5512 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5515 * doc/tm.texi: Document feature.
5517 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5519 * integrate.c (function_attribute_inlinable_p): Simplify.
5520 Check the table pointer is not NULL.
5522 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5524 * doc/c-tree.texi: Fix typo in introduction.
5526 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5528 * c-common.h (c_common_parse_file): Update.
5529 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5530 * c-lex.c (YYDEBUG): Get from c-lex.h.
5531 (c_common_parse_file): Update.
5532 * c-lex.h (YYDEBUG, yydebug): New.
5533 * c-parse.in (YYDEBUG): Get from c-lex.h.
5534 (c_set_yydebug): Remove.
5535 * c-tree.h (c_set_yydebug): Remove.
5536 * langhooks-def.h (lhd_do_nothing_i): New.
5537 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5538 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5539 * langhooks.c (lhd_do_nothing_i): New.
5540 (lhd_set_yydebug): Remove.
5541 * langhooks.h (struct lang_hooks): Update.
5542 * toplev.c (set_yydebug): New.
5543 (compile_file): Update call to parse_file hook.
5544 (decode_d_option): Update.
5546 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5548 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
5550 * loop.c (load_mems): Don't change the interface of called functions.
5552 * calls.c (expand_call): Take current_function_pretend_args_size
5553 into account when setting argblock for sibcalls.
5555 2002-04-24 Matt Hiller <hiller@redhat.com>
5557 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5560 * cpplex.c (skip_line_comment): Process comment one multibyte
5561 character at a time rather than one char at a time, if
5563 (parse_string): Process string one multibyte character at a time
5564 rather than one char at a time, if appropriate.
5565 * c-lex.c (lex_string): Lex and copy multibyte strings
5567 * cpplib.h (cppchar_t): Change to unsigned.
5569 2002-04-24 Richard Henderson <rth@redhat.com>
5572 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5575 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
5577 * sh.c (sh_va_arg): If argument was passed by reference,
5578 dereference the pointer.
5580 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5582 * sh.md (divsi3_i4_media): Use match_operand for input values
5583 rather than hard registers.
5584 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5585 unnecessarily through hard registers. Keep copies of pseudo
5586 registers outside of the libcall sequence.
5588 * sh.md (casesi_shift_media): Add modes.
5590 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5593 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
5595 * attribs.c (c_common_attribute_table): Move table and handlers
5597 (format_attribute_table, lang_attribute_table,
5598 lang_attribute_common): Remove.
5599 (init_attributes): Replace NULL pointers with pointers to the
5601 (handle_packed_attribute, handle_nocommon_attribute,
5602 handle_common_attribute, handle_noreturn_attribute,
5603 handle_noinline_attribute, handle_always_inline_attribute,
5604 handle_used_attribute, handle_unused_attribute,
5605 handle_const_attribute, handle_transparent_union_attribute,
5606 handle_constructor_attribute, handle_destructor_attribute,
5607 handle_mode_attribute, handle_section_attribute,
5608 handle_aligned_attribute, handle_weak_attribute,
5609 handle_alias_attribute, handle_visibility_attribute,
5610 handle_no_instrument_function_attribute, handle_malloc_attribute,
5611 handle_no_limit_stack_attribute, handle_pure_attribute,
5612 handle_deprecated_attribute, handle_vector_size_attribute,
5613 vector_size_helper): Move to c-common.c.
5614 * c-common.c (c_common_attribute_table,
5615 handle_packed_attribute, handle_nocommon_attribute,
5616 handle_common_attribute, handle_noreturn_attribute,
5617 handle_noinline_attribute, handle_always_inline_attribute,
5618 handle_used_attribute, handle_unused_attribute,
5619 handle_const_attribute, handle_transparent_union_attribute,
5620 handle_constructor_attribute, handle_destructor_attribute,
5621 handle_mode_attribute, handle_section_attribute,
5622 handle_aligned_attribute, handle_weak_attribute,
5623 handle_alias_attribute, handle_visibility_attribute,
5624 handle_no_instrument_function_attribute, handle_malloc_attribute,
5625 handle_no_limit_stack_attribute, handle_pure_attribute,
5626 handle_deprecated_attribute, handle_vector_size_attribute,
5627 vector_size_helper): Move from attribs.c.
5628 * c-common.h (c_common_attribute_table,
5629 c_common_format_attribute_table): New.
5630 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5631 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5632 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5633 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5634 (LANG_HOOKS_INITIALIZER): Update.
5635 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5636 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5637 * target.h: Update comment.
5638 * tree.c (default_target_attribute_table): Remove.
5639 * tree.h (default_target_attribute_table, format_attribute_table,
5640 lang_attribute_table, lang_attribute_common): Remove.
5642 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5643 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5645 2002-04-24 Jason Merrill <jason@redhat.com>
5647 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5648 * dwarf2out.c (dwarf_attr_name): Support it.
5649 (gen_array_type_die): Emit it.
5650 (lookup_type_die): No special handling for VECTOR_TYPE.
5651 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5653 2002-04-24 Richard Henderson <rth@redhat.com>
5655 * config/mips/mips.md (movdi_usd): Renumber.
5657 2002-04-24 David S. Miller <davem@redhat.com>
5660 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5661 32-bit Sparc and current_function_returns_struct is true.
5663 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5665 * loop.c (canonicalize_condition): Use gen_int_mode.
5667 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
5669 * config/rs6000/altivec.h: Cleanup file. Add non individual
5691 (vec_vcmpequb): New.
5692 (vec_vcmpequh): New.
5693 (vec_vcmpequw): New.
5694 (vec_vcmpeqfp): New.
5695 (vec_vcmpgefp): New.
5696 (vec_vcmpgtub): New.
5697 (vec_vcmpgtsb): New.
5698 (vec_vcmpgtuh): New.
5699 (vec_vcmpgtsh): New.
5700 (vec_vcmpgtuw): New.
5701 (vec_vcmpgtsw): New.
5702 (vec_vcmpgtfp): New.
5703 (vec_vcmpgefp): New.
5708 (vec_vexptefp): New.
5713 (vec_lde): Add vector float variant.
5718 (vec_vmhaddshs): New.
5740 (vec_vmladduhm): New.
5741 (vec_vmhraddshs): New.
5743 (vec_vmsummbm): New.
5744 (vec_vmsumuhm): New.
5745 (vec_vmsumshm): New.
5746 (vec_vmsumuhs): New.
5747 (vec_vmsumshs): New.
5756 (vec_vnmsubfp): New.
5774 (vec_vrsqrtefp): New.
5785 (vec_vspltisb): New.
5786 (vec_vspltish): New.
5787 (vec_vspltisw): New.
5812 (vec_vsum4ubs): New.
5813 (vec_vsum4sbs): New.
5814 (vec_vsum4shs): New.
5815 (vec_vsum2sws): New.
5826 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
5829 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5830 added literals from substracted literals.
5831 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5832 (fold) [associate]: Preserve MINUS_EXPR if needed.
5834 2002-04-23 Zack Weinberg <zack@codesourcery.com>
5836 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5839 2002-04-23 Tom Tromey <tromey@redhat.com>
5841 * gcc.c: Added --resource. For PR java/6314.
5843 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5845 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5846 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5849 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5851 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5853 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5855 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5857 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5858 (ix86_expand_clrstr): Fix typo.
5859 * loop.c (gen_load_of_final_value): New.
5860 (loop_givs_rescan, strength_reduce, check_dbra_loop):
5863 2002-04-23 Roger Sayle <roger@eyesopen.com>
5865 * builtins.c (builtin_memset_gen_str): New function.
5866 (expand_builtin_memset): Optimize the case of constant length, but
5869 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
5871 * config/rs6000/altivec.h (vec_step): Remove extraneous
5873 (vec_ctu): Cast return.
5875 2002-04-23 Alan Modra <amodra@bigpond.net.au>
5878 * function.h: (struct function): Add profile_label_no field.
5879 (current_function_profile_label_no): Define.
5880 * function.c: (profile_label_no): New static var.
5881 (expand_function_start): Increment it, and copy to
5882 current_function_profile_label_no.
5883 * output.h (profile_label_no): Delete.
5884 * final.c (profile_label_no): Delete.
5885 (profile_function): Use current_function_profile_label_no.
5886 (final_end_function): Don't increment profile_label_no here.
5887 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5888 profile_label_no with current_function_profile_label_no.
5889 * config/pa/pa.c (current_function_number): Delete.
5890 (pa_output_function_prologue): Don't output profile label here.
5891 (hppa_profile_hook): Use label_no param rather than
5892 current_function_number.
5893 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5894 * config/pa/pa.h: .. here.
5895 (FUNCTION_PROFILER): Output profile label here.
5897 2002-04-22 Eric Christopher <echristo@redhat.com>
5899 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5900 patch of 2002-04-09 due to binutils issues.
5901 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5903 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5905 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5906 constraint to 'o' for m=r and r=m alternatives.
5907 ("*movv8hi_internal1"): Same.
5908 ("*movv16qi_internal1"): Same.
5909 ("*movv4sf_internal1"): Same.
5911 2002-04-22 Janis Johnson <janis187@us.ibm.com>
5913 * rtl.h (RTX_FLAG): New macro.
5914 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5915 * final.c (alter_subreg): Use macro to access rtx flag.
5916 * integrate.c (copy_rtx_and_substitute): Use new access macro.
5917 * print-rtl.c (print_rtx): Use new access macro.
5919 * cse.c (insert): Check rtx code before accessing flag.
5921 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5922 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5923 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5924 convert_const_symbol_ref, make_canonical, make_alternative_compare,
5925 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5926 simplify_test_exp, optimize_attrs, simplify_by_exploding,
5927 find_and_mark_used_attributes, unmark_used_attributes,
5928 add_values_to_cover, simplify_with_current_value,
5929 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5930 copy_rtx_unchanging, main): Use new access macros.
5932 2002-04-22 Tom Rix <trix@redhat.com>
5934 * expmed.c (init_expmed): Generate shifted constant once.
5936 2002-04-22 Zack Weinberg <zack@codesourcery.com>
5938 * c-lex.c (lex_charconst): Call convert to get constant in
5939 proper type; don't just smash the type field.
5942 * config.gcc: Add list of obsolete configurations. Disallow
5943 building these without --enable-obsolete.
5944 * doc/install.texi: Document --enable-obsolete and obsoletion
5945 policy. Mention obsoletion of individual targets in
5948 2002-04-22 Richard Henderson <rth@redhat.com>
5950 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5952 2002-04-22 Mark Mitchell <mark@codesourcery.com>
5955 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5956 (walk_fixup_memory_subreg): Likewise.
5957 (fixup_var_refs_insn): Adjust accordingly.
5958 (fixup_var_refs_1): Likewise.
5960 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
5962 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5963 LIBPATH_ARCH64_SPEC): Define.
5964 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5965 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5966 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5967 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5969 2002-04-22 Joel Sherrill <joel@OARcorp.com>
5971 * gthr-rtems.h: Correct prototypes to remove warnings.
5973 2002-04-22 Richard Henderson <rth@redhat.com>
5976 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5978 * gcse.c (free_insn_expr_list_list): New.
5979 (clear_modify_mem_tables): Use it. Fix bit set usage.
5980 (canon_list_insert): Use EXPR_LISTs for expressions.
5981 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5983 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
5985 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
5986 file change and include code to _cpp_pop_buffer.
5987 * cpphash.h (struct pending_option): Predeclare.
5988 (struct cpp_reader): New member next_include_file.
5989 (_cpp_pop_file_buffer): Update.
5990 (_cpp_push_next_buffer): Update, rename.
5991 * cppinit.c (cpp_destroy): Free include chain and pending here.
5992 (cpp_finish_options): Simplify.
5993 (_cpp_push_next_buffer): Rename and clean up.
5994 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5996 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5998 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6000 * config/rs6000/altivec.h (vec_xor): Add variant for both args
6001 being vector signed int.
6003 (vec_xor): Add variant for both args being vector signed char.
6004 Remove redundant variant.
6007 2002-04-21 David S. Miller <davem@redhat.com>
6009 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6010 compare mode in output RTL.
6012 2002-04-22 David Edelsohn <edelsohn@gnu.org>
6014 * config/rs6000/rs6000.c (rs6000_override_options): Correct
6015 style and formatting of previous patch.
6017 2002-04-22 Alan Modra <amodra@bigpond.net.au>
6019 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6020 flag_pic for ABI_AIX.
6022 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6024 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6025 * cppfiles.c (read_include_file): Similarly.
6026 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6027 uxstrdup ustrchr, ufputs): Similarly.
6028 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6029 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6030 cpp_ideq, parse_identifier, parse_number): Similarly.
6031 * cpplib.c (struct directive, dequote_string, D, run_directive,
6032 cpp_push_buffer): Similarly.
6033 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6034 _cpp_create_definition, check_trad_stringification,
6035 cpp_macro_definition): Similarly.
6037 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6039 * cppmacro.c (funlike_invocation_p): Don't step back
6042 2002-04-21 David Edelsohn <edelsohn@gnu.org>
6044 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6047 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
6049 * doc/invoke.texi: Remove Chill references.
6050 * doc/gcc.texi: Update last modified date.
6052 2002-04-20 Kazu Hirata <kazu@hxi.com>
6054 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6055 push and pop. Replace add.l with add.w.
6057 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6059 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6060 multiply instructions for H8/300H case.
6062 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6064 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6065 Bum three instructions from each routine.
6067 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
6069 * Makefile.in: Update.
6070 * decl.c (push_c_function_context, pop_c_function_context,
6071 mark_c_function_context): Rename for consistency.
6072 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6073 * c-tree.h (push_c_function_context, pop_c_function_context,
6074 mark_c_function_context): Rename for consistency.
6075 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6076 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6077 * function.c (init_lang_status, save_lang_status,
6078 restore_lang_status, mark_lang_status, free_lang_status):
6079 Move to langhooks.h.
6080 (push_function_context_to, pop_function_context_from,
6081 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6083 * function.h (init_lang_status, save_lang_status,
6084 restore_lang_status, mark_lang_status, free_lang_status):
6085 Move to langhooks.h.
6086 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6087 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6088 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6089 LANG_HOOKS_FUNCTION_INITIALIZER): New.
6090 (LANG_HOOKS_INITIALIZER): Update.
6091 (lhd_do_nothing_f): New.
6092 * langhooks.h (struct lang_hooks_for_functions): New.
6093 (struct lang_hooks): New hooks.
6094 * langhooks.c (lhd_do_nothing_f): New.
6096 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6097 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6099 2002-04-19 David S. Miller <davem@redhat.com>
6101 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6102 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6104 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6106 PR optimization/3756
6107 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6108 x = ((int) y < 0) ? cst1 : cst2.
6110 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6113 * function.c: Reapply patch for c/6358.
6114 (expand_function_end): Copy decl_rtl's mode, not
6115 current_function_return_rtx mode.
6117 2002-04-19 Joel Sherrill <joel@OARcorp.com>
6119 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6122 2002-04-19 Tom Tromey <tromey@redhat.com>
6124 * doc/install.texi (Specific): Update status of Solaris 2.8.
6127 2002-04-19 Andreas Schwab <schwab@suse.de>
6129 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6130 (PUT_REAL): Restore old definition.
6132 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6133 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6135 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6136 binutils 2.11.2 and higher generate smaller binaries than Sun's
6139 2002-04-19 Mark Mitchell <mark@codesourcery.com>
6142 * toplev.c (rest_of_compilation): Do not defer functions for which
6143 TREE_SYMBOL_REFERENCED has already been set.
6145 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
6147 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6150 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
6152 * builtins.c: Include langhooks.h.
6153 (lang_type_promotes_to): Remove.
6154 (expand_builtin_va_arg): Use new hook.
6155 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6156 (simple_type_promotes_to): Move to c-typeck.c.
6157 * c-common.h (simple_type_promotes_to): Remove.
6158 * c-decl.c (duplicate_decls, grokdeclarator): Update.
6159 * c-format.c: Include langhooks.h.
6160 (check_format_types): Update.
6161 * c-tree.h (c_type_promotes_to): New.
6162 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6163 (type_lists_compatible_p): Update.
6164 * langhooks-def.h (lhd_type_promotes_to): New.
6165 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6166 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6167 * langhooks.c (lhd_type_promotes_to): New.
6168 * langhooks.h (struct lang_hooks_for_types): New hook.
6169 * tree.h (lang_type_promotes_to): Remove.
6171 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6173 2002-04-18 Richard Henderson <rth@redhat.com>
6175 * function.c: Revert patch for c/6358.
6177 2002-04-18 Richard Henderson <rth@redhat.com>
6179 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6180 blocks. Handle multiple references to the TRAP block. Handle
6181 non-adjacent THEN and OTHER blocks.
6183 2002-04-18 Richard Henderson <rth@redhat.com>
6185 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6186 crash with no type for by-mode libcalls.
6188 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6190 2002-04-18 Bob Wilson <bob.wilson@acm.org>
6192 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6193 __xtensa_nonlocal_goto): Use a syscall instructions to flush
6194 the register windows.
6196 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6198 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6199 appropriate. Document need for extended precision even when
6200 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
6201 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
6202 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
6203 instead of relying on later syntax error when REAL_WIDTH > 5.
6204 * real.c: Define NE based only on whether or not we have a
6205 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6206 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
6207 define GET_REAL and PUT_REAL as simple memcpy operations; no
6208 need to byteswap or round.
6209 Use #error instead of #ifdef-ing out the entire file, for
6210 prompt error detection.
6212 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6214 2002-04-18 David S. Miller <davem@redhat.com>
6216 * config/sparc/sparc.h (BRANCH_COST): Define.
6218 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6221 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
6223 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6224 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6225 propagate_block calls after relaxation loop using new variable
6226 stabilized_prop_flags.
6228 2002-04-18 Richard Henderson <rth@redhat.com>
6230 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6231 (ia64_va_arg): Expect variable sized types by reference.
6232 * config/ia64/ia64-protos.h: Update.
6233 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6234 ia64_function_arg_pass_by_reference.
6236 2002-04-18 Richard Henderson <rth@redhat.com>
6238 * ifcvt.c: Include except.h.
6239 (block_has_only_trap): Break out from find_cond_trap.
6240 (find_cond_trap): Use it. Always delete the trap block.
6241 (merge_if_block): Allow then block null. Be less simplistic about
6242 what insns can end a block.
6243 * Makefile.in (ifcvt.o): Depend on except.h.
6245 * config/ia64/ia64.md (trap, conditional_trap): New.
6247 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6250 * function.c (assign_parms): Assign hard current_function_return_rtx
6252 (expand_function_end): ...not here.
6254 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
6256 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6257 * c-tree.h (c_incomplete_type_error): New.
6258 * c-typeck.c (require_complete_type, build_component_ref): Update.
6259 (incomplete_type_error): Rename.
6260 * langhooks-def.h (lhd_incomplete_type_error): New.
6261 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6262 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6263 * langhooks.c (lhd_incomplete_type_error): New.
6264 * langhooks.h (struct lang_hooks_for_types): New hook.
6265 * tree.c (size_in_bytes): Use new hook.
6266 * tree.h (incomplete_type_error): Remove.
6268 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6270 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6272 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6273 TARGET_FLOAT_FORMAT blocks.
6275 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6277 * doc/install.texi (Downloading the source): Do not mention Chill
6278 any longer, but mention Ada.
6279 (Configuration): Do not mention Chill any longer.
6281 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
6283 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6285 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
6287 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6290 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6292 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6293 instead of unsigned_type.
6295 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6297 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6298 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6301 2002-04-18 Bernd Schmidt <bernds@redhat.com>
6303 * attribs.c (vector_type_node_list): New static variable.
6304 (handle_vector_size_attribute): Use it to avoid generating a
6305 new type node each time we are called.
6307 * combine.c (subst): Avoid trying to make a vector mode subreg of
6308 an integer constant.
6309 (gen_lowpart_for_combine): Likewise.
6311 2002-04-18 Roger Sayle <roger@eyesopen.com>
6312 Jakub Jelinek <jakub@redhat.com>
6314 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6315 for integer constant c (if x has unsigned type or sign bit is not
6316 set in c). This folds the zero/sign extension into the bit-wise and
6319 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6322 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6325 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
6327 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6329 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
6331 * gcc.c (read_specs): Detect and fail if an attempt is made to
6332 rename a spec string to an already existing string.
6334 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6336 * config/s390/s390.c (legitimize_pic_address): Do not generate
6337 illegal address constant without CONST.
6339 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6341 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6342 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6344 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6346 PR optimization/6305
6347 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6348 to make sure previous reloads are taken into account. Generate
6349 better code if one operand is an in-range immediate constant.
6351 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
6353 * doc/install.texi (Building): libgcj requires GNU make.
6355 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6358 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6359 even if hard quad and register is not floating.
6360 (movtf reg<-mem split): Disallow splitting if hard quad and
6361 register is floating.
6362 (movtf mem<-reg split): Likewise.
6363 * config/sparc/sparc.c (fp_register_operand): New predicate.
6364 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6366 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6368 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6369 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6370 (unprotoize.o): Ditto. Build from protoize.c. Define
6371 UNPROTOIZE on command line.
6372 * protoize.c: Include cppdefault.h. Delete include_defaults.
6373 (in_system_include_dir): Use cpp_include_defaults (defined in
6375 * unprotoize.c: Delete file.
6377 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6379 * config/rs6000/altivec.h (vec_ld): Add array variants.
6383 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6384 Aldy Hernandez <aldyh@redhat.com>
6386 * config/rs6000/altivec.h: Define __ALTIVEC__.
6393 Add parentheses to all macro arguments.
6395 2002-04-16 Richard Henderson <rth@redhat.com>
6398 * except.c (remove_eh_handler): Insert inner regions at beginning
6399 of sibling chain. Refactor expressions.
6401 2002-04-16 Richard Henderson <rth@redhat.com>
6403 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6404 * config/sparc/sol2-gas-bi.h: New file.
6405 * config.gcc (sparc*-solaris): Add it as needed.
6406 * configure.in (AS_SPARC64_FLAG): Remove check.
6407 * config.in, configure: Regenerate.
6409 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6411 2002-04-16 Richard Henderson <rth@redhat.com>
6413 * config/mips/mips.c (override_options): Don't override N32 for
6417 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6418 (HILO_delay): Set can_delay false.
6420 2002-04-16 Dale Johannesen <dalej@apple.com>
6422 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6423 instruction addresses.
6424 (rs6000_output_function_epilogue): Likewise.
6426 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6428 * c-parse.in (poplevel, compstmt_start,
6429 compstmt_primary_start): Add ending ';', in accordance
6432 2002-04-16 Richard Henderson <rth@redhat.com>
6434 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6435 Adjust tm_file order to get TARGET_DEFAULT set properly.
6436 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6437 * doc/install.texi (sparc-solaris): Update.
6439 2002-04-16 Dale Johannesen <dalej@apple.com>
6441 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6442 comparison operands do not match each other or if modes of
6443 conditions do not match result.
6445 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
6448 * config/s390/s390.md (mulsidi3): Set both subregs of the
6451 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
6453 * config/rs6000/altivec.h (vec_addc): Type check.
6455 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6458 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6460 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6462 2002-04-15 Richard Henderson <rth@redhat.com>
6464 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6465 call_really_used_regs too.
6467 2002-04-15 Richard Henderson <rth@redhat.com>
6469 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6471 2002-04-15 David S. Miller <davem@redhat.com>
6473 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6476 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6479 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6480 CONST_VECTOR is { 0, ... 0 }.
6482 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
6484 * doc/install.texi (Installing GCC: Configuration): Clarify
6485 the only supported ways to configure gcc.
6487 2002-04-15 Roland McGrath <roland@frob.com>
6489 * config.gcc (alpha*-*-gnu*): New target configuration.
6490 * config/alpha/gnu.h: New file for it.
6491 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6493 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6495 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6496 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6497 * tree.h (expand_start_stmt_expr): Update prototype.
6498 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6499 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6500 on the STMT_EXPR created for the inline function.
6502 2002-04-15 Richard Henderson <rth@redhat.com>
6504 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6505 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6506 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6507 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6508 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6509 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6510 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6511 Define __gnu_linux__, not gnu_linux.
6512 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6514 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6516 Remove Chill front end.
6517 * gcc.c (default_compilers): Remove Chill entries.
6518 * ch: Remove directory.
6519 * doc/frontends.texi: Remove information about Chill.
6520 * doc/sourcebuild.texi: Likewise.
6521 * doc/standards.texi: Likewise.
6523 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6525 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6526 (LONGLONG_STANDALONE): Define.
6528 2002-04-15 David S. Miller <davem@redhat.com>
6530 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6531 Call emit_library_call with LCT_NORMAL.
6532 (sparc_initialize_trampoline): Use LCT_foo instead of
6533 magic constant in emit_library_call invocations.
6534 (sparc64_initialize_trampoline): Likewise.
6535 (sparc_profile_hook): Likewise.
6536 * config/sparc/sparc.md: Likewise.
6538 * config/sparc/sparc.c (sparc_extra_constraint_check):
6539 Fix type of argument 'c'.
6540 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6543 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6545 * diagnostic.h (output_buffer_state): Redefine.
6546 (output_format_decoder): New macro.
6547 (output_prefixing_rule): Likewise.
6548 (output_line_cutoff): Likewise.
6549 (diagnostic_format_decoder): Adjust.
6550 (diagnostic_prefixing_rule): Likewise.
6551 (diagnostic_line_cutoff): Likewise.
6552 (diagnostic_state): Likewise.
6553 (diagnostic_kind_count): Likewise.
6554 (diagnostic_buffer): Now a macro.
6556 * diagnostic.c (diagnostic_buffer): Remove definition.
6557 (output_is_line_wrapping): Adjust.
6558 (set_real_maximum_length): Likewise.
6559 (output_set_maximum_length): Likewise.
6560 (init_output_buffer): Likewise.
6561 (lhd_print_error_function): Likewise.
6562 (output_do_verbatim): Likewise.
6564 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
6566 * cpperror.c (print_location): Don't print include chain
6568 (cpp_begin_message): Update to use DL_ macros.
6569 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6570 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6571 cpp_notice, cpp_notice_from_errno): Remove.
6572 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6575 * cppexp.c (CPP_ICE): Remove.
6576 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6577 lex, integer_overflow, _cpp_parse_expr): Update.
6578 * cppfiles.c (read_include_file, find_include_file,
6579 handle_missing_header, _cpp_read_file, remap_filename): Update.
6580 * cpphash.h (enum error_type): Remove.
6581 (_cpp_begin_message): Update.
6582 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6583 cpp_handle_option, cpp_post_options): Update.
6584 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6585 skip_whitespace, parse_identifier, parse_slow, parse_string,
6586 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6587 cpp_interpret_charconst): Update.
6588 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6589 lex_macro_node, do_undef, glue_header_name, parse_include,
6590 do_include_common, read_flag, do_line, do_linemarker, do_ident,
6591 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6592 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6593 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6594 _cpp_pop_buffer, do_diagnostic): Update.
6595 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6596 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6597 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6598 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6599 cpp_notice, cpp_notice_from_errno): Remove.
6600 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6603 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6604 collect_args, enter_macro_context, save_parameter, parse_params,
6605 _cpp_create_definition, check_trad_stringification,
6606 cpp_macro_definition): Update.
6607 * cppmain.c (cpp_preprocess_file): Update.
6608 * fix-header.c (read_scan_file): Update.
6610 2002-04-14 Andreas Schwab <schwab@suse.de>
6612 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6614 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6616 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6618 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6620 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6623 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
6625 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6627 2002-04-13 Joel Sherrill <joel@OARcorp.com>
6629 * config/sparc/t-elf: Enable v8 multilibs. Impacts
6630 sparc-elf and sparc-rtems targets.
6632 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6634 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6635 defined, and __gnu_hurd__ wherever __GNU__ is defined.
6636 * arm/linux-elf.h: Likewise.
6637 * cris/aout.h: Likewise.
6638 * cris/linux.h: Likewise.
6639 * i370/linux.h: Likewise.
6640 * i386/gnu.h: Likewise.
6641 * i386/linux-aout.h: Likewise.
6642 * i386/linux-oldld.h: Likewise.
6643 * i386/linux.h: Likewise.
6644 * i386/linux64.h: Likewise.
6645 * ia64/linux.h: Likewise.
6646 * m68k/linux-aout.h: Likewise.
6647 * m68k/linux.h: Likewise.
6648 * mips/linux.h: Likewise.
6649 * pa/pa-linux.h: Likewise.
6650 * pj/linux.h: Likewise.
6651 * rs6000/sysv4.h: Likewise.
6652 * s390/linux.h: Likewise.
6653 * sh/linux.h: Likewise.
6654 * sparc/linux-aout.h: Likewise.
6655 * sparc/linux.h: Likewise.
6656 * sparc/linux64.h: Likewise.
6657 * xtensa/linux.h: Likewise.
6659 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
6661 * stmt.c (check_unique_operand_names): Expect operand names to
6662 be strings rather than identifiers. Use simple_cst_equal to
6664 (resolve_operand_name_1): Make same identifier to string change here.
6665 * c-parse.in (asm_operand): Convert a named operand into a string.
6666 * cp/parse.y (asm_operand): Likewise.
6668 2002-04-13 Andreas Schwab <schwab@suse.de>
6670 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6672 2002-04-12 Mark Mitchell <mark@codesourcery.com>
6674 Revert these changes:
6676 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6679 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6681 2002-04-12 Richard Henderson <rth@redhat.com>
6683 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6684 (sparc*-*-solaris): Clean up header files.
6685 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6686 and plan on generating 64-bit code.
6687 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6688 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6689 * config/sparc/sol2-sld-64.h: Rename ...
6690 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
6691 for AS_SPARC64_FLAG not defined.
6692 * config/sparc/sol2-gld-bi.h: New.
6693 * config/sparc/sol2-sld.h: Remove.
6694 * config/sparc/sol26-sld.h: New.
6695 * config/sparc/sol2.h: Tidy comments.
6696 * doc/install.texi: Document sparc-solaris configury changes.
6698 2002-04-12 Richard Henderson <rth@redhat.com>
6700 * recog.c (offsettable_address_p): Match the logic in adjust_address.
6702 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6703 in 64-bit mode only. Use only for 32-bit or MEDLOW.
6705 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6707 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6709 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
6711 * pa.c (pa_can_combine_p): Call extract_insn before calling
6714 2002-04-12 Douglas B Rupp <rupp@gnat.com>
6716 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6717 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6718 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6719 (CPP_PREDEFINES): Handle __declspec.
6720 * config/i386/t-interix (USER_H): Remove.
6722 2002-04-12 DJ Delorie <dj@redhat.com>
6724 * integrate.c (compare_blocks): Make comparisons safe for when
6725 sizeof(int) < sizeof(char *).
6726 (find_block): Likewise.
6728 2002-04-12 Jan Hubicka <jh@suse.cz>
6729 David Edelsohn <edelsohn@gnu.org>
6731 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6733 (symbol_ref_operand): New.
6734 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6735 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6737 2002-04-12 Andreas Schwab <schwab@suse.de>
6739 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6740 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6741 overrides the definition in config/svr4.h.
6743 2002-04-12 Eric Norum <eric.norum@usask.ca>
6745 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6746 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6747 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6748 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6749 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6750 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6751 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6752 definitions to config/rtems.h and make the targets more similar.
6754 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6756 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6757 POINTERS_EXTEND_UNSIGNED.
6758 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6759 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6761 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6764 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
6766 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6767 depends on TARGET_SHMEDIA, not TARGET_SH5.
6769 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
6771 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6772 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6774 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
6776 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6779 2002-04-12 Andreas Schwab <schwab@suse.de>
6781 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6783 2002-04-12 Richard Henderson <rth@redhat.com>
6786 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6788 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6789 modes spanning multiple hard regs.
6791 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6793 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6795 * pa.c (pa_output_function_prologue): Don't accumulate the total
6796 number of code bytes when using TARGET_64BIT, or gas, SOM and not
6797 the portable runtime.
6798 (output_deferred_plabels): Handle 64bit plabels.
6799 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6800 generating pic code using the GAS assembler for object formats that
6801 are not SOM (ie., ELF32 and ELF64).
6802 (output_millicode_call): Check attribute type if attribute length is 28.
6803 Likewise use $PIC_pcrel$0. Only call get_attr_length and
6804 dbr_sequence_length once.
6805 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6806 dbr_sequence_length once.
6807 * pa.h (TARGET_SOM): Define if not defined.
6808 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6809 with GAS and not SOM.
6810 (jump, call_internal_reg, call_value_internal_reg): Likewise.
6811 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
6813 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6815 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6816 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6817 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6818 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6819 elfos.h and dbxelf.h values are fine now.
6820 * config/i386/freebsd.h, config/alpha/freebsd.h
6821 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6823 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6825 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6826 or set Acpu or Amachine. Reformat.
6827 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6829 (LINK_SPEC): Do not need to undef.
6830 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6831 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6832 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6834 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6835 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6836 (LINK_SPEC): Do not need to undef.
6837 (DONT_USE_BUILTIN_SETJMP): Do not define.
6838 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6839 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
6840 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6841 Remove trailing spaces.
6842 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6843 __ELF__, or set Acpu or Amachine. Reformat.
6844 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6847 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6849 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6850 all other *-*-freebsd* targets.
6852 2002-04-11 Richard Henderson <rth@redhat.com>
6854 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6856 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6858 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6859 Include {cpu}/{cpu}.h thru tm_file.
6860 (alpha*-*-linux*ecoff): Remove target.
6861 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6862 (LINK_SPEC): Remove, is not OS independent.
6863 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6864 (LINK_SPEC): Do not need to #undef any longer.
6865 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6867 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6869 (LINK_SPEC): Moved here from alpha/elf.h.
6870 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6872 * config/alpha/linux-ecoff.h: Remove.
6873 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6874 (CPP_SPEC): Define _POSIX_SOURCE as needed.
6875 (CPP_SUBTARGET_SPEC): Do not define.
6876 (LINK_SPEC): Do not need to #undef any longer.
6877 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6878 * config/alpha/vms.h: Likewise.
6880 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6882 * doc/extend.texi: Remove old claim that typedefs cannot have
6883 an alignment attribute.
6885 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6887 PR optimization/6177
6888 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6889 bitpos is 0 and bitsize CONCAT size.
6891 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6894 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6896 2002-04-10 David O'Brien <obrien@FreeBSD.org>
6898 * config/alpha/freebsd.h: Minor reformatting.
6899 (CPP_SPEC): Define ELF and add cpp_subtarget.
6900 (ASM_SPEC): No longer needed.
6902 2002-04-11 Richard Henderson <rth@redhat.com>
6904 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6905 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
6906 (dimode mem/zero splitter): New.
6908 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
6910 * config/cris/cris.c (cris_override_options): Tweak error message
6911 for PIC not implemented.
6913 * config/cris/cris.h: Tweak comments related to parameter-passing.
6915 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6917 2002-04-10 Richard Henderson <rth@redhat.com>
6919 * except.c (add_ehl_entry): Allow duplicates after landing pad
6922 2002-04-10 David Edelsohn <edelsohn@gnu.org>
6924 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6926 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
6928 * c-decl.c (c_init_decl_processing): Move generation of
6929 decls for g77_integer_type_node and friends from here ...
6930 * c-common.c (c_common_nodes_and_builtins): ... to here.
6932 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
6934 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6935 is only used as frame pointer when frame_pointer_needed is true.
6937 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
6940 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6941 for the fact that the pool entry uses two words.
6942 (movdf_hard_insn): Similarly. Also, ADR instruction can span
6944 (movdf_soft_insn): Similarly.
6945 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6946 for the fact that the pool entry uses three words.
6948 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
6950 * config/mips/mips.c (mips_va_arg): When using the struct version
6951 of the EABI va_list, allow arguments in the register save area to
6952 take up less room than a stack argument.
6954 2002-04-10 Richard Henderson <rth@redhat.com>
6956 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6957 if EXPAND_INITIALIZER.
6959 2002-04-09 Richard Henderson <rth@redhat.com>
6961 * config/alpha/alpha.md (movdi_er_maybe_g): New.
6962 * config/alpha/alpha.c (alpha_expand_mov): Use it.
6964 2002-04-10 Alan Modra <amodra@bigpond.net.au>
6966 PR optimization/6233
6967 * rtlanal.c (pure_call_p): New function.
6968 * rtl.h (pure_call_p): Declare.
6969 * loop.c (prescan_loop): Use it to set has_nonconst_call.
6970 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6972 2002-04-09 Eric Christopher <echristo@redhat.com>
6974 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6975 information to .comm directive.
6977 2002-04-09 Richard Henderson <rth@redhat.com>
6980 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6982 2002-04-09 Richard Henderson <rth@redhat.com>
6984 * basic-block.h (flow_delete_block_noexpunge): Declare.
6985 (expunge_block_nocompact): Declare.
6986 * cfg.c (expunge_block_nocompact): Split out from ...
6987 (expunge_block): ... here.
6988 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6989 (flow_delete_block_noexpunge): Split out from ...
6990 (flow_delete_block): ... here.
6991 * cfgcleanup.c (delete_unreachable_blocks): Compact while
6992 removing dead blocks.
6993 * except.c (exception_handler_labels): Remove.
6994 (exception_handler_label_map): New.
6995 (struct eh_region): Add aka member.
6996 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6997 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6998 (for_each_eh_label, for_each_eh_label_1): New.
6999 (init_eh): Register exception_handler_label_map.
7000 (free_eh_status): Use free_region.
7001 (find_exception_handler_labels): Use the map, not the list.
7002 (remove_exception_handler_label): Likewise.
7003 (maybe_remove_eh_handler): Likewise.
7004 (remove_eh_handler): Use the region aka bitmap.
7005 * except.h (exception_handler_labels): Remove.
7006 (for_each_eh_label): Declare.
7007 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7008 * loop.c (invalidate_loops_containing_label): New.
7009 (find_and_verify_loops): Use it. Use for_each_eh_label.
7010 * sched-rgn.c (is_cfg_nonregular): Use
7011 current_function_has_exception_handlers.
7013 2002-04-09 Richard Henderson <rth@redhat.com>
7015 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7016 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7017 Do not return changed status.
7018 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7019 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7020 New functions that do return changed status.
7021 * sbitmap.h: Update decls.
7022 * gcse.c, lcm.c: Use _cg functions as needed.
7024 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7026 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7027 (sh64-*-elf*, sh-*-rtemself*): Likewise.
7028 * config/sh/embed_bb.c: New file.
7029 * config/sh/embed-elf.h: New file.
7030 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7031 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
7032 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7034 (SUBTARGET_CPP_PTR_SPEC): Don't define.
7035 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7036 Add subtarget_asm_endian_spec.
7037 (ASM_SPEC): Use subtarget_asm_endian_spec.
7038 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7039 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7040 (WCHAR_UNSIGNED): Define.
7041 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7042 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7043 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7045 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7046 (sh_adjust_cost): Likewise.
7047 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7049 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7050 (WCHAR_TYPE_SIZE): Likewise.
7051 (ASM_SPEC): Use subtarget_asm_endian_spec.
7052 (SH_ELF_WCHAR_TYPE): #undef/ #define.
7053 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7054 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7055 (MAX_WCHAR_TYPE_SIZE): Don't #define .
7056 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7057 (USER_LABEL_PREFIX): Don't #undef /#define .
7058 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7059 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7060 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7061 (ASM_SPEC): Likewise.
7062 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7063 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7064 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7065 (LIB2FUNCS_EXTRA): Define.
7066 * t-sh64 (LIB2FUNCS_EXTRA): Define.
7067 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7068 (LIB1ASMFUNCS_CACHE): Define.
7069 (LIB2FUNCS_EXTRA): Redefine empty.
7071 2002-04-08 Richard Henderson <rth@redhat.com>
7073 * reorg.c (get_branch_condition): Use reversed_comparison_code.
7075 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7077 * config/m68hc11/larith.asm (__map_data_section): Fix condition
7078 and optimize for size.
7079 (__do_global_ctors): Fix pointer comparison.
7080 (__do_global_dtors): Likewise.
7082 2002-04-09 David S. Miller <davem@redhat.com>
7084 * config/sparc/sparc.c (sparc_extra_constraint_check): New
7085 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
7086 allow reloading pseudos.
7087 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7088 * config/sparc/sparc-protos.h: Declare it.
7090 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7091 unsigned comparison warning.
7092 (output_restore_regs): Mark leaf_function as unused.
7094 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7096 * expr.c (is_aligning_offset): New function.
7097 (expand_expr, case COMPONENT_EXPR): Call it.
7099 2002-04-08 David S. Miller <davem@redhat.com>
7102 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7104 Make init_priority work on Sparc when using GNU ld.
7105 * config/sparc/linux.h, config/sparc/linux64.h,
7106 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7107 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7108 * config/sparc/sol2-gld.h: New file to do the same.
7109 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7110 sparc/sol2-gld.h to tm_file.
7112 PR optimization/4328
7113 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7114 * doc/md.texi: Document it.
7115 * config/sparc/sparc.md (movdi_insn_sp64_novis,
7116 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7117 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7118 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7119 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7121 2002-04-08 Andreas Jaeger <aj@suse.de>
7123 * stmt.c (expand_asm_operands): Revert last patch from Richard
7126 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7128 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7129 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
7131 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7133 * doc/contrib.texi (Contributors): Add David O'Brien.
7135 2002-04-08 Alan Modra <amodra@bigpond.net.au>
7137 * configure.in (auto-build.h): Use target_alias and build_alias
7138 when running configure.
7139 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7140 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7141 * configure: Regenerate.
7143 2002-04-07 David S. Miller <davem@redhat.com>
7145 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7147 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
7150 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7151 generating 32-bit pic code.
7153 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
7155 * cppinit.c (cpp_create_reader): Initialize
7156 discard_comments_in_macro_exp.
7157 (COMMAND_LINE_OPTIONS): Add "-CC" option.
7158 (cpp_handle_option): Handle "-CC" option.
7159 * cpplex.c (save_comment): If saving a C++ comment in
7160 a directive, convert it to a C comment.
7161 (_cpp_lex_direct): Pass second comment start character to
7162 save_comment to indicate comment type.
7163 * cpplib.c (_cpp_handle_directive): If processing
7164 a "#define" directive and discard_comments_in_macro_exp
7165 is false, re-enable saving of comments.
7166 (lex_macro_node): If discard_comments_in_macro_exp is false,
7167 discard any comments before the macro identifier.
7168 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7170 * cppmacro.c (cpp_get_token): If expanding a macro while
7171 processing a directive, discard any comments we might encounter.
7172 (parse_params): If discard_comments_in_macro_exp is false,
7173 ignore comments in the macro parameter list.
7174 * gcc.c (cpp_unique_options): Add "-CC" option.
7175 (option_map): Map "--comments-in-macros" to "-CC".
7176 * doc/cppopts.texi: Document "-CC" option.
7177 * f/lang-specs.h: Add "-CC" option.
7178 * testsuite/gcc.dg/cpp/maccom1.c: New test.
7179 * testsuite/gcc.dg/cpp/maccom2.c: New test.
7180 * testsuite/gcc.dg/cpp/maccom3.c: New test.
7181 * testsuite/gcc.dg/cpp/maccom4.c: New test.
7182 * testsuite/gcc.dg/cpp/maccom5.c: New test.
7183 * testsuite/gcc.dg/cpp/maccom6.c: New test.
7185 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7188 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7190 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7193 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7196 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7197 RTX_UNCHANGING_P for the functions arguments when a tail call
7200 2002-04-06 Jason Merrill <jason@redhat.com>
7202 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7203 (parse_options_and_default_flags): Set them appropriately.
7204 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7206 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
7208 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7211 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7214 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7215 types come in by-reference. Fix typo in comment.
7217 2002-04-05 David S. Miller <davem@redhat.com>
7219 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7220 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7221 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7222 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7224 2002-04-05 David S. Miller <davem@redhat.com>
7226 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7227 are not going to emit return instructions, emit at least a nop
7228 for the sake of sane backtraces.
7230 2002-04-05 Richard Henderson <rth@redhat.com>
7232 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7234 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
7236 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7238 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
7240 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7241 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7242 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7244 2002-04-05 Andreas Schwab <schwab@suse.de>
7246 * c-convert.c: Include c-common.h.
7247 * Makefile.in (c-convert.o): Updated.
7249 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7251 * mklibgcc.in: Use separate libgcc.map for each multilib.
7252 * Makefile.in (distclean): Don't remove libgcc.map here.
7254 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7256 * Makefile.in (s-mlib): Handle --disable-multilib by separate
7257 genmultilib invocation.
7259 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
7261 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7262 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
7263 to num_gprs for symmetry.
7264 * config/mips/mips.c: Adjust accordingly.
7266 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
7268 * c-common.c (truthvalue_conversion): Rename, update.
7269 * c-common.h (c_common_truthvalue_conversion): New.
7270 * c-convert.c (convert): Update.
7271 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7272 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7273 * c-typeck.c (build_binary_op, build_unary_op,
7274 build_conditional_expr): Update.
7275 * fold-const.c (constant_boolean_node, fold): Use langhook.
7276 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7277 * langhooks.h (struct lang_hooks): New hook.
7278 * stmt.c (expand_decl_cleanup): Use langhook.
7279 * tree.h (truthvalue_conversion): Remove.
7281 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7283 2002-04-05 Alan Modra <amodra@bigpond.net.au>
7285 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7286 Add rules to make null object file.
7288 2002-04-04 Jim Blandy <jimb@redhat.com>
7290 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7291 macro formal parameter names.
7293 2002-04-04 David S. Miller <davem@redhat.com>
7295 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7297 2002-04-04 Richard Henderson <rth@redhat.com>
7300 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7301 Support copies into and out of memory. Don't accept allows_reg
7302 and allows_mem as gospel.
7304 2002-04-04 Richard Henderson <rth@redhat.com>
7307 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7308 (write_dependence_p): Likewise.
7310 2002-04-04 Richard Henderson <rth@redhat.com>
7312 * predict.c (estimate_bb_frequencies): Do frequency calculation
7313 with a volatile temporary.
7315 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
7317 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7319 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7322 * final.c (final_start_function): Don't bump profile_label_no here...
7323 (final_end_function): ...but here.
7325 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7327 * config/sparc/sparc.md (pic): New attribute.
7328 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7330 (split after do_builtin_setjmp_setup): New.
7332 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7335 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7338 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7340 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7341 UNITS_PER_WORD for zero sized aggregates.
7343 2002-04-03 David S. Miller <davem@redhat.com>
7345 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7346 one-character spec for this, just use %(link_gcc_c_sequence).
7348 2002-04-03 David S. Miller <davem@redhat.com>
7350 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7353 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7355 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7356 (DWARF_FRAME_RETURN_COLUMN): Move.
7357 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7358 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7359 * pa.c (except.h, predict.h): Include.
7361 (store_reg_modify, set_reg_plus_d): Revise prototypes.
7362 (output_ascii): Add cast.
7363 (store_reg_modify): Revise to add frame notes.
7364 (set_reg_plus_d): Likewise.
7365 (compute_frame_size): Include space for eh data registers in frame if
7366 the current function calls eh_return.
7367 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7368 function calls eh_return. Save eh data registers if the current
7369 function calls eh_return. Fix code to add frame notes. Emit
7370 blockage to prevent insns with frame notes being scheduled in the
7371 delay slot of calls.
7372 (hppa_expand_epilogue): Restore eh data registers and do final stack
7373 adjustment if the current function calls eh_return. Don't add frame
7375 (output_call): Revise for change in length of call insn. Don't do
7376 return pointer adjustment for an unconditional jump in the delay slot
7377 of a call when using frame notes.
7378 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7379 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7380 (ARG_POINTER_CFA_OFFSET): Define.
7381 * pa.md (return_external_pic): New pattern.
7382 (prologue): Correct formatting. Use return_external_pic if current
7383 function calls eh_return.
7384 (call_internal_symref, call_value_internal_symref,
7385 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7386 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7388 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7390 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7391 list of targets to check using "nop" insn.
7392 * configure: Rebuilt.
7394 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7396 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7398 2002-04-03 David S. Miller <davem@redhat.com>
7400 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7401 library sequence passed to the linker.
7402 (LINK_COMMAND_SPEC): Use it.
7403 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7404 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7405 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7407 2002-04-03 Jason Merrill <jason@redhat.com>
7409 * except.c (struct eh_status): Remove protect_list.
7410 (begin_protect_partials, end_protect_partials): Remove.
7411 (add_partial_entry): Remove.
7412 * except.h: Remove prototypes.
7414 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7415 expand_decl_cleanup_eh.
7418 * tree.h (CLEANUP_EH_ONLY): New macro.
7419 * stmt.c (expand_decl_cleanup_eh): New fn.
7420 (expand_cleanups): Check CLEANUP_EH_ONLY.
7421 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7422 Use expand_decl_cleanup_eh.
7423 (expand_stmt): Adjust.
7424 * c-common.h: Adjust prototype.
7426 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7428 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7429 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7430 (cris_target_asm_function_epilogue): Ditto.
7431 (cris_initial_frame_pointer_offset): Ditto.
7432 (cris_simple_epilogue): Ditto.
7433 (cris_expand_builtin_va_arg): Variable-size types come in
7436 2002-04-03 David S. Miller <davem@redhat.com>
7438 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7440 (set_fast_math): Correct 'fsr' type.
7442 2002-04-03 Richard Henderson <rth@redhat.com>
7445 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7446 * toplev.c (check_global_declarations): Use it.
7447 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7448 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7449 (LANG_HOOKS_DECLS): Add it.
7450 * langhooks.c (lhd_warn_unused_global_decl): New.
7451 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7452 * c-objc-common.c (c_warn_unused_global_decl): New.
7453 * c-tree.h (c_warn_unused_global_decl): Declare.
7454 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7456 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
7458 * langhooks-def.h (lhd_set_decl_assembler_name,
7459 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7460 (LANG_HOOKS_INITIALIZER): Update.
7461 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7462 * langhooks.h (struct lang_hooks): New hook.
7463 * tree.c (set_decl_assembler_name): Move to langhooks.c.
7464 (lang_set_decl_assembler_name): Remove.
7465 (init_obstacks): Don't set hook.
7466 (decl_assembler_name): New function.
7467 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7468 (decl_assembler_name): New.
7469 (lang_set_decl_assembler_name): Remove.
7471 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7473 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7474 works properly with .hidden symbols.
7475 * configure: Rebuilt.
7476 * config.in: Rebuilt.
7477 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7478 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7479 properly with .hidden symbols.
7481 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7484 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7487 2002-04-03 Richard Henderson <rth@redhat.com>
7490 * sched-rgn.c (sets_likely_spilled): New.
7491 (sets_likely_spilled_1): New.
7492 (add_branch_dependences): Use it.
7494 2002-04-02 Richard Henderson <rth@redhat.com>
7497 * loop.h (LOOP_FIRST_PASS): New.
7498 * loop.c (strength_reduce): Mind it when deciding to unroll.
7499 * toplev.c (rest_of_compilation): Set it.
7501 2002-04-02 David S. Miller <davem@redhat.com>
7503 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7504 mems_ok_for_ldd_peep when the order of the loads being examined
7506 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7507 existing comment to increase comprehension of this situation.
7509 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7511 * config/sh/sh.md: Don't use union real_extract.
7513 2002-04-02 Richard Henderson <rth@redhat.com>
7515 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7517 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7519 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7520 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7521 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7522 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7523 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7524 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7525 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7526 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7527 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7528 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7529 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7530 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7531 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7532 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7533 Include as many configury headers via tm_file as possible. This
7534 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7535 * config/openbsd-oldgas.h: New file.
7536 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7537 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7538 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7539 config/i386/i386-coff.h, config/i386/i386-interix.h,
7540 config/i386/iscdbx.h, config/i386/linux-aout.h,
7541 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7542 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7543 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7544 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7545 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7546 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7547 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7548 config/i386/vxi386.h: Do not directly include configury headers.
7549 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7550 Directly include configury headers that are no longer automatically
7551 included by the above headers.
7552 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7553 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7554 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7555 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7556 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7557 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7558 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7559 (TARGET_VERSION): Define.
7560 * config/i386/beos-elf.h, config/i386/freebsd.h,
7561 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7562 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7563 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7564 config/i386/sco5.h, config/i386/sysv4.h
7565 (TARGET_VERSION): Do not need to protect.
7566 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7567 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7568 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7569 config/i386/i386-interix.h, config/i386/linux-aout.h,
7570 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7571 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7572 (YES_UNDERSCORES): Do not define - not needed.
7573 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7574 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7575 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7576 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7577 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7578 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7579 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7580 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7582 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
7583 Richard Henderson <rth@redhat.com>
7586 * function.c (assign_temp): Accept either type or decl argument.
7587 Detect variables whose size is too large to fit into an integer.
7588 * stmt.c (expand_decl): Pass the decl, not the type.
7590 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7592 * protoize.c: Match include directory usage with cppdefault.c.
7594 2002-04-03 Jeffrey A Law (law@redhat.com)
7595 Hans-Peter Nilsson <hp@bitrange.com>
7597 * combine.c (simplify_comparison): Avoid narrowing a comparison
7598 with a paradoxical subreg when doing so would drop signficant bits.
7600 2002-04-02 Steve Ellcey <sje@cup.hp.com>
7602 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7603 if POINTERS_EXTEND_UNSIGNED is defined.
7605 2002-04-02 Richard Henderson <rth@redhat.com>
7608 * local-alloc.c (contains_replace_regs): LO_SUM may contain
7611 2002-04-02 Richard Henderson <rth@redhat.com>
7613 * doc/standards.texi: Document required freestanding libc entry points.
7615 2002-04-02 Alan Modra <amodra@bigpond.net.au>
7617 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7618 associated splitter. Remove MQ constraint.
7619 (ctrdi_internal4): Correct CCmode clobber.
7621 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7623 * milli64.S ($$dyncall): New function.
7624 * t-linux (LIB1ASMFUNCS): Revise module list.
7625 (LIB1ASMSRC): Use pa/milli64.S.
7627 2002-04-02 Richard Henderson <rth@redhat.com>
7629 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7630 rename solaris_sys_varargs_h.
7632 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7634 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7635 the same mode as its component.
7637 2002-04-02 Richard Henderson <rth@redhat.com>
7640 * final.c (this_is_asm_operands): Export.
7641 * output.h (this_is_asm_operands): Declare.
7642 * config/i386/i386.c (print_operand): Error odd asm operands.
7644 2002-04-02 Richard Henderson <rth@redhat.com>
7647 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7649 2002-04-01 Richard Henderson <rth@redhat.com>
7652 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7653 * fixinc/fixincl.x: Rebuild.
7655 2002-04-01 Richard Henderson <rth@redhat.com>
7657 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7658 (atomic_alloc, atomic_free): New.
7659 (SIZE, MASK_FOR, PTR_IN): New.
7660 (emergency_reg_state, emergency_reg_state_free): New.
7661 (emergency_labeled_state, emergency_labeled_state_free): New.
7662 (reg_state_alloced, labeled_state_alloced): New.
7663 (alloc_reg_state, free_reg_state): New.
7664 (alloc_label_state, free_label_state, free_label_states): New.
7665 (push, pop, dup_state_stack, free_state_stack): Use them.
7666 (desc_label_state): Likewise.
7667 (uw_frame_state_for): Free label states and state stack.
7668 (uw_update_reg_address): Eliminate warnings.
7670 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
7672 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7673 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7675 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7677 * c-decl.c (grokdeclarator): Update.
7678 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7679 * c-tree.h (c_mark_addressable): New.
7680 * c-typeck.c (default_function_array_conversion, build_unary_op,
7681 build_array_ref, convert_for_assignment): Update.
7682 (mark_addressable): Rename.
7683 * calls.c (try_to_integrate, expand_call): Use langhook.
7684 * expr.c (expand_expr): Use langhook.
7685 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7686 * langhooks.h (struct lang_hooks): New hook.
7687 * stmt.c (expand_asm_operands): Use langhook.
7688 * tree.h (mark_addressable): Remove.
7690 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7692 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7694 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7697 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7699 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7700 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7702 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7704 * c-common.c (unsigned_conversion_warning, convert_and_check,
7705 unsigned_type, signed_type, shorten_compare,
7706 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7707 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7708 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7710 * c-decl.c (grokdeclarator): Update.
7711 * c-format.c (check_format_types): Update.
7712 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7713 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7714 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7715 * convert.c (convert_to_integer): Use new hooks.
7716 * expmed.c (make_tree): Use new hooks.
7717 * expr.c (store_expr): Use new hooks.
7718 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7719 all_ones_mask_p, unextend, fold): Use new hooks.
7720 * langhooks.h (struct lang_hooks_for_types): New hooks.
7721 * tree.h (signed_or_unsigned_type, signed_type,
7722 unsigned_type): Remove.
7724 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7725 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7727 2002-03-31 Richard Henderson <rth@redhat.com>
7729 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7730 (desc_frgr_mem): Fix reference to f16-f31.
7732 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7734 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7735 RTVEC_ELT): Const-ify.
7736 * varray.h (VARRAY_CHECK): Const-ify.
7737 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7738 ggc_mark_rtvec, ggc_mark): Const-ify.
7740 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7742 * diagnostic.c: Include langhooks-def.h.
7743 * Makefile.in (diagnostic.o): Update.
7745 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7747 * c-common.c (c_unsafe_for_reeval): Rename.
7748 * c-common.h (c_unsafe_for_reeval): Rename.
7749 * c-decl.c (finish_incomplete_decl): Rename.
7750 (c_init_decl_processing): Don't set langhook.
7751 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7752 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7753 * c-objc-common.c (c_objc_common_init): Don't set langhook.
7754 * c-tree.h (finish_incomplete_decl): Rename.
7755 * langhooks-def.h (lhd_unsafe_for_reeval): New.
7756 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7757 (LANG_HOOKS_INITIALIZER): Update.
7758 * langhooks.c (lhd_unsafe_For_reeval): New.
7759 * langhooks.h (struct langhooks): New hooks.
7760 * toplev.c (incomplete_decl_finalize_hook): Remove.
7761 (wrapup_global_declarations): Update.
7762 * tree.c (lang_unsafe_for_reeval): Remove.
7763 (unsafe_for_reeval): Update.
7764 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7767 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7768 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7770 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7772 * diagnostic.c (print_error_function): Remove.
7773 (default_print_error_function): Rename.
7774 (report_error_function): Update.
7775 * diagnostic.h (print_error_function): Remove.
7776 (default_print_error_function): Remove.
7777 * langhooks-def.h (struct diagnostic_context): Predeclare.
7778 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7779 (LANG_HOOKS_INITIALIZER): Update.
7780 * langhooks.h (struct diagnostic context): Predeclare.
7781 (struct lang_hooks): New hook.
7783 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7785 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7786 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7788 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7789 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7790 of PIC_OFFSET_TABLE_REGNUM thruout.
7791 * config/rs6000/rs6000.md: Likewise.
7792 * config/rs6000/darwin.h: Likewise.
7794 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7796 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7797 unsigned HOST_WIDE_INT, not unsigned int.
7799 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7801 PR middle-end/6096, middle-end/6098, middle-end/6099
7802 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7804 (fill_slots_from_thread): Likewise.
7806 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7808 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7809 floating fields in float regs.
7810 (function_arg_record_value_2): Likewise.
7812 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7814 * config/mmix/mmix.md (define_constants): Remove misleading
7815 FIXME. Add MMIX_fp_rO_OFFSET.
7816 ("nonlocal_goto_receiver"): Don't have stack-frame address of
7817 saved rO as part of the pattern. Remove FIXME.
7818 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
7819 here, at output-time.
7821 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7824 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7826 (output_v9branch): Likewise.
7828 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7830 * gcc.c: Revert previous patch for now.
7831 * config/i386/djgpp.h: Likewise.
7833 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7835 * config/mmix/crti.asm (_init): Register _fini with atexit.
7836 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7838 2002-03-31 Richard Henderson <rth@redhat.com>
7841 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7842 (ASM_OUTPUT_DEF_FROM_DECLS): New.
7844 2002-03-31 Richard Henderson <rth@redhat.com>
7846 * libgcc2.c (__bb_exit_func): Make static.
7848 * config/alpha/alpha.md (trap): New.
7850 2002-03-31 Richard Henderson <rth@redhat.com>
7852 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7853 promoted argument types; build trap.
7854 (expand_builtin_trap): New.
7855 (expand_builtin): Use it.
7856 * stmt.c (expand_nl_goto_receivers): Likewise.
7857 * expr.h (expand_builtin_trap): Declare.
7858 * libfuncs.h (LTI_abort, abort_libfunc): New.
7859 * optabs.c (init_optabs): Init abort_libfunc.
7861 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7863 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7864 (LINK_COMMAND_SPEC): ... from here.
7865 (init_gcc_specs): Duplicate it here too, omitting
7866 shared_name in the second copy.
7867 (init_spec): Test for duplicate
7868 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7870 2002-03-30 David S. Miller <davem@redhat.com>
7872 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7873 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7875 2002-03-30 Roger Sayle <roger@eyesopen.com>
7876 Richard Henderson <rth@redhat.com>
7878 * regmove.c (combine_stack_adjustments_for_block): Avoid
7879 emitting a stack adjustment of zero bytes. Let delete_insn
7882 2002-03-30 Richard Henderson <rth@redhat.com>
7884 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7885 (sparc_emitting_epilogue): New.
7886 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7887 * config/sparc/sparc-protos.h: Update.
7888 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7889 (TARGET_SWITCHES): Update.
7890 * config/sparc/sparc.md (return): Remove.
7891 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7892 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7893 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7894 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7895 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7896 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7897 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7898 Remove MASK_EPILOGUE.
7899 * doc/invoke.texi: Update.
7901 2002-03-30 Daniel Berlin <dan@dberlin.org>
7903 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7904 CPP will start the file for us.
7906 2002-03-30 Richard Henderson <rth@redhat.com>
7909 * config/ia64/ia64.c (group_barrier_needed_p): Special case
7910 prologue_allocate_stack.
7911 (ia64_single_set): Use insn codes for recognition of special
7912 cases, not rtl matching.
7913 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7915 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
7917 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7919 2002-03-30 Richard Henderson <rth@redhat.com>
7922 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7923 or -fomit-frame-pointer with profiling.
7924 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7925 (FUNCTION_PROFILER): Do nothing.
7926 (PROFILE_HOOK): New.
7927 * config/sparc/sparc.c (sparc_override_options): Don't check
7928 code models for profiling.
7929 (sparc_function_profiler): Remove.
7930 (sparc_profile_hook): New.
7931 * config/sparc/sparc-protos.h: Update.
7933 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7935 PR optimization/6086
7936 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7937 of SUBREG of volatile MEM or because the MEM was mode dependent,
7938 return CLOBBER instead of unmodified SUBREG.
7940 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
7942 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7943 when not optimizing.
7945 * toplev.c (rest_of_compilation): Cann mark_constant_function
7946 only when optimizing.
7948 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7951 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7952 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7953 (try_optimize_cfg): clear all AUX fields.
7955 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7956 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7957 (ix86_address_cost): Be prepared for SUBREGed registers.
7958 (legitimate_address_p): Accept SUBREGed registers.
7960 2002-03-29 Richard Henderson <rth@redhat.com>
7963 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7965 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7967 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7968 for aggregate and TFmode types.
7970 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7972 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7974 2002-03-29 Richard Henderson <rth@redhat.com>
7977 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7978 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7980 2002-03-29 Richard Henderson <rth@redhat.com>
7983 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7984 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7985 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7986 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7988 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7990 2002-03-29 Dale Johannesen <dalej@apple.com>
7992 * loop.c (combine_movables): Do allow combination of pseudos.
7994 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
7996 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7997 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7998 No functional change except ...
7999 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
8000 * doc/install.texi (*-*-freebsd*): Document port configuration.
8002 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8004 * Makefile.in (convert.o, calls.o, expmed.o): Update.
8005 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8007 * builtin-types.def (BT_PTRMODE): Update.
8008 * c-common.c (type_for_size): Rename c_common_type_for_size.
8009 (type_for_mode): Similarly.
8010 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8012 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8013 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8014 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8016 * c-typeck.c (common_type, comptypes, default_conversion):
8018 * calls.c: Include langhooks.h.
8019 (emit_library_call_value_1): Use new hooks. Avoid redundant
8021 * convert.c: Include langhooks.h
8022 (convert_to_pointer, convert_to_integer): Use new hooks.
8023 * except.c (init_eh): Similarly.
8024 * expmed.c: Include langhooks.h.
8025 (expand_mult_add): Use new hooks.
8026 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8027 try_casesi): Similarly.
8028 * fold-const.c (optimize_bit_field_compare, make_range,
8029 decode_field_reference, fold_truthop, fold): Similarly.
8030 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8031 put_var_into_stack): Similarly.
8032 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8033 LANG_HOOKS_TYPE_FOR_SIZE): New.
8034 (LANG_HOOKS_TYPES_INITIALIZER): Update.
8035 * langhooks.h (lang_hooks_for_types): New hooks.
8036 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8037 * tree.c (get_unwidened, get_narrower): Similarly.
8038 * tree.h (type_for_mode, type_for_size): Remove.
8039 * varasm.c (force_const_mem): Use new hooks.
8040 * utils2.c (nonbinary_modular_operation): Update.
8042 * objc-act.c (handle_impent): Update.
8043 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8046 2002-03-29 Steve Ellcey <sje@cup.hp.com>
8048 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8049 * config/ia64/ia64.c (basereg_operand): New.
8050 * config/ia64/ia64-protos.h (basereg_operand): Declare.
8051 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8053 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8055 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8056 unwind information when frame_pointer_needed.
8057 (mmix_assemble_integer): Tweak wording in comment.
8059 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8061 * Makefile.in (except.o): Update.
8062 * except.c: Include langhooks.h.
8063 (init_eh): Use langhook.
8064 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8065 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8066 (LANG_HOOKS_INITIALIZER): Update.
8067 * langhooks.h (lang_hooks_for_types): New.
8068 (struct lang_hooks): Add it.
8069 * tree.c (make_lang_type_fn, make_lang_type): Remove.
8070 * tree.h (make_lang_type_fn, make_lang_type): Remove.
8072 * alpha/alpha.c: Include langhooks.h.
8073 (alpha_build_va_list): Use langhook.
8074 * d30v/d30v.c: Include langhooks.h.
8075 (d30v_build_va_list): Use langhook.
8076 * i386/i386.c: Include langhooks.h.
8077 (ix86_build_va_list): Use langhook.
8078 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8079 * s390/s390.c: Include langhooks.h.
8080 (s390_build_va_list): Use langhook.
8081 * stormy16/stormy16.c: Include langhooks.h.
8082 (stormy16_build_va_list): Use langhook.
8084 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8087 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8089 (length): Compute variable length for branches/calls/jumps here.
8090 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8091 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8092 define branch_type attribute.
8093 (divsi3_sp32): Maximum length is 6 not 7.
8094 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8095 call_address_untyped_struct_value_sp32,
8096 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8097 * config/sparc/sparc.c (empty_delay_slot): New function.
8098 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8099 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8101 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8103 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8104 nonzero_bits if not needed.
8105 (nonzero_bits) [XOR]: Likewise.
8106 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8107 reg_last_set_mode and mode are both MODE_INT, but not equal.
8108 (record_value_for_reg): Compute reg_last_set_nonzero_bits
8109 in nonzero_bits_mode for MODE_INT modes.
8111 2002-03-28 Richard Henderson <rth@redhat.com>
8114 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8115 to GAS. Correct drift between alternatives.
8117 2002-03-28 Richard Henderson <rth@redhat.com>
8120 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8122 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
8124 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8125 emulation to the linker.
8127 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
8129 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8130 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8132 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
8134 * combine.c (simplify_and_const_int): Make sure to apply mask
8135 when force_to_mode returns a constant integer. PR3311.
8137 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8139 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8141 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8143 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8144 and Objective-C Dialect Options.
8146 2002-03-28 Richard Henderson <rth@redhat.com>
8148 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8149 comparison should be done vs !=0 not >0 return code. Tidy cases.
8151 2002-03-28 Richard Henderson <rth@redhat.com>
8153 * c-decl.c (finish_function): New arg can_defer_p. Pass it
8154 on to c_expand_body.
8155 * c-tree.h (finish_function): Update decl.
8156 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8158 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
8160 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8162 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
8164 * rtlanal.c: Include flags.h
8165 (may_trap_p): Do not mark FP operations if trapping
8166 if !flag_trapping_math
8167 * Makefile.in (rtlanal.o): Add dependency on flag.h
8168 * ifcvt.c (noce_operand_ok): Avoid the lameness.
8170 2002-03-27 Zack Weinberg <zack@codesourcery.com>
8172 * mips.md: Use dconst1, not 1.0, as first argument of
8173 REAL_VALUE_LDEXP. Don't use union real_extract.
8175 2002-03-28 Alan Modra <amodra@bigpond.net.au>
8177 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8178 rather than $target. Heed program_prefix and
8179 program_transform_name. Search for gas in cross-compiler case too.
8180 "test -x" rather than "test -f".
8181 (gcc_cv_ld): Likewise.
8182 (gcc_cv_nm): Heed program_prefix and program_transform_name.
8183 (gcc_cv_objdump): Likewise.
8184 * configure: Regenerate.
8186 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8188 * Makefile.in (attribs.o): Update.
8189 * attribs.c: Include langhooks.h.
8190 (decl_attributes): Use langhook.
8191 * c-decl.c (insert_default_attributes): Rename.
8192 * c-tree.h (c_insert_default_attributes): New.
8193 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8194 (LANG_HOOKS_INITIALIZER): Update.
8195 * langhooks.h (struct lang_hooks): New hook.
8196 * tree.h (insert_default_attributes): Remove.
8198 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8200 2002-03-27 Andreas Schwab <schwab@suse.de>
8202 * config/i386/i386.c (classify_argument): Also check for
8205 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8207 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8210 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
8212 * i960.md (ret): Set PC.
8213 (nonlocal_goto): Fix expander.
8214 * builtins.c (epxand_builin_longjmp): Check that we've emitted
8217 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
8219 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8222 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8224 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8225 assigning to BLOCK_FOR_INSN directly.
8227 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
8229 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8231 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8233 * c-common.c (c_expand_expr): Fix prototype.
8234 * c-common.h (c_expand_expr): Always declare, update.
8235 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8236 * c-objc-common.c (c_objc_common_init): No global hook.
8237 * expr.c (expand_expr): Use langhook.
8238 * expr.h (enum expand_modifier): Conditionally declare.
8239 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8240 (LANG_HOOKS_INITIALIZER): Update.
8241 * langhooks.c (lhd_expand_expr): New.
8242 * langhooks.h (struct lang_hooks): New hook.
8243 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8244 (lang_independent_init): Don't default hook.
8246 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8248 2002-03-27 Richard Henderson <rth@redhat.com>
8251 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8252 TARGET_CONST_GP. Simplify conditions.
8254 2002-03-27 Richard Henderson <rth@redhat.com>
8256 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8257 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8258 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8260 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
8262 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8263 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8264 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8265 Remove unnecessary masks.
8266 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8267 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8268 -mwindows, -mdll switches and their negations.
8270 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8272 * gcc-common.c (lang_mark_false_label_stack): Remove.
8273 * ggc.h (lang_mark_false_label_stack): Similarly.
8275 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
8277 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8279 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8280 or __rtems_ is defined.
8282 2002-03-26 Richard Henderson <rth@redhat.com>
8284 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8285 if a non-trivial load was emitted.
8286 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
8287 in high+extra+low case.
8289 2002-03-26 Richard Henderson <rth@redhat.com>
8291 * config.gcc (sparc*-solaris): Use float_format=sparc.
8293 2002-03-26 Richard Henderson <rth@redhat.com>
8295 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8296 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8297 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8298 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8299 (WINT_TYPE_SIZE): Fix at 32.
8301 2002-03-26 Richard Henderson <rth@redhat.com>
8303 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8304 until after eh landing pad generation.
8305 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8306 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8308 2002-03-26 Richard Henderson <rth@redhat.com>
8310 * expr.h (ADD_PARM_SIZE): One more convert for INC.
8312 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
8314 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
8315 and warning switches.
8316 (cc1_options): Likewise.
8318 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
8320 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8321 Restore more of the signal context. Set no_reg_stack_frame.
8322 * config/ia64/unwind-ia64.c (unw_state_record):
8323 Add no_reg_stack_frame, comments.
8324 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8325 (uw_update_context): Adjust bsp when unwinding from leaf,
8326 but not signal frame.
8328 2002-03-26 David Edelsohn <edelsohn@gnu.org>
8330 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8332 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8334 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8336 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8339 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8340 "Add a pool_range attribute", which was lost during the ARM/Thumb
8343 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8345 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8346 a register into the MAC16 accumulator.
8348 2002-03-26 Andrew Cagney <ac131313@redhat.com>
8350 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8351 (Warning Options): Document -Wswitch-enum.
8352 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
8354 (warn_switch_enum): Define variables.
8355 * flags.h (warn_switch_enum): Declare variables.
8356 * stmt.c (expand_end_case_type): When warn_switch_enum /
8357 -Wswitch-enum, perform switch checks.
8360 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8362 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8363 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8364 (reload_muladdsi_compare0_scratch): Delete.
8366 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8368 * doc/install.texi (*-*-freebsd*): Update.
8370 2002-03-26 Richard Henderson <rth@redhat.com>
8372 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8373 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8375 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8376 types from the normal argument frame.
8378 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8379 variable sized objects by reference.
8380 (sparc_va_arg): Receive them by reference too.
8382 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8384 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8385 code to not restoring global registers.
8387 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8389 * Makefile.in (ggc-common.o): Update.
8390 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8391 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8392 * c-tree.h (c_mark_tree): New.
8393 * ggc-common.c: Include langhooks.h.
8394 (gcc_mark_trees): Use new langhook.
8395 * ggc-callbacks.c: Delete file.
8396 * ggc.h (lang_mark_tree): Remove.
8397 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8398 (LANG_HOOKS_INITIALIZER): Update.
8399 * langhooks.h (struct lang_hooks): New hook.
8401 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8403 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8405 * doc/cpp.texi: Exclude entire Top node from printed manual.
8406 Move option index after directive index. Insert page breaks
8407 before GFDL and concept index. Index environment variables
8408 with command line options.
8409 * doc/cppenv.texi: Use @vtable for environment variable list.
8410 Add paragraph explaining semantics of empty elements in path
8411 variables. Exclude a cross-reference to Fishkill from the
8412 manpage. Remove an unnecessary cross-reference of the entry
8413 right above the referer. Don't use @anchor in text that goes
8415 * doc/cppopts.texi: Cross-reference the environment variables
8416 section, not the specific environment variable, for consistency.
8418 2002-03-25 Richard Henderson <rth@redhat.com>
8420 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8421 anywhere in the block. Don't refer to insns that have been
8422 removed from the chain. Iterate backward through the new insns.
8423 Don't refer to edges that have been removed.
8425 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8427 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8428 test for overflow of constant.
8430 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8433 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8434 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8435 these patterns on arm_archv4.
8437 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
8439 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8442 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8444 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
8445 float_handled, float_handler, float_signal, set_float_handler,
8446 and do_float_handler. Set handler for SIGFPE to crash_signal.
8447 * toplev.h: Don't prototype do_float_handler.
8449 * c-lex.c: Fold parse_float into lex_number. Make warning
8450 about portability of hex float constants more informative, and
8451 don't issue it on top of a syntax error.
8452 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8454 * real.h: Define REAL_VALUE_ABS here...
8455 * simplify-rtx.c: ... not here. Fold check_fold_consts,
8456 simplify_unary_real, simplify_binary_real, and
8457 simplify_binary_is2orm1 into their callers.
8458 * tree.c: Fold build_real_from_int_cst_1 into caller.
8460 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8462 * tsystem.h: Include float.h here...
8463 * libgcc2.c: ... not here.
8465 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
8467 Fixes for: PR bootstrap/3591, target/5676
8468 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8469 defined. Do not disable exceptions or rtti.
8470 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8471 mcore.h. Disable exceptions and rtti, since they are not
8474 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8476 * c-decl.c (maybe_build_cleanup): Remove.
8477 * expr.c (expand_expr): Use langhook.
8478 * langhooks-def.h (lhd_return_null_tree,
8479 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8480 (LANGHOOKS_INITIALIZER): Update.
8481 * langhooks.c (lhd_return_null_tree): New.
8482 * langhooks.h (struct lang_hooks): New hook.
8483 * tree-inline.c (initialize_inlined_parameters): Use langhook.
8484 * tree.h (maybe_build_cleanup): Remove.
8486 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8488 * regrename.c (build_def_use): Move recog_memoized
8489 before extract_insn.
8491 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8494 * expr.c (emit_group_store): Handle storing into CONCAT.
8496 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8498 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8499 corresponding MATCH_DUP.
8501 2002-03-24 Richard Henderson <rth@redhat.com>
8503 * unroll.c (unroll_loop): Zero label_map.
8505 * gcse.c: Include except.h.
8506 * Makefile.in (gcse.o): Update.
8508 2002-03-24 Richard Henderson <rth@redhat.com>
8510 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8511 Do resolve_unique_section before shared data clause.
8513 2002-03-24 Richard Henderson <rth@redhat.com>
8515 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8517 2002-03-24 Richard Henderson <rth@redhat.com>
8519 * recog.c (peephole2_optimize): Split blocks when EH insns are
8520 generated in the middle of a block. Do global life update if
8523 2002-03-24 Richard Henderson <rth@redhat.com>
8525 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8527 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8530 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8531 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8532 (init_dependency_output): Don't make no_output decision here.
8534 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8536 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8537 warn_switch. Update description.
8538 (expand_end_case_type): Call check_for_full_enumeration_handling
8541 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8543 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8544 (m68hc11_split_move): Call it to see if the source and destination
8545 operands use the same direction auto inc/dec mode, otherwise make the
8546 source an offsetable memory operand and generate an add.
8548 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8550 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8551 register for operand 2.
8552 ("*subsi3_zero_extendqi"): Likewise.
8553 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8554 bits so that it is compatible with a pop.
8555 ("*andhi3_gen"): Likewise.
8556 ("xorhi3"): Likewise.
8558 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8560 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8562 (cpp_post_options): ... not here.
8564 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8565 Aldy Hernandez <aldyh@redhat.com>
8567 Removal of separate preprocessor cpp0.
8569 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8570 cpp0, install-common): Update.
8571 * c-common.c (flag_preprocess_only): New.
8572 (c_common_init): Preprocess for -E.
8573 * c-common.h (flag_preprocess_only): New.
8574 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8575 * c-objc-common.c (c_init_decl_processing): Exit quickly
8576 for NULL return from c_common_init.
8577 * cpplib.h (cpp_preprocess_file): New.
8578 * cppmain.c (main, general_init, pfile, progname): Remove.
8579 (do_preprocessing): Rename cpp_preprocess_file, don't call
8580 cpp_finish. Don't close stdout here.
8581 (setup_callbacks): Update prototype.
8582 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8584 * tradcpp.c (main): Ignore -quiet.
8586 * lang-specs.h (default_compilers): Preprocess with cc1obj.
8588 2002-03-24 Richard Henderson <rth@redhat.com>
8590 PR optimization/5742
8591 * machmode.def: Add inner mode field to complex modes.
8592 * config/mips/mips.c (mips_function_value): Always define. Add
8593 new argument to handle libcalls.
8594 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8595 (FUNCTION_VALUE): Likewise.
8596 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8597 * config/mips/mips-protos.h: Update.
8599 2002-03-23 Richard Henderson <rth@redhat.com>
8601 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8602 * config/sparc/sparc-protos.h: Update.
8603 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8605 2002-03-23 Richard Henderson <rth@redhat.com>
8607 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8608 _start or _init begins the text segment.
8610 2002-03-23 David Edelsohn <edelsohn@gnu.org>
8612 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
8613 not HOST_WIDEST_INT.
8614 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8616 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
8619 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8620 operand argument to output_return_instruction.
8621 * arm.c (arm_print_operand, case 'd'): If the operand is
8622 const_true_rtx then just return.
8623 (arm_print_operand, case 'D'): If the operand is const_true_rtx
8626 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8628 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8629 (Warning Options): Document -Wswitch-default.
8630 * toplev.c (W_options): Add -Wswitch-default. Update comment on
8632 (warn_switch_default): Define variable.
8633 (warn_switch): Update comment.
8634 * flags.h (warn_switch_default): Declare variable.
8635 (warn_switch): Update comment.
8636 * stmt.c (expand_end_case): Check for and, when
8637 warn_switch_no_default, warn of a missing default case.
8639 2002-03-23 Alan Modra <amodra@bigpond.net.au>
8641 * real.h (N): Special case 128 bit doubles.
8643 * combine.c (simplify_comparison): When widening modes, ignore
8644 sign extension on CONST_INTs.
8646 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8648 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8649 passed to adjust_address. Fix comment formatting.
8652 2002-03-22 Zack Weinberg <zack@codesourcery.com>
8654 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8655 Always make REAL_VALUE_TYPE a struct containing an array of
8656 HOST_WIDE_INT, not a double. Tidy up the code deciding how
8657 big it is. Don't declare or use union real_extract.
8659 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8660 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8661 (print_operand), config/arm/arm.c (output_move_double),
8662 config/arm/arm.md (consttable_4, consttable_8),
8663 config/romp/romp.c (output_fpops), config/s390/s390.h
8664 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8665 (xtensa_output_literal): Don't use union real_extract.
8667 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8668 (sfmode_constant_to_ulong), config/ns32k/merlin.h
8669 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8670 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8671 (PRINT_OPERAND): Don't use local version of union
8674 * config/convex/convex.c (check_float_value), config/vax/vax.c
8675 (vax_float_literal), config/m88k/m88k.md (divdf3),
8676 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8677 config/pdp11/pdp11.c (output_move_quad): Don't do host
8678 arithmetic on target floating point quantities.
8680 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8681 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8683 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8684 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8686 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8687 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8689 * print-rtl.c (print_rtx): Disable code which needs
8690 floating-point emulator.
8691 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8692 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8693 depending on HOST_FLOAT_FORMAT to be defined properly.
8695 * config/1750a/1750a.c (get_double, float_label): Delete.
8696 (print_operand): Delete huge commented-out chunk. Use
8697 REAL_VALUE_TO_DECIMAL.
8698 * config/1750a/1750a-protos.h: Delete prototypes of deleted
8700 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8702 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8703 Use REAL_VALUE_TO_DECIMAL as ELF version does.
8704 * config/m88k/m88k.c (real_power_of_2_operand,
8705 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8706 real_extract out of the union; run the input through
8707 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8708 from that into the union.
8709 * config/pdp11/pdp11.c (output_move_double): Rearrange
8710 parentheses to make automatic indenter happy.
8712 * doc/tm.texi (Cross-compilation): Rename node to "Floating
8713 Point" and rewrite to describe current situation. Also adjust
8714 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8716 * doc/rtl.texi: Adjust cross reference.
8718 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8720 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8721 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8722 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8723 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8724 prevent use of sp as a reload register.
8725 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8726 non_acc_reg_operand.
8727 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8728 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8729 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8730 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8732 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8734 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8735 * cpplex.c (unterminated): Delete.
8736 (parse_string): No string literal may extend over multiple
8737 lines. Suppress the error when preprocessing assembly.
8738 * cppmain.c (scan_translation_unit): Strings are single-line.
8740 * doc/cpp.texi: Update to match.
8742 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8744 PR optimization/5854
8745 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8747 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8748 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8749 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8750 const0 if scratch register was not allocated.
8751 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8752 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8754 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8755 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8756 with GEN_INT (...) everywhere. Remove constraints in define_split
8758 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8759 require scratch register for setting 0 into regs/non-pushable memory.
8761 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8763 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8764 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8766 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
8768 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
8769 * cppinit.c (cpp_create_reader): On by default.
8770 (cpp_handle_option): Handle -W[no-]endif-labels.
8771 (cpp_post_options): Also enable if -pedantic.
8772 * cpplib.c (do_else): Use it.
8773 (do_endif): Likewise.
8774 * doc/cppopts.texi: Document new option.
8775 * doc/invoke.texi: Document new option.
8777 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
8779 * config/i386/i386.c, config/i386/i386.md: Change all occurences
8780 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8782 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8784 * flow.c (calculate_global_regs_live): Clear aux fields of
8787 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8789 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8790 REG or MEM subregs, pass rtx * instead of rtx to it.
8791 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8792 rtx * instead of rtx to alter_subreg.
8793 * config/m32r/m32r.c (gen_split_move_double): Likewise.
8794 * config/pj/pj.c (pj_output_rval): Likewise.
8796 2002-03-22 Richard Henderson <rth@redhat.com>
8799 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8800 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8801 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8802 (ia64_expand_prologue): Look at int_regs, not words, for number
8803 of incomming int regs.
8805 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
8807 * expr.c (expand_expr): A RESULT_DECL is part of a call.
8809 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
8811 * toplev.c (flag_loop_optimize, flag_crossjumping):
8812 New static variables.
8813 (rest_of_compilation): Conditionalize crossjumping and
8815 (parse_options_and_default_flags): Default loop_optimize and
8817 (lang_independent_options): Add -fcrossjumping and -floop-optimize
8818 * invoke.texi (crossjumping, loop-optimize): Document.
8820 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8822 * real.c (eiisneg): Move outside #ifdef NANS.
8824 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
8826 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8827 frequencies match; avoid match on different loop depths.
8828 (try_crossjump_to_bb): Kill tests that no longer brings time
8830 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8832 (split_edge): Likewise.
8834 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8837 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8838 * cfgrtl.c: Include insn-config.h
8839 (split_block) Dirtify block in presence of conditional execution
8841 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8843 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8844 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8845 (function_arg): Constify CUMULATIVE_ARGS.
8846 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8847 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8848 (UNITS_PER_DOUBLE): New macro.
8849 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
8850 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
8851 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
8852 fp_regs and stack_words.
8853 (EABI_FLOAT_VARARGS_P): New macro.
8854 * config/mips/mips.c (struct mips_arg_info): New.
8855 (mips_arg_info): New function.
8856 (function_arg_advance): Use it. Add adjustment instructions here
8857 rather than in function_arg.
8858 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
8859 for VOIDmode at the beginning of the function.
8860 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
8861 (function_arg_pass_by_reference): Likewise.
8862 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8863 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8864 (mips_va_start): Likewise. Use the new stack_words field of
8865 CUMULATIVE_ARGS to set up overflow area. Reformat.
8866 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
8867 doubles and other types, aligning the overflow pointer for non-doubles
8868 too. Remove some code duplication. Replace hard-coded constants.
8870 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8872 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8873 (CLASS_UNITS): Undefine.
8874 (CLASS_MAX_NREGS): Use FP_INC.
8875 * config/mips/mips.c (compute_frame_size): Likewise.
8876 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8878 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8880 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8881 prototype, and handle lexing numbers and identifiers.
8882 (parse_identifier): Update to new form of parse_slow.
8883 (parse_number): Fast path only, use parse_slow otherwise.
8884 (_cpp_lex_direct): Update calls to parse_number.
8886 2002-03-21 DJ Delorie <dj@redhat.com>
8888 * bb-reorder.c (make_reorder_chain_1): Protect against
8889 when redundant edges are omitted.
8890 * predict.c (dump_prediction): Likewise.
8892 2002-03-21 Richard Henderson <rth@redhat.com>
8895 * fixinc/inclhack.def (solaris_stdio_tag): New.
8896 * fixinc/fixincl.x: Regenerate.
8898 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8901 * c-typeck.c (process_init_element): Flag non-static
8902 initialization of a flexible array member as illegal.
8904 2002-03-22 Alan Modra <amodra@bigpond.net.au>
8906 * config/rs6000/t-linux64: New.
8907 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8908 t-ppccomm. Use t-rs6000 and t-linux64.
8909 (powerpc64-*-gnu* <tmake_file>): Likewise.
8910 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8911 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8912 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8914 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
8916 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8917 flag_really_no_inline instead of optimize == 0.
8919 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8921 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8923 * flags.h (flag_really_no_inline): New.
8925 * c-common.c (c_common_post_options): Initialize
8926 flag_really_no_inline.
8928 * toplev.c (flag_really_no_inline): New.
8930 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8932 * config/avr/avr.md (length): Fix length computation for
8933 conditional branches.
8935 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
8937 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8938 sdbout.o, profile.o): Update.
8939 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8941 * c-common.h (gettags): Move here from tree.h.
8942 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8943 insert_block, getdecls, kept_level_p, global_bindings_p): New.
8944 * dbxout.c (dbxout_init): Use getdecls langhook.
8945 * expr.c (expand_expr): Use insert_block langhook.
8946 * fold-const.c: Include langhooks.h.
8947 (fold_range_test, fold_binary_op_with_conditional_arg,
8948 fold): Use global_bindings_p langhook.
8949 * integrate.c (expand_inline_function): Use insert_block langhook.
8950 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8951 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8952 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8953 LANG_HOOKS_GETDECLS): New.
8954 (LANG_HOOKS_INITIALIZER): Update.
8955 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8957 * langhooks.h (struct lang_hooks_for_decls): New.
8958 (struct lang_hooks): Update.
8959 * profile.c: Include langhooks.h.
8960 (output_func_start_profiler): Use new langhooks.
8961 * sdbout.c: Include langhooks.h.
8962 (sdbout_init, sdbout_finish): Use getdecls langhook.
8963 * stmt.c: Include langhooks.h.
8964 (expand_fixup, fixup_gotos): Use new langhooks.
8965 * stor-layout.c: Include langhooks.h.
8966 (variable_size): Use global_bindings_p langhook.
8967 * toplev.c (compile_file): Use getdecls langhook.
8968 * tree-inline.c (remap_block): Use insert_block langhook.
8969 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8970 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8972 2002-03-21 Richard Henderson <rth@redhat.com>
8974 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8975 constants in .data when -fpic.
8977 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8979 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8982 2002-03-21 Tom Tromey <tromey@redhat.com>
8984 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
8986 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8988 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8990 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8992 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8993 Richard Henderson <rth@redhat.com>
8996 * c-common.c (c_expand_expr): Preserve result of a statement
8997 expression if needed.
8999 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9002 * genrecog.c (maybe_both_true_mode): Remove.
9003 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9004 * machmode.def (Pmode): Likewise.
9006 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
9008 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9009 (nonlocal_mentioned_p_1): New function.
9010 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9011 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9012 (mark_constant_function): Recognize pure functions.
9013 * rtl.h (global_reg_mentioned_p): New prototype.
9014 * rtlanal.c (global_reg_mentioned_p,
9015 global_reg_mentioned_p_1): New function.
9017 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9019 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9021 * fixinc/fixincl.x: Regenerate.
9023 2002-03-20 Jason Merrill <jason@redhat.com>
9025 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9027 2002-03-20 Michael Meissner <meissner@redhat.com>
9029 * doc/invoke.texi (Optimize Options): Document that -O2 sets
9032 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9034 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9035 ".literal_position" directive before the constant pool.
9037 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9039 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9040 Add Craig Rodrigues.
9041 Add Brad Lucier to testers.
9043 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9046 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9048 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9049 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9050 instead of insn_extract.
9052 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9055 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9057 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9058 stmt if some case has been output.
9060 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9063 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9064 movsfcc_1, movdfcc_1): Add %O2.
9065 * config/i386/i386.c (print_operand): Handle %ON.
9066 Print . before float condition codes in Sun as cmov syntax.
9067 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9068 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9071 2002-03-20 Philip Blundell <pb@nexus.co.uk>
9073 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9074 return instruction if PC was popped.
9076 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9078 * config/xtensa/xtensa.md: Remove unused type attributes.
9079 (adddi_carry, subddi_carry): Change type attribute to "multi".
9081 2002-03-19 Dale Johannesen <dalej@apple.com>
9083 PR optimization/5999, middle-end/5731
9084 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9085 multiplications by reciprocals.
9087 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
9089 * Makefile.in: Update.
9090 * c-common.c: Include langhooks.h.
9091 (inline_forbidden_p): Use new hook.
9092 * diagnostic.c: Include langhooks.h.
9093 (format_with_decl, announce_function,
9094 default_print_error_function): Use new hook.
9095 * dwarf2out.c (dwarf2_name): Use new hook.
9096 * function.c: Include langhooks.h.
9097 (init_function_start): Use new hook.
9098 * langhooks-def.h (lhd_decl_printable_name): New.
9099 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9100 (LANGHOOKS_INITIALIZER): Update.
9101 * langhooks.c (lhd_decl_printable_name): New.
9102 * langhooks.h (struct lang_hooks): New hook.
9103 * toplev.c (decl_name, decl_printable_name): Remove.
9104 (open_dump_file): Use new hook.
9105 (process_options): Remove old hook.
9106 * tree.h (decl_printable_name): Remove.
9108 * objc-act.c (objc_init): Remove old hook.
9109 (objc_printable_name): Export.
9110 * objc-act.h (objc_printable_name): New.
9111 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9113 2002-03-19 Jim Blandy <jimb@redhat.com>
9115 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9116 the start_source_file debug hook, not the current line number.
9118 2002-03-19 Richard Henderson <rth@redhat.com>
9120 * flow.c (EH_USES): Provide default.
9121 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9122 * doc/tm.texi (EH_USES): New.
9124 * config/ia64/ia64.c (ia64_eh_uses): New.
9125 * config/ia64/ia64-protos.h: Update.
9126 * config/ia64/ia64.h (EH_USES): New.
9128 2002-03-19 Richard Henderson <rth@redhat.com>
9130 * varasm.c (output_constant_def): Fix stupid typo.
9132 2002-03-19 Richard Henderson <rth@redhat.com>
9135 * except.c (current_function_has_exception_handlers): New.
9136 * except.h: Declare it.
9137 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9138 Combine tests that disable all sibcalls for the function.
9140 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
9142 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9145 2002-03-19 Richard Henderson <rth@redhat.com>
9148 * config/ia64/ia64.c: Revert 2002-03-01 patch.
9149 * config/ia64/ia64.h (INIT_EXPANDERS): New.
9151 2002-03-19 Jim Blandy <jimb@redhat.com>
9153 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9154 name, even if the replacement list contains no tokens, as required
9157 2002-03-19 Jason Merrill <jason@redhat.com>
9159 * varasm.c (globalize_decl): Get the name from the RTL, not
9160 DECL_ASSEMBLER_NAME.
9162 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9164 2002-03-19 Bob Wilson <bob.wilson@acm.org>
9166 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9167 subdi_carry): Define.
9169 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9171 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9172 about -fpic/-fPIC if extra_warnings set.
9174 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9176 * expr.c (expand_expr): Sign-extend CONST_INT generated from
9177 TREE_STRING_POINTER.
9178 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9180 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9182 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9183 in favor of SP if FRAME_POINTER_REQUIRED is false.
9185 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
9187 * emit-rtl.c (gen_int_mode): New function.
9188 * rtl.h: Prototype for it.
9189 * combine.c (make_extraction, simplify_comparison), expmed.c
9190 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9191 (convert_modes, store_field), optabs.c (expand_fix),
9192 simplify-rtx.c (neg_const_int, simplify_unary_real),
9194 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9195 Use it instead of GEN_INT (trunc_int_for_mode (...)).
9197 2002-03-19 Jakub Jelinek <jakub@redhat.com>
9200 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9201 convert_parm_for_inlining.
9202 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9204 * langhooks-def.h: Likewise.
9205 * objc/objc-lang.c: Likewise.
9206 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9208 * tree-inline.c (initialize_inlined_parameters):
9209 Call convert_parm_for_inlining lang hook if needed.
9210 * c-typeck.c (c_convert_parm_for_inlining): New function.
9211 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9213 2002-03-18 Mark Mitchell <mark@codesourcery.com>
9215 * calls.c (precompute_arguments): Do not assume that temporaries
9216 can be destroyed after expanding the argument.
9217 (expand_call): Likewise.
9219 2002-03-15 Eric Christopher <echristo@redhat.com>
9221 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9222 Fix register preference on last change.
9223 * config/mips/mips.c (mips_return_in_memory): New function.
9224 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9225 * config/mips/mips-protos.h: Declare.
9226 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9227 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9229 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
9231 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9233 (anddi3, iorsi3): Likewise.
9235 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9236 use %gprel for symbols that are going to be placed in linkonce
9239 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9240 RETURN_ADDRESS_POINTER_REGNUM to $ra.
9241 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9242 not needed. Disregard leaf_function_p().
9243 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9244 mips16 frame pointer.
9245 * config/mips/mips.md (store ra): Only to small SP offsets.
9246 2001-08-22 Graham Stott <grahams@redhat.com>
9247 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9248 return a REG rtx for the return address register.
9250 2002-03-18 Bob Wilson <bob.wilson@acm.org>
9252 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9253 constant-pool addresses as "mode-dependent".
9254 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9256 2002-03-18 Jakub Jelinek <jakub@redhat.com>
9259 * expr.c (emit_group_load): Use extract_bit_field if
9260 needed for CONCAT arguments.
9262 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
9265 * arm.md (tablejump): Make this a define_expand. For PIC add the
9266 offset to the base of the table.
9267 (thumb_tablejump): Matcher for Thumb tablejump insn.
9268 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9269 as the difference of two labels.
9270 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9271 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9273 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9274 * arm.c (get_jump_table_size): If the table is not in the text
9275 section, return zero.
9277 2002-03-18 Bernd Schmidt <bernds@redhat.com>
9279 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9281 (arm_reload_out_hi): Use gen_lowpart instead of
9282 gen_rtx_SUBREG to access QImode components.
9283 * config/arm/arm.md: Disable zero_extend split for QImode
9284 subregs in BIG_ENDIAN mode.
9285 (storehi_bigend): Match use of least significant byte.
9286 (storeinthi): Remove extraneous SUBREG.
9287 Add missing construction of operands[2].
9288 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9289 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9290 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9292 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
9294 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9297 2002-03-17 Richard Henderson <rth@redhat.com>
9299 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9302 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9304 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9305 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9307 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9309 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9311 * predict.c (estimate_bb_frequencies): Delete unused variables.
9313 2002-03-17 Richard Henderson <rth@redhat.com>
9315 * config/ia64/ia64.c (ia64_attribute_table): Move before
9316 targetm definition. Make static.
9318 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
9320 * c-common.h (yyparse, c_common_parse_file): New.
9321 * c-lang.c: Include c-common.h.
9322 (LANG_HOOKS_PARSE_FILE): Redefine.
9323 * c-lex.c: Include c-common.h.
9324 (yyparse): Rename c_common_parse_file. Call yyparse.
9325 * c-parse.in (yyparse): Remove macro.
9326 * c-tree.h (yyparse_1): Remove.
9327 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9328 (LANG_HOOKS_INITIALIZER): Update.
9329 * langhooks.h (struct lang_hoooks): New hook parse_file.
9330 * toplev.c (compile_file): Use parse_file hook.
9331 * tree.h (yyparse): Remove.
9332 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9334 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9336 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9337 float_truncate, not fix.
9338 ("*truncdfsf2_real"): Ditto.
9339 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9341 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9343 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
9345 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9346 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
9347 where appropriate. Make the second reference to
9348 leaf_function_p a function call, as intended. Reindented.
9350 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9351 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9353 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9354 add register to non-constant into sp.
9356 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9357 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9358 (mips16_gp_pseudo_rtx): Lose.
9359 (INIT_EXPANDERS): Deleted.
9360 * config/mips/mips.c (mips_init_machine_status): New.
9361 (mips_free_machine_status): New.
9362 (mips_mark_machine_status): New.
9363 (override_options): Set them.
9364 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9365 (struct machine_function): ... new. Replaced all references.
9366 (mips_add_gc_roots): Don't mark them.
9367 (embedded_pic_fnaddr_reg): New, extracted from...
9368 (embedded_pic_offset): ... here.
9369 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9372 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9374 * cppinit.c: Revert -MD removal.
9376 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9378 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9379 soft registers by default for 68HC12.
9380 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9381 when compiling with -fomit-frame-pointer.
9382 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9383 (expand_epilogue): Likewise.
9384 (m68hc11_gen_rotate): Use exg when rotating by 8.
9386 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9388 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9389 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9390 (splits): Remove unused add splits.
9391 ("*addhi3_68hc12"): Tune constraints.
9392 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9393 constant fits in 8-bits and D is dead use abx/aby instructions.
9394 ("*addhi3"): Remove extern declaration of ix_reg.
9395 ("*subsi3"): Optimize and provide new split.
9396 ("subhi3"): Cleanup.
9397 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9398 (arith splits): For 68hc12 save the address register on the stack
9399 and do the arithmetic operation with a pop.
9401 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9403 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9404 allocating QImode in address registers.
9405 ("*movqi_m68hc11"): Likewise.
9407 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9409 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9411 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9413 * cppinit.c (print_help): Display -MD and -MMD.
9414 Don't display usage string. Update assertion syntax and
9416 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9417 (cpp_handle_option): Update.
9419 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9421 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9422 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9423 and define it so that regardless of target CPU size,
9424 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9425 of "int" rather than "long."
9427 2002-03-15 Richard Henderson <rth@redhat.com>
9429 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9432 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9434 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9435 ("tstqi" split): Avoid using memory for tstqi on address register.
9436 (splits): Remove constraints.
9437 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9438 ("cmpdf", "cmpsf"): Remove since not used.
9439 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9440 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9442 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9444 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9445 ("neghi2"): Tighten constraints.
9446 ("one_cmplsi2"): Optimize and simplify split.
9447 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9449 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9451 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9452 and split of AND operation to clear the upper bits.
9453 ("*logicalsi3_zextqi"): Likewise.
9454 ("*logicallhi3_zexthi_ashift8"): Likewise.
9455 ("*logicalsi3_silshr16"): Likewise.
9456 ("logicalsi3_silshl16"): Likewise.
9457 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9459 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9461 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9462 (m68hc11_indirect_p): New function.
9463 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9464 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9466 (asm_print_register): Likewise.
9467 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9468 (m68hc11_indirect_p): Declare.
9469 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9470 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9471 (TARGET_SWITCHES): New option -mrelax.
9472 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9474 ("iorsi3", "xorsi3"): Likewise.
9475 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9476 ("*andhi3_mem"): New to handle destination in memory with bclr
9477 and a scratch register.
9478 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9479 ("*andhi3_const"): New when operand2 is constant.
9480 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9481 ("*andhi3_gen"): Cleanup of the old "andhi3".
9482 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9483 ("xorqi3"): Update constraints.
9485 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9487 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9488 for reg_equiv_memory_loc when the operand is a register that does
9489 not get a hard register (stack location).
9490 (tst_operand): After reload, accept all memory operand.
9491 (symbolic_memory_operand): Fix detection of symbolic references.
9492 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9493 accept symbols and any constant.
9495 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9497 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9498 note on the insn that sets the soft frame register.
9499 (must_parenthesize): ix and iy are also reserved names.
9500 (print_operand_address): One more place where parenthesis are required
9501 to avoid confusion with register names.
9502 (m68hc11_gen_movhi): Allow push of stack pointer.
9503 (m68hc11_check_z_replacement): Fix handling of parallel with a
9505 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9506 the replacement register is.
9507 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9508 and D8_REGS classes.
9509 (MODES_TIEABLE_P): All modes are tieable except QImode.
9511 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9513 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9514 (___subdi3): Likewise.
9515 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9516 (__map_data_section): Optimize 68hc11 case.
9518 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9520 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9521 than a shift to avoid adding a register with itself.
9522 (m68hc11_memory_move_cost): Take into account NO_REGS.
9523 (m68hc11_register_move_cost): Update and use memory move cost
9525 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9526 it gives more opportunities to cse to optimize.
9527 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9528 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9530 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9532 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9533 * c-common.def (CLEANUP_STMT): New tree node.
9534 * c-common.h (CLEANUP_DECL): New macro.
9535 (CLEANUP_EXPR): Likewise.
9536 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9537 * expr.c (expand_expr): Tidy.
9538 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9539 * tree-inline.c (initialize_inlined_parameters): Clean up
9540 new local variables.
9542 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9545 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9546 before movrXX only, use reg_overlap_mentioned_p.
9547 Only special case NE if just one insn can be generated.
9549 2002-03-15 Jason Merrill <jason@redhat.com>
9551 * varasm.c (assemble_variable): Call resolve_unique_section before
9552 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
9555 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9558 * arm.md (split pattern for thumb shiftable immediates): Add comment
9559 explaining non-obvious test.
9561 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9564 * arm.md (movaddr, movaddr_insn): Delete.
9566 2002-03-15 Jason Merrill <jason@redhat.com>
9568 * toplev.c (wrapup_global_declarations): Clarify variable handling.
9569 -fkeep-static-consts doesn't apply to comdats.
9571 2002-03-14 Richard Henderson <rth@redhat.com>
9573 * c-decl.c: Include c-pragma.h.
9574 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9575 (finish_function): Tidy.
9576 * c-pragma.c: Include c-common.h.
9577 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9578 (handle_pragma_weak): Use them.
9579 (init_pragma): Register pending_weaks.
9580 * c-pragma.h (maybe_apply_pragma_weak): Declare.
9581 * print-tree.c (print_node): Print DECL_WEAK.
9582 * varasm.c (mark_weak_decls): Remove.
9583 (remove_from_pending_weak_list): Remove.
9585 (asm_emit_uninitialised): Call globalize_decl for weak commons.
9586 (weak_decls): Make a tree_list.
9587 (declare_weak): Cons weak_decls directly.
9588 (globalize_decl): Remove weak_decls elements directly.
9589 (weak_finish): Simplify weak_decls walk. Don't weaken unused
9590 symbols. Don't pretend to handle aliases.
9591 (init_varasm_once): Update weak_decls registry.
9592 * Makefile.in: Update dependencies.
9594 2002-03-14 Richard Henderson <rth@redhat.com>
9597 * config/ia64/ia64.c: Include tm_p.h last.
9598 (gen_nop_type): Remove duplicate definition.
9599 (cycle_end_fill_slots): Set sched_data for second L slot.
9600 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9601 (nop_cycles_until): Fix typos.
9603 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9605 PR optimization/5891
9606 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9608 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9610 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9611 descriptors correctly.
9613 2002-03-14 Michael Meissner <meissner@redhat.com>
9615 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9616 100, allowing MAX_UNROLLED_INSNS to be overridden.
9618 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9621 * unroll.c (params.h): Include.
9622 (MAX_UNROLLED_INSNS): Delete, now in params.h.
9624 * doc/invoke.texi (--param max-unroll-insns): Document.
9626 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9628 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9630 * arm.md: Fix warnings about constraints in peepholes and splits.
9632 2002-03-14 Zack Weinberg <zack@codesourcery.com>
9634 * cpphash.h (struct lexer_state): Remove line_extension member.
9635 * cpplib.c (dequote_string, do_linemarker): New functions.
9636 (linemarker_dir): New data object.
9637 (DIRECTIVE_TABLE): No longer need to interpret #line in
9638 preprocessed source. Delete obsolete comment about return
9640 (end_directive, directive_diagnostics, _cpp_handle_directive):
9641 Don't muck with line_extension.
9642 (directive_diagnostics): No need to issue warnings for
9644 (_cpp_handle_directive): Issue warnings for linemarkers here,
9645 when appropriate. Dispatch linemarkers to do_linemarker, not
9647 (do_line): Code to handle linemarkers split out to do_linemarker.
9648 Convert escape sequences in filename argument, both places.
9650 * cppmacro.c (quote_string): Rename cpp_quote_string and
9651 export. All callers changed.
9652 * cpplib.h (cpp_quote_string): Prototype.
9653 * cppmain.c (print_line): Call cpp_quote_string on to_file
9656 * doc/cpp.texi: Document that escapes are now interpreted in
9657 #line and in linemarkers, and that non-printing characters are
9658 converted to octal escapes when linemarkers are generated.
9660 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
9662 * emit-rtl.c (try_split): Use delete_insns.
9663 * recog.c (split_all_insns): Fix terminating condition.
9665 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9666 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9669 * arm.c (arm_output_epilogue): Fix floating-point register save
9670 adjustment when using a frame pointer.
9672 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
9674 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9675 * config/mips/mips.c (compute_frame_size): Retrofit them here.
9676 (save_restore_insns, mips_expand_epilogue): And here.
9677 (build_mips16_call_stub): And here.
9678 (mips_function_value): Use the new macros to decide whether a single
9679 or complex float can be returned in floating-point registers. Return
9680 a parallel rtx in the complex case.
9682 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
9684 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9685 call after liveness analysis.
9687 * recog.c (split_insn): Use delete_insn_and_edges.
9689 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9690 instructions to have branch prediction notes.
9691 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9693 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
9695 * configure.in: Don't pass -Wno-long-long to a ADA compiler
9696 that doesn't support it.
9697 * configure: Regenerate.
9699 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9702 * config/sparc/sparc.md (normal_branch, inverted_branch,
9703 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9704 inverted_fp_branch): Adjust calls to output_cbranch.
9705 Set length attribute.
9706 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9707 output_v9branch. Set length attribute.
9708 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9710 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9711 (output_cbranch): Likewise. Handle far branches.
9712 (output_v9branch): Handle far branches.
9713 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9715 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9716 noov_compare64_op predicates.
9718 2002-03-13 Jason Merrill <jason@redhat.com>
9720 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9721 into the function and constify it.
9722 * gthr-dce.h, gthr-solaris.h: Likewise.
9724 2002-03-13 David Edelsohn <edelsohn@gnu.org>
9726 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9727 * config/rs6000/rs6000.c (rs6000_va_arg): Use
9728 std_expand_builtin_va_arg if not ABI_V4.
9730 2002-03-13 Jason Merrill <jason@redhat.com>
9732 * varasm.c (globalize_decl): New fn.
9733 (assemble_start_function): Use it.
9734 (asm_emit_uninitialized): Use it.
9735 (assemble_alias): Use it.
9736 (assemble_variable): Use it.
9738 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
9740 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9741 2002-03-12 internal visibility change.
9742 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9743 visibility into SYMBOL_REF_FLAG.
9745 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
9747 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9748 VOIDmode operand. Add compile-time optimization for constant results.
9750 2002-03-12 Jason Merrill <jason@redhat.com>
9752 * c-typeck.c (convert_for_assignment): Don't allow conversions
9753 between pointers and references. Only allow lvalues to convert to
9756 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
9758 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9759 before prologue, to avoid scheduling problems.
9761 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9763 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9764 (ELIMINABLE_REGS): Add sfp->sp.
9765 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9767 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9769 PR optimization/5892
9770 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9772 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9774 * loop.c (basic_induction_var): Don't call convert_modes if mode
9775 classes are different.
9777 2002-03-12 Richard Henderson <rth@redhat.com>
9779 PR optimization/5901
9780 * function.c (reposition_prologue_and_epilogue_notes): Position
9781 the markers after/before the last/first insn not deleted.
9783 2002-03-12 Richard Henderson <rth@redhat.com>
9785 PR optimization/5878
9786 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9787 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9788 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9790 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9791 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9792 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9794 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9795 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9796 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9797 also. Don't set it if not flag_pic.
9798 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9799 to be INVALID_REGNUM when not used.
9801 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
9803 * expmed.c (store_bit_field): Reset alias set for memory.
9804 (extract_bit_field): Same.
9806 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9808 * c-common.c (c_tree_code_type, c_tree_code_length,
9809 c_tree_code_name, add_c_tree_codes): Delete.
9810 * c-common.h (add_c_tree_codes): Delete.
9811 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9813 * c-objc-common.c (c_objc_common_init): Don't call
9814 add_c_tree_codes, instead set lang_unsafe_for_reeval.
9815 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9816 objc_tree_code_name, add_objc_tree_codes): Delete.
9817 (objc_init): Don't call add_objc_tree_codes.
9818 * objc/objc-lang.c (tree_code_type, tree_code_length,
9819 tree_code_name): Define.
9820 * toplev.c (lang_independent_init): Don't set
9821 tree_code_length[IDENTIFIER_NODE].
9822 * tree.c (tree_code_type, tree_code_length, tree_code_name):
9823 Delete definitions, moved to language front-ends.
9824 * tree.def (IDENTIFIER_NODE): Hardwire the length.
9825 * tree.h (tree_code_type, tree_code_length, tree_code_name):
9827 (tree_code_length): Change type to unsigned char.
9829 2002-03-12 Richard Henderson <rth@redhat.com>
9831 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9832 internal visibility change.
9834 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9836 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9837 validize_mem() instead of change_address to avoid clobbering
9840 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
9842 * c-lex.h (position_after_whitespace): Remove.
9844 2002-03-12 Jakub Jelinek <jakub@redhat.com>
9846 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9847 (lex_string): Use unsigned char pointers.
9849 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9851 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9852 is not a valid memory_operand.
9854 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9856 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9857 * config/xtensa/lib1funcs.asm: Fix copyright to include
9858 special case for libgcc files.
9859 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9860 (__divsi3): Likewise.
9861 (__umodsi3): Likewise.
9862 (__modsi3): Likewise.
9863 * config/xtensa/lib2funcs.S: Fix copyright to include
9864 special case for libgcc files.
9866 2002-03-12 Tom Rix <trix@redhat.com>
9868 * collect2.c (resolve_lib_name): Move outside of
9869 OBJECT_FORMAT_COFF ifdef.
9870 (ignore_library): Same.
9872 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9874 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9876 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9878 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9879 to function_section before writing out the constant pool.
9881 2002-03-12 David Edelsohn <edelsohn@gnu.org>
9883 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9885 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9887 2002-03-12 Alan Modra <amodra@bigpond.net.au>
9889 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9893 (cmpsi splitter): Likewise.
9894 (modsi3): Fail if <= 0.
9895 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9896 redundant test when HOST_BITS_PER_WIDE_INT != 32.
9897 (reg_or_sub_cint64_operand): Likewise.
9898 (num_insns_constant_wide): Optimize sign extension.
9899 (rs6000_legitimize_address): Likewise.
9901 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9903 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9904 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9906 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9908 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9909 address calculation.
9911 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9913 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9914 scratch register to DImode / TImode.
9915 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9916 register used does not overlap the target.
9918 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9920 * Makefile.in (debug.o): Depend on debug.h.
9921 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9922 * debug.c (do_nothing_debug_hooks): Likewise.
9923 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9924 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9925 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9926 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9927 * dwarfout.c (dwarf_debug_hooks): Likewise.
9928 * integrate.c (output_inline_function): Likewise.
9929 * objc/objc-act.c (synth_module_prologue): Likewise.
9930 * sdbout.c (sdb_debug_hooks): Likewise.
9931 * toplev.c (debug_hooks): Likewise.
9932 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9934 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9936 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9937 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9938 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9939 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9940 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9941 * defaults.h (POINTER_SIZE): Define.
9942 * doc/tm.texi (POINTER_SIZE): Document default.
9944 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9946 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9948 2002-03-11 Richard Henderson <rth@redhat.com>
9950 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9951 if rebuild_label_notes_after_reload.
9953 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
9955 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
9956 emit pic register load if "internal" visibility.
9957 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9958 (cris_expand_builtin_va_arg): Do all computations on trees.
9960 2002-03-11 Richard Henderson <rth@redhat.com>
9962 * rtlanal.c: Include recog.h.
9963 (keep_with_call_p): Fix thinko.
9964 * Makefile.in (rtlanal.o): Update dependencies.
9966 2002-03-11 Chris Meyer <cmeyer@gatan.com>
9968 * genflags.c (gen_insn): Use IS_VSPACE.
9969 * genoutput.c (output_insn_data): Likewise.
9970 (process_template): Likewise.
9972 2002-03-11 Richard Henderson <rth@redhat.com>
9974 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9976 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
9978 * Makefile.in: Update.
9979 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9980 Update documentation.
9981 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9982 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9984 2002-03-11 Zack Weinberg <zack@codesourcery.com>
9986 * Makefile.in: Give texi2pod its input file as a command line
9987 argument, not on stdin.
9989 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
9990 Daniel Berlin <dan@dberlin.org>
9992 C++ alias analysis improvement.
9993 * alias.c (record_component_aliases): Record aliases for base
9996 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
9998 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10000 2002-03-11 Douglas B Rupp <rupp@gnat.com>
10002 * toplev.c (vms_fopen): Remove, not needed.
10004 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10006 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10008 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10009 for FP, already done later.
10011 * toplev.c (debug_args): Add entry for VMS_DEBUG.
10012 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10014 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
10016 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10017 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10018 LARGEST_EXPONENT_IS_NORMAL for the given mode.
10019 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10020 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10021 (ediv, emul, eldexp, esqrt): Likewise.
10022 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10023 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10024 (saturate): New function.
10025 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10026 (make_nan): Use a saturation value instead of a NaN if
10027 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
10028 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10029 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
10030 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
10031 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10032 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10033 !ROUND_TOWARDS_ZERO.
10034 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10035 (ROUND_TOWARDS_ZERO): Document.
10037 2002-03-11 Andreas Jaeger <aj@suse.de>
10039 * cfg.c (dump_flow_info): Remove unused variable.
10041 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
10043 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10044 computations on trees.
10046 2002-03-10 Richard Henderson <rth@redhat.com>
10049 * reload.c (copy_replacements_1): New.
10050 (copy_replacements): Use it to recurse through the rtx.
10052 2002-03-10 Richard Henderson <rth@redhat.com>
10054 * loop.c (strength_reduce): Compute number of iterations as
10055 unsigned HOST_WIDE_INT.
10057 2002-03-10 Richard Henderson <rth@redhat.com>
10059 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10060 to move away from the end of the block.
10062 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
10064 PR preprocessor/5899
10065 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10067 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10069 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10071 * attribs.c (decl_attributes): Fix signed/unsigned warning.
10073 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
10075 * config/mmix/mmix.c: Improve comments.
10076 (mmix_target_asm_function_prologue): Drop variable
10077 empty_stack_frame. Don't allocate unused slot above fp.
10078 (mmix_target_asm_function_epilogue): Mirror prologue changes.
10079 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10080 brace in first column.
10081 (enum reg_class): Ditto.
10082 (FIRST_PARM_OFFSET): Now 0.
10083 (USER_LABEL_PREFIX): Remove #if 0:d definition.
10085 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10087 * combine.c (make_extraction): Fix error in last change.
10089 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10091 * c4x.c (c4x_fp_reglist): Const-ify.
10092 * cris.c (cris_print_operand): Likewise.
10093 * i386.c (ix86_va_arg): Likewise.
10094 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10095 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10096 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10097 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10098 * mcore.h (regno_reg_class): Likewise.
10099 * mips.c (gen_int_relational): Likewise.
10100 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10101 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10102 * pdp11.c (move_costs): Likewise.
10103 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10104 * s390.c (s390_branch_condition_mnemonic, regclass_map):
10106 * s390.h (regclass_map): Likewise.
10107 * sh.c (shift_amounts): Likewise.
10108 * sh.md (rotlsi3): Likewise.
10110 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10112 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10113 (ne0+5): Use new clobber to generate proper shift pattern.
10114 Patch by Michael Matz <matz@kde.org>.
10116 2002-03-09 Andreas Schwab <schwab@suse.de>
10118 * gcc.c (validate_all_switches): Also handle `%W{...}'.
10120 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10122 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10124 2002-03-09 Jakub Jelinek <jakub@redhat.com>
10127 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10128 even for non-representable constants.
10130 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10132 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10133 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10134 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10135 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10136 (pop_function_context): Compute MAY_SHARE parameter for
10138 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10139 (gen_mem_addressof): Call fixup_var_refs with new parm.
10141 * combine.c (make_extraction): Don't make extension of CONST_INT.
10143 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10145 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10146 in o32 and o64 ABIs.
10147 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10148 but getting fixed-size structs passed in registers regardless of
10149 padding in o32 and o64 ABIs.
10151 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10152 offset before loading address of argument passed by transparent
10155 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10157 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10159 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10161 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10162 marker such that registers after it are saved.
10164 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10166 * sparc.c (arith_4096_operand): Fix error in last change.
10168 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10170 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10171 defaults for MEABI.
10173 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10175 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10178 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10180 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10182 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
10184 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10185 removed; fix return value.
10186 * combine.c (combine_instructions): Dirtify blocks where we failed to
10187 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10188 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10190 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10192 * gcse.c (insert_insn_end_bb): Fix typo in last change.
10194 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
10196 * recog.c (peephole2_optimize): Re-distribute EH edges.
10198 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
10200 * expr.c (expand_expr): Use unsave lang hook.
10201 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10202 (LANG_HOOKS_INITIALIZER): Update.
10203 * langhooks.h (struct lang_hooks): New hook unsave.
10204 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10205 (unsave_expr_1): Remove unused lang_unsave_expr_now.
10206 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
10207 (unsave_expr_now): Remove.
10208 * tree.h (unsave_expr_now, lang_unsave,
10209 lang_unsave_expr_now): Remove.
10212 2002-03-08 Andreas Jaeger <aj@suse.de>
10214 * flow.c (propagate_block_delete_insn): Remove unused variable.
10216 2002-03-08 Kazu Hirata <kazu@hxi.com>
10218 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10219 insn length for memory load/store.
10221 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
10223 * doc/install.texi (--with-libiconv-prefix): Document.
10225 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
10227 * doc/sourcebuild.texi: Fix typo.
10229 2002-03-08 Jakub Jelinek <jakub@redhat.com>
10232 * builtins.c (std_expand_builtin_va_arg): Do all computations on
10235 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10237 * rtl.c (copy_most_rtx): Move from here ...
10238 * emit-rtl.c (copy_most_rtx): ... to here.
10240 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10242 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10243 SUBTARGET_CPP_SIZE_SPEC.
10244 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10246 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10248 2002-03-07 Matt Hiller <hiller@redhat.com>
10250 * gensupport.c (first_dir_md_include): Renamed from include;
10251 change all references.
10252 (last_dir_md_include): Renamed from last_include; change all
10254 (init_md_reader): Unconditionally initialize base_dir whether or
10255 not filename is a relative path.
10257 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
10259 * config/fp-bit.c (_unord_f2): Compile it in even if
10260 US_SOFTWARE_GOFAST is enabled.
10262 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10263 NULL_RTX. Set all HFmode operations as NULL_RTX.
10264 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10265 NULL_RTX, try reversing the comparison and the operands.
10267 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10269 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10270 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10273 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
10275 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10277 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10279 * basic-block.h (fixup_abnormal_edges): Declare.
10280 * reload1.c (fixup_abnormal_edges): New function.
10281 * reg-stack.c (convert_regs): Use it.
10283 * gcse.c (insert_insn_end_bb): Handle trapping insns.
10285 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10287 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
10289 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10290 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10291 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10292 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10293 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10294 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10295 unless x and y could be infinite.
10296 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10297 Check that the common type of both arguments is a real, even for
10298 targets without unordered comparisons. Allow an integer argument
10299 to be compared against a real.
10300 (expand_tree_builtin): Use expand_unordered_cmp.
10301 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10302 * cse.c (fold_rtx): Likewise. Fix indentation.
10303 * fold-const.c (fold_real_zero_addition_p): New.
10304 (fold): Use it, and the new HONOR_... macros.
10305 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10306 * jump.c (reversed_comparison_code_parts): After searching for
10307 the true comparison mode, use HONOR_NANS to decide whether it
10308 can be safely reversed.
10309 (reverse_condition_maybe_unordered): Remove IEEE check.
10310 * simplify-rtx.c (simplify_binary_operation): Use the new macros
10311 to decide which simplifications are valid. Allow the following
10312 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10313 and (a - -b) to (a + b).
10314 (simplify_relational_operation): Use HONOR_NANS.
10315 * doc/tm.texi: Document the MODE_HAS_... macros.
10317 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10319 * combine.c (simplify_comparison): If simplifying a logical shift
10320 right and compare with constant, force the comparison to unsigned.
10322 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
10324 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10326 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10328 (alt_reg_names): Remove % for vrsave.
10330 2002-03-06 Richard Henderson <rth@redhat.com>
10332 PR optimization/5844
10333 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
10334 if used indicates we've already emitted one copy of an operand.
10335 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10336 (gen_split): Supply a non-null used.
10338 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10340 * reload1.c (reload): Unshare all rtl after reload is done.
10342 * simplify-rtx.c (simplify_plus_minus): Do not abort,
10343 but simply fail if the expression is too complex to simplify.
10344 (simplify_gen_binary): Handle simplify_plus_minus failures.
10346 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
10348 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10349 consistently call delete_trivially_dead_insns after CSE and GCSE;
10350 fix DFI_life dumping; do jump threading after liveness; do crossjumping
10351 after liveness2; update comment in last crossjumping.
10352 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10354 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
10356 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10357 after completing fast dead code elimination.
10359 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10362 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
10364 * version.c: Fix misplaced leading blanks on first line.
10366 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10368 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10370 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10372 * cfgcleanup.c (mentions_nonequal_regs): New function.
10373 (thread_jump): Use it.
10374 * toplev.c (rest_of_compilation): Run jump threading after
10377 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10379 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10382 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10384 * predict.c (estimate_bb_frequencies): Do not reload the
10385 frequencies from notes.
10387 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10389 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10390 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10392 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10393 delete_noop_moves): Return indeger.
10394 * flow.c (ndead): New variable.
10395 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10396 BB argument; update callers.
10397 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10398 (life_analysis): Do not call purge_all_dead_edges.
10399 (update_life_info): Return number of deleted insns; print statistics.
10400 (update_life_info_in_dirty_blocks): likewise.
10401 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10402 return number of insns deleted.
10404 * cse.c: Include timevar.h
10405 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10406 iterate until stabilizes; print statistics; return number of killed
10408 * Makefile.in: (cse.o): Add timevar.h dependency
10409 * rtl.h (delete_trivially_dead_insns): New.
10410 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10411 * toplev.c (rest_of_compilation): Update callers.
10413 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10414 (try_optimize_cfg): Do not update liveness.
10415 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10416 removal stabilizes; use delete_trivially_dead_insns.
10418 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10420 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10422 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10423 callbacks when processing assembly language.
10425 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10427 * pa.h (ASM_FILE_END): Define.
10428 * som.h (ASM_FILE_END): Delete.
10430 * pa.c (function_arg): Don't pass floats in general registers in
10431 indirect calls if TARGET_ELF32.
10433 2002-03-05 Richard Henderson <rth@redhat.com>
10435 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10437 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
10439 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10441 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10443 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10444 -r command line. Don't hide any symbols if not building
10447 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
10449 * cfg.c (dump_flow_info): Warn about profile mismatches.
10450 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10451 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10453 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10455 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10456 wide volatile memory by parts.
10458 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10460 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10463 2002-03-05 Richard Henderson <rth@redhat.com>
10465 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10467 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10469 * toplev.c (documented_lang_options): Document more
10470 language-specific options.
10471 * doc/invoke.texi (Warning Options): Correct documentation for
10472 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10473 * c-decl.c (c_decode_option): Use a table to handle warning options.
10475 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
10477 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10478 parameter to mmix_encode_section_info.
10479 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10480 relocatably. Always produce ELF, not mmo if linking relocatably.
10481 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10482 first is non-zero, don't add symbol prefix.
10483 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10484 prototype accordingly.
10486 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10488 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10490 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10492 * configure.in: Increase required makeinfo version to 4.1.
10493 * configure: Regenerate.
10495 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10497 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10500 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10502 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10503 * doc/invoke.texi: Fix @math uses.
10505 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10507 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10510 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10512 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10513 (powerpc-*-eabisimaltivec*): Same.
10515 * config/rs6000/t-ppcendian: New.
10517 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10519 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10520 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10521 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10523 2002-03-03 Richard Henderson <rth@redhat.com>
10525 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10527 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10529 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10530 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10531 tree.c, config/m68k/m68k.c:
10532 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10533 REAL_ARITHMETIC blocks unconditional. Delete some further
10534 #ifdef blocks predicated on REAL_ARITHMETIC.
10535 * flags.h, toplev.c: Delete remaining references to
10536 flag_pretend_float.
10538 * doc/invoke.texi: Remove documentation of -fpretend-float.
10539 * doc/tm.texi: Describe the various REAL_* macros as provided by
10540 real.h, not by the target configuration files.
10542 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10543 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10544 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10545 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10546 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10547 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10548 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10549 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10550 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10551 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10552 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10553 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10554 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10555 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10556 config/xtensa/xtensa.h:
10557 Do not define, undefine, or mention in comments any of
10558 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10559 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10560 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10561 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10562 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10563 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10564 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10565 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10566 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10568 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10570 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10571 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10572 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10573 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10574 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10575 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10577 * defaults.h (BITS_PER_WORD): Define.
10578 * doc/tm.texi (BITS_PER_WORD): Document default value.
10580 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10581 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10582 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10584 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10586 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10587 lieu of explicit sizeof/sizeof.
10588 * i386.c (override_options, ix86_init_mmx_sse_builtins,
10589 ix86_expand_builtin): Likewise.
10590 * mips.c (mips_add_gc_roots): Likewise.
10591 * mmix.c (mmix_output_condition): Likewise.
10592 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10593 altivec_init_builtins): Likewise.
10594 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10595 * cppexp.c (Nsuff, parse_number): Likewise.
10596 * cppinit.c (builtin_array_end): Likewise.
10597 * gcc.c (n_default_compilers, process_command): Likewise.
10598 * genpreds.c (output_predicate_decls): Likewise.
10599 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10600 * lcm.c (N_ENTITIES): Likewise.
10601 * stor-layout.c (set_sizetype): Likewise.
10603 2002-03-03 Richard Henderson <rth@redhat.com>
10605 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10606 for types or labels.
10608 2002-03-03 Richard Henderson <rth@redhat.com>
10610 * c-decl.c (start_decl): Initialized variables are not common.
10612 2002-03-02 Per Bothner <per@bothner.com>
10614 * gcc.c (option_map): Suport new --bootclasspath option.
10615 --CLASSPATH is now just an alias for --classpath.
10617 2002-03-02 Richard Henderson <rth@redhat.com>
10619 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10620 load if "internal" visibility.
10621 * doc/extend.texi: Document visibility meanings.
10623 2002-03-02 Richard Henderson <rth@redhat.com>
10625 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10626 to functions as well.
10628 2002-03-02 Richard Henderson <rth@redhat.com>
10630 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10631 (handle_visibility_attribute): Don't call assemble_visibility.
10632 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10633 without asmspec. Invoke assemble_alias when needed.
10634 * varasm.c (maybe_assemble_visibility): New.
10635 (assemble_start_function, assemble_variable, assemble_alias): Use it.
10637 2002-03-02 Richard Henderson <rth@redhat.com>
10639 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10640 invoke ENCODE_SECTION_INFO with first call flag.
10642 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10643 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10644 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10645 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10646 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10647 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10648 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10649 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10650 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10651 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10652 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10653 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10654 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10655 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10656 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10657 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10658 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10659 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10660 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10661 config/sh/sh.h, config/sparc/sparc.h,
10662 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10663 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10664 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10665 FIRST argument. As needed, examine it and do nothing.
10667 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10668 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10669 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10671 * config/arm/t-pe (pe.o): Add dependencies.
10673 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10675 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10676 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10677 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10678 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10679 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10680 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10681 * defaults.h (BITS_PER_UNIT): Define.
10682 * doc/tm.texi (BITS_PER_UNIT): Document default value.
10684 2002-03-02 Kazu Hirata <kazu@hxi.com>
10686 * config/h8300/h8300-protos.h: Add a prototype for
10687 compute_a_shift_length.
10688 * config/h8300/h8300.c (h8300_asm_insn_count): New.
10689 (compute_a_shift_length): Likewise.
10690 (h8300_adjust_insn_length): Do not adjust insn length of shift
10692 * config/h8300/h8300.md (anonymous shift patterns): Use
10693 compute_a_shift_length.
10695 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10697 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10698 trunc_int_for_mode.
10700 * emit-rtl.c (offset_address): Call update_temp_slot_address.
10702 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10704 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10705 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10706 * flags.h (flag_zero_initialized_in_bss): Declare.
10707 * toplev.c (flag_zero_initialized_in_bss): New flag.
10708 (lang_independent_options): Add flag_zero_initialized_in_bss.
10709 * tree.c (initializer_zerop): New function.
10710 * tree.h (initializer_zerop): Declare.
10711 * varasm.c (assemble_variable): If we can emit bss, put zero
10712 initializers in the bss section.
10714 2002-03-02 Alan Modra <amodra@bigpond.net.au>
10716 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10717 like more than one symbol per .weak directive.
10719 2002-03-01 Richard Henderson <rth@redhat.com>
10721 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10722 adjust argument_pointer by pretend_args_size.
10723 (ia64_va_start): Adjust va_start address by -pretend_args_size.
10725 2002-03-01 Kazu Hirata <kazu@hxi.com>
10727 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10729 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
10731 * toplev.c (rest_of_compilation): Delete dead jumptables before
10733 * flow.c (delete_dead_jumptables): Make global.
10734 * rtl.h (delete_dead_jumptables): Declare.
10736 2002-03-01 David Edelsohn <edelsohn@gnu.org>
10738 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10739 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10740 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10742 2002-03-01 Kazu Hirata <kazu@hxi.com>
10744 * config/h8300/h8300-protos.h: Fix formatting.
10745 * config/h8300/h8300.c: Likewise.
10746 * config/h8300/h8300.h: Likewise.
10748 2002-03-01 Kazu Hirata <kazu@hxi.com>
10750 * config/h8300/h8300.c (print_operand): Support 16-bit
10751 constant addresses.
10752 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10754 2002-02-28 Richard Henderson <rth@redhat.com>
10756 * expmed.c (store_bit_field): Prevent generation of CONCATs;
10757 pun complex values as integers; use gen_lowpart instead of
10759 (extract_bit_field): Likewise.
10761 2002-03-01 Alan Modra <amodra@bigpond.net.au>
10762 David Edelsohn <edelsohn@gnu.org>
10764 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10765 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10766 (SUPPORTS_WEAK): Likewise.
10767 * output.h (add_weak): Add tree param.
10768 * varasm.c (add_weak): Likewise. Save decl.
10769 (struct weak_syms): Add decl field.
10770 (mark_weak_decls): New function.
10771 (init_varasm_once): ggc_add_root mark_weak_decls.
10772 (assemble_start_function): Use ASM_WEAKEN_DECL.
10773 (assemble_variable): Likewise.
10774 (assemble_alias): Likewise.
10775 (declare_weak): Pass decl to add_weak.
10776 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10777 (remove_from_pending_weak_list): Declare and define for
10779 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10780 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10781 * defaults.h (SUPPORTS_WEAK): Likewise.
10782 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10783 .weak for code sym. Do emit .size for descriptor sym.
10784 (ASM_DECLARE_FUNCTION_SIZE): Define.
10785 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10786 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
10787 .lglobl unless TARGET_XCOFF. Formatting fixes.
10788 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10789 .weak for code sym.
10790 (HANDLE_PRAGMA_WEAK): Remove.
10791 (ASM_WEAKEN_LABEL): Remove.
10792 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10794 2002-03-01 Jason Merrill <jason@redhat.com>
10796 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10797 (TARGET_EXPR_CLEANUP): New macro.
10799 2002-02-28 Steve Ellcey <sje@cup.hp.com>
10801 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10802 to take ptr_extend into account as third type of extension.
10803 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10804 fields used by SUBREG_PROMOTED_UNSIGNED_P.
10805 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10806 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10807 * calls.c (precompute_arguments): Use new macro.
10808 (expand_call): Ditto.
10809 * combine.c (nonzero_bits): Ditto.
10810 (record_promoted_value): Ditto.
10811 * expr.c (store_expr): Ditto.
10812 (expand_expr): Ditto.
10813 * function.c (assign_parms): Ditto.
10815 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
10817 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10818 override -shared and -shared-libgcc.
10820 2002-02-28 David O'Brien <obrien@FreeBSD.org>
10822 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10824 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
10827 2002-02-28 Richard Henderson <rth@redhat.com>
10829 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10830 4 cycle latency from MM producers.
10831 (ia64_internal_sched_reorder): Likewise with pipeline flush.
10833 2002-02-28 Jakub Jelinek <jakub@redhat.com>
10835 * mklibgcc.in: Don't use GNU make extension.
10837 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10839 * c-parse.in (STATIC): New terminal.
10840 (scspec): New non-terminal. Update productions accordingly.
10841 (program): Remove bogus ifc / end ifc.
10842 (array_declarator): Simplify production using STATIC.
10844 2002-02-28 Jim Meyering <meyering@lucent.com>
10846 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10847 \a still means TARGET_BELL.
10849 2002-02-28 Richard Henderson <rth@redhat.com>
10851 * haifa-sched.c (sched_emit_insn): New.
10852 (schedule_block): Use last_scheduled_insn to track last insn.
10853 * sched-int.h (sched_emit_insn): Prototype.
10854 * config/ia64/ia64.c (last_issued): Remove.
10855 (ia64_variable_issue): Don't set it.
10856 (nop_cycles_until): Use sched_emit_insn.
10858 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
10860 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10861 extended constants.
10863 2002-02-28 Kazu Hirata <kazu@hxi.com>
10865 * config/h8300/h8300.c: Fix formatting.
10866 * config/h8300/h8300.h: Likewise.
10868 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
10870 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10871 which may overwrite the high byte of the frame pointer.
10873 2002-02-28 Bo Thorsen <bo@suse.de>
10875 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10876 (STARTFILE_SPEC): Add 64 bit files.
10877 (ENDFILE_SPEC): Likewise.
10879 2002-02-28 Jason Merrill <jason@redhat.com>
10881 * c-decl.c (finish_function): Only warn about missing return
10882 statement with -Wreturn-type.
10884 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
10886 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10888 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10889 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10891 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
10893 * basic-block.h (BB_REACHABLE): Renumber.
10894 (BB_DIRTY, BB_NEW): New flags.
10895 (clear_bb_flags): Declare.
10896 (update_life_info_in_dirty_blocks): Declare.
10897 * cfg.c (clear_bb_flags): New function.
10898 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10899 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10900 reorder_insns, emit_insn_after): Mark block as dirty.
10901 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10902 (update_life_info_in_dirty_blocks): New function.
10903 * recog.c (apply_change_group): Dirtify block.
10905 * cse.c (cse_insn): Reorder emitting of jump insn to keep
10907 * gcse.c (delete_null_pointer_checks): Likewise.
10909 * toplev.c (dump_file_index): Move cse2 after bp,
10911 (dump_file_info): Similary.
10912 (rest_of_compilation): Avoid most of CFG rebuilds;
10913 do first if converision after null pointer checks, do cse2
10914 after branch prediction; avoid full liveness rebuild after
10915 initializing subregs.
10916 * invoke.texi (-d options): Document -du, renumber.
10918 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10919 (notice_new_block): Do not set BB_UPDATE_LIFE.
10920 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10921 merge_blocks_move_successor_nojumps, merge_blocks,
10922 try_crossjump_to_edge): Likewise.
10923 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10924 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10925 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10926 (merge_of_block): Do not use life_data_ok.
10927 (find_if_case_1): Do not use SET_UPDATE_LIFE.
10928 (if_convert): Use BB_DIRTY mechanizm to update life.
10929 * lcm.c (optimize_mode_switching): Update
10930 update_life_info_in_dirty_blocks
10932 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10934 * Makefile.in (integrate.o): Update.
10935 * c-decl.c (copy_lang_decl): Rename.
10936 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10937 * integrate.c: Include langhooks.h.
10938 (copy_decl_for_inlining): Update to use langhook.
10939 * langhooks-def.h (lhd_do_nothing_t,
10940 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10941 (LANG_HOOKS_INITIALIZER): Update.
10942 * langhooks.c (lhd_do_nothing_t): New.
10943 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10944 * tree.h (copy_lang_decl): Remove.
10946 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10948 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
10950 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10951 POST_DEC, and POST_MODIFY.
10953 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10955 * c-typeck.c (digest_init): Remove unused parameter; all
10958 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
10960 * expmed.c (expand_shift): Correctly test for low part of a
10963 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10965 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10966 insn UIDs with insn addresses.
10968 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10970 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10971 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10972 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10973 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10974 gcc.c, toplev.c: Delete code implementing -traditional mode.
10976 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10977 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10978 Document removal of -traditional mode for compilation, and
10979 remove documentation only relevant to that mode.
10981 * config/nextstep.h, config/ptx4.h, config/svr4.h,
10982 config/convex/convex.h, config/d30v/d30v.h,
10983 config/i386/dgux.h, config/i386/osf1elf.h,
10984 config/i386/osfelf.h, config/i386/osfrose.h,
10985 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10986 config/m68k/hp310.h, config/m88k/dgux.h,
10987 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10988 config/m88k/m88k.h, config/m88k/openbsd.h,
10989 config/mips/abi64.h, config/mips/osfrose.h,
10990 config/mips/svr4-5.h, config/mips/svr4-t.h,
10991 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10992 config/stormy16/stormy16.h: Remove all references to
10993 -traditional from target specs. Delete all mention of the
10994 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
10995 delete a couple of commented-out definitions of
10996 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10999 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11000 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11002 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11004 * mklibgcc.in: Don't use \n in a line subject to
11005 interpretation by echo.
11007 2002-02-27 Graham Stott <grahams@redhat.com>
11009 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11012 * loop.c (prescan_loop): Handle PARALLEL.
11014 * unroll.c (loop_iterations): Return 0 if the add_val for
11017 * final.c (output_operand_lossage): Constify PFX_STR.
11019 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11021 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
11023 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11024 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11026 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
11028 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11030 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
11032 * cpplex.c (_cpp_lex_token): Handle directives in macro
11034 * cpplib.c (_cpp_handle_directive): Save and restore state
11035 if parsing macro args when entering a directive.
11036 * cppmacro.c (collect_args): No need to handle directives
11037 in macro arguments.
11038 (enter_macro_context, replace_args): Use the original macro
11039 definition in case it was redefined whilst collecting arguments.
11041 * cpp.texi: Update.
11043 2002-02-26 David Edelsohn <edelsohn@gnu.org>
11045 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11046 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11047 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11049 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11050 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11051 (load_toc_v4_PIC_2): Same.
11053 2002-02-26 Alan Modra <amodra@bigpond.net.au>
11055 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11057 2002-02-26 Richard Henderson <rth@redhat.com>
11059 * config/alpha/alpha.md (ashldi_se): Re-enable.
11061 2002-02-26 Richard Henderson <rth@redhat.com>
11063 * config/alpha/alpha.c (alpha_encode_section_info): Examine
11064 MODULE_LOCAL_P; improve commentary.
11066 2002-02-26 Zack Weinberg <zack@codesourcery.com>
11068 * doc/cpp.texi: Clarify documentation of relationship between
11069 #line and #include.
11071 2002-02-26 Kazu Hirata <kazu@hxi.com>
11073 * config/h8300/h8300-protos.h: Update the prototype for
11074 compute_logical_op_length. Add the prototype for
11075 compute_logical_op_cc.
11076 * config/h8300/h8300.c (compute_logical_op_length): Figure out
11077 code from operands.
11078 (compute_logical_op_cc): New.
11079 * config/h8300/h8300.md: Combine all the logical op patterns
11080 in HImode and SImode. Use compute_logical_op_cc.
11082 2002-02-26 Kelley Cook <kelleycook@comcast.net>
11084 * config/i386/i386.c (print_operand): Don't append ATT-style
11085 length suffixs to x87 opcodes when in Intel mode.
11087 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
11089 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11090 (init_emit_once): Update calls.
11091 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11092 (init_syntax_once): Prototype.
11094 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11096 * pa-linux.h (LIB_SPEC): Update definition.
11097 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11099 2002-02-26 Richard Henderson <rth@redhat.com>
11101 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11102 if we emitted a stop bit.
11104 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11106 * configure.in (libgcc_visibility): Substitute.
11107 * configure: Rebuilt.
11108 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11109 defined symbols .hidden.
11111 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11113 * attribs.c (c_common_attribute_table): Add visibility.
11114 (handle_visibility_attribute): New function.
11115 * varasm.c (assemble_visibility): New function.
11116 * output.h (assemble_visibility): Add prototype.
11117 * tree.h (MODULE_LOCAL_P): Define.
11118 * crtstuff.c (__dso_handle): Use visibility attribute.
11119 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11120 for MODULE_LOCAL_P symbols too.
11121 * config/ia64/ia64.c (ia64_encode_section_info): Handle
11122 MODULE_LOCAL_P symbols the same way as local symbols.
11123 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11124 into .sdata/.sbss by the user.
11125 * doc/extend.texi (Function Attributes): Document visibility
11128 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11131 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11132 STRING_CST initializer spanning the whole variable without
11134 If expand_expr returned MEM, don't use it.
11136 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
11138 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11139 generate a die for the lexical block.
11141 2002-02-26 Kazu Hirata <kazu@hxi.com>
11143 * config/h8300/h8300-protos.h: Add a prototype for
11144 compute_logical_op_length.
11145 * config/h8300/h8300.c (compute_logical_op_length): New.
11146 * config/h8300/h8300.md (anonymous logical patterns): Use
11147 compute_logical_op_length for length.
11149 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11151 * dwarf2out.c (modified_type_die): Do not call type_main_variant
11153 (gen_type_die): Same.
11155 * attribs.c (handle_vector_size_attribute): Set debug information.
11157 2002-02-26 Daniel Egger <degger@fhm.edu>
11159 * config/rs6000/rs6000.md: Swap define_insn attributes to
11160 fix incorrect generation of merge high instructions instead
11163 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11165 * c-typeck.c (really_start_incremental_init): Use
11166 bitsize_zero_node for vectors.
11168 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11170 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11171 ("*set_vrsave_internal"): Same.
11173 2002-02-25 Richard Henderson <rth@redhat.com>
11175 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11176 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
11178 2002-02-25 Jakub Jelinek <jakub@redhat.com>
11181 * config/i386/i386.c (ix86_return_pops_args): Only pop
11182 fake structure return argument if it was passed on the stack.
11184 2002-02-25 Jason Merrill <jason@redhat.com>
11186 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11189 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11191 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11192 link with shared_name only.
11193 * doc/invoke.texi (Link Options): Document new behavior.
11195 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11197 * c-typeck.c (push_init_level): Handle vectors.
11199 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11201 * config/sparc/sparc.c (const64_high_operand): Zero-extend
11202 operands of SPARC_SETHI_P.
11203 (input_operand): Likewise.
11204 (sparc_emit_set_const32): Likewise.
11205 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11206 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11207 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
11208 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11209 (movdi_insn_sp64_vis): Likewise.
11210 (movdi split, movdf split): Use SETHI32.
11211 * doc/md.texi: Document SPARC constraints L, M and N.
11213 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11215 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11216 ("*set_vrsave_internal"): use mfspr for Darwin.
11218 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11219 gen_get_vrsave_internal.
11221 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11223 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11225 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
11227 * cpplex.c (cpp_interpret_charconst): Get signedness or
11228 otherwise of wide character constants correct.
11229 * cppexp.c (lex): Get signedness of wide charconsts correct.
11231 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11233 * optabs.c (widen_operand): Only call convert_modes for
11234 promoted SUBREG if signedness matches.
11235 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11237 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11239 * cpplib.c (glue_header_name): Use local buffer to build up
11242 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11244 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11246 2002-02-23 Kazu Hirata <kazu@hxi.com>
11248 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11249 H8/300[HS] separately.
11250 * config/h8300/h8300.md: Remove the early clobber constraint
11251 from bit field patterns.
11253 2002-02-23 Kazu Hirata <kazu@hxi.com>
11255 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11257 (mulhisi3): Likewise.
11258 (umulqisi3): Likewise.
11259 (umulhisi3): Likewise.
11261 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11263 * cppinit.c (output_deps): Correct test for stdout output.
11264 (init_dependency_output): Cure warning.
11266 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11268 * expr.c (store_expr): When converting expression to promoted
11269 equivalent type, allow using SUBREG_REG of TARGET as the target
11270 of the expansion of EXP.
11271 * loop.c (basic_induction_var, case SUBREG): Always look inside.
11272 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11273 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11274 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11275 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11277 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
11279 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11280 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11281 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11283 2002-02-23 Jakub Jelinek <jakub@redhat.com>
11285 PR optimization/5747
11286 * loop.c (scan_loop): Update reg info if move_movables created new
11289 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11291 * gcc.c (init_gcc_spec): Revert last change.
11293 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11295 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11296 gpc_reg_operand constraint.
11298 2002-02-23 Alan Modra <amodra@bigpond.net.au>
11300 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11301 Simplify comparison of `low'.
11302 (add_operand): Fix formatting.
11303 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11304 (mask_operand): Disallow mask to wrap in 64-bit mode.
11305 (rs6000_stack_info): Remove redundant test setting push_p.
11306 (output_toc): Fix formatting.
11307 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11308 cc_reg_not_cr0_operand constraint.
11309 (booldi3, boolcdi3 splitters): Same.
11311 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
11313 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11315 2002-02-22 David Edelsohn <edelsohn@gnu.org>
11317 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11318 gcc invoked with -shared-libgcc.
11320 2002-02-22 Jakub Jelinek <jakub@redhat.com>
11323 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11324 decl if any of elements was TREE_USED.
11326 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
11328 * config/sparc/sol2.h: Don't include sys/mman.h.
11329 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11330 (arith_4096_operand): Don't throw high bits away.
11331 (const64_operand): Take sign extension of CONST_INTs into account.
11332 (const64_high_operand, sparc_emit_set_const32): Likewise.
11333 (GEN_HIGHINT64): Likewise.
11334 (sparc_emit_set_const64_quick1): Likewise.
11335 (const64_is_2insns): Likewise.
11336 (print_operand): Use trunc_int_for_mode for sign extension.
11337 * config/sparc/sparc.h (SMALL_INT32): Likewise.
11338 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11339 chars. Assume CONST_INT is already properly sign-extended.
11340 (movdi split): Sign-extend each SImode part.
11341 (andsi3 split): Don't mask high bits off, so that result
11342 remains properly sign-extend.
11343 (iorsi3 split): Likewise.
11344 (xorsi3 split): Likewise.
11346 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
11348 * fold-const.c (fold): Fix typo in comments.
11350 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11352 * Makefile.in (langhooks.o): Update dependencies.
11354 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11356 * langhooks.c: Include flags.h.
11358 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
11360 * testsuite/gcc.dg/attr-alwaysinline.c: New.
11362 * c-common.c (c_common_post_options): Set inline trees by
11365 * doc/extend.texi (Function Attributes): Document always_inline
11367 Update documentation about inlining when not optimizing.
11369 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11371 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11372 unless DECL_ALWAYS_INLINE.
11374 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11375 unless DECL_ALWAYS_INLINE.
11376 (c_disregard_inline_limits): Disregard if always_inline set.
11378 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11379 Disregard if always_inline set.
11380 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11381 unless DECL_ALWAYS_INLINE.
11383 * attribs.c (handle_always_inline_attribute): New.
11384 (c_common_attribute_table): Add always_inline.
11386 * config/rs6000/altivec.h: Add prototypes for builtins
11387 requiring the always_inline attribute.
11389 2002-02-21 Eric Christopher <echristo@redhat.com>
11391 * expmed.c (store_bit_field): Try to simplify the subreg
11392 before generating a new one when when the mode size of
11393 value is less than maxmode.
11395 2002-02-21 Richard Henderson <rth@redhat.com>
11397 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11398 than gen_rtx_PLUS to form the sum.
11399 * explow.c (force_reg): Rearrange to not allocate new pseudo
11400 when force_operand returns a register.
11401 * expr.c (expand_assignment): Allow offset_rtx expansion to
11402 return a sum. Do not force addresses into registers.
11403 (expand_expr): Likewise.
11404 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11405 to canonicalize arithmetic that didn't simpify.
11406 (simplify_plus_minus): New argument force; update
11407 all callers. Don't split CONST unless we can do something with it,
11408 and wouldn't lose the constness of the operands.
11410 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11411 that we generated earlier.
11413 2002-02-21 Tom Tromey <tromey@redhat.com>
11415 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11416 (output_line_info): Use constant `1', with a long explanatory
11418 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11420 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11422 * jump.c (redirect_jump): If old label has no UID, don't try to
11425 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11427 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11428 If input is constant, do shifts at compile time.
11430 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11432 * doc/extend.texi: Fix some more overfull hboxes.
11434 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11436 PR optimization/4994
11437 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11440 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11443 * expr.h (expand_and): Add mode argument.
11444 * expmed.c (expand_and): Add mode argument.
11445 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11446 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11447 * except.c (expand_builtin_extract_return_addr): Likewise.
11448 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11449 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11450 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11451 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11452 * config/c4x/c4x.md: Use GEN_INT (x) instead of
11453 gen_rtx (CONST_INT, VOIDmode, x).
11455 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11458 * stmt.c (warn_if_unused_value): Move side effects test once more.
11460 2002-02-20 Torbjorn Granlund <tege@swox.com>
11462 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11463 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11465 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
11467 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11468 SUBREG or ZERO_EXTEND.
11470 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
11472 * sh.h (current_function_anonymous_args): Remove.
11473 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11474 of current_function_varargs and current_function_stdarg is set.
11475 * sh.c (sh_expand_prologue): Check current_function_varargs /
11476 current_function_stdarg / TARGET_SH5 instead of
11477 current_function_anonymous_args.
11479 * sh64.h (TARGET_VERSION): Define.
11481 2002-02-20 David Edelsohn <edelsohn@gnu.org>
11483 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11484 VRSAVE_REGNO on TARGET_ALTIVEC.
11486 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11488 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11489 bits of SImode const_int.
11490 (includes_rshift_p): Likewise.
11491 (print_operand): Call mask_operand and mask64_operand with correct
11493 (rs6000_output_function_epilogue): Pad traceback table to word.
11494 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11495 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11496 mask64_operand with correct mode.
11497 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11499 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11502 * varasm.c (get_pool_constant_mark): New.
11503 * rtl.h (get_pool_constant_mark): Add prototype.
11504 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11505 be represented if it has not been output.
11507 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11509 * combine.c (do_SUBST): Sanity check substitutions of
11510 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11511 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11512 CONST_INT into its operand.
11513 (known_cond): Likewise, for ZERO_EXTEND.
11514 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11515 allow for simplification of wide modes. Reject CONST_INTs in
11516 ZERO_EXTEND when their actual mode is not given.
11518 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11520 * c-decl.c (pushdecl): If no global declaration is found for an
11521 extern declaration in block scope, try a limbo one.
11523 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11526 * c-common.c (pointer_int_sum): Moved from...
11527 * c-typeck.c (pointer_int_sum): ...here.
11528 * c-common.h (pointer_int_sum): Add prototype.
11530 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11533 * c-decl.c (duplicate_decls): Return 0 if issued error about
11536 2002-02-20 Roger Sayle <roger@eyesopen.com>
11537 Jakub Jelinek <jakub@redhat.com>
11540 * tree.c (host_integerp): Ensure that the constant integer is
11541 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11542 when pos is zero or non-zero respectively. Clarify comment.
11543 * c-format.c (check_format_info_recurse): Fix host_integerp
11544 usage; the pos argument should be zero when assigning to a
11545 signed HOST_WIDE_INT.
11547 2002-02-20 Richard Henderson <rth@redhat.com>
11549 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11550 of the operand, rather than assuming TImode.
11551 (ix86_expand_binop_builtin): Cope with commutative patterns
11552 using nonimmediate_operand for both operands.
11553 (ix86_expand_timode_binop_builtin): Likewise.
11554 (ix86_expand_store_builtin): Validate operand 1.
11555 (ix86_expand_unop1_builtin): Likewise.
11557 2002-02-20 Philip Blundell <philb@gnu.org>
11560 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11562 2002-02-20 Richard Henderson <rth@redhat.com>
11565 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11567 2002-02-20 Tom Tromey <tromey@redhat.com>
11569 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11570 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11571 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11572 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11573 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11576 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11578 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11579 for (const_int 0) in X not just INTVAL.
11581 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
11583 * doc/extend.texi: Avoid or reduce overfull hboxes.
11585 2002-02-20 Diego Novillo <dnovillo@redhat.com>
11587 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11588 operations if the field does not start at a mode boundary.
11590 2001-02-20 Joel Sherrill <joel@OARcorp.com>
11592 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11593 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11594 Also done for -Acpu and -Amachine.
11596 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
11598 * cppinit.c (init_dependency_output): Take deps output file
11599 from -o if none given with -MF. Suppress normal output.
11600 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11601 * doc/cpp.texi, doc/invoke.texi: Update.
11603 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11605 * toplev.c (output_quoted_string): Write unprintable
11606 characters with octal escapes.
11608 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11610 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11611 really_call_used[VRSAVE_REGNO] if not Altivec.
11613 2002-02-19 Alan Modra <amodra@bigpond.net.au>
11615 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11617 (constant_pool_expr_1): Fix formatting.
11618 (rs6000_legitimize_reload_address): Likewise.
11620 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11622 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11623 now that we have one.
11625 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11627 * tree.h (struct tree_common): Remove aux. Add unused_0 at
11628 end of first block of bitfields (which was only seven bits);
11629 rename dummy to unused_1; remove comment which is no longer true.
11631 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11633 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11635 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11638 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11642 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11643 arm_is_longcall_p rather than inspecting call-type cookie
11645 (call_value_insn) [TARGET_THUMB]: Likewise.
11647 2002-02-19 Graham Stott <grahams@redhat.com>
11649 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11651 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11653 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11654 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11655 (FP_SAVE_INLINE): Delete.
11657 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11658 * config/rs6000/eabi.asm: Remove ABI save restore routines.
11659 * config/rs6000/t-ppccomm: Build crtsavres.o.
11660 * config/rs6000/crtsavres.asm: New file.
11662 2002-02-19 Philip Blundell <philb@gnu.org>
11664 * config/arm/arm.c (use_return_insn): Don't reject interrupt
11666 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11667 (output_return_instruction): Allow interrupt functions to return with
11668 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
11669 (arm_expand_prologue): Subtract 4 before stacking LR in an
11670 interrupt function.
11672 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11674 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11675 decl, not just FUNCTION_DECL.
11676 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11677 (arm_assemble_integer): Likewise.
11678 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11681 2002-02-19 matthew green <mrg@eterna.com.au>
11683 * config.gcc (sparc-*-netbsdelf*): Enable target.
11684 (sparc64-*-netbsd*): New target.
11685 * config/sparc/netbsd-elf.h: New file.
11686 * config/sparc/t-netbsd64: New file.
11688 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11690 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11692 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
11694 * doc/invoke.texi: explicitly list the style guidelines that
11695 -Weffc++ checks for.
11697 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
11699 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11701 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
11704 * gcc.c (cpp_unique_options): Treat -o as indicating object file
11705 only if not -E. If -E, pass -o through to the preprocessor.
11707 2002-02-19 Kazu Hirata <kazu@hxi.com>
11709 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11710 register number with an appropriate macro.
11712 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11714 * doc/rtl.texi (Constants): Close @code tag.
11716 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
11718 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11719 ("mmx_uavgv4hi3"): Same.
11720 ("pmulhrwv4hi3"): Same.
11722 * tree-inline.c (walk_tree): Handle vectors.
11724 * c-common.c (constant_expression_warning): Handle vectors.
11725 (overflow_warning): Same.
11727 * sched-deps.c (sched_analyze_2): Handle vectors.
11729 * rtlanal.c (rtx_unstable_p): Handle vectors.
11730 (rtx_varies_p): Same.
11731 (count_occurrences): Same.
11732 (regs_set_between_p): Same.
11733 (modified_between_p): Same.
11734 (modified_in_p): Same.
11735 (volatile_insn_p): Same.
11736 (volatile_refs_p): Same.
11737 (side_effects_p): Same.
11738 (may_trap_p): Same.
11739 (inequality_comparisons_p): Same.
11740 (replace_regs): Same.
11741 (computed_jump_p_1): Same.
11743 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11745 (inner_mode_array): New.
11746 (copy_rtx): Handle vectors.
11747 (copy_most_rtx): Same.
11748 (rtx_equal_p): Same.
11749 (get_mode_alignment): Adjust for vectors.
11751 * resource.c (mark_referenced_resources): Handle vectors.
11752 (mark_set_resources): Same.
11754 * reload1.c (eliminate_regs): Handle vectors.
11755 (elimination_effects): Same.
11756 (scan_paradoxical_subregs): Same.
11758 * reload.c (subst_reg_equivs): Handle vectors.
11760 * regrename.c (scan_rtx): Handle vectors.
11762 * regclass.c (reg_scan_mark_refs): Handle vectors.
11764 * recog.c (find_single_use_1): Handle vectors.
11766 * local-alloc.c (equiv_init_varies_p): Handle vectors.
11767 (contains_replace_regs): Same.
11768 (memref_referenced_p): Same.
11770 * integrate.c (copy_rtx_and_substitute): Handle vectors.
11771 (subst_constants): Same.
11773 * genattrtab.c (attr_copy_rtx): Handle vectors.
11774 (encode_units_mask): Same.
11775 (clear_struct_flag): Same.
11776 (count_sub_rtxs): Same.
11778 * gcse.c (want_to_gcse_p): Handle vectors.
11779 (oprs_unchanged_p): Same.
11780 (hash_expr_1): Same.
11781 (oprs_not_set_p): Same.
11782 (expr_killed_p): Same.
11783 (compute_transp): Same.
11784 (store_ops_ok): Same.
11786 * function.c (purge_addressof_1): Do not allow paradoxical subregs
11788 (fixup_var_refs_1): Same.
11789 (instantiate_virtual_regs_1): Same.
11791 * fold-const.c (operand_equal_p): Handle vectors.
11793 (rtl_expr_nonnegative_p): Same.
11795 * flow.c (mark_used_regs): Handle vectors.
11797 * df.c (df_uses_record): Handle vectors.
11799 * cselib.c (cselib_subst_to_values): Handle vectors.
11800 (cselib_mem_conflict_p): Same.
11803 * cse.c (canon_reg): Handle vectors.
11805 (cse_process_notes): Same.
11806 (count_reg_usage): Same.
11807 (canon_hash): Same.
11809 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11811 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11813 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11814 (gen_rtx): Handle CONST_VECTOR.
11815 (gen_const_vector_0): New.
11816 (copy_rtx_if_shared): CONST_VECTORs can be shared.
11817 (reset_used_flags): Same.
11818 (copy_insn_1): Same.
11819 (initializer_constant_valid_p): Handle VECTOR_CST.
11821 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11823 * doc/rtl.texi (Constants): Document const_vector.
11824 (CONST0_RTX): Update for vectors.
11825 (RTL sharing): Same.
11827 * print-tree.c (print_node): Add case for VECTOR_CST.
11829 * tree.h (TREE_VECTOR_CST_ELTS): New.
11830 (struct tree_vector): New.
11831 (union tree_node): Add vector node.
11832 (build_vector): Add prototype.
11834 * tree.def (VECTOR_CST): New.
11836 * tree.c (build_vector): New.
11838 * expmed.c (make_tree): Handle CONST_VECTOR.
11840 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11841 (CONST_VECTOR_ELT): New.
11842 (CONST_VECTOR_NUNITS): New.
11844 * machmode.h (GET_MODE_INNER): New.
11845 (DEF_MACHMODE): Accept 8th arg.
11847 * machmode.def: Add 8th argument for vector inner mode.
11848 Add inner vector modes for vectors.
11850 * rtl.def (VEC_CONST): Remove.
11851 (CONST_VECTOR): New.
11853 * expr.c (clear_storage): Allow vectors.
11854 (is_zeros_p): Handle VECTOR_CST.
11856 * varasm.c (output_constant_pool): Handle vectors.
11857 (rtx_const): Add veclo and vechi fields.
11858 (kind): Add RTX_VECTOR.
11859 (decode_rtx_const): Add case for vector.
11861 * config/rs6000/rs6000-protos.h: Add zero_constant.
11863 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11864 constants. Force easy vector constants into memory.
11865 (easy_vector_constant): New.
11866 (emit_easy_vector_constant): New.
11867 (rs6000_legitimize_reload_address): Do not generate bad reloads on
11870 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11872 ("altivec_lvxl"): Same.
11873 (altivec_lvebx): Same.
11874 (altivec_lvehx): Same.
11875 (altivec_lvewx): Same.
11876 ("*movv4si_const0"): New.
11877 ("*movv4sf_const0"): New.
11878 ("*movv8hi_const0"): New.
11879 ("*movv16qi_const0"): New.
11881 2002-02-18 Kazu Hirata <kazu@hxi.com>
11883 * config/h8300/h8300.c (notice_update_cc): Use
11886 2002-02-18 Kazu Hirata <kazu@hxi.com>
11888 * config/h8300/h8300.md (divmod patterns): Change the
11889 constraints for operands[1] to register_operand.
11891 2002-02-18 Kazu Hirata <kazu@hxi.com>
11893 * config/h8300/h8300-protos.h: Remove the prototype for
11895 * config/h8300/h8300.c (p_operand): Remove.
11896 * config/h8300/h8300.md: Replace p_operand with
11899 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11901 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11903 (output_return_instruction): Allow use of LDR to unstack
11904 return addresss even for interrupt handlers or when
11905 interworking. If compiling for ARMv5, use interworking-safe
11906 return instructions by default. Remove duplicated code and
11907 lengthy "strcat" sequences.
11909 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11911 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11912 (LINK_EH_SPEC): Define.
11913 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11915 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11917 * config/s390/s390.c (s390_emit_prologue): Do not set the
11918 frame_related flag for call-clobbered registers.
11920 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
11922 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11923 (construct_container): Fix handling of SSE operands.
11924 (ix86_expand_builtin): Fix handling of 64bit pointers.
11925 (mmx_maskmovq_rex): New pattern.
11927 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
11929 * regrename.c (kill_set_value): Handle subregs properly.
11931 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
11933 * objc/objc-act.c (handle_impent): Remove leading '*'
11934 from objc_class_name.
11936 2002-02-17 Richard Henderson <rth@redhat.com>
11938 * config/alpha/alpha.c (some_small_symbolic_operand,
11939 some_small_symbolic_operand_1, split_small_symbolic_operand,
11940 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11941 Handle small SYMBOL_REFs anywhere, not just inside memories.
11942 * config/alpha/alpha-protos.h: Update.
11943 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11944 * config/alpha/alpha.md (small symbolic operand splitter): Update.
11946 2002-02-17 Roland McGrath <roland@frob.com>
11948 * config.gcc (powerpc-*-gnu-gnualtivec*,
11949 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11950 * config/rs6000/gnu.h: New file.
11951 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11952 Grok "gnu" in rs6000_abi_name.
11953 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11954 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11955 Grok -mcall-gnu analogous to -mcall-linux et al.
11956 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11957 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11958 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11960 2002-02-17 Jakub Jelinek <jakub@redhat.com>
11963 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11966 2002-02-17 Philipp Thomas <pthomas@suse.de>
11968 * config/cris/cris.h: Undefine STARTFILE_SPEC and
11969 ENDFILE_SPEC before (re)defining them.
11971 2002-02-17 Kazu Hirata <kazu@hxi.com>
11973 * config/h8300/h8300.c: Fix formatting.
11974 * config/h8300/h8300.h: Likewise.
11976 2002-02-17 Philipp Thomas <pthomas@suse.de>
11978 * doc/tm.texi: Explain why empty strings should not be
11979 marked for translation.
11981 2002-02-17 Philipp Thomas <pthomas@suse.de>
11983 * final.c (output_operand_lossage): Changed to accept
11984 printf style arguments. Change calls where necessary.
11985 * output.h (output_operand_lossage): Change declaration
11986 accordingly. Update copyright.
11987 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11988 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11989 Update copyright date where necessary.
11991 * config/i386/i386.c (print_operand): Likewise. Remove use of
11994 * config/cris/cris.c (cris_operand_lossage): Likewise.
11995 Rename parameter so that exgettext recognizes it as
11996 translatable message.
11997 (LOSE_AND_RETURN): Rename parameter to msgid.
11999 2002-02-17 Kazu Hirata <kazu@hxi.com>
12001 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12002 hard coded register number with an appropriate macro.
12003 (HARD_REGNO_MODE_OK): Likewise.
12004 (ARG_POINTER_REGNUM): Likewise.
12005 (STATIC_CHAIN_REGNUM): Likewise.
12006 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12007 * config/h8300/h8300.md (define_constants): Define more
12010 2002-02-17 Philipp Thomas <pthomas@suse.de>
12012 * config/i386/i386.h: Don't mark empty strings for translation.
12014 2002-02-16 H.J. Lu <hjl@gnu.org>
12016 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12018 2002-02-16 Zack Weinberg <zack@codesourcery.com>
12020 * cppinit.c (merge_include_chains): Check for brack being
12021 NULL before attempting to merge it with qtail.
12023 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12025 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12028 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12030 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12032 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12034 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12035 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12036 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12038 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12040 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12041 now only if !TARGET_FIX.
12042 (*movsi_nt_vms_fix): New pattern.
12044 2002-02-16 Douglas B Rupp <rupp@gnat.com>
12046 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12047 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12048 (alpha_sa_mask, alpha_sa_size): Reflect above change.
12049 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12050 (alpha_start_function, alpha_expand_epilogue): Likewise.
12051 (unicosmk_gen_dsib): Likewise.
12053 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12055 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12057 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
12059 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12060 check_and_change_labels, s390_final_chunkify): Delete.
12061 (s390_split_branches, s390_chunkify_pool): New functions.
12062 (s390_function_prologue): Call them.
12064 * config/s390/s390.h (S390_REL_MAX): Delete.
12065 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12067 * config/s390/s390.md (cjump, icjump, jump): Fix length
12068 attribute calculation.
12071 2002-02-15 David Edelsohn <edelsohn@gnu.org>
12073 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12074 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12076 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12078 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12079 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12080 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12082 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12084 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12086 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12088 * reload.c (find_dummy_reload): Check that an output register
12089 is valid for its mode.
12091 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
12093 * combine.c (known_cond): After replacing the REG of a SUBREG, try
12096 * function.c (assign_parms): Demote promoted argument passed by
12097 transparent reference.
12099 2001-02-14 Joel Sherrill <joel@OARcorp.com>
12101 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12102 -Acpu() and -Amachine() to eliminate warnings.
12104 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
12106 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12108 2002-02-14 Kazu Hirata <kazu@hxi.com>
12110 * config/h8300/h8300-protos.h: Update the prototype for
12112 * config/h8300/h8300.c (const_costs): Treat SET as a little
12113 more expensive operation.
12114 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12115 reference to const_costs.
12117 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
12119 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12121 2002-02-14 Jakub Jelinek <jakub@redhat.com>
12124 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12125 use arguments from newtype.
12127 2002-02-13 Eric Christopher <echristo@redhat.com>
12129 * config/mips/mips.c (override_options): Add check for march/mipsX
12130 on the same command line. Fix error message in cpu processing.
12131 Remove architecture and ISA checks.
12133 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12135 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12137 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12139 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12141 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12143 ("*movv8hi_internal1"): Same.
12144 ("*movv16qi_internal1"): Same.
12145 ("*movv4sf_internal1"): Same.
12147 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12148 not push_reload for altivec modes.
12150 2002-02-13 Joel Sherrill <joel@OARcorp.com>
12152 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12153 all RTEMS targets including removal of #includes from config/*/rtems*.h
12154 file and adding them to tm_file setting. Added xm_defines=POSIX to
12156 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12157 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12158 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12159 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12160 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12161 config/m68k/rtemself.h: Ditto.
12162 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12163 config/mips/rtems64.h: Ditto.
12164 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12165 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12167 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12168 config/sparc/rtemself.h: Ditto.
12169 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12170 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12171 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12173 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12174 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12175 target made more similar to i386-elf.
12176 * config/i386/t-rtems-i386: Added soft float support and multilibs.
12177 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12178 be similar to config/m68k/t-m68kelf.
12179 * gthr-rtems.h: Encapsulate with extern "C" for C++.
12181 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
12183 * regmove.c (kill_value): Handle subregs.
12185 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
12187 * i386.md (mul patterns): Allow memory operand to be first;
12188 add expanders where needed; fix constraints.
12189 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12190 Allow memory operand to be the first.
12192 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12195 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12198 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12201 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12203 PR optimization/5547:
12204 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12205 all valid IA-32 address modes involving non-scaled %ebx and
12206 GOT/GOTOFF as displacement.
12208 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
12210 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12211 after emitting ltorg insns.
12213 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12214 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12215 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12216 *abssf2): Fix "op_type" attribute.
12218 2002-02-13 Douglas B Rupp <rupp@gnat.com>
12220 * mkconfig.sh: Avoid using a subshell redirect.
12221 ($output.T): Change to $(output)T.
12222 (ENABLE_NLS): Remove unneeded undef.
12224 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12225 * config/alpha/x-vms (libsubdir): Define.
12227 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12228 register frame procedures. Optimize retrieving context.
12230 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12231 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12232 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12234 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12236 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12237 Make same change as for find_base_value.
12239 2002-02-13 Kazu Hirata <kazu@hxi.com>
12241 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12242 of QImode and SImode.
12244 2002-02-13 Kazu Hirata <kazu@hxi.com>
12246 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12247 length computation of movsi.
12248 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12250 2002-02-13 Kazu Hirata <kazu@hxi.com>
12252 * config/h8300/h8300.md (subqi3): Tighten the predicate for
12253 operands[2] to register_operand.
12255 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
12257 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12259 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
12261 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12262 for altivec_lvx* and altivec_stvx*.
12263 ("*movv4si_internal"): Add constraint for loading from GPRs.
12264 ("*movv8hi_internal1"): Same.
12265 ("*movv16qi_internal1"): Same.
12266 ("*movv4sf_internal1"): Same.
12268 * config/rs6000/rs6000.c (altivec_register_operand): New.
12270 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12271 altivec_register_operand.
12273 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
12275 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12278 2002-02-13 Stan Shebs <shebs@apple.com>
12280 * c-typeck.c (digest_init): Handle vectors.
12281 (really_start_incremental_init): Same.
12282 (pop_init_level): Same.
12283 (process_init_element): Same.
12285 * varasm.c (output_constant): Same.
12287 * expr.c (clear_storage): Same.
12288 (store_constructor): Same.
12290 2002-02-12 Eric Christopher <echristo@redhat.com>
12292 * explow.c (hard_function_value): Add comment explaining
12293 signed/unsigned comparison.
12295 2002-02-12 Jakub Jelinek <jakub@redhat.com>
12297 * jump.c (never_reached_warning): Add finish argument.
12298 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12299 real insn after end.
12300 * rtl.h (never_reached_warning): Adjust prototype.
12301 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12302 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12303 never_reached_warning.
12305 2002-02-12 Graham Stott <grahams@redhat.com>
12307 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12309 2002-02-12 Kazu Hirata <kazu@hxi.com>
12311 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12312 logical shifts on H8/300.
12313 (shift_alg_si): Improve several shifts on H8/300.
12314 (get_shift_alg): Likewise.
12316 2002-02-12 Graham Stott <grahams@redhat.com>
12318 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12320 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12322 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12323 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12325 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
12327 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12328 non-CONST_INT through default_assemble_integer.
12329 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12330 <case 8>: Abort for CONST_DOUBLE.
12332 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12334 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12336 * config/pa/pa-linux.h (LIB_SPEC): Delete.
12337 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12339 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
12341 * config/stormy16/stormy16.md (zero_extendqihi2): New.
12343 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
12345 * regrename.c (regrename_optimize): Don't accept a
12346 part-clobbered register if the replaced register is not part
12349 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12350 take padding into account when computing the argument value.
12352 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12354 * combine.c (try_combine): Apply substitutions in
12355 CALL_INSN_FUNCTION_USAGE too.
12357 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
12359 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12360 __builtin_altivec_abs*.
12363 * config/rs6000/rs6000.h (rs6000_builtins): Add
12364 ALTIVEC_BUILTIN_ABS*.
12366 * config/rs6000/altivec.h: Use const char for builtins expecting
12368 (vec_abs): New versions for C and C++.
12371 2002-02-10 Kazu Hirata <kazu@hxi.com>
12373 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12376 2002-02-10 Kazu Hirata <kazu@hxi.com>
12378 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12379 constant definition from h8300.md.
12380 (FRAME_POINTER_REGNUM): Likewise.
12381 * config/h8300/h8300.md (define_constants): Add FP_REG.
12383 2002-02-10 Kazu Hirata <kazu@hxi.com>
12385 * config/h8300/h8300.c (print_operand): Remove redundant code.
12387 2002-02-10 Kazu Hirata <kazu@hxi.com>
12389 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12390 * config/h8300/h8300.c (byte_reg): Make it static.
12392 2002-02-10 Richard Henderson <rth@redhat.com>
12395 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12397 2002-02-10 Richard Henderson <rth@redhat.com>
12400 * tree.c (append_random_chars): Don't abort if main_input_filename
12403 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12405 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12407 2002-02-10 Kazu Hirata <kazu@hxi.com>
12409 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12410 (pushhi1): Likewise.
12412 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12414 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12415 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12417 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12419 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12421 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12423 2002-02-09 Kazu Hirata <kazu@hxi.com>
12425 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12426 a half of an SImode register on H8/300.
12428 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12430 * i386.md (movdi_2): Add missing '!'.
12432 2002-02-09 Kazu Hirata <kazu@hxi.com>
12434 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12437 2002-02-09 Kazu Hirata <kazu@hxi.com>
12439 * config/h8300/h8300.md (length): Correct the distance valid
12440 for the short branch.
12442 2002-02-09 Kazu Hirata <kazu@hxi.com>
12444 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12446 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12448 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12449 registers in SImode.
12450 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12453 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12456 Contribute sh64-elf.
12457 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12458 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12459 (sh_cannot_modify_jumps_p): New function.
12460 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12461 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12462 (sh_ms_bitfield_layout_p): New function.
12463 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
12464 Zack Weinberg <zack@codesourcery.com>
12465 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12466 expand_simple_binop instead of expand_binop.
12467 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
12468 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12469 use of .quad and .uaquad.
12470 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12471 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12472 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12473 * config/sh/sh.md (movdi_const, movdi_const_32bit,
12474 movdi_const_16bit): Make sure all CONSTs have modes.
12475 (sym2PIC): Ditto, but by adjusting all callers.
12476 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12477 if the prologue calls the SHmedia argument decoder or register
12479 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12480 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12481 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12482 (sh_expand_epilogue): Don't emit USE of return target register.
12483 (prepare_move_operands): Legitimize DImode PIC addresses.
12484 (sh_media_register_for_return): Skip tr0, used to initialize the
12486 (sh_expand_prologue): Remove explicit USE of return register.
12487 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12488 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12489 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12490 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12491 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12492 EXTRA_CONSTRAINT_T.
12493 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12494 (MOVI_SHORI_BASE_OPERAND_P): New.
12495 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12496 (EXTRA_CONSTRAINT_T): Define in terms of them.
12497 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12498 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12499 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12500 alternatives supporting TARGET_REGS.
12501 (UNSPEC_GOTPLT): New constant.
12502 (movdi split): Move incrementing of LABEL_NUSES...
12503 (movdi_const, movdi_const_32bit): Here. Use
12504 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12505 (movdi_const_16bit): New.
12506 (call, call_value) [flag_pic]: Use GOTPLT.
12507 (call_pop, call_value_pop): New expands.
12508 (call_pop_compact, call_pop_rettramp): New insns.
12509 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12510 (sibcall) [flag_pic]: Use GOT.
12511 (builtint_setjmp_receiver): Remove bogus, unused expand.
12512 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12513 (*pt, *ptb, ptrel): New insns.
12514 (sym2GOT): Handle DImode GOT.
12515 (sym2GOTPLT, symGOTPLT2reg): New expands.
12516 (sym2PIC): New expand.
12517 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12518 (shcompact_return_tramp_i): Use return register explicitly.
12519 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12520 disable flag_reorder_blocks.
12521 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12522 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12523 clobbers, for clarity.
12524 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12525 restoring of r0 in macl as MAYBE_DEAD.
12526 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12527 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12528 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12529 alter_subreg all over.
12530 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12531 reload, instead of emitting instructions that would require
12533 (casesi_load_media): Add missing modes.
12534 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12535 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12536 as used if the argument decoder is called.
12537 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12538 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12539 Pmode, then extend it to DImode if necessary.
12540 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12541 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12542 constants in FPU-enabled SHmedia, let them be loaded from memory.
12543 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12544 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12545 Adjust whitespace in assembly output templates.
12546 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12547 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12548 mode of if_then_else.
12549 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
12550 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12552 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
12553 Joern Rennecke <amylaar@redhat.com>
12554 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12555 (SUBTARGET_CPP_PTR_SPEC): New.
12556 (SUBTARGET_CPP_SPEC): Remove.
12557 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12558 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12559 Fix typo in previous checkin.
12560 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
12561 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12562 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
12563 Alexandre Oliva <aoliva@redhat.com>
12564 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12565 what single FP register can hold for SHmedia target.
12566 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12567 Alexandre Oliva <aoliva@redhat.com>
12568 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12569 Do not split into SUBREG.
12570 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
12571 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12572 and added new functions as specified in SH5 ABI r9.
12573 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
12574 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12576 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
12577 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12578 gen_consttable_4 and gen_consttable_8. Emit multiple labels
12579 and consttable_window_ends.
12580 2001-06-03 Graham Stott <grahams@redhat,com>
12581 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12582 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
12583 * config/sh/sh.c (print_operand): Handle floating-point pair,
12584 vector and matrix registers.
12585 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12586 vector modes into account.
12587 * config/sh/sh.md (movv2sf): Split move between registers into
12589 (movv4sf, movv16sf): Introduce insns that get split only after
12591 * config/sh/shmedia.h: Fix Copyright dates.
12592 * config/sh/ushmedia.h: Likewise. Move loop counter
12593 declarations into conditionals that uses them.
12594 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12596 * config/sh/sshmedia.h: Fix Copyright dates.
12597 (sh_media_PUTCFG): Fix constraints.
12598 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
12599 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12600 ptrmemfunc_vbit_in_delta for SH5.
12601 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
12602 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12603 * invoke.texi: Likewise.
12604 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
12605 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12606 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12607 GCC_pop_shmedia_regs_nofpu): New global symbols.
12608 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12609 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12610 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12611 compact function with nonlocal labels.
12612 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12613 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12614 (initial_elimination_offset): Account for their stack space.
12615 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12616 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12617 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12618 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12619 least one of the operands to be a register.
12620 (movv2sf): Likewise. Renamed to movv2sf_i.
12621 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12622 prepare_move_operands() before emitting SHmedia insns.
12623 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
12624 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12625 Don't save nor initialize r12. Don't mis-align the stack.
12626 Pad the code with a nop.
12627 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
12629 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
12630 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12631 [__SHMEDIA__]: Implement.
12632 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
12633 * config/sh/sh.md: Set latency of `pt' closer to reality.
12634 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12635 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12636 Set move, load and store type attributes.
12637 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12638 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12640 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12641 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12642 * config/sh/sh.c (sh_media_register_for_return): New function.
12643 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12644 branch-target register.
12645 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12646 * config/sh/sh.md (return_media_i): Use any call-clobbered
12647 branch-target register.
12648 (return_media): If r18 wasn't copied in the prologue, copy it
12650 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12651 Clear class FP0_REGS.
12652 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12654 2001-03-08 DJ Delorie <dj@redhat.com>
12655 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12656 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
12657 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12658 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
12659 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12660 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
12661 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12662 return value correctly for call_cookie.
12663 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
12664 * config/sh/crt1.asm (start): Modified so as to call
12665 ___setup_argv_and_call_main.
12666 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
12667 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12669 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
12670 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12671 (STRIP_NAME_ENCODING): Use it.
12672 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
12673 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
12674 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12675 prepare_scc_operands().
12676 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12677 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12678 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
12679 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12680 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
12681 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12682 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12683 used in shcompact_incoming_args.
12684 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12686 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12688 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12689 Adjust accordingly.
12690 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12691 Simplify. Adjust. Add sanity check.
12692 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12694 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12696 (udivsi3, divsi3): Use them.
12697 (force_mode_for_call): New insn.
12698 (call, call_value, sibcall_value): Emit it before SHcompact
12700 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
12701 * config/sh/sh.md (call, call_value, sibcall): Make sure the
12702 call cookie is non-NULL before taking its value.
12703 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
12704 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12705 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
12706 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12708 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12709 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12710 temporary for stack adjusts. Use MACL and MACH to pass
12711 arguments to shcompact_incoming_args.
12712 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
12714 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12715 (nested_trampoline): Load static chain address into r1.
12716 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12717 2001-01-07 Alexandre Oliva <aoliva@redhat.com
12718 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12719 fp_arith_reg_operand().
12720 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
12721 * config/sh/sh.md (casesi): Sign-extend the first two operands,
12722 and use signed compares for them.
12723 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12724 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
12725 ones properly aligned.
12726 (find_barrier): Account for extra alignment needed for 8-byte wide
12728 (machine_dependent_reorg): Require a label for the second 4-byte
12729 constant after an 8-byte one.
12730 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12732 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12733 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12734 last_float when switching float modes.
12735 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12736 auto-increment for general-purpose registers.
12737 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12739 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12741 * config/sh/sh.c (sh_builtin_saveregs): Support using all
12742 registers for varargs.
12743 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
12744 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12745 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12746 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12747 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12748 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
12749 call_cookie accordingly.
12750 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12751 (SHCOMPACT_BYREF): Likewise.
12752 (SHCOMPACT_FORCE_ON_STACK): New macro.
12753 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12754 (sh_builtin_saveregs): Likewise.
12755 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12756 shcompact_incoming_args): Use new shift values. Support
12757 sequences of consecutive and non-consecutive pushes/pops.
12758 * config/sh/sh.md (return): Don't explicitly use PR_REG.
12759 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
12760 * config/sh/sh.h (TEXT_SECTION): Define.
12761 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12762 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12763 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12764 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12765 return values on FPU-enabled SHmedia.
12766 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12767 FPU-enabled SHmedia.
12768 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12769 value is returned in a non-FP reg and is not returned by
12771 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12773 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
12774 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12775 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12776 quad-aligned to be passed by callee-copy reference.
12777 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
12778 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12779 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12780 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
12781 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12782 copying low-numbered FP regs to r7 and r8.
12783 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12784 FP regs to general-purpose regs only if the copy was passed on the
12786 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12787 copying FP reg to r9.
12788 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12789 copy FP regs to general-purpose regs only in outgoing calls.
12790 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12791 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
12793 * config/sh/sh.h (struct sh_args): Document all fields.
12794 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12795 passed partially on the stack should not consider making
12797 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12798 stack_regs only for incoming calls. When passing FP args,
12799 make sure there are FP regs available before modifying
12801 (SHCOMPACT_BYREF): Pass double args in general-purpose
12802 registers by reference.
12803 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
12804 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12805 attempt to generate sibcalls if the caller got any arguments
12807 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12808 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12809 to 8-byte boundaries.
12810 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12811 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12812 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12813 stored in the stack.
12814 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12815 for the offsets to have the ISA bit set.
12816 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
12817 invocation. Use beq instead of bgt to mark end of sequence of
12819 (shcompact_incoming_args): Fix store of r2. Use beq instead of
12820 bgt to mark end of sequence of stores.
12821 * config/sh/sh.c (arith_operand): Don't check whether
12822 CONST_OK_FOR_J for now.
12823 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12824 instead of long for conversion.
12825 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
12826 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12827 before passing it to fprintf.
12828 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
12829 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12830 Call set_fpscr before reading/writing SR.
12831 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12833 * config/sh/lib1funcs.asm: Add `.align 2' directives before
12835 (FMOVD_WORKS): Define on SH5 with FPU.
12836 (set_fpscr): Define on SH5. Remove separate _fpscr_values
12838 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12840 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
12841 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12843 (ia_main_table): Ditto.
12844 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
12845 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12846 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12847 the definitions from sh.h.
12848 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12850 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12851 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12852 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12853 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
12854 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12855 Increment LABEL_NUSES.
12857 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12859 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12861 * config/sh/elf.h (SIZE_TYPE): Likewise.
12862 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12863 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12864 shcompact_incoming_args): Load switch table addresses using
12866 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12867 (NO_BUILTIN_SIZE_TYPE): Define.
12868 (SIZE_TYPE): Don't define.
12869 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12870 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12871 definition of __SH5__=32 for -m5-compact-nofpu.
12872 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12874 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
12875 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12876 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
12877 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12878 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12879 (INSN_LENGTH_ALIGNMENT): Likewise.
12880 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12881 * config/sh/sh.md (call, call_value, sibcall): Simplify
12882 copying of non-branch-target register.
12883 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12884 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
12885 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12886 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12887 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12888 floating-point values as structs.
12889 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12890 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12891 general-purpose register.
12892 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12893 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12894 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12895 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12896 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12897 (ENCODE_SECTION_INFO): Enclose variables and constants in
12899 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12900 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12901 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12902 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12903 only for LABEL_REFs. For SYMBOL_REFs, prepend
12904 SH_DATALABEL_ENCODING to the symbol name.
12905 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12907 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12908 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12910 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12911 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12912 (DATALABEL_REF_P): Don't require CONST.
12913 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12915 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
12916 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12918 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12919 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12920 Use shallow_copy_rtx and PUT_MODE to change the mode of
12921 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12922 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12923 on SHmedia using GENERAL_REGs.
12924 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12925 bltu_media_i): Fix reversion of conditions.
12926 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12927 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12928 * config/sh/sh.c (output_far_jump): Save r13 in macl.
12929 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
12930 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12931 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
12932 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12933 (GCC_nested_trampoline): Likewise.
12934 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12935 * config/sh/sh.c (gen_datalabel_ref): Define.
12936 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12937 (INITIALIZE_TRAMPOLINE): Likewise.
12938 (TRAMPOLINE_ADJUST_ADDRESS): Define.
12939 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12940 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12941 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12942 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12943 (ic_invalidate): Adjust for SH5.
12944 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12945 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12946 _nested_trampoline.
12947 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
12948 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12949 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12950 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12951 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12952 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12953 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12954 * config/sh/sh.c (target_reg_operand): Match only target-branch
12955 registers and pseudos that aren't virtual registers.
12956 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12957 Copy operands that don't match target_reg_operand to pseudos.
12958 (call_media, call_value_media, sibcall_media): Use
12959 target_reg_operand instead of target_operand.
12960 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
12961 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12962 * config/sh/sh.c (target_reg_operand): Match hardware registers
12963 other than branch-target registers.
12964 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12965 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12966 (fpscr_values) [SH5 == 32]: Define.
12967 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12968 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12969 Handle function addresses coming in SUBREGs.
12970 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
12971 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12972 shcompact_return_trampoline): Use datalabel where appropriate.
12973 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
12974 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12975 general-purpose register to copy one branch-target register to
12977 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12978 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12979 SYMBOL_REFs with VOIDmode.
12980 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12981 bltu_media_i): New insns.
12982 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12983 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12984 (INIT_CUMULATIVE_ARGS): Likewise.
12985 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
12986 * machmode.def (V16SFmode): New mode.
12987 * c-common.c (type_for_mode): Support V2SF and V16SF.
12988 * tree.c (build_common_tree_nodes_2): Likewise.
12989 * tree.h (tree_index): Likewise.
12990 * calls.c (emit_call_1): Take args_so_far. Adjust all
12991 callers. Introduce CALL_POPS_ARGS.
12992 * tm.texi (CALL_POPS_ARGS): Document.
12993 * config/sh/crt1.asm: Implement in SHmedia mode.
12994 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12995 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12996 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12997 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12998 Implement divsi and udivsi in SHmedia mode. Introduce
12999 SHcompact trampolines.
13000 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13002 (regno_reg_class): Rewrite.
13003 (fp_reg_names): Remove.
13004 (sh_register_names, sh_additional_register_names): New.
13005 (print_operand): Added `u'. Support SUBREGs in addresses.
13006 Add parentheses around shifted CONSTs.
13007 (output_file_start): Output .mode and .abi directives.
13008 (shiftcosts, addsubcosts, multcosts): Adjust.
13009 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
13010 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
13011 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
13012 bytes, not registers. Take into account the need for the
13013 SHcompact incoming args trampoline. Adjust all callers.
13014 (sh_expand_prologue): Take stack_regs into account. Call
13015 incoming args trampoline. Keep stack aligned as per SH5 ABI.
13016 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
13017 stack aligned as per SH5 ABI.
13018 (sh_builtin_saveregs): Support SH5 ABI.
13019 (sh_build_va_list, sh_va_start): Likewise.
13020 (initial_elimination_offset): Take alignment into account.
13021 Compute location of PR according to the SH5 stack frame.
13022 (arith_reg_operand): Reject branch-target registers.
13023 (shmedia_6bit_operand): New.
13024 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13025 (target_reg_operand): Match DImode only. Accept SUBREGs.
13026 (target_operand): New.
13027 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13028 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
13029 SIBCALL_REGS for SHmedia.
13030 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13031 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13032 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13033 (TARGET_SWITCHES): New SH5 flags.
13034 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
13035 VALID_REGISTER_P to disable unsupported registers.
13036 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13037 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13038 (FUNCTION_ARG_PADDING): Define.
13039 (FASTEST_ALIGNMENT): Adjust.
13040 (SH_REGISTER_NAMES_INITIALIZER): New.
13041 (sh_register_names): Declare.
13042 (DEBUG_REGISTER_NAMES): Define.
13043 (REGISTER_NAMES): Define based on sh_register_names.
13044 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13045 (sh_additional_register_names): Declare.
13046 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13047 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13048 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13049 (REGISTER_NATURAL_MODE): Define.
13050 (FIRST_PSEUDO_REGISTER): Adjust.
13051 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13052 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13053 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13054 (VECTOR_MODE_SUPPORTED_P): Define.
13055 (REG_CLASS_CONTENTS): Adjust.
13056 (SMALL_REGISTER_CLASSES): Adjust.
13057 (REG_ALLOC_ORDER): Adjust.
13058 (INDEX_REG_CLASS): Adjust.
13059 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13060 (CONST_OK_FOR_LETTER_P): Adjust.
13061 (PREFERRED_RELOAD_CLASS): Adjust.
13062 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13063 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13064 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13065 (FIRST_FP_PARM_REG): Adjust.
13066 (CALL_POPS_ARGS): Define.
13067 (FUNCTION_ARG_REGNO_P): Adjust.
13068 (struct sh_args): New fields.
13069 (GET_SH_ARG_CLASS): Adjust.
13070 (INIT_CUMULATIVE_ARGS): Adjust.
13071 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13072 (FUNCTION_ARG_ADVANCE): Adjust.
13073 (FUNCTION_ARG): Adjust.
13074 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13075 (FUNCTION_ARG_CALLEE_COPIES): Define.
13076 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13077 (STRICT_ARGUMENT_NAMING): Define.
13078 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13079 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13080 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13081 (SETUP_INCOMING_VARARGS): Adjust.
13082 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13083 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13084 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13085 (SUBREG_OK_FOR_INDEX_P): Adjust.
13086 (EXTRA_CONSTRAINT_S): Update.
13087 (EXTRA_CONSTRAINT_T): New.
13088 (EXTRA_CONSTRAINT): Adjust.
13089 (GO_IF_LEGITIMATE_INDEX): Adjust.
13090 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13091 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13092 (MOVE_MAX): Adjust.
13093 (MAX_MOVE_MAX): Define.
13095 (CONST_COSTS): Adjust.
13096 (REGISTER_MOVE_COST): Adjust.
13097 (BRANCH_COST): Adjust.
13098 (TEXT_SECTION_ASM_OP): Adjust.
13099 (DBX_REGISTER_NUMBER): Adjust.
13100 (ASM_OUTPUT_DOUBLE_INT): New.
13101 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13102 (PREDICATE_CODES): Adjust.
13103 (PROMOTE_MODE): Adjust.
13104 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13105 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13106 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13107 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13108 (DR0_REG, DR2_REG, DR4_REG): Renumber.
13109 (TR0_REG, TR1_REG, TR2_REG): New.
13110 (XD0_REG): Renumber.
13111 (UNSPEC_COMPACT_ARGS): New.
13112 (type): Added pt and ptabs.
13113 (length): Default to 4 on SHmedia. Default pt length to 12
13114 and 20 on SHmedia32 and SHmedia64, respectively.
13115 (pt): New function unit.
13116 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
13117 Add whitespace between operands of SHmedia instructions.
13119 (adddi3_media, addsi3_media): Adjust constraints.
13120 (subsi3) [SHmedia]: Force operand 1 into a register.
13121 (udivsi3_i1_media, udivsi3_i4_media): New.
13122 (udivsi3): Support SHmedia.
13123 (divsi3_i1_media, divsi3_i4_media): New.
13124 (divsi3): Support SHmedia.
13125 (anddi3, iordi3, xordi3): Adjust constraints.
13126 (zero_extendhidi2, zero_extendqidi2): New.
13127 (extendsidi2, extendhidi2, extendqidi2): New.
13128 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13129 (pop_e, pop_fpul, pop_4): Likewise.
13130 (movsi_media): Support FP and BT registers.
13131 (movsi_media_nofpu): New. Adjust splits to DImode.
13132 (lduw, ldub): Renamed to zero_extend* above.
13133 (movqi_media): Fix typo.
13134 (movdi_media): Support FP and BT registers.
13135 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
13136 (movdi_const_32bit): New.
13137 (shori_media): Require immediate operand. Use `u' for output.
13138 (movdf_media, movsf_media): Simplified.
13139 (movdf_media_nofpu, movsf_media_nofpu): New.
13140 (movdf, movsf): Adjust
13141 (movv2sf, movv2sf, movv16sf): New.
13142 (beq_media, beq_media_i): Adjust constraints. Don't use
13143 scratch BT register.
13144 (bne_media, bne_media_i): Likewise.
13145 (bgt_media, bgt_media_i): Likewise.
13146 (bge_media, bge_media_i): Likewise.
13147 (bgtu_media, bgtu_media_i): Likewise.
13148 (bgeu_media, bgeu_media_i): Likewise.
13149 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13150 bunordered): Emit jump insn. Force operands to registers when
13152 (jump_media, jump): Simplify.
13153 (call_compact, call_compact_rettramp): New.
13154 (call_value_compact, call_value_compact_rettramp): New.
13155 (call_media, call_value_media): Simplify.
13156 (sibcall_compact, sibcall_media): New.
13157 (call, call_value): Adjust for SHmedia and SHcompact.
13158 (sibcall, sibcall_value, untyped_call): Likewise.
13159 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13160 (indirect_jump): Adjust for SHmedia.
13161 (casesi_jump_media): New.
13162 (nop): Re-enable for SHmedia.
13163 (call_site): Restrict to SH1.
13164 (casesi): Adjust for SHmedia.
13165 (casesi_shift_media, casesi_load_media): New.
13166 (return): Explicitly use PR register. Call return trampoline
13168 (return_i): Explicitly use PR register.
13169 (shcompact_return_tramp, shcompact_return_tramp_i): New.
13170 (return_media): Adjust.
13171 (shcompact_incoming_args): New.
13172 (epilogue): Adjust.
13173 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13174 (movstrsi): Disable on SH5.
13175 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13176 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13177 (subsf3, subsf3_media): Likewise.
13178 (mulsf3, mulsf3_media, mac_media): Likewise.
13179 (divsf3, divsf3_media): Likewise.
13180 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
13181 (floatsisf2, fux_truncsfsi2): Likewise.
13182 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
13184 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13185 (cmpunsf_media, cmpsf): Likewise.
13186 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13187 (abssf2, abssf2_media): Likewise.
13188 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13189 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13190 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
13191 (floatsidf2, fix_truncdfsi2): Likewise.
13192 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
13194 (cmpeqdf_media, cmpgtdf_media): Likewise.
13195 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13196 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13197 (absdf2, absdf2_media): Likewise.
13198 (extendsfdf2, extendsfdf2_media): Likewise.
13199 (truncsfdf2, truncsfdf2_media): Likewise.
13200 * config/sh/sh64.h: New file.
13201 * config/sh/t-sh64: New file.
13202 * config/sh/shmedia.h: New file.
13203 * config/sh/ushmedia.h: New file.
13204 * config/sh/sshmedia.h: New file.
13205 * configure.in: Added sh64-*-elf.
13206 * configure: Rebuilt.
13207 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
13208 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13209 (reg_class_from_letter): Use `b' for TARGET_REGS.
13210 (print_operand): Support `%M', `%m', `AND' and
13211 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
13212 (andcosts): Adjust for SHmedia.
13213 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13215 (target_reg_operand): New function.
13216 * config/sh/sh-protos.h (target_reg_operand): Declare.
13217 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13218 FP registers on SH5.
13219 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13221 (TARGET_REGISTER_P): New macro.
13222 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13223 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13224 (EXTRA_CONSTRAINT_S): New macro.
13225 (EXTRA_CONSTRAINT): Adjust.
13226 (FLOAT_TYPE_SIZE): Define to 32.
13227 (Pmode): DImode on SHmedia.
13228 (CONST_COSTS): Adjust for SHmedia literals.
13229 (PREDICATE_CODES): Added target_reg_operand.
13230 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13231 * config/sh/sh.md: Remove all attrs from SHmedia insns.
13232 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13233 (cmpdi): Accept SHmedia.
13234 (movdicc_false, movdicc_true): New insns.
13235 (movdicc): New expand.
13236 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13238 (addsi3_media): Match `S' constraint.
13239 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13240 (negdi2): Expand for SHmedia.
13241 (one_cmpldi2): New expand.
13242 (zero_extendsidi2): Change from expand to insn.
13243 (extendsidi2): Add constraints.
13244 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
13245 LD/ST address. Fix SI immediate loading split.
13246 (movhi_media, movqi_media, lduw, ldub): New insns.
13247 (movhi, movqi): Accept SHmedia.
13248 (shori_media, movdi_media): Relax input constraints. Split
13249 symbolic constants.
13250 (movdf_media, movsf_media): New insn. New split to movdi.
13251 (movdf, movsf): Match on SHmedia.
13252 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13253 bgeu_media): New insns and splits. New insns with `_i' suffix.
13254 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13255 (bunordered): New expand.
13256 (jump_compact): Renamed from `jump'.
13257 (jump_media): New insn.
13258 (jump): New expand.
13259 (call_media, call_value_media): New insns.
13260 (call, call_value): Adjust.
13261 (indirect_jump_compact): Renamed from `indirect_jump'.
13262 (indirect_jump_media): New insn.
13263 (indirect_jump): New expand.
13264 (untyped_call, return): Accept SHmedia.
13265 (return_media): New insn.
13266 (prologue, epilogue, blockage): Accept SHmedia.
13267 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13268 (sunordered): New expand.
13269 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13270 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13271 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13272 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13273 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13274 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13275 abssf2_media): New insns.
13276 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13277 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13278 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13279 floatdidf2, floatsidf2_media, fix_truncdfdi2,
13280 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13281 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13282 absdf2_media): New insns.
13283 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13284 (extendsfdf2_media, truncdfsf2_media): New insns.
13285 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
13286 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13287 * config/sh/sh.h (CONST_OK_FOR_J): Document.
13288 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13289 * config/sh/sh.md (adddi3): New expand.
13290 (adddi3_media, adddi3z_media): New insns.
13291 (adddi3_compact): Renamed from adddi3.
13292 (addsi3_media): Use add.l r63 to add constant zero.
13293 (subdi3): New expand.
13294 (subdi3_media): New insn.
13295 (subdi3_compact): Renamed from subdi3.
13296 (mulsidi3): New expand.
13297 (mulsidi3_media): New insn.
13298 (mulsidi3_compact): Renamed from mulsidi3.
13299 (umulsidi3): New expand.
13300 (umulsidi3_media): New insn.
13301 (umulsidi3_compact): Renamed from umulsidi3.
13302 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13303 (ashlsi3, ashrsi3, lshrsi3): Use them.
13304 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13305 (ashldi3, ashrdi3, lshrdi3): Use them.
13306 (zero_extendsidi2): New expand.
13307 (extendsidi2): New insn.
13308 (movsi_media): New insn. Split to movdi to load constants.
13309 (movsi): Enable for shmedia.
13310 (movdi_media): New insn. Use shori_media to load wide constants.
13311 (short_media): New insn.
13312 (movdi): Enable for shmedia.
13313 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
13314 * config/sh/sh.h (CPP_SPEC): Added `m5'.
13315 (SUBTARGET_CPP_SPEC): Added `!m5'.
13316 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13317 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
13318 to all other SH variants.
13319 (TARGET_DEFAULT): Set to SH1_BIT.
13320 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13321 (BITS_PER_WORD): Raise to 64 on shmedia.
13322 (MAX_BITS_PER_WORD): Change to 64.
13323 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13324 (INT_TYPE_SIZE): Keep as 32.
13325 (UNITS_PER_WORD): Raise to 8 on shmedia.
13326 (MIN_UNITS_PER_WORD): Keep as 4.
13327 (POINTER_SIZE): Raise to 64 on shmedia.
13328 (CONST_OK_FOR_J): New macro.
13329 (CONST_OK_FOR_LETTER_P): Use it.
13330 (processor_type): Add PROCESSOR_SH5.
13331 * config/sh/sh.md: Conditionalize all expands, insns and
13332 splits to TARGET_SH1.
13334 (addsi3_compact): Renamed from...
13335 (addsi3): Now an expand.
13336 (addsi3_media, subsi3_media): New insns.
13337 (subsi3): Don't negate constants with SHmedia.
13339 * hooks.c: New file.
13340 * hooks.h: New file.
13341 * Makefile.in (HOOKS_H): New.
13342 (TARGET_DEF_H): Added $(HOOKS_H).
13343 (OBJS): Added hooks.o.
13344 (cfgcleanup.o, bb-reorder.o): Added target.h.
13345 (hooks.o): Added dependencies.
13346 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13347 (TARGET_INITIALIZER): this.
13348 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13349 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13350 * bb-reorder.c: Include target.h.
13351 (reorder_basic_blocks): Skip if cannot modify jumps.
13352 * cfgcleanup.c: Include target.h.
13353 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13355 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13357 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13358 Protect jump delay slot instructions with .set noreorder and
13361 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13363 * config/mips/mips.md (casesi_internal_di): Calculate
13364 the index into the target offset table correctly.
13366 2002-02-08 Richard Henderson <rth@redhat.com>
13368 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13369 * final.c (output_addr_const): Accept and discard SUBREG.
13370 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13371 mark them unknown instead.
13372 (simplify_subtraction): Handle RTX_UNKNOWN.
13373 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13375 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13377 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13379 2002-02-08 Richard Henderson <rth@redhat.com>
13381 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13383 2002-02-08 Andreas Jaeger <aj@suse.de>
13385 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13386 * config/i386/t-linux64: New file.
13388 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13390 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13391 * c-parse.in (compstmt): Clear last_expr_type.
13393 2002-02-07 Richard Henderson <rth@redhat.com>
13395 * loop.c (strength_reduce): Sink final_value when not
13398 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13400 * config/sparc/freebsd.h: Fix mismatched spec {.
13402 2002-02-07 Richard Henderson <rth@redhat.com>
13404 * cfgrtl.c: Include recog.h and insn-config.h.
13405 (keep_with_call_p): Fix general_operand invocation.
13406 * Makefile.in (cfgrtl.o): Update dependencies.
13408 2002-02-07 Kazu Hirata <kazu@hxi.com>
13410 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13411 comment. Accept HImode only if TARGET_H8300.
13413 2002-02-07 Eric Christopher <echristo@redhat.com>
13415 * config/mips/crtn.asm: Cleanup #ifdefs.
13417 2002-02-07 Eric Christopher <echristo@redhat.com>
13419 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13420 register 7 as RA instead of $31.
13421 * config/mips/crtn.asm: Ditto.
13422 * config/mips/mips.c (mips_move_2words): Add case for
13423 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13424 (compute_frame_size): Fix typo.
13425 (save_restore_insns): Ditto. Make documentation about using
13426 register $7 as return register more precise.
13427 (mips_expand_epilogue): Fix comment. Add code to work around not
13428 being able to add to the stack pointer directly.
13429 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13430 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13433 2002-02-07 Tom Rix <trix@redhat.com>
13435 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13436 immediates in ldu and stdu DS opcode field.
13437 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13438 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13439 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13441 2002-02-07 Jeff Sturm <jsturm@one-point.com>
13443 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13444 offset for stack bias.
13446 2002-02-07 H.J. Lu <hjl@gnu.org>
13448 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13450 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
13452 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13454 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
13456 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13457 * i386.c (x86_order_regs_for_local_alloc): New global function.
13458 * i386.h (REG_ALLOC_ORDER): CLeanup.
13459 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13461 2002-02-07 Richard Henderson <rth@redhat.com>
13463 PR optimization/2463
13464 * alias.c (find_base_value): Recall base values for fixed hard regs.
13465 * loop.c (loop_regs_update): Don't use single_set on non-insns.
13467 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
13469 * config/mips/mips.md (define_delay) [mips16]: Adjust required
13472 2002-02-06 Richard Henderson <rth@redhat.com>
13475 * stmt.c (resolve_operand_name_1): Take more care with mixed
13476 named and unnamed operands.
13478 2002-02-06 Janis Johnson <janis187@us.ibm.com>
13479 Jan Hubicka <jh@suse.cz>
13481 * loop.c (remove_constant_addition): Avoid clobbering a shared
13484 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13486 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13487 * config/s390/t-linux64: New file.
13488 * config/s390/libgcc-glibc.ver: New file.
13490 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13492 * config/s390/linux64.h: Delete file.
13493 * config/s390/s390x.h: New file.
13494 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13495 as target header file.
13496 * config/s390/linux.h (TARGET_VERSION): Define depending on
13497 DEFAULT_TARGET_64BIT.
13498 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13499 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13500 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13501 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13502 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13503 (EXTRA_SPEC): New define.
13504 * config/s390/s390.h (TARGET_VERSION): Define depending on
13505 DEFAULT_TARGET_64BIT.
13506 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13508 2002-02-06 Jason Merrill <jason@redhat.com>
13510 * c-decl.c (finish_function): Warn about a non-void function with
13511 no return statement and no abnormal exit.
13512 (current_function_returns_abnormally): New variable.
13513 (start_function): Clear it.
13514 (struct c_language_function): Add returns_abnormally.
13515 (push_c_function_context): Save it.
13516 (pop_c_function_context): Restore it.
13517 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13518 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13519 an explicit return type.
13520 * c-tree.h: Declare current_function_returns_abnormally.
13521 (C_FUNCTION_IMPLICIT_INT): New macro.
13522 * c-typeck.c (build_function_call): Set it.
13523 (c_expand_return): Set current_function_returns_value even if the
13524 value is erroneous.
13526 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13529 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13530 unsafe for reevaluation.
13532 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13535 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13536 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13538 2002-02-06 Richard Henderson <rth@redhat.com>
13540 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13541 be a general_operand. Dest for function value must be a pseudo.
13543 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13545 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13546 as SYMBOL_REFs from the constant pool.
13548 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
13550 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13551 passed by invisible reference.
13553 2002-02-05 Richard Henderson <rth@redhat.com>
13555 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13557 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
13559 Implement using "base addresses" in insn operands as default.
13560 * config/mmix/mmix.c (mmix_conditional_register_usage): if
13561 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13562 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13563 used to read the rtx value.
13564 (mmix_target_asm_function_epilogue): Fix spacing.
13565 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13566 (mmix_legitimate_address): Ditto.
13567 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13568 should be loaded with a GETA insn. Don't allocate needless extra
13569 char for nul termination and fix misleading comment.
13570 (mmix_print_operand_address): Handle constants if
13571 TARGET_BASE_ADDRESSES.
13572 (mmix_output_register_setting): Use base addressing if
13573 TARGET_BASE_ADDRESSES and the number of insns is 3.
13574 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13575 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13576 to use R as constraint, add LDA to match s.
13577 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13578 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13579 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13580 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13581 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13582 order with other fixed registers.
13583 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13584 other parameter/call-clobbered registers.
13585 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13586 -mbase-addresses, -mno-base-addresses.
13587 (MMIX Options): Ditto.
13589 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13591 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13593 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
13595 * config/rs6000/altivec.h: Change elem to _S_elem.
13597 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13599 * config/netbsd.h (WCHAR_TYPE): Define.
13600 (WCHAR_TYPE_SIZE): Ditto.
13601 (WINT_TYPE): Ditto.
13602 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13603 (WCHAR_UNSIGNED): Ditto.
13604 (WCHAR_TYPE_SIZE): Ditto.
13605 (WINT_TYPE): Ditto.
13606 * config/arm/netbsd.h: Likewise.
13607 * config/i386/netbsd-elf.h: Likewise.
13608 * config/i386/netbsd.h: Likewise.
13609 * config/m68k/netbsd-elf.h: Likewise.
13610 * config/m68k/netbsd.h: Likewise.
13611 * config/ns32k/netbsd.h: Likewise.
13612 * config/sparc/netbsd.h: Likewise.
13613 * config/vax/netbsd.: Likewise.
13615 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
13617 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13618 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
13619 (TARGET_INITIALIZER): this.
13620 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13621 (BITFIELD_NBYTES_LIMITED): Markup fix.
13622 * tree.h (default_ms_bitfield_layout_p): Declare.
13623 (record_layout_info): Added prev_field.
13624 * tree.c (default_ms_bitfield_layout_p): New fn.
13625 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13626 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13627 * stor-layout.c: Include target.h.
13628 (start_record_layout): Initialize prev_field.
13629 (place_field): Handle MS bit-field layout, and disregard
13630 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13631 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
13632 * Makefile.in (stor-layout.o): Adjust dependencies.
13634 2002-02-05 Jason Merrill <jason@redhat.com>
13636 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13638 2002-02-05 Andreas Jaeger <aj@suse.de>
13640 * crtstuff.c: Fix comments.
13642 2002-02-05 Richard Henderson <rth@redhat.com>
13645 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13646 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13649 * config/mips/mips.c (function_arg): Handle TImode.
13650 (function_arg_advance): Likewise.
13652 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13654 * config/rs6000/altivec.h (vec_step_help): Rename to
13657 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13659 * config/rs6000/altivec.h: Fix typos.
13661 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13663 * config/arm/netbsd.h: Correct a comment.
13665 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13667 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13668 building void typed builtins.
13670 * config/rs6000/altivec.h (vec_ld*): Fix typos.
13671 (vec_step): Implement for C++.
13673 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13675 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13677 2002-02-04 Richard Henderson <rth@redhat.com>
13679 * combine.c (nonzero_bits): Re-introduce special case for
13680 sp/fp/ap wrt REGNO_POINTER_ALIGN.
13682 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13684 * doc/extend.texi: Warn about unsupported usage of altivec
13687 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13688 (altivec_predicate_*): New.
13690 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13691 Add C++ version of vec_*() functions.
13693 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13694 (bdesc_2arg): Remove altivec predicates.
13695 (altivec_expand_builtin): Handle predicates.
13696 (altivec_init_builtins): Handle predicates.
13697 (altivec_expand_predicate_builtin): New.
13699 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13701 * pa.c (DO_FRAME_NOTES): Move forward.
13702 (store_reg): Revise handling of frame notes.
13703 (load_reg): Likewise.
13704 (set_reg_plus_d): Likewise.
13705 (hppa_expand_prologue): Likewise.
13706 (hppa_expand_epilogue): Likewise.
13708 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13710 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13712 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13714 PR c/4475, c++/3780:
13715 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13716 * c-common.h (SWITCH_TYPE): Define.
13717 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13718 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13719 Rename spareness variable to sparseness.
13720 (expand_end_case_type): Renamed from expand_end_case, use orig_type
13721 if non-NULL instead of TREE_TYPE (orig_index).
13722 * tree.h (expand_end_case_type): Renamed from expand_end_case.
13723 (expand_end_case): Define using expand_end_case_type.
13724 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13725 to expand_end_case_type.
13726 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13728 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13730 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13731 (BIGGEST_ALIGNMENT): Change to 128.
13733 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13735 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13737 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13739 * pa.md (call_internal_reg_64bit): Remove unused variable.
13741 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
13743 * config/arm/arm.h (machine_function): Add uses_anonymous_args
13745 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13746 * config/arm/arm.c (current_function_anonymous_args): Delete,
13747 replace uses with cfun->machine->uses_anonymous_args.
13748 (arm_reorg): Do not reset uses_anonymous_args.
13750 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13751 any geenral register.
13753 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
13755 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13758 2002-02-04 Richard Henderson <rth@redhat.com>
13760 * combine.c (force_to_mode): Remove STACK_BIAS code.
13761 (nonzero_bits): Likewise. Replace sp/fp special case with
13762 REGNO_POINTER_ALIGN.
13764 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13765 (HARD_FRAME_POINTER_REGNUM): New.
13766 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13767 (FIXED_REGS, CALL_USED_REGS): Update.
13768 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13769 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13770 (HARD_REGNO_NREGS): Update for SFP.
13771 (STACK_POINTER_OFFSET): Include bias here ...
13772 (FIRST_PARM_OFFSET): ... not here.
13773 (STACK_BIAS): Remove.
13774 (INIT_EXPANDERS): New.
13775 (STARTING_FRAME_OFFSET): Do not include bias.
13776 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13777 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13778 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13779 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13780 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13781 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13782 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13783 (MUST_SAVE_REGISTER): Likewise.
13784 (sparc_flat_function_prologue): Likewise.
13785 (sparc_flat_function_epilogue): Likewise.
13786 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13787 (sparc_init_modes): SFP is GENERAL_REGS.
13788 (sparc_builtin_saveregs): SFP does not have bias applied.
13790 2002-02-04 Richard Henderson <rth@redhat.com>
13792 * config/alpha/alpha.c (current_function_is_thunk): Don't check
13793 current_function_is_thunk.
13794 (alpha_sa_mask): Distinguish between current_function_is_thunk
13795 called from ASM_OUTPUT_MI_THUNK and not.
13796 (alpha_does_function_need_gp): Thunks always need gp.
13797 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13798 (alpha_output_mi_thunk_osf): New.
13799 * config/alpha/alpha-protos.h: Update.
13800 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13802 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
13804 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13805 function types, not when they're taken away.
13807 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
13809 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13810 CODE_LABEL and jump table when replacing a table jump with a
13813 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13815 * config/s390/s390-protos.h (legitimize_la_operand,
13816 s390_secondary_input_reload_class, s390_plus_operand,
13817 s390_expand_plus_operand): Add prototypes.
13819 config/s390/s390.c (s390_secondary_input_reload_class,
13820 s390_plus_operand, s390_expand_plus_operand): New functions.
13822 (struct s390_address): New member 'pointer'.
13823 (s390_decompose_address): Compute it.
13824 (legitimate_la_operand_p): Use it.
13825 (legitimize_la_operand): New function.
13826 (movti, movdi, movdf splitters): Call it.
13828 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13829 (PREDICATE_CODES): Add s390_plus_operand.
13831 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13832 (la_ccclobber): Allow GENERAL_REGS as output operand.
13834 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13835 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13836 (*la_64, *la_31, reload_indi, reload_insi): ... these.
13838 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13840 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13841 register names for regular asm () construct.
13843 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13845 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13848 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13850 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13853 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
13855 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13856 constant pool to be identical by string address and index.
13858 2002-02-04 Anthony Green <green@redhat.com>
13860 * output.h (SECTION_OVERRIDE): Define.
13861 * varasm.c (named_section): Obey SECTION_OVERRIDE.
13863 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13865 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13866 by existing arm*-*-netbsd* (a.out) target.
13867 (ns32k-*-netbsdelf*): Likewise.
13868 (sparc-*-netbsdelf*): Likewise.
13869 (vax-*-netbsdelf*): Likewise.
13871 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
13873 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13874 headers and libobjc headers.
13876 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
13878 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13879 (_mingw.h): Remove duplicate include.
13881 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13883 * config.gcc: Set cpu_type to m68k for 68010, as well.
13884 (m68010-*-netbsdelf*): New...
13885 (m68k*-*-netbsdelf*): ...targets.
13886 * config/m68k/netbsd-elf.h: New file.
13888 2002-02-02 Kazu Hirata <kazu@hxi.com>
13890 * config/h8300/h8300.c (hand_list): Move inside function_arg.
13892 2002-02-02 Kazu Hirata <kazu@hxi.com>
13894 * config/h8300/h8300.c (h8_push_ops): Move inside
13896 (h8_pop_ops): Likewise.
13897 (h8_move_ops): Likewise.
13899 2002-02-02 Kazu Hirata <kazu@hxi.com>
13901 * config/h8300/h8300.c (os_task): Make it static.
13902 (monitor): Likewise.
13903 (pragma_saveall): Likewise.
13905 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
13907 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13908 constant is a valid sign-extension for Pmode.
13910 2002-02-02 Kazu Hirata <kazu@hxi.com>
13912 * config/h8300/h8300.c: Fix formatting.
13914 2002-02-02 Kazu Hirata <kazu@hxi.com>
13916 * config/h8300/h8300.md: Fix formatting.
13918 2002-02-02 Kazu Hirata <kazu@hxi.com>
13920 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13921 predicates of operands[1]. Split the patterns for each
13924 2002-02-02 Kazu Hirata <kazu@hxi.com>
13926 * config/h8300/h8300.md (xor patterns): Tighten the predicates
13927 of operands[1] to register_operand.
13929 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13931 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13932 * cpphash.c (_cpp_init_hashtable): Similarly.
13933 * cppinit.c (cpp_create_reader): Default the signed_char flag.
13934 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13935 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13936 (cpp_handle_option): Handle the new options.
13937 * cpplex.c (cpp_interpret_charconst): Use new flag.
13938 * cpplib.h (struct cpp_options): New member signed_char.
13939 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13940 (cpp_options): Handle -fsigned-char and -funsigned-char.
13941 (static_specs): Remove signed_char_spec.
13942 (do_spec1): Don't handle %c.
13943 * system.h: Poison SIGNED_CHAR_SPEC.
13944 * tradcif.y (yylex): Use flag_signed_char.
13945 * tradcpp.h (flag_signed_char): New.
13946 * tradcpp.c (flag_signed_char): New.
13947 (main): Handle new command-line options.
13948 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13950 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13951 * avr/avr.h: Remove old comments.
13952 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13953 (CC1_SPEC): Pass -fsigned-char if -mic*.
13954 (SIGNED_CHAR_SPEC): Remove.
13956 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13958 2002-02-01 Eric Christopher <echristo@redhat.com>
13960 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13961 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13962 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13963 (ASM_OUTPUT_REG_POP): Ditto.
13965 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13967 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13970 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13972 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13974 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13977 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13980 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13982 * cfganal.c: Include tm_p.h.
13983 (keep_with_call_p): Fix the test that determines if a register holds
13984 the return value of a call.
13986 2002-02-01 DJ Delorie <dj@redhat.com>
13988 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13989 we are given conflicting registers, switch to the other one we
13990 had allocated for us.
13991 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13992 as TImode so we know when the "other" register is available.
13994 2002-02-01 David O'Brien <obrien@FreeBSD.org>
13996 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13999 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14001 * cfganal.c (keep_with_call_p): New function.
14002 (flow_call_edges_add): Prevent splitting a block between a call and
14003 a single-set instruction that should be kept in the same block.
14005 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
14007 * doc/install.texi (avr): Update outdated URL.
14009 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
14011 * config/stormy16/stormy16.md (pushqi): New.
14015 (movhi): Remove stack operands.
14017 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14018 nonimmediate_nonstack_operand.
14019 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14021 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14024 2002-01-31 Jason Merrill <jason@redhat.com>
14026 * Makefile.in (c-parse.c): Handle .output file.
14027 * objc/Make-lang.in (objc-parse.c): Likewise.
14029 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
14031 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14032 the -me[lb] option is given. Don't output the default flag
14035 2002-01-31 Zack Weinberg <zack@codesourcery.com>
14037 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14038 the primary source file; this has not been done yet.
14039 * c-decl.c (c_expand_body): Reset input_filename from
14040 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14042 2002-01-31 Kazu Hirata <kazu@hxi.com>
14044 * rtlanal.c (subreg_regno_offset): Do not use
14045 SUBREG_REGNO_OFFSET.
14046 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14047 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14049 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14051 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
14052 version rather than GNATS version in --version output.
14054 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
14056 * ifcvt.c (noce_process_if_block): Make a copy of the destination
14057 when copying back from a temporary.
14059 2002-01-30 Richard Henderson <rth@redhat.com>
14061 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14062 and new_dest are the same.
14064 2002-01-30 Richard Henderson <rth@redhat.com>
14067 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14068 * rtl.c (note_insn_name): Update.
14069 * emit-rtl.c (remove_unnecessary_notes): Kill it.
14070 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
14071 to perform loop rotation.
14072 (expand_exit_loop_top_cond): New.
14073 * tree.h (expand_exit_loop_top_cond): Declare it.
14074 * c-semantics.c (genrtl_while_stmt): Use it.
14075 (genrtl_for_stmt): Likewise.
14077 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
14079 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14080 arguments to 64-bit boundaries on 64-bit ABIs.
14082 2002-01-30 Steve Ellcey <sje@cup.hp.com>
14084 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14086 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14088 * c-decl.c (grokdeclarator): Handle type being a typedef for an
14091 2002-01-30 David O'Brien <obrien@FreeBSD.org>
14093 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14094 * config/sparc/sparc_bi.h: Remove file.
14095 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14097 2002-01-30 Richard Henderson <rth@redhat.com>
14099 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14101 2002-01-30 Zack Weinberg <zack@codesourcery.com>
14103 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14105 2002-01-30 Jason Merrill <jason@redhat.com>
14107 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14108 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14109 (reg_save): Use DW_CFA_offset_extended_sf instead.
14111 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14113 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14115 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14118 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
14120 * rs6000.md ("*call_value_local32"): Remove constraints.
14121 ("*call_value_local64"): Same.
14122 ("*call_value_indirect_nonlocal_aix32"): Same.
14123 ("*call_value_nonlocal_aix32"): Same.
14124 ("*call_value_indirect_nonlocal_aix64"): Same.
14125 ("*call_value_nonlocal_aix64"): Same.
14126 ("*call_value_nonlocal_sysv"): Same.
14128 2002-01-29 Richard Henderson <rth@redhat.com>
14130 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14132 2002-01-29 Richard Henderson <rth@redhat.com>
14134 * expr.c (force_operand): Ignore flag_pic for detecting pic
14136 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14137 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14138 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14139 instead of open-coded loop.
14140 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14141 be fixed when in use.
14143 2002-01-29 Richard Henderson <rth@redhat.com>
14145 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14146 * sched-rgn.c (propagate_deps): Update them.
14147 * sched-deps.c (sched_analyze_insn): Update them. Flush the
14148 clobbers list when either gets too long.
14150 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14152 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14153 and INDEX_REGS the same as GENERAL_REGS.
14154 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14156 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14158 * tree.c (build_nonstandard_integer_type): Correct prototype.
14160 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
14162 * config/s390/s390.md (movstrsico, movstrdix_64,
14163 movstrsix_31): Remove, replace by ...
14164 (movstrdi_short, movstrsi_short, movstrdi_long,
14165 movstrsi_long): ... these. New.
14166 (movstrdi, movstrsi): Adapt.
14168 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14169 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14170 Remove unnecessary CC clobber.
14171 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14172 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14174 (divmoddi4): Don't partially initialize TImode register.
14176 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
14178 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14180 2002-01-29 Richard Henderson <rth@redhat.com>
14182 * flow.c (print_rtl_and_abort): Remove.
14183 (print_rtl_and_abort_fcn): Remove.
14184 (verify_local_live_at_start): Use dump_bb instead.
14185 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14186 (verify_wide_reg_1): Return 2 on mode test failure.
14188 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14190 PR c/3325, c/3326, c/2511, c/3347
14191 * c-decl.c (enum_decl_context): Remove BITFIELD.
14192 (grokdeclarator): Take bitfield width as an input.
14193 Ensure bitfields are given the correct type. Perform
14194 bitfield width validation with build_bitfield_integer_type
14195 rather than waiting for finish_struct.
14196 (grok_typename, grok_typename_in_parm_context, start_decl,
14197 push_parmdecl, grokfield, start_function): Update calls to
14199 (build_bitfield_integer_type): New function.
14200 (finish_struct): Move bitfield validation to grokdeclarator
14201 and build_bitfield_integer_type.
14202 * tree.c (build_nonstandard_integer_type): New function.
14203 * tree.h (build_nonstandard_integer_type): New prototype.
14205 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14207 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14210 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14211 don't ignore unrecognized -W* options.
14212 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14213 * cpplib.h (cpp_handle_option): Adjust prototype.
14214 * c-decl.c (c_decode_options): Pass 0 as last argument to
14218 * gcc.c (cpp_unique_options): Split from cpp_options.
14219 (cpp_options): Source cpp_unique_options.
14220 (default_compilers): Use cpp_unique_options instead of cpp_options
14221 when used together with cc1_options.
14222 (static_specs): Add cpp_unique_options.
14223 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14224 when used together with cc1_options.
14226 2002-01-29 Kazu Hirata <kazu@hxi.com>
14228 * config/h8300/h8300-protos.h: Update the prototype of
14230 * config/h8300/h8300.c (output_a_shift): Remove an unused
14231 argument 'insn'. Remove redundant code.
14232 * config/h8300/h8300.md: Adust to the new prototype of
14235 2002-01-29 Kazu Hirata <kazu@hxi.com>
14237 * config/h8300/h8300-protos.h: Update the prototypes of
14238 emit_a_rotate and expand_a_rotate.
14239 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14240 first argument to 'enum rtx_code'.
14241 (expand_a_rotate): Likewise.
14243 2002-01-28 Kazu Hirata <kazu@hxi.com>
14245 * config/h8300/h8300-protos.h: Update the prototype of
14247 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14249 * config/h8300/h8300.md: Adjust to the new prototype.
14251 2002-01-28 Kazu Hirata <kazu@hxi.com>
14253 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14256 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14258 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14259 is a fixed register before returning pic_offset_table_rtx.
14260 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14261 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14263 2002-01-28 Jason Merrill <jason@redhat.com>
14265 * dwarf2.h: Sync with src version.
14267 2002-01-28 Paul Koning <pkoning@equallogic.com>
14269 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14270 BT_FN_VOID_PTR_VAR.
14271 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14272 * doc/extend.texi (__builtin_prefetch): Update documentation:
14273 first argument is now const void ptr.
14275 2002-01-28 Kazu Hirata <kazu@hxi.com>
14277 * config/h8300/h8300-protos.h: Remove an unused prototype.
14279 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
14281 * toplev.c (lang_independent_init): Round up identifier size.
14283 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14285 * config.gcc: Revert previous change.
14287 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
14289 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14291 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14293 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14294 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
14295 other non-elf netbsd config frags.
14296 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14297 collect2 will does that.
14298 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14299 shared-lib frobbing will work.
14301 2002-01-28 Kazu Hirata <kazu@hxi.com>
14303 * config/h8300/h8300.h: Fix formatting.
14304 * config/h8300/h8300.md: Likewise.
14306 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
14308 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14309 the old, removed AAA_standards fix.
14310 * fixinc/fixincl.x: Rebuilt.
14312 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
14314 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14315 atexit call in crtbegin, hooked in after call to frame_dummy;
14316 register EH before registering __fini__start.
14318 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
14320 * config/rs6000/altivec.h: Remove spurious semicolons.
14322 2002-01-27 Kazu Hirata <kazu@hxi.com>
14324 * config/h8300/h8300.md: Replace dead bit extraction patterns
14325 with ones that work.
14327 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14329 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14330 if not STRICT_ALIGNMENT.
14331 * rtl.h (MEM_ALIGN): Likewise.
14333 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
14335 * doc/invoke.texi (-fdump-translation-unit): Revert this
14336 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
14338 2002-01-27 Kazu Hirata <kazu@hxi.com>
14340 * config/h8300/h8300.md (define_constants): New.
14341 (anonymous patterns) Use defined constants appropriately.
14343 2002-01-27 Kazu Hirata <kazu@hxi.com>
14345 * config/h8300/h8300.c (function_arg): Remove redundant code.
14347 2002-01-26 Richard Henderson <rth@redhat.com>
14349 * sched-deps.c (reg_pending_uses_head): New.
14350 (reg_pending_barrier): Rename from reg_pending_sets_all.
14351 (find_insn_list): Don't mark inline.
14352 (find_insn_mem_list): Remove.
14353 (add_dependence_list, add_dependence_list_and_free): New.
14354 (flush_pending_lists): Replace only_write param with separate
14355 for_read and for_write parameters. Update all callers. Use
14356 add_dependence_list_and_free.
14357 (sched_analyze_1): Do not add reg dependencies here; just set
14358 the pending bits. Use add_dependence_list.
14359 (sched_analyze_2): Likewise.
14360 (sched_analyze_insn): Replace schedule_barrier_found with
14361 reg_pending_barrier. Add all dependencies for pending reg
14362 uses, sets, and clobbers.
14363 (sched_analyze): Don't add reg dependencies for calls, just
14364 set pending bits. Use regs_invalidated_by_call. Treat
14365 sched_before_next_call as a normal list, not a fake insn.
14366 (init_deps): No funny init for sched_before_next_call.
14367 (free_deps): Free pending mems lists. Don't zero reg_last.
14368 (init_deps_global): Init reg_pending_uses.
14369 (finish_deps_global): Free it.
14370 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14371 (find_insn_mem_list): Remove.
14372 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14373 (propagate_deps): Use them. Zero temp mem lists.
14375 2002-01-26 Richard Henderson <rth@redhat.com>
14377 * Makefile.in (CRTSTUFF_CFLAGS): New.
14378 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14379 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14380 crtstuff.c instead of alpha assembly version.
14381 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14382 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14383 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14384 (__do_global_dtors_aux): Mark used.
14385 (frame_dummy, __do_global_ctors_aux): Mark used.
14386 (fini_dummy, init_dummy): Remove.
14388 * config/alpha/crtbegin.asm: Remove file.
14389 * config/alpha/crtend.asm: Remove file.
14390 * config/alpha/t-crtbe: Remove file.
14391 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14392 (LINK_EH_SPEC): New.
14394 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14395 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14396 calling constructors.
14397 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14399 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14400 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14401 CRT_END_INIT_DUMMY hack.
14402 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14403 FORCE_{INIT,FINI}_SECTION_ALIGN.
14405 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14406 FORCE_{INIT,FINI}_SECTION_ALIGN.
14408 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14409 invocation sequence.
14410 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14412 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14413 (FORCE_CODE_SECTION_ALIGN): New.
14415 2002-01-26 Richard Henderson <rth@redhat.com>
14417 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14419 2002-01-26 Richard Henderson <rth@redhat.com>
14421 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14422 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14424 2002-01-26 Kazu Hirata <kazu@hxi.com>
14426 * config/h8300/h8300.md: Remove bit extraction patterns that
14427 cannot be triggered.
14428 Restrict each bit extraction pattern to a variant on which the
14431 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14433 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14435 2002-01-26 Kazu Hirata <kazu@hxi.com>
14437 * config/h8300/h8300.md: Remove bit test patterns that cannot
14439 Restrict each bit test pattern to a variant on which the
14442 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14444 * builtins.c (expand_builtin_strncat): Remove redundant check for
14447 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14449 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14451 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14454 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14456 * dbxout.c (dbxout_init): Use assemble_name rather than just
14457 stripping off the first character.
14458 (dbxout_source_file): Likewise.
14460 2002-01-25 DJ Delorie <dj@redhat.com>
14462 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14463 using rtx_equal_p, not by comparing pointers.
14465 2002-01-25 Steve Ellcey <sje@cup.hp.com>
14467 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14468 for PIC_OFFSET_TABLE_REGNUM.
14469 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14471 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14473 * config.gcc (x86_64-*-freebsd*): New target.
14474 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14476 (i[34567]86-*-freebsd*): Don't include svr4.h.
14477 * config/i386/freebsd64.h: New file.
14479 2002-01-25 Douglas B Rupp <rupp@gnat.com>
14481 * config/alpha/x-vms (version): Make static.
14483 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14484 in previous checkin.
14486 * Makefile.in (install-headers-cp): New target.
14487 * config.gcc (alpha-dec-*vms*): Install headers with
14490 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14492 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14495 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14497 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14498 of compare_tree_int.
14499 (expand_builtin_strncat): Likewise.
14500 * c-decl.c (finish_struct): Use tree_low_cst.
14501 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14502 * tree.c (compare_tree_int): Likewise.
14504 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14506 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14507 adjustments even if they are implemented by more than two insns.
14509 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14511 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14512 * df.h (struct ref): Kill B.
14513 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14515 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14516 * flow.c (propagate_one_insn): Use it.
14517 (mark_used_regs): Handle NIL.
14519 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14521 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14524 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14526 * rs6000.md (prefetch): Make address V4SI mode so that the address
14527 is restricted to legitimate form for instruction.
14529 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14531 * doc/install.texi (xtensa-*-elf): New target.
14532 (xtensa-*-linux*): New target.
14533 * doc/contrib.texi: Add myself.
14535 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14537 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14538 purpose register to hold an SImode (or smaller) value.
14540 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14542 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14544 * crtstuff.c: Likewise.
14546 2002-01-25 Kazu Hirata <kazu@hxi.com>
14548 * config/h8300/h8300.md (negation patterns): Tighten
14549 predicates to register_operand.
14551 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
14553 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14556 * builtins.c (expand_builtin_prefetch): Same.
14558 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14560 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14563 2002-01-24 Kazu Hirata <kazu@hxi.com>
14565 * config/h8300/h8300.c (print_operand): Remove support for
14566 operand character 'A'.
14567 * config/h8300/h8300.md (three anonymous patterns): Replace
14568 operand character 'A' with either 'T' or 'S'.
14570 2002-01-24 Kazu Hirata <kazu@hxi.com>
14572 * config/h8300/h8300.c (print_operand): Remove support for
14573 operand character 'U'.
14575 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
14577 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14579 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
14581 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14582 values to be assigned to the stack pointer.
14584 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14586 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14587 to const_double needs to be done right for big-endian systems.
14589 2002-01-24 Jason Merrill <jason@redhat.com>
14592 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14593 to can_throw_internal.
14595 2002-01-23 Richard Henderson <rth@redhat.com>
14597 * fold-const.c (fold): Change UINT_MAX test to check vs precision
14598 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
14600 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14602 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14603 (symGOT2reg): Use them, then set as GOT value as unchanging.
14604 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
14605 as a temporary, if possible.
14606 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
14607 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14609 2002-01-23 Kazu Hirata <kazu@hxi.com>
14611 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14612 accept to accept 0x80 as operands[2].
14614 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14616 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14618 2002-01-23 Richard Henderson <rth@redhat.com>
14620 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14622 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
14624 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14625 (parmlist_or_identifiers_1): Verify that only a parmlist follows
14628 2002-01-23 Richard Henderson <rth@redhat.com>
14630 * expr.c (move_by_pieces_1): Extend size before negation.
14632 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14633 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14634 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14635 * config/m68k/t-m68kelf: Likewise.
14637 2002-01-23 Bob Wilson <bob.wilson@acm.org>
14639 * config/xtensa/elf.h: New file.
14640 * config/xtensa/lib1funcs.asm: New file.
14641 * config/xtensa/lib2funcs.S: New file.
14642 * config/xtensa/linux.h: New file.
14643 * config/xtensa/t-xtensa: New file.
14644 * config/xtensa/xtensa-config.h: New file.
14645 * config/xtensa/xtensa-protos.h: New file.
14646 * config/xtensa/xtensa.c: New file.
14647 * config/xtensa/xtensa.h: New file.
14648 * config/xtensa/xtensa.md: New file.
14649 * config.gcc (xtensa-*-elf*): New target.
14650 (xtensa-*-linux*): New target.
14651 * cse.c (canon_hash): Compare rtx pointers instead of register
14652 numbers. This is required for the Xtensa port.
14653 * integrate.c (copy_insn_list): Handle case where the static
14654 chain is in memory and the memory address has to be copied to
14656 * doc/invoke.texi (Option Summary): Add Xtensa options.
14657 (Xtensa Options): New node.
14658 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14660 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14662 * diagnostic.c (internal_error): Do ICE suppression only
14663 when ENABLE_CHECKING is not defined.
14665 * c-typeck.c (require_complete_type): Return error_mark_node
14666 if type is error_mark_node.
14668 2002-01-23 Janis Johnson <janis187@us.ibm.com>
14670 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14671 -Os and issue a warning.
14673 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14675 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14676 current (lack of) need for host configuration by hand.
14678 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14679 references. Documentation of some target macros moved from
14680 hostconfig.texi to tm.texi.
14682 2002-01-23 Will Cohen <wcohen@redhat.com>
14684 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14687 2002-01-23 Kazu Hirata <kazu@hxi.com>
14689 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14692 2002-01-23 Jason Merrill <jason@redhat.com>
14694 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14696 * function.c (assign_parms): Don't put args of inline functions
14697 into registers when not optimizing.
14699 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
14701 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14702 (prologue_use): New pattern.
14703 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14704 preference to gen_rtx_USE.
14705 (thumb_expand_prologue): Use gen_prologue_use in preference to
14707 (thumb_expand_epilogue): Use gen_prologue_use in preference to
14710 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
14712 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14714 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
14717 * doc/extend.texi: Correct documentation of __alignof__.
14719 2002-01-22 Zack Weinberg <zack@codesourcery.com>
14721 * params.h: Rename arguments of DEFPARAM so that it will be
14722 recognized as a translation keyword.
14724 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14726 * extend.texi: Document altivec functions.
14727 Fix N-bit adjectives in X86 builtin documentation.
14729 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14731 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14732 auto_inc_dec values.
14734 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
14736 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14738 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14740 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14742 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14744 2002-01-22 Richard Henderson <rth@redhat.com>
14746 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14747 copy_insn not copy_rtx.
14749 2002-01-23 Alan Modra <amodra@bigpond.net.au>
14751 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14752 "nonzero" as that might add "1" bits. Ensure "constop" is
14753 properly sign extened.
14754 (force_to_mode): Tweak for sign extended constop.
14756 2002-01-22 Richard Henderson <rth@redhat.com>
14758 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14759 for_each_rtx instead of assuming we're already looking at the MEM.
14760 (split_small_symbolic_mem_operand): Likewise.
14761 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14762 * config/alpha/alpha.md (small symbolic memory splitters): Update.
14764 2002-01-22 Richard Henderson <rth@redhat.com>
14766 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14767 sequence number for the literal.
14768 (divmoddi_internal_er): Likewise.
14770 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14773 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14774 in LIBICONV variable.
14775 * configure: Regenerated.
14777 2002-01-22 Krister Walfridsson <cato@df.lth.se>
14779 * dependence.c (build_def_use): Remove array_idx.
14781 * dwarfout.c (last_filename): Remove.
14782 (output_compile_unit_die): Remove last_filename.
14784 2002-01-22 Roger Sayle <roger@eyesopen.com>
14785 Richard Henderson <rth@redhat.com>
14788 * fold-const.c (fold): Optimize unsigned comparisons against
14789 UINT_MAX (and similar unsigned constants).
14791 2002-01-22 Janis Johnson <janis187@us.ibm.com>
14793 * Makefile.in (loop.o): Depend on OPTABS_H.
14794 * loop.c (emit_prefetch_instructions): Check the prefetch operand
14795 against the predicate.
14798 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14799 for the address operand.
14801 2002-01-22 Richard Henderson <rth@redhat.com>
14803 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14805 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14808 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14809 preprocessor flags.
14811 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
14813 * config.gcc (x86_64-*-netbsd*): New target.
14814 * config/i386/netbsd64.h: New file.
14816 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14818 * regrename.c (kill_value): Fix typo.
14820 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14822 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14824 * config/rs6000/rs6000.h: Same.
14826 * function.c (instantiate_virtual_regs): Remove
14827 STARTING_FRAME_PHASE.
14828 (assign_stack_local_1): Same.
14829 Calculate frame phase.
14831 2002-01-22 Nick Clifton <nickc@redhat.com>
14833 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14834 variable declaration to outer scope in order to simplify
14836 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14837 arm_hard_regno_mode_ok.
14838 * config/arm/arm-protos.h: Add a prototype for
14839 arm_hard_regno_mode_ok.
14840 * config/arm/arm.c (soft_df_operand): Remove now redundant
14841 check for DImode values using IP_REGNUM.
14842 (nonimmediate_soft_df_operand): Remove now redundant check for
14843 DImode values using IP_REGNUM.
14844 (arm_hard_regno_mode_ok): New function. New check: make sure
14845 that DImode values are not stored in IP_REGNUM.
14847 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14849 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14851 2002-01-22 Jason Merrill <jason@redhat.com>
14853 * c-semantics.c (genrtl_compound_stmt): Only check nesting
14854 consistency if this COMPOUND_STMT is scoped.
14856 2002-01-22 Kazu Hirata <kazu@hxi.com>
14858 * predict.c: Fix formatting.
14859 * print-tree.c: Likewise.
14860 * protoize.c: Likewise.
14861 * real.h: Likewise.
14863 * sbitmap.h: Likewise.
14864 * scan.c: Likewise.
14865 * sched-deps.c: Likewise.
14866 * sched-vis.c: Likewise.
14867 * sdbout.c: Likewise.
14868 * sibcall.c: Likewise.
14870 * ssa-ccp.c: Likewise.
14871 * ssa-dce.c: Likewise.
14872 * stmt.c: Likewise.
14873 * stor-layout.c: Likewise.
14874 * system.h: Likewise.
14876 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14878 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14879 if fits in bounds of base type.
14881 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14882 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14883 (add_bound_info, default): If can't find a context, make a
14885 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14887 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
14889 * c-typeck.c (parser_build_binary_op): If result from
14890 build_binary_op is ERROR_MARK just return error_mark_node without
14891 further processing.
14893 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
14895 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14896 Split a.out-specific bits into...
14897 * config/netbsd-aout.h: ...this.
14898 * config/netbsd-elf.h: New file.
14899 * config/alpha/netbsd-elf.h: Remove.
14900 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14901 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14902 (STARTFILE_SPEC): Remove redundant definition.
14903 (ENDFILE_SPEC): Likewise.
14904 (LINK_SPEC): Likewise.
14905 (CPP_SPEC): Likewise.
14906 (ASM_SPEC): Likewise.
14907 (LIB_SPEC): Likewise.
14908 (SWITCH_TAKES_ARG): Likewise.
14909 (TARGET_MEM_FUNCTIONS): Likewise.
14910 (CPP_PREDEFINES): Redefine.
14911 (ASM_FINAL_SPEC): Remove redefinition.
14912 (ASM_COMMENT_START): Redefine.
14913 (FUNCTION_PROFILER): Define.
14914 (TARGET_VERSION): Redefine.
14915 Comment and formatting cleanup.
14916 * config/i386/netbsd.h: Include <netbsd-aout.h>.
14917 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14918 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14919 big- or little-endian.
14920 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14921 * config.gcc (*-*-netbsd*): Add definitions common to all
14923 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14924 gnu_ld definitions. Add netbsd-elf.h to and remove
14925 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
14926 tmake_file, and don't lose previous tmake_file contents.
14927 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14928 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14929 gnu_ld definitions. Add netbsd-elf.h to tm_file.
14930 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14931 (mipsel-*-netbsd*): Rename this to...
14932 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
14933 mips/little.h to tm_file for mips*el-*.
14934 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14935 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14936 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14938 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14940 * pa-protos.h (reg_before_reload_operand): New function prototype.
14941 * pa.c (reg_before_reload_operand): New function implementation.
14942 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
14943 contraints to "*m".
14945 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14947 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14949 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14951 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14952 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14953 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14954 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14955 (ENDFILE_SPEC): Undefine.
14956 (STARTFILE_SPEC): Redefine for PA.
14958 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14960 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14962 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
14964 * config.gcc: Add entries to supported PowerPC --with-cpu
14967 2002-01-21 Jakub Jelinek <jakub@redhat.com>
14969 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14970 true for 64-bit mode only SSE registers in 32-bit mode.
14972 2002-01-21 Kazu Hirata <kazu@hxi.com>
14974 * unwind-dw2.c: Fix formatting.
14975 * unwind-dw2-fde.c: Likewise.
14976 * unwind-dw2-fde.h: Likewise.
14977 * unwind-pe.h: Likewise.
14978 * varasm.c: Likewise.
14979 * varray.h: Likewise.
14981 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
14983 Remove workaround for register stack overwrite bug in mmix.
14984 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14985 support for TARGET_REG_STACK_FILL_BUG.
14986 * config/mmix/mmix.h: Remove member has_call_without_parameters.
14987 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14989 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14990 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14991 -mno-reg-stack-fill-bug-workaround.
14992 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14993 machine member has_call_without_parameters.
14994 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14995 -mreg-stack-fill-bug-workaround and
14996 -mno-reg-stack-fill-bug-workaround.
14997 (MMIX Options): Ditto.
14999 2002-01-21 Kazu Hirata <kazu@hxi.com>
15001 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15003 Remove redundant code.
15005 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
15007 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15008 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15009 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15010 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15011 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15012 out target macro definitions and non-target-specific comments
15013 mostly taken from old versions of the manual.
15015 2002-01-20 Kazu Hirata <kazu@hxi.com>
15017 * config/h8300/h8300.h: Fix comment formatting.
15018 * config/ia64/aix.h: Likewise.
15019 * config/ia64/ia64-protos.h: Likewise.
15020 * config/ia64/ia64.c: Likewise.
15021 * config/ia64/ia64.h: Likewise.
15022 * config/ia64/ia64intrin.h: Likewise.
15023 * config/ia64/linux.h: Likewise.
15024 * config/ia64/unwind-aix.c: Likewise.
15025 * config/ia64/unwind-ia64.c: Likewise.
15027 2002-01-20 Kazu Hirata <kazu@hxi.com>
15029 * config/h8300/h8300.c: Revise comments about shift code.
15031 2002-01-20 Kazu Hirata <kazu@hxi.com>
15033 * config/h8300/h8300.c (function_arg): Update a comment.
15035 2002-01-20 Kazu Hirata <kazu@hxi.com>
15037 * config/h8300/h8300.md: Update the comments at the beginning
15040 2002-01-20 Kazu Hirata <kazu@hxi.com>
15042 * config/i370/i370.c: Fix comment formatting.
15043 * config/i370/i370.h: Likewise.
15044 * config/i370/i370.md: Likewise.
15045 * config/i370/linux.h: Likewise.
15047 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15049 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15051 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15052 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15053 in incomplete case.
15055 2002-01-20 Graham Stott <grahams@redhat.com>
15057 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15059 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
15061 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15063 2002-01-19 Tom Rix <trix@redhat.com>
15065 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15067 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
15069 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15071 * function.c (assign_stack_local_1): Adjust x_frame_offset with
15072 STARTING_FRAME_PHASE.
15073 (STARTING_FRAME_PHASE): New.
15074 (instantiate_virtual_regs): Check saneness of
15075 STARTING_FRAME_PHASE.
15077 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15079 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
15081 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15083 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
15085 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15086 be used for bootstrapping GCC 3.0.
15088 2002-01-18 Kazu Hirata <kazu@hxi.com>
15090 * config/h8300/h8300.md: Fix an insn length.
15092 2002-01-18 Kazu Hirata <kazu@hxi.com>
15094 * bitmap.h: Fix comment formatting.
15095 * combine.c: Likewise.
15096 * cppfiles.c: Likewise.
15097 * c-pragma.h: Likewise.
15098 * c-typeck.c: Likewise.
15100 * dwarf2out.c: Likewise.
15101 * function.c: Likewise.
15103 * genattrtab.c: Likewise.
15104 * gthr-win32.h: Likewise.
15105 * haifa-sched.c: Likewise.
15106 * predict.c: Likewise.
15107 * rtlanal.c: Likewise.
15109 * unwind-dw2-fde.h: Likewise.
15110 * unwind-pe.h: Likewise.
15111 * vmsdbgout.c: Likewise.
15113 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15115 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15116 if type_required and passed decl.
15118 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
15120 * config.gcc (cpu_type): Include altivec.h in powerpc
15124 * config/rs6000/altivec.h: New.
15126 2002-01-17 David Edelsohn <edelsohn@gnu.org>
15128 * doc/install.texi (*-ibm-aix*): Update assembler and exception
15129 handling information.
15130 * doc/trouble.texi (Interoperation): Add libstdc++ information
15132 (Misunderstandings): Add template instantiation and static template
15133 member information for AIX.
15135 2002-01-17 Jason Merrill <jason@redhat.com>
15137 * dbxout.c (dbxout_type): Support const and volatile.
15139 * except.c (add_partial_entry): Remove backwards compatibility code.
15140 (end_protect_partials): Likewise.
15142 2002-01-17 Jakub Jelinek <jakub@redhat.com>
15144 * config/ia64/ia64.md (prologue_use): New.
15145 * config/ia64/ia64.c (ia64_expand_prologue): Use
15146 gen_prologue_use instead of gen_rtx_USE.
15147 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15148 as CODE_FOR_pred_rel_mutex.
15149 (ia64_sched_reorder2): Likewise.
15151 2002-01-16 Eric Christopher <echristo@redhat.com>
15153 * config/mips/r3900.h: Reformat.
15154 (SUBTARGET_CPP_SIZE_SPEC): Remove.
15155 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15156 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15157 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15158 * config/mips/t-elf: Remove mips3 multilib.
15160 2002-01-16 H.J. Lu <hjl@gnu.org>
15162 * config/mips/linux.h: Include "mips/abi64.h".
15164 2002-01-16 H.J. Lu <hjl@gnu.org>
15166 * config/mips/t-linux: New.
15168 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15170 * config/mips/linux.h: Don't include "gofast.h".
15171 (INIT_SUBTARGET_OPTABS): Removed.
15173 2002-01-16 Kazu Hirata <kazu@hxi.com>
15175 * config/h8300/h8300-protos.h: Replace emit_a_shift with
15177 * config/h8300/h8300.c: Likewise.
15178 * config/h8300/h8300.md: Likewise.
15180 2002-01-16 Kazu Hirata <kazu@hxi.com>
15182 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15183 spaces after an opcode name.
15184 (pushqi1_h8300hs): Likewise.
15185 (pushhi1_h8300hs): Likewise.
15187 2002-01-16 Kazu Hirata <kazu@hxi.com>
15189 * doc/extend.texi: Replace "option" with "attribute"
15192 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15194 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15195 (and:DI () (const_int -8)).
15196 (split_small_symbolic_mem_operand): Split
15197 (mem (and:DI () (const_int -8)).
15199 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15202 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15203 same way as TYPE_IMUL.
15204 (ultrasparc_sched_reorder): Likewise.
15205 * config/sparc/sparc.md (type): Add comment to update
15206 ultrasparc_sched_reorder when making changes.
15208 2002-01-16 Kazu Hirata <kazu@hxi.com>
15210 * doc/invoke.texi: Change the dump file name of block
15211 reordering pass from 28.bbro to 29.bbro.
15212 Mention -dk option.
15214 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
15216 * i386.md (minsf splitter): Fix pasto.
15218 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15220 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15221 to frame pointer initialisation instruction.
15222 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15223 initialisation instruction.
15224 (soft_df_operand): Do not accept the IP register.
15225 (nonimmediate_soft_df_operand): Do not accept the IP register.
15227 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15230 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15231 MASK_V8 being both set.
15233 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
15235 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15236 insn for GOT register; add REG_MAYBE_DEAD notes instead.
15237 config/s390/s390.md (call, call_value): Add GOT register to
15238 CALL_INSN_FUNCTION_USAGE where needed.
15239 (call_exp, call_value_exp): New.
15241 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15243 * config/arm/arm.c: General formatting tidy up.
15245 2002-01-16 Graham Stott <grahams@redhat.com>
15247 * calls.c (try_to_integrate): Use "(size_t)" intermediate
15248 cast and when casting an integer literal to "rtx" pointer.
15249 (expand_call): Likewise.
15250 * flow.c (try_pre_increment): Likewise.
15251 (find_use_as_address): Likewise.
15252 * integrate.c (expand_iline_function): Likewise.
15253 * regmove.c (try_auto_increment): Likewise.
15255 2002-01-16 Graham Stott <grahams@redhat.com>
15257 * sched-rgn.c (passed): Use sbitmap_free.
15258 (header): Likewise.
15260 (in_queue): Likewise.
15261 (in_stack): Likewise.
15263 2002-01-15 Eric Christopher <echristo@redhat.com>
15265 * flow.c (propagate_one_insn): Change to use fatal_insn.
15267 2002-01-15 Kazu Hirata <kazu@hxi.com>
15269 * expmed.c (extract_fixed_bit_field): Remove unused code.
15270 * system.h: Poison SLOW_ZERO_EXTEND.
15271 * doc/tm.texi: Remove.
15272 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15273 * config/arm/arm.h: Likewise.
15274 * config/avr/avr.h: Likewise.
15275 * config/clipper/clipper.h: Likewise.
15276 * config/convex/convex.h: Likewise.
15277 * config/d30v/d30v.h: Likewise.
15278 * config/dsp16xx/dsp16xx.h: Likewise.
15279 * config/elxsi/elxsi.h: Likewise.
15280 * config/fr30/fr30.h: Likewise.
15281 * config/h8300/h8300.h: Likewise.
15282 * config/i370/i370.h: Likewise.
15283 * config/i386/i386.h: Likewise.
15284 * config/m68k/m68k.h: Likewise.
15285 * config/mips/mips.h: Likewise.
15286 * config/ns32k/ns32k.h: Likewise.
15287 * config/pdp11/pdp11.h: Likewise.
15288 * config/pj/pj.h: Likewise.
15289 * config/s390/s390.h: Likewise.
15290 * config/sh/sh.h: Likewise.
15291 * config/stormy16/stormy16.h: Likewise.
15292 * config/v850/v850.h: Likewise.
15293 * config/vax/vax.h: Likewise.
15294 * config/we32k/we32k.h: Likewise.
15296 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15298 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15299 (altivec_lvsl): Change constraint to b.
15300 (altivec_lvsr): Same.
15301 (altivec_lvebx): Same.
15302 (altivec_lvehx): Same.
15303 (altivec_lvewx): Same.
15304 (altivec_lvxl): Same.
15305 (altivec_lvx): Same.
15306 (altivec_stvx): Add parallel.
15307 (altivec_stvxl): Same.
15308 (altivec_stvehx): Same.
15309 (altivec_stvebx): Same.
15310 (altivec_stvebx): Same.
15312 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15314 * config.gcc: Change altivec.h to altivec-defs.h.
15316 * config/rs6000/altivec.h: Delete.
15318 * config/rs6000/altivec-defs.h: Add.
15320 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15322 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15325 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15326 less than or equal to eight bytes.
15328 * vax.md (andsi3): Remove constraints and change SET destination
15329 operand type to nonimmediate_operand.
15330 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
15331 when it is a CONST_INT.
15333 2002-01-15 Jason Merrill <jason@redhat.com>
15335 * c-common.def (FILE_STMT): New code.
15336 * c-common.c (statement_code_p): It's a statement.
15337 * c-common.h (stmt_tree_s): Add x_last_filename.
15338 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15339 (last_expr_filename): New macro.
15340 * c-semantics.c (begin_stmt_tree): Initialize it.
15341 (add_stmt): If the filename changed, also insert a
15343 (expand_stmt): Handle seeing one.
15345 2002-01-15 Eric Christopher <echristo@redhat.com>
15347 * flow.c (propagate_one_insn): Add error message and print out
15348 insn for debugging.
15350 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15352 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15353 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15354 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15355 TRAMPOLINE_ALIGNMENT.
15356 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
15358 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15359 PCC_BITFIELD_TYPE_MATTERS.
15360 * config/interix.h (STDC_VALUE): Remove. Use
15361 STDC_0_IN_SYSTEM_HEADERS.
15362 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15363 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15364 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15366 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15368 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15369 not work on this platform currently.
15371 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15373 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15374 readonly_warning in _().
15376 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15378 * gcc.c (delete_if_ordinary): Backout previous change.
15380 2002-01-15 Kazu Hirata <kazu@hxi.com>
15382 * config/h8300/h8300.c (print_operand): Remove support for
15383 unused operand characters.
15385 * read-rtl.c: Fix formatting.
15386 * real.c: Likewise.
15387 * recog.c: Likewise.
15388 * regclass.c: Likewise.
15389 * regmove.c: Likewise.
15390 * reg-stack.c: Likewise.
15391 * reload1.c: Likewise.
15392 * rtlanal.c: Likewise.
15394 2002-01-15 Kazu Hirata <kazu@hxi.com>
15396 * config/i386/i386.c: Fix formatting.
15398 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15400 * c-typeck.c (process_init_element): Don't save_expr
15401 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15403 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15405 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15406 emit optional traceback table if optimize_size or TARGET_ELF.
15407 * config/rs6000/rs6000.md (prefetch): New.
15409 2002-01-15 Andreas Jaeger <aj@suse.de>
15411 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15413 2002-01-15 Kazu Hirata <kazu@hxi.com>
15415 * mips-tfile.c: Fix formatting.
15417 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15419 * unroll.c (final_reg_note_copy): Fix previous commit.
15421 2002-01-14 Kazu Hirata <kazu@hxi.com>
15423 * config/h8300/h8300-protos.h: Remove the prototype for
15425 * config/h8300/h8300.c (eq_operator): Remove.
15427 2002-01-14 Richard Henderson <rth@redhat.com>
15429 * config/i386/i386.md (prefetch): Tidy.
15430 (prefetch_3dnow): Fix locality operand.
15432 2002-01-14 Richard Henderson <rth@redhat.com>
15434 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15435 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15437 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
15439 * reload1.c (reload_combine): Pass reg_sum replacement through
15440 copy_rtx in loop performing multiple changes.
15442 2002-01-14 Jakub Jelinek <jakub@redhat.com>
15444 * except.c (remove_unreachable_regions): New.
15445 (free_eh_status): Clear exception_handler_labels.
15446 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15447 (find_exception_handler_labels): Don't add the same label more than
15449 (remove_exception_handler_label): Don't die if
15450 find_exception_handler_labels hasn't been called for the current
15453 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
15455 * toplev.c (rest_of_compilation): Rebuild jump labels after
15458 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
15460 * doc/extend.texi: Move documentation of X86 built-in functions
15462 * doc/invoke.texi: From here.
15463 * doc/sourcebuild.texi: Document location of documentation for
15464 machine built-in functions.
15466 2002-01-13 Christopher Faylor <cgf@redhat.com>
15468 * cppfiles.c (TEST_THRESHOLD): New macro.
15469 (SHOULD_MMAP): Ditto.
15470 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15473 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
15475 * unroll.c (final_reg_note_copy): Properly handle
15477 (unroll_loops): Fix LOOP_CONDITION heuristics.
15479 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
15481 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15482 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15484 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
15486 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15489 2002-01-14 Tom Rix <trix@redhat.com>
15491 * config/rs6000/rs6000.md: Fix typo with sradi.
15493 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15495 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15496 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15497 (clrstrdi, clrstrsi): Adapt callers.
15499 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15501 (movti splitter): Never use register 0 as base register.
15503 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15505 * combine.c (simplify_shift_const): Always generate new rtx
15506 for shift expression instead of reusing given expression.
15508 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15510 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15511 alpha_legitimize_address unless mode is Pmode.
15513 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15515 * doc/md.texi (Modifiers): Document the '*' constraint for the
15518 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15519 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15522 2002-01-13 Richard Henderson <rth@redhat.com>
15524 * reload.c (find_reloads): Use a hard reg destination as reload reg
15525 for an input reload of the source.
15527 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15529 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15532 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15534 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15535 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15537 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15539 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15541 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15543 2002-01-12 Tom Rix <trix@redhat.com>
15545 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15548 2002-01-12 Richard Henderson <rth@redhat.com>
15550 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15552 * doc/invoke.texi: Update Alpha options.
15554 * doc/invoke.texi: Update i386 built-in function lists.
15556 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
15558 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15559 referencing outside.
15561 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15563 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15564 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15565 offsets, and change line folding.
15566 * optabs.c (expand_binop): Remove warnings.
15567 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15569 2002-01-12 Graham Stott <grahams@redhat.com>
15571 * attribs.c (handle_deprecated_attribute): constify WHAT.
15572 * diagnostic.c (warn_deprecated_use): Add braces, fixes
15573 dangling else warning and constify WHAT.
15574 * except.h (struct function, struct inline_remap): Move
15575 struct tag forward defs before all prototypes.
15576 (duplicate_eh_regions): Whitespace.
15578 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
15580 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15581 MODE_BASE_REG_CLASS.
15582 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15584 2002-01-12 Richard Henderson <rth@redhat.com>
15586 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15587 (ix86_expand_vector_move): New.
15588 (bdesc_2arg): Remove andps, andnps, orps, xorps.
15589 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
15590 Remove old prefetch builtins. Special case the logicals removed above.
15591 (ix86_expand_builtin): Likewise.
15592 (safe_vector_operand): Use V4SFmode, not TImode.
15593 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
15594 (ix86_expand_timode_binop_builtin): New.
15595 * config/i386/i386-protos.h: Update.
15596 * config/i386/i386.h (enum ix86_builtins): Update.
15597 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15598 Use ix86_expand_vector_move in vector move expanders.
15599 (movti_internal, movti_rex64): Add xorps alternative.
15600 (sse_clrv4sf): Rename and adjust from sse_clrti.
15601 (prefetch): Don't work so hard.
15602 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15603 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15604 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15606 2002-01-11 Richard Henderson <rth@redhat.com>
15608 * config/i386/mmintrin.h: New file.
15609 * config/i386/xmmintrin.h: New file.
15610 * config.gcc (i?86-*-*): Add extra_headers.
15611 * simplify-rtx.c (simplify_unary_operation): Handle saturating
15613 (simplify_binary_operation): Handle saturating arithmetic codes.
15614 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15615 not the lowpart subreg.
15616 (ix86_expand_builtin): Return a TImode dummy register instead of 0
15618 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15620 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15622 * conflict.c (conflict_graph_compute): Free regsets when finished.
15623 * ssa.c (compute_coalesced_reg_partition): Likewise.
15625 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15627 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15628 every where we allocate a register.
15630 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15632 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15633 * lcm.c (compute_earliest, compute_farthest): Likewise.
15635 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15637 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15639 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15641 * doc/rtl.texi (Insns): Fix 2 typos.
15643 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
15645 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
15646 options. Use @table @gcctabopt for MMIX options. Add index
15647 entries for MMIX options. Start new paragraph with first
15648 heading of the machine-dependent options.
15650 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
15653 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15654 * combine.c (force_to_mode): Same.
15655 * reload1.c (clear_reload_reg_in_use): Same.
15657 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
15659 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15662 2002-01-11 Andreas Jaeger <aj@suse.de>,
15663 Brad Lucier <lucier@math.purdue.edu>
15665 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15668 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
15670 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15671 Protect with IN_LIBGCC.
15672 (LINK_EH_SPEC): Add required trailing space.
15674 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
15676 * c-tree.h: Move function declarations so that they are listed
15677 under the filename which contains them.
15678 (check_identifier, finish_decl_top_level,
15679 lookup_name_current_level_global, shadow_record_fields): Remove.
15681 2002-01-11 Andreas Jaeger <aj@suse.de>
15683 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15686 2002-01-10 Richard Henderson <rth@redhat.com>
15688 * config/alpha/alpha.c (print_operand): Add 'J'.
15689 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15690 new operand with the sequence number for the lituse. When splitting
15691 the insns, use gen_movdi_er_high_g and generate a sequence number.
15692 (gen_movdi_er_high_g): Print the sequence number if non-zero.
15694 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
15696 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15697 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15699 (altivec_expand_builtin): Same.
15700 (altivec_expand_stv_builtin): New.
15702 * config/rs6000/rs6000.h (rs6000_builtins): Same.
15704 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15705 ("altivec_lvehx"): New.
15706 ("altivec_lvewx"): New.
15707 ("altivec_lvxl"): New.
15708 ("altivec_lvx"): New.
15709 ("altivec_stvx"): New.
15710 ("altivec_stvebx"): New.
15711 ("altivec_stvehx"): New.
15712 ("altivec_stvewx"): New.
15713 ("altivec_stvxl"): New.
15715 2002-01-10 Richard Henderson <rth@redhat.com>
15717 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15718 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
15719 care not to delete instructions twice.
15721 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15723 * toplev.c: Don't declare environ (it's not used anywhere).
15724 * configure.in: Don't check for declaration of environ.
15725 * config/i386/xm-mingw32.h: Don't #define environ.
15726 * config.in, configure: Regenerate.
15728 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15730 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15731 * configure: Regenerate.
15733 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15734 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15735 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15737 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15738 LIMITS_H_TEST here, not in m68k/x-next.
15739 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15740 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15742 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15743 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15744 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
15746 * config/i386/x-djgpp: Renamed i386/t-djgpp.
15747 * config/m88k/x-dolph: Renamed m88k/t-dolph.
15748 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15749 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
15750 replacement of quadlib.asm with quadlib.c.
15752 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15753 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15754 config/rs6000/xm-beos.h: Delete file.
15756 * config.gcc: Update to match above changes.
15758 2002-01-10 Kazu Hirata <kazu@hxi.com>
15760 * config/h8300/h8300.h: Fix comment typos.
15761 * config/h8300/h8300.md: Likewise.
15762 * config/h8300/lib1funcs.asm: Likewise.
15764 2002-01-10 Dale Johannesen <dalej@apple.com>
15766 PR optimization/5269
15767 * unroll.c (precondition_loop_p): Make *increment be the correct
15768 sign when n_iterations known, to avoid confusing caller.
15770 2002-01-10 Kazu Hirata <kazu@hxi.com>
15772 * doc/extend.texi (deprecated): Fix a typo.
15774 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
15776 * basic-block.h (update_br_prob_note): Declare.
15777 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15778 (try_forward_edges): Care negative frequencies and update note.
15779 (outgoing_edges_match): Tweek conditional merging heuristics.
15780 (try_crossjump_to_edge): use update_br_prob_note.
15781 * cfglayout.c (fixup_reorder_chain): Likewise.
15782 * cfrtl.c (update_br_prob_note): New.
15783 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15785 * i386.c (ix86_decompose_address): Return -1 if address contains
15787 (legitimate_address_p): Require ix86_decompose_address to return 1.
15789 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15790 (cprop_insn): Likewise.
15792 2002-01-10 Kazu Hirata <kazu@hxi.com>
15794 * toplev.c: Fix formatting.
15795 * tree.c: Likewise.
15796 * tree-dump.c: Likewise.
15797 * unroll.c: Likewise.
15798 * unwind-dw2.c: Likewise.
15799 * unwind-dw2-fde.c: Likewise.
15800 * unwind-dw2-fde-glibc.c: Likewise.
15801 * unwind-sjlj.c: Likewise.
15803 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15805 * doc/invoke.texi: Document PDP-11 options.
15807 2002-01-10 Kazu Hirata <kazu@hxi.com>
15809 * config/h8300/h8300.h: Fix formatting.
15811 2002-01-10 Ira Ruben <ira@apple.com>
15813 Add __attribute__ ((deprecated)).
15814 * extend.texi: Document __attribute__ ((deprecated)).
15815 * invoke.texi: Document -Wno-deprecated-declarations.
15816 * testsuite/g++.dg/other/deprecated.C: New C++ test.
15817 * testsuite/gcc.dg/deprecated.c: New C test.
15818 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15819 (c_common_attribute_table): Add "deprecated" entry.
15820 (handle_deprecated_attribute): New function.
15821 * c-decl.c (deprecated_states): New enum.
15822 deprecated_state: State of "deprecated" handling.
15823 (start_decl): Set deprecated_state based on attributes.
15824 (grokdeclarator): Test for deprecated uses, propagate attribute.
15825 * c-typeck.c (build_component_ref): Test for deprecated fields.
15826 (build_external_ref): Test for deprecated primaries.
15827 * diagnostic.c (warn_deprecated_use) New function to issue
15828 warnings about __attribute__ ((depricated)) references.
15829 * flags.h (warn_deprecated_decl): Extern declared for
15830 -W[no-]deprecated-declarations option.
15831 * print-tree.c (print_node): Show deprecated flag status.
15832 * toplev.c (warn_deprecated_decl): Defined.
15833 (W_options): Added "deprecated-declaration".
15834 * toplev.h (warn_deprecated_use): Extern declared.
15835 * tree.h (struct tree_common): Define deprecated_flag.
15836 (TREE_DEPRECATED): New macro to access flag.
15837 * cp/call.c (build_call): Test for deprecated calls.
15838 * cp/class.c (add_implicitly_declared_members): Set global
15839 flag to tell grokdeclarator to not issue deprecated warnings.
15840 * cp/cp-tree.h: Add extern for adding_implicit_members.
15841 * cp/decl.c (deprecated_states): New enum.
15842 (start_decl): Set deprecated_state based on attributes.
15843 (grokdeclarator): Test for deprecated uses, propagate attribute.
15844 * cp/lex.c (do_identifier): Test for deprecated primaries.
15845 * cp/typeck.c (build_component_ref): Test for deprecated fields.
15847 2002-01-10 Ira Ruben <ira@apple.com>
15849 Fix to assign attributes to inline member functions.
15850 * cp/decl.c (start_method): Handle attrlist.
15852 2002-01-10 Kazu Hirata <kazu@hxi.com>
15854 * combine.c (expand_field_assignment): Use subreg_lsb().
15856 2002-01-10 David Edelsohn <edelsohn@gnu.org>
15858 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15859 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15860 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15861 Recurse for any operand of AND as long as constant is non-zero.
15863 2002-01-10 Kazu Hirata <kazu@hxi.com>
15865 * config/h8300/h8300.md: Remove constraints from expanders.
15867 2002-01-10 Kazu Hirata <kazu@hxi.com>
15869 * varasm.c: Fix formatting.
15870 * varray.c: Likewise.
15871 * vmsdbgout.c: Likewise.
15872 * xcoffout.c: Likewise.
15874 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
15876 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15877 update edge probabilities to match.
15879 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15881 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15883 * doc/languages.texi, doc/sourcebuild.texi: New files.
15884 * doc/configfiles.texi: Make a subsubsection. Update.
15885 * doc/configterms.texi: Add @node. Remove warning that this isn't
15886 instructions for building GCC.
15887 * doc/makefile.texi: Make a subsection.
15888 * doc/gccint.texi: Update.
15890 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
15892 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15894 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
15896 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15898 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
15900 * optabs.c (expand_fix): Look for wider integer modes first.
15902 * i386.md (mov?f): Avoid the fake const double trick for medium
15904 (min?f*/max?f*): Prohibit memory operands for i387 variant.
15905 (fop_df_4): Disable for SSE compilation.
15907 2002-01-10 Graham Stott <grahams@redhat.com>
15909 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15910 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15912 2002-01-10 Richard Henderson <rth@redhat.com>
15914 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15916 2002-01-10 Richard Henderson <rth@redhat.com>
15918 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15919 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
15921 2002-01-10 Kazu Hirata <kazu@hxi.com>
15923 * combine.c (can_combine_p): Fix a comment typo.
15925 2002-01-09 Zack Weinberg <zack@codesourcery.com>
15927 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15928 empty list correctly. Change loop index $t to $f for
15929 consistency with rest of Makefile.
15931 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
15933 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15934 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15936 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15937 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15938 (altivec_init_builtins): Same.
15939 (altivec_expand_unop_builtin): Return NULL_RTX on error.
15940 (altivec_expand_binop_builtin): Same.
15941 (altivec_expand_ternop_builtin): Same.
15944 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15945 ("altivec_vctuxs"): Fix typo.
15946 ("altivec_vnmsubfp"): Same.
15947 ("altivec_dssall"): New.
15948 ("altivec_mfvscr"): New.
15949 ("altivec_dss"): New.
15950 ("altivec_lvsl"): New.
15951 ("altivec_lvsr"): New.
15952 ("altivec_dstt"): New.
15953 ("altivec_dstst"): New.
15954 ("altivec_dststt"): New.
15955 ("altivec_dst"): New.
15957 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15958 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15960 2002-01-09 Richard Henderson <rth@redhat.com>
15962 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15964 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
15966 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15968 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15970 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15972 2002-01-09 Kazu Hirata <kazu@hxi.com>
15974 * read-rtl.c: Fix formatting.
15975 * real.c: Likewise.
15976 * regclass.c: Likewise.
15977 * regrename.c: Likewise.
15978 * reg-stack.c: Likewise.
15979 * reload1.c: Likewise.
15980 * reload.c: Likewise.
15983 2002-01-09 Kazu Hirata <kazu@hxi.com>
15985 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15986 to extract items in the expr_list chain.
15988 2002-01-09 Richard Henderson <rth@redhat.com>
15990 * config/vax/vax.c (vax_rtx_cost): Never abort.
15992 * config/vax/vax.h (REAL_ARITHMETIC): Define.
15994 2002-01-09 Jan Hubicka <jh@suse.cz>
15996 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15998 2002-01-09 Richard Henderson <rth@redhat.com>
16000 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16001 Unify code from various alternatives.
16003 2002-01-09 Richard Henderson <rth@redhat.com>
16005 * regrename.c (copy_value): Ignore the copy if the source register
16006 is present in the value chain with a narrower mode.
16008 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16010 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16011 for the c4x target. Also improve layout.
16013 2002-01-09 Richard Henderson <rth@redhat.com>
16015 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16016 * config/m32r/m32r.md (and ior xor splitters): Swap operands
16017 to match insn patterns.
16019 2002-01-09 Richard Henderson <rth@redhat.com>
16021 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16022 (copyprop_hardreg_forward_1): Likewise.
16024 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
16026 * pa.md (decrement_and_branch_until_zero): Change predicate for
16027 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16029 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
16031 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16032 gets undefined. For Darwin.
16034 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16036 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16038 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16040 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16042 2002-01-08 Richard Henderson <rth@redhat.com>
16044 * regrename.c (copy_value): Ignore overlapping copies.
16046 2002-01-08 Richard Henderson <rth@redhat.com>
16048 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16049 as needed to avoid shared structure.
16051 2002-01-08 Kazu Hirata <kazu@hxi.com>
16053 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16056 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16058 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16059 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16060 documentation of obsolete macros.
16061 * system.h: Poison these macros.
16062 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16063 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16064 config/c4x/c4x.h, config/clipper/clipper.h,
16065 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16066 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16067 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16068 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16069 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16070 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16071 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16072 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16073 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16074 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16075 config/sparc/sparc.h, config/stormy16/stormy16.h,
16076 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16077 definitions and commented out definitions of obsolete macros.
16078 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16079 of MAX_INT_TYPE_SIZE.
16081 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16083 * config/s390/s390.c (s390_preferred_reload_class): Never
16084 return ADDR_REGS if it isn't a subset of the given class.
16085 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16086 FP_REGS, but all superclasses as well.
16088 * config/s390/s390.c (s390_function_profiler): Fix thinko.
16090 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16091 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16092 must not be a const_int.
16094 2002-01-08 Richard Henderson <rth@redhat.com>
16096 * Makefile.in (toplev.o): Depend on options.h.
16097 (gcc.o): Depend on specs.h.
16099 2002-01-08 Jakub Jelinek <jakub@redhat.com>
16101 * expr.c (store_expr): Convert VOIDmode constants back to target's
16104 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16106 * doc/invoke.texi: Markup gcc as @command. Refer to
16107 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16108 of http://gcc.gnu.org/thanks.html.
16110 2002-01-08 Dale Johannesen <dalej@apple.com>
16112 * config/rs6000/rs6000.md: Add missing int register
16113 target case to movdf_low.
16115 2002-01-08 Zack Weinberg <zack@codesourcery.com>
16117 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16118 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
16119 (cppinit.o): Depend on except.h.
16120 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16121 s-specs): New rules.
16123 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16124 Don't create specs.h/options.h/gencheck.h here. Remove
16125 unnecessary variable settings from last argument of AC_OUTPUT.
16126 * config.in, configure: Regenerate.
16127 * intl.c: Hardcode package name as "gcc".
16129 * cppinit.c: Include except.h.
16130 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16132 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16133 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16134 (!)USING_SJLJ_EXCEPTIONS.
16135 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16137 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16139 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16140 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16141 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16142 documentation of obsolete macros.
16143 * system.h: Poison these macros.
16144 * config/d30v/d30v.h, config/ns32k/encore.h,
16145 config/stormy16/stormy16.h: Remove definitions and commented out
16146 definitions of obsolete macros.
16148 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
16150 * objc/objc-act.c (handle_class_ref): Mark the declaration of
16151 %sobjc_class_ref_%s as used - to prevent unwanted compiler
16154 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16156 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16157 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16158 to insn adjusting stack/frame pointer.
16159 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16160 accept operands that cause the insn to be non-splittable.
16162 2002-01-08 Graham Stott <grahams@redhat.com>
16164 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16165 (C_TYPE_FIELDS_VOLATILE): Likewise.
16166 (C_TYPE_BEING_DEFINED): Likewise.
16167 (C_IS_RESERVED_WORD): Likewise.
16168 (C_TYPE_VARIABLE_SIZE): Likewise.
16169 (C_DECL_VARIABLE_SIZE): Likewise.
16170 (C_MISSING_PROTOTYPE_WARNED): Likewise.
16171 (C_SET_EXP_ORIGINAL_CODE): Likewise.
16172 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16174 (C_DECL_ANTICIPATED): Likewise.
16175 (c_build_type_variant): Add parenthesis.
16177 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16179 * gcc.c (option_map): Remove --version.
16180 (process_command): Handle -fversion following the GNU Coding
16181 Standards. Partially addresses PR other/704.
16183 2002-01-08 Graham Stott <grahams@redhat.com>
16185 * combine.c (combine_instructions): Fix typo.
16187 2002-01-08 Graham Stott <grahams@redhat.com>
16189 * debug.h: Use "tree" and "rtx" throughout.
16191 * debug.c: Likewise.
16193 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
16195 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16196 constant pool, use the pool's version of the symbol instead.
16198 2002-01-07 Richard Henderson <rth@redhat.com>
16200 * regrename.c (find_oldest_value_reg): Ignore the value chain if
16201 the original register was copied in a mode with a fewer number of
16202 hard registers than the desired mode.
16203 (copyprop_hardreg_forward_1): Likewise.
16204 (debug_value_data): Fix loop test.
16205 * toplev.c (parse_options_and_default_flags): Reenable
16206 -fcprop-registers at -O1.
16208 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16210 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16211 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16213 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16216 * config/rs6000/rs6000.md: Add altivec predicate patterns.
16218 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
16220 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16221 (pa_output_function_prologue): Output local label at the beginning of
16222 the prologue when profiling.
16223 (hppa_profile_hook): Use the local label rather than the function label.
16224 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16226 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16228 * config/rs6000/rs6000.c (print_operand): Remove extra space.
16229 (altivec_expand_unop_builtin): Fix thinko.
16230 (altivec_expand_binop_builtin): Same.
16231 (altivec_expand_ternop_builtin): Same.
16232 (altivec_expand_builtin): Same.
16234 2002-01-07 Richard Henderson <rth@redhat.com>
16236 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16238 2002-01-07 Jason Merrill <jason@redhat.com>
16240 * unwind-dw2.c (execute_cfa_program): Use < again.
16242 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16244 * predict.c (combine_predictions_for_insn): Avoid division by zero.
16246 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16248 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16249 Don't allow -1 - x -> ~x simplifications in the first pass.
16251 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16253 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16255 (altivec_expand_binop_builtin): Same.
16256 (altivec_expand_unop_builtin): Same.
16257 (print_operand): Fix typo.
16258 (bdesc_1arg): Add vupk* variants.
16260 * rs6000.h (rs6000_builtins): Add vupk* enums.
16262 * rs6000.md: Add altivec_vupk* variants.
16264 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
16266 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16267 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16268 and last update dates.
16270 2002-01-07 Janis Johnson <janis187@us.ibm.com>
16272 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16274 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
16276 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16277 * config/avr/avr.h (CPP_SPEC): Likewise.
16278 (LINK_SPEC): Likewise.
16279 (CRT_BINUTILS_SPECS): Likewise.
16280 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16281 * doc/invoke.texi (AVR Options): Document them.
16283 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
16285 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16288 2002-01-07 Graham Stott <grahams@redhat.com>
16290 * config/i386/i386.h: Update copyright date.
16291 (HALF_PIC_PTR): Add parenthesis.
16292 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16293 (CONSTANT_ALIGNMENT): Add parenthesis.
16294 (DATA_ALIGNMENT): Likewise.
16295 (LOCAL_ALIGNMENT): Likewise.
16296 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16297 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16298 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16299 (HARD_REGNO_NREGS): Add paranethesis.
16300 (VALID_SSE_REG_MODE): Whitespace.
16301 (VALID_MMX_REG_MODE): Whitespace.
16302 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16303 (ix86_hard_regno_mode_ok): Add parenthesis.
16304 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16305 (RETURN_IN_MEMORY): Whitespace.
16306 (N_REG_CLASSES): Add parenthesis.
16307 (INTEGER_CLASS_P): Add parenthesis and wrap.
16308 (FLOAT_CLASS_P): Likewise.
16309 (SSE_CLASS_P): Likewise.
16310 (MMX_CLASS_P): Likewise.
16311 (MAYBE_INTEGER_CLASS_P): Likewise.
16312 (MAYBE_FLOAT_CLASS_P): Likewise.
16313 (MAYBE_SSE_CLASS_P): Likewise.
16314 (MAYBE_MMX_CLASS_P): Likewise.
16315 (Q_CLASS_P): Likewise.
16316 (GENERAL_REGNO_P): Uppercase macro parameter.
16317 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16318 (FP_REGNO_P): Likewise.
16319 (ANY_FP_REGNO_P): Uppercase macro parameter.
16320 (SSE_REGNO_P): Likewise.
16321 (SSE_REGNO): Likewise.
16322 (SSE_REG_P): Likewise.
16323 (SSE_FLOAT_MODE_P): Likewise.
16324 (MMX_REGNO_P): Likewise.
16325 (MMX_REG_P):Likewise.
16326 (STACK_REG_P): Likewise.
16327 (NON_STACK_REG_P): Likewise.
16328 (STACK_TOP_P): Likewise.
16329 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16330 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16331 (SECONDARY_MEMORY_NEEDED): Likewise.
16332 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16333 (MD_ASM_CLOBBERS): Whitespace and wrap.
16334 (MUST_PASS_IN_STACK): Whitespace and wrap.
16335 (RETURN_POPS_ARGS): Add parenthesis.
16336 (INIT_CUMULATIVE_ARGS): Likewise.
16337 (FUNCTION_ARG): Likewise.
16338 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16339 (SETUP_INCOMING_VARARGS): Likewise.
16340 (BUILD_VA_LIST_TYPE): Add parenthesis.
16341 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16343 (EXPAND_BUILTIN_VA_ARG): Likewise.
16344 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16345 (INITIALIZE_TRAMPOLINE): Add parenthesis.
16346 (INITIAL_ELIMINATION_OFFSET): Likewise.
16347 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16348 (REGNO_OK_FOR_BASE_P): Likewise.
16349 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16350 (REGNO_OK_FOR_DIREG_P): Likewise.
16351 (REG_OK_FOR_INDEX_P): Whitespace.
16352 (REG_OK_FOR_BASE_P): Whitespace.
16353 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16355 (FIND_BASE_TERM): Fix typo.
16356 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
16357 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16358 (SYMBOLIC_CONST; Whitespace.
16359 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
16360 (ENCODE_SECTION_INFO): Whitespace.
16361 (FINALIZE_PIC): Remove do { ... } while (0).
16362 (PROMOTE_MODE): Wrap in do { ... } while (0).
16363 (CONST_COSTS): Whitespace.
16364 (RTX_COSTS): Add paramethesis, whitespace and wrap.
16365 (REGISTER_MOVE_COST): Add parenthesis.
16366 (MEMORY_MOVE_COST): Likewise.
16367 (EXTRA_CC_MODES): Whitespace.
16368 (SELECT_CC_MODE): Add parenthesis and whitespace.
16369 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16370 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16371 (ASM_OUTPUT_LABEL): Add paramethesis.
16372 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16373 (ASM_OUTPUT_REG_POP): Likewise.
16374 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16375 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16377 * config/i386/i386.c: Update copyright.
16378 (CHECK_STACK_LIMIT): Add parenthesis.
16379 (AT_BP): Uppercase macro parameter.
16380 (x86_64_int_parameter_registers): Constify.
16381 (x86_64_int_return_registers): Likewise.
16382 (ix86_compare_op0): Use rtx.
16383 (construct_container): Constify INTREG parameter.
16384 (function_arg): Use rtx.
16386 * diagnostic.h: Update copyright date.
16387 (output_buffer_state): Add parenthesis.
16388 (output_buffer_format_args): Likewise.
16390 * combine.c (combine_instructions): Replace XEXP (links, 0)
16393 2002-01-06 H.J. Lu <hjl@gnu.org>
16395 * cfgcleanup.c (thread_jump): Fix 2 typos.
16397 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16399 * config.gcc: Add support for --enable-altivec.
16401 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16403 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16405 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16407 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16408 __objc_class_name_*.
16410 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16412 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16414 2002-01-06 Richard Henderson <rth@redhat.com>
16416 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16417 nop them out. Increment label reference count for REG_LABEL.
16418 (fill_slots_from_thread): Frob label reference count around
16419 delete_related_insns.
16421 2002-01-05 Richard Henderson <rth@redhat.com>
16423 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16426 2002-01-05 Richard Henderson <rth@redhat.com>
16428 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16429 * integrate.c (output_inline_function): Likewise.
16430 * toplev.c (rest_of_compilation): Do it here instead. Move call
16431 to remove_unnecessary_notes after emitting abstract instance.
16432 Force an emitted nested function to have its parent emited as well.
16433 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16435 (rtl_for_decl_location): Do not look at reload data structures
16436 before reload has run.
16438 2002-01-05 Kazu Hirata <kazu@hxi.com>
16440 * cse.c: Fix formatting.
16441 * dwarf2asm.c: Likewise.
16442 * dwarf2out.c: Likewise.
16443 * explow.c: Likewise.
16444 * expmed.c: Likewise.
16445 * function.c: Likewise.
16446 * gcov.c: Likewise.
16447 * gencheck.c: Likewise.
16448 * genrecog.c: Likewise.
16449 * ggc-common.c: Likewise.
16450 * ggc-page.c: Likewise.
16451 * global.c: Likewise.
16453 2002-01-05 Kazu Hirata <kazu@hxi.com>
16455 * combine.c: Fix formatting.
16457 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
16460 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16462 2002-01-05 David Edelsohn <edelsohn@gnu.org>
16464 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16465 as 1 for __powerpc64__ as well.
16467 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16469 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16472 2002-01-05 Daniel Berlin <dan@dberlin.org>
16474 * lcm.c: Revert change, due to performance regression it causes on
16475 SPEC because it's slightly more conservative (sigh, I hate
16478 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
16480 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16482 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
16484 * doc/cppinternals.texi: Update.
16486 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16488 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16489 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16491 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16492 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16493 kludge for pre-october-14th mmix versions to handle new-found bug
16494 with PUSHJ/PUSHGO and the register stack.
16495 * config/mmix/mmix.h (struct machine_function): Rename member
16496 has_call_value_without_parameters to has_call_without_parameters.
16497 All referers changed.
16498 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16499 TARGET_MASK_BRANCH_PREDICT): New macros.
16500 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16501 -mno-reg-stack-fill-bug-workaround.
16502 * config/mmix/mmix.md ("call"): Set struct machine member
16503 has_call_without_parameters.
16505 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16507 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16509 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16511 * cfgcleanup.c: Include tm_p.h
16512 (mark_effect): Fix handling of hard register; fix handling of SET
16514 2002-01-04 Kazu Hirata <kazu@hxi.com>
16516 * config/h8300/h8300.md (anonymous patterns): Check that
16517 operands are registers before using REGNO on them.
16519 2002-01-03 Roland McGrath <roland@frob.com>
16521 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16523 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16525 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16526 * c-common.h (genrtl_expr_stmt_value): Likewise.
16527 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16528 (expand_expr_stmt_value): Add maybe_last argument.
16529 Don't warn about statement with no effect if it is the last statement
16530 in expression statement.
16531 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16532 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16533 expand_expr_stmt_value.
16534 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16535 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16536 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16537 as maybe_last to expand_expr_stmt_value.
16539 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16541 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16542 be passed in, do not build it.
16543 (c_begin_if_stmt): New function.
16544 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16545 * c-common.h (c_expand_start_cond): Update prototype.
16546 (c_begin_if_stmt): Prototype new function.
16547 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16548 * c-parse.in (if_prefix): Use c_begin_if_stmt,
16549 c_begin_while_stmt and c_finish_while_stmt_cond.
16551 2002-01-04 William Cohen <wcohen@redhat.com>
16553 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16554 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16555 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16556 * config/pa/som.h (ASM_FILE_START): Likewise.
16558 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
16560 * lcm.c: Include df.h.
16561 Add available_transfer_function prototype.
16562 (compute_available): Rework to use iterative dataflow framework.
16563 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16564 with bb_info in df.h
16565 (available_transfer_function): New function.
16567 * Makefile.in (lcm.o): add df.h to dependencies.
16569 2002-01-04 Richard Henderson <rth@redhat.com>
16571 * config/alpha/alpha.c (some_operand): Accept HIGH.
16572 (input_operand): Likewise; accept simple references to globals.
16573 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16574 (alpha_const_double_ok_for_letter_p): Likewise.
16575 (alpha_extra_constraint): Likewise.
16576 (alpha_preferred_reload_class): Likewise. Do not force
16577 symbolic constants to memory.
16578 (alpha_legitimate_address_p): Accept simple references
16579 to small_symbolic_operand.
16580 (alpha_legitimize_address): New arg scratch. Be prepared to be
16581 called when no_new_pseudos. Emit simple symbolic references.
16582 Split integers into low, high, and rest.
16583 (alpha_expand_mov): Use alpha_legitimize_address.
16584 (some_small_symbolic_mem_operand): New.
16585 (split_small_symbolic_mem_operand): New.
16586 * config/alpha/alpha-protos.h: Update.
16587 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16588 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16589 (EXTRA_CONSTRAINT): Likewise.
16590 (PREFERRED_RELOAD_CLASS): Likewise.
16591 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16592 (PREDICATE_CODES): Update.
16593 * config/alpha/alpha.md: New post-reload splitters to convert
16594 simplfied symbolic operands to the form that references $29.
16595 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16596 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16598 2002-01-03 Richard Henderson <rth@redhat.com>
16600 * local-alloc.c (function_invariant_p): Update commentary.
16602 2002-01-04 H.J. Lu <hjl@gnu.org>
16604 * toplev.c (rest_of_compilation): Fix a typo when calling
16607 2002-01-03 Kazu Hirata <kazu@hxi.com>
16609 * c-common.c: Fix formatting.
16610 * diagnostic.c: Likewise.
16611 * doloop.c: Likewise.
16612 * dwarf2out.c: Likewise.
16614 2002-01-03 Kazu Hirata <kazu@hxi.com>
16616 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16617 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16619 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16621 * cpperror.c: Update comments and copyright.
16622 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16623 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16625 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
16627 * collect2.c (main): Use strcmp when testing for "-shared".
16629 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16631 * cppmacro.c: Don't include intl.h. Update comments.
16632 (new_number_token): Allocate enough buffer for 64-bit unsigned
16633 integers; update prototype.
16634 * cppmain.c: Update comments.
16636 2002-01-03 William Cohen <wcohen@redhat.com>
16638 * function.h (struct function): Add profile.
16639 (current_function_profile): New.
16640 doc/extend.texi: Update documentation.
16641 * final.c (final_start_function): Use current_function_profile
16642 instead of profile_flag.
16643 (profile_after_prologue): Likewise.
16644 * function.c (expand_function_start): Likewise.
16645 (expand_function_start): Likewise.
16646 * config/alpha/alpha.c (direct_call_operand):
16647 (alpha_does_function_need_gp): Likewise.
16648 (alpha_expand_prologue): Likewise.
16649 * config/arm/arm.c (arm_expand_prologue): Likewise.
16650 thumb_expand_prologue: Likewise.
16651 * config/d30v/d30v.c (d30v_stack_info): Likewise.
16652 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16653 (fr30_expand_prologue): Likewise.
16654 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16655 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16656 * config/i386/i386.h (FINALIZE_PIC): Likewise.
16657 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16658 * config/i960/i960.c (i960_output_function_prologue): Likewise.
16659 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16660 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16661 (m32r_expand_prologue): Likewise.
16662 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16663 (m88k_expand_prologue): Likewise.
16664 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16665 * config/mips/mips.c (compute_frame_size): Likewise.
16666 (mips_expand_prologue): Likewise.
16667 (mips_can_use_return_insn): Likewise.
16668 * config/pa/elf.h (ASM_FILE_START): Likewise.
16669 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16670 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16671 * config/pa/som.h (ASM_FILE_START): Likewise.
16672 * config/romp/romp.c (romp_using_r14): Likewise.
16673 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16674 (rs6000_stack_info): Likewise.
16675 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16676 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16677 * config/v850/v850.c (compute_register_save_size): Likewise.
16679 2002-01-03 Jakub Jelinek <jakub@redhat.com>
16681 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16682 gen_lowpart_common fails, use gen_lowpart_SUBREG.
16684 2002-01-03 Turly O'Connor <turly@apple.com>
16686 * darwin.c (machopic_output_possible_stub_label): Don't generate
16687 stub routines for pseudo-stubs which we've just defined.
16689 2002-01-03 Kazu Hirata <kazu@hxi.com>
16691 * builtins.c: Fix formatting.
16692 * c-typeck.c: Likewise.
16693 * combine.c: Likewise.
16694 * expr.c: Likewise.
16695 * loop.c: Likewise.
16697 2002-01-03 Andreas Schwab <schwab@suse.de>
16699 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16700 and return true if _cpp_push_next_buffer pushed a new include
16702 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16703 _cpp_pop_file_buffer did not push a new file.
16704 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16706 2002-01-02 Eric Christopher <echristo@redhat.com>
16708 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16709 FIND_REG_INC_NOTE call. Update copyright.
16710 * loop.c (canonicalize_condition): Ditto.
16711 * reorg.c (delete_scheduled_jump): Ditto.
16713 2002-01-03 Kazu Hirata <kazu@hxi.com>
16715 * gcse.c: Fix formatting.
16717 2002-01-03 Graham Stott <grahams@redhat.com>
16719 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16720 forward defs for struct tags rtx_def, union_tree, rtvec_def
16721 also output corresponding typedefs for rtx, tree, and rtvec.
16723 * system.h: Move forward defs for struct tags rtx_def, union_tree,
16724 rtvec_def along with corresponding typedefs for rtx, tree, and
16725 rtvec to config.h, hconfig.h, tconfig.h.
16727 2002-01-03 Graham Stott <grahams@redhat.com>
16729 * tree.h: Update copyright date.
16730 (IS_EXPR_CODE_CLASS): Add parenthesis.
16731 (TREE_SET_CODE): Add whitespace.
16732 (TREE_CHECK): Add parenthesis.
16733 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16734 (CST_OR_CONSTRUCTOR_CHECK):
16735 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16736 (TREE_SYMBOL_REFERENCED): Whitespace.
16737 (INT_CST_LT): Likewise.
16738 (INT_CST_LT_UNSIGNED): Likewise.
16739 (tree_real_cst): Unwrap comment.
16740 (tree_string): Likewise.
16741 (tree_complex): Likewise.
16742 (IDENTIFIER_POINTER): correct cast.
16743 (SAVE_EXPR_CONTEXT): Whitespace.
16744 (EXPR_WFL_FILENAME_NODE): Likewise.
16745 (EXPR_WFL_FILENAME): Remove parenthesis.
16746 (DECL_ORIGIN): Add parenthesis.
16747 (DECL_FROM_INLINE): Use NULL_TREE.
16748 (build_int_2): Whitespace.
16749 (build_type_variant): Add parenthesis.
16751 * gcc/jcf-parse.c: Update copyright date.
16752 (yyparse): Constify resource_filename.
16754 2002-01-03 Graham Stott <grahams@redhat.com>
16756 * rtl.h: Update copyright date.
16757 (RTL_CHECK1): Wrap long line.
16758 (RTL_CHECK2): Likewise.
16759 (RTL_CHECKC1): Wrap long line and whitespace.
16760 (RTL_CHECKC2): Likewise.
16761 (XWINT): Whitespace.
16767 (XBITMAP): Likewise.
16769 (XBBDEF): Likewise.
16771 (X0WINT): Likewise.
16773 (X0UINT): Likewise.
16777 (X0MODE): Likewise.
16778 (X0BITMAP): Likewise.
16779 (X0TREE): Likewise.
16780 (X0BBDEF): Likewise.
16781 (X0ADVFLAGS): Likewise.
16782 (X0CSELIB): Likewise.
16783 (X0MEMATTR): Likewise.
16784 (XCWINT): Likewise.
16786 (XCUINT): Likewise.
16790 (XCMODE): Likewise.
16791 (XCBITMAP): Likewise.
16792 (XCTREE): Likewise.
16793 (XCBBDEF): Likewise.
16794 (XCADVFLAGS): Likewise.
16795 (XCCSELIB): Likewise.
16796 (XC2EXP): Likewise.
16797 (INSN_UID): Likewise.
16798 (PREV_INSN): Likewise.
16799 (PATTERN): Likewise.
16800 (INSN_CODE): Likewise.
16801 (PUT_REG_NOTE_KIND): Likewise.
16802 (CODE_LABEL_NUMBER): Likewise.
16803 (NOTE_SOURCE_FILE): Likewise.
16804 (NOTE_BLOCK): Likewise.
16805 (NOTE_EH_HANDLER): Likewise.
16806 (NOTE_RANGE_INFO): Likewise.
16807 (NOTE_LIVE_INFO): Likewise.
16808 (NOTE_BASIC_BLOCK): Likewise.
16809 (NOTE_EXPECTED_VALUE): Likewise.
16810 (NOTE_LINE_NUMBER): Likewise.
16811 (LABEL_NAME): Likewise.
16812 (LABEL_NUSES): Likewise.
16813 (LABEL_ALTERNATE_NAME): Likewise.
16814 (ADDRESSOF_DECL): Likewise.
16815 (JUMP_LABEL): Likewise.
16816 (LABEL_NEXTREF): Likewise.
16818 (ORIGINAL_REGNO: Likewise.
16819 (HARD_REGISTER_NUM_P): Add parenthesis.
16820 (SUBREG_REG): Whitespace.
16821 (SUBREG_BYTE): Likewise.
16822 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16823 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16824 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16825 (ASM_OPERANDS_INPUT_VEC): Likewise.
16826 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16827 (ASM_OPERANDS_INPUT): Likewise.
16828 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16829 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16830 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16831 (ASM_OPERANDS_INPUT_MODE): Likewise.
16832 (ASM_OPERANDS_SOURCE_FILE): Likewise.
16833 (ASM_OPERANDS_SOURCE_LINE): Likewise.
16834 (MEM_SET_IN_STRUCT_P): Minor reformat.
16835 (TRAP_CONDITION): Whitespace.
16836 (TRAP_CODE): Likewise.
16837 (COND_EXEC_TEST): Likewise.
16838 (COND_EXEC_CODE): Likewise.
16839 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16840 (PHI_NODE_P): Add parenthesis.
16841 (plus_constant): Whitespace and add parenthesis.
16843 2002-01-03 Kazu Hirata <kazu@hxi.com>
16845 * config/avr/avr.c: Fix comment typos.
16846 * config/c4x/c4x.md: Likewise.
16847 * config/dsp16xx/dsp16xx.h: Likewise.
16848 * config/dsp16xx/dsp16xx.md: Likewise.
16849 * config/i386/i386.md: Likewise.
16850 * config/ia64/ia64.c: Likewise.
16851 * config/m32r/m32r.h: Likewise.
16852 * config/m68hc11/m68hc11.md: Likewise.
16853 * config/mmix/mmix.c: Likewise.
16854 * config/mn10200/mn10200.c: Likewise.
16855 * config/romp/romp.c: Likewise.
16856 * config/sh/sh.c: Likewise.
16857 * config/stormy16/stormy16.c: Likewise.
16858 * config/stormy16/stormy16.h: Likewise.
16859 * config/stormy16/stormy16.md: Likewise.
16861 2002-01-03 Graham Stott <grahams@redhat.com>
16863 * loop.h: Update copyright date.
16864 (LOOP_MOVABLES): Fix typo.
16865 (LOOP_REGS): Likewise.
16866 (LOOP_IVS): Likewise.
16868 2002-01-03 Graham Stott <grahams@redhat.com>
16870 * cppinit.c: Update copyright date.
16871 Don't include output.h
16872 * Makefile.in: Update copyright date.
16875 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
16878 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16879 (-pthread) Add to RS/6000 options.
16881 2002-01-02 Kazu Hirata <kazu@hxi.com>
16883 * except.c: Fix comment typos.
16884 * loop.c: Likewise.
16885 * varasm.c: Likewise.
16886 * doc/tm.texi: Fix a typo.
16888 2002-01-02 Jakub Jelinek <jakub@redhat.com>
16890 * c-typeck.c (output_init_element): Allow initializing static storage
16891 duration objects with compound literals.
16893 2002-01-02 Richard Henderson <rth@redhat.com>
16895 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16898 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16900 * gcc.c (default_compilers): Const-ify.
16901 * mips-tdump.c (stab_names): Likewise.
16902 * mips-tfile.c (map_coff_types, map_coff_storage,
16903 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16904 pseudo_ops_t, pseudo_ops): Likewise.
16905 * protoize.c (default_include): Likewise
16907 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16908 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16909 Add array size in declaration.
16910 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16911 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16912 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16913 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16914 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16915 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16916 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16917 emtens, make_nan): Const-ify.
16918 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16919 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16921 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
16923 * config.gcc (ia64-*-*): Set extra_headers.
16924 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
16925 * config/alpha/t-osf: Remove.
16926 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16928 2002-01-02 David Edelsohn <edelsohn@gnu.org>
16930 * config/rs6000/t-aix43: Revert previous change.
16932 2002-01-02 Jason Merrill <jason@redhat.com>
16934 * c-decl.c (c_expand_body): Call outlining_inline_function when
16935 emitting an inline function out of line.
16937 2002-01-02 Richard Henderson <rth@redhat.com>
16939 * dwarf2out.c (limbo_die_node): Add created_for member.
16940 (new_die): New argument created_for. Update all callers.
16941 (mark_limbo_die_list): New.
16942 (dwarf2out_init): Register limbo_die_list as a root.
16943 (dwarf2out_finish): Force insert limbo dies into their function
16946 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
16949 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16951 2002-01-02 Kazu Hirata <kazu@hxi.com>
16953 * config/h8300/fixunssfsi.c: Update copyright.
16956 * config/h8300/h8300.c: Update copyright.
16957 Eliminate warnings.
16959 2002-01-02 Kazu Hirata <kazu@hxi.com>
16961 * config/romp/romp.c: Fix comment formatting.
16962 * config/romp/romp.h: Likewise.
16963 * config/romp/romp.md: Likewise.
16964 * config/s390/s390.c: Likewise.
16965 * config/stormy16/stormy16.c: Likewise.
16966 * config/stormy16/stormy16.h: Likewise.
16968 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
16970 * c-common.h (genrtl_expr_stmt_value): Declare.
16971 * c-semantics.c (genrtl_goto_stmt): Redirect to...
16972 (genrtl_goto_stmt_value): ... this new function. Pass new
16973 argument down to expand_expr_stmt_value, taking
16974 TREE_ADDRESSABLE into account.
16975 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16976 STMT_EXPR as addressable, i.e., one whose result we want.
16977 * expr.c (expand_expr): Don't save expression statement value
16978 of labeled_blocks or loop_exprs.
16979 * stmt.c (expand_expr_stmt): Redirect to...
16980 (expand_expr_stmt_value): ... this new function. Use new
16981 argument to tell whether to save expression value.
16982 (expand_end_stmt_expr): Reset last_expr_type and
16983 last_expr_value if we don't have either.
16984 * tree-inline.c (declare_return_variable): Mark its use
16985 statement as addressable.
16986 * tree.h: Document new use of TREE_ADDRESSABLE.
16987 (expand_expr_stmt_value): Declare.
16989 2002-01-01 Tom Rix <trix@redhat.com>
16991 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16992 rs6000_emit_allocate_stack.
16994 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
16996 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16997 ${srcdir}/ginclude/ to every entry in extra_headers.
16998 * configure: Regenerate.
16999 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17000 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17001 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17002 * ginclude/proto.h: Rename to config/convex/proto.h.
17004 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17006 * attribs.c (handle_vector_size_attribute): Use host_integerp
17007 and tree_int_cst; remove warnings.
17008 * caller-save.c (insert_restore): Add cast to get rid of warning.
17009 (insert_save): Likewise.
17010 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17011 * regmove.c (find_matches): Add temporary var to kill a warning.
17013 2002-01-01 Douglas B Rupp <rupp@gnat.com>
17015 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17016 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17017 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17018 (vms-dwarf2eh.o): Add Makefile rule.
17019 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17020 * config/alpha/vms-dwarf2eh.asm: New file.
17022 * gcc.c (delete_if_ordinary): Delete all versions.
17024 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
17026 * config/mmix/mmix.md: Update FIXME to not mention
17028 (MMIX_rJ_REGNUM): New define_constants constant.
17029 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17030 "*movdicc_real"): Adjust contraints formatting.
17031 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17032 for branch prediction.
17033 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17035 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17036 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17037 number. Delete related FIXMEs.
17038 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17039 from number to MMIX_rJ_REGNUM.
17040 (TARGET_MASK_BRANCH_PREDICT): New.
17041 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17042 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
17043 value. Add -mbranch-predict and -mno-branch-predict.
17044 (TARGET_VERSION): Drop date.
17045 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17046 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17047 for finding out global symbols.
17048 (mmix_asm_output_labelref): Revert condition for global symbol.
17049 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17050 (mmix_print_operand_punct_valid_p): A '+' is valid.
17052 See ChangeLog.6 for earlier changes.