1 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
3 * config.gcc (ns32k-*-netbsd*): Set tm_file to
4 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
5 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
6 netbsd.h, or netbsd-aout.h.
8 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
10 * longlong.h (count_trailing_zeros): Add missing \, and clean up
11 whitespace in __ns32000__ case.
13 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
15 * expr.c (expand_expr): Output partially zeroed out vectors with
18 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
20 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
22 (shl*-*-netbsdelf*): New targets.
23 * config/sh/netbsd-elf.h: New file.
25 2002-05-30 Richard Henderson <rth@redhat.com>
26 Eric Botcazou <ebotcazou@multimania.com>
29 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
30 to unsigned int for op1 comparisons. Use gen_int_mode.
32 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
34 * expmed.c (const_mult_add_overflow_p): New.
36 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
37 Don't eliminate the biv if the giv has a constant multiplier and
38 the rhs argument of the comparison does satisfy the predicate.
39 Use expand_mult_add to compute the replacement constant.
41 2002-05-30 Osku Salerma <osku@iki.fi>
43 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
44 (c_common_get_alias_set): Handle it.
45 * doc/extend.texi: Document it.
47 2002-05-30 Richard Henderson <rth@redhat.com>
49 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
50 * toplev.c (process_options): Don't check it.
51 * doc/tm.texi: Don't document it.
52 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
53 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
54 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
55 frame pointer optimization if current_function_profile.
57 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
59 * langhooks.c: Fix formatting.
60 * langhooks.h: Likewise.
62 * libgcc2.c: Likewise.
64 * local-alloc.c: Likewise.
68 2002-05-30 Marc Espie <espie@openbsd.org>
70 * config.gcc (sparc64-*-openbsd*): New.
71 * config/sparc/openbsd1-64.h: New.
72 * config/sparc/openbsd64.h: New.
74 2002-05-30 Jeff Law <law@redhat.com>
76 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
77 a dead insn with a REG_RETVAL note when the entire libcall is not
78 dead and remove the associated REG_LIBCALL note at the same time.
80 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
82 * lcm.c (output.h): #include.
83 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
85 (optimize_mode_switching): Don't pretend that the exit block is
86 an ordinary block, or handle sucessors of entry block specially.
87 Instead, split edges from entry block and to exit block, and
88 put a computing definition on the thus gained post-entry-block,
89 and a need on the pre-exit-block.
91 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
93 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
94 * rtl.texi: Document 'B'
96 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
98 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
100 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
102 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
104 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
105 const0_rtx instead of NULL_RTX when in error.
106 (altivec_expand_abs_builtin): Same.
107 (rs6000_expand_binop_builtin): Same.
108 (altivec_expand_predicate_builtin): Same.
109 (altivec_expand_stv_builtin): Same.
110 (rs6000_expand_ternop_builtin): Same.
111 (altivec_expand_builtin): Same.
113 2002-05-29 David S. Miller <davem@redhat.com>
115 * rtl.h (clear_emit_caches): Delete.
116 * integrate.c (output_inline_function): Don't call it.
117 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
118 (clear_emit_caches): Delete definition.
119 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
121 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
123 * config/mmix/mmix.c: Include real.h.
124 (mmix_constant_address_p): Remove redundant test before switch.
126 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
128 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
129 only if not already defined.
131 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
133 * config/h8300/h8300-protos.h: Remove prototypes for
134 ok_for_bclr and small_power_of_two.
135 * config/h8300/h8300.c (small_power_of_two): Remove.
136 (ok_for_blcr): Likewise.
137 (fix_bit_operand): Make WHAT deal with an integer instead of a
138 constraint character.
139 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
140 (CONST_OK_FOR_P): Likewise.
141 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
142 CONST_OK_FOR_P any more.
143 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
148 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
150 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
151 (CPP_PREDEFINES): Make sure this is undefined.
152 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
153 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
154 or -U__MIPSEB__ before defining one or the other. Instead,
155 use %(subtarget_endian_default) if neither -EB nor -EL are
157 (SUBTARGET_EXTRA_SPECS): Define.
158 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
161 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
163 * doc/md.texi (Patterns): Note pattern condition pitfall
166 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
168 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
169 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
170 ternary operations from here...
171 (rs6000_expand_builtin): ...to here.
172 New argument expandedp.
173 Change all instances of altivec_expand_binop_builtin to
174 rs6000_expand_binop_builtin.
175 (altivec_expand_unop_builtin): Rename to
176 rs6000_expand_unop_builtin.
177 (altivec_expand_binop_builtin): Rename to
178 rs6000_expand_binop_builtin.
179 (altivec_expand_ternop_builtin): Rename to
180 rs6000_expand_ternop_builtin.
182 2002-05-29 Richard Henderson <rth@redhat.com>
184 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
185 (TARGET_BI_ARCH): Likewise.
186 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
187 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
188 (TARGET_64BIT_DEFAULT): Default to 0.
189 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
191 2002-05-29 Richard Henderson <rth@redhat.com>
193 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
194 (get_pc_thunk_name): New.
195 (output_set_got): Use it.
196 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
197 into linkonce sections.
199 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
201 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
202 (CPP_PREDEFINES): Make sure this is undefined.
203 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
204 (CPP_SUBTARGET_SPEC): Don't provide different versions for
205 default-32 and default-64. Just always use %(netbsd_cpp_spec).
206 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
207 cpp_subtarget_spec64. Add netbsd_cpp_spec.
208 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
209 (CPP_PREDEFINES): Make sure this is undefined.
210 (SUBTARGET_EXTRA_SPECS): Define.
211 (CPP_SPEC): Use %(netbsd_cpp_spec).
213 2002-05-29 Jeff Law <law@redhat.com>
215 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
217 * flow.c (propagate_one_insn): Do not remove a dead insn if it
218 contains a REG_RETVAL note.
220 * haifa-sched (sched_analyze): Remove another useless clearing
221 of SCHED_GROUP_P I missed yesterday.
223 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
224 * pa.c (pa_asm_output_mi_thunk): New function.
225 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
227 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
228 Marek Michalkiewicz <marekm@amelek.gda.pl>
230 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
231 (avr_asm_only_p): Make non-static.
232 (enum avr_arch): Remove.
233 (avr_arch_types): New.
234 (avr_mcu_types): Update.
235 (avr_override_options): Use avr_arch_types table instead of switch.
236 * avr.h (CPP_PREDEFINES): Die.
237 (avr_base_arch_macro, avr_extra_arch_macro): New.
238 (TARGET_CPU_CPP_BUILTINS): New.
239 (CPP_SPEC, EXTRA_SPECS): Simplify.
240 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
243 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
245 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
246 NETBSD_OS_CPP_BUILTINS_AOUT.
247 (SUBTARGET_EXTRA_SPECS): Define.
248 (CPP_SPEC): Use %(netbsd_cpp_spec).
250 2002-05-29 Richard Henderson <rth@redhat.com>
252 * config/i386/i386.c (ix86_output_function_epilogue): New.
253 (TARGET_ASM_FUNCTION_EPILOGUE): New.
254 (pic_label_name): Remove.
255 (pic_labels_used): New.
256 (ix86_asm_file_end): Emit one pc load stub for each register used.
257 (output_set_got): Generate deep pc load to any register.
258 (ix86_select_alt_pic_regnum): New.
259 (ix86_save_reg): Don't save pic register if we can find a valid
260 call-clobbered replacement.
261 (ix86_expand_prologue): If we found a valid replacement, renumber
262 pic_offset_table_rtx.
263 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
264 pic_offset_table_rtx after reload.
265 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
266 * config/i386/i386.md (set_got): Make insn, not expander.
267 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
269 2002-05-29 Richard Henderson <rth@redhat.com>
271 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
272 alignment for alloca.
274 2002-05-29 Richard Henderson <rth@redhat.com>
276 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
277 (print_operand_address): Only add rip for symbolic addresses
278 for which we do not have another relocation type.
280 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
282 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
283 (EXTRA_SPECS): Add netbsd_cpp_spec.
284 (CPP_SPEC): Use %(netbsd_cpp_spec).
285 (CPP_PREDEFINES): Remove.
286 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
287 (EXTRA_SPECS): Define.
288 (CPP_SPEC): Use %(netbsd_cpp_spec).
289 (CPP_PREDEFINES): Remove.
291 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
294 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
297 2002-05-29 Eric Christopher <echristo@redhat.com>
299 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
300 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
302 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
304 * config/fr30/fr30.md: Remove previous restriction on splits.
305 Enforce conformance through gen_lowpart and cont_int_operand.
306 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
307 as the assembler does not support ".bss".
309 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
311 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
312 (CPP_PREDEFINES): Remove.
313 (SUBTARGET_EXTRA_SPECS): Define.
314 (CPP_SPEC): Use %(netbsd_cpp_spec).
315 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
316 (CPP_PREDEFINES): Remove.
317 (SUBTARGET_EXTRA_SPECS): Define.
318 (CPP_SPEC): Use %(netbsd_cpp_spec).
319 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
320 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
321 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
323 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
325 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
326 Zack Weinberg <zack@codesourcery.com>
328 * cppexp.c (cpp_num): Move to cpplib.h.
330 (interpret_float_suffix, interpret_int_suffix): New.
331 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
332 (cpp_classify_number, cpp_interpret_integer): New.
333 (interpret_number): Remove.
334 (eval_token): Update to use new routines.
335 * cpphash.h (cpp_num_part): Move to cpplib.h.
336 * cppinit.c (cpp_post_options): Set warn_long_long.
337 * cpplib.h (struct cpp_options): Add warn_long_long.
338 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
339 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
340 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
341 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
342 cpp_interpret_integer): New.
344 2002-05-29 Joel Sherrill <joel@OARcorp.com>
346 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
348 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
350 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
351 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
352 (CPP_SUBTARGET_SPEC): Define.
353 (SUBTARGET_EXTRA_SPECS): Define.
356 2002-05-29 Chris Lattner <sabre@nondot.org>
358 * ssa.c (rename_insn_1): Rename uses of undefined registers to
359 prevent confusion if/when the register is defined.
361 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
364 * config/cris/cris.md: Fix typos and thinkos in comments.
365 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
367 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
368 ("*mov_sideqi_mem"): Similar, but for operand 3.
369 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
370 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
371 Remove spurious mode specifier on operand 2.
373 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
375 * config/h8300/h8300-protos.h: Remove the prototype for
377 Add prototypes for single_one_operand and single_zero_operand.
378 * config/h8300/h8300.c (o_operand): Remove.
379 (single_one_operand): New.
380 (single_zero_operand): Likewise.
381 (print_operand): For 'V' operand, and the operand with 0xff.
382 For 'V' and 'W' operands, do not and the bit position with 7.
383 * config/h8300/h8300.md (various anonymous patterns): Replace
384 use of exact_log2 with single_one_operand/single_zero_operand.
386 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
388 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
390 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
392 * config/s390/s390.c (legitimate_pic_operand_p): Do not
393 accept symbolic LARL operands.
394 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
397 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
399 * config/s390/s390.md (cmpstr_64/31): Mark whole
400 input registers as used.
402 2002-05-28 Richard Henderson <rth@redhat.com>
404 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
405 not current_function_uses_pic_offset_table and
406 current_function_uses_const_pool; examine current_function_profile.
407 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
408 input to blockage if needed.
409 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
410 (legitimize_pic_address): Likewise. Set regs_ever_live for
411 pic_offset_table_rtx when invoked during reload.
412 * config/i386/i386.h (FINALIZE_PIC): Remove.
413 * config/i386/i386.md (tablejump): Reformat. Do not set
414 current_function_uses_pic_offset_table.
415 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
416 (blockage): Accept anything as operand 0.
418 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
420 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
421 common CPP built-ins for all NetBSD a.out targets.
422 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
423 common CPP built-ins for all NetBSD ELF targets.
424 * config/netbsd.h: Add missing notice.
425 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
426 for all NetBSD targets.
427 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
428 for all NetBSD targets using an LP64 code model.
429 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
432 2002-05-28 Richard Henderson <rth@redhat.com>
434 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
435 update if UPDATE_LIFE_LOCAL.
437 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
439 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
441 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
442 Jason R. Thorpe <thorpej@wasabisystems.com>
444 config/sh reorganization to factor out endianness and coff:
446 * config/sh/little.h: New file.
447 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
448 defined, define to 0 to select big-endian.
449 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
450 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
451 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
452 * config/sh/t-be: New file.
453 * config/sh/t-le: New file.
455 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
456 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
457 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
458 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
459 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
460 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
461 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
462 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
463 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
464 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
465 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
466 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
467 (LINK_SPEC): Define to SH_LINK_SPEC.
468 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
469 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
470 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
471 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
472 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
473 * config/sh/coff.h: New file.
474 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
475 (TARGET_OBJFMT_CPP_BUILTINS): Define.
476 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
477 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
478 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
479 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
480 (PTRDIFF_TYPE): Likewise.
481 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
482 (CPP_PREDEFINES): Don't define.
483 (TARGET_OBJFMT_CPP_BUILTINS): Define.
484 (LINK_SPEC): Define to SH_LINK_SPEC.
485 (LINK_EMUL_PREFIX): Redefine.
486 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
487 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
488 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
489 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
490 (TARGET_OS_CPP_BUILTINS): Define.
491 (TARGET_DEFAULT): Redefine.
492 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
493 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
494 (LINK_SPEC): Don't redefine.
495 (LINK_DEFAULT_CPU_EMUL): Redefine.
496 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
497 * sh.c (sh_asm_named_section): Don't declare / define.
498 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
499 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
500 (sh64-*-elf* tm_file): Likewise.
501 (sh-*-rtemself* tm_file): Likewise.
502 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
503 (sh-*-linux* tmake_file): Add sh/t-le.
504 (sh-*-rtems* tm_file): Add sh/coff.h
505 (sh-*-* tm_file): Likewise.
507 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
509 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
510 CONSTANT_POOL_ADDRESS_P.
512 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
514 2002-05-28 David Edelsohn <edelsohn@gnu.org>
515 Jeff Law <law@redhat.com>
517 * optabs.c (expand_binop): Fix nwords sign warnings.
518 generate pseudo for add_optab.
520 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
521 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
523 2002-05-28 Marc Espie <espie@openbsd.org>
525 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
526 inherited from gas.h.
527 (ASM_QUAD): Undef. OpenBSD does not support it.
529 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
531 * doc/install.texi (binaries): Change mingw binaries
532 link to www.mingw.org.
534 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
536 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
538 2002-05-28 Richard Henderson <rth@redhat.com>
540 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
541 bottom alignment for leaf functions.
543 2002-05-28 Zack Weinberg <zack@codesourcery.com>
545 * config/pa/milli32.S, config/pa/lib1funcs.asm,
546 config/sparc/sol2-g1.asm: Delete unused files.
548 2002-05-28 Richard Henderson <rth@redhat.com>
550 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
552 * flow.c (calculate_global_regs_live): Rename call_used to
553 invalidated_by_call. Initialize from regs_invalidated_by_call
554 instead of call_used_regs.
556 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
559 2002-05-28 Zack Weinberg <zack@codesourcery.com>
561 * tree.h: Don't include real.h.
562 Forward-declare struct realvaluetype.
563 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
565 (TREE_REAL_CST_PTR): New accessor.
566 (TREE_REAL_CST): Update.
567 * real.h: Include machmode.h.
568 (realvaluetype): Make it struct realvaluetype, not a typedef.
569 (build_real): Prototype here.
571 * tree.c: Include real.h.
572 (build_real): Allocate the REAL_VALUE_TYPE as a separate
573 object in GC memory, set TREE_REAL_CST_PTR to point to it.
574 (build_real_from_int_cst): Use build_real.
575 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
578 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
579 fold-const.c, print-tree.c, real.c: Include real.h.
580 * Makefile.in: Update dependency lists.
582 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
584 * basic-block.h (last_basic_block): Declare.
585 (expunge_block_nocompact): Declaration removed.
586 (compact_blocks): Declare.
587 * cfg.c (last_basic_block): New variable.
588 (expunge_block_nocompact): Removed.
589 (expunge_block): Do not compact basic blocks.
590 (compact_blocks): New.
591 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
593 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
595 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
596 real positions of blocks.
597 (delete_unreachable_blocks): Simplified -- quadratic behavior now
599 (cleanup_cfg): Compact blocks.
600 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
601 basic_block_info varray.
602 (flow_delete_block): Comment update.
603 (back_edge_of_syntactic_loop_p): Modify position check code.
604 (verify_flow_info): Update checking.
605 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
606 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
607 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
608 indices no longer change.
609 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
611 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
612 * profile.c (branch_prob): Compact blocks.
613 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
616 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
618 * config/h8300/h8300.md (two anonymous patterns): New.
620 2002-05-28 David S. Miller <davem@redhat.com>
622 * config/sparc/sparc.md (cpu): Tidy.
623 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
625 (in_call_delay): Delete reference to 'return' type.
626 (eligible_for_return_delay, in_return_delay, define_delay
627 referencing those): Delete.
628 (rest of file): Use new type attributes as appropriate.
629 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
630 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
631 * config/sparc/ultra1_2.md (us1_single): New reservation.
632 (us1_ialuX): Likewise.
633 * config/sparc/ultra3.md (us3_single): Likewise.
634 (us3_ialuX): Likewise.
635 (us3_imul, us3_idiv): Tweak.
637 2002-05-28 Richard Henderson <rth@redhat.com>
639 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
642 2002-05-28 Richard Henderson <rth@redhat.com>
644 * config.gcc: Obsolete mn10200.
646 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
648 * cppexp.c (interpret_number): Optimize for single-digit
649 and less-than-half-precision cases.
650 (num_trim, num_positive, num_div_op): Cast constants.
652 2002-05-27 Bo Thorsen <bo@suse.de>
654 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
655 3.1 branch. The file was made by Jakub Jelinek.
656 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
657 support so multilib doesn't break. And don't define this at all
658 when -Dinhibit_libc is used.
659 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
660 * config/i386/t-linux64: Implement full multilib support. Patch
661 originally done by Andreas Jaeger and Jakub Jelinek.
663 2002-05-27 Roger Sayle <roger@eyesopen.com>
665 * c-common.c: Add support for __attribute__((nothrow)) to specify
666 that a function cannot throw an exception (using TREE_NOTHROW).
667 (handle_nothrow_attribute): New function to process this attribute.
669 * doc/extend.texi: Document the new nothrow function attribute.
671 2002-05-27 H.J. Lu (hjl@gnu.org)
673 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
674 (num_positive): Likewise.
675 (num_div_op): Likewise.
677 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
679 * c-common.c (c_common_init): Always use intmax_t.
681 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
683 * c-common.c (c_common_init): Use intmax_t for now.
685 2002-05-24 Andrew Haley <aph@redhat.com>
687 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
688 if T is a boolean type.
690 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
692 * basic-block.h (last_basic_block): Defined as synonym for
694 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
695 flow_depth_first_order_compute, flow_preorder_transversal_compute,
696 flow_dfs_compute_reverse_init): Replaced relevant occurences of
697 n_basic_blocks with last_basic_block.
698 * cfgbuild.c (make_edges): Likewise.
699 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
700 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
701 * combine.c (combine_instructions): Likewise.
702 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
703 iterative_dataflow_bitmap): Likewise.
704 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
705 calc_idoms, idoms_to_doms): Likewise.
706 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
708 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
709 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
710 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
711 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
712 delete_null_pointer_checks, compute_code_hoist_vbeinout,
713 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
714 compute_store_table, build_store_vectors): Likewise.
715 * haifa-sched.c (sched_init): Likewise.
716 * ifcvt.c (if_convert): Likewise.
717 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
718 pre_edge_lcm, compute_available, compute_nearerout,
719 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
721 * predict.c (estimate_probability, process_note_prediction,
722 note_prediction_to_br_prob): Likewise.
723 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
724 * recog.c (split_all_insns, peephole2_optimize): Likewise.
725 * regrename.c (copyprop_hardreg_forward): Likewise.
726 * resource.c (init_resource_info): Likewise.
727 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
728 init_regions, schedule_insns): Likewise.
729 * ssa-ccp.c (ssa_const_prop): Likewise.
730 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
731 * ssa.c (compute_dominance_frontiers,
732 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
734 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
735 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
738 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
740 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
742 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
743 hoist_insn_after, hoist_insn_to_edge): New.
745 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
747 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
748 (PROP_FINAL): Include.
749 * flow.c (life_analysis, update_life_info,
750 init_propagate_block_info, mark_set_1, mark_used_rgs):
751 Support SCAN_DEAD_STORE.
753 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
755 * c-common.c (c_common_init): Set CPP arithmetic precision.
756 * cppexp.c (cpp_num_part): Move typedef ...
757 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
758 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
759 (sanity_checks): Update.
761 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
763 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
764 (mkheaders): New rule.
765 (install-mkheaders): New rule.
766 * configure.in (all_outputs): Add mkheaders.
767 * configure: Regenerate.
768 * mkheaders.in: New file.
770 2002-05-26 Jakub Jelinek <jakub@redhat.com>
772 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
774 2002-05-26 Andreas Jaeger <aj@suse.de>
776 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
778 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
780 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
781 right_shift): Remove.
782 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
784 (struct op): Use cpp_num.
785 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
786 num_part_mul, num_unary_op, num_binary_op, num_negate,
787 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
788 num_div_op, num_lshift, num_rshift, append_digit): New.
789 (interpret_number, parse_defined, eval_token, reduce): Update
790 for two-integer arithmetic.
791 (binary_handler): New typedef.
793 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
794 (_cpp_parse_expr, reduce): Update to handle two-integers.
795 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
797 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
799 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
800 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
801 branch insn into account, do not assume 1.
802 (avr_out_sbxx_branch): New function. Optimize cases of skipping
803 over single word insn. Handle upper half of I/O space too.
804 * config/avr/avr.md (*sbrx_branch): Use it.
805 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
806 (*sbix_branch, *sbix_branch_bit7): Likewise.
807 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
808 Use RTL peepholes to optimize register operand sign tests.
810 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
812 * config/avr/avr.c (avr_asm_only_p): New variable.
813 (avr_override_options): Set it here if AVR1.
814 (asm_file_start): Test it here, report an error if set.
816 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
818 * alias.c: Fix formatting.
819 * attribs.c: Likewise.
820 * bb-reorder.c: Likewise.
821 * bitmap.c: Likewise.
822 * bitmap.h: Likewise.
823 * builtins.c: Likewise.
825 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
827 * reload.c (find_valid_class): Accept new argument DEST,
828 choose class accordingly.
829 (push_reload): Update callers.
831 2002-05-26 Andreas Jaeger <aj@suse.de>
833 * combine.c (combine_instructions): Do not indent #if for
836 2002-05-25 Richard Henderson <rth@redhat.com>
838 * c-pragma.c (apply_pragma_weak): Convert value identifier to
839 string for decl_attributes.
840 (handle_pragma_weak): Call assemble_alias if we're modifying
843 2002-05-25 Richard Henderson <rth@redhat.com>
846 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
847 using rtl instead of fprintf.
848 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
849 * config/sparc/sparc-protos.h: Update.
851 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
853 * Makefile.in (C_COMMON_H): Fix.
854 Update other targets.
855 * c-common.c: Don't include c-lex.h.
856 (builtin_define_with_value): Make static and prototype.
857 (builtin_define_std): Move from c-lex.h.
858 * c-common.h (init_c_lex): Move from c-lex.h.
859 * c-decl.c: Don't include c-lex.h.
860 (make_pointer_declarator): Move from c-parse.in.
861 * c-lex.c: Don't include c-lex.h.
863 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
864 (make_pointer_declarator): Move to c-decl.c.
865 * c-pragma.c: Don't include c-lex.h.
866 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
867 * c-tree.h (make_pointer_declarator): New.
869 * passes.texi, tm.texi: Update.
871 * Make-lang.in: Update and correct.
872 * objc-act.c: Don't include c-lex.h or cpplib.h.
874 * treetree.c: Don't include c-lex.h.
876 * darwin-c.c: Don't include c-lex.h.
877 * c4x/c4x-c.c: Don't include c-lex.h.
879 * i370/i370-c.c: Don't include c-lex.h.
880 * i370/t-i370: Update.
881 * i960/i960-c.c: Don't include c-lex.h.
882 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
883 * i960/t-960bare: Update.
884 * i960/t-vxworks: Update.
885 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
886 * rs6000/t-darwin: Update.
887 * rs6000/t-rs6000-c-rule: Update.
888 * v850/v850-c.c: Don't include c-lex.h.
889 * v850/v850.c: Don't include c-lex.h or cpplib.h.
892 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
894 * tree.def: Fix typos.
895 * doc/install.texi: Likewise.
897 2002-05-25 Richard Henderson <rth@redhat.com>
899 * configure.in (HAVE_AS_TLS): Add ia64 test.
900 * configure: Rebuild.
901 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
902 (override_options): Set it.
903 (TARGET_HAVE_TLS): New.
904 (sdata_symbolic_operand): Look for 's'.
905 (tls_symbolic_operand): New.
906 (ia64_expand_load_address): Abort for tls symbols.
907 (gen_tls_get_addr): New.
908 (gen_thread_pointer): New.
909 (ia64_expand_move): Split out from movdi. Handle tls symbols.
910 (rtx_needs_barrier): Add new unspecs.
911 (ia64_encode_section_info): Handle tls symbols.
912 (ia64_strip_name_encoding): Strip two encoding chars.
913 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
914 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
915 (TARGET_OPTIONS): Add tls-size.
916 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
917 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
918 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
919 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
920 (movsf, movdf): Likewise.
921 (movdi_symbolic): Use match_scratch. Don't split if we won't
922 have a scratch availiable.
923 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
924 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
925 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
926 * config/ia64/ia64-protos.h: Update.
927 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
928 sdata_symbolic_operand.
929 (ASM_OUTPUT_LABELREF): Strip two characters.
931 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
933 * combine.c (simplify_set): Remove an unnecessary subreg.
935 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
937 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
939 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
941 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
943 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
945 2002-05-25 Roger Sayle <roger@eyesopen.com>
947 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
948 (cond (compare x y) 0) into the equivalent (cond x y).
950 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
952 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
954 2002-05-24 Zack Weinberg <zack@codesourcery.com>
956 * config.gcc: Remove all stanzas for previously obsoleted
957 systems. Where necessary, add explicit error stanzas to
958 prevent removed systems from being misidentified as something
959 else. Begin a fresh obsoletions list, with the systems that
960 were reprieved last round.
961 * doc/install.texi: Remove all mention of dead targets.
962 * fixinc/mkfixinc.sh: Likewise.
964 * config/arm/arm.h: Bit 31 of target_flags is no longer
967 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
968 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
969 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
970 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
971 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
972 config/alpha/osf12.h, config/alpha/osf2or3.h,
973 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
974 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
975 config/clipper/clipper-protos.h, config/clipper/clipper.c,
976 config/clipper/clipper.h, config/clipper/clipper.md,
977 config/clipper/clix.h, config/convex/convex-protos.h,
978 config/convex/convex.c, config/convex/convex.h,
979 config/convex/convex.md, config/convex/fixinc.convex,
980 config/convex/proto.h, config/elxsi/elxsi-protos.h,
981 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
982 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
983 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
984 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
985 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
986 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
987 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
988 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
989 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
990 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
991 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
992 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
993 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
994 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
995 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
996 config/m68k/altos3068.h, config/m68k/apollo68.h,
997 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
998 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
999 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1000 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1001 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1002 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1003 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1004 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1005 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1006 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1007 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1008 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1009 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1010 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1011 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1012 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1013 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1014 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1015 config/mips/dec-osf1.h, config/mips/elflorion.h,
1016 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1017 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1018 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1019 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1020 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1021 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1022 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1023 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1024 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1025 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1026 config/ns32k/sequent.h, config/ns32k/tek6000.h,
1027 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1028 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1029 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1030 config/sparc/rtems.h, config/we32k/we32k-protos.h,
1031 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1034 2002-05-24 Richard Henderson <rth@redhat.com>
1036 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1037 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1038 * config/i386/i386.c (tls_model_chars): Add leading space.
1039 (tls_symbolic_operand): Don't bias by 1.
1040 (legitimize_address): Don't unbias by 1.
1042 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1044 * lcm.c (optimize_mode_switching): Change bb used as indices
1047 2002-05-24 Richard Henderson <rth@redhat.com>
1049 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1050 of update_life_info_in_dirty_blocks.
1052 2002-05-24 Jakub Jelinek <jakub@redhat.com>
1055 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1057 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
1059 PR preprocessor/6780
1060 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1062 2002-05-24 Jim Blandy <jimb@redhat.com>
1064 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1065 entry with a type code of zero, marking the end of the compilation
1068 2002-05-24 Richard Henderson <rth@redhat.com>
1070 * varasm.c (asm_output_bss): Always output one byte.
1071 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1073 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1075 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1078 2002-05-24 Andreas Jaeger <aj@suse.de>
1080 * ggc-page.c (alloc_page): Cast variables of type size_t to
1081 unsigned long, adjust printf format string.
1082 (ggc_alloc): Likewise.
1083 (ggc_print_statistics): Likewise.
1084 (ggc_print_statistics): Correct printf format string for SCALE to
1087 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
1089 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1091 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
1092 Zack Weinberg <zack@codesourcery.com>
1094 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1096 * dwarf2out.c (lookup_filename): Properly quote filename in .file
1097 directive in assembly file.
1098 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1099 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1100 * config/pj/pj.h (ASM_FILE_START): Likewise.
1101 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1102 * config/avr/avr.c (asm_file_end): Likewise.
1103 * toplev.c (output_quoted_string): Handle possibly signed plain
1105 * toplev.h (output_clean_symbol_name): Declare
1106 * toplev.c (output_clean_symbol_name): Define.
1107 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1108 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1110 2002-05-24 Alan Modra <amodra@bigpond.net.au>
1112 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1114 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
1116 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1117 of size of unsigned.
1119 2002-05-23 Richard Henderson <rth@redhat.com>
1121 * configure.in (HAVE_AS_TLS): New test.
1122 * config.in, configure: Rebuild.
1123 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1124 (ix86_tls_dialect_string, ix86_tls_dialect): New.
1125 (override_options): Set it.
1126 (tls_model_chars, tls_symbolic_operand): New.
1127 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1128 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1129 (local_exec_symbolic_operand): New.
1130 (get_pic_label_name): Merge into output_set_got.
1131 (ix86_asm_file_end): Emit pic_label_name if defined.
1132 (legitimate_constant_p, constant_address_p): New.
1133 (legitimate_pic_operand_p): New.
1134 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1135 (legitimate_address_p): Likewise.
1136 (ix86_encode_section_info): Rename from i386_; handle tls decls.
1137 (ix86_strip_name_encoding): New.
1138 (get_thread_pointer): New.
1139 (legitimize_address): Handle tls symbols.
1140 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1142 (struct machine_function): Add some_ld_name.
1143 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1144 (print_operand) [&]: Use it. Handle UNSPEC_TP.
1145 (output_addr_const_extra): New.
1146 (maybe_get_pool_constant): New.
1147 (ix86_split_to_parts): Use it.
1148 (ix86_expand_move): Handle tls symbols.
1149 (ix86_tls_get_addr): New.
1150 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1151 (TARGET_OPTIONS): Add tls-dialect.
1152 (CONSTANT_ADDRESS_P): Use new out-of-line function.
1153 (LEGITIMATE_CONSTANT_P): Likewise.
1154 (LEGITIMATE_PIC_OPERAND_P): Likewise.
1155 (TARGET_STRIP_NAME_ENCODING): New.
1156 (ASM_OUTPUT_LABELREF): New.
1157 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1158 (OUTPUT_ADDR_CONST_EXTRA): New.
1159 (PREDICATE_CODES): Update.
1160 (ix86_tls_dialect, ix86_tls_dialect_string): New.
1161 * config/i386/i386.md: Regroup and renumber unspec constants.
1162 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1163 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1164 (tls_global_dynamic, tls_local_dynamic_base): New.
1165 (tls_local_dynamic_once): New.
1166 * config/i386/i386-protos.h: Update.
1168 2002-05-23 Richard Henderson <rth@redhat.com>
1170 * genemit.c (gen_insn): Print file:lineno comment before function.
1172 * gensupport.c (struct queue_elem): Add filename member.
1173 (queue_pattern): Initialize it; update all callers.
1174 (process_include): Don't free filename.
1175 (read_md_rtx): Set read_rtx_filename.
1177 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
1179 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1181 2002-05-23 Richard Henderson <rth@redhat.com>
1183 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1185 2002-05-23 Richard Henderson <rth@redhat.com>
1187 * doc/extend.texi (C++98 Thread-Local Edits): Update with
1188 commentary from Mark.
1190 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1192 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1193 Use FOR_EACH_BB macros to iterate over basic block chain.
1194 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1195 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1197 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1198 find_unreachable_blocks, create_edge_list, verify_edge_list,
1199 remove_fake_edges, add_noreturn_fake_exit_edges,
1200 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1202 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1203 find_sub_basic_blocks): Likewise.
1204 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1206 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1208 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1210 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1211 commit_edge_insertions, commit_edge_insertions_watch_calls,
1212 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1213 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1214 * conflict.c (conflict_graph_compute): Likewise.
1215 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1216 df_modified_p, df_refs_unlink, df_dump): Likewise.
1217 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1218 * final.c (compute_alignments): Likewise.
1219 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1220 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1221 count_or_remove_death_notes): Likewise.
1222 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1223 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1224 classic_gcse, compute_transp, cprop, compute_pre_data,
1225 compute_transpout, invalidate_nonnull_info,
1226 delete_null_pointer_checks_1, delete_null_pointer_checks,
1227 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1228 compute_store_table, build_store_vectors, store_motion): Likewise.
1229 * global.c (global_conflicts, mark_elimination): Likewise.
1230 * graph.c (print_rtl_graph_with_bb): Likewise.
1231 * haifa-sched.c (sched_init): Likewise.
1232 * ifcvt.c (if_convert): Likewise.
1233 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1234 compute_available, compute_nearerout, compute_rev_insert_delete,
1235 optimize_mode_switching): Likewise.
1236 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1237 * predict.c (estimate_probability, note_prediction_to_br_prob,
1238 propagate_freq, counts_to_freqs, expensive_function_p,
1239 estimate_bb_frequencies): Likewise.
1240 * profile.c (instrument_edges, get_exec_counts,
1241 compute_branch_probabilities, compute_checksum, branch_prob,
1242 find_spanning_tree): Likewise.
1243 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1244 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1246 * regclass.c (scan_one_insn, regclass): Likewise.
1247 * regmove.c (mark_flags_life_zones, regmove_optimize,
1248 record_stack_memrefs): Likewise.
1249 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1250 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1251 * resource.c (find_basic_block): Likewise.
1252 * sched-ebb.c (schedule_ebbs): Likewise.
1253 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1254 find_single_block_region, find_rgns, schedule_insns)
1255 * sibcall.c (optimize_sibling_and_tail_recursive_call)
1256 * ssa-ccp.c (optimize_unexecutable_edges,
1257 ssa_ccp_df_delete_unreachable_insns): Likewise.
1258 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1259 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1260 rename_block, convert_to_ssa, compute_conservative_reg_partition,
1261 compute_coalesced_reg_partition, rename_equivalent_regs,
1262 convert_from_ssa): Likewise.
1263 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1264 process_for_unwind_directive): Likewise.
1266 * df.c (FOR_ALL_BBS): Removed.
1267 * gcse.c (struct null_pointer_info): Type of current_block field
1269 (struct reg_avail_info): Type of last_bb field changed.
1270 * config/ia64/ia64.c (block_num): Removed.
1271 (need_copy_state): Type changed.
1274 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1276 * cppinit.c (mark_named_operators): Split out from init_builtins.
1277 (cpp_finish_options): Call it from here instead.
1279 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1281 * builtin-attrs.def: Update copyright years.
1282 (ATTR_NONNULL): New attribute identifier.
1283 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1284 attribute tree lists.
1285 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1287 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1288 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1289 attribute lists. Chain the appropriate nonnull attribute.
1290 * c-format.c (check_format_arg): Remove null format string
1292 * testsuite/gcc.dg/format/null-1.c: New test.
1294 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1296 * Makefile.in (ADAC): Define.
1298 (.SUFFIXES): Move before language makefile fragments.
1299 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1301 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1303 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1306 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1308 * cfg.c (dump_flow_info): Print results of
1309 maybe_hot/probably_never_executed predicates.
1310 * toplev.c (open_dump_file): Print function frequency.
1312 2002-05-23 David S. Miller <davem@redhat.com>
1314 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1317 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1319 * c-common.c (warn_nonnull): Declare.
1320 (c_common_attribute_table): Add "nonnull" attribute.
1321 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1322 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1323 check_function_arguments_recurse): New functions.
1324 * c-common.h (warn_nonnull): Declare extern.
1325 (check_function_arguments, check_function_arguments_recurse): New
1327 * c-decl.c (c_decode_option): Add -Wnonnull option.
1328 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1330 (format_check_context): New structure.
1331 (check_format_info_recurse): Remove recursion and rename to...
1332 (check_format_arg): ...this. Update comment.
1333 (check_format_info): Use check_function_arguments_recurse.
1334 * c-typeck.c (build_function_call): Call check_function_arguments
1335 instead of check_function_format.
1336 * doc/extend.texi: Document "nonnull" attribute.
1337 * doc/invoke.texi: Docuemnt -Wnonnull option.
1338 * testsuite/gcc.dg/nonnull-1.c: New test.
1339 * testsuite/gcc.dg/nonnull-2.c: New test.
1341 2002-05-23 David S. Miller <davem@redhat.com>
1343 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1344 * cfgcleanup.c (cleanup_cfg): If it is set do not
1345 attempt to delete trivially dead insns.
1346 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1347 * toplev.c (rest_of_compilation): Document non-trivial aspect
1348 the RTL before optimize_save_area_alloca is run.
1350 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1352 * c-lex.c (indent_level): Remove.
1353 (cb_file_change, c_lex): Remove indent level handling.
1354 * c-lex.h (indent_level): Remove.
1355 * input.h (struct file_stack): Remove indent_level.
1356 * toplev.c (push_srcloc): Remove indent_level handling.
1358 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1361 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1362 of x in constraints for clarity.
1363 (sse_mov?fcc split): abort if op2 == op3.
1364 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1365 sse_movsfcc_const0_4): Add earlyclobber.
1366 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1367 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1368 Use Y instead of x in constraints.
1370 2002-05-23 Richard Henderson <rth@redhat.com>
1372 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1373 (C++98 Thread-Local Edits): New subsection.
1375 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1376 (ix86_arch): Set type to enum processor_type.
1378 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1379 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1381 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1383 * configure.in: Fix as version test for binutils 2.12.1 releases
1385 * configure: Rebuilt.
1387 2002-05-23 Richard Henderson <rth@redhat.com>
1389 * config/i386/i386.c (get_pic_label_name): New.
1390 (load_pic_register): Remove.
1391 (output_set_got): New.
1392 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1393 * config/i386/i386.md (UNSPEC_SET_GOT): New.
1394 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1395 (prologue_set_got, prologue_get_pc): Remove.
1396 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1397 (builtin_setjmp_receiver): Use gen_set_got.
1398 * config/i386/i386-protos.h: Update.
1400 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1402 * gcse.c (hash_expr): Do not use alias set for hashing.
1404 2002-05-22 Kevin Buettner <kevinb@redhat.com>
1406 * dbxout.c (dbxout_class_name_qualifiers): New function.
1407 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1409 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1411 * cpperror.c (_cpp_begin_message): No special casing
1413 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1414 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1415 * cpplib.c (do_include_common): Use DL_ERROR.
1416 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1418 * fix-header.c (read_scan_file): Update.
1420 2002-05-22 Richard Henderson <rth@redhat.com>
1422 * config/i386/i386.c (ix86_expand_call): New function, extracted
1423 from md call patterns. Add pic_offset_table_rtx to
1424 CALL_INSN_FUNCTION_USAGE when needed.
1425 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1426 (call_value_pop, call_value, untyped_call): Likewise.
1427 (call_exp, call_value_exp): Remove.
1428 * config/i386/i386-protos.h: Update.
1430 2002-05-22 Richard Henderson <rth@redhat.com>
1432 * varasm.c (default_section_type_flags): Check for VAR_DECL
1433 before using DECL_THREAD_LOCAL.
1435 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1437 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1438 (STARTFILE_SPEC): Delete PE crt0.o.
1439 * config/rs6000/aix51.h: Same.
1440 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1441 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1442 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1443 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1444 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1446 2002-05-22 Richard Henderson <rth@redhat.com>
1448 * varasm.c (default_section_type_flags): Handle tls data and
1450 (default_unique_section): Handle tls sections.
1452 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1454 * configure.in (CROSS): Define NATIVE_CROSS.
1455 * configure: Regenerate.
1456 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1457 (startfile_prefix_spec): New var.
1458 (static_specs): Add startfile_prefix_spec.
1459 (do_spec_2): Split out from..
1461 (main): Process startfile_prefix_spec.
1462 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1464 (STARTFILE_PREFIX_SPEC): Define.
1465 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1468 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1470 * cpperror.c: Fix formatting.
1471 * cppexp.c: Likewise.
1472 * cppfiles.c: Likewise.
1473 * cpphash.c: Likewise.
1474 * cpphash.h: Likewise.
1475 * cppinit.c: Likewise.
1476 * cpplex.c: Likewise.
1477 * cpplib.c: Likewise.
1478 * cppmacro.c: Likewise.
1479 * cppmain.c: Likewise.
1480 * cppspec.c: Likewise.
1482 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1484 * combine.c (force_to_mode): Use gen_int_mode.
1485 Don't clear CONST_INT bits outside of mode.
1487 2002-05-22 Richard Henderson <rth@redhat.com>
1489 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1490 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1492 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1495 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1496 if DECL_SIZE_UNIT is INTEGER_CST.
1498 2002-05-22 Richard Henderson <rth@redhat.com>
1500 * flow.c (life_analysis): Delete broken reg_label check.
1502 2002-05-22 Richard Henderson <rth@redhat.com>
1504 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1505 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1507 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1509 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1510 (embed-bb.c): New rule.
1511 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1512 * config/sh/embed_bb.c: Delete.
1514 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1516 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1518 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1520 * config/h8300/h8300.md (*andorqi3): New.
1522 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
1524 PR preprocessor/6517
1525 * Makefile.in: Update.
1526 * c-common.c (c_common_post_options): Add preprocessor
1527 errors to the error count.
1528 * c-lang.c (c_post_options): Kill.
1529 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1530 * hooks.h: Add header guards.
1531 * langhooks-def.h: Include hooks.h.
1532 (LANG_HOOKS_POST_OPTIONS): Update.
1533 * langhooks.h (struct lang_hooks): Update post_options.
1534 * toplev.c (parse_options_and_default_flags): Update.
1536 * objc-lang.c (objc_post_options): Kill.
1537 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1539 2002-05-21 Bruce Korb <bkorb@gnu.org>
1541 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1542 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1543 * fixinc/fixincl.x: regen.
1545 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
1547 * cfgbuild.c: Fix formatting.
1549 * cfgcleanup.c: Likewise.
1550 * cfglayout.c: Likewise.
1551 * cfgloop.c: Likewise.
1552 * cfgrtl.c: Likewise.
1554 2002-05-21 Richard Henderson <rth@redhat.com>
1556 * c-common.h (enum rid): Add RID_THREAD.
1557 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1558 (grokdeclarator): Grok __thread.
1559 * c-parse.in (reswords): Add __thread.
1560 (rid_to_yy): Add RID_THREAD.
1562 * tree.h (DECL_THREAD_LOCAL): New.
1563 (struct tree_decl): Add thread_local_flag.
1564 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1565 * tree.c (staticp): TLS variables are not static.
1567 * target-def.h (TARGET_HAVE_TLS): New.
1568 * target.h (have_tls): New.
1569 * output.h (SECTION_TLS): New.
1570 * varasm.c (assemble_variable): TLS variables can't be common for now.
1571 (default_section_type_flags): Handle .tdata and .tbss.
1572 (default_elf_asm_named_section): Handle SECTION_TLS.
1573 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1575 * flags.h (flag_tls_default): Declare.
1576 * toplev.c (flag_tls_default): Define.
1577 (display_help): Display help for it.
1578 (decode_f_option): Set it.
1580 * doc/extend.texi (Thread-Local): New node describing language-level
1581 thread-local storage.
1582 * doc/invoke.texi (-ftls-model): Document.
1584 * fixinc/inclhack.def (thread_keyword): New.
1585 * fixinc/fixincl.x: Rebuild.
1587 2002-05-21 Jeffrey A Law <law@redhat.com>
1589 * optabs.c (expand_binop): For double-word integer multiplies,
1590 do not compute intermediate results into something that is
1591 not a register (such as a SUBREG or MEM).
1593 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1594 (ix86_sched_reorder): Make sure to initialize scheduling
1595 data even when there's only one insn in the ready queue.
1597 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1599 * genautomata.c (reserv_sets_hash_value): Fix a typo.
1601 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1603 * genautomata.c (reserv_sets_hash_value): Define hash_value as
1604 set_el_t. Transform the hash value into unsigned.
1605 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1606 (transform_3): Add code to process `(A,B)+(D,E)'.
1608 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
1610 * reload1.c (do_output_reload): Run delete_output_reload
1613 2002-05-21 Roger Sayle <roger@eyesopen.com>
1616 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1617 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
1618 (can_store_by_pieces): ... and here to limit the largest mode used.
1619 Add a comment to document this function.
1621 2002-05-21 Richard Henderson <rth@redhat.com>
1623 * flow.c (life_analysis): Fix test for deleted label.
1625 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
1627 * doc/tm.texi: Fix typo.
1629 2002-05-21 Zack Weinberg <zack@codesourcery.com>
1631 * c-common.c (c_common_init): Set options->unsigned_char from
1633 (cb_register_builtins): Define __STRICT_ANSI__ and
1634 __CHAR_UNSIGNED__ here...
1635 * cppinit.c (init_builtins): Not here.
1636 (cpp_create_reader): unsigned_char option defaults to 0, not
1637 !DEFAULT_SIGNED_CHAR.
1638 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1639 and -funsigned-char.
1641 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1642 * cpphash.c (_cpp_init_hashtable): Don't set it.
1643 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1644 directly. Clarify comment.
1646 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1648 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1649 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
1650 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
1651 BASIC_BLOCK (n_basic_blocks - 1).
1652 * cfganal.c (can_fallthru, flow_call_edges_add,
1653 flow_preorder_transversal_compute): Too.
1654 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1655 find_sub_basic_blocks): Too.
1656 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1657 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1658 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1659 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1660 * combine.c (this_basic_block): Type changed to basic_block.
1661 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1662 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1663 get_last_value, distribute_notes, distribute_links): Too.
1664 * final.c (compute_alignments): Too.
1665 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1666 * function.c (thread_prologue_and_epilogue_insns): Too.
1667 * gcse.c (compute_code_hoist_vbeinout): Too.
1668 * global.c (build_insn_chain): Too.
1669 * ifcvt.c (find_if_block, find_cond_trap): Too.
1670 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1671 * regmove.c (regmove_optimize): Too.
1672 * resource.c (find_basic_block): Too.
1673 * sched-ebb.c (schedule_ebbs): Too.
1674 * ssa-dce.c (find_control_dependence, find_pdom): Too.
1676 2002-05-21 Andreas Jaeger <aj@suse.de>
1678 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1680 2002-05-21 Richard Henderson <rth@redhat.com>
1682 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1683 unspec names, not numbers.
1685 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
1687 * doc/sourcebuild.texi: Mention snapshot-README and
1688 snapshot-index.html as needing updating for new front ends.
1690 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1692 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1693 disabling checking, and avoid multiple evaluation of RTX.
1695 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
1697 * bitmap.c (bitmap_find_bit): Return early if we have the correct
1700 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1702 * profile.c (gen_edge_profiler): Set alias set before the memory is
1705 2002-05-20 David S. Miller <davem@redhat.com>
1707 * cselib.c (max_value_regs): New.
1708 (cselib_lookup, cselib_invalidate_regno): Initialize it when
1709 adding new entries to the REG_VALUES table and we are dealing with
1711 (clear_table): Initialize it.
1712 (cselib_invalidate_regno): Use it to determine which hard
1713 registers to scan when mode is not VOIDmode.
1715 2002-05-20 Duraid Madina <duraid@fl.net.au>
1717 * tradcpp.c (fixup_newlines): Use old-style function header.
1719 2002-05-20 Krister Walfridsson <cato@df.lth.se>
1721 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1723 2002-05-20 H.J. Lu (hjl@gnu.org)
1725 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1727 * config/mips/mips.h (DFMODE_NAN): Defined.
1728 (SFMODE_NAN): Likewise.
1730 2002-05-20 Dale Johannesen <dalej@apple.com>
1732 * combine.c (cant_combine_insn_p): Back out my
1735 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1737 * params.c: Fix formatting.
1738 * params.h: Likewise.
1739 * predict.c: Likewise.
1740 * prefix.c: Likewise.
1741 * print-rtl.c: Likewise.
1742 * print-tree.c: Likewise.
1743 * profile.c: Likewise.
1745 2002-05-20 H.J. Lu (hjl@gnu.org)
1747 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1749 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
1751 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1752 switches straight on to the assembler, do not abbreviate them.
1753 * config/arm/elf.h (ASM_SPEC): As above.
1754 * config/arm/semi.h (ASM_SPEC): As above.
1755 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1756 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1757 -mcpu=xscale on to the assembler by default.
1758 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1760 2002-05-20 Richard Henderson <rth@redhat.com>
1762 * cse.c (canon_hash): Reorder do_not_record test. Always
1763 allow pic_offset_table_rtx.
1765 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
1767 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1768 (expand_binop): Ditto (3 times).
1770 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
1772 * Makefile.in (distclean): Remove QMTest stuff.
1773 (QMTEST_PATH): New variable.
1774 (QMTESTFLAGS): Likewise.
1775 (QMTESTRUNFLAGS): Likewise.
1777 (QMTEST_GPP_TESTS): Likewise.
1778 (QMTEST_DIR): Likewise.
1779 (QMTEST_DIR/context): New target.
1780 (qmtest-g++): Likeise.
1781 (qmtest-gui): Likewise.
1782 (QMTEST_DIR/gpp-expected.qmr): Likewise.
1784 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
1786 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1787 an altivec register if TARGET_ALTIVEC.
1789 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1790 to ALTIVEC_VECTOR_MODE.
1791 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1792 (rs6000_va_arg): Vectors may go in registers if they are not
1795 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
1797 * protoize.c: Fix formatting.
1799 2002-05-19 Richard Henderson <rth@redhat.com>
1801 * gensupport.c (init_include_reader): Merge into ...
1802 (process_include): ... here. Simplify composite path creation.
1803 Plug memory leaks. Fix file/line number tracking. Do not
1804 process_define_cond_exec. Return void.
1805 (process_rtx): Don't check process_include return value.
1807 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1809 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1811 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1812 traversing basic block chain.
1813 (create_basic_block_structure, create_basic_block): Declaration changed.
1814 (link_block, unlink_block): Declare.
1815 * cfg.c (entry_exit_blocks): Initialize new fields.
1816 (link_block, unlink_block): New.
1817 (expunge_block_nocompact): Unlink basic block.
1818 (dump_flow_info): Print prev_bb/next_bb fields.
1819 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1820 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1821 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1822 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1823 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1824 (verify_flow_info): Check that list agrees with numbering.
1826 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
1828 * c-common.c (preprocessing_asm): New macro.
1829 * c-lex.h (builtin_define, builtin_assert): Use pfile.
1833 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1834 (CPP_SPEC): Simplify.
1835 (TARGET_CPU_CPP_BUILTINS): Update.
1836 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1837 (CPP_SPEC): Simplify.
1838 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1839 (TARGET_OS_CPP_BUILTINS): Update.
1840 * osf.h (CPP_XFLOAT_SPEC): Kill.
1841 (TARGET_OS_CPP_BUILTINS): Update.
1842 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1843 * osf5.h (CPP_XFLOAT_SPEC): Kill.
1844 * vms.h (CPP_SUBTARGET_SPEC): Kill.
1845 (TARGET_OS_CPP_BUILTINS): Update.
1847 2002-05-19 Richard Henderson <rth@redhat.com>
1849 * varasm.c (default_binds_local_p): Fix typo.
1851 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1853 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1854 CONST_INT operand to the correct mode after adding 1 to it.
1856 2002-05-19 Mark Mitchell <mark@codesourcery.com>
1858 * config.gcc (powerpc-wrs-windiss*): New target.
1860 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1862 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1865 2002-05-18 Mark Mitchell <mark@codesourcery.com>
1867 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1869 * config.in: Regenerated.
1870 * configure: Regenerated.
1872 2002-05-19 Richard Henderson <rth@redhat.com>
1874 * target-def.h (TARGET_BINDS_LOCAL_P): New.
1875 * target.h (struct gcc_target): Move boolean fields to the end.
1877 * varasm.c (default_binds_local_p): New.
1878 * output.h: Declare it.
1880 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1881 * config/cris/cris.c (cris_encode_section_info): Likewise.
1882 * config/i386/i386.c (i386_encode_section_info): Likewise.
1883 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1884 * config/sh/sh.c (sh_encode_section_info): Likewise.
1886 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1887 (TARGET_BINDS_LOCAL_P): New.
1889 2002-05-19 Richard Henderson <rth@redhat.com>
1891 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1892 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1893 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1895 * toplev.c (display_help): Kill -a -ax help.
1897 * config/1750a/1750a.h, config/alpha/alpha.h,
1898 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1899 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1900 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1901 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1903 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1904 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1906 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1907 (ix86_output_function_block_profiler): Kill.
1908 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1909 (m68hc11_function_block_profiler): Kill.
1910 * config/m68hc11/m68hc11-protos.h: Update.
1911 * config/m88k/m88k.c (output_block_profiler): Kill.
1912 (output_function_block_profiler): Kill.
1913 * config/m88k/m88k-protos.h: Update.
1915 2002-05-19 Richard Henderson <rth@redhat.com>
1917 * system.h (STRIP_NAME_ENCODING): Poison it.
1918 * output.h (STRIP_NAME_ENCODING): Remove.
1919 (default_strip_name_encoding): Declare.
1920 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1921 * target.h (strip_name_encoding): New.
1922 * varasm.c (default_strip_name_encoding): New.
1924 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1925 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1926 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1927 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1928 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1929 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1930 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1931 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
1932 config/v850/v850.h: Use the hook, not the macro.
1934 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1935 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
1936 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
1937 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
1938 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
1939 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
1940 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1941 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
1942 config/v850/v850.c, config/v850/v850.h:
1943 Move STRIP_NAME_ENCODING to out-of-line function and add
1944 TARGET_STRIP_NAME_ENCODING.
1946 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
1947 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
1948 with TARGET_STRIP_NAME_ENCODING referencing existing function;
1949 make function static.
1951 * xcoffout.c: Include target.h
1952 * Makefile.in (xcoffout.o): Update.
1954 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
1955 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
1956 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
1957 reloc argument unused.
1958 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
1960 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
1961 STRIP_NAME_ENCODING docs.
1963 2002-05-19 Andreas Jaeger <aj@suse.de>
1965 * gengenrtl.c: Add prototype for excluded_rtx.
1967 * real.h: Add prototype for exact_real_truncate.
1969 2002-05-18 Richard Henderson <rth@redhat.com>
1971 * system.h (ENCODE_SECTION_INFO): Poison it.
1972 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
1973 * target.h (encode_section_info): New.
1974 * varasm.c (make_decl_rtl, output_constant_def): Use it.
1975 * hooks.c (hook_tree_int_void): New.
1976 * hooks.h: Declare it.
1978 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1979 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
1980 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
1981 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
1982 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
1983 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
1984 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1985 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
1986 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1987 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1988 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
1989 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
1990 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
1991 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
1992 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
1993 referencing existing function. Make function static.
1995 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
1996 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
1997 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
1998 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
1999 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2000 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2001 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2002 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2003 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2004 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2005 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2006 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2007 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2008 Move ENCODE_SECTION_INFO to out-of-line function and add
2009 TARGET_ENCODE_SECTION_INFO.
2011 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2012 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2014 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2016 (switch_to_section): Replace in_rdata case with in_readonly_data.
2018 * config/h8300/h8300.c (h8300_encode_label): Make static.
2019 * config/h8300/h8300-protos.h: Update.
2021 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2022 from rs6000_encode_section_info; make static.
2023 (rs6000_xcoff_encode_section_info): New.
2025 * config/v850/v850.c (v850_encode_data_area): Make static.
2026 * config/v850/v850-protos.h: Update.
2028 * config/vax/vax.c: Include flags.h.
2029 (vms_select_section): Fix typo.
2031 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2032 ENCODE_SECTION_INFO docs.
2034 2002-05-18 Richard Henderson <rth@redhat.com>
2036 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2037 REGISTER_TARGET_PRAGMAS.
2038 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2040 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2042 2002-05-18 Richard Henderson <rth@redhat.com>
2044 * system.h (SELECT_RTX_SECTION): Poison.
2045 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2046 * target.h (select_rtx_section): New.
2047 * varasm.c (output_constant_pool): Use it.
2048 (default_select_rtx_section, default_elf_select_rtx_section): New.
2049 * output.h: Declare them.
2051 * config/darwin.h (SELECT_RTX_SECTION): Move ...
2052 * config/darwin.c (machopic_select_rtx_section): ... here.
2053 * config/darwin-protos.h: Update.
2055 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2056 * config/nextstep.c (machopic_select_rtx_section): ... here.
2057 (nextstep_select_section): Rename variable to avoid macro clash.
2058 * config/nextstep-protos.h: Update.
2060 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2061 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2062 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2063 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2064 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2065 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2066 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2067 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2068 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2069 (SELECT_RTX_SECTION): Remove.
2071 * config/darwin.h, config/elfos.h, config/nextstep.h,
2072 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2073 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2074 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2075 config/sparc/lynx.h, config/xtensa/xtensa.c
2076 (TARGET_ASM_SELECT_RTX_SECTION): New.
2078 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2079 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2080 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2081 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2082 (ia64_aix_select_rtx_section): New.
2083 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2085 * config/mips/mips.c (mips_select_rtx_section): Make static.
2086 Support ELF SHF_MERGE features.
2087 * config/mips/mips-protos.h: Update.
2088 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2089 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2090 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2091 make static, fall back to default_elf_select_rtx_section.
2092 * config/rs6000/rs6000-protos.h: Update.
2093 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2094 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2095 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2096 * config/romp/romp.c (romp_select_rtx_section): New.
2097 * config/s390/s390.c (s390_select_rtx_section): New.
2098 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
2099 declarations before target macro definition.
2100 (xtensa_emit_call): Use static buffer.
2101 (xtensa_select_rtx_section): New.
2102 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2103 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2104 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2106 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2107 SELECT_RTX_SECTION docs.
2109 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
2111 * i386.md (movsi/movdi): Fix template.
2112 (sse2 patterns): Set attributes consistently.
2114 * i386.md (pushqi2, ashrqi_*): Fix constraint.
2116 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
2118 * optabs.c (complex_part_zero_p): New.
2119 * (expand_cmplxdiv_straight): Use it.
2120 * (expand_cmplxdiv_wide): Ditto.
2121 * (expand_binop): Ditto.
2123 2002-05-18 Richard Henderson <rth@redhat.com>
2125 * final.c (HAVE_READONLY_DATA_SECTION): New.
2126 (shorten_branches): Use it instead of ifdefs.
2127 * varasm.c (enum in_section): Add in_readonly_data.
2128 (text_section, data_section): Tidy.
2129 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2131 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2132 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2133 (READONLY_DATA_SECTION): Don't undef.
2135 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2136 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2137 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2139 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2140 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2141 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2142 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2144 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2145 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2146 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2147 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2148 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2149 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2150 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2151 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2152 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2154 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2155 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2156 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2157 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2158 config/pa/pa64-hpux.h, config/sparc/litecoff.h
2159 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2161 * config/elfos.h, config/netware.h, config/svr3.h,
2162 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2163 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2164 config/h8300/h8300.h, config/i386/i386-interix.h,
2165 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2166 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2168 * config/elfos.h, config/netware.h, config/svr3.h,
2169 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2170 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2171 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2172 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2174 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2175 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2176 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2177 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2178 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2179 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2180 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2181 config/rs6000/sysv4.h, config/v850/v850.h
2182 (EXTRA_SECTIONS): Remove in_const/in_rdata.
2183 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2185 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2186 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2187 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2188 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2189 * config/alpha/alpha.c (alpha_start_function): Likewise.
2190 (alpha_write_linkage): Likewise.
2191 * config/m32r/m32r.c (m32r_select_section): Likewise.
2192 * config/m88k/m88k.c (m88k_select_section): Likewise.
2193 * config/mips/mips.c (mips_select_rtx_section): Likewise.
2194 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2195 (rs6000_elf_select_section): Likewise.
2196 * config/v850/v850.c (v850_select_section): Likewise.
2198 * config/1750a/1750a.h, config/i860/sysv3.h
2199 (READONLY_DATA_SECTION_ASM_OP): New.
2200 READONLY_DATA_SECTION_ASM_OP.
2201 * config/i386/interix.c, config/i386/winnt.c
2202 (i386_pe_unique_section): Always use .rdata prefix.
2203 * config/pa/som.h (readonly_data): Always switch to read-only section.
2204 (READONLY_DATA_SECTION): Predicate on flag_pic.
2205 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2206 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2207 (READONLY_DATA_SECTION): Update.
2209 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
2211 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2212 is used without -Wformat.
2213 * c-common.h (warn_format_zero_length): Declare extern.
2214 * c-decl.c (warn_options): Add "format-zero-length".
2215 * c-format.c (warn_format_zero_length): Declare.
2216 (set_Wformat): Set warn_format_zero_length for -Wformat.
2217 (check_format_info): Only warn about zero-length formats if
2218 warn_format_zero_length is true. Include the format type
2219 name in the warning message.
2220 * doc/invoke.texi: Document -Wformat-zero-length.
2221 * testsuite/gcc.dg/format/zero-length-1.c: New test.
2223 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2225 * timevar.c: Fix formatting.
2226 * tlink.c: Likewise.
2227 * toplev.c: Likewise.
2228 * tree-dump.c: Likewise.
2229 * tree-inline.c: Likewise.
2231 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2233 * cppinit.c (cpp_post_options): If preprocessed, turn off
2234 traditional. If traditional, turn off column numbers.
2235 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2236 * cpptrad.c (handle_newline): Update line_base.
2237 (skip_comment): Handle -Wcomment.
2239 2002-05-17 Zack Weinberg <zack@codesourcery.com>
2241 * cppinit.c (struct builtin): Remove unused fields.
2242 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2243 (operator_array): New - was second half of builtin_array.
2244 (init_builtins): Simplify loop over builtin_array/operator_array.
2246 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2248 * defaults.h (UNIQUE_SECTION): Remove.
2249 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2251 2002-05-17 Richard Henderson <rth@redhat.com>
2253 * expr.c (init_expr_once): Don't use start/end_sequence.
2254 Use rtx_alloc instead of emit_insn.
2255 * toplev.c (lang_dependent_init): Run init_expr_once here ...
2256 (lang_independent_init): ... not here.
2258 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2260 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2262 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2264 * config/avr/avr.c (avr_regs_to_save): New function. Also check
2265 for fixed registers, possibly used for global register variables.
2266 (initial_elimination_offset, avr_output_function_prologue,
2267 avr_output_function_epilogue): Move common code to avr_regs_to_save.
2269 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2271 * Makefile.in: Update for cpptrad.c.
2272 * cpphash.h (struct cpp_buffer): New members for buffer
2274 (struct cpp_reader): New members for traditional output.
2275 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2276 * cppinit.c (cpp_create_reader): Set trad_line.
2277 (cpp_destroy): Free trad_out_base if used.
2278 (cpp_read_main_file): Overlay an empty buffer if traditional.
2279 (cpp_finish_options): Don't do builtins.
2280 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2281 (cpp_handle_option): Handle it.
2282 * cpplex.c (continue_after_nul): New.
2283 (_cpp_lex_direct): Use handle_nul.
2284 * cpplib.h (struct cpp_options): New traditional option.
2285 * cpptrad.c: New file.
2287 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2289 * c-common.c (c_common_init_options): Use C89 for Objective-C,
2290 and set the options flag.
2291 * cppinit.c (lang_flags): Remove objc.
2292 (lang_defaults): Remove OBJC and OBJCXX.
2294 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2295 (cpp_handle_option): Remove -+ and -lang-objc++.
2296 For ObjC, just set a flag.
2297 (print_help): Update.
2298 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2300 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2302 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2303 bootstrap with -mips3.
2305 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2307 * final.c: Fix formatting.
2308 * fix-header.c: Likewise.
2310 * fold-const.c: Likewise.
2311 * function.c: Likewise.
2313 2002-05-17 David S. Miller <davem@redhat.com>
2315 PR c/6689, PR optimization/6615
2316 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2317 and make it a pointer to rtx. Update comments.
2318 (update_equiv_regs): When scanning for equivalences, record
2319 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2320 it while making the equiv replacements.
2322 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2324 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2326 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2328 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2329 when encoding visibility into SYMBOL_REF_FLAG.
2331 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2333 * expr.c (force_operand): Fix reversed move.
2335 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2337 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2338 that can be ignored.
2340 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2342 * doc/install.texi (Final install): Recommend to install into a
2343 "clean" target directory.
2345 2002-05-17 Richard Henderson <rth@redhat.com>
2347 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2348 for code blocks. Tidy whitespace.
2350 2002-05-17 Richard Henderson <rth@redhat.com>
2352 * hooks.c (hook_tree_bool_false): New.
2353 * hooks.h: Declare it.
2354 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2355 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2356 * target.h (select_section, unique_section): New.
2357 (in_small_data_p): New.
2358 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2359 (variable_section, output_constant_def_contents): Likewise.
2360 (default_select_section, default_unique_section): New.
2361 (categorize_decl_for_section, default_elf_select_section): New.
2362 * output.h: Declare them.
2364 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2365 (TARGET_ASM_SELECT_SECTION): New.
2366 (SELECT_SECTION): Move ...
2367 * config/darwin.c (machopic_select_section): ... here.
2368 * config/darwin-protos.h: Update.
2370 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2371 (SELECT_SECTION): Move ...
2372 * config/nextstep.c (nextstep_select_section): ... here.
2373 * config/nextstep-protos.h: Update.
2375 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2376 (TARGET_ASM_SELECT_SECTION): New.
2377 * config/svr3.h (SELECT_SECTION): Remove.
2379 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2380 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2381 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2382 (alpha_encode_section_info): Use it.
2383 * config/alpha/alpha-protos.h: Update.
2384 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2385 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2386 (TARGET_ASM_SELECT_SECTION): New.
2387 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2389 * config/arm/pe.h (UNIQUE_SECTION): Remove.
2390 (TARGET_ASM_UNIQUE_SECTION): New.
2392 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2393 (avr_unique_section): Rename from unique_section; make static.
2394 * config/avr/avr-protos.h: Update.
2395 * config/avr/avr.h (UNIQUE_SECTION): Remove.
2397 * config/c4x/c4x.h (SELECT_SECTION): Remove.
2399 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2400 (TARGET_ASM_UNIQUE_SECTION): New.
2401 * config/i386/i386-interix.h: Likewise.
2402 * config/i386/win32.h: Likewise.
2403 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2404 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2405 * config/i386/sco5.h (SELECT_SECTION): Remove.
2406 (TARGET_ASM_SELECT_SECTION): New.
2407 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2409 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2410 instead of SELECT_SECTION.
2411 * config/m68k/dpx2.h: Likewise.
2412 * config/rs6000/lynx.h: Likewise.
2414 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2415 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2416 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2417 (ia64_in_small_data_p): New.
2418 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2419 (ia64_aix_select_section, ia64_aix_unique_section): New.
2420 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2421 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2423 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2424 (TARGET_ASM_SELECT_SECTION): New.
2425 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2426 * config/m32r/m32r-protos.h: Update.
2428 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2429 (SELECT_SECTION): Move ...
2430 * config/m88k/m88k.c (m88k_select_section): ... here.
2432 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2433 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2434 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2435 (mcore_unique_section): Make static.
2436 * config/mcore/mcore-protos.h: Update.
2438 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2439 (TARGET_ASM_UNIQUE_SECTION): New.
2440 * config/mips/elf64.h: Likewise.
2441 * config/mips/iris6gld.h: Likewise.
2442 * config/mips/linux.h: Likewise.
2443 * config/mips/mips-protos.h: Update.
2444 * config/mips/mips.c (mips_select_section): Add align argument.
2445 * config/mips/mips.h (SELECT_SECTION): Remove.
2446 (TARGET_ASM_SELECT_SECTION): New.
2448 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2449 * config/mmix/mmix.c (mmix_select_section): Remove.
2450 (mmix_unique_section): Remove.
2451 * config/mmix/mmix-protos.h: Update.
2453 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2454 (SELECT_SECTION): Move ...
2455 * config/pa/pa.c (pa_select_section): ... here.
2456 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2458 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2459 from rs6000_select_section and make static.
2460 (rs6000_elf_unique_section): Similarly.
2461 (rs6000_xcoff_select_section): From xcoff.h.
2462 (rs6000_xcoff_unique_section): Likewise.
2463 * config/rs6000/rs6000-protos.h: Update.
2464 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2465 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2466 * config/rs6000/xcoff.h: Likewise.
2468 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2469 (SELECT_SECTION): Move ...
2470 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2472 * config/v850/v850.h (SELECT_SECTION): Move ...
2473 * config/v850/v850.c (v850_select_section): ... here.
2474 (TARGET_ASM_SELECT_SECTION): New.
2476 * config/vax/vms.h (SELECT_SECTION): Move ...
2477 * config/vax/vax.c (vms_select_section): ... here.
2478 (TARGET_ASM_SELECT_SECTION): New.
2480 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2481 for the target hooks.
2483 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
2485 * config/arm/arm.c (emit_multi_reg_push): Do not set
2486 RTX_FRAME_RELATED_P on the SEQUENCE.
2488 2002-05-16 Richard Henderson <rth@redhat.com>
2490 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2491 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
2493 2002-05-16 Richard Henderson <rth@redhat.com>
2495 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2497 * config/ia64/ia64.c (saveable_obstack): Do not declare.
2499 2002-05-16 Richard Henderson <rth@redhat.com>
2501 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2502 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2503 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2504 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2505 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2506 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2507 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2508 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2509 Revert "Basic block renumbering removal", and two followup patches.
2511 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2513 * lcm.c (optimize_mode_switching): Revert previous change.
2515 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2517 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2518 with only extant block numbers.
2520 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2522 * lcm.c (optimize_mode_switching): Fix typo.
2524 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2526 * flow.c (calculate_global_regs_live): Queue blocks in program order.
2528 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2530 * doc/install.texi (Configuration): Document PWDCMD.
2532 2002-05-16 Dale Johannesen <dalej@apple.com>
2534 * combine.c (cant_combine_insn_p): Reenable combinations
2535 involving hard regs unless CLASS_LIKELY_SPILLED_P.
2537 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2539 * c-common.c (cb_register_builtins): Handle more built-ins
2540 here rather than in gcc.c specs.
2541 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2542 (cpp_options): Pass -O flags even when only preprocessing.
2543 * toplev.c (set_fast_math_flags): New prototype.
2544 (fast_math_flags_set_p): New.
2545 (set_no_fast_math_flags): Remove.
2546 (decode_f_option): Update.
2547 * toplev.h (set_fast_math_flags): Update.
2548 (fast_math_flags_set_p): New.
2549 (set_no_fast_math_flags): Remove.
2551 * c4x/c4x.c (c4x_override_options): Update.
2553 2002-05-16 Zack Weinberg <zack@codesourcery.com>
2555 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2556 Default-define here.
2557 (builtin_define_with_value): Can now wrap the expansion in
2558 quotation marks if such is wanted.
2559 (cb_register_builtins): Update calls to builtin_define_with_value.
2560 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2562 (c_common_init): Set options->stdc_0_in_system_headers.
2563 * c-lex.h: Update prototype of builtin_define_with_value.
2564 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2565 and REGISTER_PREFIX.
2567 * cppinit.c (VERS, ULP, C, X): Kill.
2568 (builtin_array): Remove entries for __VERSION__,
2569 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2570 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
2572 (init_builtins): Kill off a bunch of now-dead code.
2573 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2574 -fno-leading-underscore.
2575 (cpp_handle_option): Remove code to set user_label_prefix.
2576 (cpp_post_options): Likewise.
2578 * cpplib.h (struct cpp_options): Remove user_label_prefix.
2579 (stdc_0_in_system_headers): New.
2580 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2581 stdc_0_in_system_headers) too to decide the value of __STDC__.
2583 * tradcpp.c (user_label_prefix): Kill.
2584 (main): Remove code handling -f(no-)leading-underscore.
2585 (initialize_builtins): Don't define __REGISTER_PREFIX__
2586 or __USER_LABEL_PREFIX__.
2587 (install_value): Wrap compound statement in dummy loop so the
2588 macro works properly in an if statement.
2591 2002-05-16 Janis Johnson <janis187@us.ibm.com>
2593 * loop.h (struct loop_info): Add member has_prefetch.
2594 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2595 (prescan_loop): Initialize has_prefetch.
2596 (struct prefetch_info): Change prefetch_in_loop and
2597 prefetch_before_loop from bit fields to ints.
2598 (emit_prefetch_instructions): Several small fixes.
2599 (check_dbra_loop): Don't reverse loop that uses prefetch.
2601 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2603 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2604 * configure.in: Likewise.
2605 * fixinc/check.tpl: Likewise.
2606 * fixinc/fixinc.dgux: Likewise.
2607 * fixinc/fixinc.svr4: Likewise.
2608 * fixinc/fixinc.winnt: Likewise.
2609 * fixinc/fixincl.sh: Likewise.
2610 * fixproto: Likewise.
2611 * configure: Regenerate.
2613 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2615 Basic block renumbering removal:
2616 * basic_block.h (struct basic_block_def): Renamed index to sindex,
2617 added prev_bb and next_bb fields.
2618 (n_basic_blocks): Renamed to num_basic_blocks.
2619 (last_basic_block): New, index of last basic block.
2620 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2621 traversing basic block chain.
2622 (BLOCK_NUM): index -> sindex.
2623 (create_basic_block_structure, create_basic_block): Declaration changed.
2624 (debug_num2bb): Declare.
2625 (expunge_block_nocompact): Declaration removed.
2626 (link_block, unlink_block, compact_blocks): Declare.
2627 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2628 * cfg.c (entry_exit_blocks): Initialize new fields.
2629 (clear_edges, alloc_block, expunge_block, cached_make_edge,
2630 redirect_edge_pred, dump_flow_info, dump_edge_info,
2631 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2632 free_aux_for_edges): Modified.
2633 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2634 (expunge_block_nocompact): Removed.
2635 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2636 find_unreachable_blocks, create_edge_list, print_edge_list,
2637 verify_edge_list, flow_edge_list_print, remove_fake_successors,
2638 remove_fake_edges, flow_reverse_top_sort_order_compute,
2639 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2640 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2641 flow_dfs_compute_reverse_execute): Modified.
2642 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2643 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2645 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2646 merge_blocks_move_predecessor_nojumps,
2647 merge_blocks_move_successor_nojumps, merge_blocks,
2648 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2649 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2650 * cfglayout.c (skip_insns_after_block, label_for_bb,
2651 record_effective_endpoints, scope_to_insns_finalize,
2652 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2653 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2654 cfg_layout_duplicate_bb): Modified.
2655 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2656 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2657 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2658 flow_loops_find, flow_loop_outside_edge_p): Modified.
2659 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2660 flow_delete_block, compute_bb_for_insn, split_block,
2661 try_redirect_by_replacing_jump, redirect_edge_and_branch,
2662 force_nonfallthru_and_redirect, tidy_fallthru_edge,
2663 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2664 commit_edge_insertions, commit_edge_insertions_watch_calls,
2665 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2666 purge_all_dead_edges): Modified.
2667 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2668 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2669 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2671 * conflict.c (conflict_graph_compute): Modified.
2672 * df.c (FOR_ALL_BBS): Removed.
2673 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2674 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2675 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2676 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2677 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2678 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2679 * final.c (compute_alignments, final_scan_insn): Modified.
2680 * flow.c (verify_local_live_at_start, update_life_info,
2681 update_life_info_in_dirty_blocks, free_basic_block_vars,
2682 delete_noop_moves, calculate_global_regs_live,
2683 initialize_uninitialized_subregs, allocate_bb_life_data,
2684 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2685 mark_used_reg, count_or_remove_death_notes): Modified.
2686 * function.c (thread_prologue_and_epilogue_insns): Modified.
2687 * gcse.c (struct null_pointer_info): Change typo of current_block
2689 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2690 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2691 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2692 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2693 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2694 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2695 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2696 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2697 pre_delete, one_pre_gcse_pass, compute_transpout,
2698 invalidate_nonnull_info, delete_null_pointer_checks_1,
2699 free_code_hoist_mem, compute_code_hoist_vbeinout,
2700 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2701 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2702 compute_store_table, build_store_vectors, insert_insn_start_bb,
2703 insert_store, replace_store_insn, free_store_memory, store_motion):
2705 * global.c (global_alloc, global_conflicts, mark_elimination,
2706 build_insn_chain): Modified.
2707 * graph.c (print_rtl_graph_with_bb): Modified.
2708 * haifa-sched.c (sched_init): Modified.
2709 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2710 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2711 if_convert): Modified.
2712 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2713 compute_insert_delete, pre_edge_lcm, compute_available,
2714 compute_farthest, compute_nearerout, compute_rev_insert_delete,
2715 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2717 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2718 * loop.c (loop_dump_aux): Modified.
2719 * predict.c (combine_predictions_for_insn, estimate_probability,
2720 last_basic_block_p, process_note_prediction, process_note_predictions,
2721 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2722 expensive_function_p, estimate_bb_frequencies,
2723 compute_function_frequency): Modified.
2724 * print-rtl.c (print_rtx): Modified.
2725 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2726 get_exec_counts, compute_branch_probabilities, compute_checksum,
2727 branch_prob, find_spanning_tree): Modified.
2728 * recog.c (split_all_insns, peephole2_optimize): Modified.
2729 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2730 convert_regs_1, convert_regs_2, convert_regs): Modified.
2731 * regclass.c (scan_one_insn, regclass): Modified.
2732 * regmove.c (mark_flags_life_zones, regmove_optimize,
2733 combine_stack_adjustments): Modified.
2734 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2735 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2736 * reorg.c (dbr_schedule): Modified.
2737 * resource.c (find_basic_block, init_resource_info): Modified.
2738 * sbitmap.c (sbitmap_intersection_of_succs,
2739 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2740 sbitmap_union_of_preds): Modified.
2741 * sched-deps.c (init_dependency_caches): Modified.
2742 * sched-ebb.c (schedule_ebbs): Modified.
2743 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2744 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2745 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2746 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2747 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2748 ssa_const_prop): Modified.
2749 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2750 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2751 * ssa.c (remove_phi_alternative, find_evaluations,
2752 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2753 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2754 make_regs_equivalent_over_bad_edges,
2755 make_equivalent_phi_alternatives_equival,
2756 compute_conservative_reg_partition,
2757 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2758 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2761 2002-05-16 Mark Mitchell <mark@codesourcery.com>
2763 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2765 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
2767 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2768 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2769 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2770 calling CONSTANT_POOL_ADDRESS_P.
2771 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2772 to decide whether to define __arm__ or __thumb.
2773 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2774 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2776 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2778 * config/arc/arc.h (CPP_PREDEFINES): Remove.
2780 (TARGET_CPU_CPP_BUILTINS): New.
2782 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2784 * cpphash.h (cpp_macro): Move here, and make expansion a union.
2785 * cppmacro.c (cpp_macro): Remove.
2786 (enter_macro_context, replace_args, warn_of_redefinition,
2787 _cpp_create_definition, cpp_macro_definition): Update.
2789 2002-05-16 Jason Merrill <jason@redhat.com>
2791 * config/mips/mips.c (mips_output_external): Don't do sdata
2792 optimization for a variable with DECL_COMDAT set.
2794 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2796 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2797 Cleanups for accepting modifiers on pointers.
2798 Fix predicate typos.
2799 Allow long pointers as well as int pointers.
2801 2002-05-15 Richard Henderson <rth@redhat.com>
2803 * varasm.c (merge_weak): Remove special case for extern and common.
2805 2002-05-15 Matt Hiller <hiller@redhat.com>
2807 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2809 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2810 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2811 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2812 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2813 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2814 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2816 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2818 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2820 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2822 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2823 ("altivec_mfvscr"): Read from VSCR.
2825 Add vscr sets for the following insns: altivec_vctuxs,
2826 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2827 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2828 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2829 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2830 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2831 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2832 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2833 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2834 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2835 altivec_vsum2sws, altivec_vsumsws.
2837 * config/rs6000/rs6000.h: Add VSCR fixed register.
2838 (CALL_REALLY_USED_REGISTERS): Add vscr.
2839 (CALL_USED_REGISTERS): Same.
2840 (FIXED_REGISTERS): Same.
2841 (REG_ALLOC_ORDER): Same.
2842 (reg_class): Add VSCR_REGS.
2843 (REG_CLASS_NAMES): Same.
2844 (REG_CLASS_CONTENTS): Same.
2846 (REGISTER_NAMES): Add vscr.
2847 (DEBUG_REGISTER_NAMES): Same.
2848 (ADDITIONAL_REGISTER_NAMES): Same.
2849 (FIRST_PSEUDO_REGISTER): Increment.
2850 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2852 2002-05-15 Jakub Jelinek <jakub@redhat.com>
2854 * fold-const.c (fold): Fix a typo.
2856 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
2858 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2859 comparison against the highest or lowest integer value before
2860 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2861 transformation and that of an unsigned comparison against 0
2864 2002-05-15 Richard Henderson <rth@redhat.com>
2866 * varasm.c (merge_weak): Error for any weakening after definition.
2867 Adjust weakening after use warning to catch more cases.
2868 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2869 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2871 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2873 * invoke.texi (-malign-double): Re-add lost warning.
2875 * i386-protos.h (x86_output_mi_thunk): Declare.
2876 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2877 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2879 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2880 when flag_asynchronous_unwind_tables is set.
2882 * flags.h (flag_reorder_functions): Declare.
2883 * function.c (prepare_function_start): Initialize frequnecy.
2884 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2885 * Makefile.in (predict.o): Add dependency on target.h and params.h
2886 * defaults.h (HOT_TEXT_SECTION_NAME,
2887 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2888 * predict.c (choose_function_section): New function.
2889 (estimate_bb_frequencies): Use it.
2890 * toplev.c (flag_reorder_functions): New global variable.
2891 (lang_independent_options): New.
2892 (parse_options_and_default_flags): Set.
2893 * varasm.c (assemble_start_function): Bypass functdion alignment
2894 for never executed functions.
2895 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2896 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2897 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2900 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
2902 * predict.c: Inlude profile.h
2903 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2904 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2905 Use the information about maximal counter in the program.
2907 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
2909 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2910 probably_never_executed_bb_p): New functions.
2911 * cfgcleanup.c (outgoing_edges_match): Use them.
2912 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2913 (maybe_hot_bb_p, probably_cold_bb_p,
2914 probably_never_executed_bb_p): New functions.
2916 * function.h (function): Add new field function_frequency.
2917 * predict.c (compute_function_frequency): New function.
2918 (estimate_probability): Call it.
2920 2002-03-09 Jakub Jelinek <jakub@redhat.com>
2922 PR optimization/5172, optimization/5200
2923 * gcse.c (gcse_main): Disable store_motion.
2925 2002-05-14 Zack Weinberg <zack@codesourcery.com>
2927 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2928 (c_common_nodes_and_builtins): Use it.
2929 (builtin_define_with_value): New function.
2930 (cb_register_builtins): Define __SIZE_TYPE__,
2931 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
2932 using builtin_define_with_value. Use consistent notation when
2933 defining __GXX_WEAK__.
2934 (WCHAR_TYPE_SIZE): Don't redefine.
2935 (combine_strings): Don't use WCHAR_TYPE_SIZE.
2937 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
2938 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
2939 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
2940 * tradcpp.c (initialize_builtins): Likewise.
2941 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
2943 * c-lex.h (builtin_define_with_value): Prototype.
2944 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
2945 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
2946 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
2948 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2949 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
2950 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
2951 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
2952 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
2953 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
2954 config/sparc/sol2-bi.h, config/sparc/sparc.h:
2955 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
2956 to __SIZE_TYPE__ etc from all spec strings. When this makes
2957 extra specs empty, delete them.
2959 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
2961 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
2962 for PA8000 or generating dwarf2 call frame information.
2963 (output_call): Remove DO_FRAME_NOTES check from return pointer
2965 (following_call): Return 0 when scheduling for PA8000 or generating
2966 dwarf2 call frame information. Revise comment.
2968 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2971 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
2972 and __IEEE_FP_INEXACT as appropriate.
2973 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
2974 (CPP_SPEC): Remove ieee defines.
2975 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
2977 2002-05-14 Richard Henderson <rth@redhat.com>
2979 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
2980 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
2982 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2984 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
2986 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
2987 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
2988 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
2989 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
2990 (EXTRA_SPECS): Update.
2991 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2992 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
2993 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
2994 define TARGET_OS_CPP_BUILTINS if necessary.
2996 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
2998 * gcc.c (cpp_options): Must pass -m* and -f* options
2999 to the front end even when only preprocessing.
3000 (cc1_options): Remove redundant -lang-c.
3001 * tradcpp.c (main): Ignore -m options.
3003 * lang-specs.h: Similarly.
3005 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
3007 * genautomata.c (transform_3): Add code for transformation
3008 `(A,B,...)+C -> A+C,B,...'.
3010 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
3012 * final.c (end_final): Do not output profile_arcs constructor, when
3013 no functions are instrumented.
3015 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
3017 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3019 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3021 * doc/install.texi: Remove special markup originally required for
3022 HTML generation with texi2html.
3024 2002-05-14 Andreas Schwab <schwab@suse.de>
3026 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3028 (UNIQUE_SECTION): Define to get small data correctly.
3030 * varasm.c (resolve_unique_section): Add third parameter
3031 flag_function_or_data_sections and use it instead of
3032 flag_function_sections.
3033 (assemble_start_function): Pass flag_function_sections.
3034 (asm_emit_uninitialised): Pass flag_data_sections.
3035 (assemble_variable): Likewise.
3037 2002-05-14 Richard Henderson <rth@redhat.com>
3039 * config/i386/i386.md: Use define_constants for unspec numbers.
3040 * config/i386/i386.c: Likewise.
3042 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3044 * doc/contrib.texi: Update my entry.
3046 2002-05-13 Mark Mitchell <mark@codesourcery.com>
3048 * fixinc/inclhack.def (winidss_valist): Limit applicability.
3049 * fixinc/fixincl.x: Regenerated.
3050 * fixinc/tests/base/math.h: Update.
3051 * fixinc/tests/base/testing.h: Likewise.
3053 2002-05-13 Zack Weinberg <zack@codesourcery.com>
3055 * genattr.c (gen_attr): Don't emit a comma after the last
3058 2002-05-13 Richard Henderson <rth@redhat.com>
3060 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3062 * recog.c (peephole2_optimize): Likewise.
3064 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
3066 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3069 2002-05-13 Jeffrey A Law (law@redhat.com)
3071 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3072 Update prototype and callers.
3073 (propagate_one_insn): Stack pointer adjustments kill MEMs on
3074 the mem_set_list which reference the stack pointer, as do
3075 calls to constant functions as they may clobber outgoing
3078 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3080 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3081 (ia32_multipass_dfa_lookahead): New function.
3083 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3085 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3086 (translate_options): Remove 'V'.
3087 (process_command): Similarly.
3089 * invoke.texi: Remove documentation of 'V'.
3091 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3093 * config/s390/linux.h: Revert 2002-04-22 changes.
3095 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
3097 * config/fr30/fr30.md: Only allow splits of immediate loads
3098 if the destination is a register.
3100 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3102 * Makefile.in (c-common.o, cppinit.o): Update.
3103 * c-common.c: Include except.h.
3104 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3105 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3106 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3107 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3108 CPP_PREDEFINES): Handle here.
3110 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3111 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3112 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3113 TARGET_OS_CPP_BUILTINS.
3114 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3115 (CPP_SPEC, EXTRA_SPECS): Update.
3116 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3117 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3118 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3119 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3120 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3122 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3123 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3125 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3127 * emit-rtl.c (global_rtl): Update comment.
3128 (const_double_htab, const_double_htab_hash,
3129 const_double_htab_hash, lookup_const_double): New.
3130 (const_int_htab_hash, const_int_htab_eq): Remove const
3131 qualifiers, which cause tons of warnings with RTL checking on.
3132 (gen_rtx_CONST_DOUBLE): Deleted.
3133 (const_double_from_real_value): New function - bears some
3134 resemblance to the former immed_real_const_1.
3135 (immed_double_const): Moved here from varasm.c and
3137 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3138 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3139 (gen_rtx): Use immed_double_const.
3140 (init_emit_once): Initialize the const_double_htab. Use
3141 REAL_VALUE_FROM_INT where possible. Can now use
3142 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3143 * varasm.c (struct varasm_status): Remove x_const_double_chain.
3144 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3145 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3146 (init_varasm_status, mark_varasm_status): Don't touch
3147 x_const_double_chain.
3149 * output.h: Delete prototype for clear_const_double_mem.
3150 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
3151 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
3152 const_double_from_real_value, not immed_real_const_1, and use
3153 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
3155 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3156 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3157 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3158 (gen_rtx_REG): Second arg is unsigned.
3160 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3161 (excluded_rtx): New, return true for CONST_DOUBLE.
3162 (genmacro): Write nothing for excluded codes.
3163 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3164 * expr.c (expand_expr): Likewise.
3165 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3167 * toplev.c (rest_of_compilation): Don't call
3168 clear_const_double_mem.
3170 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3171 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3172 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3173 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3174 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3175 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3176 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3177 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3179 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3181 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3183 2002-05-12 Tom Tromey <tromey@redhat.com>
3185 * tree.h (copy_node): Don't mention TREE_PERMANENT.
3187 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3189 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3190 (scan_comma_elt): New function. Accepts whitespace in comma lists.
3191 * gensupport.h: Prototype new routines.
3192 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
3194 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3195 (next_comma_elt): Use scan_comma_elt.
3197 * config/i386/i386.md: Use new attribute notation to break up
3198 long lines in define_attr forms.
3200 2002-05-12 Richard Henderson <rth@redhat.com>
3202 * expr.c (compress_float_constant): New.
3203 (emit_move_insn): Use it.
3204 (float_extend_from_mem): New.
3205 (init_expr_once): Initialize it.
3206 * real.c (exact_real_truncate): New.
3208 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3209 dropped into memory; penalize for size.
3210 (RTX_COSTS): FLOAT_EXTEND is free.
3211 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3212 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3214 2002-05-12 Richard Henderson <rth@redhat.com>
3216 * profile.h (profile_info): Add missing extern to declaration.
3217 * profile.c (profile_info): Define it.
3219 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3221 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3222 used for DImode and TImode.
3224 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3226 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3229 2002-05-11 Zack Weinberg <zack@codesourcery.com>
3231 * config/rs6000/rs6000.c (rs6000_default_long_calls,
3232 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3233 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3234 (rs6000_override_options): Handle -m(no-)longcall.
3235 (init_cumulative_args, output_mi_thunk): Check for both
3236 longcall and shortcall attributes on the function.
3237 (rs6000_attribute_table): Add "shortcall".
3238 (rs6000_handle_longcall_attribute): Update comment.
3239 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3240 altivec_expand_ternop_builtin): Add default clauses to switches
3241 to silence warnings.
3243 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3244 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
3245 (TARGET_OPTIONS): Add longcall and no-longcall.
3247 * config/rs6000/rs6000.md (call_nonlocal_sysv,
3248 call_value_nonlocal_sysv): Split by alternatives. One pair
3249 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3250 the call cookie. The other pair accepts only LR/CTR and has
3253 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3254 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3256 * config/rs6000/rs6000-c.c: New file.
3257 * config/rs6000/t-rs6000-c-rule: New file.
3258 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3259 Prototype rs6000_pragma_longcall.
3261 * doc/extend.texi: Document shortcall attribute.
3262 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3264 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3266 * reorg.c (dbr_schedule): Remove unnecessary test.
3268 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3270 * i386.md (testsi to testqi spliters): New.
3272 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
3274 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3276 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3278 * basic-block.h: New flag EDGE_CAN_FALLTHRU
3279 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3280 that can be made fallthru.
3282 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
3284 * cfglayout.c (cleanup_unconditional_jumps): New static function.
3285 (cfg_layout_initialize): Use it.
3287 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
3289 * config/avr/avr.c (avr_mcu_types): Update supported devices.
3290 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3291 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3293 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3295 * dbxout.c: Fix formatting.
3296 * dependence.c: Likewise.
3298 * diagnostic.c: Likewise.
3299 * doloop.c: Likewise.
3300 * dominance.c: Likewise.
3301 * doschk.c: Likewise.
3302 * dwarf2asm.c: Likewise.
3303 * dwarf2out.c: Likewise.
3304 * dwarfout.c: Likewise.
3306 2002-05-10 Richard Henderson <rth@redhat.com>
3308 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3309 Convert integers constants as needed. Replace "nwords" field with
3311 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3312 * function.h: Fix typo in comment.
3313 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3315 2002-05-10 Roger Sayle <roger@eyesopen.com>
3317 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3318 into the equivalent (signed char)c > 0.
3320 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3322 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3323 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3324 (struct prefetch_info): Fix spelling of member bytes_accessed.
3325 (emit_prefetch_instructions): Make dump messages more regular;
3326 restructure code to add more dump messages; use new macros for
3327 heuristics. (There are no code generation changes in any of this).
3329 2002-05-10 David S. Miller <davem@redhat.com>
3331 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3332 (struct rtx_def): Update unchanging flag comment.
3333 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3334 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3335 to be handled to INSN too.
3336 (dbr_schedule): Likewise.
3337 * resource.c (next_insn_no_annul): Likewise.
3339 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3342 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3344 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3345 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3346 (possibly) work around broken /bin/sh.
3348 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3350 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3351 . as N64/N32 libgcc_s.so subdirs.
3353 2002-05-10 David S. Miller <davem@redhat.com>
3355 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3357 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3359 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3361 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3362 * doc/rtl.texi: Document these macros more accurately.
3363 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3364 JUMP_INSNs and CALL_INSNs.
3365 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3366 or INSN_FROM_TARGET_P if the code is appropriate.
3368 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3370 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3371 before using SYMBOL_REF_FLAG (addr).
3373 * config/avr/avr-protos.h (avr_io_address_p): Declare.
3374 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3375 Make non-static. Update all callers.
3376 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3377 New insns to clear/set/test a single bit in I/O address space.
3379 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3381 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3383 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3385 * Makefile.in: Update.
3386 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3387 builtin_define_std): New.
3388 (c_common_init): Register CPP builtins callback.
3389 * c-common.h (flag_iso, flag_undef): New.
3390 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3391 * c-lex.c: Don't include target.h.
3392 (cb_register_builtins): Move to c-common.c.
3393 (init_c_lex): Don't register hook here.
3394 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3395 (cpp_define, cpp_assert): Remove.
3396 * gcc.c (cc1_options): Pass -undef to front end.
3397 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3398 (TARGET_INITIALIZER): Update.
3399 * target.h (struct cpp_reader): Don't predeclare.
3400 (struct gcc_target): Remove cpp builtin hook.
3401 * tree.c (default_register_cpp_builtins): Remove.
3405 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3407 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3409 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3411 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3412 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3414 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3416 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3417 * config/sparc/libgcc-sparc-glibc.ver: New file.
3418 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3419 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3421 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3424 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3425 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3426 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3428 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3429 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3430 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3431 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3433 2002-05-09 Richard Henderson <rth@redhat.com>
3435 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3436 * config/ia64/ia64.c: Likewise.
3438 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3440 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3441 (save_restore_insns): Likewise.
3442 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3443 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3445 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
3447 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3448 * i386.md: Move scheduling information into new files.
3450 * i386.md (type attribute): Add "rotate" for rotate insns.
3451 (rotate insns): Set type to "rotate".
3452 (various attributes and function units): Treat rotate like shift.
3453 (pent_pair attribute): Only rotates by one bit position are
3455 (sbb insns): Explicitly set pent_pair attribute on a couple
3456 that were missing it.
3458 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3460 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3461 make sure that buffer starts on odd word address.
3462 (sh_va_arg): Skip odd fp registers when reading a double precision
3465 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3467 * tree.h (preserve_data, object_permanent_p, type_precision):
3470 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3472 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3473 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3475 * cpp.texi: Update for removal of obsolete features.
3477 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
3478 Jeffrey A Law (law@redhat.com)
3480 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
3481 the DFA interface for Pentium processors.
3482 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3483 (attr_pent_pair, ix86_pent_find_pair): Remove.
3484 (ix86_sched_reorder_pentium): Remove.
3485 (ix86_sched_reorder): Remove reordering for Pentium.
3486 * i386.md (Pentium scheduling): Rewrite using DFA description.
3488 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
3490 * cfganal.c (can_fallthru): Fix fast path.
3491 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3492 with edges to the next block.
3494 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3495 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3497 * final.c (end_final): Use C trees to output data structures for profiling.
3499 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3500 (profile.o): New dependency profile.h
3501 (final.o): New dependency profile.h
3502 * profile.h: New file. New global structure profile_info.
3503 * final.h (count_edges_instrumented_now): Declare.
3504 (current_function_cfg_checksum): Declare.
3505 (function_list): New structure.
3506 (functions_head, functions_tail): New static variables.
3507 (end_final): Emits more data, removed some -ax stuff.
3508 (final): Stores function names and chcksums.
3509 * gcov-io.h (__write_gcov_string): New function.
3510 (__read_gcov_string): New function.
3511 * gcov.c (read_profile): New function.
3512 (create_program_flow_graph): Uses read_profile instead of reading
3514 (read_files): Removed da_file checking, it's done by read_profile now.
3515 * libgcc2.c (bb_function_info): New structure.
3516 (bb): New field in structure, removed some -ax stuff.
3517 (__bb_exit_func): Changed structure of da_file.
3518 * profile.c (count_edges_instrumented_now): New global variable.
3519 (current_function_cfg_checksum): New global variable.
3520 (max_counter_in_program): New global variable.
3521 (get_exec_counts): New function.
3522 (compute_checksum): New function.
3523 (instrument_edges): Sets count_edges_instrumented_now.
3524 (compute_branch_probabilities): Uses get_exec_counts instead of
3526 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3527 (init_branch_prob): Removed da_file checking, done in get_exec_counts
3529 (end_branch_prob): Removed da_file checking, done in get_exec_counts
3531 * gcov.texi: Updated information about gcov file format.
3533 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3535 * sbitmap.c: Fix formatting.
3537 * scan-decls.c: Likewise.
3538 * sched-deps.c: Likewise.
3539 * sched-ebb.c: Likewise.
3540 * sched-rgn.c: Likewise.
3541 * sched-vis.c: Likewise.
3542 * sdbout.c: Likewise.
3543 * sibcall.c: Likewise.
3544 * simplify-rtx.c: Likewise.
3546 * ssa-ccp.c: Likewise.
3547 * ssa-dce.c: Likewise.
3549 * stor-layout.c: Likewise.
3550 * stringpool.c: Likewise.
3552 2002-05-09 David S. Miller <davem@redhat.com>
3554 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3556 2002-05-07 David S. Miller <davem@redhat.com>
3558 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3559 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3560 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3561 library implementation clobbers the output before the inputs
3562 are fully consumed, use stack temporary for the output.
3564 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
3566 * config/netbsd.h (CPP_SPEC): Remove.
3567 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3568 * config/i386/netbsd.h (CPP_SPEC): Define.
3569 * config/ns32k/netbsd.h (CPP_SPEC): Define.
3570 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3571 * config/sparc/netbsd.h (CPP_SPEC): Define.
3572 * config/vax/netbsd.h (CPP_SPEC): Define.
3574 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3576 * read-rtl.c: Fix formatting.
3578 * recog.c: Likewise.
3579 * regclass.c: Likewise.
3580 * regmove.c: Likewise.
3581 * reg-stack.c: Likewise.
3582 * reload1.c: Likewise.
3583 * reload.c: Likewise.
3584 * resource.c: Likewise.
3585 * rtlanal.c: Likewise.
3587 * rtl-error.c: Likewise.
3589 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3591 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3592 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3594 2002-05-08 Bernd Schmidt <bernds@redhat.com>
3596 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3597 use __SSE2__ macro instead.
3598 * config/i386/xmmintrin.h: Likewise.
3600 2002-05-08 Janis Johnson <janis187@us.ibm.com>
3602 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3603 and use it in all invocations of these macros. Clean up comments.
3604 * rtl.c (rtl_check_failed_flag): Add an argument for the name
3605 of the flag access macro whose check failed.
3606 * doc/rtl.texi (Flags): Document additional flag uses.
3608 2002-05-08 Robert Spier <rspier@pobox.com>
3609 Neil Booth <neil@daikokuya.demon.co.uk>
3611 PR preprocessor/6521
3612 * cppfiles.c (handle_missing_header): Don't do anything
3613 different for <> includes.
3615 * cppopts.texi: Update documentation for -MG.
3617 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
3619 * cpplex.c (cpp_interpret_charconst): Truncate as well as
3622 * cpp.texi: Clarify multichar charconst valuation.
3624 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3626 * doc/invoke.texi: Document -mwindiss option.
3628 2002-05-08 Jason Merrill <jason@redhat.com>
3630 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3632 * dwarf2out.c (gen_type_die): Abort on broken recursion.
3635 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3638 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
3640 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3641 little-endian multilibs to override arm/thumb multilibs.
3642 Do not build hardware floating point multilibs, nor apcs-26
3643 multilibs for the Thumb.
3645 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3648 * varasm.c (mark_weak): New function.
3649 (merge_weak): Use it. Do not call declare_weak.
3650 (declare_weak): Use merge_weak.
3652 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3654 * cse.c (dead_libcall_p): Update counts.
3655 (delete_trivially_dead_insns): Update call of dead_libcall_p.
3657 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3659 * cfglayout.c (function_tail_eff_head): Rename to ...
3660 (function_footer): ... this one.
3661 (unlink_insn_chain): New functions.
3662 (label_for_bb): Only call block_label and emit debug message.
3663 (record_effective_endpoints): Actually unlink the headers and footers.
3664 (fixup_reorder_cahin): Re-insert the unlinked sequences.
3665 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3666 * cfglayout.h (struct reorder_block_def): New fields footer/header;
3667 remove eff_head/eff_end.
3668 * rtl.h (set_first_insn): Declare.
3669 * emit-rtl.c (set_first_insn): New function.
3671 * cfglayout.c (fixup_reorder_chain): Dump duplicated
3672 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3673 cfg_layout_duplicate_bb): New global function.
3674 (duplicate_insn_chain): New static function.
3675 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3676 cfg_layout_duplicate_bb): Declare.
3677 (struct reorder_block_def): Add "original" field.
3678 * emit-rtl.c (emit_copy_of_insn_after): New function.
3679 * rtl.h (emit_copy_of_insn_after): Declare.
3681 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3682 (fixup_reorder_chain): properly handle edges to exit block.
3684 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3685 Jan Hubicka <jh@suse.cz>
3687 * basic-block.h (note_prediction_to_br_prob): declare.
3688 * c-semantics.c: Inlucde predit.h
3689 (expand_stmt): predict GOTO_STMT as not taken.
3690 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3691 (cleanup_cfg): Do not free tail_recursion_list.
3692 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3693 (flow_delete_block): Kill predictions past end of basic block.
3694 * output.h (delete_unreachable_blocks): Declare.
3695 * predict.c (predicted_by_p, process_note_predictions,
3696 process_note_prediction, last_block_p): New function.
3697 (estimate_probability): Bypass loop on PRED_CONTINUE;
3698 do not handle noreturn heuristics; kill PRED_RETURN; add
3700 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3701 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3702 * predict.h (IS_TAKEN): New constant.
3703 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3704 * rtl.c (NOTE_INSN_PREDICTION): New.
3705 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3707 (insn_note): add NOTE_INSN_PREDICTION.
3708 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3709 CFG; free tail_recursion_label_list.
3710 * stmt.c: Include predict.h;
3711 (return_prediction): New.
3712 (expand_value_return): Use it.
3713 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3715 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
3717 * config/mips/mips.md: Name the unspecs with define_constant.
3718 (*HILO_delay): Rename to 'hilo_delay' (no star).
3719 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3720 (reload_outdi, reload_outsi): Likewise.
3722 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3724 * toplev.c: Fix formatting.
3726 2002-05-07 Janis Johnson <janis187@us.ibm.com>
3728 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3729 * configure.in (ac_rtlflag_checking): New.
3730 * doc/install.texi (--enable-checking): Document RTL flag checking.
3732 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3734 * c-common.c (c_common_init): Set options->unsigned_wchar.
3735 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3736 group target dependencies.
3737 (init_builtins, cpp_handle_option): Update.
3738 * cpplex.c (cpp_interpret_charconst): Update.
3739 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3740 signed_char to unsigned_char, group target dependencies.
3741 * defaults.h (WCHAR_UNSIGNED): Remove.
3742 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3744 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3745 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3746 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3747 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3748 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3750 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3752 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3754 * fixinc/inclhack.def (windiss_math1): New fix.
3755 (windiss_math2): Likewise.
3756 (windiss_valist): Likewise.
3757 * fixinc/fixincl.x: Regenerated.
3759 2002-05-07 Andreas Jaeger <aj@suse.de>
3761 * genautomata.c (output_internal_min_issue_delay_func): Add
3762 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3763 (output_internal_trans_func): Likewise.
3765 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
3767 * pa.c (hppa_profile_hook): Use force_reg to get the address
3768 of the profile hook into an appropriate pseudo register.
3770 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3772 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3773 (LINK_START_SPEC): Handle it.
3774 (LINK_OS_SPEC): Likewise.
3775 (CPP_SPEC): Likewise.
3776 (STARTFILE_SPEC): Likewise.
3777 (LIB_SPEC): Likewise.
3778 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
3780 (CRTSAVRES_DEFAULT_SPEC): New macro.
3781 (LIB_WINDISS_SPEC): New macro.
3782 (CPP_OS_WINDISS_SPEC): Likewise.
3783 (STARTFILE_WINDISS_SPEC): Likewise.
3784 (ENDFILE_WINDISS_SPEC): Likewise.
3785 (LINK_START_WINDISS_SPEC): Likewise.
3786 (LINK_OS_WINDISS_SPEC): Likewise.
3787 * config/rs6000/windiss.h: New file.
3789 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
3791 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3793 2002-05-06 David S. Miller <davem@redhat.com>
3795 * config/sparc/sparc.md (shift insns): Do not mask off
3796 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3799 2002-05-06 Richard Henderson <rth@redhat.com>
3802 * expr.c (highest_pow2_factor_for_type): New.
3803 (expand_assignment): Use it.
3805 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
3807 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3809 ("altivec_mfvscr"): Same.
3811 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3813 * rtl.h (struct rtx_def): Update comments.
3814 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
3815 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
3816 RTL_FLAG_CHECK macros with list of expected RTL codes.
3817 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3818 (rtl_check_failed_flag): New.
3819 * reload1.c (reload): Use REG macro before changing rtx to MEM.
3820 (reload_cse_noop_set_p): Check rtx code before using access macro.
3821 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3822 before using access macro.
3824 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3826 * doc/rtl.texi (Flags): Update to reflect current usage.
3828 2002-05-06 Roger Sayle <roger@eyesopen.com>
3831 * fold-const.c (sign_bit_p): New function.
3832 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3833 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3834 Reapply fold when converting (A & C) == C into (A & C) != 0.
3835 (fold_binary_op_with_conditional_arg): Fix typo in comment.
3837 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3839 * c-common.c (warn_multichar): New.
3840 (c_common_init): Set CPP's warn_multichar.
3841 * c-common.h (warn_multichar): New.
3842 * c-decl.c (warn_multichar): Remove.
3843 * c-lex.c (lex_charconst): Update.
3844 * c-tree.h (warn_multichar): Remove.
3845 * cppexp.c (eval_token): Sign-extend charconst value.
3846 * cppinit.c (cpp_create_reader): Set warn_multichar.
3847 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3848 each character. Update prototype. Sign-extend the result.
3849 * cpplib.h: Fix conditions.
3850 (struct cpp_options): Add new warning flag.
3851 (cpp_interpret_charconst): Update prototype.
3853 * cpp.texi: Update documentation.
3855 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
3857 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3858 Fix typo in usage of allof instead of unit.
3860 2002-05-06 Richard Henderson <rth@redhat.com>
3862 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3863 and any jump or call for IN.
3865 2002-05-06 Bernd Schmidt <bernds@redhat.com>
3867 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3869 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3871 2002-05-06 Roger Sayle <roger@eyesopen.com>
3873 * fold-const.c (lshift-double): Cast the high word to an unsigned
3874 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3875 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3876 avoid compiler warning. (fold): Remove redundant code from
3877 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3879 2002-05-06 Jeff Law <law@redhat.com>
3881 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3882 * pa.c (pa_adjust_cost): Remove all true dependency cost
3883 adjustments. Also remove support for non-DFA scheduling.
3884 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3885 to adjust true dependency costs. Update various comments.
3886 (7100lc, 7200, 7300 scheduling): Simplify by combining the
3887 FP ALU & MPY units into a single unit.
3889 2002-05-06 Catherine Moore <clm@redhat.com>
3891 * config/v850/v850.c (compute_register_save_size): Make sure
3892 to count all of the registers that will be saved.
3894 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3896 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3898 2002-05-06 David S. Miller <davem@redhat.com>
3900 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3901 allow result to overlap input operands in memory.
3903 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3906 * cpp.texi: Update multichar charconst docs.
3908 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3910 * cpplex.c (cpp_interpret_charconst): Sign-extend each
3911 character. Don't ignore excess characters. Treat
3912 multicharacter character constants as signed.
3913 (cpp_parse_escape): Clarify diagnostic.
3915 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3917 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3918 use add instead of shift.
3919 (ashldi3_sp64): Likewise.
3920 (ashlsi3_const1, ashldi3_const1): Remove.
3921 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3922 * config/sparc/sparc.c (const1_operand): New.
3924 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
3926 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3928 2002-05-05 Jakub Jelinek <jakub@redhat.com>
3931 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
3933 2002-05-05 Richard Henderson <rth@redhat.com>
3935 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
3936 memory latency adjustments.
3937 (alpha_variable_issue): Remove.
3938 (alpha_use_dfa_pipeline_interface): New.
3939 (alpha_multipass_dfa_lookahead): New.
3940 * config/alpha/alpha.md: Remove define_function_unit scheduling;
3941 include new dfa scheduling.
3942 (attr type): Add none.
3944 * config/alpha/ev4.md: New.
3945 * config/alpha/ev5.md: New.
3946 * config/alpha/ev6.md: New.
3948 2002-05-05 David S. Miller <davem@redhat.com>
3950 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
3952 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
3954 * cse.c: Fix formatting.
3955 * emit-rtl.c: Likewise.
3957 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3959 * genautomata.c (initiate_states): Add additional guard to
3960 initialize `units_array'.
3962 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
3964 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
3965 process_unit_to_form_the_same_automaton_unit_lists,
3966 form_the_same_automaton_unit_lists
3967 check_unit_distributions_to_automata): New prototypes and
3969 (check_automata): Rename it into `check_automata_insn_issues'.
3970 (unit_decl): New fields `the_same_automaton_unit' and
3971 `the_same_automaton_message_reported_p'.
3972 (unit_decl_t): New typedef.
3973 (the_same_automaton_lists): New gloval variable.
3974 (unit_regexp, unit_set_el, units_array, units_cmp,
3975 output_get_cpu_unit_code_func): Use the typedef.
3976 (evaluate_max_reserv_cycles): Increment
3977 `description->max_insn_reserv_cycles'.
3978 (initiate_states): Don't increment `max_cycles_num'.
3979 (transform_insn_regexps): Move code around transformation of
3980 regexps from `generate'.
3981 (generate): Remove call of `transform_insn_regexps'.
3982 (expand_automata): Call `transform_insn_regexps' and
3983 `check_unit_distributions_to_automata'. Check errors before
3986 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
3987 automaton `ultrasparc3_1'.
3989 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
3991 * c-common.c (c_common_init): Set up CPP arithmetic.
3992 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
3993 something reasonable for the host.
3994 (sanity_checks): Add checks.
3995 (cpp_read_main_file): Call sanity_checks() from here...
3996 (cpp_post_options): ... not here.
3997 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
3998 * cpplib.h (struct cpp_options): New member int_precision.
4000 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4002 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4004 2002-05-04 David S. Miller <davem@redhat.com>
4006 * config/sparc/linux.h, config/sparc/linux64.h
4007 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4009 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4011 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4013 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4016 2002-05-05 Tim Josling <tej@melbpc.org.au>
4018 * treelang; New directory for new sample language treelang.
4020 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4022 * Makefile.in (c-lex.o): Update.
4023 * c-lex.c: Include target.h.
4024 (cb_register_builtins): New.
4025 (init_c_lex): Set builtins callback.
4026 * c-lex.h (cpp_define, cpp_assert): New prototypes.
4027 * cppinit.c (init_builtins): Use callback, including for
4029 * cpplib.h (struct cpp_callbacks): New member.
4030 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4031 (TARGET_INITIALIZER): Update.
4032 * target.h (struct gcc_target): New hook.
4033 * tree.c (default_register_cpp_builtins): New.
4034 * tree.h (default_register_cpp_builtins): New.
4036 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4038 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4040 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4041 (cpp_post_options): Move sanity checks to...
4042 (sanity_checks): New.
4043 * cpplex.c (maybe_read_ucs): Fix prototype.
4044 (parse_string, cpp_parse_escape): Cast for %c format specifier.
4045 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4048 2002-05-04 Bernd Schmidt <bernds@redhat.com>
4050 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4051 builtins. Use V2DI patterns instead of TI for logical operations.
4052 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4053 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4054 (ix86_expand_builtins): Change the pattern used for movntdq.
4055 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4056 sse2_nandv2di3): New patterns.
4057 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4059 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4060 (cvtdq2pd): Correct mode on operand 1.
4061 (sse2_umulsidi3): Describe without unspec.
4062 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4064 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4065 (ashlv2di3): Likewise, from sse2_ashlv2di3.
4066 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4067 ashlv4si3, ashlv2di3): Use SImode for shift count.
4068 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4069 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4071 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4073 (__m128i, __m128d): New macros.
4074 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4075 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4076 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4077 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4078 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4079 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4080 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4081 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4082 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4083 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4084 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4085 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4086 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4087 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4088 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4089 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4090 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4091 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4092 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4093 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4094 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4095 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4096 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4097 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4098 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4099 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4100 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4101 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4102 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4103 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4104 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4105 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4106 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4107 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4108 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4109 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4110 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4112 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4113 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4115 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4117 * dwarf2out.c: Fix formatting.
4118 * varasm.c: Likewise.
4120 2002-05-04 David Edelsohn <edelsohn@gnu.org>
4123 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4124 clobber and use result as temporary value.
4126 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4128 * expr.c (force_operand): Use expand_simple_* to handle more
4131 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4133 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4135 (lex_charconst): Update for change in prototype of
4136 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
4138 * cpphash.h (BITS_PER_CPPCHAR_T): New.
4139 * cppinit.c (cpp_create_reader): Initialize them for no
4140 change in semantics.
4141 (cpp_post_options): Add sanity checks.
4142 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4143 and truncation issues. Calculate in type cppchar_t.
4144 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4145 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
4146 run-time dependent precision correctly. Return whether the
4147 result is signed or not.
4148 * cpplib.c (dequote_string): Use cppchar_t; update.
4149 * cpplib.h (cppchar_signed_t): New.
4150 struct cpp_options): New precision members.
4151 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4152 * cppexp.c (eval_token): Update.
4154 2002-05-03 David S. Miller <davem@redhat.com>
4156 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4157 * config/sparc/sparc.c (sparc_rtx_costs): New function
4158 implementing RTX_COSTS and CONST_COSTS.
4159 * config/sparc/sparc.h (CONST_COSTS): Delete.
4160 (RTX_COSTS_CASES): Define.
4161 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4164 * config/sparc/sparc.md (DFA schedulers): Split out...
4165 * config/sparc/cypress.md, config/sparc/hypersparc.md,
4166 config/sparc/sparclet.md, config/sparc/supersparc.md,
4167 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4169 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4170 checks on it, always defined for Sparc.
4172 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4173 Tweak, and add more detailed comments.
4175 2002-05-03 Zack Weinberg <zack@codesourcery.com>
4177 * Re-apply patch accidentally reverted with
4178 DFA scheduler merge: remove all rules and variables to slurp
4179 source files out of libiberty and rebuild them with HOST_CC.
4180 ($(HOST_PREFIX_1)varray.o): New rule.
4181 (genattrtab rule): Word wrap.
4183 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4185 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4186 (CPP_SUBTARGET_SPEC): Define.
4187 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4188 cpp_subtarget specs.
4189 (CPP_SPEC): Redefine to include %(cpp_subtarget).
4191 2002-05-03 David S. Miller <davem@redhat.com>
4193 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4194 * target.h (struct gcc_target): Delete cycle_display member.
4196 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4197 (rtx_needs_barrier): Delete reference to cycle_display unspec.
4198 (ia64_sched_reorder2): Mention need for cycle display handling
4199 once such notes exist.
4201 2002-05-03 Richard Henderson <rth@redhat.com>
4203 * real.c (etoasc): Strip most trailing zeros for clarity.
4204 * sched-vis.c: Include real.h.
4205 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4206 * Makefile.in (sched-vis.o): Add real.h.
4208 2002-05-03 David S. Miller <davem@redhat.com>
4210 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4213 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
4215 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4216 when we get an out of range literal.
4217 (altivec_expand_ternop_builtin): Same.
4218 (altivec_expand_unop_builtin): Same.
4219 (altivec_expand_builtin): Same, for dss.
4220 (altivec_expand_builtin): Use trees instead of rtl when
4221 determining literal argument validity.
4223 2002-05-03 David S. Miller <davem@redhat.com>
4225 Delete cycle display scheduling hook.
4226 * config/ia64/ia64.c (ia64_cycle_display,
4227 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4228 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4229 and use emit_insn_before instead of ia64_emit_insn_before.
4230 * config/ia64/ia64.md (unspec usage): Delete cycle display.
4231 (cycle_display): Delete insn pattern.
4232 * config/sparc/sparc.md (unspec usage): Delete cycle display.
4233 (cycle_display): Delete insn pattern.
4234 * config/sparc/sparc.c (sparc_cycle_display,
4235 TARGET_SCHED_CYCLE_DISPLAY): Delete.
4236 * doc/md.texi (cycle_display): Don't mention.
4237 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4239 2002-05-03 Richard Henderson <rth@redhat.com>
4241 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4242 * recog.h: Declare them.
4244 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4245 * config/sparc/sparc.md: Use store_data_bypass_p instead.
4246 * config/sparc/sparc-protos.h: Update.
4248 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4250 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4251 -D__arch64__. Add -D_LP64.
4252 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4254 (CPP_ARCH64_SPEC): Likewise.
4255 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4256 (NO_BUILTIN_SIZE_TYPE): Undef.
4258 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
4260 * genautomata.c (min_issue_delay_pass_states): Change return type
4262 (min_issue_delay_pass_states): Change the algorithm.
4263 (min_issue_delay): Set up min_insn_issue_delay for the state.
4264 (output_min_issue_delay_table): Interchange the nested loops and
4265 and initiate min_insn_issue_delay for states.
4267 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
4269 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
4272 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4274 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
4277 2002-05-03 Richard Henderson <rth@redhat.com>
4280 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4281 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4282 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4283 code before JUMP, not EARLIEST.
4285 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
4287 * c-format.c (check_format_info_main): Don't check for presence of
4288 parameter for * width until after operand number has been read,
4289 and only check for it if format parameters are available.
4292 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4294 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4295 (LINK_SPEC): Undef before defining.
4297 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4299 PR preprocessor/6489
4300 * tradcpp.c (fixup_newlines): New.
4301 (main, finclude): Use it.
4303 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4305 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4306 * config/mips/mips.c (mips_unique_section): Strip encoding from
4309 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4311 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4314 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4316 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4317 (Specific): Removed buildstats references.
4318 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4319 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4320 Accomodate Solaris versions beyond 8.
4321 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4322 (Specific, *-*-solaris2.8): Removed, obsolete.
4324 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4327 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4328 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4329 fill leaf_reg_remap with identity.
4330 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4332 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4334 * config/h8300/crti.asm: Remove trailing spaces.
4335 * config/h8300/h8300.c: Likewise.
4336 * config/h8300/lib1funcs.asm: Likewise.
4338 2002-05-02 Jason Merrill <jason@redhat.com>
4340 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4341 * c-decl.c (c_init_decl_processing): Use it.
4342 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4343 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4344 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4346 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4348 * regrename.c: Fix formatting.
4351 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4353 * i386.md (attribute memory): Handle compares properly.
4355 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4357 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4360 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4362 * function.c: Fix formatting.
4364 2002-05-02 Jan Hubicka <jh@suse.cz>
4366 * haifa-sched.c (schedule_insn): Print table of instructions and
4368 (sched_block): Do not print ready list at verbosity level 1.
4369 * sched-vis.c (print_insn): Make global.
4370 * sched-ebb.c (ebb_print_insn): Rename from...
4371 (print_insn): ... this one.
4372 * sched-int.h (print_insn): Declare
4374 2002-05-02 Richard Henderson <rth@redhat.com>
4376 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4377 emitted by cycle_display.
4379 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
4381 * doc/install.texi (*-*-freebsd*): Update to latest status.
4383 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4386 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4387 * config/float-sparc.h: Assume 128-bit long double if
4388 __LONG_DOUBLE_128__ is defined.
4390 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
4392 * genattrtab.c (write_function_unit_info): Add a dummy element
4393 when num_units == 0.
4395 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4397 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4398 TYPE_MODE (double_type_node) instead of DFmode.
4400 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
4402 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4404 * toplev.c (rest_of_compilation): Revert Richard's patch.
4406 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4408 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4410 2002-05-02 Catherine Moore <clm@redhat.com>
4412 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4414 2002-05-02 Kazu Hirata <kazu@hxi.com>
4416 * combine.c: Fix comment typos.
4418 * genautomata.c: Likewise.
4422 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4424 * doc/install.texi: State GNAT version requirements.
4426 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4428 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4429 of the frame pointer or arg pointer register which strict register
4430 checking is not enabled.
4432 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4434 * gcc.dg/altivec-8.c: New.
4436 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4437 PRE_INC and PRE_DEC for altivec modes.
4439 2002-05-01 Bruce Korb <bkorb@gnu.org>
4441 * fixinc/check.tpl(set-writable): make sure the function exists first
4442 * fixinc/inclhack.def(alpha_assert): fix test_text
4443 * fixinc/tests/base/assert.h: add in missing result
4445 2002-05-01 Jeff Law <law@redhat.com>
4447 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4450 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4452 * dbxout.c (dbxout_type): Emit size information for range types,
4453 as well, but only when using GDB extensions.
4455 2002-05-01 Richard Henderson <rth@redhat.com>
4457 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4458 target-independent gnu binutils date test.
4460 2002-05-01 Richard Henderson <rth@redhat.com>
4462 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4463 info before expunging the block.
4465 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4467 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4468 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4469 -M -or -MM is in effect.
4471 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4473 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4474 A29k configurations.
4475 * doc/install.texi: Update to match.
4477 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4480 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4481 for duplicates. Always loop over whole list.
4483 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4485 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4487 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4489 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4492 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4494 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4496 2002-05-01 David Edelsohn <edelsohn@gnu.org>
4498 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4499 (nabs_nopower): Same.
4500 (floatdisf2): New pattern.
4501 (absdi2): Convert to define_insn_and_split.
4506 (fix_trunctfdi2): Same.
4507 (fix_trunctfsi2): Same.
4509 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
4511 * doc/install.texi: Update Texinfo version requirement
4514 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4516 PR target/6512, PR target/5628
4517 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4518 when memory is not aligned.
4519 (movdf_insn_v9only_vis): Likewise.
4520 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4521 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4522 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4524 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
4526 * gcc.dg/altivec-7.c: New.
4528 * config/rs6000/altivec.h: Cleanup.
4530 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
4532 * doc/invoke.texi (Option Summary): Add -mvrsave=.
4533 (RS/6000 and PowerPC Options): Document -mvrsave=.
4535 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4536 (rs6000_altivec_vrsave_string): Same.
4537 (rs6000_override_options): Call rs6000_parse_vrsave_option.
4538 (rs6000_parse_vrsave_option): New.
4539 (rs6000_stack_info): Only generate vrsave instructions when
4540 TARGET_ALTIVEC_VRSAVE.
4542 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4543 (rs6000_altivec_vrsave_string): Define extern.
4544 (rs6000_altivec_vrsave): Same.
4545 (TARGET_ALTIVEC_VRSAVE): New.
4547 2002-04-30 Richard Henderson <rth@redhat.com>
4550 * toplev.c (rest_of_compilation): Don't run cross-jump before
4553 2002-04-30 Tom Rix <trix@redhat.com>
4555 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4556 check which_alternative.
4558 2002-04-30 Kazu Hirata <kazu@hxi.com>
4560 * cpplex.c: Fix comment formatting.
4561 * function.c: Likewise.
4562 * integrate.c: Likewise.
4563 * regrename.c: Likewise.
4564 * sibcall.c: Likewise.
4565 * simplify-rtx.c: Likewise.
4566 * tree-inline.c: Likewise.
4568 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4570 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4571 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4572 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4573 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4574 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4575 * pa/x-ada: New file. Define ADA_CFLAGS.
4577 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
4579 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4580 from MMIX_LAST_REGISTER_FILE_REGNUM.
4581 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4582 (struct machine_function): New member highest_saved_stack_register
4583 previously static variable in mmix.c.
4584 (MACHINE_DEPENDENT_REORG): Define.
4585 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4586 (MMIX_OUTPUT_REGNO): New.
4587 (mmix_target_asm_function_prologue): Move calculation of last used
4588 saved-stack-register into...
4589 (mmix_machine_dependent_reorg): New function. Update to also handle
4591 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4592 register names, simplify somewhat by new variable regno.
4593 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
4595 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4596 emitting register names.
4597 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4598 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4600 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4603 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4605 2002-04-30 Richard Henderson <rth@redhat.com>
4607 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4608 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4609 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4610 emit_tfmode_cvt): New.
4611 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4612 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4613 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4614 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4615 * config/sparc/sparc-protos.h: Update.
4617 2002-04-30 Janis Johnson <janis187@us.ibm.com>
4619 * install.texi (Final install): Add to the list of info to include
4620 in a report of a successful bootstrap, and add link to 3.1 list.
4622 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
4624 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4625 (mode): Add vector modes
4626 (i387): Kill attribute.
4627 (unit): New attribute.
4628 (length_immediate): Grok new types.
4629 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4630 (modrm): Use "unit".
4631 (memory): Handle MMX/SSE properly.
4632 (scheduling descriptions): Kill uses of fop1.
4633 (sse, mmx, fp patterns): Set type and mode properly.
4635 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
4637 * pa.c (override_options): Default to PA8000 scheduling.
4638 * doc/invoke.texi (HP-PA options): Mention newly added 7300
4639 scheduling parameter.
4641 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4642 handling of double precision multiplies.
4644 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4645 fpdiv and fpsqrt instructions.
4646 (7200 & 7300 scheduling): Fix typo in handling of
4647 store-load and store-store penalties.
4649 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4651 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4652 mips. Add two missing commas.
4654 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
4656 * doc/contrib.texi (Contributors): Update Paolo Carlini's
4657 and Benjamin Kosnik's entries.
4659 2002-04-29 David S. Miller <davem@redhat.com>
4661 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4662 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4663 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4664 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4666 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4668 * combine.c (find_split_point): Use gen_int_mode.
4670 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
4672 Merging code from dfa-branch:
4674 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
4676 * genautomata.c (output_reserv_sets): Fix typo.
4678 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
4680 * genautomata.c (output_reserv_sets): Remove
4681 next_cycle_output_flag.
4683 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
4685 * sched-rgn.c (init_ready_list): Make the DFA code handle
4686 USE/CLOBBER insns in the same way as the traditional
4688 (new_ready): Similarly..
4690 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
4692 * haifa-sched.c (schedule_block): Change the DFA state only after
4695 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
4697 * pa.c (hppa_use_dfa_pipeline_interface): New function.
4698 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4699 (override_options): Add PA7300 scheduling support.
4700 (pa_adjust_cost): Update various comments. Properly
4701 handle anti and output dependencies when using the
4703 (pa_issue_rate): Add PA7300 scheduling support.
4704 (pa_can_combine_p): Call extract_insn before calling
4705 constrain_operands (taken from mainline tree).
4706 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4707 * pa.md (cpu attr): Add 7300. Rewrite pipeline
4708 descriptions using DFA descriptions. Add PA7300
4711 2002-03-30 David S. Miller <davem@redhat.com>
4713 Add UltraSPARC-III DFA scheduling support.
4714 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4715 Update FP conditional move on register insn patterns to use it, as
4717 (define_attr cpu): Add ultrasparc3.
4718 (define_attr us3load_type): New, update integer load patterns to
4719 set it, as appropriate.
4720 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4721 (rest): Add UltraSPARC3 scheduling description.
4722 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4723 (PROCESSOR_ULTRASPARC3): New.
4724 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4725 ({ASM,CPP}_CPU_SPEC): Likewise.
4726 (REGISTER_MOVE_COST): Likewise.
4727 (RTX_COSTS): Likewise.
4728 * config/sparc/sparc.c (sparc_override_options,
4729 sparc_initialize_trampoline, sparc64_initialize_trampoline,
4730 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4731 sparc_issue_rate): Likewise.
4732 * config/sparc/sol2.h: Likewise.
4733 * config/sparc/sol2-sld-64.h: Likewise.
4734 * config/sparc/linux64.h: Likewise.
4736 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
4738 * doc/md.texi: Add comments about usage the latency time for the
4739 different dependencies and about case when two or more conditions
4740 in different define_insn_reservations returns TRUE for an insn.
4742 * doc/md.texi: Add reference for automaton based pipeline
4745 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
4747 * doc/passes.texi: Add missed information about genattrtab.
4749 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
4751 * genautomata.c (output_automata_list_transition_code): Check
4752 automata_list on NULL.
4754 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
4756 * genautomata.c (output_insn_code_cases,
4757 output_automata_list_min_issue_delay_code,
4758 output_automata_list_transition_code,
4759 output_automata_list_state_alts_code): Comment the functions.
4761 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
4763 * genautomata.c (automata_list_el_t): New typedef.
4764 (get_free_automata_list_el,free_automata_list_el,
4765 free_automata_list, automata_list_hash, automata_list_eq_p,
4766 initiate_automata_lists, automata_list_start, automata_list_add,
4767 automata_list_finish, finish_automata_lists,
4768 output_insn_code_cases, output_automata_list_min_issue_delay_code,
4769 output_automata_list_transition_code,
4770 output_automata_list_state_alts_code, add_automaton_state,
4771 form_important_insn_automata_lists): New functions and prototypes.
4772 (insn_reserv_decl): Add members important_automata_list and
4774 (ainsn): Add members important_p.
4775 (automata_list_el): New structure.
4776 (first_free_automata_list_el, current_automata_list,
4777 automata_list_table): New global variables.
4778 (create_ainsns): Initiate member important_p.
4779 (output_internal_min_issue_delay_func): Generate the switch and
4780 call output_insn_code_cases.
4781 (output_internal_trans_func, output_internal_state_alts_func):
4783 (generate): Call initiate_automata_lists.
4784 (automaton_states): New global variable.
4785 (expand_automata): Call form_important_insn_automata_lists.
4786 (write_automata): Call finish_automata_lists.
4788 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
4790 * genautomata.c (add_excls, add_presence_absence): Check that
4791 cpu units in the sets belong the same automaton.
4793 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4794 about that cpu units in the sets belong the same automaton.
4796 * doc/md.texi: Ditto.
4798 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
4799 Nitin Gupta <niting@noida.hcltech.com>
4801 * config/sh/sh.c (sh_use_dfa_interface): New function.
4803 (sh_issue_rate): New Function.
4804 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4805 TARGET_SCHED_ISSUE_RATE: define.
4807 * config/sh/sh.md: Add DFA based pipeline description for SH4.
4809 (define_attr insn_class): New attribute used for DFA
4811 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4812 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4813 cmpeqdi_t): Likewise.
4815 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4816 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4818 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4820 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4822 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4825 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4827 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4828 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4830 (output_dfa_start_func): Initiate new variable insn_codes_length,
4831 (write_automata): Output definition of the new variable.
4833 2001-10-02 David S. Miller <davem@redhat.com>
4835 * haifa-sched.c (advance_one_cycle): New function.
4836 (schedule_block): Use it.
4837 (queue_to_ready): Use it, and also make sure to advance the DFA
4838 state on all stall cycles, not just those where insn_queue links
4841 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
4843 * haifa-sched.c (max_issue): Remove last_p argument. Only return
4844 non-zero if the highest-priority instruction could be scheduled.
4845 (choose_ready): Remove last argument from max_issue call.
4847 2001-09-28 David S. Miller <davem@redhat.com>
4849 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4850 ultrasparc and 3 for other multi-issue sparcs.
4852 2001-09-27 David S. Miller <davem@redhat.com>
4854 * config/sparc/sparc.md (cycle_display): New pattern.
4855 * config/sparc/sparc.c (sparc_cycle_display): New.
4856 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4858 2001-09-25 David S. Miller <davem@redhat.com>
4860 Convert all of Sparc scheduling to DFA
4861 * config/sparc/sparc.md: Kill all define_function_unit
4862 directives and replace with DFA equivalent.
4863 * config/sparc/sparc.c (ultrasparc_adjust_cost,
4864 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4865 ultra_fpmode_conflict_exists, ultra_find_type,
4866 ultra_build_types_avail, ultra_flush_pipeline,
4867 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4868 ultrasparc_variable_issue, ultrasparc_sched_init,
4869 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4870 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4871 ultra_cur_hist, ultra_cycles_elapsed): Kill.
4872 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4873 ultrasparc_store_bypass_p): New.
4874 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4877 2001-09-24 David S. Miller <davem@redhat.com>
4879 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4880 ready->vec[foo] not ready[foo].
4882 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4884 * doc/md.texi: Correct examples for define_insn_reservations
4887 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4889 * genautomata.c (create_automata): Print message about creation of
4891 (generate): Remove printing meease about creation of
4894 2001-09-05 David S. Miller <davem@redhat.com>
4896 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4897 * config/sparc/linux64.h: Likewise.
4899 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
4901 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4902 schedule_block, sched_init, sched_finish): Add missed calls of
4903 use_dfa_pipeline_interface.
4905 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4908 * sched-vis.c (get_visual_tbl_length): Ditto.
4910 2001-08-27 Richard Henderson <rth@redhat.com>
4912 * genattr.c (main): Emit state_t even when not doing scheduling.
4914 2001-08-27 Richard Henderson <rth@redhat.com>
4916 * genautomata.c (expand_automata): Always create a description.
4918 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4920 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4921 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4922 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4925 * genattr.c (main): New variable num_insn_reservations. Increase
4926 it if there is DEFINE_INSN_RESERVATION. Output automaton based
4927 pipeline hazard recognizer interface.
4929 * genattrtab.h: New file.
4931 * genattrtab.c: Include genattrtab.h.
4932 (attr_printf, check_attr_test, make_internal_attr,
4933 make_numeric_value): Move protypes into genattrtab.h. Define them
4935 (num_dfa_decls): New global variable.
4936 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
4937 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
4938 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
4939 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
4941 * genautomata.c: New file.
4943 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
4945 * sched-int.h: (curr_state): Add the external definition for
4946 automaton pipeline interface.
4947 (haifa_insn_data): Add comments for members blockage and units.
4949 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4950 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4951 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4952 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4953 TARGET_SCHED_DFA_POST_CYCLE_INSN,
4954 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4955 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
4957 (TARGET_SCHED): Use the new macros.
4959 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
4960 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
4961 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
4962 dfa_bubble): New members in gcc_target.sched.
4964 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
4965 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
4966 (insn_queue): Redefine it as pointer to array.
4967 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
4969 (max_insn_queue_index_macro_value): New variable.
4970 (curr_state, dfa_state_size, ready_try): New varaibles for
4971 automaton interface.
4972 (ready_element, ready_remove, max_issue): New function prototypes
4973 for automaton interface.
4974 (choose_ready): New function prototype.
4975 (insn_unit, blockage_range): Add comments.
4976 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
4977 FUNCTION_UNITS_SIZE == 0.
4978 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
4979 actual_hazard, potential_hazard): Add comments.
4980 (insn_cost): Use cost -1 as undefined value. Remove
4981 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
4983 (ready_element, ready_remove): New functions for automaton
4985 (schedule_insn): Add new code for automaton pipeline interface.
4986 (queue_to_ready): Add new code for automaton pipeline interface.
4987 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
4988 (debug_ready_list): Print newline when the queue is empty.
4989 (max_issue): New function for automaton pipeline interface.
4990 (choose_ready): New function.
4991 (schedule_block): Add new code for automaton pipeline interface.
4992 Print ready list before scheduling each insn.
4993 (sched_init): Add new code for automaton pipeline interface.
4994 Initiate insn cost by -1.
4995 (sched_finish): Free the current automaton state and finalize
4996 automaton pipeline interface.
4998 * sched-rgn.c: Include target.h.
4999 (init_ready_list, new_ready, debug_dependencies): Add new code for
5000 automaton pipeline interface.
5002 * sched-vis.c: Include target.h.
5003 (get_visual_tbl_length): Add code for automaton interface.
5004 (target_units, print_block_visualization): Add comments.
5006 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5007 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5008 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5009 (getruntime.o, genautomata.o): New entries.
5010 (genattrtab.o): Add new dependency file genattrtab.h.
5011 (genattrtab): Add new dependencies. Link it with `libm.a'.
5012 (getruntime.o, hashtab.o): New entries for canadian cross.
5014 * doc/md.texi: Description of automaton based model.
5016 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5018 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5019 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5020 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5021 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5022 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5023 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5024 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5026 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5027 MAX_DFA_ISSUE_RATE): New macro descriptions.
5029 * doc/contrib.texi: Add dfa based scheduler contribution.
5031 * doc/gcc.texi: Add more information about genattrtab.
5033 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5035 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5036 adjust_address_nv call.
5038 2002-04-29 Janis Johnson <janis187@us.ibm.com>
5040 * doc/install.texi (Testing): Provide additional information, and
5041 a stronger encouragement, for running the testsuites.
5043 2002-04-29 DJ Delorie <dj@redhat.com>
5045 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5046 given in upper case.
5048 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5050 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5051 Solaris 2 <widec.h> if missing.
5052 * fixinc/fixincl.x: Regenerate.
5053 * fixinc/tests/base/widec.h: New file.
5055 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
5057 * toplev.c (f_options): Add "profile" switch so that
5058 -fno-profile can be used to disable -p.
5060 2002-04-29 Bernd Schmidt <bernds@redhat.com>
5062 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5064 * tree.c (build_common_tree_nodes_2): Likewise.
5065 * tree.h (enum tree_index): Likewise.
5066 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5068 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5070 (init_mmx_sse_builtins): Initialize SSE2 builtins.
5071 (ix86_expand_builtin): Add support for SSE2 builtins.
5072 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5073 (VALID_SSE_REG_MODE): Use it.
5074 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5075 (enum ix86_builtins): Add SSE2 builtins.
5076 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5077 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5078 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5079 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5080 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5081 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5082 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5083 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5084 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5085 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5086 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5087 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5088 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5089 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5090 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5091 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5092 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5093 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5094 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5095 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5096 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5097 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5098 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5099 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5100 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5101 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5102 lfence_insn): New patterns.
5103 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5104 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5106 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
5108 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5110 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5112 * doc/contrib.texi (Contributors): Add Paolo Carlini and
5114 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5115 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5116 and CPU instead of cpu.
5118 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5120 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5122 (lang_independent_options): Add -fif-conversion, -fif-conversion2
5123 (rest_of_compilation): Do if conversion only when asked for.
5124 (parse_options_and_default_flags): Set new variables to 1 for -O1
5125 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5127 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5129 * i386.c (dbx64_register_map): Fix typo.
5131 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5133 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5134 real_one_half, real_bb_freq_max): New static variables.
5135 (debug_profile_bbauxs): Kill.
5136 (process_note_predictions): Kill unused variable.
5137 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5139 (propagate_freq): Use REAL_ARITHMETICS.
5140 (estimate_bb_frequencies): Likevise; init new static variables.
5141 * Makefile.in (predict.o): Add dependency on real.h
5143 2002-04-28 David S. Miller <davem@redhat.com>
5146 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5147 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
5148 several {reads,writes} instead.
5149 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5152 2002-04-27 David S. Miller <davem@redhat.com>
5155 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5158 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5159 including signal.h and sys/ucontext.h, not needed.
5161 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
5163 * varasm.c (output_constant_def): Correct test for not calling
5164 ENCODE_SECTION_INFO for INTEGER_CST.
5166 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
5168 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5169 keep most cases as function eval_token.
5170 (eval_token): New function.
5171 (_cpp_parse_expr): Read token here for improved diagnostics.
5172 Don't use op_as_text. Detect bad ':' here.
5173 (reduce): Don't detect bad ':' here.
5174 (op_as_text): Remove.
5175 * cpphash.h (_cpp_test_assertion): Change prototype.
5176 * cpplib.c (_cpp_test_assertion): Change prototype.
5178 2002-04-28 Richard Henderson <rth@redhat.com>
5181 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5182 (ggc_mark_rtx_children): New.
5184 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5187 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5188 after call peepholes for UltraSPARC.
5189 (call + jump 64-bit peepholes): Remove.
5191 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5194 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5195 result as temporary value.
5197 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5200 * toplev.c (rest_of_compilation): Only run regrename and copy
5201 propagation if optimizing.
5203 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5205 PR optimization/6475
5206 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5207 register of REGNO_DECL (i).
5208 * Makefile.in (reload1.o): Add $(TREE_H).
5210 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
5212 * cppexp.c (lex): Update to use state.skip_eval.
5213 (struct op): Remove prio and flags members.
5214 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5215 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5216 (LEFT_ASSOC): New macro.
5217 (optab): New table of operator priorities and flags.
5219 (_cpp_parse_expr): Clean up logic. Return bool. Use a
5220 malloc-ed parser stack.
5221 (reduce): New; reduce the operator stack.
5222 (_cpp_expand_op_stack): Expand the operator stack as necessary.
5223 * cpphash.h (struct op): Predeclare.
5224 (struct cpp_reader): New members op_stack, op_limit.
5225 (struct lexer_state): New member skip_eval.
5226 (_cpp_parse_expr): Update.
5227 (_cpp_expand_op_stack): New.
5228 * cpplib.c (do_if): Update.
5229 * cppinit.c (cpp_create_reader): Create op stack.
5230 (cpp_destroy): And destroy it.
5231 * cpplib.h (CPP_LAST_CPP_OP): Correct.
5232 (TTYPE_TABLE): Correct.
5234 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5237 * c-decl.c (duplicate_decls): Call merge_weak.
5238 * c-pragma.c (apply_pragma_weak): Warn about misuse.
5239 * output.h (merge_weak): Prototype merge_weak.
5240 * varasm.c (merge_weak): New function.
5241 (declare_weak): Make sure we don't give an error on VAR_DECLs.
5242 Mark RTL with SYMBOL_REF_WEAK.
5244 2002-04-27 Kurt Garloff <garloff@suse.de>
5246 * tree-inline.c (inlinable_function_p): Improve heuristics
5247 by using a smoother function to cut down allowable inlinable size.
5248 * param.def: Add parameters max-inline-insns-single,
5249 max-inline-slope, min-inline-insns that determine the exact
5250 shape of the above function.
5251 * param.h: Likewise.
5253 2002-04-26 Richard Henderson <rth@redhat.com>
5255 * c-parse.in (malloced_yyss, malloced_yyvs): New.
5256 (yyoverflow): Re-add. Set them.
5257 (free_parser_stacks): New.
5258 * c-common.h: Declare it.
5259 * c-lex.c (c_common_parse_file): Call it.
5261 2002-04-26 Richard Henderson <rth@redhat.com>
5263 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5264 for fallthru search.
5266 2002-04-26 Eric Christopher <echristo@redhat.com>
5268 PR optimization/3700
5269 * config/mips/mips.c (mips_issue_rate): Define. New function.
5270 (TARGET_SCHED_ISSUE_RATE): Use.
5272 2002-04-25 David S. Miller <davem@redhat.com>
5275 * reorg.c (optimize_skip): Do not allow exception causing
5276 instructions to be considered for delay slots.
5277 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5278 (relax_delay_slots): Do not try to consider exception causing
5279 instructions as redundant.
5281 2002-04-26 Richard Henderson <rth@redhat.com>
5284 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5286 2002-04-26 Mark Mitchell <mark@codesourcery.com>
5289 * config/i386/i386.md (untyped_call): Return the value in a float
5290 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5293 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
5295 * tree.c (tree_int_cst_lt): Compare constants whose types differ
5296 in unsigned-ness correctly.
5298 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5300 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5301 portable runtime model.
5303 2002-04-26 Richard Henderson <rth@redhat.com>
5305 * c-parse.in (yyoverflow): Revert.
5307 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5308 Richard Henderson <rth@redhat.com>
5310 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5311 result as temporary value.
5313 2002-04-26 Richard Henderson <rth@redhat.com>
5316 * c-common.c (fix_string_type): Split out of ...
5317 (combine_strings): ... here. Take a varray, not a tree list.
5318 (c_expand_builtin_printf): Use fix_string_type.
5319 * c-common.h: Update decls.
5320 * c-parse.in (string): Remove. Update all uses to use STRING
5321 instead, and not call combine_strings.
5324 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5325 (build_asm_stmt): Likewise.
5326 * objc/objc-act.c (my_build_string): Use fix_string_type.
5327 (build_objc_string_object): Build varray for combine_strings.
5329 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5331 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5334 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5336 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5337 (HAVE_NO_R_OPERAND): Remove.
5338 (HAVE_VALUE): Remove.
5339 (op_to_prio): Update.
5340 (UNARY): Don't alter flags.
5341 (_cpp_parse_expr): want_value used to indicate whether
5342 a number or unary operator is expected next. Distinguish
5343 unary and binary +/-.
5344 (op_as_text): Update for unary operators.
5346 2002-04-25 Richard Henderson <rth@redhat.com>
5349 * c-parse.in (yyoverflow): New.
5351 2002-04-25 Richard Henderson <rth@redhat.com>
5354 * c-common.c (shorten_compare): Simplfy conditions leading to
5355 the generation of a warning.
5357 2002-04-25 Richard Henderson <rth@redhat.com>
5360 * expmed.c (extract_bit_field): Fall through to generic code rather
5361 than aborting on subreg special case.
5363 2002-04-25 David S. Miller <davem@redhat.com>
5365 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5366 for DECL being NULL.
5368 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5370 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5372 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
5374 * c-decl.c (grokdeclarator): Remove outdated ??? note
5375 on invalid declaration of flexible array members.
5377 2002-04-25 Richard Henderson <rth@redhat.com>
5379 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5381 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5383 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5384 needed by the compiler, even if they are used as global regs.
5386 2002-04-25 Matt Hiller <hiller@redhat.com>
5388 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5390 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5391 of the corresponding functions.
5392 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5395 2002-04-25 Matt Hiller <hiller@redhat.com>
5397 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5399 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5400 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5401 registers, adjust comment accordingly.
5402 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5403 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5404 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5405 for coprocessor registers.
5406 (ADDITIONAL_REGISTER_NAMES): Include
5407 ALL_COP_ADDITIONAL_REGISTER_NAMES.
5409 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5410 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5411 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5412 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5413 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5415 (mips_char_to_class): Adjust comment to include coprocessor
5418 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5420 (mips_reg_names, mips_regno_to_class): Include coprocessor
5422 (mips_sw_reg_names): Ditto, make non-static.
5423 (mips_move_1word): Handle moves to and from coprocessor registers.
5424 (mips_move_2words): Handle moves to and from coprocessor
5426 (mips_class_max_nregs, mips_register_move_cost): Handle
5427 coprocessor register classes.
5428 (override_options): Initialize mips_char_to_class and
5429 mips_hard_regno_mode_ok properly for coprocessor registers.
5431 * config/mips/mips.md (movdi_internal, movdi_internal2,
5432 movsi_internal1, movsi_internal2): Add constraint-sets for
5433 coprocessor registers.
5434 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5435 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5437 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5438 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5440 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5441 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5443 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5444 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5447 * doc/tm.texi: Document feature.
5449 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5451 * integrate.c (function_attribute_inlinable_p): Simplify.
5452 Check the table pointer is not NULL.
5454 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5456 * doc/c-tree.texi: Fix typo in introduction.
5458 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5460 * c-common.h (c_common_parse_file): Update.
5461 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5462 * c-lex.c (YYDEBUG): Get from c-lex.h.
5463 (c_common_parse_file): Update.
5464 * c-lex.h (YYDEBUG, yydebug): New.
5465 * c-parse.in (YYDEBUG): Get from c-lex.h.
5466 (c_set_yydebug): Remove.
5467 * c-tree.h (c_set_yydebug): Remove.
5468 * langhooks-def.h (lhd_do_nothing_i): New.
5469 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5470 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5471 * langhooks.c (lhd_do_nothing_i): New.
5472 (lhd_set_yydebug): Remove.
5473 * langhooks.h (struct lang_hooks): Update.
5474 * toplev.c (set_yydebug): New.
5475 (compile_file): Update call to parse_file hook.
5476 (decode_d_option): Update.
5478 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5480 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
5482 * loop.c (load_mems): Don't change the interface of called functions.
5484 * calls.c (expand_call): Take current_function_pretend_args_size
5485 into account when setting argblock for sibcalls.
5487 2002-04-24 Matt Hiller <hiller@redhat.com>
5489 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5492 * cpplex.c (skip_line_comment): Process comment one multibyte
5493 character at a time rather than one char at a time, if
5495 (parse_string): Process string one multibyte character at a time
5496 rather than one char at a time, if appropriate.
5497 * c-lex.c (lex_string): Lex and copy multibyte strings
5499 * cpplib.h (cppchar_t): Change to unsigned.
5501 2002-04-24 Richard Henderson <rth@redhat.com>
5504 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5507 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
5509 * sh.c (sh_va_arg): If argument was passed by reference,
5510 dereference the pointer.
5512 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5514 * sh.md (divsi3_i4_media): Use match_operand for input values
5515 rather than hard registers.
5516 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5517 unnecessarily through hard registers. Keep copies of pseudo
5518 registers outside of the libcall sequence.
5520 * sh.md (casesi_shift_media): Add modes.
5522 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5525 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
5527 * attribs.c (c_common_attribute_table): Move table and handlers
5529 (format_attribute_table, lang_attribute_table,
5530 lang_attribute_common): Remove.
5531 (init_attributes): Replace NULL pointers with pointers to the
5533 (handle_packed_attribute, handle_nocommon_attribute,
5534 handle_common_attribute, handle_noreturn_attribute,
5535 handle_noinline_attribute, handle_always_inline_attribute,
5536 handle_used_attribute, handle_unused_attribute,
5537 handle_const_attribute, handle_transparent_union_attribute,
5538 handle_constructor_attribute, handle_destructor_attribute,
5539 handle_mode_attribute, handle_section_attribute,
5540 handle_aligned_attribute, handle_weak_attribute,
5541 handle_alias_attribute, handle_visibility_attribute,
5542 handle_no_instrument_function_attribute, handle_malloc_attribute,
5543 handle_no_limit_stack_attribute, handle_pure_attribute,
5544 handle_deprecated_attribute, handle_vector_size_attribute,
5545 vector_size_helper): Move to c-common.c.
5546 * c-common.c (c_common_attribute_table,
5547 handle_packed_attribute, handle_nocommon_attribute,
5548 handle_common_attribute, handle_noreturn_attribute,
5549 handle_noinline_attribute, handle_always_inline_attribute,
5550 handle_used_attribute, handle_unused_attribute,
5551 handle_const_attribute, handle_transparent_union_attribute,
5552 handle_constructor_attribute, handle_destructor_attribute,
5553 handle_mode_attribute, handle_section_attribute,
5554 handle_aligned_attribute, handle_weak_attribute,
5555 handle_alias_attribute, handle_visibility_attribute,
5556 handle_no_instrument_function_attribute, handle_malloc_attribute,
5557 handle_no_limit_stack_attribute, handle_pure_attribute,
5558 handle_deprecated_attribute, handle_vector_size_attribute,
5559 vector_size_helper): Move from attribs.c.
5560 * c-common.h (c_common_attribute_table,
5561 c_common_format_attribute_table): New.
5562 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5563 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5564 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5565 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5566 (LANG_HOOKS_INITIALIZER): Update.
5567 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5568 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5569 * target.h: Update comment.
5570 * tree.c (default_target_attribute_table): Remove.
5571 * tree.h (default_target_attribute_table, format_attribute_table,
5572 lang_attribute_table, lang_attribute_common): Remove.
5574 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5575 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5577 2002-04-24 Jason Merrill <jason@redhat.com>
5579 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5580 * dwarf2out.c (dwarf_attr_name): Support it.
5581 (gen_array_type_die): Emit it.
5582 (lookup_type_die): No special handling for VECTOR_TYPE.
5583 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5585 2002-04-24 Richard Henderson <rth@redhat.com>
5587 * config/mips/mips.md (movdi_usd): Renumber.
5589 2002-04-24 David S. Miller <davem@redhat.com>
5592 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5593 32-bit Sparc and current_function_returns_struct is true.
5595 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5597 * loop.c (canonicalize_condition): Use gen_int_mode.
5599 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
5601 * config/rs6000/altivec.h: Cleanup file. Add non individual
5623 (vec_vcmpequb): New.
5624 (vec_vcmpequh): New.
5625 (vec_vcmpequw): New.
5626 (vec_vcmpeqfp): New.
5627 (vec_vcmpgefp): New.
5628 (vec_vcmpgtub): New.
5629 (vec_vcmpgtsb): New.
5630 (vec_vcmpgtuh): New.
5631 (vec_vcmpgtsh): New.
5632 (vec_vcmpgtuw): New.
5633 (vec_vcmpgtsw): New.
5634 (vec_vcmpgtfp): New.
5635 (vec_vcmpgefp): New.
5640 (vec_vexptefp): New.
5645 (vec_lde): Add vector float variant.
5650 (vec_vmhaddshs): New.
5672 (vec_vmladduhm): New.
5673 (vec_vmhraddshs): New.
5675 (vec_vmsummbm): New.
5676 (vec_vmsumuhm): New.
5677 (vec_vmsumshm): New.
5678 (vec_vmsumuhs): New.
5679 (vec_vmsumshs): New.
5688 (vec_vnmsubfp): New.
5706 (vec_vrsqrtefp): New.
5717 (vec_vspltisb): New.
5718 (vec_vspltish): New.
5719 (vec_vspltisw): New.
5744 (vec_vsum4ubs): New.
5745 (vec_vsum4sbs): New.
5746 (vec_vsum4shs): New.
5747 (vec_vsum2sws): New.
5758 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
5761 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5762 added literals from substracted literals.
5763 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5764 (fold) [associate]: Preserve MINUS_EXPR if needed.
5766 2002-04-23 Zack Weinberg <zack@codesourcery.com>
5768 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5771 2002-04-23 Tom Tromey <tromey@redhat.com>
5773 * gcc.c: Added --resource. For PR java/6314.
5775 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5777 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5778 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5781 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5783 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5785 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5787 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5789 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5790 (ix86_expand_clrstr): Fix typo.
5791 * loop.c (gen_load_of_final_value): New.
5792 (loop_givs_rescan, strength_reduce, check_dbra_loop):
5795 2002-04-23 Roger Sayle <roger@eyesopen.com>
5797 * builtins.c (builtin_memset_gen_str): New function.
5798 (expand_builtin_memset): Optimize the case of constant length, but
5801 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
5803 * config/rs6000/altivec.h (vec_step): Remove extraneous
5805 (vec_ctu): Cast return.
5807 2002-04-23 Alan Modra <amodra@bigpond.net.au>
5810 * function.h: (struct function): Add profile_label_no field.
5811 (current_function_profile_label_no): Define.
5812 * function.c: (profile_label_no): New static var.
5813 (expand_function_start): Increment it, and copy to
5814 current_function_profile_label_no.
5815 * output.h (profile_label_no): Delete.
5816 * final.c (profile_label_no): Delete.
5817 (profile_function): Use current_function_profile_label_no.
5818 (final_end_function): Don't increment profile_label_no here.
5819 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5820 profile_label_no with current_function_profile_label_no.
5821 * config/pa/pa.c (current_function_number): Delete.
5822 (pa_output_function_prologue): Don't output profile label here.
5823 (hppa_profile_hook): Use label_no param rather than
5824 current_function_number.
5825 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5826 * config/pa/pa.h: .. here.
5827 (FUNCTION_PROFILER): Output profile label here.
5829 2002-04-22 Eric Christopher <echristo@redhat.com>
5831 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5832 patch of 2002-04-09 due to binutils issues.
5833 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5835 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5837 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5838 constraint to 'o' for m=r and r=m alternatives.
5839 ("*movv8hi_internal1"): Same.
5840 ("*movv16qi_internal1"): Same.
5841 ("*movv4sf_internal1"): Same.
5843 2002-04-22 Janis Johnson <janis187@us.ibm.com>
5845 * rtl.h (RTX_FLAG): New macro.
5846 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5847 * final.c (alter_subreg): Use macro to access rtx flag.
5848 * integrate.c (copy_rtx_and_substitute): Use new access macro.
5849 * print-rtl.c (print_rtx): Use new access macro.
5851 * cse.c (insert): Check rtx code before accessing flag.
5853 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5854 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5855 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5856 convert_const_symbol_ref, make_canonical, make_alternative_compare,
5857 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5858 simplify_test_exp, optimize_attrs, simplify_by_exploding,
5859 find_and_mark_used_attributes, unmark_used_attributes,
5860 add_values_to_cover, simplify_with_current_value,
5861 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5862 copy_rtx_unchanging, main): Use new access macros.
5864 2002-04-22 Tom Rix <trix@redhat.com>
5866 * expmed.c (init_expmed): Generate shifted constant once.
5868 2002-04-22 Zack Weinberg <zack@codesourcery.com>
5870 * c-lex.c (lex_charconst): Call convert to get constant in
5871 proper type; don't just smash the type field.
5874 * config.gcc: Add list of obsolete configurations. Disallow
5875 building these without --enable-obsolete.
5876 * doc/install.texi: Document --enable-obsolete and obsoletion
5877 policy. Mention obsoletion of individual targets in
5880 2002-04-22 Richard Henderson <rth@redhat.com>
5882 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5884 2002-04-22 Mark Mitchell <mark@codesourcery.com>
5887 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5888 (walk_fixup_memory_subreg): Likewise.
5889 (fixup_var_refs_insn): Adjust accordingly.
5890 (fixup_var_refs_1): Likewise.
5892 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
5894 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5895 LIBPATH_ARCH64_SPEC): Define.
5896 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5897 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5898 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5899 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5901 2002-04-22 Joel Sherrill <joel@OARcorp.com>
5903 * gthr-rtems.h: Correct prototypes to remove warnings.
5905 2002-04-22 Richard Henderson <rth@redhat.com>
5908 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5910 * gcse.c (free_insn_expr_list_list): New.
5911 (clear_modify_mem_tables): Use it. Fix bit set usage.
5912 (canon_list_insert): Use EXPR_LISTs for expressions.
5913 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5915 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
5917 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
5918 file change and include code to _cpp_pop_buffer.
5919 * cpphash.h (struct pending_option): Predeclare.
5920 (struct cpp_reader): New member next_include_file.
5921 (_cpp_pop_file_buffer): Update.
5922 (_cpp_push_next_buffer): Update, rename.
5923 * cppinit.c (cpp_destroy): Free include chain and pending here.
5924 (cpp_finish_options): Simplify.
5925 (_cpp_push_next_buffer): Rename and clean up.
5926 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5928 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5930 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5932 * config/rs6000/altivec.h (vec_xor): Add variant for both args
5933 being vector signed int.
5935 (vec_xor): Add variant for both args being vector signed char.
5936 Remove redundant variant.
5939 2002-04-21 David S. Miller <davem@redhat.com>
5941 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
5942 compare mode in output RTL.
5944 2002-04-22 David Edelsohn <edelsohn@gnu.org>
5946 * config/rs6000/rs6000.c (rs6000_override_options): Correct
5947 style and formatting of previous patch.
5949 2002-04-22 Alan Modra <amodra@bigpond.net.au>
5951 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
5952 flag_pic for ABI_AIX.
5954 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5956 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
5957 * cppfiles.c (read_include_file): Similarly.
5958 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
5959 uxstrdup ustrchr, ufputs): Similarly.
5960 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
5961 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
5962 cpp_ideq, parse_identifier, parse_number): Similarly.
5963 * cpplib.c (struct directive, dequote_string, D, run_directive,
5964 cpp_push_buffer): Similarly.
5965 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
5966 _cpp_create_definition, check_trad_stringification,
5967 cpp_macro_definition): Similarly.
5969 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
5971 * cppmacro.c (funlike_invocation_p): Don't step back
5974 2002-04-21 David Edelsohn <edelsohn@gnu.org>
5976 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
5979 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
5981 * doc/invoke.texi: Remove Chill references.
5982 * doc/gcc.texi: Update last modified date.
5984 2002-04-20 Kazu Hirata <kazu@hxi.com>
5986 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
5987 push and pop. Replace add.l with add.w.
5989 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5991 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
5992 multiply instructions for H8/300H case.
5994 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5996 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
5997 Bum three instructions from each routine.
5999 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
6001 * Makefile.in: Update.
6002 * decl.c (push_c_function_context, pop_c_function_context,
6003 mark_c_function_context): Rename for consistency.
6004 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6005 * c-tree.h (push_c_function_context, pop_c_function_context,
6006 mark_c_function_context): Rename for consistency.
6007 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6008 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6009 * function.c (init_lang_status, save_lang_status,
6010 restore_lang_status, mark_lang_status, free_lang_status):
6011 Move to langhooks.h.
6012 (push_function_context_to, pop_function_context_from,
6013 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6015 * function.h (init_lang_status, save_lang_status,
6016 restore_lang_status, mark_lang_status, free_lang_status):
6017 Move to langhooks.h.
6018 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6019 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6020 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6021 LANG_HOOKS_FUNCTION_INITIALIZER): New.
6022 (LANG_HOOKS_INITIALIZER): Update.
6023 (lhd_do_nothing_f): New.
6024 * langhooks.h (struct lang_hooks_for_functions): New.
6025 (struct lang_hooks): New hooks.
6026 * langhooks.c (lhd_do_nothing_f): New.
6028 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6029 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6031 2002-04-19 David S. Miller <davem@redhat.com>
6033 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6034 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6036 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6038 PR optimization/3756
6039 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6040 x = ((int) y < 0) ? cst1 : cst2.
6042 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6045 * function.c: Reapply patch for c/6358.
6046 (expand_function_end): Copy decl_rtl's mode, not
6047 current_function_return_rtx mode.
6049 2002-04-19 Joel Sherrill <joel@OARcorp.com>
6051 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6054 2002-04-19 Tom Tromey <tromey@redhat.com>
6056 * doc/install.texi (Specific): Update status of Solaris 2.8.
6059 2002-04-19 Andreas Schwab <schwab@suse.de>
6061 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6062 (PUT_REAL): Restore old definition.
6064 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6065 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6067 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6068 binutils 2.11.2 and higher generate smaller binaries than Sun's
6071 2002-04-19 Mark Mitchell <mark@codesourcery.com>
6074 * toplev.c (rest_of_compilation): Do not defer functions for which
6075 TREE_SYMBOL_REFERENCED has already been set.
6077 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
6079 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6082 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
6084 * builtins.c: Include langhooks.h.
6085 (lang_type_promotes_to): Remove.
6086 (expand_builtin_va_arg): Use new hook.
6087 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6088 (simple_type_promotes_to): Move to c-typeck.c.
6089 * c-common.h (simple_type_promotes_to): Remove.
6090 * c-decl.c (duplicate_decls, grokdeclarator): Update.
6091 * c-format.c: Include langhooks.h.
6092 (check_format_types): Update.
6093 * c-tree.h (c_type_promotes_to): New.
6094 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6095 (type_lists_compatible_p): Update.
6096 * langhooks-def.h (lhd_type_promotes_to): New.
6097 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6098 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6099 * langhooks.c (lhd_type_promotes_to): New.
6100 * langhooks.h (struct lang_hooks_for_types): New hook.
6101 * tree.h (lang_type_promotes_to): Remove.
6103 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6105 2002-04-18 Richard Henderson <rth@redhat.com>
6107 * function.c: Revert patch for c/6358.
6109 2002-04-18 Richard Henderson <rth@redhat.com>
6111 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6112 blocks. Handle multiple references to the TRAP block. Handle
6113 non-adjacent THEN and OTHER blocks.
6115 2002-04-18 Richard Henderson <rth@redhat.com>
6117 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6118 crash with no type for by-mode libcalls.
6120 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6122 2002-04-18 Bob Wilson <bob.wilson@acm.org>
6124 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6125 __xtensa_nonlocal_goto): Use a syscall instructions to flush
6126 the register windows.
6128 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6130 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6131 appropriate. Document need for extended precision even when
6132 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
6133 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
6134 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
6135 instead of relying on later syntax error when REAL_WIDTH > 5.
6136 * real.c: Define NE based only on whether or not we have a
6137 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6138 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
6139 define GET_REAL and PUT_REAL as simple memcpy operations; no
6140 need to byteswap or round.
6141 Use #error instead of #ifdef-ing out the entire file, for
6142 prompt error detection.
6144 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6146 2002-04-18 David S. Miller <davem@redhat.com>
6148 * config/sparc/sparc.h (BRANCH_COST): Define.
6150 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6153 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
6155 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6156 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6157 propagate_block calls after relaxation loop using new variable
6158 stabilized_prop_flags.
6160 2002-04-18 Richard Henderson <rth@redhat.com>
6162 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6163 (ia64_va_arg): Expect variable sized types by reference.
6164 * config/ia64/ia64-protos.h: Update.
6165 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6166 ia64_function_arg_pass_by_reference.
6168 2002-04-18 Richard Henderson <rth@redhat.com>
6170 * ifcvt.c: Include except.h.
6171 (block_has_only_trap): Break out from find_cond_trap.
6172 (find_cond_trap): Use it. Always delete the trap block.
6173 (merge_if_block): Allow then block null. Be less simplistic about
6174 what insns can end a block.
6175 * Makefile.in (ifcvt.o): Depend on except.h.
6177 * config/ia64/ia64.md (trap, conditional_trap): New.
6179 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6182 * function.c (assign_parms): Assign hard current_function_return_rtx
6184 (expand_function_end): ...not here.
6186 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
6188 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6189 * c-tree.h (c_incomplete_type_error): New.
6190 * c-typeck.c (require_complete_type, build_component_ref): Update.
6191 (incomplete_type_error): Rename.
6192 * langhooks-def.h (lhd_incomplete_type_error): New.
6193 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6194 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6195 * langhooks.c (lhd_incomplete_type_error): New.
6196 * langhooks.h (struct lang_hooks_for_types): New hook.
6197 * tree.c (size_in_bytes): Use new hook.
6198 * tree.h (incomplete_type_error): Remove.
6200 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6202 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6204 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6205 TARGET_FLOAT_FORMAT blocks.
6207 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6209 * doc/install.texi (Downloading the source): Do not mention Chill
6210 any longer, but mention Ada.
6211 (Configuration): Do not mention Chill any longer.
6213 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
6215 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6217 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
6219 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6222 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6224 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6225 instead of unsigned_type.
6227 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6229 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6230 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6233 2002-04-18 Bernd Schmidt <bernds@redhat.com>
6235 * attribs.c (vector_type_node_list): New static variable.
6236 (handle_vector_size_attribute): Use it to avoid generating a
6237 new type node each time we are called.
6239 * combine.c (subst): Avoid trying to make a vector mode subreg of
6240 an integer constant.
6241 (gen_lowpart_for_combine): Likewise.
6243 2002-04-18 Roger Sayle <roger@eyesopen.com>
6244 Jakub Jelinek <jakub@redhat.com>
6246 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6247 for integer constant c (if x has unsigned type or sign bit is not
6248 set in c). This folds the zero/sign extension into the bit-wise and
6251 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6254 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6257 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
6259 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6261 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
6263 * gcc.c (read_specs): Detect and fail if an attempt is made to
6264 rename a spec string to an already existing string.
6266 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6268 * config/s390/s390.c (legitimize_pic_address): Do not generate
6269 illegal address constant without CONST.
6271 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6273 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6274 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6276 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6278 PR optimization/6305
6279 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6280 to make sure previous reloads are taken into account. Generate
6281 better code if one operand is an in-range immediate constant.
6283 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
6285 * doc/install.texi (Building): libgcj requires GNU make.
6287 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6290 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6291 even if hard quad and register is not floating.
6292 (movtf reg<-mem split): Disallow splitting if hard quad and
6293 register is floating.
6294 (movtf mem<-reg split): Likewise.
6295 * config/sparc/sparc.c (fp_register_operand): New predicate.
6296 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6298 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6300 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6301 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6302 (unprotoize.o): Ditto. Build from protoize.c. Define
6303 UNPROTOIZE on command line.
6304 * protoize.c: Include cppdefault.h. Delete include_defaults.
6305 (in_system_include_dir): Use cpp_include_defaults (defined in
6307 * unprotoize.c: Delete file.
6309 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6311 * config/rs6000/altivec.h (vec_ld): Add array variants.
6315 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6316 Aldy Hernandez <aldyh@redhat.com>
6318 * config/rs6000/altivec.h: Define __ALTIVEC__.
6325 Add parentheses to all macro arguments.
6327 2002-04-16 Richard Henderson <rth@redhat.com>
6330 * except.c (remove_eh_handler): Insert inner regions at beginning
6331 of sibling chain. Refactor expressions.
6333 2002-04-16 Richard Henderson <rth@redhat.com>
6335 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6336 * config/sparc/sol2-gas-bi.h: New file.
6337 * config.gcc (sparc*-solaris): Add it as needed.
6338 * configure.in (AS_SPARC64_FLAG): Remove check.
6339 * config.in, configure: Regenerate.
6341 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6343 2002-04-16 Richard Henderson <rth@redhat.com>
6345 * config/mips/mips.c (override_options): Don't override N32 for
6349 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6350 (HILO_delay): Set can_delay false.
6352 2002-04-16 Dale Johannesen <dalej@apple.com>
6354 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6355 instruction addresses.
6356 (rs6000_output_function_epilogue): Likewise.
6358 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6360 * c-parse.in (poplevel, compstmt_start,
6361 compstmt_primary_start): Add ending ';', in accordance
6364 2002-04-16 Richard Henderson <rth@redhat.com>
6366 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6367 Adjust tm_file order to get TARGET_DEFAULT set properly.
6368 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6369 * doc/install.texi (sparc-solaris): Update.
6371 2002-04-16 Dale Johannesen <dalej@apple.com>
6373 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6374 comparison operands do not match each other or if modes of
6375 conditions do not match result.
6377 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
6380 * config/s390/s390.md (mulsidi3): Set both subregs of the
6383 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
6385 * config/rs6000/altivec.h (vec_addc): Type check.
6387 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6390 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6392 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6394 2002-04-15 Richard Henderson <rth@redhat.com>
6396 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6397 call_really_used_regs too.
6399 2002-04-15 Richard Henderson <rth@redhat.com>
6401 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6403 2002-04-15 David S. Miller <davem@redhat.com>
6405 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6408 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6411 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6412 CONST_VECTOR is { 0, ... 0 }.
6414 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
6416 * doc/install.texi (Installing GCC: Configuration): Clarify
6417 the only supported ways to configure gcc.
6419 2002-04-15 Roland McGrath <roland@frob.com>
6421 * config.gcc (alpha*-*-gnu*): New target configuration.
6422 * config/alpha/gnu.h: New file for it.
6423 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6425 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6427 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6428 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6429 * tree.h (expand_start_stmt_expr): Update prototype.
6430 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6431 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6432 on the STMT_EXPR created for the inline function.
6434 2002-04-15 Richard Henderson <rth@redhat.com>
6436 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6437 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6438 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6439 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6440 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6441 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6442 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6443 Define __gnu_linux__, not gnu_linux.
6444 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6446 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6448 Remove Chill front end.
6449 * gcc.c (default_compilers): Remove Chill entries.
6450 * ch: Remove directory.
6451 * doc/frontends.texi: Remove information about Chill.
6452 * doc/sourcebuild.texi: Likewise.
6453 * doc/standards.texi: Likewise.
6455 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6457 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6458 (LONGLONG_STANDALONE): Define.
6460 2002-04-15 David S. Miller <davem@redhat.com>
6462 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6463 Call emit_library_call with LCT_NORMAL.
6464 (sparc_initialize_trampoline): Use LCT_foo instead of
6465 magic constant in emit_library_call invocations.
6466 (sparc64_initialize_trampoline): Likewise.
6467 (sparc_profile_hook): Likewise.
6468 * config/sparc/sparc.md: Likewise.
6470 * config/sparc/sparc.c (sparc_extra_constraint_check):
6471 Fix type of argument 'c'.
6472 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6475 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6477 * diagnostic.h (output_buffer_state): Redefine.
6478 (output_format_decoder): New macro.
6479 (output_prefixing_rule): Likewise.
6480 (output_line_cutoff): Likewise.
6481 (diagnostic_format_decoder): Adjust.
6482 (diagnostic_prefixing_rule): Likewise.
6483 (diagnostic_line_cutoff): Likewise.
6484 (diagnostic_state): Likewise.
6485 (diagnostic_kind_count): Likewise.
6486 (diagnostic_buffer): Now a macro.
6488 * diagnostic.c (diagnostic_buffer): Remove definition.
6489 (output_is_line_wrapping): Adjust.
6490 (set_real_maximum_length): Likewise.
6491 (output_set_maximum_length): Likewise.
6492 (init_output_buffer): Likewise.
6493 (lhd_print_error_function): Likewise.
6494 (output_do_verbatim): Likewise.
6496 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
6498 * cpperror.c (print_location): Don't print include chain
6500 (cpp_begin_message): Update to use DL_ macros.
6501 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6502 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6503 cpp_notice, cpp_notice_from_errno): Remove.
6504 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6507 * cppexp.c (CPP_ICE): Remove.
6508 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6509 lex, integer_overflow, _cpp_parse_expr): Update.
6510 * cppfiles.c (read_include_file, find_include_file,
6511 handle_missing_header, _cpp_read_file, remap_filename): Update.
6512 * cpphash.h (enum error_type): Remove.
6513 (_cpp_begin_message): Update.
6514 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6515 cpp_handle_option, cpp_post_options): Update.
6516 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6517 skip_whitespace, parse_identifier, parse_slow, parse_string,
6518 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6519 cpp_interpret_charconst): Update.
6520 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6521 lex_macro_node, do_undef, glue_header_name, parse_include,
6522 do_include_common, read_flag, do_line, do_linemarker, do_ident,
6523 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6524 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6525 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6526 _cpp_pop_buffer, do_diagnostic): Update.
6527 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6528 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6529 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6530 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6531 cpp_notice, cpp_notice_from_errno): Remove.
6532 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6535 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6536 collect_args, enter_macro_context, save_parameter, parse_params,
6537 _cpp_create_definition, check_trad_stringification,
6538 cpp_macro_definition): Update.
6539 * cppmain.c (cpp_preprocess_file): Update.
6540 * fix-header.c (read_scan_file): Update.
6542 2002-04-14 Andreas Schwab <schwab@suse.de>
6544 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6546 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6548 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6550 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6552 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6555 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
6557 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6559 2002-04-13 Joel Sherrill <joel@OARcorp.com>
6561 * config/sparc/t-elf: Enable v8 multilibs. Impacts
6562 sparc-elf and sparc-rtems targets.
6564 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6566 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6567 defined, and __gnu_hurd__ wherever __GNU__ is defined.
6568 * arm/linux-elf.h: Likewise.
6569 * cris/aout.h: Likewise.
6570 * cris/linux.h: Likewise.
6571 * i370/linux.h: Likewise.
6572 * i386/gnu.h: Likewise.
6573 * i386/linux-aout.h: Likewise.
6574 * i386/linux-oldld.h: Likewise.
6575 * i386/linux.h: Likewise.
6576 * i386/linux64.h: Likewise.
6577 * ia64/linux.h: Likewise.
6578 * m68k/linux-aout.h: Likewise.
6579 * m68k/linux.h: Likewise.
6580 * mips/linux.h: Likewise.
6581 * pa/pa-linux.h: Likewise.
6582 * pj/linux.h: Likewise.
6583 * rs6000/sysv4.h: Likewise.
6584 * s390/linux.h: Likewise.
6585 * sh/linux.h: Likewise.
6586 * sparc/linux-aout.h: Likewise.
6587 * sparc/linux.h: Likewise.
6588 * sparc/linux64.h: Likewise.
6589 * xtensa/linux.h: Likewise.
6591 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
6593 * stmt.c (check_unique_operand_names): Expect operand names to
6594 be strings rather than identifiers. Use simple_cst_equal to
6596 (resolve_operand_name_1): Make same identifier to string change here.
6597 * c-parse.in (asm_operand): Convert a named operand into a string.
6598 * cp/parse.y (asm_operand): Likewise.
6600 2002-04-13 Andreas Schwab <schwab@suse.de>
6602 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6604 2002-04-12 Mark Mitchell <mark@codesourcery.com>
6606 Revert these changes:
6608 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6611 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6613 2002-04-12 Richard Henderson <rth@redhat.com>
6615 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6616 (sparc*-*-solaris): Clean up header files.
6617 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6618 and plan on generating 64-bit code.
6619 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6620 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6621 * config/sparc/sol2-sld-64.h: Rename ...
6622 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
6623 for AS_SPARC64_FLAG not defined.
6624 * config/sparc/sol2-gld-bi.h: New.
6625 * config/sparc/sol2-sld.h: Remove.
6626 * config/sparc/sol26-sld.h: New.
6627 * config/sparc/sol2.h: Tidy comments.
6628 * doc/install.texi: Document sparc-solaris configury changes.
6630 2002-04-12 Richard Henderson <rth@redhat.com>
6632 * recog.c (offsettable_address_p): Match the logic in adjust_address.
6634 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6635 in 64-bit mode only. Use only for 32-bit or MEDLOW.
6637 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6639 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6641 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
6643 * pa.c (pa_can_combine_p): Call extract_insn before calling
6646 2002-04-12 Douglas B Rupp <rupp@gnat.com>
6648 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6649 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6650 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6651 (CPP_PREDEFINES): Handle __declspec.
6652 * config/i386/t-interix (USER_H): Remove.
6654 2002-04-12 DJ Delorie <dj@redhat.com>
6656 * integrate.c (compare_blocks): Make comparisons safe for when
6657 sizeof(int) < sizeof(char *).
6658 (find_block): Likewise.
6660 2002-04-12 Jan Hubicka <jh@suse.cz>
6661 David Edelsohn <edelsohn@gnu.org>
6663 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6665 (symbol_ref_operand): New.
6666 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6667 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6669 2002-04-12 Andreas Schwab <schwab@suse.de>
6671 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6672 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6673 overrides the definition in config/svr4.h.
6675 2002-04-12 Eric Norum <eric.norum@usask.ca>
6677 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6678 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6679 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6680 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6681 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6682 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6683 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6684 definitions to config/rtems.h and make the targets more similar.
6686 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6688 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6689 POINTERS_EXTEND_UNSIGNED.
6690 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6691 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6693 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6696 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
6698 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6699 depends on TARGET_SHMEDIA, not TARGET_SH5.
6701 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
6703 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6704 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6706 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
6708 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6711 2002-04-12 Andreas Schwab <schwab@suse.de>
6713 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6715 2002-04-12 Richard Henderson <rth@redhat.com>
6718 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6720 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6721 modes spanning multiple hard regs.
6723 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6725 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6727 * pa.c (pa_output_function_prologue): Don't accumulate the total
6728 number of code bytes when using TARGET_64BIT, or gas, SOM and not
6729 the portable runtime.
6730 (output_deferred_plabels): Handle 64bit plabels.
6731 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6732 generating pic code using the GAS assembler for object formats that
6733 are not SOM (ie., ELF32 and ELF64).
6734 (output_millicode_call): Check attribute type if attribute length is 28.
6735 Likewise use $PIC_pcrel$0. Only call get_attr_length and
6736 dbr_sequence_length once.
6737 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6738 dbr_sequence_length once.
6739 * pa.h (TARGET_SOM): Define if not defined.
6740 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6741 with GAS and not SOM.
6742 (jump, call_internal_reg, call_value_internal_reg): Likewise.
6743 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
6745 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6747 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6748 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6749 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6750 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6751 elfos.h and dbxelf.h values are fine now.
6752 * config/i386/freebsd.h, config/alpha/freebsd.h
6753 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6755 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6757 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6758 or set Acpu or Amachine. Reformat.
6759 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6761 (LINK_SPEC): Do not need to undef.
6762 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6763 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6764 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6766 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6767 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6768 (LINK_SPEC): Do not need to undef.
6769 (DONT_USE_BUILTIN_SETJMP): Do not define.
6770 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6771 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
6772 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6773 Remove trailing spaces.
6774 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6775 __ELF__, or set Acpu or Amachine. Reformat.
6776 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6779 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6781 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6782 all other *-*-freebsd* targets.
6784 2002-04-11 Richard Henderson <rth@redhat.com>
6786 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6788 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6790 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6791 Include {cpu}/{cpu}.h thru tm_file.
6792 (alpha*-*-linux*ecoff): Remove target.
6793 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6794 (LINK_SPEC): Remove, is not OS independent.
6795 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6796 (LINK_SPEC): Do not need to #undef any longer.
6797 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6799 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6801 (LINK_SPEC): Moved here from alpha/elf.h.
6802 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6804 * config/alpha/linux-ecoff.h: Remove.
6805 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6806 (CPP_SPEC): Define _POSIX_SOURCE as needed.
6807 (CPP_SUBTARGET_SPEC): Do not define.
6808 (LINK_SPEC): Do not need to #undef any longer.
6809 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6810 * config/alpha/vms.h: Likewise.
6812 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6814 * doc/extend.texi: Remove old claim that typedefs cannot have
6815 an alignment attribute.
6817 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6819 PR optimization/6177
6820 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6821 bitpos is 0 and bitsize CONCAT size.
6823 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6826 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6828 2002-04-10 David O'Brien <obrien@FreeBSD.org>
6830 * config/alpha/freebsd.h: Minor reformatting.
6831 (CPP_SPEC): Define ELF and add cpp_subtarget.
6832 (ASM_SPEC): No longer needed.
6834 2002-04-11 Richard Henderson <rth@redhat.com>
6836 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6837 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
6838 (dimode mem/zero splitter): New.
6840 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
6842 * config/cris/cris.c (cris_override_options): Tweak error message
6843 for PIC not implemented.
6845 * config/cris/cris.h: Tweak comments related to parameter-passing.
6847 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6849 2002-04-10 Richard Henderson <rth@redhat.com>
6851 * except.c (add_ehl_entry): Allow duplicates after landing pad
6854 2002-04-10 David Edelsohn <edelsohn@gnu.org>
6856 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6858 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
6860 * c-decl.c (c_init_decl_processing): Move generation of
6861 decls for g77_integer_type_node and friends from here ...
6862 * c-common.c (c_common_nodes_and_builtins): ... to here.
6864 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
6866 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6867 is only used as frame pointer when frame_pointer_needed is true.
6869 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
6872 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6873 for the fact that the pool entry uses two words.
6874 (movdf_hard_insn): Similarly. Also, ADR instruction can span
6876 (movdf_soft_insn): Similarly.
6877 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6878 for the fact that the pool entry uses three words.
6880 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
6882 * config/mips/mips.c (mips_va_arg): When using the struct version
6883 of the EABI va_list, allow arguments in the register save area to
6884 take up less room than a stack argument.
6886 2002-04-10 Richard Henderson <rth@redhat.com>
6888 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6889 if EXPAND_INITIALIZER.
6891 2002-04-09 Richard Henderson <rth@redhat.com>
6893 * config/alpha/alpha.md (movdi_er_maybe_g): New.
6894 * config/alpha/alpha.c (alpha_expand_mov): Use it.
6896 2002-04-10 Alan Modra <amodra@bigpond.net.au>
6898 PR optimization/6233
6899 * rtlanal.c (pure_call_p): New function.
6900 * rtl.h (pure_call_p): Declare.
6901 * loop.c (prescan_loop): Use it to set has_nonconst_call.
6902 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6904 2002-04-09 Eric Christopher <echristo@redhat.com>
6906 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6907 information to .comm directive.
6909 2002-04-09 Richard Henderson <rth@redhat.com>
6912 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6914 2002-04-09 Richard Henderson <rth@redhat.com>
6916 * basic-block.h (flow_delete_block_noexpunge): Declare.
6917 (expunge_block_nocompact): Declare.
6918 * cfg.c (expunge_block_nocompact): Split out from ...
6919 (expunge_block): ... here.
6920 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6921 (flow_delete_block_noexpunge): Split out from ...
6922 (flow_delete_block): ... here.
6923 * cfgcleanup.c (delete_unreachable_blocks): Compact while
6924 removing dead blocks.
6925 * except.c (exception_handler_labels): Remove.
6926 (exception_handler_label_map): New.
6927 (struct eh_region): Add aka member.
6928 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6929 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6930 (for_each_eh_label, for_each_eh_label_1): New.
6931 (init_eh): Register exception_handler_label_map.
6932 (free_eh_status): Use free_region.
6933 (find_exception_handler_labels): Use the map, not the list.
6934 (remove_exception_handler_label): Likewise.
6935 (maybe_remove_eh_handler): Likewise.
6936 (remove_eh_handler): Use the region aka bitmap.
6937 * except.h (exception_handler_labels): Remove.
6938 (for_each_eh_label): Declare.
6939 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
6940 * loop.c (invalidate_loops_containing_label): New.
6941 (find_and_verify_loops): Use it. Use for_each_eh_label.
6942 * sched-rgn.c (is_cfg_nonregular): Use
6943 current_function_has_exception_handlers.
6945 2002-04-09 Richard Henderson <rth@redhat.com>
6947 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
6948 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
6949 Do not return changed status.
6950 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
6951 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
6952 New functions that do return changed status.
6953 * sbitmap.h: Update decls.
6954 * gcse.c, lcm.c: Use _cg functions as needed.
6956 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
6958 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
6959 (sh64-*-elf*, sh-*-rtemself*): Likewise.
6960 * config/sh/embed_bb.c: New file.
6961 * config/sh/embed-elf.h: New file.
6962 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
6963 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
6964 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6966 (SUBTARGET_CPP_PTR_SPEC): Don't define.
6967 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
6968 Add subtarget_asm_endian_spec.
6969 (ASM_SPEC): Use subtarget_asm_endian_spec.
6970 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
6971 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
6972 (WCHAR_UNSIGNED): Define.
6973 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
6974 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6975 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
6977 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
6978 (sh_adjust_cost): Likewise.
6979 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6981 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
6982 (WCHAR_TYPE_SIZE): Likewise.
6983 (ASM_SPEC): Use subtarget_asm_endian_spec.
6984 (SH_ELF_WCHAR_TYPE): #undef/ #define.
6985 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
6986 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
6987 (MAX_WCHAR_TYPE_SIZE): Don't #define .
6988 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
6989 (USER_LABEL_PREFIX): Don't #undef /#define .
6990 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6991 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
6992 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
6993 (ASM_SPEC): Likewise.
6994 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
6995 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
6996 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
6997 (LIB2FUNCS_EXTRA): Define.
6998 * t-sh64 (LIB2FUNCS_EXTRA): Define.
6999 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7000 (LIB1ASMFUNCS_CACHE): Define.
7001 (LIB2FUNCS_EXTRA): Redefine empty.
7003 2002-04-08 Richard Henderson <rth@redhat.com>
7005 * reorg.c (get_branch_condition): Use reversed_comparison_code.
7007 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7009 * config/m68hc11/larith.asm (__map_data_section): Fix condition
7010 and optimize for size.
7011 (__do_global_ctors): Fix pointer comparison.
7012 (__do_global_dtors): Likewise.
7014 2002-04-09 David S. Miller <davem@redhat.com>
7016 * config/sparc/sparc.c (sparc_extra_constraint_check): New
7017 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
7018 allow reloading pseudos.
7019 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7020 * config/sparc/sparc-protos.h: Declare it.
7022 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7023 unsigned comparison warning.
7024 (output_restore_regs): Mark leaf_function as unused.
7026 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7028 * expr.c (is_aligning_offset): New function.
7029 (expand_expr, case COMPONENT_EXPR): Call it.
7031 2002-04-08 David S. Miller <davem@redhat.com>
7034 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7036 Make init_priority work on Sparc when using GNU ld.
7037 * config/sparc/linux.h, config/sparc/linux64.h,
7038 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7039 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7040 * config/sparc/sol2-gld.h: New file to do the same.
7041 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7042 sparc/sol2-gld.h to tm_file.
7044 PR optimization/4328
7045 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7046 * doc/md.texi: Document it.
7047 * config/sparc/sparc.md (movdi_insn_sp64_novis,
7048 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7049 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7050 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7051 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7053 2002-04-08 Andreas Jaeger <aj@suse.de>
7055 * stmt.c (expand_asm_operands): Revert last patch from Richard
7058 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7060 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7061 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
7063 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7065 * doc/contrib.texi (Contributors): Add David O'Brien.
7067 2002-04-08 Alan Modra <amodra@bigpond.net.au>
7069 * configure.in (auto-build.h): Use target_alias and build_alias
7070 when running configure.
7071 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7072 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7073 * configure: Regenerate.
7075 2002-04-07 David S. Miller <davem@redhat.com>
7077 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7079 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
7082 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7083 generating 32-bit pic code.
7085 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
7087 * cppinit.c (cpp_create_reader): Initialize
7088 discard_comments_in_macro_exp.
7089 (COMMAND_LINE_OPTIONS): Add "-CC" option.
7090 (cpp_handle_option): Handle "-CC" option.
7091 * cpplex.c (save_comment): If saving a C++ comment in
7092 a directive, convert it to a C comment.
7093 (_cpp_lex_direct): Pass second comment start character to
7094 save_comment to indicate comment type.
7095 * cpplib.c (_cpp_handle_directive): If processing
7096 a "#define" directive and discard_comments_in_macro_exp
7097 is false, re-enable saving of comments.
7098 (lex_macro_node): If discard_comments_in_macro_exp is false,
7099 discard any comments before the macro identifier.
7100 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7102 * cppmacro.c (cpp_get_token): If expanding a macro while
7103 processing a directive, discard any comments we might encounter.
7104 (parse_params): If discard_comments_in_macro_exp is false,
7105 ignore comments in the macro parameter list.
7106 * gcc.c (cpp_unique_options): Add "-CC" option.
7107 (option_map): Map "--comments-in-macros" to "-CC".
7108 * doc/cppopts.texi: Document "-CC" option.
7109 * f/lang-specs.h: Add "-CC" option.
7110 * testsuite/gcc.dg/cpp/maccom1.c: New test.
7111 * testsuite/gcc.dg/cpp/maccom2.c: New test.
7112 * testsuite/gcc.dg/cpp/maccom3.c: New test.
7113 * testsuite/gcc.dg/cpp/maccom4.c: New test.
7114 * testsuite/gcc.dg/cpp/maccom5.c: New test.
7115 * testsuite/gcc.dg/cpp/maccom6.c: New test.
7117 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7120 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7122 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7125 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7128 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7129 RTX_UNCHANGING_P for the functions arguments when a tail call
7132 2002-04-06 Jason Merrill <jason@redhat.com>
7134 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7135 (parse_options_and_default_flags): Set them appropriately.
7136 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7138 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
7140 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7143 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7146 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7147 types come in by-reference. Fix typo in comment.
7149 2002-04-05 David S. Miller <davem@redhat.com>
7151 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7152 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7153 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7154 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7156 2002-04-05 David S. Miller <davem@redhat.com>
7158 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7159 are not going to emit return instructions, emit at least a nop
7160 for the sake of sane backtraces.
7162 2002-04-05 Richard Henderson <rth@redhat.com>
7164 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7166 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
7168 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7170 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
7172 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7173 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7174 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7176 2002-04-05 Andreas Schwab <schwab@suse.de>
7178 * c-convert.c: Include c-common.h.
7179 * Makefile.in (c-convert.o): Updated.
7181 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7183 * mklibgcc.in: Use separate libgcc.map for each multilib.
7184 * Makefile.in (distclean): Don't remove libgcc.map here.
7186 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7188 * Makefile.in (s-mlib): Handle --disable-multilib by separate
7189 genmultilib invocation.
7191 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
7193 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7194 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
7195 to num_gprs for symmetry.
7196 * config/mips/mips.c: Adjust accordingly.
7198 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
7200 * c-common.c (truthvalue_conversion): Rename, update.
7201 * c-common.h (c_common_truthvalue_conversion): New.
7202 * c-convert.c (convert): Update.
7203 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7204 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7205 * c-typeck.c (build_binary_op, build_unary_op,
7206 build_conditional_expr): Update.
7207 * fold-const.c (constant_boolean_node, fold): Use langhook.
7208 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7209 * langhooks.h (struct lang_hooks): New hook.
7210 * stmt.c (expand_decl_cleanup): Use langhook.
7211 * tree.h (truthvalue_conversion): Remove.
7213 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7215 2002-04-05 Alan Modra <amodra@bigpond.net.au>
7217 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7218 Add rules to make null object file.
7220 2002-04-04 Jim Blandy <jimb@redhat.com>
7222 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7223 macro formal parameter names.
7225 2002-04-04 David S. Miller <davem@redhat.com>
7227 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7229 2002-04-04 Richard Henderson <rth@redhat.com>
7232 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7233 Support copies into and out of memory. Don't accept allows_reg
7234 and allows_mem as gospel.
7236 2002-04-04 Richard Henderson <rth@redhat.com>
7239 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7240 (write_dependence_p): Likewise.
7242 2002-04-04 Richard Henderson <rth@redhat.com>
7244 * predict.c (estimate_bb_frequencies): Do frequency calculation
7245 with a volatile temporary.
7247 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
7249 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7251 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7254 * final.c (final_start_function): Don't bump profile_label_no here...
7255 (final_end_function): ...but here.
7257 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7259 * config/sparc/sparc.md (pic): New attribute.
7260 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7262 (split after do_builtin_setjmp_setup): New.
7264 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7267 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7270 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7272 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7273 UNITS_PER_WORD for zero sized aggregates.
7275 2002-04-03 David S. Miller <davem@redhat.com>
7277 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7278 one-character spec for this, just use %(link_gcc_c_sequence).
7280 2002-04-03 David S. Miller <davem@redhat.com>
7282 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7285 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7287 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7288 (DWARF_FRAME_RETURN_COLUMN): Move.
7289 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7290 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7291 * pa.c (except.h, predict.h): Include.
7293 (store_reg_modify, set_reg_plus_d): Revise prototypes.
7294 (output_ascii): Add cast.
7295 (store_reg_modify): Revise to add frame notes.
7296 (set_reg_plus_d): Likewise.
7297 (compute_frame_size): Include space for eh data registers in frame if
7298 the current function calls eh_return.
7299 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7300 function calls eh_return. Save eh data registers if the current
7301 function calls eh_return. Fix code to add frame notes. Emit
7302 blockage to prevent insns with frame notes being scheduled in the
7303 delay slot of calls.
7304 (hppa_expand_epilogue): Restore eh data registers and do final stack
7305 adjustment if the current function calls eh_return. Don't add frame
7307 (output_call): Revise for change in length of call insn. Don't do
7308 return pointer adjustment for an unconditional jump in the delay slot
7309 of a call when using frame notes.
7310 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7311 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7312 (ARG_POINTER_CFA_OFFSET): Define.
7313 * pa.md (return_external_pic): New pattern.
7314 (prologue): Correct formatting. Use return_external_pic if current
7315 function calls eh_return.
7316 (call_internal_symref, call_value_internal_symref,
7317 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7318 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7320 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7322 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7323 list of targets to check using "nop" insn.
7324 * configure: Rebuilt.
7326 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7328 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7330 2002-04-03 David S. Miller <davem@redhat.com>
7332 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7333 library sequence passed to the linker.
7334 (LINK_COMMAND_SPEC): Use it.
7335 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7336 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7337 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7339 2002-04-03 Jason Merrill <jason@redhat.com>
7341 * except.c (struct eh_status): Remove protect_list.
7342 (begin_protect_partials, end_protect_partials): Remove.
7343 (add_partial_entry): Remove.
7344 * except.h: Remove prototypes.
7346 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7347 expand_decl_cleanup_eh.
7350 * tree.h (CLEANUP_EH_ONLY): New macro.
7351 * stmt.c (expand_decl_cleanup_eh): New fn.
7352 (expand_cleanups): Check CLEANUP_EH_ONLY.
7353 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7354 Use expand_decl_cleanup_eh.
7355 (expand_stmt): Adjust.
7356 * c-common.h: Adjust prototype.
7358 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7360 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7361 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7362 (cris_target_asm_function_epilogue): Ditto.
7363 (cris_initial_frame_pointer_offset): Ditto.
7364 (cris_simple_epilogue): Ditto.
7365 (cris_expand_builtin_va_arg): Variable-size types come in
7368 2002-04-03 David S. Miller <davem@redhat.com>
7370 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7372 (set_fast_math): Correct 'fsr' type.
7374 2002-04-03 Richard Henderson <rth@redhat.com>
7377 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7378 * toplev.c (check_global_declarations): Use it.
7379 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7380 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7381 (LANG_HOOKS_DECLS): Add it.
7382 * langhooks.c (lhd_warn_unused_global_decl): New.
7383 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7384 * c-objc-common.c (c_warn_unused_global_decl): New.
7385 * c-tree.h (c_warn_unused_global_decl): Declare.
7386 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7388 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
7390 * langhooks-def.h (lhd_set_decl_assembler_name,
7391 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7392 (LANG_HOOKS_INITIALIZER): Update.
7393 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7394 * langhooks.h (struct lang_hooks): New hook.
7395 * tree.c (set_decl_assembler_name): Move to langhooks.c.
7396 (lang_set_decl_assembler_name): Remove.
7397 (init_obstacks): Don't set hook.
7398 (decl_assembler_name): New function.
7399 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7400 (decl_assembler_name): New.
7401 (lang_set_decl_assembler_name): Remove.
7403 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7405 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7406 works properly with .hidden symbols.
7407 * configure: Rebuilt.
7408 * config.in: Rebuilt.
7409 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7410 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7411 properly with .hidden symbols.
7413 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7416 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7419 2002-04-03 Richard Henderson <rth@redhat.com>
7422 * sched-rgn.c (sets_likely_spilled): New.
7423 (sets_likely_spilled_1): New.
7424 (add_branch_dependences): Use it.
7426 2002-04-02 Richard Henderson <rth@redhat.com>
7429 * loop.h (LOOP_FIRST_PASS): New.
7430 * loop.c (strength_reduce): Mind it when deciding to unroll.
7431 * toplev.c (rest_of_compilation): Set it.
7433 2002-04-02 David S. Miller <davem@redhat.com>
7435 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7436 mems_ok_for_ldd_peep when the order of the loads being examined
7438 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7439 existing comment to increase comprehension of this situation.
7441 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7443 * config/sh/sh.md: Don't use union real_extract.
7445 2002-04-02 Richard Henderson <rth@redhat.com>
7447 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7449 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7451 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7452 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7453 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7454 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7455 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7456 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7457 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7458 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7459 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7460 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7461 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7462 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7463 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7464 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7465 Include as many configury headers via tm_file as possible. This
7466 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7467 * config/openbsd-oldgas.h: New file.
7468 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7469 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7470 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7471 config/i386/i386-coff.h, config/i386/i386-interix.h,
7472 config/i386/iscdbx.h, config/i386/linux-aout.h,
7473 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7474 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7475 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7476 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7477 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7478 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7479 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7480 config/i386/vxi386.h: Do not directly include configury headers.
7481 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7482 Directly include configury headers that are no longer automatically
7483 included by the above headers.
7484 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7485 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7486 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7487 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7488 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7489 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7490 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7491 (TARGET_VERSION): Define.
7492 * config/i386/beos-elf.h, config/i386/freebsd.h,
7493 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7494 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7495 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7496 config/i386/sco5.h, config/i386/sysv4.h
7497 (TARGET_VERSION): Do not need to protect.
7498 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7499 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7500 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7501 config/i386/i386-interix.h, config/i386/linux-aout.h,
7502 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7503 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7504 (YES_UNDERSCORES): Do not define - not needed.
7505 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7506 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7507 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7508 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7509 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7510 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7511 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7512 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7514 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
7515 Richard Henderson <rth@redhat.com>
7518 * function.c (assign_temp): Accept either type or decl argument.
7519 Detect variables whose size is too large to fit into an integer.
7520 * stmt.c (expand_decl): Pass the decl, not the type.
7522 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7524 * protoize.c: Match include directory usage with cppdefault.c.
7526 2002-04-03 Jeffrey A Law (law@redhat.com)
7527 Hans-Peter Nilsson <hp@bitrange.com>
7529 * combine.c (simplify_comparison): Avoid narrowing a comparison
7530 with a paradoxical subreg when doing so would drop signficant bits.
7532 2002-04-02 Steve Ellcey <sje@cup.hp.com>
7534 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7535 if POINTERS_EXTEND_UNSIGNED is defined.
7537 2002-04-02 Richard Henderson <rth@redhat.com>
7540 * local-alloc.c (contains_replace_regs): LO_SUM may contain
7543 2002-04-02 Richard Henderson <rth@redhat.com>
7545 * doc/standards.texi: Document required freestanding libc entry points.
7547 2002-04-02 Alan Modra <amodra@bigpond.net.au>
7549 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7550 associated splitter. Remove MQ constraint.
7551 (ctrdi_internal4): Correct CCmode clobber.
7553 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7555 * milli64.S ($$dyncall): New function.
7556 * t-linux (LIB1ASMFUNCS): Revise module list.
7557 (LIB1ASMSRC): Use pa/milli64.S.
7559 2002-04-02 Richard Henderson <rth@redhat.com>
7561 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7562 rename solaris_sys_varargs_h.
7564 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7566 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7567 the same mode as its component.
7569 2002-04-02 Richard Henderson <rth@redhat.com>
7572 * final.c (this_is_asm_operands): Export.
7573 * output.h (this_is_asm_operands): Declare.
7574 * config/i386/i386.c (print_operand): Error odd asm operands.
7576 2002-04-02 Richard Henderson <rth@redhat.com>
7579 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7581 2002-04-01 Richard Henderson <rth@redhat.com>
7584 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7585 * fixinc/fixincl.x: Rebuild.
7587 2002-04-01 Richard Henderson <rth@redhat.com>
7589 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7590 (atomic_alloc, atomic_free): New.
7591 (SIZE, MASK_FOR, PTR_IN): New.
7592 (emergency_reg_state, emergency_reg_state_free): New.
7593 (emergency_labeled_state, emergency_labeled_state_free): New.
7594 (reg_state_alloced, labeled_state_alloced): New.
7595 (alloc_reg_state, free_reg_state): New.
7596 (alloc_label_state, free_label_state, free_label_states): New.
7597 (push, pop, dup_state_stack, free_state_stack): Use them.
7598 (desc_label_state): Likewise.
7599 (uw_frame_state_for): Free label states and state stack.
7600 (uw_update_reg_address): Eliminate warnings.
7602 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
7604 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7605 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7607 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7609 * c-decl.c (grokdeclarator): Update.
7610 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7611 * c-tree.h (c_mark_addressable): New.
7612 * c-typeck.c (default_function_array_conversion, build_unary_op,
7613 build_array_ref, convert_for_assignment): Update.
7614 (mark_addressable): Rename.
7615 * calls.c (try_to_integrate, expand_call): Use langhook.
7616 * expr.c (expand_expr): Use langhook.
7617 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7618 * langhooks.h (struct lang_hooks): New hook.
7619 * stmt.c (expand_asm_operands): Use langhook.
7620 * tree.h (mark_addressable): Remove.
7622 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7624 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7626 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7629 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7631 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7632 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7634 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7636 * c-common.c (unsigned_conversion_warning, convert_and_check,
7637 unsigned_type, signed_type, shorten_compare,
7638 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7639 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7640 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7642 * c-decl.c (grokdeclarator): Update.
7643 * c-format.c (check_format_types): Update.
7644 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7645 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7646 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7647 * convert.c (convert_to_integer): Use new hooks.
7648 * expmed.c (make_tree): Use new hooks.
7649 * expr.c (store_expr): Use new hooks.
7650 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7651 all_ones_mask_p, unextend, fold): Use new hooks.
7652 * langhooks.h (struct lang_hooks_for_types): New hooks.
7653 * tree.h (signed_or_unsigned_type, signed_type,
7654 unsigned_type): Remove.
7656 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7657 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7659 2002-03-31 Richard Henderson <rth@redhat.com>
7661 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7662 (desc_frgr_mem): Fix reference to f16-f31.
7664 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7666 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7667 RTVEC_ELT): Const-ify.
7668 * varray.h (VARRAY_CHECK): Const-ify.
7669 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7670 ggc_mark_rtvec, ggc_mark): Const-ify.
7672 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7674 * diagnostic.c: Include langhooks-def.h.
7675 * Makefile.in (diagnostic.o): Update.
7677 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7679 * c-common.c (c_unsafe_for_reeval): Rename.
7680 * c-common.h (c_unsafe_for_reeval): Rename.
7681 * c-decl.c (finish_incomplete_decl): Rename.
7682 (c_init_decl_processing): Don't set langhook.
7683 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7684 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7685 * c-objc-common.c (c_objc_common_init): Don't set langhook.
7686 * c-tree.h (finish_incomplete_decl): Rename.
7687 * langhooks-def.h (lhd_unsafe_for_reeval): New.
7688 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7689 (LANG_HOOKS_INITIALIZER): Update.
7690 * langhooks.c (lhd_unsafe_For_reeval): New.
7691 * langhooks.h (struct langhooks): New hooks.
7692 * toplev.c (incomplete_decl_finalize_hook): Remove.
7693 (wrapup_global_declarations): Update.
7694 * tree.c (lang_unsafe_for_reeval): Remove.
7695 (unsafe_for_reeval): Update.
7696 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7699 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7700 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7702 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7704 * diagnostic.c (print_error_function): Remove.
7705 (default_print_error_function): Rename.
7706 (report_error_function): Update.
7707 * diagnostic.h (print_error_function): Remove.
7708 (default_print_error_function): Remove.
7709 * langhooks-def.h (struct diagnostic_context): Predeclare.
7710 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7711 (LANG_HOOKS_INITIALIZER): Update.
7712 * langhooks.h (struct diagnostic context): Predeclare.
7713 (struct lang_hooks): New hook.
7715 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7717 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7718 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7720 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7721 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7722 of PIC_OFFSET_TABLE_REGNUM thruout.
7723 * config/rs6000/rs6000.md: Likewise.
7724 * config/rs6000/darwin.h: Likewise.
7726 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7728 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7729 unsigned HOST_WIDE_INT, not unsigned int.
7731 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7733 PR middle-end/6096, middle-end/6098, middle-end/6099
7734 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7736 (fill_slots_from_thread): Likewise.
7738 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7740 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7741 floating fields in float regs.
7742 (function_arg_record_value_2): Likewise.
7744 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7746 * config/mmix/mmix.md (define_constants): Remove misleading
7747 FIXME. Add MMIX_fp_rO_OFFSET.
7748 ("nonlocal_goto_receiver"): Don't have stack-frame address of
7749 saved rO as part of the pattern. Remove FIXME.
7750 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
7751 here, at output-time.
7753 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7756 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7758 (output_v9branch): Likewise.
7760 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7762 * gcc.c: Revert previous patch for now.
7763 * config/i386/djgpp.h: Likewise.
7765 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7767 * config/mmix/crti.asm (_init): Register _fini with atexit.
7768 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7770 2002-03-31 Richard Henderson <rth@redhat.com>
7773 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7774 (ASM_OUTPUT_DEF_FROM_DECLS): New.
7776 2002-03-31 Richard Henderson <rth@redhat.com>
7778 * libgcc2.c (__bb_exit_func): Make static.
7780 * config/alpha/alpha.md (trap): New.
7782 2002-03-31 Richard Henderson <rth@redhat.com>
7784 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7785 promoted argument types; build trap.
7786 (expand_builtin_trap): New.
7787 (expand_builtin): Use it.
7788 * stmt.c (expand_nl_goto_receivers): Likewise.
7789 * expr.h (expand_builtin_trap): Declare.
7790 * libfuncs.h (LTI_abort, abort_libfunc): New.
7791 * optabs.c (init_optabs): Init abort_libfunc.
7793 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7795 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7796 (LINK_COMMAND_SPEC): ... from here.
7797 (init_gcc_specs): Duplicate it here too, omitting
7798 shared_name in the second copy.
7799 (init_spec): Test for duplicate
7800 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7802 2002-03-30 David S. Miller <davem@redhat.com>
7804 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7805 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7807 2002-03-30 Roger Sayle <roger@eyesopen.com>
7808 Richard Henderson <rth@redhat.com>
7810 * regmove.c (combine_stack_adjustments_for_block): Avoid
7811 emitting a stack adjustment of zero bytes. Let delete_insn
7814 2002-03-30 Richard Henderson <rth@redhat.com>
7816 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7817 (sparc_emitting_epilogue): New.
7818 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7819 * config/sparc/sparc-protos.h: Update.
7820 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7821 (TARGET_SWITCHES): Update.
7822 * config/sparc/sparc.md (return): Remove.
7823 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7824 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7825 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7826 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7827 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7828 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7829 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7830 Remove MASK_EPILOGUE.
7831 * doc/invoke.texi: Update.
7833 2002-03-30 Daniel Berlin <dan@dberlin.org>
7835 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7836 CPP will start the file for us.
7838 2002-03-30 Richard Henderson <rth@redhat.com>
7841 * config/ia64/ia64.c (group_barrier_needed_p): Special case
7842 prologue_allocate_stack.
7843 (ia64_single_set): Use insn codes for recognition of special
7844 cases, not rtl matching.
7845 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7847 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
7849 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7851 2002-03-30 Richard Henderson <rth@redhat.com>
7854 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7855 or -fomit-frame-pointer with profiling.
7856 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7857 (FUNCTION_PROFILER): Do nothing.
7858 (PROFILE_HOOK): New.
7859 * config/sparc/sparc.c (sparc_override_options): Don't check
7860 code models for profiling.
7861 (sparc_function_profiler): Remove.
7862 (sparc_profile_hook): New.
7863 * config/sparc/sparc-protos.h: Update.
7865 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7867 PR optimization/6086
7868 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7869 of SUBREG of volatile MEM or because the MEM was mode dependent,
7870 return CLOBBER instead of unmodified SUBREG.
7872 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
7874 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7875 when not optimizing.
7877 * toplev.c (rest_of_compilation): Cann mark_constant_function
7878 only when optimizing.
7880 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7883 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7884 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7885 (try_optimize_cfg): clear all AUX fields.
7887 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7888 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7889 (ix86_address_cost): Be prepared for SUBREGed registers.
7890 (legitimate_address_p): Accept SUBREGed registers.
7892 2002-03-29 Richard Henderson <rth@redhat.com>
7895 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7897 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7899 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7900 for aggregate and TFmode types.
7902 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7904 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7906 2002-03-29 Richard Henderson <rth@redhat.com>
7909 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7910 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7912 2002-03-29 Richard Henderson <rth@redhat.com>
7915 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7916 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7917 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7918 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7920 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7922 2002-03-29 Dale Johannesen <dalej@apple.com>
7924 * loop.c (combine_movables): Do allow combination of pseudos.
7926 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
7928 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7929 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7930 No functional change except ...
7931 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
7932 * doc/install.texi (*-*-freebsd*): Document port configuration.
7934 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7936 * Makefile.in (convert.o, calls.o, expmed.o): Update.
7937 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
7939 * builtin-types.def (BT_PTRMODE): Update.
7940 * c-common.c (type_for_size): Rename c_common_type_for_size.
7941 (type_for_mode): Similarly.
7942 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
7944 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
7945 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
7946 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
7948 * c-typeck.c (common_type, comptypes, default_conversion):
7950 * calls.c: Include langhooks.h.
7951 (emit_library_call_value_1): Use new hooks. Avoid redundant
7953 * convert.c: Include langhooks.h
7954 (convert_to_pointer, convert_to_integer): Use new hooks.
7955 * except.c (init_eh): Similarly.
7956 * expmed.c: Include langhooks.h.
7957 (expand_mult_add): Use new hooks.
7958 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
7959 try_casesi): Similarly.
7960 * fold-const.c (optimize_bit_field_compare, make_range,
7961 decode_field_reference, fold_truthop, fold): Similarly.
7962 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
7963 put_var_into_stack): Similarly.
7964 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
7965 LANG_HOOKS_TYPE_FOR_SIZE): New.
7966 (LANG_HOOKS_TYPES_INITIALIZER): Update.
7967 * langhooks.h (lang_hooks_for_types): New hooks.
7968 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
7969 * tree.c (get_unwidened, get_narrower): Similarly.
7970 * tree.h (type_for_mode, type_for_size): Remove.
7971 * varasm.c (force_const_mem): Use new hooks.
7972 * utils2.c (nonbinary_modular_operation): Update.
7974 * objc-act.c (handle_impent): Update.
7975 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
7978 2002-03-29 Steve Ellcey <sje@cup.hp.com>
7980 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
7981 * config/ia64/ia64.c (basereg_operand): New.
7982 * config/ia64/ia64-protos.h (basereg_operand): Declare.
7983 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
7985 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7987 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
7988 unwind information when frame_pointer_needed.
7989 (mmix_assemble_integer): Tweak wording in comment.
7991 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
7993 * Makefile.in (except.o): Update.
7994 * except.c: Include langhooks.h.
7995 (init_eh): Use langhook.
7996 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
7997 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
7998 (LANG_HOOKS_INITIALIZER): Update.
7999 * langhooks.h (lang_hooks_for_types): New.
8000 (struct lang_hooks): Add it.
8001 * tree.c (make_lang_type_fn, make_lang_type): Remove.
8002 * tree.h (make_lang_type_fn, make_lang_type): Remove.
8004 * alpha/alpha.c: Include langhooks.h.
8005 (alpha_build_va_list): Use langhook.
8006 * d30v/d30v.c: Include langhooks.h.
8007 (d30v_build_va_list): Use langhook.
8008 * i386/i386.c: Include langhooks.h.
8009 (ix86_build_va_list): Use langhook.
8010 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8011 * s390/s390.c: Include langhooks.h.
8012 (s390_build_va_list): Use langhook.
8013 * stormy16/stormy16.c: Include langhooks.h.
8014 (stormy16_build_va_list): Use langhook.
8016 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8019 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8021 (length): Compute variable length for branches/calls/jumps here.
8022 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8023 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8024 define branch_type attribute.
8025 (divsi3_sp32): Maximum length is 6 not 7.
8026 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8027 call_address_untyped_struct_value_sp32,
8028 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8029 * config/sparc/sparc.c (empty_delay_slot): New function.
8030 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8031 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8033 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8035 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8036 nonzero_bits if not needed.
8037 (nonzero_bits) [XOR]: Likewise.
8038 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8039 reg_last_set_mode and mode are both MODE_INT, but not equal.
8040 (record_value_for_reg): Compute reg_last_set_nonzero_bits
8041 in nonzero_bits_mode for MODE_INT modes.
8043 2002-03-28 Richard Henderson <rth@redhat.com>
8046 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8047 to GAS. Correct drift between alternatives.
8049 2002-03-28 Richard Henderson <rth@redhat.com>
8052 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8054 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
8056 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8057 emulation to the linker.
8059 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
8061 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8062 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8064 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
8066 * combine.c (simplify_and_const_int): Make sure to apply mask
8067 when force_to_mode returns a constant integer. PR3311.
8069 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8071 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8073 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8075 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8076 and Objective-C Dialect Options.
8078 2002-03-28 Richard Henderson <rth@redhat.com>
8080 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8081 comparison should be done vs !=0 not >0 return code. Tidy cases.
8083 2002-03-28 Richard Henderson <rth@redhat.com>
8085 * c-decl.c (finish_function): New arg can_defer_p. Pass it
8086 on to c_expand_body.
8087 * c-tree.h (finish_function): Update decl.
8088 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8090 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
8092 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8094 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
8096 * rtlanal.c: Include flags.h
8097 (may_trap_p): Do not mark FP operations if trapping
8098 if !flag_trapping_math
8099 * Makefile.in (rtlanal.o): Add dependency on flag.h
8100 * ifcvt.c (noce_operand_ok): Avoid the lameness.
8102 2002-03-27 Zack Weinberg <zack@codesourcery.com>
8104 * mips.md: Use dconst1, not 1.0, as first argument of
8105 REAL_VALUE_LDEXP. Don't use union real_extract.
8107 2002-03-28 Alan Modra <amodra@bigpond.net.au>
8109 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8110 rather than $target. Heed program_prefix and
8111 program_transform_name. Search for gas in cross-compiler case too.
8112 "test -x" rather than "test -f".
8113 (gcc_cv_ld): Likewise.
8114 (gcc_cv_nm): Heed program_prefix and program_transform_name.
8115 (gcc_cv_objdump): Likewise.
8116 * configure: Regenerate.
8118 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8120 * Makefile.in (attribs.o): Update.
8121 * attribs.c: Include langhooks.h.
8122 (decl_attributes): Use langhook.
8123 * c-decl.c (insert_default_attributes): Rename.
8124 * c-tree.h (c_insert_default_attributes): New.
8125 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8126 (LANG_HOOKS_INITIALIZER): Update.
8127 * langhooks.h (struct lang_hooks): New hook.
8128 * tree.h (insert_default_attributes): Remove.
8130 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8132 2002-03-27 Andreas Schwab <schwab@suse.de>
8134 * config/i386/i386.c (classify_argument): Also check for
8137 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8139 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8142 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
8144 * i960.md (ret): Set PC.
8145 (nonlocal_goto): Fix expander.
8146 * builtins.c (epxand_builin_longjmp): Check that we've emitted
8149 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
8151 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8154 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8156 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8157 assigning to BLOCK_FOR_INSN directly.
8159 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
8161 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8163 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8165 * c-common.c (c_expand_expr): Fix prototype.
8166 * c-common.h (c_expand_expr): Always declare, update.
8167 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8168 * c-objc-common.c (c_objc_common_init): No global hook.
8169 * expr.c (expand_expr): Use langhook.
8170 * expr.h (enum expand_modifier): Conditionally declare.
8171 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8172 (LANG_HOOKS_INITIALIZER): Update.
8173 * langhooks.c (lhd_expand_expr): New.
8174 * langhooks.h (struct lang_hooks): New hook.
8175 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8176 (lang_independent_init): Don't default hook.
8178 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8180 2002-03-27 Richard Henderson <rth@redhat.com>
8183 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8184 TARGET_CONST_GP. Simplify conditions.
8186 2002-03-27 Richard Henderson <rth@redhat.com>
8188 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8189 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8190 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8192 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
8194 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8195 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8196 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8197 Remove unnecessary masks.
8198 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8199 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8200 -mwindows, -mdll switches and their negations.
8202 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8204 * gcc-common.c (lang_mark_false_label_stack): Remove.
8205 * ggc.h (lang_mark_false_label_stack): Similarly.
8207 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
8209 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8211 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8212 or __rtems_ is defined.
8214 2002-03-26 Richard Henderson <rth@redhat.com>
8216 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8217 if a non-trivial load was emitted.
8218 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
8219 in high+extra+low case.
8221 2002-03-26 Richard Henderson <rth@redhat.com>
8223 * config.gcc (sparc*-solaris): Use float_format=sparc.
8225 2002-03-26 Richard Henderson <rth@redhat.com>
8227 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8228 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8229 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8230 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8231 (WINT_TYPE_SIZE): Fix at 32.
8233 2002-03-26 Richard Henderson <rth@redhat.com>
8235 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8236 until after eh landing pad generation.
8237 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8238 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8240 2002-03-26 Richard Henderson <rth@redhat.com>
8242 * expr.h (ADD_PARM_SIZE): One more convert for INC.
8244 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
8246 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
8247 and warning switches.
8248 (cc1_options): Likewise.
8250 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
8252 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8253 Restore more of the signal context. Set no_reg_stack_frame.
8254 * config/ia64/unwind-ia64.c (unw_state_record):
8255 Add no_reg_stack_frame, comments.
8256 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8257 (uw_update_context): Adjust bsp when unwinding from leaf,
8258 but not signal frame.
8260 2002-03-26 David Edelsohn <edelsohn@gnu.org>
8262 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8264 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8266 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8268 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8271 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8272 "Add a pool_range attribute", which was lost during the ARM/Thumb
8275 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8277 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8278 a register into the MAC16 accumulator.
8280 2002-03-26 Andrew Cagney <ac131313@redhat.com>
8282 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8283 (Warning Options): Document -Wswitch-enum.
8284 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
8286 (warn_switch_enum): Define variables.
8287 * flags.h (warn_switch_enum): Declare variables.
8288 * stmt.c (expand_end_case_type): When warn_switch_enum /
8289 -Wswitch-enum, perform switch checks.
8292 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8294 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8295 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8296 (reload_muladdsi_compare0_scratch): Delete.
8298 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8300 * doc/install.texi (*-*-freebsd*): Update.
8302 2002-03-26 Richard Henderson <rth@redhat.com>
8304 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8305 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8307 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8308 types from the normal argument frame.
8310 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8311 variable sized objects by reference.
8312 (sparc_va_arg): Receive them by reference too.
8314 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8316 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8317 code to not restoring global registers.
8319 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8321 * Makefile.in (ggc-common.o): Update.
8322 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8323 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8324 * c-tree.h (c_mark_tree): New.
8325 * ggc-common.c: Include langhooks.h.
8326 (gcc_mark_trees): Use new langhook.
8327 * ggc-callbacks.c: Delete file.
8328 * ggc.h (lang_mark_tree): Remove.
8329 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8330 (LANG_HOOKS_INITIALIZER): Update.
8331 * langhooks.h (struct lang_hooks): New hook.
8333 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8335 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8337 * doc/cpp.texi: Exclude entire Top node from printed manual.
8338 Move option index after directive index. Insert page breaks
8339 before GFDL and concept index. Index environment variables
8340 with command line options.
8341 * doc/cppenv.texi: Use @vtable for environment variable list.
8342 Add paragraph explaining semantics of empty elements in path
8343 variables. Exclude a cross-reference to Fishkill from the
8344 manpage. Remove an unnecessary cross-reference of the entry
8345 right above the referer. Don't use @anchor in text that goes
8347 * doc/cppopts.texi: Cross-reference the environment variables
8348 section, not the specific environment variable, for consistency.
8350 2002-03-25 Richard Henderson <rth@redhat.com>
8352 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8353 anywhere in the block. Don't refer to insns that have been
8354 removed from the chain. Iterate backward through the new insns.
8355 Don't refer to edges that have been removed.
8357 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8359 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8360 test for overflow of constant.
8362 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8365 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8366 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8367 these patterns on arm_archv4.
8369 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
8371 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8374 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8376 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
8377 float_handled, float_handler, float_signal, set_float_handler,
8378 and do_float_handler. Set handler for SIGFPE to crash_signal.
8379 * toplev.h: Don't prototype do_float_handler.
8381 * c-lex.c: Fold parse_float into lex_number. Make warning
8382 about portability of hex float constants more informative, and
8383 don't issue it on top of a syntax error.
8384 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8386 * real.h: Define REAL_VALUE_ABS here...
8387 * simplify-rtx.c: ... not here. Fold check_fold_consts,
8388 simplify_unary_real, simplify_binary_real, and
8389 simplify_binary_is2orm1 into their callers.
8390 * tree.c: Fold build_real_from_int_cst_1 into caller.
8392 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8394 * tsystem.h: Include float.h here...
8395 * libgcc2.c: ... not here.
8397 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
8399 Fixes for: PR bootstrap/3591, target/5676
8400 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8401 defined. Do not disable exceptions or rtti.
8402 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8403 mcore.h. Disable exceptions and rtti, since they are not
8406 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8408 * c-decl.c (maybe_build_cleanup): Remove.
8409 * expr.c (expand_expr): Use langhook.
8410 * langhooks-def.h (lhd_return_null_tree,
8411 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8412 (LANGHOOKS_INITIALIZER): Update.
8413 * langhooks.c (lhd_return_null_tree): New.
8414 * langhooks.h (struct lang_hooks): New hook.
8415 * tree-inline.c (initialize_inlined_parameters): Use langhook.
8416 * tree.h (maybe_build_cleanup): Remove.
8418 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8420 * regrename.c (build_def_use): Move recog_memoized
8421 before extract_insn.
8423 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8426 * expr.c (emit_group_store): Handle storing into CONCAT.
8428 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8430 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8431 corresponding MATCH_DUP.
8433 2002-03-24 Richard Henderson <rth@redhat.com>
8435 * unroll.c (unroll_loop): Zero label_map.
8437 * gcse.c: Include except.h.
8438 * Makefile.in (gcse.o): Update.
8440 2002-03-24 Richard Henderson <rth@redhat.com>
8442 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8443 Do resolve_unique_section before shared data clause.
8445 2002-03-24 Richard Henderson <rth@redhat.com>
8447 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8449 2002-03-24 Richard Henderson <rth@redhat.com>
8451 * recog.c (peephole2_optimize): Split blocks when EH insns are
8452 generated in the middle of a block. Do global life update if
8455 2002-03-24 Richard Henderson <rth@redhat.com>
8457 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8459 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8462 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8463 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8464 (init_dependency_output): Don't make no_output decision here.
8466 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8468 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8469 warn_switch. Update description.
8470 (expand_end_case_type): Call check_for_full_enumeration_handling
8473 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8475 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8476 (m68hc11_split_move): Call it to see if the source and destination
8477 operands use the same direction auto inc/dec mode, otherwise make the
8478 source an offsetable memory operand and generate an add.
8480 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8482 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8483 register for operand 2.
8484 ("*subsi3_zero_extendqi"): Likewise.
8485 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8486 bits so that it is compatible with a pop.
8487 ("*andhi3_gen"): Likewise.
8488 ("xorhi3"): Likewise.
8490 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8492 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8494 (cpp_post_options): ... not here.
8496 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8497 Aldy Hernandez <aldyh@redhat.com>
8499 Removal of separate preprocessor cpp0.
8501 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8502 cpp0, install-common): Update.
8503 * c-common.c (flag_preprocess_only): New.
8504 (c_common_init): Preprocess for -E.
8505 * c-common.h (flag_preprocess_only): New.
8506 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8507 * c-objc-common.c (c_init_decl_processing): Exit quickly
8508 for NULL return from c_common_init.
8509 * cpplib.h (cpp_preprocess_file): New.
8510 * cppmain.c (main, general_init, pfile, progname): Remove.
8511 (do_preprocessing): Rename cpp_preprocess_file, don't call
8512 cpp_finish. Don't close stdout here.
8513 (setup_callbacks): Update prototype.
8514 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8516 * tradcpp.c (main): Ignore -quiet.
8518 * lang-specs.h (default_compilers): Preprocess with cc1obj.
8520 2002-03-24 Richard Henderson <rth@redhat.com>
8522 PR optimization/5742
8523 * machmode.def: Add inner mode field to complex modes.
8524 * config/mips/mips.c (mips_function_value): Always define. Add
8525 new argument to handle libcalls.
8526 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8527 (FUNCTION_VALUE): Likewise.
8528 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8529 * config/mips/mips-protos.h: Update.
8531 2002-03-23 Richard Henderson <rth@redhat.com>
8533 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8534 * config/sparc/sparc-protos.h: Update.
8535 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8537 2002-03-23 Richard Henderson <rth@redhat.com>
8539 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8540 _start or _init begins the text segment.
8542 2002-03-23 David Edelsohn <edelsohn@gnu.org>
8544 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
8545 not HOST_WIDEST_INT.
8546 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8548 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
8551 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8552 operand argument to output_return_instruction.
8553 * arm.c (arm_print_operand, case 'd'): If the operand is
8554 const_true_rtx then just return.
8555 (arm_print_operand, case 'D'): If the operand is const_true_rtx
8558 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8560 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8561 (Warning Options): Document -Wswitch-default.
8562 * toplev.c (W_options): Add -Wswitch-default. Update comment on
8564 (warn_switch_default): Define variable.
8565 (warn_switch): Update comment.
8566 * flags.h (warn_switch_default): Declare variable.
8567 (warn_switch): Update comment.
8568 * stmt.c (expand_end_case): Check for and, when
8569 warn_switch_no_default, warn of a missing default case.
8571 2002-03-23 Alan Modra <amodra@bigpond.net.au>
8573 * real.h (N): Special case 128 bit doubles.
8575 * combine.c (simplify_comparison): When widening modes, ignore
8576 sign extension on CONST_INTs.
8578 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8580 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8581 passed to adjust_address. Fix comment formatting.
8584 2002-03-22 Zack Weinberg <zack@codesourcery.com>
8586 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8587 Always make REAL_VALUE_TYPE a struct containing an array of
8588 HOST_WIDE_INT, not a double. Tidy up the code deciding how
8589 big it is. Don't declare or use union real_extract.
8591 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8592 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8593 (print_operand), config/arm/arm.c (output_move_double),
8594 config/arm/arm.md (consttable_4, consttable_8),
8595 config/romp/romp.c (output_fpops), config/s390/s390.h
8596 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8597 (xtensa_output_literal): Don't use union real_extract.
8599 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8600 (sfmode_constant_to_ulong), config/ns32k/merlin.h
8601 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8602 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8603 (PRINT_OPERAND): Don't use local version of union
8606 * config/convex/convex.c (check_float_value), config/vax/vax.c
8607 (vax_float_literal), config/m88k/m88k.md (divdf3),
8608 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8609 config/pdp11/pdp11.c (output_move_quad): Don't do host
8610 arithmetic on target floating point quantities.
8612 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8613 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8615 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8616 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8618 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8619 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8621 * print-rtl.c (print_rtx): Disable code which needs
8622 floating-point emulator.
8623 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8624 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8625 depending on HOST_FLOAT_FORMAT to be defined properly.
8627 * config/1750a/1750a.c (get_double, float_label): Delete.
8628 (print_operand): Delete huge commented-out chunk. Use
8629 REAL_VALUE_TO_DECIMAL.
8630 * config/1750a/1750a-protos.h: Delete prototypes of deleted
8632 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8634 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8635 Use REAL_VALUE_TO_DECIMAL as ELF version does.
8636 * config/m88k/m88k.c (real_power_of_2_operand,
8637 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8638 real_extract out of the union; run the input through
8639 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8640 from that into the union.
8641 * config/pdp11/pdp11.c (output_move_double): Rearrange
8642 parentheses to make automatic indenter happy.
8644 * doc/tm.texi (Cross-compilation): Rename node to "Floating
8645 Point" and rewrite to describe current situation. Also adjust
8646 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8648 * doc/rtl.texi: Adjust cross reference.
8650 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8652 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8653 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8654 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8655 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8656 prevent use of sp as a reload register.
8657 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8658 non_acc_reg_operand.
8659 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8660 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8661 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8662 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8664 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8666 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8667 * cpplex.c (unterminated): Delete.
8668 (parse_string): No string literal may extend over multiple
8669 lines. Suppress the error when preprocessing assembly.
8670 * cppmain.c (scan_translation_unit): Strings are single-line.
8672 * doc/cpp.texi: Update to match.
8674 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8676 PR optimization/5854
8677 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8679 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8680 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8681 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8682 const0 if scratch register was not allocated.
8683 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8684 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8686 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8687 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8688 with GEN_INT (...) everywhere. Remove constraints in define_split
8690 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8691 require scratch register for setting 0 into regs/non-pushable memory.
8693 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8695 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8696 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8698 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
8700 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
8701 * cppinit.c (cpp_create_reader): On by default.
8702 (cpp_handle_option): Handle -W[no-]endif-labels.
8703 (cpp_post_options): Also enable if -pedantic.
8704 * cpplib.c (do_else): Use it.
8705 (do_endif): Likewise.
8706 * doc/cppopts.texi: Document new option.
8707 * doc/invoke.texi: Document new option.
8709 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
8711 * config/i386/i386.c, config/i386/i386.md: Change all occurences
8712 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8714 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8716 * flow.c (calculate_global_regs_live): Clear aux fields of
8719 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8721 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8722 REG or MEM subregs, pass rtx * instead of rtx to it.
8723 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8724 rtx * instead of rtx to alter_subreg.
8725 * config/m32r/m32r.c (gen_split_move_double): Likewise.
8726 * config/pj/pj.c (pj_output_rval): Likewise.
8728 2002-03-22 Richard Henderson <rth@redhat.com>
8731 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8732 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8733 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8734 (ia64_expand_prologue): Look at int_regs, not words, for number
8735 of incomming int regs.
8737 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
8739 * expr.c (expand_expr): A RESULT_DECL is part of a call.
8741 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
8743 * toplev.c (flag_loop_optimize, flag_crossjumping):
8744 New static variables.
8745 (rest_of_compilation): Conditionalize crossjumping and
8747 (parse_options_and_default_flags): Default loop_optimize and
8749 (lang_independent_options): Add -fcrossjumping and -floop-optimize
8750 * invoke.texi (crossjumping, loop-optimize): Document.
8752 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8754 * real.c (eiisneg): Move outside #ifdef NANS.
8756 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
8758 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8759 frequencies match; avoid match on different loop depths.
8760 (try_crossjump_to_bb): Kill tests that no longer brings time
8762 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8764 (split_edge): Likewise.
8766 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8769 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8770 * cfgrtl.c: Include insn-config.h
8771 (split_block) Dirtify block in presence of conditional execution
8773 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8775 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8776 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8777 (function_arg): Constify CUMULATIVE_ARGS.
8778 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8779 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8780 (UNITS_PER_DOUBLE): New macro.
8781 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
8782 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
8783 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
8784 fp_regs and stack_words.
8785 (EABI_FLOAT_VARARGS_P): New macro.
8786 * config/mips/mips.c (struct mips_arg_info): New.
8787 (mips_arg_info): New function.
8788 (function_arg_advance): Use it. Add adjustment instructions here
8789 rather than in function_arg.
8790 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
8791 for VOIDmode at the beginning of the function.
8792 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
8793 (function_arg_pass_by_reference): Likewise.
8794 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8795 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8796 (mips_va_start): Likewise. Use the new stack_words field of
8797 CUMULATIVE_ARGS to set up overflow area. Reformat.
8798 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
8799 doubles and other types, aligning the overflow pointer for non-doubles
8800 too. Remove some code duplication. Replace hard-coded constants.
8802 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8804 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8805 (CLASS_UNITS): Undefine.
8806 (CLASS_MAX_NREGS): Use FP_INC.
8807 * config/mips/mips.c (compute_frame_size): Likewise.
8808 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8810 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8812 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8813 prototype, and handle lexing numbers and identifiers.
8814 (parse_identifier): Update to new form of parse_slow.
8815 (parse_number): Fast path only, use parse_slow otherwise.
8816 (_cpp_lex_direct): Update calls to parse_number.
8818 2002-03-21 DJ Delorie <dj@redhat.com>
8820 * bb-reorder.c (make_reorder_chain_1): Protect against
8821 when redundant edges are omitted.
8822 * predict.c (dump_prediction): Likewise.
8824 2002-03-21 Richard Henderson <rth@redhat.com>
8827 * fixinc/inclhack.def (solaris_stdio_tag): New.
8828 * fixinc/fixincl.x: Regenerate.
8830 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8833 * c-typeck.c (process_init_element): Flag non-static
8834 initialization of a flexible array member as illegal.
8836 2002-03-22 Alan Modra <amodra@bigpond.net.au>
8838 * config/rs6000/t-linux64: New.
8839 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8840 t-ppccomm. Use t-rs6000 and t-linux64.
8841 (powerpc64-*-gnu* <tmake_file>): Likewise.
8842 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8843 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8844 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8846 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
8848 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8849 flag_really_no_inline instead of optimize == 0.
8851 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8853 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8855 * flags.h (flag_really_no_inline): New.
8857 * c-common.c (c_common_post_options): Initialize
8858 flag_really_no_inline.
8860 * toplev.c (flag_really_no_inline): New.
8862 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8864 * config/avr/avr.md (length): Fix length computation for
8865 conditional branches.
8867 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
8869 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8870 sdbout.o, profile.o): Update.
8871 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8873 * c-common.h (gettags): Move here from tree.h.
8874 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8875 insert_block, getdecls, kept_level_p, global_bindings_p): New.
8876 * dbxout.c (dbxout_init): Use getdecls langhook.
8877 * expr.c (expand_expr): Use insert_block langhook.
8878 * fold-const.c: Include langhooks.h.
8879 (fold_range_test, fold_binary_op_with_conditional_arg,
8880 fold): Use global_bindings_p langhook.
8881 * integrate.c (expand_inline_function): Use insert_block langhook.
8882 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8883 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8884 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8885 LANG_HOOKS_GETDECLS): New.
8886 (LANG_HOOKS_INITIALIZER): Update.
8887 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8889 * langhooks.h (struct lang_hooks_for_decls): New.
8890 (struct lang_hooks): Update.
8891 * profile.c: Include langhooks.h.
8892 (output_func_start_profiler): Use new langhooks.
8893 * sdbout.c: Include langhooks.h.
8894 (sdbout_init, sdbout_finish): Use getdecls langhook.
8895 * stmt.c: Include langhooks.h.
8896 (expand_fixup, fixup_gotos): Use new langhooks.
8897 * stor-layout.c: Include langhooks.h.
8898 (variable_size): Use global_bindings_p langhook.
8899 * toplev.c (compile_file): Use getdecls langhook.
8900 * tree-inline.c (remap_block): Use insert_block langhook.
8901 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8902 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8904 2002-03-21 Richard Henderson <rth@redhat.com>
8906 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8907 constants in .data when -fpic.
8909 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8911 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8914 2002-03-21 Tom Tromey <tromey@redhat.com>
8916 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
8918 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8920 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8922 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8924 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8925 Richard Henderson <rth@redhat.com>
8928 * c-common.c (c_expand_expr): Preserve result of a statement
8929 expression if needed.
8931 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8934 * genrecog.c (maybe_both_true_mode): Remove.
8935 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
8936 * machmode.def (Pmode): Likewise.
8938 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
8940 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
8941 (nonlocal_mentioned_p_1): New function.
8942 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
8943 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
8944 (mark_constant_function): Recognize pure functions.
8945 * rtl.h (global_reg_mentioned_p): New prototype.
8946 * rtlanal.c (global_reg_mentioned_p,
8947 global_reg_mentioned_p_1): New function.
8949 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8951 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
8953 * fixinc/fixincl.x: Regenerate.
8955 2002-03-20 Jason Merrill <jason@redhat.com>
8957 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
8959 2002-03-20 Michael Meissner <meissner@redhat.com>
8961 * doc/invoke.texi (Optimize Options): Document that -O2 sets
8964 2002-03-20 Bob Wilson <bob.wilson@acm.org>
8966 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
8967 ".literal_position" directive before the constant pool.
8969 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8971 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
8972 Add Craig Rodrigues.
8973 Add Brad Lucier to testers.
8975 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8978 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
8980 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
8981 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
8982 instead of insn_extract.
8984 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8987 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
8989 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
8990 stmt if some case has been output.
8992 2002-03-20 Jakub Jelinek <jakub@redhat.com>
8995 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
8996 movsfcc_1, movdfcc_1): Add %O2.
8997 * config/i386/i386.c (print_operand): Handle %ON.
8998 Print . before float condition codes in Sun as cmov syntax.
8999 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9000 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9003 2002-03-20 Philip Blundell <pb@nexus.co.uk>
9005 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9006 return instruction if PC was popped.
9008 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9010 * config/xtensa/xtensa.md: Remove unused type attributes.
9011 (adddi_carry, subddi_carry): Change type attribute to "multi".
9013 2002-03-19 Dale Johannesen <dalej@apple.com>
9015 PR optimization/5999, middle-end/5731
9016 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9017 multiplications by reciprocals.
9019 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
9021 * Makefile.in: Update.
9022 * c-common.c: Include langhooks.h.
9023 (inline_forbidden_p): Use new hook.
9024 * diagnostic.c: Include langhooks.h.
9025 (format_with_decl, announce_function,
9026 default_print_error_function): Use new hook.
9027 * dwarf2out.c (dwarf2_name): Use new hook.
9028 * function.c: Include langhooks.h.
9029 (init_function_start): Use new hook.
9030 * langhooks-def.h (lhd_decl_printable_name): New.
9031 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9032 (LANGHOOKS_INITIALIZER): Update.
9033 * langhooks.c (lhd_decl_printable_name): New.
9034 * langhooks.h (struct lang_hooks): New hook.
9035 * toplev.c (decl_name, decl_printable_name): Remove.
9036 (open_dump_file): Use new hook.
9037 (process_options): Remove old hook.
9038 * tree.h (decl_printable_name): Remove.
9040 * objc-act.c (objc_init): Remove old hook.
9041 (objc_printable_name): Export.
9042 * objc-act.h (objc_printable_name): New.
9043 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9045 2002-03-19 Jim Blandy <jimb@redhat.com>
9047 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9048 the start_source_file debug hook, not the current line number.
9050 2002-03-19 Richard Henderson <rth@redhat.com>
9052 * flow.c (EH_USES): Provide default.
9053 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9054 * doc/tm.texi (EH_USES): New.
9056 * config/ia64/ia64.c (ia64_eh_uses): New.
9057 * config/ia64/ia64-protos.h: Update.
9058 * config/ia64/ia64.h (EH_USES): New.
9060 2002-03-19 Richard Henderson <rth@redhat.com>
9062 * varasm.c (output_constant_def): Fix stupid typo.
9064 2002-03-19 Richard Henderson <rth@redhat.com>
9067 * except.c (current_function_has_exception_handlers): New.
9068 * except.h: Declare it.
9069 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9070 Combine tests that disable all sibcalls for the function.
9072 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
9074 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9077 2002-03-19 Richard Henderson <rth@redhat.com>
9080 * config/ia64/ia64.c: Revert 2002-03-01 patch.
9081 * config/ia64/ia64.h (INIT_EXPANDERS): New.
9083 2002-03-19 Jim Blandy <jimb@redhat.com>
9085 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9086 name, even if the replacement list contains no tokens, as required
9089 2002-03-19 Jason Merrill <jason@redhat.com>
9091 * varasm.c (globalize_decl): Get the name from the RTL, not
9092 DECL_ASSEMBLER_NAME.
9094 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9096 2002-03-19 Bob Wilson <bob.wilson@acm.org>
9098 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9099 subdi_carry): Define.
9101 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9103 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9104 about -fpic/-fPIC if extra_warnings set.
9106 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9108 * expr.c (expand_expr): Sign-extend CONST_INT generated from
9109 TREE_STRING_POINTER.
9110 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9112 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9114 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9115 in favor of SP if FRAME_POINTER_REQUIRED is false.
9117 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
9119 * emit-rtl.c (gen_int_mode): New function.
9120 * rtl.h: Prototype for it.
9121 * combine.c (make_extraction, simplify_comparison), expmed.c
9122 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9123 (convert_modes, store_field), optabs.c (expand_fix),
9124 simplify-rtx.c (neg_const_int, simplify_unary_real),
9126 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9127 Use it instead of GEN_INT (trunc_int_for_mode (...)).
9129 2002-03-19 Jakub Jelinek <jakub@redhat.com>
9132 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9133 convert_parm_for_inlining.
9134 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9136 * langhooks-def.h: Likewise.
9137 * objc/objc-lang.c: Likewise.
9138 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9140 * tree-inline.c (initialize_inlined_parameters):
9141 Call convert_parm_for_inlining lang hook if needed.
9142 * c-typeck.c (c_convert_parm_for_inlining): New function.
9143 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9145 2002-03-18 Mark Mitchell <mark@codesourcery.com>
9147 * calls.c (precompute_arguments): Do not assume that temporaries
9148 can be destroyed after expanding the argument.
9149 (expand_call): Likewise.
9151 2002-03-15 Eric Christopher <echristo@redhat.com>
9153 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9154 Fix register preference on last change.
9155 * config/mips/mips.c (mips_return_in_memory): New function.
9156 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9157 * config/mips/mips-protos.h: Declare.
9158 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9159 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9161 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
9163 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9165 (anddi3, iorsi3): Likewise.
9167 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9168 use %gprel for symbols that are going to be placed in linkonce
9171 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9172 RETURN_ADDRESS_POINTER_REGNUM to $ra.
9173 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9174 not needed. Disregard leaf_function_p().
9175 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9176 mips16 frame pointer.
9177 * config/mips/mips.md (store ra): Only to small SP offsets.
9178 2001-08-22 Graham Stott <grahams@redhat.com>
9179 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9180 return a REG rtx for the return address register.
9182 2002-03-18 Bob Wilson <bob.wilson@acm.org>
9184 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9185 constant-pool addresses as "mode-dependent".
9186 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9188 2002-03-18 Jakub Jelinek <jakub@redhat.com>
9191 * expr.c (emit_group_load): Use extract_bit_field if
9192 needed for CONCAT arguments.
9194 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
9197 * arm.md (tablejump): Make this a define_expand. For PIC add the
9198 offset to the base of the table.
9199 (thumb_tablejump): Matcher for Thumb tablejump insn.
9200 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9201 as the difference of two labels.
9202 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9203 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9205 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9206 * arm.c (get_jump_table_size): If the table is not in the text
9207 section, return zero.
9209 2002-03-18 Bernd Schmidt <bernds@redhat.com>
9211 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9213 (arm_reload_out_hi): Use gen_lowpart instead of
9214 gen_rtx_SUBREG to access QImode components.
9215 * config/arm/arm.md: Disable zero_extend split for QImode
9216 subregs in BIG_ENDIAN mode.
9217 (storehi_bigend): Match use of least significant byte.
9218 (storeinthi): Remove extraneous SUBREG.
9219 Add missing construction of operands[2].
9220 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9221 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9222 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9224 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
9226 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9229 2002-03-17 Richard Henderson <rth@redhat.com>
9231 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9234 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9236 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9237 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9239 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9241 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9243 * predict.c (estimate_bb_frequencies): Delete unused variables.
9245 2002-03-17 Richard Henderson <rth@redhat.com>
9247 * config/ia64/ia64.c (ia64_attribute_table): Move before
9248 targetm definition. Make static.
9250 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
9252 * c-common.h (yyparse, c_common_parse_file): New.
9253 * c-lang.c: Include c-common.h.
9254 (LANG_HOOKS_PARSE_FILE): Redefine.
9255 * c-lex.c: Include c-common.h.
9256 (yyparse): Rename c_common_parse_file. Call yyparse.
9257 * c-parse.in (yyparse): Remove macro.
9258 * c-tree.h (yyparse_1): Remove.
9259 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9260 (LANG_HOOKS_INITIALIZER): Update.
9261 * langhooks.h (struct lang_hoooks): New hook parse_file.
9262 * toplev.c (compile_file): Use parse_file hook.
9263 * tree.h (yyparse): Remove.
9264 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9266 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9268 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9269 float_truncate, not fix.
9270 ("*truncdfsf2_real"): Ditto.
9271 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9273 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9275 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
9277 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9278 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
9279 where appropriate. Make the second reference to
9280 leaf_function_p a function call, as intended. Reindented.
9282 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9283 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9285 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9286 add register to non-constant into sp.
9288 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9289 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9290 (mips16_gp_pseudo_rtx): Lose.
9291 (INIT_EXPANDERS): Deleted.
9292 * config/mips/mips.c (mips_init_machine_status): New.
9293 (mips_free_machine_status): New.
9294 (mips_mark_machine_status): New.
9295 (override_options): Set them.
9296 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9297 (struct machine_function): ... new. Replaced all references.
9298 (mips_add_gc_roots): Don't mark them.
9299 (embedded_pic_fnaddr_reg): New, extracted from...
9300 (embedded_pic_offset): ... here.
9301 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9304 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9306 * cppinit.c: Revert -MD removal.
9308 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9310 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9311 soft registers by default for 68HC12.
9312 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9313 when compiling with -fomit-frame-pointer.
9314 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9315 (expand_epilogue): Likewise.
9316 (m68hc11_gen_rotate): Use exg when rotating by 8.
9318 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9320 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9321 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9322 (splits): Remove unused add splits.
9323 ("*addhi3_68hc12"): Tune constraints.
9324 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9325 constant fits in 8-bits and D is dead use abx/aby instructions.
9326 ("*addhi3"): Remove extern declaration of ix_reg.
9327 ("*subsi3"): Optimize and provide new split.
9328 ("subhi3"): Cleanup.
9329 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9330 (arith splits): For 68hc12 save the address register on the stack
9331 and do the arithmetic operation with a pop.
9333 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9335 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9336 allocating QImode in address registers.
9337 ("*movqi_m68hc11"): Likewise.
9339 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9341 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9343 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9345 * cppinit.c (print_help): Display -MD and -MMD.
9346 Don't display usage string. Update assertion syntax and
9348 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9349 (cpp_handle_option): Update.
9351 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9353 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9354 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9355 and define it so that regardless of target CPU size,
9356 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9357 of "int" rather than "long."
9359 2002-03-15 Richard Henderson <rth@redhat.com>
9361 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9364 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9366 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9367 ("tstqi" split): Avoid using memory for tstqi on address register.
9368 (splits): Remove constraints.
9369 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9370 ("cmpdf", "cmpsf"): Remove since not used.
9371 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9372 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9374 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9376 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9377 ("neghi2"): Tighten constraints.
9378 ("one_cmplsi2"): Optimize and simplify split.
9379 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9381 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9383 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9384 and split of AND operation to clear the upper bits.
9385 ("*logicalsi3_zextqi"): Likewise.
9386 ("*logicallhi3_zexthi_ashift8"): Likewise.
9387 ("*logicalsi3_silshr16"): Likewise.
9388 ("logicalsi3_silshl16"): Likewise.
9389 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9391 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9393 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9394 (m68hc11_indirect_p): New function.
9395 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9396 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9398 (asm_print_register): Likewise.
9399 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9400 (m68hc11_indirect_p): Declare.
9401 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9402 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9403 (TARGET_SWITCHES): New option -mrelax.
9404 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9406 ("iorsi3", "xorsi3"): Likewise.
9407 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9408 ("*andhi3_mem"): New to handle destination in memory with bclr
9409 and a scratch register.
9410 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9411 ("*andhi3_const"): New when operand2 is constant.
9412 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9413 ("*andhi3_gen"): Cleanup of the old "andhi3".
9414 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9415 ("xorqi3"): Update constraints.
9417 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9419 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9420 for reg_equiv_memory_loc when the operand is a register that does
9421 not get a hard register (stack location).
9422 (tst_operand): After reload, accept all memory operand.
9423 (symbolic_memory_operand): Fix detection of symbolic references.
9424 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9425 accept symbols and any constant.
9427 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9429 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9430 note on the insn that sets the soft frame register.
9431 (must_parenthesize): ix and iy are also reserved names.
9432 (print_operand_address): One more place where parenthesis are required
9433 to avoid confusion with register names.
9434 (m68hc11_gen_movhi): Allow push of stack pointer.
9435 (m68hc11_check_z_replacement): Fix handling of parallel with a
9437 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9438 the replacement register is.
9439 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9440 and D8_REGS classes.
9441 (MODES_TIEABLE_P): All modes are tieable except QImode.
9443 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9445 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9446 (___subdi3): Likewise.
9447 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9448 (__map_data_section): Optimize 68hc11 case.
9450 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9452 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9453 than a shift to avoid adding a register with itself.
9454 (m68hc11_memory_move_cost): Take into account NO_REGS.
9455 (m68hc11_register_move_cost): Update and use memory move cost
9457 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9458 it gives more opportunities to cse to optimize.
9459 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9460 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9462 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9464 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9465 * c-common.def (CLEANUP_STMT): New tree node.
9466 * c-common.h (CLEANUP_DECL): New macro.
9467 (CLEANUP_EXPR): Likewise.
9468 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9469 * expr.c (expand_expr): Tidy.
9470 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9471 * tree-inline.c (initialize_inlined_parameters): Clean up
9472 new local variables.
9474 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9477 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9478 before movrXX only, use reg_overlap_mentioned_p.
9479 Only special case NE if just one insn can be generated.
9481 2002-03-15 Jason Merrill <jason@redhat.com>
9483 * varasm.c (assemble_variable): Call resolve_unique_section before
9484 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
9487 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9490 * arm.md (split pattern for thumb shiftable immediates): Add comment
9491 explaining non-obvious test.
9493 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9496 * arm.md (movaddr, movaddr_insn): Delete.
9498 2002-03-15 Jason Merrill <jason@redhat.com>
9500 * toplev.c (wrapup_global_declarations): Clarify variable handling.
9501 -fkeep-static-consts doesn't apply to comdats.
9503 2002-03-14 Richard Henderson <rth@redhat.com>
9505 * c-decl.c: Include c-pragma.h.
9506 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9507 (finish_function): Tidy.
9508 * c-pragma.c: Include c-common.h.
9509 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9510 (handle_pragma_weak): Use them.
9511 (init_pragma): Register pending_weaks.
9512 * c-pragma.h (maybe_apply_pragma_weak): Declare.
9513 * print-tree.c (print_node): Print DECL_WEAK.
9514 * varasm.c (mark_weak_decls): Remove.
9515 (remove_from_pending_weak_list): Remove.
9517 (asm_emit_uninitialised): Call globalize_decl for weak commons.
9518 (weak_decls): Make a tree_list.
9519 (declare_weak): Cons weak_decls directly.
9520 (globalize_decl): Remove weak_decls elements directly.
9521 (weak_finish): Simplify weak_decls walk. Don't weaken unused
9522 symbols. Don't pretend to handle aliases.
9523 (init_varasm_once): Update weak_decls registry.
9524 * Makefile.in: Update dependencies.
9526 2002-03-14 Richard Henderson <rth@redhat.com>
9529 * config/ia64/ia64.c: Include tm_p.h last.
9530 (gen_nop_type): Remove duplicate definition.
9531 (cycle_end_fill_slots): Set sched_data for second L slot.
9532 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9533 (nop_cycles_until): Fix typos.
9535 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9537 PR optimization/5891
9538 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9540 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9542 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9543 descriptors correctly.
9545 2002-03-14 Michael Meissner <meissner@redhat.com>
9547 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9548 100, allowing MAX_UNROLLED_INSNS to be overridden.
9550 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9553 * unroll.c (params.h): Include.
9554 (MAX_UNROLLED_INSNS): Delete, now in params.h.
9556 * doc/invoke.texi (--param max-unroll-insns): Document.
9558 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9560 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9562 * arm.md: Fix warnings about constraints in peepholes and splits.
9564 2002-03-14 Zack Weinberg <zack@codesourcery.com>
9566 * cpphash.h (struct lexer_state): Remove line_extension member.
9567 * cpplib.c (dequote_string, do_linemarker): New functions.
9568 (linemarker_dir): New data object.
9569 (DIRECTIVE_TABLE): No longer need to interpret #line in
9570 preprocessed source. Delete obsolete comment about return
9572 (end_directive, directive_diagnostics, _cpp_handle_directive):
9573 Don't muck with line_extension.
9574 (directive_diagnostics): No need to issue warnings for
9576 (_cpp_handle_directive): Issue warnings for linemarkers here,
9577 when appropriate. Dispatch linemarkers to do_linemarker, not
9579 (do_line): Code to handle linemarkers split out to do_linemarker.
9580 Convert escape sequences in filename argument, both places.
9582 * cppmacro.c (quote_string): Rename cpp_quote_string and
9583 export. All callers changed.
9584 * cpplib.h (cpp_quote_string): Prototype.
9585 * cppmain.c (print_line): Call cpp_quote_string on to_file
9588 * doc/cpp.texi: Document that escapes are now interpreted in
9589 #line and in linemarkers, and that non-printing characters are
9590 converted to octal escapes when linemarkers are generated.
9592 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
9594 * emit-rtl.c (try_split): Use delete_insns.
9595 * recog.c (split_all_insns): Fix terminating condition.
9597 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9598 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9601 * arm.c (arm_output_epilogue): Fix floating-point register save
9602 adjustment when using a frame pointer.
9604 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
9606 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9607 * config/mips/mips.c (compute_frame_size): Retrofit them here.
9608 (save_restore_insns, mips_expand_epilogue): And here.
9609 (build_mips16_call_stub): And here.
9610 (mips_function_value): Use the new macros to decide whether a single
9611 or complex float can be returned in floating-point registers. Return
9612 a parallel rtx in the complex case.
9614 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
9616 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9617 call after liveness analysis.
9619 * recog.c (split_insn): Use delete_insn_and_edges.
9621 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9622 instructions to have branch prediction notes.
9623 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9625 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
9627 * configure.in: Don't pass -Wno-long-long to a ADA compiler
9628 that doesn't support it.
9629 * configure: Regenerate.
9631 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9634 * config/sparc/sparc.md (normal_branch, inverted_branch,
9635 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9636 inverted_fp_branch): Adjust calls to output_cbranch.
9637 Set length attribute.
9638 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9639 output_v9branch. Set length attribute.
9640 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9642 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9643 (output_cbranch): Likewise. Handle far branches.
9644 (output_v9branch): Handle far branches.
9645 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9647 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9648 noov_compare64_op predicates.
9650 2002-03-13 Jason Merrill <jason@redhat.com>
9652 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9653 into the function and constify it.
9654 * gthr-dce.h, gthr-solaris.h: Likewise.
9656 2002-03-13 David Edelsohn <edelsohn@gnu.org>
9658 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9659 * config/rs6000/rs6000.c (rs6000_va_arg): Use
9660 std_expand_builtin_va_arg if not ABI_V4.
9662 2002-03-13 Jason Merrill <jason@redhat.com>
9664 * varasm.c (globalize_decl): New fn.
9665 (assemble_start_function): Use it.
9666 (asm_emit_uninitialized): Use it.
9667 (assemble_alias): Use it.
9668 (assemble_variable): Use it.
9670 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
9672 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9673 2002-03-12 internal visibility change.
9674 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9675 visibility into SYMBOL_REF_FLAG.
9677 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
9679 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9680 VOIDmode operand. Add compile-time optimization for constant results.
9682 2002-03-12 Jason Merrill <jason@redhat.com>
9684 * c-typeck.c (convert_for_assignment): Don't allow conversions
9685 between pointers and references. Only allow lvalues to convert to
9688 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
9690 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9691 before prologue, to avoid scheduling problems.
9693 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9695 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9696 (ELIMINABLE_REGS): Add sfp->sp.
9697 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9699 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9701 PR optimization/5892
9702 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9704 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9706 * loop.c (basic_induction_var): Don't call convert_modes if mode
9707 classes are different.
9709 2002-03-12 Richard Henderson <rth@redhat.com>
9711 PR optimization/5901
9712 * function.c (reposition_prologue_and_epilogue_notes): Position
9713 the markers after/before the last/first insn not deleted.
9715 2002-03-12 Richard Henderson <rth@redhat.com>
9717 PR optimization/5878
9718 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9719 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9720 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9722 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9723 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9724 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9726 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9727 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9728 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9729 also. Don't set it if not flag_pic.
9730 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9731 to be INVALID_REGNUM when not used.
9733 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
9735 * expmed.c (store_bit_field): Reset alias set for memory.
9736 (extract_bit_field): Same.
9738 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9740 * c-common.c (c_tree_code_type, c_tree_code_length,
9741 c_tree_code_name, add_c_tree_codes): Delete.
9742 * c-common.h (add_c_tree_codes): Delete.
9743 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9745 * c-objc-common.c (c_objc_common_init): Don't call
9746 add_c_tree_codes, instead set lang_unsafe_for_reeval.
9747 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9748 objc_tree_code_name, add_objc_tree_codes): Delete.
9749 (objc_init): Don't call add_objc_tree_codes.
9750 * objc/objc-lang.c (tree_code_type, tree_code_length,
9751 tree_code_name): Define.
9752 * toplev.c (lang_independent_init): Don't set
9753 tree_code_length[IDENTIFIER_NODE].
9754 * tree.c (tree_code_type, tree_code_length, tree_code_name):
9755 Delete definitions, moved to language front-ends.
9756 * tree.def (IDENTIFIER_NODE): Hardwire the length.
9757 * tree.h (tree_code_type, tree_code_length, tree_code_name):
9759 (tree_code_length): Change type to unsigned char.
9761 2002-03-12 Richard Henderson <rth@redhat.com>
9763 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9764 internal visibility change.
9766 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9768 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9769 validize_mem() instead of change_address to avoid clobbering
9772 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
9774 * c-lex.h (position_after_whitespace): Remove.
9776 2002-03-12 Jakub Jelinek <jakub@redhat.com>
9778 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9779 (lex_string): Use unsigned char pointers.
9781 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9783 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9784 is not a valid memory_operand.
9786 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9788 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9789 * config/xtensa/lib1funcs.asm: Fix copyright to include
9790 special case for libgcc files.
9791 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9792 (__divsi3): Likewise.
9793 (__umodsi3): Likewise.
9794 (__modsi3): Likewise.
9795 * config/xtensa/lib2funcs.S: Fix copyright to include
9796 special case for libgcc files.
9798 2002-03-12 Tom Rix <trix@redhat.com>
9800 * collect2.c (resolve_lib_name): Move outside of
9801 OBJECT_FORMAT_COFF ifdef.
9802 (ignore_library): Same.
9804 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9806 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9808 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9810 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9811 to function_section before writing out the constant pool.
9813 2002-03-12 David Edelsohn <edelsohn@gnu.org>
9815 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9817 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9819 2002-03-12 Alan Modra <amodra@bigpond.net.au>
9821 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9825 (cmpsi splitter): Likewise.
9826 (modsi3): Fail if <= 0.
9827 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9828 redundant test when HOST_BITS_PER_WIDE_INT != 32.
9829 (reg_or_sub_cint64_operand): Likewise.
9830 (num_insns_constant_wide): Optimize sign extension.
9831 (rs6000_legitimize_address): Likewise.
9833 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9835 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9836 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9838 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9840 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9841 address calculation.
9843 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9845 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9846 scratch register to DImode / TImode.
9847 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9848 register used does not overlap the target.
9850 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9852 * Makefile.in (debug.o): Depend on debug.h.
9853 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9854 * debug.c (do_nothing_debug_hooks): Likewise.
9855 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9856 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9857 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9858 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9859 * dwarfout.c (dwarf_debug_hooks): Likewise.
9860 * integrate.c (output_inline_function): Likewise.
9861 * objc/objc-act.c (synth_module_prologue): Likewise.
9862 * sdbout.c (sdb_debug_hooks): Likewise.
9863 * toplev.c (debug_hooks): Likewise.
9864 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9866 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9868 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9869 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9870 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9871 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9872 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9873 * defaults.h (POINTER_SIZE): Define.
9874 * doc/tm.texi (POINTER_SIZE): Document default.
9876 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9878 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9880 2002-03-11 Richard Henderson <rth@redhat.com>
9882 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9883 if rebuild_label_notes_after_reload.
9885 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
9887 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
9888 emit pic register load if "internal" visibility.
9889 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9890 (cris_expand_builtin_va_arg): Do all computations on trees.
9892 2002-03-11 Richard Henderson <rth@redhat.com>
9894 * rtlanal.c: Include recog.h.
9895 (keep_with_call_p): Fix thinko.
9896 * Makefile.in (rtlanal.o): Update dependencies.
9898 2002-03-11 Chris Meyer <cmeyer@gatan.com>
9900 * genflags.c (gen_insn): Use IS_VSPACE.
9901 * genoutput.c (output_insn_data): Likewise.
9902 (process_template): Likewise.
9904 2002-03-11 Richard Henderson <rth@redhat.com>
9906 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9908 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
9910 * Makefile.in: Update.
9911 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9912 Update documentation.
9913 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9914 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9916 2002-03-11 Zack Weinberg <zack@codesourcery.com>
9918 * Makefile.in: Give texi2pod its input file as a command line
9919 argument, not on stdin.
9921 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
9922 Daniel Berlin <dan@dberlin.org>
9924 C++ alias analysis improvement.
9925 * alias.c (record_component_aliases): Record aliases for base
9928 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
9930 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
9932 2002-03-11 Douglas B Rupp <rupp@gnat.com>
9934 * toplev.c (vms_fopen): Remove, not needed.
9936 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
9938 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
9940 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
9941 for FP, already done later.
9943 * toplev.c (debug_args): Add entry for VMS_DEBUG.
9944 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
9946 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
9948 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
9949 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
9950 LARGEST_EXPONENT_IS_NORMAL for the given mode.
9951 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
9952 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
9953 (ediv, emul, eldexp, esqrt): Likewise.
9954 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
9955 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
9956 (saturate): New function.
9957 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
9958 (make_nan): Use a saturation value instead of a NaN if
9959 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
9960 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
9961 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
9962 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
9963 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
9964 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
9965 !ROUND_TOWARDS_ZERO.
9966 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
9967 (ROUND_TOWARDS_ZERO): Document.
9969 2002-03-11 Andreas Jaeger <aj@suse.de>
9971 * cfg.c (dump_flow_info): Remove unused variable.
9973 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
9975 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
9976 computations on trees.
9978 2002-03-10 Richard Henderson <rth@redhat.com>
9981 * reload.c (copy_replacements_1): New.
9982 (copy_replacements): Use it to recurse through the rtx.
9984 2002-03-10 Richard Henderson <rth@redhat.com>
9986 * loop.c (strength_reduce): Compute number of iterations as
9987 unsigned HOST_WIDE_INT.
9989 2002-03-10 Richard Henderson <rth@redhat.com>
9991 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
9992 to move away from the end of the block.
9994 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
9996 PR preprocessor/5899
9997 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
9999 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10001 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10003 * attribs.c (decl_attributes): Fix signed/unsigned warning.
10005 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
10007 * config/mmix/mmix.c: Improve comments.
10008 (mmix_target_asm_function_prologue): Drop variable
10009 empty_stack_frame. Don't allocate unused slot above fp.
10010 (mmix_target_asm_function_epilogue): Mirror prologue changes.
10011 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10012 brace in first column.
10013 (enum reg_class): Ditto.
10014 (FIRST_PARM_OFFSET): Now 0.
10015 (USER_LABEL_PREFIX): Remove #if 0:d definition.
10017 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10019 * combine.c (make_extraction): Fix error in last change.
10021 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10023 * c4x.c (c4x_fp_reglist): Const-ify.
10024 * cris.c (cris_print_operand): Likewise.
10025 * i386.c (ix86_va_arg): Likewise.
10026 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10027 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10028 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10029 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10030 * mcore.h (regno_reg_class): Likewise.
10031 * mips.c (gen_int_relational): Likewise.
10032 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10033 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10034 * pdp11.c (move_costs): Likewise.
10035 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10036 * s390.c (s390_branch_condition_mnemonic, regclass_map):
10038 * s390.h (regclass_map): Likewise.
10039 * sh.c (shift_amounts): Likewise.
10040 * sh.md (rotlsi3): Likewise.
10042 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10044 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10045 (ne0+5): Use new clobber to generate proper shift pattern.
10046 Patch by Michael Matz <matz@kde.org>.
10048 2002-03-09 Andreas Schwab <schwab@suse.de>
10050 * gcc.c (validate_all_switches): Also handle `%W{...}'.
10052 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10054 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10056 2002-03-09 Jakub Jelinek <jakub@redhat.com>
10059 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10060 even for non-representable constants.
10062 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10064 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10065 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10066 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10067 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10068 (pop_function_context): Compute MAY_SHARE parameter for
10070 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10071 (gen_mem_addressof): Call fixup_var_refs with new parm.
10073 * combine.c (make_extraction): Don't make extension of CONST_INT.
10075 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10077 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10078 in o32 and o64 ABIs.
10079 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10080 but getting fixed-size structs passed in registers regardless of
10081 padding in o32 and o64 ABIs.
10083 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10084 offset before loading address of argument passed by transparent
10087 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10089 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10091 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10093 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10094 marker such that registers after it are saved.
10096 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10098 * sparc.c (arith_4096_operand): Fix error in last change.
10100 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10102 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10103 defaults for MEABI.
10105 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10107 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10110 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10112 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10114 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
10116 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10117 removed; fix return value.
10118 * combine.c (combine_instructions): Dirtify blocks where we failed to
10119 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10120 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10122 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10124 * gcse.c (insert_insn_end_bb): Fix typo in last change.
10126 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
10128 * recog.c (peephole2_optimize): Re-distribute EH edges.
10130 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
10132 * expr.c (expand_expr): Use unsave lang hook.
10133 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10134 (LANG_HOOKS_INITIALIZER): Update.
10135 * langhooks.h (struct lang_hooks): New hook unsave.
10136 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10137 (unsave_expr_1): Remove unused lang_unsave_expr_now.
10138 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
10139 (unsave_expr_now): Remove.
10140 * tree.h (unsave_expr_now, lang_unsave,
10141 lang_unsave_expr_now): Remove.
10144 2002-03-08 Andreas Jaeger <aj@suse.de>
10146 * flow.c (propagate_block_delete_insn): Remove unused variable.
10148 2002-03-08 Kazu Hirata <kazu@hxi.com>
10150 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10151 insn length for memory load/store.
10153 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
10155 * doc/install.texi (--with-libiconv-prefix): Document.
10157 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
10159 * doc/sourcebuild.texi: Fix typo.
10161 2002-03-08 Jakub Jelinek <jakub@redhat.com>
10164 * builtins.c (std_expand_builtin_va_arg): Do all computations on
10167 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10169 * rtl.c (copy_most_rtx): Move from here ...
10170 * emit-rtl.c (copy_most_rtx): ... to here.
10172 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10174 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10175 SUBTARGET_CPP_SIZE_SPEC.
10176 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10178 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10180 2002-03-07 Matt Hiller <hiller@redhat.com>
10182 * gensupport.c (first_dir_md_include): Renamed from include;
10183 change all references.
10184 (last_dir_md_include): Renamed from last_include; change all
10186 (init_md_reader): Unconditionally initialize base_dir whether or
10187 not filename is a relative path.
10189 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
10191 * config/fp-bit.c (_unord_f2): Compile it in even if
10192 US_SOFTWARE_GOFAST is enabled.
10194 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10195 NULL_RTX. Set all HFmode operations as NULL_RTX.
10196 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10197 NULL_RTX, try reversing the comparison and the operands.
10199 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10201 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10202 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10205 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
10207 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10209 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10211 * basic-block.h (fixup_abnormal_edges): Declare.
10212 * reload1.c (fixup_abnormal_edges): New function.
10213 * reg-stack.c (convert_regs): Use it.
10215 * gcse.c (insert_insn_end_bb): Handle trapping insns.
10217 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10219 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
10221 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10222 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10223 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10224 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10225 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10226 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10227 unless x and y could be infinite.
10228 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10229 Check that the common type of both arguments is a real, even for
10230 targets without unordered comparisons. Allow an integer argument
10231 to be compared against a real.
10232 (expand_tree_builtin): Use expand_unordered_cmp.
10233 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10234 * cse.c (fold_rtx): Likewise. Fix indentation.
10235 * fold-const.c (fold_real_zero_addition_p): New.
10236 (fold): Use it, and the new HONOR_... macros.
10237 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10238 * jump.c (reversed_comparison_code_parts): After searching for
10239 the true comparison mode, use HONOR_NANS to decide whether it
10240 can be safely reversed.
10241 (reverse_condition_maybe_unordered): Remove IEEE check.
10242 * simplify-rtx.c (simplify_binary_operation): Use the new macros
10243 to decide which simplifications are valid. Allow the following
10244 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10245 and (a - -b) to (a + b).
10246 (simplify_relational_operation): Use HONOR_NANS.
10247 * doc/tm.texi: Document the MODE_HAS_... macros.
10249 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10251 * combine.c (simplify_comparison): If simplifying a logical shift
10252 right and compare with constant, force the comparison to unsigned.
10254 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
10256 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10258 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10260 (alt_reg_names): Remove % for vrsave.
10262 2002-03-06 Richard Henderson <rth@redhat.com>
10264 PR optimization/5844
10265 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
10266 if used indicates we've already emitted one copy of an operand.
10267 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10268 (gen_split): Supply a non-null used.
10270 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10272 * reload1.c (reload): Unshare all rtl after reload is done.
10274 * simplify-rtx.c (simplify_plus_minus): Do not abort,
10275 but simply fail if the expression is too complex to simplify.
10276 (simplify_gen_binary): Handle simplify_plus_minus failures.
10278 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
10280 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10281 consistently call delete_trivially_dead_insns after CSE and GCSE;
10282 fix DFI_life dumping; do jump threading after liveness; do crossjumping
10283 after liveness2; update comment in last crossjumping.
10284 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10286 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
10288 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10289 after completing fast dead code elimination.
10291 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10294 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
10296 * version.c: Fix misplaced leading blanks on first line.
10298 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10300 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10302 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10304 * cfgcleanup.c (mentions_nonequal_regs): New function.
10305 (thread_jump): Use it.
10306 * toplev.c (rest_of_compilation): Run jump threading after
10309 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10311 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10314 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10316 * predict.c (estimate_bb_frequencies): Do not reload the
10317 frequencies from notes.
10319 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10321 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10322 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10324 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10325 delete_noop_moves): Return indeger.
10326 * flow.c (ndead): New variable.
10327 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10328 BB argument; update callers.
10329 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10330 (life_analysis): Do not call purge_all_dead_edges.
10331 (update_life_info): Return number of deleted insns; print statistics.
10332 (update_life_info_in_dirty_blocks): likewise.
10333 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10334 return number of insns deleted.
10336 * cse.c: Include timevar.h
10337 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10338 iterate until stabilizes; print statistics; return number of killed
10340 * Makefile.in: (cse.o): Add timevar.h dependency
10341 * rtl.h (delete_trivially_dead_insns): New.
10342 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10343 * toplev.c (rest_of_compilation): Update callers.
10345 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10346 (try_optimize_cfg): Do not update liveness.
10347 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10348 removal stabilizes; use delete_trivially_dead_insns.
10350 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10352 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10354 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10355 callbacks when processing assembly language.
10357 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10359 * pa.h (ASM_FILE_END): Define.
10360 * som.h (ASM_FILE_END): Delete.
10362 * pa.c (function_arg): Don't pass floats in general registers in
10363 indirect calls if TARGET_ELF32.
10365 2002-03-05 Richard Henderson <rth@redhat.com>
10367 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10369 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
10371 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10373 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10375 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10376 -r command line. Don't hide any symbols if not building
10379 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
10381 * cfg.c (dump_flow_info): Warn about profile mismatches.
10382 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10383 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10385 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10387 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10388 wide volatile memory by parts.
10390 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10392 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10395 2002-03-05 Richard Henderson <rth@redhat.com>
10397 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10399 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10401 * toplev.c (documented_lang_options): Document more
10402 language-specific options.
10403 * doc/invoke.texi (Warning Options): Correct documentation for
10404 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10405 * c-decl.c (c_decode_option): Use a table to handle warning options.
10407 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
10409 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10410 parameter to mmix_encode_section_info.
10411 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10412 relocatably. Always produce ELF, not mmo if linking relocatably.
10413 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10414 first is non-zero, don't add symbol prefix.
10415 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10416 prototype accordingly.
10418 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10420 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10422 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10424 * configure.in: Increase required makeinfo version to 4.1.
10425 * configure: Regenerate.
10427 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10429 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10432 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10434 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10435 * doc/invoke.texi: Fix @math uses.
10437 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10439 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10442 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10444 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10445 (powerpc-*-eabisimaltivec*): Same.
10447 * config/rs6000/t-ppcendian: New.
10449 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10451 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10452 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10453 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10455 2002-03-03 Richard Henderson <rth@redhat.com>
10457 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10459 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10461 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10462 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10463 tree.c, config/m68k/m68k.c:
10464 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10465 REAL_ARITHMETIC blocks unconditional. Delete some further
10466 #ifdef blocks predicated on REAL_ARITHMETIC.
10467 * flags.h, toplev.c: Delete remaining references to
10468 flag_pretend_float.
10470 * doc/invoke.texi: Remove documentation of -fpretend-float.
10471 * doc/tm.texi: Describe the various REAL_* macros as provided by
10472 real.h, not by the target configuration files.
10474 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10475 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10476 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10477 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10478 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10479 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10480 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10481 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10482 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10483 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10484 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10485 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10486 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10487 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10488 config/xtensa/xtensa.h:
10489 Do not define, undefine, or mention in comments any of
10490 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10491 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10492 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10493 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10494 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10495 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10496 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10497 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10498 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10500 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10502 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10503 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10504 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10505 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10506 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10507 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10509 * defaults.h (BITS_PER_WORD): Define.
10510 * doc/tm.texi (BITS_PER_WORD): Document default value.
10512 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10513 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10514 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10516 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10518 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10519 lieu of explicit sizeof/sizeof.
10520 * i386.c (override_options, ix86_init_mmx_sse_builtins,
10521 ix86_expand_builtin): Likewise.
10522 * mips.c (mips_add_gc_roots): Likewise.
10523 * mmix.c (mmix_output_condition): Likewise.
10524 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10525 altivec_init_builtins): Likewise.
10526 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10527 * cppexp.c (Nsuff, parse_number): Likewise.
10528 * cppinit.c (builtin_array_end): Likewise.
10529 * gcc.c (n_default_compilers, process_command): Likewise.
10530 * genpreds.c (output_predicate_decls): Likewise.
10531 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10532 * lcm.c (N_ENTITIES): Likewise.
10533 * stor-layout.c (set_sizetype): Likewise.
10535 2002-03-03 Richard Henderson <rth@redhat.com>
10537 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10538 for types or labels.
10540 2002-03-03 Richard Henderson <rth@redhat.com>
10542 * c-decl.c (start_decl): Initialized variables are not common.
10544 2002-03-02 Per Bothner <per@bothner.com>
10546 * gcc.c (option_map): Suport new --bootclasspath option.
10547 --CLASSPATH is now just an alias for --classpath.
10549 2002-03-02 Richard Henderson <rth@redhat.com>
10551 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10552 load if "internal" visibility.
10553 * doc/extend.texi: Document visibility meanings.
10555 2002-03-02 Richard Henderson <rth@redhat.com>
10557 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10558 to functions as well.
10560 2002-03-02 Richard Henderson <rth@redhat.com>
10562 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10563 (handle_visibility_attribute): Don't call assemble_visibility.
10564 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10565 without asmspec. Invoke assemble_alias when needed.
10566 * varasm.c (maybe_assemble_visibility): New.
10567 (assemble_start_function, assemble_variable, assemble_alias): Use it.
10569 2002-03-02 Richard Henderson <rth@redhat.com>
10571 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10572 invoke ENCODE_SECTION_INFO with first call flag.
10574 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10575 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10576 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10577 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10578 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10579 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10580 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10581 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10582 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10583 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10584 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10585 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10586 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10587 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10588 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10589 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10590 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10591 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10592 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10593 config/sh/sh.h, config/sparc/sparc.h,
10594 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10595 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10596 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10597 FIRST argument. As needed, examine it and do nothing.
10599 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10600 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10601 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10603 * config/arm/t-pe (pe.o): Add dependencies.
10605 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10607 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10608 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10609 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10610 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10611 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10612 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10613 * defaults.h (BITS_PER_UNIT): Define.
10614 * doc/tm.texi (BITS_PER_UNIT): Document default value.
10616 2002-03-02 Kazu Hirata <kazu@hxi.com>
10618 * config/h8300/h8300-protos.h: Add a prototype for
10619 compute_a_shift_length.
10620 * config/h8300/h8300.c (h8300_asm_insn_count): New.
10621 (compute_a_shift_length): Likewise.
10622 (h8300_adjust_insn_length): Do not adjust insn length of shift
10624 * config/h8300/h8300.md (anonymous shift patterns): Use
10625 compute_a_shift_length.
10627 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10629 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10630 trunc_int_for_mode.
10632 * emit-rtl.c (offset_address): Call update_temp_slot_address.
10634 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10636 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10637 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10638 * flags.h (flag_zero_initialized_in_bss): Declare.
10639 * toplev.c (flag_zero_initialized_in_bss): New flag.
10640 (lang_independent_options): Add flag_zero_initialized_in_bss.
10641 * tree.c (initializer_zerop): New function.
10642 * tree.h (initializer_zerop): Declare.
10643 * varasm.c (assemble_variable): If we can emit bss, put zero
10644 initializers in the bss section.
10646 2002-03-02 Alan Modra <amodra@bigpond.net.au>
10648 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10649 like more than one symbol per .weak directive.
10651 2002-03-01 Richard Henderson <rth@redhat.com>
10653 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10654 adjust argument_pointer by pretend_args_size.
10655 (ia64_va_start): Adjust va_start address by -pretend_args_size.
10657 2002-03-01 Kazu Hirata <kazu@hxi.com>
10659 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10661 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
10663 * toplev.c (rest_of_compilation): Delete dead jumptables before
10665 * flow.c (delete_dead_jumptables): Make global.
10666 * rtl.h (delete_dead_jumptables): Declare.
10668 2002-03-01 David Edelsohn <edelsohn@gnu.org>
10670 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10671 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10672 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10674 2002-03-01 Kazu Hirata <kazu@hxi.com>
10676 * config/h8300/h8300-protos.h: Fix formatting.
10677 * config/h8300/h8300.c: Likewise.
10678 * config/h8300/h8300.h: Likewise.
10680 2002-03-01 Kazu Hirata <kazu@hxi.com>
10682 * config/h8300/h8300.c (print_operand): Support 16-bit
10683 constant addresses.
10684 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10686 2002-02-28 Richard Henderson <rth@redhat.com>
10688 * expmed.c (store_bit_field): Prevent generation of CONCATs;
10689 pun complex values as integers; use gen_lowpart instead of
10691 (extract_bit_field): Likewise.
10693 2002-03-01 Alan Modra <amodra@bigpond.net.au>
10694 David Edelsohn <edelsohn@gnu.org>
10696 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10697 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10698 (SUPPORTS_WEAK): Likewise.
10699 * output.h (add_weak): Add tree param.
10700 * varasm.c (add_weak): Likewise. Save decl.
10701 (struct weak_syms): Add decl field.
10702 (mark_weak_decls): New function.
10703 (init_varasm_once): ggc_add_root mark_weak_decls.
10704 (assemble_start_function): Use ASM_WEAKEN_DECL.
10705 (assemble_variable): Likewise.
10706 (assemble_alias): Likewise.
10707 (declare_weak): Pass decl to add_weak.
10708 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10709 (remove_from_pending_weak_list): Declare and define for
10711 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10712 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10713 * defaults.h (SUPPORTS_WEAK): Likewise.
10714 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10715 .weak for code sym. Do emit .size for descriptor sym.
10716 (ASM_DECLARE_FUNCTION_SIZE): Define.
10717 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10718 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
10719 .lglobl unless TARGET_XCOFF. Formatting fixes.
10720 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10721 .weak for code sym.
10722 (HANDLE_PRAGMA_WEAK): Remove.
10723 (ASM_WEAKEN_LABEL): Remove.
10724 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10726 2002-03-01 Jason Merrill <jason@redhat.com>
10728 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10729 (TARGET_EXPR_CLEANUP): New macro.
10731 2002-02-28 Steve Ellcey <sje@cup.hp.com>
10733 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10734 to take ptr_extend into account as third type of extension.
10735 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10736 fields used by SUBREG_PROMOTED_UNSIGNED_P.
10737 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10738 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10739 * calls.c (precompute_arguments): Use new macro.
10740 (expand_call): Ditto.
10741 * combine.c (nonzero_bits): Ditto.
10742 (record_promoted_value): Ditto.
10743 * expr.c (store_expr): Ditto.
10744 (expand_expr): Ditto.
10745 * function.c (assign_parms): Ditto.
10747 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
10749 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10750 override -shared and -shared-libgcc.
10752 2002-02-28 David O'Brien <obrien@FreeBSD.org>
10754 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10756 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
10759 2002-02-28 Richard Henderson <rth@redhat.com>
10761 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10762 4 cycle latency from MM producers.
10763 (ia64_internal_sched_reorder): Likewise with pipeline flush.
10765 2002-02-28 Jakub Jelinek <jakub@redhat.com>
10767 * mklibgcc.in: Don't use GNU make extension.
10769 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10771 * c-parse.in (STATIC): New terminal.
10772 (scspec): New non-terminal. Update productions accordingly.
10773 (program): Remove bogus ifc / end ifc.
10774 (array_declarator): Simplify production using STATIC.
10776 2002-02-28 Jim Meyering <meyering@lucent.com>
10778 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10779 \a still means TARGET_BELL.
10781 2002-02-28 Richard Henderson <rth@redhat.com>
10783 * haifa-sched.c (sched_emit_insn): New.
10784 (schedule_block): Use last_scheduled_insn to track last insn.
10785 * sched-int.h (sched_emit_insn): Prototype.
10786 * config/ia64/ia64.c (last_issued): Remove.
10787 (ia64_variable_issue): Don't set it.
10788 (nop_cycles_until): Use sched_emit_insn.
10790 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
10792 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10793 extended constants.
10795 2002-02-28 Kazu Hirata <kazu@hxi.com>
10797 * config/h8300/h8300.c: Fix formatting.
10798 * config/h8300/h8300.h: Likewise.
10800 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
10802 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10803 which may overwrite the high byte of the frame pointer.
10805 2002-02-28 Bo Thorsen <bo@suse.de>
10807 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10808 (STARTFILE_SPEC): Add 64 bit files.
10809 (ENDFILE_SPEC): Likewise.
10811 2002-02-28 Jason Merrill <jason@redhat.com>
10813 * c-decl.c (finish_function): Only warn about missing return
10814 statement with -Wreturn-type.
10816 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
10818 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10820 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10821 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10823 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
10825 * basic-block.h (BB_REACHABLE): Renumber.
10826 (BB_DIRTY, BB_NEW): New flags.
10827 (clear_bb_flags): Declare.
10828 (update_life_info_in_dirty_blocks): Declare.
10829 * cfg.c (clear_bb_flags): New function.
10830 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10831 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10832 reorder_insns, emit_insn_after): Mark block as dirty.
10833 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10834 (update_life_info_in_dirty_blocks): New function.
10835 * recog.c (apply_change_group): Dirtify block.
10837 * cse.c (cse_insn): Reorder emitting of jump insn to keep
10839 * gcse.c (delete_null_pointer_checks): Likewise.
10841 * toplev.c (dump_file_index): Move cse2 after bp,
10843 (dump_file_info): Similary.
10844 (rest_of_compilation): Avoid most of CFG rebuilds;
10845 do first if converision after null pointer checks, do cse2
10846 after branch prediction; avoid full liveness rebuild after
10847 initializing subregs.
10848 * invoke.texi (-d options): Document -du, renumber.
10850 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10851 (notice_new_block): Do not set BB_UPDATE_LIFE.
10852 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10853 merge_blocks_move_successor_nojumps, merge_blocks,
10854 try_crossjump_to_edge): Likewise.
10855 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10856 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10857 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10858 (merge_of_block): Do not use life_data_ok.
10859 (find_if_case_1): Do not use SET_UPDATE_LIFE.
10860 (if_convert): Use BB_DIRTY mechanizm to update life.
10861 * lcm.c (optimize_mode_switching): Update
10862 update_life_info_in_dirty_blocks
10864 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10866 * Makefile.in (integrate.o): Update.
10867 * c-decl.c (copy_lang_decl): Rename.
10868 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10869 * integrate.c: Include langhooks.h.
10870 (copy_decl_for_inlining): Update to use langhook.
10871 * langhooks-def.h (lhd_do_nothing_t,
10872 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10873 (LANG_HOOKS_INITIALIZER): Update.
10874 * langhooks.c (lhd_do_nothing_t): New.
10875 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10876 * tree.h (copy_lang_decl): Remove.
10878 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10880 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
10882 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10883 POST_DEC, and POST_MODIFY.
10885 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10887 * c-typeck.c (digest_init): Remove unused parameter; all
10890 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
10892 * expmed.c (expand_shift): Correctly test for low part of a
10895 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10897 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10898 insn UIDs with insn addresses.
10900 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10902 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10903 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10904 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10905 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10906 gcc.c, toplev.c: Delete code implementing -traditional mode.
10908 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10909 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10910 Document removal of -traditional mode for compilation, and
10911 remove documentation only relevant to that mode.
10913 * config/nextstep.h, config/ptx4.h, config/svr4.h,
10914 config/convex/convex.h, config/d30v/d30v.h,
10915 config/i386/dgux.h, config/i386/osf1elf.h,
10916 config/i386/osfelf.h, config/i386/osfrose.h,
10917 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10918 config/m68k/hp310.h, config/m88k/dgux.h,
10919 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10920 config/m88k/m88k.h, config/m88k/openbsd.h,
10921 config/mips/abi64.h, config/mips/osfrose.h,
10922 config/mips/svr4-5.h, config/mips/svr4-t.h,
10923 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10924 config/stormy16/stormy16.h: Remove all references to
10925 -traditional from target specs. Delete all mention of the
10926 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
10927 delete a couple of commented-out definitions of
10928 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10931 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
10932 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
10934 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10936 * mklibgcc.in: Don't use \n in a line subject to
10937 interpretation by echo.
10939 2002-02-27 Graham Stott <grahams@redhat.com>
10941 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
10944 * loop.c (prescan_loop): Handle PARALLEL.
10946 * unroll.c (loop_iterations): Return 0 if the add_val for
10949 * final.c (output_operand_lossage): Constify PFX_STR.
10951 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
10953 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
10955 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
10956 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
10958 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
10960 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10962 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
10964 * cpplex.c (_cpp_lex_token): Handle directives in macro
10966 * cpplib.c (_cpp_handle_directive): Save and restore state
10967 if parsing macro args when entering a directive.
10968 * cppmacro.c (collect_args): No need to handle directives
10969 in macro arguments.
10970 (enter_macro_context, replace_args): Use the original macro
10971 definition in case it was redefined whilst collecting arguments.
10973 * cpp.texi: Update.
10975 2002-02-26 David Edelsohn <edelsohn@gnu.org>
10977 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
10978 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
10979 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
10981 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
10982 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
10983 (load_toc_v4_PIC_2): Same.
10985 2002-02-26 Alan Modra <amodra@bigpond.net.au>
10987 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
10989 2002-02-26 Richard Henderson <rth@redhat.com>
10991 * config/alpha/alpha.md (ashldi_se): Re-enable.
10993 2002-02-26 Richard Henderson <rth@redhat.com>
10995 * config/alpha/alpha.c (alpha_encode_section_info): Examine
10996 MODULE_LOCAL_P; improve commentary.
10998 2002-02-26 Zack Weinberg <zack@codesourcery.com>
11000 * doc/cpp.texi: Clarify documentation of relationship between
11001 #line and #include.
11003 2002-02-26 Kazu Hirata <kazu@hxi.com>
11005 * config/h8300/h8300-protos.h: Update the prototype for
11006 compute_logical_op_length. Add the prototype for
11007 compute_logical_op_cc.
11008 * config/h8300/h8300.c (compute_logical_op_length): Figure out
11009 code from operands.
11010 (compute_logical_op_cc): New.
11011 * config/h8300/h8300.md: Combine all the logical op patterns
11012 in HImode and SImode. Use compute_logical_op_cc.
11014 2002-02-26 Kelley Cook <kelleycook@comcast.net>
11016 * config/i386/i386.c (print_operand): Don't append ATT-style
11017 length suffixs to x87 opcodes when in Intel mode.
11019 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
11021 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11022 (init_emit_once): Update calls.
11023 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11024 (init_syntax_once): Prototype.
11026 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11028 * pa-linux.h (LIB_SPEC): Update definition.
11029 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11031 2002-02-26 Richard Henderson <rth@redhat.com>
11033 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11034 if we emitted a stop bit.
11036 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11038 * configure.in (libgcc_visibility): Substitute.
11039 * configure: Rebuilt.
11040 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11041 defined symbols .hidden.
11043 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11045 * attribs.c (c_common_attribute_table): Add visibility.
11046 (handle_visibility_attribute): New function.
11047 * varasm.c (assemble_visibility): New function.
11048 * output.h (assemble_visibility): Add prototype.
11049 * tree.h (MODULE_LOCAL_P): Define.
11050 * crtstuff.c (__dso_handle): Use visibility attribute.
11051 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11052 for MODULE_LOCAL_P symbols too.
11053 * config/ia64/ia64.c (ia64_encode_section_info): Handle
11054 MODULE_LOCAL_P symbols the same way as local symbols.
11055 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11056 into .sdata/.sbss by the user.
11057 * doc/extend.texi (Function Attributes): Document visibility
11060 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11063 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11064 STRING_CST initializer spanning the whole variable without
11066 If expand_expr returned MEM, don't use it.
11068 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
11070 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11071 generate a die for the lexical block.
11073 2002-02-26 Kazu Hirata <kazu@hxi.com>
11075 * config/h8300/h8300-protos.h: Add a prototype for
11076 compute_logical_op_length.
11077 * config/h8300/h8300.c (compute_logical_op_length): New.
11078 * config/h8300/h8300.md (anonymous logical patterns): Use
11079 compute_logical_op_length for length.
11081 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11083 * dwarf2out.c (modified_type_die): Do not call type_main_variant
11085 (gen_type_die): Same.
11087 * attribs.c (handle_vector_size_attribute): Set debug information.
11089 2002-02-26 Daniel Egger <degger@fhm.edu>
11091 * config/rs6000/rs6000.md: Swap define_insn attributes to
11092 fix incorrect generation of merge high instructions instead
11095 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11097 * c-typeck.c (really_start_incremental_init): Use
11098 bitsize_zero_node for vectors.
11100 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11102 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11103 ("*set_vrsave_internal"): Same.
11105 2002-02-25 Richard Henderson <rth@redhat.com>
11107 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11108 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
11110 2002-02-25 Jakub Jelinek <jakub@redhat.com>
11113 * config/i386/i386.c (ix86_return_pops_args): Only pop
11114 fake structure return argument if it was passed on the stack.
11116 2002-02-25 Jason Merrill <jason@redhat.com>
11118 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11121 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11123 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11124 link with shared_name only.
11125 * doc/invoke.texi (Link Options): Document new behavior.
11127 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11129 * c-typeck.c (push_init_level): Handle vectors.
11131 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11133 * config/sparc/sparc.c (const64_high_operand): Zero-extend
11134 operands of SPARC_SETHI_P.
11135 (input_operand): Likewise.
11136 (sparc_emit_set_const32): Likewise.
11137 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11138 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11139 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
11140 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11141 (movdi_insn_sp64_vis): Likewise.
11142 (movdi split, movdf split): Use SETHI32.
11143 * doc/md.texi: Document SPARC constraints L, M and N.
11145 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11147 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11148 ("*set_vrsave_internal"): use mfspr for Darwin.
11150 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11151 gen_get_vrsave_internal.
11153 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11155 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11157 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
11159 * cpplex.c (cpp_interpret_charconst): Get signedness or
11160 otherwise of wide character constants correct.
11161 * cppexp.c (lex): Get signedness of wide charconsts correct.
11163 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11165 * optabs.c (widen_operand): Only call convert_modes for
11166 promoted SUBREG if signedness matches.
11167 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11169 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11171 * cpplib.c (glue_header_name): Use local buffer to build up
11174 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11176 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11178 2002-02-23 Kazu Hirata <kazu@hxi.com>
11180 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11181 H8/300[HS] separately.
11182 * config/h8300/h8300.md: Remove the early clobber constraint
11183 from bit field patterns.
11185 2002-02-23 Kazu Hirata <kazu@hxi.com>
11187 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11189 (mulhisi3): Likewise.
11190 (umulqisi3): Likewise.
11191 (umulhisi3): Likewise.
11193 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11195 * cppinit.c (output_deps): Correct test for stdout output.
11196 (init_dependency_output): Cure warning.
11198 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11200 * expr.c (store_expr): When converting expression to promoted
11201 equivalent type, allow using SUBREG_REG of TARGET as the target
11202 of the expansion of EXP.
11203 * loop.c (basic_induction_var, case SUBREG): Always look inside.
11204 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11205 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11206 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11207 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11209 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
11211 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11212 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11213 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11215 2002-02-23 Jakub Jelinek <jakub@redhat.com>
11217 PR optimization/5747
11218 * loop.c (scan_loop): Update reg info if move_movables created new
11221 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11223 * gcc.c (init_gcc_spec): Revert last change.
11225 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11227 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11228 gpc_reg_operand constraint.
11230 2002-02-23 Alan Modra <amodra@bigpond.net.au>
11232 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11233 Simplify comparison of `low'.
11234 (add_operand): Fix formatting.
11235 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11236 (mask_operand): Disallow mask to wrap in 64-bit mode.
11237 (rs6000_stack_info): Remove redundant test setting push_p.
11238 (output_toc): Fix formatting.
11239 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11240 cc_reg_not_cr0_operand constraint.
11241 (booldi3, boolcdi3 splitters): Same.
11243 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
11245 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11247 2002-02-22 David Edelsohn <edelsohn@gnu.org>
11249 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11250 gcc invoked with -shared-libgcc.
11252 2002-02-22 Jakub Jelinek <jakub@redhat.com>
11255 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11256 decl if any of elements was TREE_USED.
11258 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
11260 * config/sparc/sol2.h: Don't include sys/mman.h.
11261 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11262 (arith_4096_operand): Don't throw high bits away.
11263 (const64_operand): Take sign extension of CONST_INTs into account.
11264 (const64_high_operand, sparc_emit_set_const32): Likewise.
11265 (GEN_HIGHINT64): Likewise.
11266 (sparc_emit_set_const64_quick1): Likewise.
11267 (const64_is_2insns): Likewise.
11268 (print_operand): Use trunc_int_for_mode for sign extension.
11269 * config/sparc/sparc.h (SMALL_INT32): Likewise.
11270 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11271 chars. Assume CONST_INT is already properly sign-extended.
11272 (movdi split): Sign-extend each SImode part.
11273 (andsi3 split): Don't mask high bits off, so that result
11274 remains properly sign-extend.
11275 (iorsi3 split): Likewise.
11276 (xorsi3 split): Likewise.
11278 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
11280 * fold-const.c (fold): Fix typo in comments.
11282 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11284 * Makefile.in (langhooks.o): Update dependencies.
11286 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11288 * langhooks.c: Include flags.h.
11290 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
11292 * testsuite/gcc.dg/attr-alwaysinline.c: New.
11294 * c-common.c (c_common_post_options): Set inline trees by
11297 * doc/extend.texi (Function Attributes): Document always_inline
11299 Update documentation about inlining when not optimizing.
11301 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11303 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11304 unless DECL_ALWAYS_INLINE.
11306 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11307 unless DECL_ALWAYS_INLINE.
11308 (c_disregard_inline_limits): Disregard if always_inline set.
11310 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11311 Disregard if always_inline set.
11312 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11313 unless DECL_ALWAYS_INLINE.
11315 * attribs.c (handle_always_inline_attribute): New.
11316 (c_common_attribute_table): Add always_inline.
11318 * config/rs6000/altivec.h: Add prototypes for builtins
11319 requiring the always_inline attribute.
11321 2002-02-21 Eric Christopher <echristo@redhat.com>
11323 * expmed.c (store_bit_field): Try to simplify the subreg
11324 before generating a new one when when the mode size of
11325 value is less than maxmode.
11327 2002-02-21 Richard Henderson <rth@redhat.com>
11329 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11330 than gen_rtx_PLUS to form the sum.
11331 * explow.c (force_reg): Rearrange to not allocate new pseudo
11332 when force_operand returns a register.
11333 * expr.c (expand_assignment): Allow offset_rtx expansion to
11334 return a sum. Do not force addresses into registers.
11335 (expand_expr): Likewise.
11336 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11337 to canonicalize arithmetic that didn't simpify.
11338 (simplify_plus_minus): New argument force; update
11339 all callers. Don't split CONST unless we can do something with it,
11340 and wouldn't lose the constness of the operands.
11342 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11343 that we generated earlier.
11345 2002-02-21 Tom Tromey <tromey@redhat.com>
11347 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11348 (output_line_info): Use constant `1', with a long explanatory
11350 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11352 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11354 * jump.c (redirect_jump): If old label has no UID, don't try to
11357 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11359 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11360 If input is constant, do shifts at compile time.
11362 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11364 * doc/extend.texi: Fix some more overfull hboxes.
11366 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11368 PR optimization/4994
11369 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11372 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11375 * expr.h (expand_and): Add mode argument.
11376 * expmed.c (expand_and): Add mode argument.
11377 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11378 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11379 * except.c (expand_builtin_extract_return_addr): Likewise.
11380 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11381 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11382 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11383 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11384 * config/c4x/c4x.md: Use GEN_INT (x) instead of
11385 gen_rtx (CONST_INT, VOIDmode, x).
11387 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11390 * stmt.c (warn_if_unused_value): Move side effects test once more.
11392 2002-02-20 Torbjorn Granlund <tege@swox.com>
11394 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11395 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11397 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
11399 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11400 SUBREG or ZERO_EXTEND.
11402 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
11404 * sh.h (current_function_anonymous_args): Remove.
11405 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11406 of current_function_varargs and current_function_stdarg is set.
11407 * sh.c (sh_expand_prologue): Check current_function_varargs /
11408 current_function_stdarg / TARGET_SH5 instead of
11409 current_function_anonymous_args.
11411 * sh64.h (TARGET_VERSION): Define.
11413 2002-02-20 David Edelsohn <edelsohn@gnu.org>
11415 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11416 VRSAVE_REGNO on TARGET_ALTIVEC.
11418 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11420 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11421 bits of SImode const_int.
11422 (includes_rshift_p): Likewise.
11423 (print_operand): Call mask_operand and mask64_operand with correct
11425 (rs6000_output_function_epilogue): Pad traceback table to word.
11426 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11427 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11428 mask64_operand with correct mode.
11429 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11431 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11434 * varasm.c (get_pool_constant_mark): New.
11435 * rtl.h (get_pool_constant_mark): Add prototype.
11436 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11437 be represented if it has not been output.
11439 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11441 * combine.c (do_SUBST): Sanity check substitutions of
11442 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11443 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11444 CONST_INT into its operand.
11445 (known_cond): Likewise, for ZERO_EXTEND.
11446 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11447 allow for simplification of wide modes. Reject CONST_INTs in
11448 ZERO_EXTEND when their actual mode is not given.
11450 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11452 * c-decl.c (pushdecl): If no global declaration is found for an
11453 extern declaration in block scope, try a limbo one.
11455 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11458 * c-common.c (pointer_int_sum): Moved from...
11459 * c-typeck.c (pointer_int_sum): ...here.
11460 * c-common.h (pointer_int_sum): Add prototype.
11462 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11465 * c-decl.c (duplicate_decls): Return 0 if issued error about
11468 2002-02-20 Roger Sayle <roger@eyesopen.com>
11469 Jakub Jelinek <jakub@redhat.com>
11472 * tree.c (host_integerp): Ensure that the constant integer is
11473 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11474 when pos is zero or non-zero respectively. Clarify comment.
11475 * c-format.c (check_format_info_recurse): Fix host_integerp
11476 usage; the pos argument should be zero when assigning to a
11477 signed HOST_WIDE_INT.
11479 2002-02-20 Richard Henderson <rth@redhat.com>
11481 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11482 of the operand, rather than assuming TImode.
11483 (ix86_expand_binop_builtin): Cope with commutative patterns
11484 using nonimmediate_operand for both operands.
11485 (ix86_expand_timode_binop_builtin): Likewise.
11486 (ix86_expand_store_builtin): Validate operand 1.
11487 (ix86_expand_unop1_builtin): Likewise.
11489 2002-02-20 Philip Blundell <philb@gnu.org>
11492 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11494 2002-02-20 Richard Henderson <rth@redhat.com>
11497 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11499 2002-02-20 Tom Tromey <tromey@redhat.com>
11501 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11502 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11503 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11504 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11505 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11508 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11510 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11511 for (const_int 0) in X not just INTVAL.
11513 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
11515 * doc/extend.texi: Avoid or reduce overfull hboxes.
11517 2002-02-20 Diego Novillo <dnovillo@redhat.com>
11519 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11520 operations if the field does not start at a mode boundary.
11522 2001-02-20 Joel Sherrill <joel@OARcorp.com>
11524 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11525 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11526 Also done for -Acpu and -Amachine.
11528 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
11530 * cppinit.c (init_dependency_output): Take deps output file
11531 from -o if none given with -MF. Suppress normal output.
11532 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11533 * doc/cpp.texi, doc/invoke.texi: Update.
11535 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11537 * toplev.c (output_quoted_string): Write unprintable
11538 characters with octal escapes.
11540 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11542 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11543 really_call_used[VRSAVE_REGNO] if not Altivec.
11545 2002-02-19 Alan Modra <amodra@bigpond.net.au>
11547 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11549 (constant_pool_expr_1): Fix formatting.
11550 (rs6000_legitimize_reload_address): Likewise.
11552 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11554 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11555 now that we have one.
11557 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11559 * tree.h (struct tree_common): Remove aux. Add unused_0 at
11560 end of first block of bitfields (which was only seven bits);
11561 rename dummy to unused_1; remove comment which is no longer true.
11563 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11565 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11567 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11570 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11574 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11575 arm_is_longcall_p rather than inspecting call-type cookie
11577 (call_value_insn) [TARGET_THUMB]: Likewise.
11579 2002-02-19 Graham Stott <grahams@redhat.com>
11581 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11583 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11585 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11586 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11587 (FP_SAVE_INLINE): Delete.
11589 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11590 * config/rs6000/eabi.asm: Remove ABI save restore routines.
11591 * config/rs6000/t-ppccomm: Build crtsavres.o.
11592 * config/rs6000/crtsavres.asm: New file.
11594 2002-02-19 Philip Blundell <philb@gnu.org>
11596 * config/arm/arm.c (use_return_insn): Don't reject interrupt
11598 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11599 (output_return_instruction): Allow interrupt functions to return with
11600 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
11601 (arm_expand_prologue): Subtract 4 before stacking LR in an
11602 interrupt function.
11604 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11606 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11607 decl, not just FUNCTION_DECL.
11608 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11609 (arm_assemble_integer): Likewise.
11610 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11613 2002-02-19 matthew green <mrg@eterna.com.au>
11615 * config.gcc (sparc-*-netbsdelf*): Enable target.
11616 (sparc64-*-netbsd*): New target.
11617 * config/sparc/netbsd-elf.h: New file.
11618 * config/sparc/t-netbsd64: New file.
11620 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11622 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11624 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
11626 * doc/invoke.texi: explicitly list the style guidelines that
11627 -Weffc++ checks for.
11629 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
11631 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11633 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
11636 * gcc.c (cpp_unique_options): Treat -o as indicating object file
11637 only if not -E. If -E, pass -o through to the preprocessor.
11639 2002-02-19 Kazu Hirata <kazu@hxi.com>
11641 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11642 register number with an appropriate macro.
11644 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11646 * doc/rtl.texi (Constants): Close @code tag.
11648 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
11650 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11651 ("mmx_uavgv4hi3"): Same.
11652 ("pmulhrwv4hi3"): Same.
11654 * tree-inline.c (walk_tree): Handle vectors.
11656 * c-common.c (constant_expression_warning): Handle vectors.
11657 (overflow_warning): Same.
11659 * sched-deps.c (sched_analyze_2): Handle vectors.
11661 * rtlanal.c (rtx_unstable_p): Handle vectors.
11662 (rtx_varies_p): Same.
11663 (count_occurrences): Same.
11664 (regs_set_between_p): Same.
11665 (modified_between_p): Same.
11666 (modified_in_p): Same.
11667 (volatile_insn_p): Same.
11668 (volatile_refs_p): Same.
11669 (side_effects_p): Same.
11670 (may_trap_p): Same.
11671 (inequality_comparisons_p): Same.
11672 (replace_regs): Same.
11673 (computed_jump_p_1): Same.
11675 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11677 (inner_mode_array): New.
11678 (copy_rtx): Handle vectors.
11679 (copy_most_rtx): Same.
11680 (rtx_equal_p): Same.
11681 (get_mode_alignment): Adjust for vectors.
11683 * resource.c (mark_referenced_resources): Handle vectors.
11684 (mark_set_resources): Same.
11686 * reload1.c (eliminate_regs): Handle vectors.
11687 (elimination_effects): Same.
11688 (scan_paradoxical_subregs): Same.
11690 * reload.c (subst_reg_equivs): Handle vectors.
11692 * regrename.c (scan_rtx): Handle vectors.
11694 * regclass.c (reg_scan_mark_refs): Handle vectors.
11696 * recog.c (find_single_use_1): Handle vectors.
11698 * local-alloc.c (equiv_init_varies_p): Handle vectors.
11699 (contains_replace_regs): Same.
11700 (memref_referenced_p): Same.
11702 * integrate.c (copy_rtx_and_substitute): Handle vectors.
11703 (subst_constants): Same.
11705 * genattrtab.c (attr_copy_rtx): Handle vectors.
11706 (encode_units_mask): Same.
11707 (clear_struct_flag): Same.
11708 (count_sub_rtxs): Same.
11710 * gcse.c (want_to_gcse_p): Handle vectors.
11711 (oprs_unchanged_p): Same.
11712 (hash_expr_1): Same.
11713 (oprs_not_set_p): Same.
11714 (expr_killed_p): Same.
11715 (compute_transp): Same.
11716 (store_ops_ok): Same.
11718 * function.c (purge_addressof_1): Do not allow paradoxical subregs
11720 (fixup_var_refs_1): Same.
11721 (instantiate_virtual_regs_1): Same.
11723 * fold-const.c (operand_equal_p): Handle vectors.
11725 (rtl_expr_nonnegative_p): Same.
11727 * flow.c (mark_used_regs): Handle vectors.
11729 * df.c (df_uses_record): Handle vectors.
11731 * cselib.c (cselib_subst_to_values): Handle vectors.
11732 (cselib_mem_conflict_p): Same.
11735 * cse.c (canon_reg): Handle vectors.
11737 (cse_process_notes): Same.
11738 (count_reg_usage): Same.
11739 (canon_hash): Same.
11741 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11743 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11745 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11746 (gen_rtx): Handle CONST_VECTOR.
11747 (gen_const_vector_0): New.
11748 (copy_rtx_if_shared): CONST_VECTORs can be shared.
11749 (reset_used_flags): Same.
11750 (copy_insn_1): Same.
11751 (initializer_constant_valid_p): Handle VECTOR_CST.
11753 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11755 * doc/rtl.texi (Constants): Document const_vector.
11756 (CONST0_RTX): Update for vectors.
11757 (RTL sharing): Same.
11759 * print-tree.c (print_node): Add case for VECTOR_CST.
11761 * tree.h (TREE_VECTOR_CST_ELTS): New.
11762 (struct tree_vector): New.
11763 (union tree_node): Add vector node.
11764 (build_vector): Add prototype.
11766 * tree.def (VECTOR_CST): New.
11768 * tree.c (build_vector): New.
11770 * expmed.c (make_tree): Handle CONST_VECTOR.
11772 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11773 (CONST_VECTOR_ELT): New.
11774 (CONST_VECTOR_NUNITS): New.
11776 * machmode.h (GET_MODE_INNER): New.
11777 (DEF_MACHMODE): Accept 8th arg.
11779 * machmode.def: Add 8th argument for vector inner mode.
11780 Add inner vector modes for vectors.
11782 * rtl.def (VEC_CONST): Remove.
11783 (CONST_VECTOR): New.
11785 * expr.c (clear_storage): Allow vectors.
11786 (is_zeros_p): Handle VECTOR_CST.
11788 * varasm.c (output_constant_pool): Handle vectors.
11789 (rtx_const): Add veclo and vechi fields.
11790 (kind): Add RTX_VECTOR.
11791 (decode_rtx_const): Add case for vector.
11793 * config/rs6000/rs6000-protos.h: Add zero_constant.
11795 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11796 constants. Force easy vector constants into memory.
11797 (easy_vector_constant): New.
11798 (emit_easy_vector_constant): New.
11799 (rs6000_legitimize_reload_address): Do not generate bad reloads on
11802 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11804 ("altivec_lvxl"): Same.
11805 (altivec_lvebx): Same.
11806 (altivec_lvehx): Same.
11807 (altivec_lvewx): Same.
11808 ("*movv4si_const0"): New.
11809 ("*movv4sf_const0"): New.
11810 ("*movv8hi_const0"): New.
11811 ("*movv16qi_const0"): New.
11813 2002-02-18 Kazu Hirata <kazu@hxi.com>
11815 * config/h8300/h8300.c (notice_update_cc): Use
11818 2002-02-18 Kazu Hirata <kazu@hxi.com>
11820 * config/h8300/h8300.md (divmod patterns): Change the
11821 constraints for operands[1] to register_operand.
11823 2002-02-18 Kazu Hirata <kazu@hxi.com>
11825 * config/h8300/h8300-protos.h: Remove the prototype for
11827 * config/h8300/h8300.c (p_operand): Remove.
11828 * config/h8300/h8300.md: Replace p_operand with
11831 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11833 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11835 (output_return_instruction): Allow use of LDR to unstack
11836 return addresss even for interrupt handlers or when
11837 interworking. If compiling for ARMv5, use interworking-safe
11838 return instructions by default. Remove duplicated code and
11839 lengthy "strcat" sequences.
11841 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11843 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11844 (LINK_EH_SPEC): Define.
11845 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11847 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11849 * config/s390/s390.c (s390_emit_prologue): Do not set the
11850 frame_related flag for call-clobbered registers.
11852 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
11854 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11855 (construct_container): Fix handling of SSE operands.
11856 (ix86_expand_builtin): Fix handling of 64bit pointers.
11857 (mmx_maskmovq_rex): New pattern.
11859 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
11861 * regrename.c (kill_set_value): Handle subregs properly.
11863 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
11865 * objc/objc-act.c (handle_impent): Remove leading '*'
11866 from objc_class_name.
11868 2002-02-17 Richard Henderson <rth@redhat.com>
11870 * config/alpha/alpha.c (some_small_symbolic_operand,
11871 some_small_symbolic_operand_1, split_small_symbolic_operand,
11872 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11873 Handle small SYMBOL_REFs anywhere, not just inside memories.
11874 * config/alpha/alpha-protos.h: Update.
11875 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11876 * config/alpha/alpha.md (small symbolic operand splitter): Update.
11878 2002-02-17 Roland McGrath <roland@frob.com>
11880 * config.gcc (powerpc-*-gnu-gnualtivec*,
11881 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11882 * config/rs6000/gnu.h: New file.
11883 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11884 Grok "gnu" in rs6000_abi_name.
11885 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11886 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11887 Grok -mcall-gnu analogous to -mcall-linux et al.
11888 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11889 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11890 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11892 2002-02-17 Jakub Jelinek <jakub@redhat.com>
11895 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11898 2002-02-17 Philipp Thomas <pthomas@suse.de>
11900 * config/cris/cris.h: Undefine STARTFILE_SPEC and
11901 ENDFILE_SPEC before (re)defining them.
11903 2002-02-17 Kazu Hirata <kazu@hxi.com>
11905 * config/h8300/h8300.c: Fix formatting.
11906 * config/h8300/h8300.h: Likewise.
11908 2002-02-17 Philipp Thomas <pthomas@suse.de>
11910 * doc/tm.texi: Explain why empty strings should not be
11911 marked for translation.
11913 2002-02-17 Philipp Thomas <pthomas@suse.de>
11915 * final.c (output_operand_lossage): Changed to accept
11916 printf style arguments. Change calls where necessary.
11917 * output.h (output_operand_lossage): Change declaration
11918 accordingly. Update copyright.
11919 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11920 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11921 Update copyright date where necessary.
11923 * config/i386/i386.c (print_operand): Likewise. Remove use of
11926 * config/cris/cris.c (cris_operand_lossage): Likewise.
11927 Rename parameter so that exgettext recognizes it as
11928 translatable message.
11929 (LOSE_AND_RETURN): Rename parameter to msgid.
11931 2002-02-17 Kazu Hirata <kazu@hxi.com>
11933 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
11934 hard coded register number with an appropriate macro.
11935 (HARD_REGNO_MODE_OK): Likewise.
11936 (ARG_POINTER_REGNUM): Likewise.
11937 (STATIC_CHAIN_REGNUM): Likewise.
11938 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11939 * config/h8300/h8300.md (define_constants): Define more
11942 2002-02-17 Philipp Thomas <pthomas@suse.de>
11944 * config/i386/i386.h: Don't mark empty strings for translation.
11946 2002-02-16 H.J. Lu <hjl@gnu.org>
11948 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
11950 2002-02-16 Zack Weinberg <zack@codesourcery.com>
11952 * cppinit.c (merge_include_chains): Check for brack being
11953 NULL before attempting to merge it with qtail.
11955 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11957 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
11960 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11962 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
11964 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
11966 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
11967 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
11968 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
11970 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11972 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
11973 now only if !TARGET_FIX.
11974 (*movsi_nt_vms_fix): New pattern.
11976 2002-02-16 Douglas B Rupp <rupp@gnat.com>
11978 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
11979 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
11980 (alpha_sa_mask, alpha_sa_size): Reflect above change.
11981 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
11982 (alpha_start_function, alpha_expand_epilogue): Likewise.
11983 (unicosmk_gen_dsib): Likewise.
11985 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11987 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
11989 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
11991 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
11992 check_and_change_labels, s390_final_chunkify): Delete.
11993 (s390_split_branches, s390_chunkify_pool): New functions.
11994 (s390_function_prologue): Call them.
11996 * config/s390/s390.h (S390_REL_MAX): Delete.
11997 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
11999 * config/s390/s390.md (cjump, icjump, jump): Fix length
12000 attribute calculation.
12003 2002-02-15 David Edelsohn <edelsohn@gnu.org>
12005 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12006 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12008 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12010 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12011 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12012 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12014 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12016 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12018 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12020 * reload.c (find_dummy_reload): Check that an output register
12021 is valid for its mode.
12023 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
12025 * combine.c (known_cond): After replacing the REG of a SUBREG, try
12028 * function.c (assign_parms): Demote promoted argument passed by
12029 transparent reference.
12031 2001-02-14 Joel Sherrill <joel@OARcorp.com>
12033 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12034 -Acpu() and -Amachine() to eliminate warnings.
12036 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
12038 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12040 2002-02-14 Kazu Hirata <kazu@hxi.com>
12042 * config/h8300/h8300-protos.h: Update the prototype for
12044 * config/h8300/h8300.c (const_costs): Treat SET as a little
12045 more expensive operation.
12046 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12047 reference to const_costs.
12049 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
12051 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12053 2002-02-14 Jakub Jelinek <jakub@redhat.com>
12056 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12057 use arguments from newtype.
12059 2002-02-13 Eric Christopher <echristo@redhat.com>
12061 * config/mips/mips.c (override_options): Add check for march/mipsX
12062 on the same command line. Fix error message in cpu processing.
12063 Remove architecture and ISA checks.
12065 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12067 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12069 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12071 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12073 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12075 ("*movv8hi_internal1"): Same.
12076 ("*movv16qi_internal1"): Same.
12077 ("*movv4sf_internal1"): Same.
12079 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12080 not push_reload for altivec modes.
12082 2002-02-13 Joel Sherrill <joel@OARcorp.com>
12084 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12085 all RTEMS targets including removal of #includes from config/*/rtems*.h
12086 file and adding them to tm_file setting. Added xm_defines=POSIX to
12088 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12089 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12090 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12091 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12092 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12093 config/m68k/rtemself.h: Ditto.
12094 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12095 config/mips/rtems64.h: Ditto.
12096 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12097 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12099 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12100 config/sparc/rtemself.h: Ditto.
12101 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12102 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12103 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12105 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12106 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12107 target made more similar to i386-elf.
12108 * config/i386/t-rtems-i386: Added soft float support and multilibs.
12109 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12110 be similar to config/m68k/t-m68kelf.
12111 * gthr-rtems.h: Encapsulate with extern "C" for C++.
12113 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
12115 * regmove.c (kill_value): Handle subregs.
12117 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
12119 * i386.md (mul patterns): Allow memory operand to be first;
12120 add expanders where needed; fix constraints.
12121 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12122 Allow memory operand to be the first.
12124 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12127 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12130 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12133 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12135 PR optimization/5547:
12136 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12137 all valid IA-32 address modes involving non-scaled %ebx and
12138 GOT/GOTOFF as displacement.
12140 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
12142 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12143 after emitting ltorg insns.
12145 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12146 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12147 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12148 *abssf2): Fix "op_type" attribute.
12150 2002-02-13 Douglas B Rupp <rupp@gnat.com>
12152 * mkconfig.sh: Avoid using a subshell redirect.
12153 ($output.T): Change to $(output)T.
12154 (ENABLE_NLS): Remove unneeded undef.
12156 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12157 * config/alpha/x-vms (libsubdir): Define.
12159 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12160 register frame procedures. Optimize retrieving context.
12162 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12163 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12164 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12166 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12168 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12169 Make same change as for find_base_value.
12171 2002-02-13 Kazu Hirata <kazu@hxi.com>
12173 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12174 of QImode and SImode.
12176 2002-02-13 Kazu Hirata <kazu@hxi.com>
12178 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12179 length computation of movsi.
12180 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12182 2002-02-13 Kazu Hirata <kazu@hxi.com>
12184 * config/h8300/h8300.md (subqi3): Tighten the predicate for
12185 operands[2] to register_operand.
12187 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
12189 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12191 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
12193 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12194 for altivec_lvx* and altivec_stvx*.
12195 ("*movv4si_internal"): Add constraint for loading from GPRs.
12196 ("*movv8hi_internal1"): Same.
12197 ("*movv16qi_internal1"): Same.
12198 ("*movv4sf_internal1"): Same.
12200 * config/rs6000/rs6000.c (altivec_register_operand): New.
12202 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12203 altivec_register_operand.
12205 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
12207 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12210 2002-02-13 Stan Shebs <shebs@apple.com>
12212 * c-typeck.c (digest_init): Handle vectors.
12213 (really_start_incremental_init): Same.
12214 (pop_init_level): Same.
12215 (process_init_element): Same.
12217 * varasm.c (output_constant): Same.
12219 * expr.c (clear_storage): Same.
12220 (store_constructor): Same.
12222 2002-02-12 Eric Christopher <echristo@redhat.com>
12224 * explow.c (hard_function_value): Add comment explaining
12225 signed/unsigned comparison.
12227 2002-02-12 Jakub Jelinek <jakub@redhat.com>
12229 * jump.c (never_reached_warning): Add finish argument.
12230 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12231 real insn after end.
12232 * rtl.h (never_reached_warning): Adjust prototype.
12233 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12234 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12235 never_reached_warning.
12237 2002-02-12 Graham Stott <grahams@redhat.com>
12239 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12241 2002-02-12 Kazu Hirata <kazu@hxi.com>
12243 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12244 logical shifts on H8/300.
12245 (shift_alg_si): Improve several shifts on H8/300.
12246 (get_shift_alg): Likewise.
12248 2002-02-12 Graham Stott <grahams@redhat.com>
12250 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12252 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12254 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12255 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12257 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
12259 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12260 non-CONST_INT through default_assemble_integer.
12261 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12262 <case 8>: Abort for CONST_DOUBLE.
12264 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12266 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12268 * config/pa/pa-linux.h (LIB_SPEC): Delete.
12269 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12271 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
12273 * config/stormy16/stormy16.md (zero_extendqihi2): New.
12275 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
12277 * regrename.c (regrename_optimize): Don't accept a
12278 part-clobbered register if the replaced register is not part
12281 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12282 take padding into account when computing the argument value.
12284 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12286 * combine.c (try_combine): Apply substitutions in
12287 CALL_INSN_FUNCTION_USAGE too.
12289 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
12291 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12292 __builtin_altivec_abs*.
12295 * config/rs6000/rs6000.h (rs6000_builtins): Add
12296 ALTIVEC_BUILTIN_ABS*.
12298 * config/rs6000/altivec.h: Use const char for builtins expecting
12300 (vec_abs): New versions for C and C++.
12303 2002-02-10 Kazu Hirata <kazu@hxi.com>
12305 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12308 2002-02-10 Kazu Hirata <kazu@hxi.com>
12310 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12311 constant definition from h8300.md.
12312 (FRAME_POINTER_REGNUM): Likewise.
12313 * config/h8300/h8300.md (define_constants): Add FP_REG.
12315 2002-02-10 Kazu Hirata <kazu@hxi.com>
12317 * config/h8300/h8300.c (print_operand): Remove redundant code.
12319 2002-02-10 Kazu Hirata <kazu@hxi.com>
12321 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12322 * config/h8300/h8300.c (byte_reg): Make it static.
12324 2002-02-10 Richard Henderson <rth@redhat.com>
12327 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12329 2002-02-10 Richard Henderson <rth@redhat.com>
12332 * tree.c (append_random_chars): Don't abort if main_input_filename
12335 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12337 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12339 2002-02-10 Kazu Hirata <kazu@hxi.com>
12341 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12342 (pushhi1): Likewise.
12344 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12346 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12347 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12349 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12351 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12353 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12355 2002-02-09 Kazu Hirata <kazu@hxi.com>
12357 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12358 a half of an SImode register on H8/300.
12360 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12362 * i386.md (movdi_2): Add missing '!'.
12364 2002-02-09 Kazu Hirata <kazu@hxi.com>
12366 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12369 2002-02-09 Kazu Hirata <kazu@hxi.com>
12371 * config/h8300/h8300.md (length): Correct the distance valid
12372 for the short branch.
12374 2002-02-09 Kazu Hirata <kazu@hxi.com>
12376 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12378 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12380 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12381 registers in SImode.
12382 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12385 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12388 Contribute sh64-elf.
12389 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12390 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12391 (sh_cannot_modify_jumps_p): New function.
12392 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12393 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12394 (sh_ms_bitfield_layout_p): New function.
12395 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
12396 Zack Weinberg <zack@codesourcery.com>
12397 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12398 expand_simple_binop instead of expand_binop.
12399 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
12400 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12401 use of .quad and .uaquad.
12402 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12403 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12404 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12405 * config/sh/sh.md (movdi_const, movdi_const_32bit,
12406 movdi_const_16bit): Make sure all CONSTs have modes.
12407 (sym2PIC): Ditto, but by adjusting all callers.
12408 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12409 if the prologue calls the SHmedia argument decoder or register
12411 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12412 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12413 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12414 (sh_expand_epilogue): Don't emit USE of return target register.
12415 (prepare_move_operands): Legitimize DImode PIC addresses.
12416 (sh_media_register_for_return): Skip tr0, used to initialize the
12418 (sh_expand_prologue): Remove explicit USE of return register.
12419 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12420 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12421 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12422 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12423 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12424 EXTRA_CONSTRAINT_T.
12425 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12426 (MOVI_SHORI_BASE_OPERAND_P): New.
12427 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12428 (EXTRA_CONSTRAINT_T): Define in terms of them.
12429 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12430 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12431 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12432 alternatives supporting TARGET_REGS.
12433 (UNSPEC_GOTPLT): New constant.
12434 (movdi split): Move incrementing of LABEL_NUSES...
12435 (movdi_const, movdi_const_32bit): Here. Use
12436 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12437 (movdi_const_16bit): New.
12438 (call, call_value) [flag_pic]: Use GOTPLT.
12439 (call_pop, call_value_pop): New expands.
12440 (call_pop_compact, call_pop_rettramp): New insns.
12441 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12442 (sibcall) [flag_pic]: Use GOT.
12443 (builtint_setjmp_receiver): Remove bogus, unused expand.
12444 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12445 (*pt, *ptb, ptrel): New insns.
12446 (sym2GOT): Handle DImode GOT.
12447 (sym2GOTPLT, symGOTPLT2reg): New expands.
12448 (sym2PIC): New expand.
12449 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12450 (shcompact_return_tramp_i): Use return register explicitly.
12451 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12452 disable flag_reorder_blocks.
12453 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12454 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12455 clobbers, for clarity.
12456 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12457 restoring of r0 in macl as MAYBE_DEAD.
12458 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12459 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12460 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12461 alter_subreg all over.
12462 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12463 reload, instead of emitting instructions that would require
12465 (casesi_load_media): Add missing modes.
12466 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12467 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12468 as used if the argument decoder is called.
12469 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12470 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12471 Pmode, then extend it to DImode if necessary.
12472 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12473 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12474 constants in FPU-enabled SHmedia, let them be loaded from memory.
12475 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12476 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12477 Adjust whitespace in assembly output templates.
12478 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12479 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12480 mode of if_then_else.
12481 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
12482 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12484 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
12485 Joern Rennecke <amylaar@redhat.com>
12486 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12487 (SUBTARGET_CPP_PTR_SPEC): New.
12488 (SUBTARGET_CPP_SPEC): Remove.
12489 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12490 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12491 Fix typo in previous checkin.
12492 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
12493 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12494 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
12495 Alexandre Oliva <aoliva@redhat.com>
12496 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12497 what single FP register can hold for SHmedia target.
12498 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12499 Alexandre Oliva <aoliva@redhat.com>
12500 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12501 Do not split into SUBREG.
12502 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
12503 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12504 and added new functions as specified in SH5 ABI r9.
12505 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
12506 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12508 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
12509 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12510 gen_consttable_4 and gen_consttable_8. Emit multiple labels
12511 and consttable_window_ends.
12512 2001-06-03 Graham Stott <grahams@redhat,com>
12513 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12514 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
12515 * config/sh/sh.c (print_operand): Handle floating-point pair,
12516 vector and matrix registers.
12517 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12518 vector modes into account.
12519 * config/sh/sh.md (movv2sf): Split move between registers into
12521 (movv4sf, movv16sf): Introduce insns that get split only after
12523 * config/sh/shmedia.h: Fix Copyright dates.
12524 * config/sh/ushmedia.h: Likewise. Move loop counter
12525 declarations into conditionals that uses them.
12526 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12528 * config/sh/sshmedia.h: Fix Copyright dates.
12529 (sh_media_PUTCFG): Fix constraints.
12530 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
12531 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12532 ptrmemfunc_vbit_in_delta for SH5.
12533 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
12534 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12535 * invoke.texi: Likewise.
12536 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
12537 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12538 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12539 GCC_pop_shmedia_regs_nofpu): New global symbols.
12540 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12541 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12542 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12543 compact function with nonlocal labels.
12544 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12545 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12546 (initial_elimination_offset): Account for their stack space.
12547 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12548 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12549 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12550 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12551 least one of the operands to be a register.
12552 (movv2sf): Likewise. Renamed to movv2sf_i.
12553 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12554 prepare_move_operands() before emitting SHmedia insns.
12555 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
12556 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12557 Don't save nor initialize r12. Don't mis-align the stack.
12558 Pad the code with a nop.
12559 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
12561 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
12562 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12563 [__SHMEDIA__]: Implement.
12564 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
12565 * config/sh/sh.md: Set latency of `pt' closer to reality.
12566 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12567 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12568 Set move, load and store type attributes.
12569 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12570 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12572 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12573 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12574 * config/sh/sh.c (sh_media_register_for_return): New function.
12575 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12576 branch-target register.
12577 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12578 * config/sh/sh.md (return_media_i): Use any call-clobbered
12579 branch-target register.
12580 (return_media): If r18 wasn't copied in the prologue, copy it
12582 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12583 Clear class FP0_REGS.
12584 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12586 2001-03-08 DJ Delorie <dj@redhat.com>
12587 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12588 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
12589 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12590 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
12591 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12592 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
12593 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12594 return value correctly for call_cookie.
12595 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
12596 * config/sh/crt1.asm (start): Modified so as to call
12597 ___setup_argv_and_call_main.
12598 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
12599 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12601 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
12602 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12603 (STRIP_NAME_ENCODING): Use it.
12604 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
12605 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
12606 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12607 prepare_scc_operands().
12608 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12609 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12610 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
12611 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12612 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
12613 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12614 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12615 used in shcompact_incoming_args.
12616 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12618 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12620 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12621 Adjust accordingly.
12622 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12623 Simplify. Adjust. Add sanity check.
12624 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12626 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12628 (udivsi3, divsi3): Use them.
12629 (force_mode_for_call): New insn.
12630 (call, call_value, sibcall_value): Emit it before SHcompact
12632 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
12633 * config/sh/sh.md (call, call_value, sibcall): Make sure the
12634 call cookie is non-NULL before taking its value.
12635 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
12636 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12637 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
12638 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12640 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12641 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12642 temporary for stack adjusts. Use MACL and MACH to pass
12643 arguments to shcompact_incoming_args.
12644 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
12646 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12647 (nested_trampoline): Load static chain address into r1.
12648 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12649 2001-01-07 Alexandre Oliva <aoliva@redhat.com
12650 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12651 fp_arith_reg_operand().
12652 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
12653 * config/sh/sh.md (casesi): Sign-extend the first two operands,
12654 and use signed compares for them.
12655 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12656 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
12657 ones properly aligned.
12658 (find_barrier): Account for extra alignment needed for 8-byte wide
12660 (machine_dependent_reorg): Require a label for the second 4-byte
12661 constant after an 8-byte one.
12662 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12664 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12665 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12666 last_float when switching float modes.
12667 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12668 auto-increment for general-purpose registers.
12669 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12671 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12673 * config/sh/sh.c (sh_builtin_saveregs): Support using all
12674 registers for varargs.
12675 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
12676 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12677 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12678 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12679 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12680 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
12681 call_cookie accordingly.
12682 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12683 (SHCOMPACT_BYREF): Likewise.
12684 (SHCOMPACT_FORCE_ON_STACK): New macro.
12685 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12686 (sh_builtin_saveregs): Likewise.
12687 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12688 shcompact_incoming_args): Use new shift values. Support
12689 sequences of consecutive and non-consecutive pushes/pops.
12690 * config/sh/sh.md (return): Don't explicitly use PR_REG.
12691 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
12692 * config/sh/sh.h (TEXT_SECTION): Define.
12693 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12694 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12695 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12696 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12697 return values on FPU-enabled SHmedia.
12698 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12699 FPU-enabled SHmedia.
12700 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12701 value is returned in a non-FP reg and is not returned by
12703 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12705 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
12706 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12707 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12708 quad-aligned to be passed by callee-copy reference.
12709 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
12710 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12711 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12712 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
12713 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12714 copying low-numbered FP regs to r7 and r8.
12715 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12716 FP regs to general-purpose regs only if the copy was passed on the
12718 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12719 copying FP reg to r9.
12720 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12721 copy FP regs to general-purpose regs only in outgoing calls.
12722 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12723 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
12725 * config/sh/sh.h (struct sh_args): Document all fields.
12726 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12727 passed partially on the stack should not consider making
12729 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12730 stack_regs only for incoming calls. When passing FP args,
12731 make sure there are FP regs available before modifying
12733 (SHCOMPACT_BYREF): Pass double args in general-purpose
12734 registers by reference.
12735 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
12736 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12737 attempt to generate sibcalls if the caller got any arguments
12739 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12740 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12741 to 8-byte boundaries.
12742 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12743 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12744 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12745 stored in the stack.
12746 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12747 for the offsets to have the ISA bit set.
12748 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
12749 invocation. Use beq instead of bgt to mark end of sequence of
12751 (shcompact_incoming_args): Fix store of r2. Use beq instead of
12752 bgt to mark end of sequence of stores.
12753 * config/sh/sh.c (arith_operand): Don't check whether
12754 CONST_OK_FOR_J for now.
12755 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12756 instead of long for conversion.
12757 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
12758 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12759 before passing it to fprintf.
12760 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
12761 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12762 Call set_fpscr before reading/writing SR.
12763 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12765 * config/sh/lib1funcs.asm: Add `.align 2' directives before
12767 (FMOVD_WORKS): Define on SH5 with FPU.
12768 (set_fpscr): Define on SH5. Remove separate _fpscr_values
12770 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12772 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
12773 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12775 (ia_main_table): Ditto.
12776 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
12777 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12778 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12779 the definitions from sh.h.
12780 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12782 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12783 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12784 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12785 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
12786 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12787 Increment LABEL_NUSES.
12789 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12791 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12793 * config/sh/elf.h (SIZE_TYPE): Likewise.
12794 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12795 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12796 shcompact_incoming_args): Load switch table addresses using
12798 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12799 (NO_BUILTIN_SIZE_TYPE): Define.
12800 (SIZE_TYPE): Don't define.
12801 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12802 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12803 definition of __SH5__=32 for -m5-compact-nofpu.
12804 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12806 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
12807 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12808 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
12809 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12810 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12811 (INSN_LENGTH_ALIGNMENT): Likewise.
12812 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12813 * config/sh/sh.md (call, call_value, sibcall): Simplify
12814 copying of non-branch-target register.
12815 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12816 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
12817 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12818 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12819 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12820 floating-point values as structs.
12821 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12822 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12823 general-purpose register.
12824 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12825 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12826 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12827 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12828 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12829 (ENCODE_SECTION_INFO): Enclose variables and constants in
12831 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12832 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12833 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12834 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12835 only for LABEL_REFs. For SYMBOL_REFs, prepend
12836 SH_DATALABEL_ENCODING to the symbol name.
12837 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12839 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12840 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12842 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12843 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12844 (DATALABEL_REF_P): Don't require CONST.
12845 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12847 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
12848 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12850 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12851 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12852 Use shallow_copy_rtx and PUT_MODE to change the mode of
12853 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12854 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12855 on SHmedia using GENERAL_REGs.
12856 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12857 bltu_media_i): Fix reversion of conditions.
12858 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12859 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12860 * config/sh/sh.c (output_far_jump): Save r13 in macl.
12861 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
12862 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12863 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
12864 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12865 (GCC_nested_trampoline): Likewise.
12866 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12867 * config/sh/sh.c (gen_datalabel_ref): Define.
12868 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12869 (INITIALIZE_TRAMPOLINE): Likewise.
12870 (TRAMPOLINE_ADJUST_ADDRESS): Define.
12871 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12872 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12873 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12874 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12875 (ic_invalidate): Adjust for SH5.
12876 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12877 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12878 _nested_trampoline.
12879 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
12880 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12881 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12882 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12883 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12884 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12885 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12886 * config/sh/sh.c (target_reg_operand): Match only target-branch
12887 registers and pseudos that aren't virtual registers.
12888 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12889 Copy operands that don't match target_reg_operand to pseudos.
12890 (call_media, call_value_media, sibcall_media): Use
12891 target_reg_operand instead of target_operand.
12892 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
12893 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12894 * config/sh/sh.c (target_reg_operand): Match hardware registers
12895 other than branch-target registers.
12896 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12897 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12898 (fpscr_values) [SH5 == 32]: Define.
12899 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12900 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12901 Handle function addresses coming in SUBREGs.
12902 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
12903 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12904 shcompact_return_trampoline): Use datalabel where appropriate.
12905 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
12906 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12907 general-purpose register to copy one branch-target register to
12909 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12910 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12911 SYMBOL_REFs with VOIDmode.
12912 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12913 bltu_media_i): New insns.
12914 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
12915 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12916 (INIT_CUMULATIVE_ARGS): Likewise.
12917 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
12918 * machmode.def (V16SFmode): New mode.
12919 * c-common.c (type_for_mode): Support V2SF and V16SF.
12920 * tree.c (build_common_tree_nodes_2): Likewise.
12921 * tree.h (tree_index): Likewise.
12922 * calls.c (emit_call_1): Take args_so_far. Adjust all
12923 callers. Introduce CALL_POPS_ARGS.
12924 * tm.texi (CALL_POPS_ARGS): Document.
12925 * config/sh/crt1.asm: Implement in SHmedia mode.
12926 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12927 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12928 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12929 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12930 Implement divsi and udivsi in SHmedia mode. Introduce
12931 SHcompact trampolines.
12932 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
12934 (regno_reg_class): Rewrite.
12935 (fp_reg_names): Remove.
12936 (sh_register_names, sh_additional_register_names): New.
12937 (print_operand): Added `u'. Support SUBREGs in addresses.
12938 Add parentheses around shifted CONSTs.
12939 (output_file_start): Output .mode and .abi directives.
12940 (shiftcosts, addsubcosts, multcosts): Adjust.
12941 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
12942 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
12943 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
12944 bytes, not registers. Take into account the need for the
12945 SHcompact incoming args trampoline. Adjust all callers.
12946 (sh_expand_prologue): Take stack_regs into account. Call
12947 incoming args trampoline. Keep stack aligned as per SH5 ABI.
12948 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
12949 stack aligned as per SH5 ABI.
12950 (sh_builtin_saveregs): Support SH5 ABI.
12951 (sh_build_va_list, sh_va_start): Likewise.
12952 (initial_elimination_offset): Take alignment into account.
12953 Compute location of PR according to the SH5 stack frame.
12954 (arith_reg_operand): Reject branch-target registers.
12955 (shmedia_6bit_operand): New.
12956 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
12957 (target_reg_operand): Match DImode only. Accept SUBREGs.
12958 (target_operand): New.
12959 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
12960 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
12961 SIBCALL_REGS for SHmedia.
12962 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
12963 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
12964 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
12965 (TARGET_SWITCHES): New SH5 flags.
12966 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
12967 VALID_REGISTER_P to disable unsupported registers.
12968 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
12969 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
12970 (FUNCTION_ARG_PADDING): Define.
12971 (FASTEST_ALIGNMENT): Adjust.
12972 (SH_REGISTER_NAMES_INITIALIZER): New.
12973 (sh_register_names): Declare.
12974 (DEBUG_REGISTER_NAMES): Define.
12975 (REGISTER_NAMES): Define based on sh_register_names.
12976 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
12977 (sh_additional_register_names): Declare.
12978 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
12979 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
12980 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
12981 (REGISTER_NATURAL_MODE): Define.
12982 (FIRST_PSEUDO_REGISTER): Adjust.
12983 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
12984 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
12985 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
12986 (VECTOR_MODE_SUPPORTED_P): Define.
12987 (REG_CLASS_CONTENTS): Adjust.
12988 (SMALL_REGISTER_CLASSES): Adjust.
12989 (REG_ALLOC_ORDER): Adjust.
12990 (INDEX_REG_CLASS): Adjust.
12991 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
12992 (CONST_OK_FOR_LETTER_P): Adjust.
12993 (PREFERRED_RELOAD_CLASS): Adjust.
12994 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
12995 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
12996 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
12997 (FIRST_FP_PARM_REG): Adjust.
12998 (CALL_POPS_ARGS): Define.
12999 (FUNCTION_ARG_REGNO_P): Adjust.
13000 (struct sh_args): New fields.
13001 (GET_SH_ARG_CLASS): Adjust.
13002 (INIT_CUMULATIVE_ARGS): Adjust.
13003 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13004 (FUNCTION_ARG_ADVANCE): Adjust.
13005 (FUNCTION_ARG): Adjust.
13006 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13007 (FUNCTION_ARG_CALLEE_COPIES): Define.
13008 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13009 (STRICT_ARGUMENT_NAMING): Define.
13010 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13011 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13012 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13013 (SETUP_INCOMING_VARARGS): Adjust.
13014 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13015 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13016 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13017 (SUBREG_OK_FOR_INDEX_P): Adjust.
13018 (EXTRA_CONSTRAINT_S): Update.
13019 (EXTRA_CONSTRAINT_T): New.
13020 (EXTRA_CONSTRAINT): Adjust.
13021 (GO_IF_LEGITIMATE_INDEX): Adjust.
13022 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13023 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13024 (MOVE_MAX): Adjust.
13025 (MAX_MOVE_MAX): Define.
13027 (CONST_COSTS): Adjust.
13028 (REGISTER_MOVE_COST): Adjust.
13029 (BRANCH_COST): Adjust.
13030 (TEXT_SECTION_ASM_OP): Adjust.
13031 (DBX_REGISTER_NUMBER): Adjust.
13032 (ASM_OUTPUT_DOUBLE_INT): New.
13033 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13034 (PREDICATE_CODES): Adjust.
13035 (PROMOTE_MODE): Adjust.
13036 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13037 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13038 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13039 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13040 (DR0_REG, DR2_REG, DR4_REG): Renumber.
13041 (TR0_REG, TR1_REG, TR2_REG): New.
13042 (XD0_REG): Renumber.
13043 (UNSPEC_COMPACT_ARGS): New.
13044 (type): Added pt and ptabs.
13045 (length): Default to 4 on SHmedia. Default pt length to 12
13046 and 20 on SHmedia32 and SHmedia64, respectively.
13047 (pt): New function unit.
13048 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
13049 Add whitespace between operands of SHmedia instructions.
13051 (adddi3_media, addsi3_media): Adjust constraints.
13052 (subsi3) [SHmedia]: Force operand 1 into a register.
13053 (udivsi3_i1_media, udivsi3_i4_media): New.
13054 (udivsi3): Support SHmedia.
13055 (divsi3_i1_media, divsi3_i4_media): New.
13056 (divsi3): Support SHmedia.
13057 (anddi3, iordi3, xordi3): Adjust constraints.
13058 (zero_extendhidi2, zero_extendqidi2): New.
13059 (extendsidi2, extendhidi2, extendqidi2): New.
13060 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13061 (pop_e, pop_fpul, pop_4): Likewise.
13062 (movsi_media): Support FP and BT registers.
13063 (movsi_media_nofpu): New. Adjust splits to DImode.
13064 (lduw, ldub): Renamed to zero_extend* above.
13065 (movqi_media): Fix typo.
13066 (movdi_media): Support FP and BT registers.
13067 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
13068 (movdi_const_32bit): New.
13069 (shori_media): Require immediate operand. Use `u' for output.
13070 (movdf_media, movsf_media): Simplified.
13071 (movdf_media_nofpu, movsf_media_nofpu): New.
13072 (movdf, movsf): Adjust
13073 (movv2sf, movv2sf, movv16sf): New.
13074 (beq_media, beq_media_i): Adjust constraints. Don't use
13075 scratch BT register.
13076 (bne_media, bne_media_i): Likewise.
13077 (bgt_media, bgt_media_i): Likewise.
13078 (bge_media, bge_media_i): Likewise.
13079 (bgtu_media, bgtu_media_i): Likewise.
13080 (bgeu_media, bgeu_media_i): Likewise.
13081 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13082 bunordered): Emit jump insn. Force operands to registers when
13084 (jump_media, jump): Simplify.
13085 (call_compact, call_compact_rettramp): New.
13086 (call_value_compact, call_value_compact_rettramp): New.
13087 (call_media, call_value_media): Simplify.
13088 (sibcall_compact, sibcall_media): New.
13089 (call, call_value): Adjust for SHmedia and SHcompact.
13090 (sibcall, sibcall_value, untyped_call): Likewise.
13091 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13092 (indirect_jump): Adjust for SHmedia.
13093 (casesi_jump_media): New.
13094 (nop): Re-enable for SHmedia.
13095 (call_site): Restrict to SH1.
13096 (casesi): Adjust for SHmedia.
13097 (casesi_shift_media, casesi_load_media): New.
13098 (return): Explicitly use PR register. Call return trampoline
13100 (return_i): Explicitly use PR register.
13101 (shcompact_return_tramp, shcompact_return_tramp_i): New.
13102 (return_media): Adjust.
13103 (shcompact_incoming_args): New.
13104 (epilogue): Adjust.
13105 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13106 (movstrsi): Disable on SH5.
13107 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13108 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13109 (subsf3, subsf3_media): Likewise.
13110 (mulsf3, mulsf3_media, mac_media): Likewise.
13111 (divsf3, divsf3_media): Likewise.
13112 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
13113 (floatsisf2, fux_truncsfsi2): Likewise.
13114 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
13116 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13117 (cmpunsf_media, cmpsf): Likewise.
13118 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13119 (abssf2, abssf2_media): Likewise.
13120 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13121 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13122 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
13123 (floatsidf2, fix_truncdfsi2): Likewise.
13124 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
13126 (cmpeqdf_media, cmpgtdf_media): Likewise.
13127 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13128 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13129 (absdf2, absdf2_media): Likewise.
13130 (extendsfdf2, extendsfdf2_media): Likewise.
13131 (truncsfdf2, truncsfdf2_media): Likewise.
13132 * config/sh/sh64.h: New file.
13133 * config/sh/t-sh64: New file.
13134 * config/sh/shmedia.h: New file.
13135 * config/sh/ushmedia.h: New file.
13136 * config/sh/sshmedia.h: New file.
13137 * configure.in: Added sh64-*-elf.
13138 * configure: Rebuilt.
13139 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
13140 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13141 (reg_class_from_letter): Use `b' for TARGET_REGS.
13142 (print_operand): Support `%M', `%m', `AND' and
13143 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
13144 (andcosts): Adjust for SHmedia.
13145 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13147 (target_reg_operand): New function.
13148 * config/sh/sh-protos.h (target_reg_operand): Declare.
13149 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13150 FP registers on SH5.
13151 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13153 (TARGET_REGISTER_P): New macro.
13154 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13155 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13156 (EXTRA_CONSTRAINT_S): New macro.
13157 (EXTRA_CONSTRAINT): Adjust.
13158 (FLOAT_TYPE_SIZE): Define to 32.
13159 (Pmode): DImode on SHmedia.
13160 (CONST_COSTS): Adjust for SHmedia literals.
13161 (PREDICATE_CODES): Added target_reg_operand.
13162 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13163 * config/sh/sh.md: Remove all attrs from SHmedia insns.
13164 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13165 (cmpdi): Accept SHmedia.
13166 (movdicc_false, movdicc_true): New insns.
13167 (movdicc): New expand.
13168 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13170 (addsi3_media): Match `S' constraint.
13171 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13172 (negdi2): Expand for SHmedia.
13173 (one_cmpldi2): New expand.
13174 (zero_extendsidi2): Change from expand to insn.
13175 (extendsidi2): Add constraints.
13176 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
13177 LD/ST address. Fix SI immediate loading split.
13178 (movhi_media, movqi_media, lduw, ldub): New insns.
13179 (movhi, movqi): Accept SHmedia.
13180 (shori_media, movdi_media): Relax input constraints. Split
13181 symbolic constants.
13182 (movdf_media, movsf_media): New insn. New split to movdi.
13183 (movdf, movsf): Match on SHmedia.
13184 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13185 bgeu_media): New insns and splits. New insns with `_i' suffix.
13186 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13187 (bunordered): New expand.
13188 (jump_compact): Renamed from `jump'.
13189 (jump_media): New insn.
13190 (jump): New expand.
13191 (call_media, call_value_media): New insns.
13192 (call, call_value): Adjust.
13193 (indirect_jump_compact): Renamed from `indirect_jump'.
13194 (indirect_jump_media): New insn.
13195 (indirect_jump): New expand.
13196 (untyped_call, return): Accept SHmedia.
13197 (return_media): New insn.
13198 (prologue, epilogue, blockage): Accept SHmedia.
13199 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13200 (sunordered): New expand.
13201 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13202 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13203 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13204 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13205 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13206 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13207 abssf2_media): New insns.
13208 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13209 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13210 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13211 floatdidf2, floatsidf2_media, fix_truncdfdi2,
13212 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13213 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13214 absdf2_media): New insns.
13215 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13216 (extendsfdf2_media, truncdfsf2_media): New insns.
13217 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
13218 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13219 * config/sh/sh.h (CONST_OK_FOR_J): Document.
13220 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13221 * config/sh/sh.md (adddi3): New expand.
13222 (adddi3_media, adddi3z_media): New insns.
13223 (adddi3_compact): Renamed from adddi3.
13224 (addsi3_media): Use add.l r63 to add constant zero.
13225 (subdi3): New expand.
13226 (subdi3_media): New insn.
13227 (subdi3_compact): Renamed from subdi3.
13228 (mulsidi3): New expand.
13229 (mulsidi3_media): New insn.
13230 (mulsidi3_compact): Renamed from mulsidi3.
13231 (umulsidi3): New expand.
13232 (umulsidi3_media): New insn.
13233 (umulsidi3_compact): Renamed from umulsidi3.
13234 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13235 (ashlsi3, ashrsi3, lshrsi3): Use them.
13236 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13237 (ashldi3, ashrdi3, lshrdi3): Use them.
13238 (zero_extendsidi2): New expand.
13239 (extendsidi2): New insn.
13240 (movsi_media): New insn. Split to movdi to load constants.
13241 (movsi): Enable for shmedia.
13242 (movdi_media): New insn. Use shori_media to load wide constants.
13243 (short_media): New insn.
13244 (movdi): Enable for shmedia.
13245 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
13246 * config/sh/sh.h (CPP_SPEC): Added `m5'.
13247 (SUBTARGET_CPP_SPEC): Added `!m5'.
13248 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13249 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
13250 to all other SH variants.
13251 (TARGET_DEFAULT): Set to SH1_BIT.
13252 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13253 (BITS_PER_WORD): Raise to 64 on shmedia.
13254 (MAX_BITS_PER_WORD): Change to 64.
13255 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13256 (INT_TYPE_SIZE): Keep as 32.
13257 (UNITS_PER_WORD): Raise to 8 on shmedia.
13258 (MIN_UNITS_PER_WORD): Keep as 4.
13259 (POINTER_SIZE): Raise to 64 on shmedia.
13260 (CONST_OK_FOR_J): New macro.
13261 (CONST_OK_FOR_LETTER_P): Use it.
13262 (processor_type): Add PROCESSOR_SH5.
13263 * config/sh/sh.md: Conditionalize all expands, insns and
13264 splits to TARGET_SH1.
13266 (addsi3_compact): Renamed from...
13267 (addsi3): Now an expand.
13268 (addsi3_media, subsi3_media): New insns.
13269 (subsi3): Don't negate constants with SHmedia.
13271 * hooks.c: New file.
13272 * hooks.h: New file.
13273 * Makefile.in (HOOKS_H): New.
13274 (TARGET_DEF_H): Added $(HOOKS_H).
13275 (OBJS): Added hooks.o.
13276 (cfgcleanup.o, bb-reorder.o): Added target.h.
13277 (hooks.o): Added dependencies.
13278 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13279 (TARGET_INITIALIZER): this.
13280 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13281 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13282 * bb-reorder.c: Include target.h.
13283 (reorder_basic_blocks): Skip if cannot modify jumps.
13284 * cfgcleanup.c: Include target.h.
13285 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13287 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13289 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13290 Protect jump delay slot instructions with .set noreorder and
13293 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13295 * config/mips/mips.md (casesi_internal_di): Calculate
13296 the index into the target offset table correctly.
13298 2002-02-08 Richard Henderson <rth@redhat.com>
13300 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13301 * final.c (output_addr_const): Accept and discard SUBREG.
13302 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13303 mark them unknown instead.
13304 (simplify_subtraction): Handle RTX_UNKNOWN.
13305 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13307 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13309 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13311 2002-02-08 Richard Henderson <rth@redhat.com>
13313 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13315 2002-02-08 Andreas Jaeger <aj@suse.de>
13317 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13318 * config/i386/t-linux64: New file.
13320 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13322 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13323 * c-parse.in (compstmt): Clear last_expr_type.
13325 2002-02-07 Richard Henderson <rth@redhat.com>
13327 * loop.c (strength_reduce): Sink final_value when not
13330 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13332 * config/sparc/freebsd.h: Fix mismatched spec {.
13334 2002-02-07 Richard Henderson <rth@redhat.com>
13336 * cfgrtl.c: Include recog.h and insn-config.h.
13337 (keep_with_call_p): Fix general_operand invocation.
13338 * Makefile.in (cfgrtl.o): Update dependencies.
13340 2002-02-07 Kazu Hirata <kazu@hxi.com>
13342 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13343 comment. Accept HImode only if TARGET_H8300.
13345 2002-02-07 Eric Christopher <echristo@redhat.com>
13347 * config/mips/crtn.asm: Cleanup #ifdefs.
13349 2002-02-07 Eric Christopher <echristo@redhat.com>
13351 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13352 register 7 as RA instead of $31.
13353 * config/mips/crtn.asm: Ditto.
13354 * config/mips/mips.c (mips_move_2words): Add case for
13355 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13356 (compute_frame_size): Fix typo.
13357 (save_restore_insns): Ditto. Make documentation about using
13358 register $7 as return register more precise.
13359 (mips_expand_epilogue): Fix comment. Add code to work around not
13360 being able to add to the stack pointer directly.
13361 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13362 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13365 2002-02-07 Tom Rix <trix@redhat.com>
13367 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13368 immediates in ldu and stdu DS opcode field.
13369 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13370 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13371 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13373 2002-02-07 Jeff Sturm <jsturm@one-point.com>
13375 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13376 offset for stack bias.
13378 2002-02-07 H.J. Lu <hjl@gnu.org>
13380 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13382 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
13384 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13386 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
13388 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13389 * i386.c (x86_order_regs_for_local_alloc): New global function.
13390 * i386.h (REG_ALLOC_ORDER): CLeanup.
13391 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13393 2002-02-07 Richard Henderson <rth@redhat.com>
13395 PR optimization/2463
13396 * alias.c (find_base_value): Recall base values for fixed hard regs.
13397 * loop.c (loop_regs_update): Don't use single_set on non-insns.
13399 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
13401 * config/mips/mips.md (define_delay) [mips16]: Adjust required
13404 2002-02-06 Richard Henderson <rth@redhat.com>
13407 * stmt.c (resolve_operand_name_1): Take more care with mixed
13408 named and unnamed operands.
13410 2002-02-06 Janis Johnson <janis187@us.ibm.com>
13411 Jan Hubicka <jh@suse.cz>
13413 * loop.c (remove_constant_addition): Avoid clobbering a shared
13416 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13418 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13419 * config/s390/t-linux64: New file.
13420 * config/s390/libgcc-glibc.ver: New file.
13422 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13424 * config/s390/linux64.h: Delete file.
13425 * config/s390/s390x.h: New file.
13426 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13427 as target header file.
13428 * config/s390/linux.h (TARGET_VERSION): Define depending on
13429 DEFAULT_TARGET_64BIT.
13430 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13431 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13432 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13433 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13434 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13435 (EXTRA_SPEC): New define.
13436 * config/s390/s390.h (TARGET_VERSION): Define depending on
13437 DEFAULT_TARGET_64BIT.
13438 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13440 2002-02-06 Jason Merrill <jason@redhat.com>
13442 * c-decl.c (finish_function): Warn about a non-void function with
13443 no return statement and no abnormal exit.
13444 (current_function_returns_abnormally): New variable.
13445 (start_function): Clear it.
13446 (struct c_language_function): Add returns_abnormally.
13447 (push_c_function_context): Save it.
13448 (pop_c_function_context): Restore it.
13449 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13450 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13451 an explicit return type.
13452 * c-tree.h: Declare current_function_returns_abnormally.
13453 (C_FUNCTION_IMPLICIT_INT): New macro.
13454 * c-typeck.c (build_function_call): Set it.
13455 (c_expand_return): Set current_function_returns_value even if the
13456 value is erroneous.
13458 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13461 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13462 unsafe for reevaluation.
13464 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13467 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13468 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13470 2002-02-06 Richard Henderson <rth@redhat.com>
13472 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13473 be a general_operand. Dest for function value must be a pseudo.
13475 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13477 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13478 as SYMBOL_REFs from the constant pool.
13480 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
13482 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13483 passed by invisible reference.
13485 2002-02-05 Richard Henderson <rth@redhat.com>
13487 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13489 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
13491 Implement using "base addresses" in insn operands as default.
13492 * config/mmix/mmix.c (mmix_conditional_register_usage): if
13493 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13494 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13495 used to read the rtx value.
13496 (mmix_target_asm_function_epilogue): Fix spacing.
13497 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13498 (mmix_legitimate_address): Ditto.
13499 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13500 should be loaded with a GETA insn. Don't allocate needless extra
13501 char for nul termination and fix misleading comment.
13502 (mmix_print_operand_address): Handle constants if
13503 TARGET_BASE_ADDRESSES.
13504 (mmix_output_register_setting): Use base addressing if
13505 TARGET_BASE_ADDRESSES and the number of insns is 3.
13506 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13507 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13508 to use R as constraint, add LDA to match s.
13509 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13510 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13511 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13512 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13513 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13514 order with other fixed registers.
13515 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13516 other parameter/call-clobbered registers.
13517 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13518 -mbase-addresses, -mno-base-addresses.
13519 (MMIX Options): Ditto.
13521 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13523 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13525 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
13527 * config/rs6000/altivec.h: Change elem to _S_elem.
13529 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13531 * config/netbsd.h (WCHAR_TYPE): Define.
13532 (WCHAR_TYPE_SIZE): Ditto.
13533 (WINT_TYPE): Ditto.
13534 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13535 (WCHAR_UNSIGNED): Ditto.
13536 (WCHAR_TYPE_SIZE): Ditto.
13537 (WINT_TYPE): Ditto.
13538 * config/arm/netbsd.h: Likewise.
13539 * config/i386/netbsd-elf.h: Likewise.
13540 * config/i386/netbsd.h: Likewise.
13541 * config/m68k/netbsd-elf.h: Likewise.
13542 * config/m68k/netbsd.h: Likewise.
13543 * config/ns32k/netbsd.h: Likewise.
13544 * config/sparc/netbsd.h: Likewise.
13545 * config/vax/netbsd.: Likewise.
13547 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
13549 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13550 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
13551 (TARGET_INITIALIZER): this.
13552 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13553 (BITFIELD_NBYTES_LIMITED): Markup fix.
13554 * tree.h (default_ms_bitfield_layout_p): Declare.
13555 (record_layout_info): Added prev_field.
13556 * tree.c (default_ms_bitfield_layout_p): New fn.
13557 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13558 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13559 * stor-layout.c: Include target.h.
13560 (start_record_layout): Initialize prev_field.
13561 (place_field): Handle MS bit-field layout, and disregard
13562 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13563 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
13564 * Makefile.in (stor-layout.o): Adjust dependencies.
13566 2002-02-05 Jason Merrill <jason@redhat.com>
13568 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13570 2002-02-05 Andreas Jaeger <aj@suse.de>
13572 * crtstuff.c: Fix comments.
13574 2002-02-05 Richard Henderson <rth@redhat.com>
13577 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13578 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13581 * config/mips/mips.c (function_arg): Handle TImode.
13582 (function_arg_advance): Likewise.
13584 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13586 * config/rs6000/altivec.h (vec_step_help): Rename to
13589 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13591 * config/rs6000/altivec.h: Fix typos.
13593 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13595 * config/arm/netbsd.h: Correct a comment.
13597 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13599 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13600 building void typed builtins.
13602 * config/rs6000/altivec.h (vec_ld*): Fix typos.
13603 (vec_step): Implement for C++.
13605 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13607 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13609 2002-02-04 Richard Henderson <rth@redhat.com>
13611 * combine.c (nonzero_bits): Re-introduce special case for
13612 sp/fp/ap wrt REGNO_POINTER_ALIGN.
13614 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13616 * doc/extend.texi: Warn about unsupported usage of altivec
13619 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13620 (altivec_predicate_*): New.
13622 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13623 Add C++ version of vec_*() functions.
13625 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13626 (bdesc_2arg): Remove altivec predicates.
13627 (altivec_expand_builtin): Handle predicates.
13628 (altivec_init_builtins): Handle predicates.
13629 (altivec_expand_predicate_builtin): New.
13631 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13633 * pa.c (DO_FRAME_NOTES): Move forward.
13634 (store_reg): Revise handling of frame notes.
13635 (load_reg): Likewise.
13636 (set_reg_plus_d): Likewise.
13637 (hppa_expand_prologue): Likewise.
13638 (hppa_expand_epilogue): Likewise.
13640 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13642 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13644 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13646 PR c/4475, c++/3780:
13647 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13648 * c-common.h (SWITCH_TYPE): Define.
13649 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13650 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13651 Rename spareness variable to sparseness.
13652 (expand_end_case_type): Renamed from expand_end_case, use orig_type
13653 if non-NULL instead of TREE_TYPE (orig_index).
13654 * tree.h (expand_end_case_type): Renamed from expand_end_case.
13655 (expand_end_case): Define using expand_end_case_type.
13656 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13657 to expand_end_case_type.
13658 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13660 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13662 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13663 (BIGGEST_ALIGNMENT): Change to 128.
13665 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13667 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13669 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13671 * pa.md (call_internal_reg_64bit): Remove unused variable.
13673 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
13675 * config/arm/arm.h (machine_function): Add uses_anonymous_args
13677 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13678 * config/arm/arm.c (current_function_anonymous_args): Delete,
13679 replace uses with cfun->machine->uses_anonymous_args.
13680 (arm_reorg): Do not reset uses_anonymous_args.
13682 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13683 any geenral register.
13685 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
13687 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13690 2002-02-04 Richard Henderson <rth@redhat.com>
13692 * combine.c (force_to_mode): Remove STACK_BIAS code.
13693 (nonzero_bits): Likewise. Replace sp/fp special case with
13694 REGNO_POINTER_ALIGN.
13696 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13697 (HARD_FRAME_POINTER_REGNUM): New.
13698 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13699 (FIXED_REGS, CALL_USED_REGS): Update.
13700 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13701 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13702 (HARD_REGNO_NREGS): Update for SFP.
13703 (STACK_POINTER_OFFSET): Include bias here ...
13704 (FIRST_PARM_OFFSET): ... not here.
13705 (STACK_BIAS): Remove.
13706 (INIT_EXPANDERS): New.
13707 (STARTING_FRAME_OFFSET): Do not include bias.
13708 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13709 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13710 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13711 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13712 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13713 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13714 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13715 (MUST_SAVE_REGISTER): Likewise.
13716 (sparc_flat_function_prologue): Likewise.
13717 (sparc_flat_function_epilogue): Likewise.
13718 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13719 (sparc_init_modes): SFP is GENERAL_REGS.
13720 (sparc_builtin_saveregs): SFP does not have bias applied.
13722 2002-02-04 Richard Henderson <rth@redhat.com>
13724 * config/alpha/alpha.c (current_function_is_thunk): Don't check
13725 current_function_is_thunk.
13726 (alpha_sa_mask): Distinguish between current_function_is_thunk
13727 called from ASM_OUTPUT_MI_THUNK and not.
13728 (alpha_does_function_need_gp): Thunks always need gp.
13729 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13730 (alpha_output_mi_thunk_osf): New.
13731 * config/alpha/alpha-protos.h: Update.
13732 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13734 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
13736 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13737 function types, not when they're taken away.
13739 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
13741 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13742 CODE_LABEL and jump table when replacing a table jump with a
13745 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13747 * config/s390/s390-protos.h (legitimize_la_operand,
13748 s390_secondary_input_reload_class, s390_plus_operand,
13749 s390_expand_plus_operand): Add prototypes.
13751 config/s390/s390.c (s390_secondary_input_reload_class,
13752 s390_plus_operand, s390_expand_plus_operand): New functions.
13754 (struct s390_address): New member 'pointer'.
13755 (s390_decompose_address): Compute it.
13756 (legitimate_la_operand_p): Use it.
13757 (legitimize_la_operand): New function.
13758 (movti, movdi, movdf splitters): Call it.
13760 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13761 (PREDICATE_CODES): Add s390_plus_operand.
13763 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13764 (la_ccclobber): Allow GENERAL_REGS as output operand.
13766 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13767 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13768 (*la_64, *la_31, reload_indi, reload_insi): ... these.
13770 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13772 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13773 register names for regular asm () construct.
13775 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13777 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13780 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13782 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13785 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
13787 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13788 constant pool to be identical by string address and index.
13790 2002-02-04 Anthony Green <green@redhat.com>
13792 * output.h (SECTION_OVERRIDE): Define.
13793 * varasm.c (named_section): Obey SECTION_OVERRIDE.
13795 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13797 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13798 by existing arm*-*-netbsd* (a.out) target.
13799 (ns32k-*-netbsdelf*): Likewise.
13800 (sparc-*-netbsdelf*): Likewise.
13801 (vax-*-netbsdelf*): Likewise.
13803 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
13805 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13806 headers and libobjc headers.
13808 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
13810 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13811 (_mingw.h): Remove duplicate include.
13813 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13815 * config.gcc: Set cpu_type to m68k for 68010, as well.
13816 (m68010-*-netbsdelf*): New...
13817 (m68k*-*-netbsdelf*): ...targets.
13818 * config/m68k/netbsd-elf.h: New file.
13820 2002-02-02 Kazu Hirata <kazu@hxi.com>
13822 * config/h8300/h8300.c (hand_list): Move inside function_arg.
13824 2002-02-02 Kazu Hirata <kazu@hxi.com>
13826 * config/h8300/h8300.c (h8_push_ops): Move inside
13828 (h8_pop_ops): Likewise.
13829 (h8_move_ops): Likewise.
13831 2002-02-02 Kazu Hirata <kazu@hxi.com>
13833 * config/h8300/h8300.c (os_task): Make it static.
13834 (monitor): Likewise.
13835 (pragma_saveall): Likewise.
13837 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
13839 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13840 constant is a valid sign-extension for Pmode.
13842 2002-02-02 Kazu Hirata <kazu@hxi.com>
13844 * config/h8300/h8300.c: Fix formatting.
13846 2002-02-02 Kazu Hirata <kazu@hxi.com>
13848 * config/h8300/h8300.md: Fix formatting.
13850 2002-02-02 Kazu Hirata <kazu@hxi.com>
13852 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13853 predicates of operands[1]. Split the patterns for each
13856 2002-02-02 Kazu Hirata <kazu@hxi.com>
13858 * config/h8300/h8300.md (xor patterns): Tighten the predicates
13859 of operands[1] to register_operand.
13861 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13863 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13864 * cpphash.c (_cpp_init_hashtable): Similarly.
13865 * cppinit.c (cpp_create_reader): Default the signed_char flag.
13866 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13867 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13868 (cpp_handle_option): Handle the new options.
13869 * cpplex.c (cpp_interpret_charconst): Use new flag.
13870 * cpplib.h (struct cpp_options): New member signed_char.
13871 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13872 (cpp_options): Handle -fsigned-char and -funsigned-char.
13873 (static_specs): Remove signed_char_spec.
13874 (do_spec1): Don't handle %c.
13875 * system.h: Poison SIGNED_CHAR_SPEC.
13876 * tradcif.y (yylex): Use flag_signed_char.
13877 * tradcpp.h (flag_signed_char): New.
13878 * tradcpp.c (flag_signed_char): New.
13879 (main): Handle new command-line options.
13880 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13882 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13883 * avr/avr.h: Remove old comments.
13884 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13885 (CC1_SPEC): Pass -fsigned-char if -mic*.
13886 (SIGNED_CHAR_SPEC): Remove.
13888 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13890 2002-02-01 Eric Christopher <echristo@redhat.com>
13892 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13893 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13894 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13895 (ASM_OUTPUT_REG_POP): Ditto.
13897 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13899 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13902 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13904 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13906 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13909 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13912 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13914 * cfganal.c: Include tm_p.h.
13915 (keep_with_call_p): Fix the test that determines if a register holds
13916 the return value of a call.
13918 2002-02-01 DJ Delorie <dj@redhat.com>
13920 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13921 we are given conflicting registers, switch to the other one we
13922 had allocated for us.
13923 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13924 as TImode so we know when the "other" register is available.
13926 2002-02-01 David O'Brien <obrien@FreeBSD.org>
13928 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13931 2002-02-01 Janis Johnson <janis187@us.ibm.com>
13933 * cfganal.c (keep_with_call_p): New function.
13934 (flow_call_edges_add): Prevent splitting a block between a call and
13935 a single-set instruction that should be kept in the same block.
13937 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
13939 * doc/install.texi (avr): Update outdated URL.
13941 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
13943 * config/stormy16/stormy16.md (pushqi): New.
13947 (movhi): Remove stack operands.
13949 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
13950 nonimmediate_nonstack_operand.
13951 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
13953 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
13956 2002-01-31 Jason Merrill <jason@redhat.com>
13958 * Makefile.in (c-parse.c): Handle .output file.
13959 * objc/Make-lang.in (objc-parse.c): Likewise.
13961 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
13963 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
13964 the -me[lb] option is given. Don't output the default flag
13967 2002-01-31 Zack Weinberg <zack@codesourcery.com>
13969 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
13970 the primary source file; this has not been done yet.
13971 * c-decl.c (c_expand_body): Reset input_filename from
13972 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
13974 2002-01-31 Kazu Hirata <kazu@hxi.com>
13976 * rtlanal.c (subreg_regno_offset): Do not use
13977 SUBREG_REGNO_OFFSET.
13978 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
13979 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
13981 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
13983 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
13984 version rather than GNATS version in --version output.
13986 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
13988 * ifcvt.c (noce_process_if_block): Make a copy of the destination
13989 when copying back from a temporary.
13991 2002-01-30 Richard Henderson <rth@redhat.com>
13993 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
13994 and new_dest are the same.
13996 2002-01-30 Richard Henderson <rth@redhat.com>
13999 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14000 * rtl.c (note_insn_name): Update.
14001 * emit-rtl.c (remove_unnecessary_notes): Kill it.
14002 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
14003 to perform loop rotation.
14004 (expand_exit_loop_top_cond): New.
14005 * tree.h (expand_exit_loop_top_cond): Declare it.
14006 * c-semantics.c (genrtl_while_stmt): Use it.
14007 (genrtl_for_stmt): Likewise.
14009 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
14011 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14012 arguments to 64-bit boundaries on 64-bit ABIs.
14014 2002-01-30 Steve Ellcey <sje@cup.hp.com>
14016 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14018 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14020 * c-decl.c (grokdeclarator): Handle type being a typedef for an
14023 2002-01-30 David O'Brien <obrien@FreeBSD.org>
14025 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14026 * config/sparc/sparc_bi.h: Remove file.
14027 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14029 2002-01-30 Richard Henderson <rth@redhat.com>
14031 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14033 2002-01-30 Zack Weinberg <zack@codesourcery.com>
14035 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14037 2002-01-30 Jason Merrill <jason@redhat.com>
14039 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14040 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14041 (reg_save): Use DW_CFA_offset_extended_sf instead.
14043 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14045 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14047 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14050 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
14052 * rs6000.md ("*call_value_local32"): Remove constraints.
14053 ("*call_value_local64"): Same.
14054 ("*call_value_indirect_nonlocal_aix32"): Same.
14055 ("*call_value_nonlocal_aix32"): Same.
14056 ("*call_value_indirect_nonlocal_aix64"): Same.
14057 ("*call_value_nonlocal_aix64"): Same.
14058 ("*call_value_nonlocal_sysv"): Same.
14060 2002-01-29 Richard Henderson <rth@redhat.com>
14062 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14064 2002-01-29 Richard Henderson <rth@redhat.com>
14066 * expr.c (force_operand): Ignore flag_pic for detecting pic
14068 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14069 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14070 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14071 instead of open-coded loop.
14072 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14073 be fixed when in use.
14075 2002-01-29 Richard Henderson <rth@redhat.com>
14077 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14078 * sched-rgn.c (propagate_deps): Update them.
14079 * sched-deps.c (sched_analyze_insn): Update them. Flush the
14080 clobbers list when either gets too long.
14082 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14084 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14085 and INDEX_REGS the same as GENERAL_REGS.
14086 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14088 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14090 * tree.c (build_nonstandard_integer_type): Correct prototype.
14092 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
14094 * config/s390/s390.md (movstrsico, movstrdix_64,
14095 movstrsix_31): Remove, replace by ...
14096 (movstrdi_short, movstrsi_short, movstrdi_long,
14097 movstrsi_long): ... these. New.
14098 (movstrdi, movstrsi): Adapt.
14100 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14101 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14102 Remove unnecessary CC clobber.
14103 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14104 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14106 (divmoddi4): Don't partially initialize TImode register.
14108 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
14110 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14112 2002-01-29 Richard Henderson <rth@redhat.com>
14114 * flow.c (print_rtl_and_abort): Remove.
14115 (print_rtl_and_abort_fcn): Remove.
14116 (verify_local_live_at_start): Use dump_bb instead.
14117 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14118 (verify_wide_reg_1): Return 2 on mode test failure.
14120 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14122 PR c/3325, c/3326, c/2511, c/3347
14123 * c-decl.c (enum_decl_context): Remove BITFIELD.
14124 (grokdeclarator): Take bitfield width as an input.
14125 Ensure bitfields are given the correct type. Perform
14126 bitfield width validation with build_bitfield_integer_type
14127 rather than waiting for finish_struct.
14128 (grok_typename, grok_typename_in_parm_context, start_decl,
14129 push_parmdecl, grokfield, start_function): Update calls to
14131 (build_bitfield_integer_type): New function.
14132 (finish_struct): Move bitfield validation to grokdeclarator
14133 and build_bitfield_integer_type.
14134 * tree.c (build_nonstandard_integer_type): New function.
14135 * tree.h (build_nonstandard_integer_type): New prototype.
14137 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14139 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14142 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14143 don't ignore unrecognized -W* options.
14144 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14145 * cpplib.h (cpp_handle_option): Adjust prototype.
14146 * c-decl.c (c_decode_options): Pass 0 as last argument to
14150 * gcc.c (cpp_unique_options): Split from cpp_options.
14151 (cpp_options): Source cpp_unique_options.
14152 (default_compilers): Use cpp_unique_options instead of cpp_options
14153 when used together with cc1_options.
14154 (static_specs): Add cpp_unique_options.
14155 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14156 when used together with cc1_options.
14158 2002-01-29 Kazu Hirata <kazu@hxi.com>
14160 * config/h8300/h8300-protos.h: Update the prototype of
14162 * config/h8300/h8300.c (output_a_shift): Remove an unused
14163 argument 'insn'. Remove redundant code.
14164 * config/h8300/h8300.md: Adust to the new prototype of
14167 2002-01-29 Kazu Hirata <kazu@hxi.com>
14169 * config/h8300/h8300-protos.h: Update the prototypes of
14170 emit_a_rotate and expand_a_rotate.
14171 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14172 first argument to 'enum rtx_code'.
14173 (expand_a_rotate): Likewise.
14175 2002-01-28 Kazu Hirata <kazu@hxi.com>
14177 * config/h8300/h8300-protos.h: Update the prototype of
14179 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14181 * config/h8300/h8300.md: Adjust to the new prototype.
14183 2002-01-28 Kazu Hirata <kazu@hxi.com>
14185 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14188 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14190 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14191 is a fixed register before returning pic_offset_table_rtx.
14192 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14193 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14195 2002-01-28 Jason Merrill <jason@redhat.com>
14197 * dwarf2.h: Sync with src version.
14199 2002-01-28 Paul Koning <pkoning@equallogic.com>
14201 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14202 BT_FN_VOID_PTR_VAR.
14203 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14204 * doc/extend.texi (__builtin_prefetch): Update documentation:
14205 first argument is now const void ptr.
14207 2002-01-28 Kazu Hirata <kazu@hxi.com>
14209 * config/h8300/h8300-protos.h: Remove an unused prototype.
14211 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
14213 * toplev.c (lang_independent_init): Round up identifier size.
14215 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14217 * config.gcc: Revert previous change.
14219 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
14221 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14223 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14225 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14226 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
14227 other non-elf netbsd config frags.
14228 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14229 collect2 will does that.
14230 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14231 shared-lib frobbing will work.
14233 2002-01-28 Kazu Hirata <kazu@hxi.com>
14235 * config/h8300/h8300.h: Fix formatting.
14236 * config/h8300/h8300.md: Likewise.
14238 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
14240 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14241 the old, removed AAA_standards fix.
14242 * fixinc/fixincl.x: Rebuilt.
14244 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
14246 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14247 atexit call in crtbegin, hooked in after call to frame_dummy;
14248 register EH before registering __fini__start.
14250 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
14252 * config/rs6000/altivec.h: Remove spurious semicolons.
14254 2002-01-27 Kazu Hirata <kazu@hxi.com>
14256 * config/h8300/h8300.md: Replace dead bit extraction patterns
14257 with ones that work.
14259 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14261 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14262 if not STRICT_ALIGNMENT.
14263 * rtl.h (MEM_ALIGN): Likewise.
14265 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
14267 * doc/invoke.texi (-fdump-translation-unit): Revert this
14268 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
14270 2002-01-27 Kazu Hirata <kazu@hxi.com>
14272 * config/h8300/h8300.md (define_constants): New.
14273 (anonymous patterns) Use defined constants appropriately.
14275 2002-01-27 Kazu Hirata <kazu@hxi.com>
14277 * config/h8300/h8300.c (function_arg): Remove redundant code.
14279 2002-01-26 Richard Henderson <rth@redhat.com>
14281 * sched-deps.c (reg_pending_uses_head): New.
14282 (reg_pending_barrier): Rename from reg_pending_sets_all.
14283 (find_insn_list): Don't mark inline.
14284 (find_insn_mem_list): Remove.
14285 (add_dependence_list, add_dependence_list_and_free): New.
14286 (flush_pending_lists): Replace only_write param with separate
14287 for_read and for_write parameters. Update all callers. Use
14288 add_dependence_list_and_free.
14289 (sched_analyze_1): Do not add reg dependencies here; just set
14290 the pending bits. Use add_dependence_list.
14291 (sched_analyze_2): Likewise.
14292 (sched_analyze_insn): Replace schedule_barrier_found with
14293 reg_pending_barrier. Add all dependencies for pending reg
14294 uses, sets, and clobbers.
14295 (sched_analyze): Don't add reg dependencies for calls, just
14296 set pending bits. Use regs_invalidated_by_call. Treat
14297 sched_before_next_call as a normal list, not a fake insn.
14298 (init_deps): No funny init for sched_before_next_call.
14299 (free_deps): Free pending mems lists. Don't zero reg_last.
14300 (init_deps_global): Init reg_pending_uses.
14301 (finish_deps_global): Free it.
14302 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14303 (find_insn_mem_list): Remove.
14304 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14305 (propagate_deps): Use them. Zero temp mem lists.
14307 2002-01-26 Richard Henderson <rth@redhat.com>
14309 * Makefile.in (CRTSTUFF_CFLAGS): New.
14310 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14311 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14312 crtstuff.c instead of alpha assembly version.
14313 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14314 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14315 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14316 (__do_global_dtors_aux): Mark used.
14317 (frame_dummy, __do_global_ctors_aux): Mark used.
14318 (fini_dummy, init_dummy): Remove.
14320 * config/alpha/crtbegin.asm: Remove file.
14321 * config/alpha/crtend.asm: Remove file.
14322 * config/alpha/t-crtbe: Remove file.
14323 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14324 (LINK_EH_SPEC): New.
14326 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14327 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14328 calling constructors.
14329 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14331 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14332 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14333 CRT_END_INIT_DUMMY hack.
14334 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14335 FORCE_{INIT,FINI}_SECTION_ALIGN.
14337 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14338 FORCE_{INIT,FINI}_SECTION_ALIGN.
14340 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14341 invocation sequence.
14342 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14344 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14345 (FORCE_CODE_SECTION_ALIGN): New.
14347 2002-01-26 Richard Henderson <rth@redhat.com>
14349 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14351 2002-01-26 Richard Henderson <rth@redhat.com>
14353 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14354 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14356 2002-01-26 Kazu Hirata <kazu@hxi.com>
14358 * config/h8300/h8300.md: Remove bit extraction patterns that
14359 cannot be triggered.
14360 Restrict each bit extraction pattern to a variant on which the
14363 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14365 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14367 2002-01-26 Kazu Hirata <kazu@hxi.com>
14369 * config/h8300/h8300.md: Remove bit test patterns that cannot
14371 Restrict each bit test pattern to a variant on which the
14374 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14376 * builtins.c (expand_builtin_strncat): Remove redundant check for
14379 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14381 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14383 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14386 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14388 * dbxout.c (dbxout_init): Use assemble_name rather than just
14389 stripping off the first character.
14390 (dbxout_source_file): Likewise.
14392 2002-01-25 DJ Delorie <dj@redhat.com>
14394 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14395 using rtx_equal_p, not by comparing pointers.
14397 2002-01-25 Steve Ellcey <sje@cup.hp.com>
14399 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14400 for PIC_OFFSET_TABLE_REGNUM.
14401 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14403 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14405 * config.gcc (x86_64-*-freebsd*): New target.
14406 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14408 (i[34567]86-*-freebsd*): Don't include svr4.h.
14409 * config/i386/freebsd64.h: New file.
14411 2002-01-25 Douglas B Rupp <rupp@gnat.com>
14413 * config/alpha/x-vms (version): Make static.
14415 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14416 in previous checkin.
14418 * Makefile.in (install-headers-cp): New target.
14419 * config.gcc (alpha-dec-*vms*): Install headers with
14422 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14424 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14427 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14429 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14430 of compare_tree_int.
14431 (expand_builtin_strncat): Likewise.
14432 * c-decl.c (finish_struct): Use tree_low_cst.
14433 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14434 * tree.c (compare_tree_int): Likewise.
14436 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14438 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14439 adjustments even if they are implemented by more than two insns.
14441 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14443 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14444 * df.h (struct ref): Kill B.
14445 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14447 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14448 * flow.c (propagate_one_insn): Use it.
14449 (mark_used_regs): Handle NIL.
14451 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14453 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14456 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14458 * rs6000.md (prefetch): Make address V4SI mode so that the address
14459 is restricted to legitimate form for instruction.
14461 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14463 * doc/install.texi (xtensa-*-elf): New target.
14464 (xtensa-*-linux*): New target.
14465 * doc/contrib.texi: Add myself.
14467 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14469 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14470 purpose register to hold an SImode (or smaller) value.
14472 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14474 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14476 * crtstuff.c: Likewise.
14478 2002-01-25 Kazu Hirata <kazu@hxi.com>
14480 * config/h8300/h8300.md (negation patterns): Tighten
14481 predicates to register_operand.
14483 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
14485 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14488 * builtins.c (expand_builtin_prefetch): Same.
14490 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14492 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14495 2002-01-24 Kazu Hirata <kazu@hxi.com>
14497 * config/h8300/h8300.c (print_operand): Remove support for
14498 operand character 'A'.
14499 * config/h8300/h8300.md (three anonymous patterns): Replace
14500 operand character 'A' with either 'T' or 'S'.
14502 2002-01-24 Kazu Hirata <kazu@hxi.com>
14504 * config/h8300/h8300.c (print_operand): Remove support for
14505 operand character 'U'.
14507 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
14509 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14511 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
14513 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14514 values to be assigned to the stack pointer.
14516 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14518 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14519 to const_double needs to be done right for big-endian systems.
14521 2002-01-24 Jason Merrill <jason@redhat.com>
14524 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14525 to can_throw_internal.
14527 2002-01-23 Richard Henderson <rth@redhat.com>
14529 * fold-const.c (fold): Change UINT_MAX test to check vs precision
14530 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
14532 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14534 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14535 (symGOT2reg): Use them, then set as GOT value as unchanging.
14536 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
14537 as a temporary, if possible.
14538 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
14539 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14541 2002-01-23 Kazu Hirata <kazu@hxi.com>
14543 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14544 accept to accept 0x80 as operands[2].
14546 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14548 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14550 2002-01-23 Richard Henderson <rth@redhat.com>
14552 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14554 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
14556 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14557 (parmlist_or_identifiers_1): Verify that only a parmlist follows
14560 2002-01-23 Richard Henderson <rth@redhat.com>
14562 * expr.c (move_by_pieces_1): Extend size before negation.
14564 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14565 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14566 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14567 * config/m68k/t-m68kelf: Likewise.
14569 2002-01-23 Bob Wilson <bob.wilson@acm.org>
14571 * config/xtensa/elf.h: New file.
14572 * config/xtensa/lib1funcs.asm: New file.
14573 * config/xtensa/lib2funcs.S: New file.
14574 * config/xtensa/linux.h: New file.
14575 * config/xtensa/t-xtensa: New file.
14576 * config/xtensa/xtensa-config.h: New file.
14577 * config/xtensa/xtensa-protos.h: New file.
14578 * config/xtensa/xtensa.c: New file.
14579 * config/xtensa/xtensa.h: New file.
14580 * config/xtensa/xtensa.md: New file.
14581 * config.gcc (xtensa-*-elf*): New target.
14582 (xtensa-*-linux*): New target.
14583 * cse.c (canon_hash): Compare rtx pointers instead of register
14584 numbers. This is required for the Xtensa port.
14585 * integrate.c (copy_insn_list): Handle case where the static
14586 chain is in memory and the memory address has to be copied to
14588 * doc/invoke.texi (Option Summary): Add Xtensa options.
14589 (Xtensa Options): New node.
14590 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14592 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14594 * diagnostic.c (internal_error): Do ICE suppression only
14595 when ENABLE_CHECKING is not defined.
14597 * c-typeck.c (require_complete_type): Return error_mark_node
14598 if type is error_mark_node.
14600 2002-01-23 Janis Johnson <janis187@us.ibm.com>
14602 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14603 -Os and issue a warning.
14605 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14607 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14608 current (lack of) need for host configuration by hand.
14610 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14611 references. Documentation of some target macros moved from
14612 hostconfig.texi to tm.texi.
14614 2002-01-23 Will Cohen <wcohen@redhat.com>
14616 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14619 2002-01-23 Kazu Hirata <kazu@hxi.com>
14621 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14624 2002-01-23 Jason Merrill <jason@redhat.com>
14626 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14628 * function.c (assign_parms): Don't put args of inline functions
14629 into registers when not optimizing.
14631 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
14633 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14634 (prologue_use): New pattern.
14635 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14636 preference to gen_rtx_USE.
14637 (thumb_expand_prologue): Use gen_prologue_use in preference to
14639 (thumb_expand_epilogue): Use gen_prologue_use in preference to
14642 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
14644 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14646 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
14649 * doc/extend.texi: Correct documentation of __alignof__.
14651 2002-01-22 Zack Weinberg <zack@codesourcery.com>
14653 * params.h: Rename arguments of DEFPARAM so that it will be
14654 recognized as a translation keyword.
14656 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14658 * extend.texi: Document altivec functions.
14659 Fix N-bit adjectives in X86 builtin documentation.
14661 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14663 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14664 auto_inc_dec values.
14666 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
14668 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14670 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14672 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14674 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14676 2002-01-22 Richard Henderson <rth@redhat.com>
14678 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14679 copy_insn not copy_rtx.
14681 2002-01-23 Alan Modra <amodra@bigpond.net.au>
14683 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14684 "nonzero" as that might add "1" bits. Ensure "constop" is
14685 properly sign extened.
14686 (force_to_mode): Tweak for sign extended constop.
14688 2002-01-22 Richard Henderson <rth@redhat.com>
14690 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14691 for_each_rtx instead of assuming we're already looking at the MEM.
14692 (split_small_symbolic_mem_operand): Likewise.
14693 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14694 * config/alpha/alpha.md (small symbolic memory splitters): Update.
14696 2002-01-22 Richard Henderson <rth@redhat.com>
14698 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14699 sequence number for the literal.
14700 (divmoddi_internal_er): Likewise.
14702 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14705 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14706 in LIBICONV variable.
14707 * configure: Regenerated.
14709 2002-01-22 Krister Walfridsson <cato@df.lth.se>
14711 * dependence.c (build_def_use): Remove array_idx.
14713 * dwarfout.c (last_filename): Remove.
14714 (output_compile_unit_die): Remove last_filename.
14716 2002-01-22 Roger Sayle <roger@eyesopen.com>
14717 Richard Henderson <rth@redhat.com>
14720 * fold-const.c (fold): Optimize unsigned comparisons against
14721 UINT_MAX (and similar unsigned constants).
14723 2002-01-22 Janis Johnson <janis187@us.ibm.com>
14725 * Makefile.in (loop.o): Depend on OPTABS_H.
14726 * loop.c (emit_prefetch_instructions): Check the prefetch operand
14727 against the predicate.
14730 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14731 for the address operand.
14733 2002-01-22 Richard Henderson <rth@redhat.com>
14735 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14737 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14740 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14741 preprocessor flags.
14743 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
14745 * config.gcc (x86_64-*-netbsd*): New target.
14746 * config/i386/netbsd64.h: New file.
14748 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14750 * regrename.c (kill_value): Fix typo.
14752 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14754 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14756 * config/rs6000/rs6000.h: Same.
14758 * function.c (instantiate_virtual_regs): Remove
14759 STARTING_FRAME_PHASE.
14760 (assign_stack_local_1): Same.
14761 Calculate frame phase.
14763 2002-01-22 Nick Clifton <nickc@redhat.com>
14765 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14766 variable declaration to outer scope in order to simplify
14768 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14769 arm_hard_regno_mode_ok.
14770 * config/arm/arm-protos.h: Add a prototype for
14771 arm_hard_regno_mode_ok.
14772 * config/arm/arm.c (soft_df_operand): Remove now redundant
14773 check for DImode values using IP_REGNUM.
14774 (nonimmediate_soft_df_operand): Remove now redundant check for
14775 DImode values using IP_REGNUM.
14776 (arm_hard_regno_mode_ok): New function. New check: make sure
14777 that DImode values are not stored in IP_REGNUM.
14779 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14781 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14783 2002-01-22 Jason Merrill <jason@redhat.com>
14785 * c-semantics.c (genrtl_compound_stmt): Only check nesting
14786 consistency if this COMPOUND_STMT is scoped.
14788 2002-01-22 Kazu Hirata <kazu@hxi.com>
14790 * predict.c: Fix formatting.
14791 * print-tree.c: Likewise.
14792 * protoize.c: Likewise.
14793 * real.h: Likewise.
14795 * sbitmap.h: Likewise.
14796 * scan.c: Likewise.
14797 * sched-deps.c: Likewise.
14798 * sched-vis.c: Likewise.
14799 * sdbout.c: Likewise.
14800 * sibcall.c: Likewise.
14802 * ssa-ccp.c: Likewise.
14803 * ssa-dce.c: Likewise.
14804 * stmt.c: Likewise.
14805 * stor-layout.c: Likewise.
14806 * system.h: Likewise.
14808 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14810 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14811 if fits in bounds of base type.
14813 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14814 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14815 (add_bound_info, default): If can't find a context, make a
14817 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14819 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
14821 * c-typeck.c (parser_build_binary_op): If result from
14822 build_binary_op is ERROR_MARK just return error_mark_node without
14823 further processing.
14825 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
14827 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14828 Split a.out-specific bits into...
14829 * config/netbsd-aout.h: ...this.
14830 * config/netbsd-elf.h: New file.
14831 * config/alpha/netbsd-elf.h: Remove.
14832 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14833 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14834 (STARTFILE_SPEC): Remove redundant definition.
14835 (ENDFILE_SPEC): Likewise.
14836 (LINK_SPEC): Likewise.
14837 (CPP_SPEC): Likewise.
14838 (ASM_SPEC): Likewise.
14839 (LIB_SPEC): Likewise.
14840 (SWITCH_TAKES_ARG): Likewise.
14841 (TARGET_MEM_FUNCTIONS): Likewise.
14842 (CPP_PREDEFINES): Redefine.
14843 (ASM_FINAL_SPEC): Remove redefinition.
14844 (ASM_COMMENT_START): Redefine.
14845 (FUNCTION_PROFILER): Define.
14846 (TARGET_VERSION): Redefine.
14847 Comment and formatting cleanup.
14848 * config/i386/netbsd.h: Include <netbsd-aout.h>.
14849 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14850 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14851 big- or little-endian.
14852 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14853 * config.gcc (*-*-netbsd*): Add definitions common to all
14855 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14856 gnu_ld definitions. Add netbsd-elf.h to and remove
14857 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
14858 tmake_file, and don't lose previous tmake_file contents.
14859 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14860 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14861 gnu_ld definitions. Add netbsd-elf.h to tm_file.
14862 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14863 (mipsel-*-netbsd*): Rename this to...
14864 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
14865 mips/little.h to tm_file for mips*el-*.
14866 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14867 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14868 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14870 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14872 * pa-protos.h (reg_before_reload_operand): New function prototype.
14873 * pa.c (reg_before_reload_operand): New function implementation.
14874 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
14875 contraints to "*m".
14877 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14879 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14881 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14883 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14884 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14885 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14886 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14887 (ENDFILE_SPEC): Undefine.
14888 (STARTFILE_SPEC): Redefine for PA.
14890 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14892 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14894 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
14896 * config.gcc: Add entries to supported PowerPC --with-cpu
14899 2002-01-21 Jakub Jelinek <jakub@redhat.com>
14901 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14902 true for 64-bit mode only SSE registers in 32-bit mode.
14904 2002-01-21 Kazu Hirata <kazu@hxi.com>
14906 * unwind-dw2.c: Fix formatting.
14907 * unwind-dw2-fde.c: Likewise.
14908 * unwind-dw2-fde.h: Likewise.
14909 * unwind-pe.h: Likewise.
14910 * varasm.c: Likewise.
14911 * varray.h: Likewise.
14913 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
14915 Remove workaround for register stack overwrite bug in mmix.
14916 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14917 support for TARGET_REG_STACK_FILL_BUG.
14918 * config/mmix/mmix.h: Remove member has_call_without_parameters.
14919 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14921 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14922 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14923 -mno-reg-stack-fill-bug-workaround.
14924 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14925 machine member has_call_without_parameters.
14926 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14927 -mreg-stack-fill-bug-workaround and
14928 -mno-reg-stack-fill-bug-workaround.
14929 (MMIX Options): Ditto.
14931 2002-01-21 Kazu Hirata <kazu@hxi.com>
14933 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
14935 Remove redundant code.
14937 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
14939 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
14940 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14941 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14942 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
14943 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
14944 out target macro definitions and non-target-specific comments
14945 mostly taken from old versions of the manual.
14947 2002-01-20 Kazu Hirata <kazu@hxi.com>
14949 * config/h8300/h8300.h: Fix comment formatting.
14950 * config/ia64/aix.h: Likewise.
14951 * config/ia64/ia64-protos.h: Likewise.
14952 * config/ia64/ia64.c: Likewise.
14953 * config/ia64/ia64.h: Likewise.
14954 * config/ia64/ia64intrin.h: Likewise.
14955 * config/ia64/linux.h: Likewise.
14956 * config/ia64/unwind-aix.c: Likewise.
14957 * config/ia64/unwind-ia64.c: Likewise.
14959 2002-01-20 Kazu Hirata <kazu@hxi.com>
14961 * config/h8300/h8300.c: Revise comments about shift code.
14963 2002-01-20 Kazu Hirata <kazu@hxi.com>
14965 * config/h8300/h8300.c (function_arg): Update a comment.
14967 2002-01-20 Kazu Hirata <kazu@hxi.com>
14969 * config/h8300/h8300.md: Update the comments at the beginning
14972 2002-01-20 Kazu Hirata <kazu@hxi.com>
14974 * config/i370/i370.c: Fix comment formatting.
14975 * config/i370/i370.h: Likewise.
14976 * config/i370/i370.md: Likewise.
14977 * config/i370/linux.h: Likewise.
14979 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14981 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
14983 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
14984 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
14985 in incomplete case.
14987 2002-01-20 Graham Stott <grahams@redhat.com>
14989 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
14991 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
14993 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
14995 2002-01-19 Tom Rix <trix@redhat.com>
14997 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
14999 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
15001 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15003 * function.c (assign_stack_local_1): Adjust x_frame_offset with
15004 STARTING_FRAME_PHASE.
15005 (STARTING_FRAME_PHASE): New.
15006 (instantiate_virtual_regs): Check saneness of
15007 STARTING_FRAME_PHASE.
15009 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15011 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
15013 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15015 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
15017 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15018 be used for bootstrapping GCC 3.0.
15020 2002-01-18 Kazu Hirata <kazu@hxi.com>
15022 * config/h8300/h8300.md: Fix an insn length.
15024 2002-01-18 Kazu Hirata <kazu@hxi.com>
15026 * bitmap.h: Fix comment formatting.
15027 * combine.c: Likewise.
15028 * cppfiles.c: Likewise.
15029 * c-pragma.h: Likewise.
15030 * c-typeck.c: Likewise.
15032 * dwarf2out.c: Likewise.
15033 * function.c: Likewise.
15035 * genattrtab.c: Likewise.
15036 * gthr-win32.h: Likewise.
15037 * haifa-sched.c: Likewise.
15038 * predict.c: Likewise.
15039 * rtlanal.c: Likewise.
15041 * unwind-dw2-fde.h: Likewise.
15042 * unwind-pe.h: Likewise.
15043 * vmsdbgout.c: Likewise.
15045 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15047 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15048 if type_required and passed decl.
15050 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
15052 * config.gcc (cpu_type): Include altivec.h in powerpc
15056 * config/rs6000/altivec.h: New.
15058 2002-01-17 David Edelsohn <edelsohn@gnu.org>
15060 * doc/install.texi (*-ibm-aix*): Update assembler and exception
15061 handling information.
15062 * doc/trouble.texi (Interoperation): Add libstdc++ information
15064 (Misunderstandings): Add template instantiation and static template
15065 member information for AIX.
15067 2002-01-17 Jason Merrill <jason@redhat.com>
15069 * dbxout.c (dbxout_type): Support const and volatile.
15071 * except.c (add_partial_entry): Remove backwards compatibility code.
15072 (end_protect_partials): Likewise.
15074 2002-01-17 Jakub Jelinek <jakub@redhat.com>
15076 * config/ia64/ia64.md (prologue_use): New.
15077 * config/ia64/ia64.c (ia64_expand_prologue): Use
15078 gen_prologue_use instead of gen_rtx_USE.
15079 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15080 as CODE_FOR_pred_rel_mutex.
15081 (ia64_sched_reorder2): Likewise.
15083 2002-01-16 Eric Christopher <echristo@redhat.com>
15085 * config/mips/r3900.h: Reformat.
15086 (SUBTARGET_CPP_SIZE_SPEC): Remove.
15087 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15088 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15089 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15090 * config/mips/t-elf: Remove mips3 multilib.
15092 2002-01-16 H.J. Lu <hjl@gnu.org>
15094 * config/mips/linux.h: Include "mips/abi64.h".
15096 2002-01-16 H.J. Lu <hjl@gnu.org>
15098 * config/mips/t-linux: New.
15100 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15102 * config/mips/linux.h: Don't include "gofast.h".
15103 (INIT_SUBTARGET_OPTABS): Removed.
15105 2002-01-16 Kazu Hirata <kazu@hxi.com>
15107 * config/h8300/h8300-protos.h: Replace emit_a_shift with
15109 * config/h8300/h8300.c: Likewise.
15110 * config/h8300/h8300.md: Likewise.
15112 2002-01-16 Kazu Hirata <kazu@hxi.com>
15114 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15115 spaces after an opcode name.
15116 (pushqi1_h8300hs): Likewise.
15117 (pushhi1_h8300hs): Likewise.
15119 2002-01-16 Kazu Hirata <kazu@hxi.com>
15121 * doc/extend.texi: Replace "option" with "attribute"
15124 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15126 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15127 (and:DI () (const_int -8)).
15128 (split_small_symbolic_mem_operand): Split
15129 (mem (and:DI () (const_int -8)).
15131 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15134 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15135 same way as TYPE_IMUL.
15136 (ultrasparc_sched_reorder): Likewise.
15137 * config/sparc/sparc.md (type): Add comment to update
15138 ultrasparc_sched_reorder when making changes.
15140 2002-01-16 Kazu Hirata <kazu@hxi.com>
15142 * doc/invoke.texi: Change the dump file name of block
15143 reordering pass from 28.bbro to 29.bbro.
15144 Mention -dk option.
15146 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
15148 * i386.md (minsf splitter): Fix pasto.
15150 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15152 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15153 to frame pointer initialisation instruction.
15154 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15155 initialisation instruction.
15156 (soft_df_operand): Do not accept the IP register.
15157 (nonimmediate_soft_df_operand): Do not accept the IP register.
15159 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15162 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15163 MASK_V8 being both set.
15165 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
15167 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15168 insn for GOT register; add REG_MAYBE_DEAD notes instead.
15169 config/s390/s390.md (call, call_value): Add GOT register to
15170 CALL_INSN_FUNCTION_USAGE where needed.
15171 (call_exp, call_value_exp): New.
15173 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15175 * config/arm/arm.c: General formatting tidy up.
15177 2002-01-16 Graham Stott <grahams@redhat.com>
15179 * calls.c (try_to_integrate): Use "(size_t)" intermediate
15180 cast and when casting an integer literal to "rtx" pointer.
15181 (expand_call): Likewise.
15182 * flow.c (try_pre_increment): Likewise.
15183 (find_use_as_address): Likewise.
15184 * integrate.c (expand_iline_function): Likewise.
15185 * regmove.c (try_auto_increment): Likewise.
15187 2002-01-16 Graham Stott <grahams@redhat.com>
15189 * sched-rgn.c (passed): Use sbitmap_free.
15190 (header): Likewise.
15192 (in_queue): Likewise.
15193 (in_stack): Likewise.
15195 2002-01-15 Eric Christopher <echristo@redhat.com>
15197 * flow.c (propagate_one_insn): Change to use fatal_insn.
15199 2002-01-15 Kazu Hirata <kazu@hxi.com>
15201 * expmed.c (extract_fixed_bit_field): Remove unused code.
15202 * system.h: Poison SLOW_ZERO_EXTEND.
15203 * doc/tm.texi: Remove.
15204 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15205 * config/arm/arm.h: Likewise.
15206 * config/avr/avr.h: Likewise.
15207 * config/clipper/clipper.h: Likewise.
15208 * config/convex/convex.h: Likewise.
15209 * config/d30v/d30v.h: Likewise.
15210 * config/dsp16xx/dsp16xx.h: Likewise.
15211 * config/elxsi/elxsi.h: Likewise.
15212 * config/fr30/fr30.h: Likewise.
15213 * config/h8300/h8300.h: Likewise.
15214 * config/i370/i370.h: Likewise.
15215 * config/i386/i386.h: Likewise.
15216 * config/m68k/m68k.h: Likewise.
15217 * config/mips/mips.h: Likewise.
15218 * config/ns32k/ns32k.h: Likewise.
15219 * config/pdp11/pdp11.h: Likewise.
15220 * config/pj/pj.h: Likewise.
15221 * config/s390/s390.h: Likewise.
15222 * config/sh/sh.h: Likewise.
15223 * config/stormy16/stormy16.h: Likewise.
15224 * config/v850/v850.h: Likewise.
15225 * config/vax/vax.h: Likewise.
15226 * config/we32k/we32k.h: Likewise.
15228 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15230 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15231 (altivec_lvsl): Change constraint to b.
15232 (altivec_lvsr): Same.
15233 (altivec_lvebx): Same.
15234 (altivec_lvehx): Same.
15235 (altivec_lvewx): Same.
15236 (altivec_lvxl): Same.
15237 (altivec_lvx): Same.
15238 (altivec_stvx): Add parallel.
15239 (altivec_stvxl): Same.
15240 (altivec_stvehx): Same.
15241 (altivec_stvebx): Same.
15242 (altivec_stvebx): Same.
15244 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15246 * config.gcc: Change altivec.h to altivec-defs.h.
15248 * config/rs6000/altivec.h: Delete.
15250 * config/rs6000/altivec-defs.h: Add.
15252 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15254 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15257 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15258 less than or equal to eight bytes.
15260 * vax.md (andsi3): Remove constraints and change SET destination
15261 operand type to nonimmediate_operand.
15262 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
15263 when it is a CONST_INT.
15265 2002-01-15 Jason Merrill <jason@redhat.com>
15267 * c-common.def (FILE_STMT): New code.
15268 * c-common.c (statement_code_p): It's a statement.
15269 * c-common.h (stmt_tree_s): Add x_last_filename.
15270 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15271 (last_expr_filename): New macro.
15272 * c-semantics.c (begin_stmt_tree): Initialize it.
15273 (add_stmt): If the filename changed, also insert a
15275 (expand_stmt): Handle seeing one.
15277 2002-01-15 Eric Christopher <echristo@redhat.com>
15279 * flow.c (propagate_one_insn): Add error message and print out
15280 insn for debugging.
15282 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15284 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15285 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15286 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15287 TRAMPOLINE_ALIGNMENT.
15288 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
15290 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15291 PCC_BITFIELD_TYPE_MATTERS.
15292 * config/interix.h (STDC_VALUE): Remove. Use
15293 STDC_0_IN_SYSTEM_HEADERS.
15294 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15295 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15296 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15298 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15300 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15301 not work on this platform currently.
15303 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15305 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15306 readonly_warning in _().
15308 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15310 * gcc.c (delete_if_ordinary): Backout previous change.
15312 2002-01-15 Kazu Hirata <kazu@hxi.com>
15314 * config/h8300/h8300.c (print_operand): Remove support for
15315 unused operand characters.
15317 * read-rtl.c: Fix formatting.
15318 * real.c: Likewise.
15319 * recog.c: Likewise.
15320 * regclass.c: Likewise.
15321 * regmove.c: Likewise.
15322 * reg-stack.c: Likewise.
15323 * reload1.c: Likewise.
15324 * rtlanal.c: Likewise.
15326 2002-01-15 Kazu Hirata <kazu@hxi.com>
15328 * config/i386/i386.c: Fix formatting.
15330 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15332 * c-typeck.c (process_init_element): Don't save_expr
15333 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15335 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15337 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15338 emit optional traceback table if optimize_size or TARGET_ELF.
15339 * config/rs6000/rs6000.md (prefetch): New.
15341 2002-01-15 Andreas Jaeger <aj@suse.de>
15343 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15345 2002-01-15 Kazu Hirata <kazu@hxi.com>
15347 * mips-tfile.c: Fix formatting.
15349 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15351 * unroll.c (final_reg_note_copy): Fix previous commit.
15353 2002-01-14 Kazu Hirata <kazu@hxi.com>
15355 * config/h8300/h8300-protos.h: Remove the prototype for
15357 * config/h8300/h8300.c (eq_operator): Remove.
15359 2002-01-14 Richard Henderson <rth@redhat.com>
15361 * config/i386/i386.md (prefetch): Tidy.
15362 (prefetch_3dnow): Fix locality operand.
15364 2002-01-14 Richard Henderson <rth@redhat.com>
15366 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15367 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15369 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
15371 * reload1.c (reload_combine): Pass reg_sum replacement through
15372 copy_rtx in loop performing multiple changes.
15374 2002-01-14 Jakub Jelinek <jakub@redhat.com>
15376 * except.c (remove_unreachable_regions): New.
15377 (free_eh_status): Clear exception_handler_labels.
15378 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15379 (find_exception_handler_labels): Don't add the same label more than
15381 (remove_exception_handler_label): Don't die if
15382 find_exception_handler_labels hasn't been called for the current
15385 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
15387 * toplev.c (rest_of_compilation): Rebuild jump labels after
15390 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
15392 * doc/extend.texi: Move documentation of X86 built-in functions
15394 * doc/invoke.texi: From here.
15395 * doc/sourcebuild.texi: Document location of documentation for
15396 machine built-in functions.
15398 2002-01-13 Christopher Faylor <cgf@redhat.com>
15400 * cppfiles.c (TEST_THRESHOLD): New macro.
15401 (SHOULD_MMAP): Ditto.
15402 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15405 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
15407 * unroll.c (final_reg_note_copy): Properly handle
15409 (unroll_loops): Fix LOOP_CONDITION heuristics.
15411 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
15413 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15414 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15416 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
15418 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15421 2002-01-14 Tom Rix <trix@redhat.com>
15423 * config/rs6000/rs6000.md: Fix typo with sradi.
15425 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15427 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15428 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15429 (clrstrdi, clrstrsi): Adapt callers.
15431 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15433 (movti splitter): Never use register 0 as base register.
15435 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15437 * combine.c (simplify_shift_const): Always generate new rtx
15438 for shift expression instead of reusing given expression.
15440 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15442 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15443 alpha_legitimize_address unless mode is Pmode.
15445 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15447 * doc/md.texi (Modifiers): Document the '*' constraint for the
15450 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15451 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15454 2002-01-13 Richard Henderson <rth@redhat.com>
15456 * reload.c (find_reloads): Use a hard reg destination as reload reg
15457 for an input reload of the source.
15459 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15461 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15464 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15466 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15467 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15469 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15471 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15473 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15475 2002-01-12 Tom Rix <trix@redhat.com>
15477 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15480 2002-01-12 Richard Henderson <rth@redhat.com>
15482 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15484 * doc/invoke.texi: Update Alpha options.
15486 * doc/invoke.texi: Update i386 built-in function lists.
15488 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
15490 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15491 referencing outside.
15493 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15495 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15496 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15497 offsets, and change line folding.
15498 * optabs.c (expand_binop): Remove warnings.
15499 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15501 2002-01-12 Graham Stott <grahams@redhat.com>
15503 * attribs.c (handle_deprecated_attribute): constify WHAT.
15504 * diagnostic.c (warn_deprecated_use): Add braces, fixes
15505 dangling else warning and constify WHAT.
15506 * except.h (struct function, struct inline_remap): Move
15507 struct tag forward defs before all prototypes.
15508 (duplicate_eh_regions): Whitespace.
15510 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
15512 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15513 MODE_BASE_REG_CLASS.
15514 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15516 2002-01-12 Richard Henderson <rth@redhat.com>
15518 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15519 (ix86_expand_vector_move): New.
15520 (bdesc_2arg): Remove andps, andnps, orps, xorps.
15521 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
15522 Remove old prefetch builtins. Special case the logicals removed above.
15523 (ix86_expand_builtin): Likewise.
15524 (safe_vector_operand): Use V4SFmode, not TImode.
15525 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
15526 (ix86_expand_timode_binop_builtin): New.
15527 * config/i386/i386-protos.h: Update.
15528 * config/i386/i386.h (enum ix86_builtins): Update.
15529 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15530 Use ix86_expand_vector_move in vector move expanders.
15531 (movti_internal, movti_rex64): Add xorps alternative.
15532 (sse_clrv4sf): Rename and adjust from sse_clrti.
15533 (prefetch): Don't work so hard.
15534 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15535 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15536 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15538 2002-01-11 Richard Henderson <rth@redhat.com>
15540 * config/i386/mmintrin.h: New file.
15541 * config/i386/xmmintrin.h: New file.
15542 * config.gcc (i?86-*-*): Add extra_headers.
15543 * simplify-rtx.c (simplify_unary_operation): Handle saturating
15545 (simplify_binary_operation): Handle saturating arithmetic codes.
15546 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15547 not the lowpart subreg.
15548 (ix86_expand_builtin): Return a TImode dummy register instead of 0
15550 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15552 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15554 * conflict.c (conflict_graph_compute): Free regsets when finished.
15555 * ssa.c (compute_coalesced_reg_partition): Likewise.
15557 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15559 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15560 every where we allocate a register.
15562 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15564 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15565 * lcm.c (compute_earliest, compute_farthest): Likewise.
15567 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15569 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15571 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15573 * doc/rtl.texi (Insns): Fix 2 typos.
15575 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
15577 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
15578 options. Use @table @gcctabopt for MMIX options. Add index
15579 entries for MMIX options. Start new paragraph with first
15580 heading of the machine-dependent options.
15582 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
15585 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15586 * combine.c (force_to_mode): Same.
15587 * reload1.c (clear_reload_reg_in_use): Same.
15589 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
15591 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15594 2002-01-11 Andreas Jaeger <aj@suse.de>,
15595 Brad Lucier <lucier@math.purdue.edu>
15597 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15600 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
15602 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15603 Protect with IN_LIBGCC.
15604 (LINK_EH_SPEC): Add required trailing space.
15606 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
15608 * c-tree.h: Move function declarations so that they are listed
15609 under the filename which contains them.
15610 (check_identifier, finish_decl_top_level,
15611 lookup_name_current_level_global, shadow_record_fields): Remove.
15613 2002-01-11 Andreas Jaeger <aj@suse.de>
15615 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15618 2002-01-10 Richard Henderson <rth@redhat.com>
15620 * config/alpha/alpha.c (print_operand): Add 'J'.
15621 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15622 new operand with the sequence number for the lituse. When splitting
15623 the insns, use gen_movdi_er_high_g and generate a sequence number.
15624 (gen_movdi_er_high_g): Print the sequence number if non-zero.
15626 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
15628 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15629 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15631 (altivec_expand_builtin): Same.
15632 (altivec_expand_stv_builtin): New.
15634 * config/rs6000/rs6000.h (rs6000_builtins): Same.
15636 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15637 ("altivec_lvehx"): New.
15638 ("altivec_lvewx"): New.
15639 ("altivec_lvxl"): New.
15640 ("altivec_lvx"): New.
15641 ("altivec_stvx"): New.
15642 ("altivec_stvebx"): New.
15643 ("altivec_stvehx"): New.
15644 ("altivec_stvewx"): New.
15645 ("altivec_stvxl"): New.
15647 2002-01-10 Richard Henderson <rth@redhat.com>
15649 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15650 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
15651 care not to delete instructions twice.
15653 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15655 * toplev.c: Don't declare environ (it's not used anywhere).
15656 * configure.in: Don't check for declaration of environ.
15657 * config/i386/xm-mingw32.h: Don't #define environ.
15658 * config.in, configure: Regenerate.
15660 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15662 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15663 * configure: Regenerate.
15665 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15666 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15667 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15669 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15670 LIMITS_H_TEST here, not in m68k/x-next.
15671 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15672 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15674 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15675 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15676 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
15678 * config/i386/x-djgpp: Renamed i386/t-djgpp.
15679 * config/m88k/x-dolph: Renamed m88k/t-dolph.
15680 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15681 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
15682 replacement of quadlib.asm with quadlib.c.
15684 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15685 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15686 config/rs6000/xm-beos.h: Delete file.
15688 * config.gcc: Update to match above changes.
15690 2002-01-10 Kazu Hirata <kazu@hxi.com>
15692 * config/h8300/h8300.h: Fix comment typos.
15693 * config/h8300/h8300.md: Likewise.
15694 * config/h8300/lib1funcs.asm: Likewise.
15696 2002-01-10 Dale Johannesen <dalej@apple.com>
15698 PR optimization/5269
15699 * unroll.c (precondition_loop_p): Make *increment be the correct
15700 sign when n_iterations known, to avoid confusing caller.
15702 2002-01-10 Kazu Hirata <kazu@hxi.com>
15704 * doc/extend.texi (deprecated): Fix a typo.
15706 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
15708 * basic-block.h (update_br_prob_note): Declare.
15709 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15710 (try_forward_edges): Care negative frequencies and update note.
15711 (outgoing_edges_match): Tweek conditional merging heuristics.
15712 (try_crossjump_to_edge): use update_br_prob_note.
15713 * cfglayout.c (fixup_reorder_chain): Likewise.
15714 * cfrtl.c (update_br_prob_note): New.
15715 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15717 * i386.c (ix86_decompose_address): Return -1 if address contains
15719 (legitimate_address_p): Require ix86_decompose_address to return 1.
15721 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15722 (cprop_insn): Likewise.
15724 2002-01-10 Kazu Hirata <kazu@hxi.com>
15726 * toplev.c: Fix formatting.
15727 * tree.c: Likewise.
15728 * tree-dump.c: Likewise.
15729 * unroll.c: Likewise.
15730 * unwind-dw2.c: Likewise.
15731 * unwind-dw2-fde.c: Likewise.
15732 * unwind-dw2-fde-glibc.c: Likewise.
15733 * unwind-sjlj.c: Likewise.
15735 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15737 * doc/invoke.texi: Document PDP-11 options.
15739 2002-01-10 Kazu Hirata <kazu@hxi.com>
15741 * config/h8300/h8300.h: Fix formatting.
15743 2002-01-10 Ira Ruben <ira@apple.com>
15745 Add __attribute__ ((deprecated)).
15746 * extend.texi: Document __attribute__ ((deprecated)).
15747 * invoke.texi: Document -Wno-deprecated-declarations.
15748 * testsuite/g++.dg/other/deprecated.C: New C++ test.
15749 * testsuite/gcc.dg/deprecated.c: New C test.
15750 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15751 (c_common_attribute_table): Add "deprecated" entry.
15752 (handle_deprecated_attribute): New function.
15753 * c-decl.c (deprecated_states): New enum.
15754 deprecated_state: State of "deprecated" handling.
15755 (start_decl): Set deprecated_state based on attributes.
15756 (grokdeclarator): Test for deprecated uses, propagate attribute.
15757 * c-typeck.c (build_component_ref): Test for deprecated fields.
15758 (build_external_ref): Test for deprecated primaries.
15759 * diagnostic.c (warn_deprecated_use) New function to issue
15760 warnings about __attribute__ ((depricated)) references.
15761 * flags.h (warn_deprecated_decl): Extern declared for
15762 -W[no-]deprecated-declarations option.
15763 * print-tree.c (print_node): Show deprecated flag status.
15764 * toplev.c (warn_deprecated_decl): Defined.
15765 (W_options): Added "deprecated-declaration".
15766 * toplev.h (warn_deprecated_use): Extern declared.
15767 * tree.h (struct tree_common): Define deprecated_flag.
15768 (TREE_DEPRECATED): New macro to access flag.
15769 * cp/call.c (build_call): Test for deprecated calls.
15770 * cp/class.c (add_implicitly_declared_members): Set global
15771 flag to tell grokdeclarator to not issue deprecated warnings.
15772 * cp/cp-tree.h: Add extern for adding_implicit_members.
15773 * cp/decl.c (deprecated_states): New enum.
15774 (start_decl): Set deprecated_state based on attributes.
15775 (grokdeclarator): Test for deprecated uses, propagate attribute.
15776 * cp/lex.c (do_identifier): Test for deprecated primaries.
15777 * cp/typeck.c (build_component_ref): Test for deprecated fields.
15779 2002-01-10 Ira Ruben <ira@apple.com>
15781 Fix to assign attributes to inline member functions.
15782 * cp/decl.c (start_method): Handle attrlist.
15784 2002-01-10 Kazu Hirata <kazu@hxi.com>
15786 * combine.c (expand_field_assignment): Use subreg_lsb().
15788 2002-01-10 David Edelsohn <edelsohn@gnu.org>
15790 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15791 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15792 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15793 Recurse for any operand of AND as long as constant is non-zero.
15795 2002-01-10 Kazu Hirata <kazu@hxi.com>
15797 * config/h8300/h8300.md: Remove constraints from expanders.
15799 2002-01-10 Kazu Hirata <kazu@hxi.com>
15801 * varasm.c: Fix formatting.
15802 * varray.c: Likewise.
15803 * vmsdbgout.c: Likewise.
15804 * xcoffout.c: Likewise.
15806 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
15808 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15809 update edge probabilities to match.
15811 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15813 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15815 * doc/languages.texi, doc/sourcebuild.texi: New files.
15816 * doc/configfiles.texi: Make a subsubsection. Update.
15817 * doc/configterms.texi: Add @node. Remove warning that this isn't
15818 instructions for building GCC.
15819 * doc/makefile.texi: Make a subsection.
15820 * doc/gccint.texi: Update.
15822 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
15824 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15826 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
15828 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15830 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
15832 * optabs.c (expand_fix): Look for wider integer modes first.
15834 * i386.md (mov?f): Avoid the fake const double trick for medium
15836 (min?f*/max?f*): Prohibit memory operands for i387 variant.
15837 (fop_df_4): Disable for SSE compilation.
15839 2002-01-10 Graham Stott <grahams@redhat.com>
15841 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15842 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15844 2002-01-10 Richard Henderson <rth@redhat.com>
15846 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15848 2002-01-10 Richard Henderson <rth@redhat.com>
15850 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15851 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
15853 2002-01-10 Kazu Hirata <kazu@hxi.com>
15855 * combine.c (can_combine_p): Fix a comment typo.
15857 2002-01-09 Zack Weinberg <zack@codesourcery.com>
15859 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15860 empty list correctly. Change loop index $t to $f for
15861 consistency with rest of Makefile.
15863 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
15865 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15866 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15868 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15869 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15870 (altivec_init_builtins): Same.
15871 (altivec_expand_unop_builtin): Return NULL_RTX on error.
15872 (altivec_expand_binop_builtin): Same.
15873 (altivec_expand_ternop_builtin): Same.
15876 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15877 ("altivec_vctuxs"): Fix typo.
15878 ("altivec_vnmsubfp"): Same.
15879 ("altivec_dssall"): New.
15880 ("altivec_mfvscr"): New.
15881 ("altivec_dss"): New.
15882 ("altivec_lvsl"): New.
15883 ("altivec_lvsr"): New.
15884 ("altivec_dstt"): New.
15885 ("altivec_dstst"): New.
15886 ("altivec_dststt"): New.
15887 ("altivec_dst"): New.
15889 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15890 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15892 2002-01-09 Richard Henderson <rth@redhat.com>
15894 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15896 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
15898 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15900 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15902 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15904 2002-01-09 Kazu Hirata <kazu@hxi.com>
15906 * read-rtl.c: Fix formatting.
15907 * real.c: Likewise.
15908 * regclass.c: Likewise.
15909 * regrename.c: Likewise.
15910 * reg-stack.c: Likewise.
15911 * reload1.c: Likewise.
15912 * reload.c: Likewise.
15915 2002-01-09 Kazu Hirata <kazu@hxi.com>
15917 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15918 to extract items in the expr_list chain.
15920 2002-01-09 Richard Henderson <rth@redhat.com>
15922 * config/vax/vax.c (vax_rtx_cost): Never abort.
15924 * config/vax/vax.h (REAL_ARITHMETIC): Define.
15926 2002-01-09 Jan Hubicka <jh@suse.cz>
15928 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15930 2002-01-09 Richard Henderson <rth@redhat.com>
15932 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
15933 Unify code from various alternatives.
15935 2002-01-09 Richard Henderson <rth@redhat.com>
15937 * regrename.c (copy_value): Ignore the copy if the source register
15938 is present in the value chain with a narrower mode.
15940 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15942 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
15943 for the c4x target. Also improve layout.
15945 2002-01-09 Richard Henderson <rth@redhat.com>
15947 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
15948 * config/m32r/m32r.md (and ior xor splitters): Swap operands
15949 to match insn patterns.
15951 2002-01-09 Richard Henderson <rth@redhat.com>
15953 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
15954 (copyprop_hardreg_forward_1): Likewise.
15956 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
15958 * pa.md (decrement_and_branch_until_zero): Change predicate for
15959 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
15961 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15963 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
15964 gets undefined. For Darwin.
15966 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15968 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
15970 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15972 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
15974 2002-01-08 Richard Henderson <rth@redhat.com>
15976 * regrename.c (copy_value): Ignore overlapping copies.
15978 2002-01-08 Richard Henderson <rth@redhat.com>
15980 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
15981 as needed to avoid shared structure.
15983 2002-01-08 Kazu Hirata <kazu@hxi.com>
15985 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
15988 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
15990 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
15991 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
15992 documentation of obsolete macros.
15993 * system.h: Poison these macros.
15994 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
15995 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
15996 config/c4x/c4x.h, config/clipper/clipper.h,
15997 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
15998 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
15999 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16000 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16001 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16002 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16003 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16004 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16005 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16006 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16007 config/sparc/sparc.h, config/stormy16/stormy16.h,
16008 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16009 definitions and commented out definitions of obsolete macros.
16010 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16011 of MAX_INT_TYPE_SIZE.
16013 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16015 * config/s390/s390.c (s390_preferred_reload_class): Never
16016 return ADDR_REGS if it isn't a subset of the given class.
16017 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16018 FP_REGS, but all superclasses as well.
16020 * config/s390/s390.c (s390_function_profiler): Fix thinko.
16022 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16023 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16024 must not be a const_int.
16026 2002-01-08 Richard Henderson <rth@redhat.com>
16028 * Makefile.in (toplev.o): Depend on options.h.
16029 (gcc.o): Depend on specs.h.
16031 2002-01-08 Jakub Jelinek <jakub@redhat.com>
16033 * expr.c (store_expr): Convert VOIDmode constants back to target's
16036 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16038 * doc/invoke.texi: Markup gcc as @command. Refer to
16039 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16040 of http://gcc.gnu.org/thanks.html.
16042 2002-01-08 Dale Johannesen <dalej@apple.com>
16044 * config/rs6000/rs6000.md: Add missing int register
16045 target case to movdf_low.
16047 2002-01-08 Zack Weinberg <zack@codesourcery.com>
16049 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16050 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
16051 (cppinit.o): Depend on except.h.
16052 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16053 s-specs): New rules.
16055 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16056 Don't create specs.h/options.h/gencheck.h here. Remove
16057 unnecessary variable settings from last argument of AC_OUTPUT.
16058 * config.in, configure: Regenerate.
16059 * intl.c: Hardcode package name as "gcc".
16061 * cppinit.c: Include except.h.
16062 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16064 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16065 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16066 (!)USING_SJLJ_EXCEPTIONS.
16067 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16069 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16071 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16072 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16073 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16074 documentation of obsolete macros.
16075 * system.h: Poison these macros.
16076 * config/d30v/d30v.h, config/ns32k/encore.h,
16077 config/stormy16/stormy16.h: Remove definitions and commented out
16078 definitions of obsolete macros.
16080 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
16082 * objc/objc-act.c (handle_class_ref): Mark the declaration of
16083 %sobjc_class_ref_%s as used - to prevent unwanted compiler
16086 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16088 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16089 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16090 to insn adjusting stack/frame pointer.
16091 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16092 accept operands that cause the insn to be non-splittable.
16094 2002-01-08 Graham Stott <grahams@redhat.com>
16096 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16097 (C_TYPE_FIELDS_VOLATILE): Likewise.
16098 (C_TYPE_BEING_DEFINED): Likewise.
16099 (C_IS_RESERVED_WORD): Likewise.
16100 (C_TYPE_VARIABLE_SIZE): Likewise.
16101 (C_DECL_VARIABLE_SIZE): Likewise.
16102 (C_MISSING_PROTOTYPE_WARNED): Likewise.
16103 (C_SET_EXP_ORIGINAL_CODE): Likewise.
16104 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16106 (C_DECL_ANTICIPATED): Likewise.
16107 (c_build_type_variant): Add parenthesis.
16109 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16111 * gcc.c (option_map): Remove --version.
16112 (process_command): Handle -fversion following the GNU Coding
16113 Standards. Partially addresses PR other/704.
16115 2002-01-08 Graham Stott <grahams@redhat.com>
16117 * combine.c (combine_instructions): Fix typo.
16119 2002-01-08 Graham Stott <grahams@redhat.com>
16121 * debug.h: Use "tree" and "rtx" throughout.
16123 * debug.c: Likewise.
16125 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
16127 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16128 constant pool, use the pool's version of the symbol instead.
16130 2002-01-07 Richard Henderson <rth@redhat.com>
16132 * regrename.c (find_oldest_value_reg): Ignore the value chain if
16133 the original register was copied in a mode with a fewer number of
16134 hard registers than the desired mode.
16135 (copyprop_hardreg_forward_1): Likewise.
16136 (debug_value_data): Fix loop test.
16137 * toplev.c (parse_options_and_default_flags): Reenable
16138 -fcprop-registers at -O1.
16140 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16142 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16143 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16145 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16148 * config/rs6000/rs6000.md: Add altivec predicate patterns.
16150 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
16152 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16153 (pa_output_function_prologue): Output local label at the beginning of
16154 the prologue when profiling.
16155 (hppa_profile_hook): Use the local label rather than the function label.
16156 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16158 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16160 * config/rs6000/rs6000.c (print_operand): Remove extra space.
16161 (altivec_expand_unop_builtin): Fix thinko.
16162 (altivec_expand_binop_builtin): Same.
16163 (altivec_expand_ternop_builtin): Same.
16164 (altivec_expand_builtin): Same.
16166 2002-01-07 Richard Henderson <rth@redhat.com>
16168 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16170 2002-01-07 Jason Merrill <jason@redhat.com>
16172 * unwind-dw2.c (execute_cfa_program): Use < again.
16174 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16176 * predict.c (combine_predictions_for_insn): Avoid division by zero.
16178 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16180 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16181 Don't allow -1 - x -> ~x simplifications in the first pass.
16183 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16185 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16187 (altivec_expand_binop_builtin): Same.
16188 (altivec_expand_unop_builtin): Same.
16189 (print_operand): Fix typo.
16190 (bdesc_1arg): Add vupk* variants.
16192 * rs6000.h (rs6000_builtins): Add vupk* enums.
16194 * rs6000.md: Add altivec_vupk* variants.
16196 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
16198 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16199 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16200 and last update dates.
16202 2002-01-07 Janis Johnson <janis187@us.ibm.com>
16204 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16206 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
16208 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16209 * config/avr/avr.h (CPP_SPEC): Likewise.
16210 (LINK_SPEC): Likewise.
16211 (CRT_BINUTILS_SPECS): Likewise.
16212 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16213 * doc/invoke.texi (AVR Options): Document them.
16215 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
16217 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16220 2002-01-07 Graham Stott <grahams@redhat.com>
16222 * config/i386/i386.h: Update copyright date.
16223 (HALF_PIC_PTR): Add parenthesis.
16224 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16225 (CONSTANT_ALIGNMENT): Add parenthesis.
16226 (DATA_ALIGNMENT): Likewise.
16227 (LOCAL_ALIGNMENT): Likewise.
16228 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16229 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16230 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16231 (HARD_REGNO_NREGS): Add paranethesis.
16232 (VALID_SSE_REG_MODE): Whitespace.
16233 (VALID_MMX_REG_MODE): Whitespace.
16234 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16235 (ix86_hard_regno_mode_ok): Add parenthesis.
16236 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16237 (RETURN_IN_MEMORY): Whitespace.
16238 (N_REG_CLASSES): Add parenthesis.
16239 (INTEGER_CLASS_P): Add parenthesis and wrap.
16240 (FLOAT_CLASS_P): Likewise.
16241 (SSE_CLASS_P): Likewise.
16242 (MMX_CLASS_P): Likewise.
16243 (MAYBE_INTEGER_CLASS_P): Likewise.
16244 (MAYBE_FLOAT_CLASS_P): Likewise.
16245 (MAYBE_SSE_CLASS_P): Likewise.
16246 (MAYBE_MMX_CLASS_P): Likewise.
16247 (Q_CLASS_P): Likewise.
16248 (GENERAL_REGNO_P): Uppercase macro parameter.
16249 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16250 (FP_REGNO_P): Likewise.
16251 (ANY_FP_REGNO_P): Uppercase macro parameter.
16252 (SSE_REGNO_P): Likewise.
16253 (SSE_REGNO): Likewise.
16254 (SSE_REG_P): Likewise.
16255 (SSE_FLOAT_MODE_P): Likewise.
16256 (MMX_REGNO_P): Likewise.
16257 (MMX_REG_P):Likewise.
16258 (STACK_REG_P): Likewise.
16259 (NON_STACK_REG_P): Likewise.
16260 (STACK_TOP_P): Likewise.
16261 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16262 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16263 (SECONDARY_MEMORY_NEEDED): Likewise.
16264 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16265 (MD_ASM_CLOBBERS): Whitespace and wrap.
16266 (MUST_PASS_IN_STACK): Whitespace and wrap.
16267 (RETURN_POPS_ARGS): Add parenthesis.
16268 (INIT_CUMULATIVE_ARGS): Likewise.
16269 (FUNCTION_ARG): Likewise.
16270 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16271 (SETUP_INCOMING_VARARGS): Likewise.
16272 (BUILD_VA_LIST_TYPE): Add parenthesis.
16273 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16275 (EXPAND_BUILTIN_VA_ARG): Likewise.
16276 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16277 (INITIALIZE_TRAMPOLINE): Add parenthesis.
16278 (INITIAL_ELIMINATION_OFFSET): Likewise.
16279 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16280 (REGNO_OK_FOR_BASE_P): Likewise.
16281 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16282 (REGNO_OK_FOR_DIREG_P): Likewise.
16283 (REG_OK_FOR_INDEX_P): Whitespace.
16284 (REG_OK_FOR_BASE_P): Whitespace.
16285 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16287 (FIND_BASE_TERM): Fix typo.
16288 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
16289 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16290 (SYMBOLIC_CONST; Whitespace.
16291 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
16292 (ENCODE_SECTION_INFO): Whitespace.
16293 (FINALIZE_PIC): Remove do { ... } while (0).
16294 (PROMOTE_MODE): Wrap in do { ... } while (0).
16295 (CONST_COSTS): Whitespace.
16296 (RTX_COSTS): Add paramethesis, whitespace and wrap.
16297 (REGISTER_MOVE_COST): Add parenthesis.
16298 (MEMORY_MOVE_COST): Likewise.
16299 (EXTRA_CC_MODES): Whitespace.
16300 (SELECT_CC_MODE): Add parenthesis and whitespace.
16301 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16302 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16303 (ASM_OUTPUT_LABEL): Add paramethesis.
16304 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16305 (ASM_OUTPUT_REG_POP): Likewise.
16306 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16307 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16309 * config/i386/i386.c: Update copyright.
16310 (CHECK_STACK_LIMIT): Add parenthesis.
16311 (AT_BP): Uppercase macro parameter.
16312 (x86_64_int_parameter_registers): Constify.
16313 (x86_64_int_return_registers): Likewise.
16314 (ix86_compare_op0): Use rtx.
16315 (construct_container): Constify INTREG parameter.
16316 (function_arg): Use rtx.
16318 * diagnostic.h: Update copyright date.
16319 (output_buffer_state): Add parenthesis.
16320 (output_buffer_format_args): Likewise.
16322 * combine.c (combine_instructions): Replace XEXP (links, 0)
16325 2002-01-06 H.J. Lu <hjl@gnu.org>
16327 * cfgcleanup.c (thread_jump): Fix 2 typos.
16329 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16331 * config.gcc: Add support for --enable-altivec.
16333 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16335 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16337 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16339 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16340 __objc_class_name_*.
16342 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16344 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16346 2002-01-06 Richard Henderson <rth@redhat.com>
16348 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16349 nop them out. Increment label reference count for REG_LABEL.
16350 (fill_slots_from_thread): Frob label reference count around
16351 delete_related_insns.
16353 2002-01-05 Richard Henderson <rth@redhat.com>
16355 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16358 2002-01-05 Richard Henderson <rth@redhat.com>
16360 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16361 * integrate.c (output_inline_function): Likewise.
16362 * toplev.c (rest_of_compilation): Do it here instead. Move call
16363 to remove_unnecessary_notes after emitting abstract instance.
16364 Force an emitted nested function to have its parent emited as well.
16365 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16367 (rtl_for_decl_location): Do not look at reload data structures
16368 before reload has run.
16370 2002-01-05 Kazu Hirata <kazu@hxi.com>
16372 * cse.c: Fix formatting.
16373 * dwarf2asm.c: Likewise.
16374 * dwarf2out.c: Likewise.
16375 * explow.c: Likewise.
16376 * expmed.c: Likewise.
16377 * function.c: Likewise.
16378 * gcov.c: Likewise.
16379 * gencheck.c: Likewise.
16380 * genrecog.c: Likewise.
16381 * ggc-common.c: Likewise.
16382 * ggc-page.c: Likewise.
16383 * global.c: Likewise.
16385 2002-01-05 Kazu Hirata <kazu@hxi.com>
16387 * combine.c: Fix formatting.
16389 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
16392 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16394 2002-01-05 David Edelsohn <edelsohn@gnu.org>
16396 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16397 as 1 for __powerpc64__ as well.
16399 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16401 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16404 2002-01-05 Daniel Berlin <dan@dberlin.org>
16406 * lcm.c: Revert change, due to performance regression it causes on
16407 SPEC because it's slightly more conservative (sigh, I hate
16410 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
16412 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16414 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
16416 * doc/cppinternals.texi: Update.
16418 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16420 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16421 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16423 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16424 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16425 kludge for pre-october-14th mmix versions to handle new-found bug
16426 with PUSHJ/PUSHGO and the register stack.
16427 * config/mmix/mmix.h (struct machine_function): Rename member
16428 has_call_value_without_parameters to has_call_without_parameters.
16429 All referers changed.
16430 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16431 TARGET_MASK_BRANCH_PREDICT): New macros.
16432 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16433 -mno-reg-stack-fill-bug-workaround.
16434 * config/mmix/mmix.md ("call"): Set struct machine member
16435 has_call_without_parameters.
16437 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16439 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16441 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16443 * cfgcleanup.c: Include tm_p.h
16444 (mark_effect): Fix handling of hard register; fix handling of SET
16446 2002-01-04 Kazu Hirata <kazu@hxi.com>
16448 * config/h8300/h8300.md (anonymous patterns): Check that
16449 operands are registers before using REGNO on them.
16451 2002-01-03 Roland McGrath <roland@frob.com>
16453 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16455 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16457 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16458 * c-common.h (genrtl_expr_stmt_value): Likewise.
16459 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16460 (expand_expr_stmt_value): Add maybe_last argument.
16461 Don't warn about statement with no effect if it is the last statement
16462 in expression statement.
16463 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16464 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16465 expand_expr_stmt_value.
16466 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16467 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16468 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16469 as maybe_last to expand_expr_stmt_value.
16471 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16473 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16474 be passed in, do not build it.
16475 (c_begin_if_stmt): New function.
16476 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16477 * c-common.h (c_expand_start_cond): Update prototype.
16478 (c_begin_if_stmt): Prototype new function.
16479 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16480 * c-parse.in (if_prefix): Use c_begin_if_stmt,
16481 c_begin_while_stmt and c_finish_while_stmt_cond.
16483 2002-01-04 William Cohen <wcohen@redhat.com>
16485 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16486 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16487 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16488 * config/pa/som.h (ASM_FILE_START): Likewise.
16490 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
16492 * lcm.c: Include df.h.
16493 Add available_transfer_function prototype.
16494 (compute_available): Rework to use iterative dataflow framework.
16495 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16496 with bb_info in df.h
16497 (available_transfer_function): New function.
16499 * Makefile.in (lcm.o): add df.h to dependencies.
16501 2002-01-04 Richard Henderson <rth@redhat.com>
16503 * config/alpha/alpha.c (some_operand): Accept HIGH.
16504 (input_operand): Likewise; accept simple references to globals.
16505 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16506 (alpha_const_double_ok_for_letter_p): Likewise.
16507 (alpha_extra_constraint): Likewise.
16508 (alpha_preferred_reload_class): Likewise. Do not force
16509 symbolic constants to memory.
16510 (alpha_legitimate_address_p): Accept simple references
16511 to small_symbolic_operand.
16512 (alpha_legitimize_address): New arg scratch. Be prepared to be
16513 called when no_new_pseudos. Emit simple symbolic references.
16514 Split integers into low, high, and rest.
16515 (alpha_expand_mov): Use alpha_legitimize_address.
16516 (some_small_symbolic_mem_operand): New.
16517 (split_small_symbolic_mem_operand): New.
16518 * config/alpha/alpha-protos.h: Update.
16519 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16520 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16521 (EXTRA_CONSTRAINT): Likewise.
16522 (PREFERRED_RELOAD_CLASS): Likewise.
16523 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16524 (PREDICATE_CODES): Update.
16525 * config/alpha/alpha.md: New post-reload splitters to convert
16526 simplfied symbolic operands to the form that references $29.
16527 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16528 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16530 2002-01-03 Richard Henderson <rth@redhat.com>
16532 * local-alloc.c (function_invariant_p): Update commentary.
16534 2002-01-04 H.J. Lu <hjl@gnu.org>
16536 * toplev.c (rest_of_compilation): Fix a typo when calling
16539 2002-01-03 Kazu Hirata <kazu@hxi.com>
16541 * c-common.c: Fix formatting.
16542 * diagnostic.c: Likewise.
16543 * doloop.c: Likewise.
16544 * dwarf2out.c: Likewise.
16546 2002-01-03 Kazu Hirata <kazu@hxi.com>
16548 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16549 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16551 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16553 * cpperror.c: Update comments and copyright.
16554 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16555 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16557 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
16559 * collect2.c (main): Use strcmp when testing for "-shared".
16561 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16563 * cppmacro.c: Don't include intl.h. Update comments.
16564 (new_number_token): Allocate enough buffer for 64-bit unsigned
16565 integers; update prototype.
16566 * cppmain.c: Update comments.
16568 2002-01-03 William Cohen <wcohen@redhat.com>
16570 * function.h (struct function): Add profile.
16571 (current_function_profile): New.
16572 doc/extend.texi: Update documentation.
16573 * final.c (final_start_function): Use current_function_profile
16574 instead of profile_flag.
16575 (profile_after_prologue): Likewise.
16576 * function.c (expand_function_start): Likewise.
16577 (expand_function_start): Likewise.
16578 * config/alpha/alpha.c (direct_call_operand):
16579 (alpha_does_function_need_gp): Likewise.
16580 (alpha_expand_prologue): Likewise.
16581 * config/arm/arm.c (arm_expand_prologue): Likewise.
16582 thumb_expand_prologue: Likewise.
16583 * config/d30v/d30v.c (d30v_stack_info): Likewise.
16584 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16585 (fr30_expand_prologue): Likewise.
16586 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16587 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16588 * config/i386/i386.h (FINALIZE_PIC): Likewise.
16589 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16590 * config/i960/i960.c (i960_output_function_prologue): Likewise.
16591 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16592 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16593 (m32r_expand_prologue): Likewise.
16594 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16595 (m88k_expand_prologue): Likewise.
16596 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16597 * config/mips/mips.c (compute_frame_size): Likewise.
16598 (mips_expand_prologue): Likewise.
16599 (mips_can_use_return_insn): Likewise.
16600 * config/pa/elf.h (ASM_FILE_START): Likewise.
16601 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16602 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16603 * config/pa/som.h (ASM_FILE_START): Likewise.
16604 * config/romp/romp.c (romp_using_r14): Likewise.
16605 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16606 (rs6000_stack_info): Likewise.
16607 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16608 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16609 * config/v850/v850.c (compute_register_save_size): Likewise.
16611 2002-01-03 Jakub Jelinek <jakub@redhat.com>
16613 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16614 gen_lowpart_common fails, use gen_lowpart_SUBREG.
16616 2002-01-03 Turly O'Connor <turly@apple.com>
16618 * darwin.c (machopic_output_possible_stub_label): Don't generate
16619 stub routines for pseudo-stubs which we've just defined.
16621 2002-01-03 Kazu Hirata <kazu@hxi.com>
16623 * builtins.c: Fix formatting.
16624 * c-typeck.c: Likewise.
16625 * combine.c: Likewise.
16626 * expr.c: Likewise.
16627 * loop.c: Likewise.
16629 2002-01-03 Andreas Schwab <schwab@suse.de>
16631 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16632 and return true if _cpp_push_next_buffer pushed a new include
16634 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16635 _cpp_pop_file_buffer did not push a new file.
16636 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16638 2002-01-02 Eric Christopher <echristo@redhat.com>
16640 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16641 FIND_REG_INC_NOTE call. Update copyright.
16642 * loop.c (canonicalize_condition): Ditto.
16643 * reorg.c (delete_scheduled_jump): Ditto.
16645 2002-01-03 Kazu Hirata <kazu@hxi.com>
16647 * gcse.c: Fix formatting.
16649 2002-01-03 Graham Stott <grahams@redhat.com>
16651 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16652 forward defs for struct tags rtx_def, union_tree, rtvec_def
16653 also output corresponding typedefs for rtx, tree, and rtvec.
16655 * system.h: Move forward defs for struct tags rtx_def, union_tree,
16656 rtvec_def along with corresponding typedefs for rtx, tree, and
16657 rtvec to config.h, hconfig.h, tconfig.h.
16659 2002-01-03 Graham Stott <grahams@redhat.com>
16661 * tree.h: Update copyright date.
16662 (IS_EXPR_CODE_CLASS): Add parenthesis.
16663 (TREE_SET_CODE): Add whitespace.
16664 (TREE_CHECK): Add parenthesis.
16665 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16666 (CST_OR_CONSTRUCTOR_CHECK):
16667 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16668 (TREE_SYMBOL_REFERENCED): Whitespace.
16669 (INT_CST_LT): Likewise.
16670 (INT_CST_LT_UNSIGNED): Likewise.
16671 (tree_real_cst): Unwrap comment.
16672 (tree_string): Likewise.
16673 (tree_complex): Likewise.
16674 (IDENTIFIER_POINTER): correct cast.
16675 (SAVE_EXPR_CONTEXT): Whitespace.
16676 (EXPR_WFL_FILENAME_NODE): Likewise.
16677 (EXPR_WFL_FILENAME): Remove parenthesis.
16678 (DECL_ORIGIN): Add parenthesis.
16679 (DECL_FROM_INLINE): Use NULL_TREE.
16680 (build_int_2): Whitespace.
16681 (build_type_variant): Add parenthesis.
16683 * gcc/jcf-parse.c: Update copyright date.
16684 (yyparse): Constify resource_filename.
16686 2002-01-03 Graham Stott <grahams@redhat.com>
16688 * rtl.h: Update copyright date.
16689 (RTL_CHECK1): Wrap long line.
16690 (RTL_CHECK2): Likewise.
16691 (RTL_CHECKC1): Wrap long line and whitespace.
16692 (RTL_CHECKC2): Likewise.
16693 (XWINT): Whitespace.
16699 (XBITMAP): Likewise.
16701 (XBBDEF): Likewise.
16703 (X0WINT): Likewise.
16705 (X0UINT): Likewise.
16709 (X0MODE): Likewise.
16710 (X0BITMAP): Likewise.
16711 (X0TREE): Likewise.
16712 (X0BBDEF): Likewise.
16713 (X0ADVFLAGS): Likewise.
16714 (X0CSELIB): Likewise.
16715 (X0MEMATTR): Likewise.
16716 (XCWINT): Likewise.
16718 (XCUINT): Likewise.
16722 (XCMODE): Likewise.
16723 (XCBITMAP): Likewise.
16724 (XCTREE): Likewise.
16725 (XCBBDEF): Likewise.
16726 (XCADVFLAGS): Likewise.
16727 (XCCSELIB): Likewise.
16728 (XC2EXP): Likewise.
16729 (INSN_UID): Likewise.
16730 (PREV_INSN): Likewise.
16731 (PATTERN): Likewise.
16732 (INSN_CODE): Likewise.
16733 (PUT_REG_NOTE_KIND): Likewise.
16734 (CODE_LABEL_NUMBER): Likewise.
16735 (NOTE_SOURCE_FILE): Likewise.
16736 (NOTE_BLOCK): Likewise.
16737 (NOTE_EH_HANDLER): Likewise.
16738 (NOTE_RANGE_INFO): Likewise.
16739 (NOTE_LIVE_INFO): Likewise.
16740 (NOTE_BASIC_BLOCK): Likewise.
16741 (NOTE_EXPECTED_VALUE): Likewise.
16742 (NOTE_LINE_NUMBER): Likewise.
16743 (LABEL_NAME): Likewise.
16744 (LABEL_NUSES): Likewise.
16745 (LABEL_ALTERNATE_NAME): Likewise.
16746 (ADDRESSOF_DECL): Likewise.
16747 (JUMP_LABEL): Likewise.
16748 (LABEL_NEXTREF): Likewise.
16750 (ORIGINAL_REGNO: Likewise.
16751 (HARD_REGISTER_NUM_P): Add parenthesis.
16752 (SUBREG_REG): Whitespace.
16753 (SUBREG_BYTE): Likewise.
16754 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16755 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16756 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16757 (ASM_OPERANDS_INPUT_VEC): Likewise.
16758 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16759 (ASM_OPERANDS_INPUT): Likewise.
16760 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16761 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16762 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16763 (ASM_OPERANDS_INPUT_MODE): Likewise.
16764 (ASM_OPERANDS_SOURCE_FILE): Likewise.
16765 (ASM_OPERANDS_SOURCE_LINE): Likewise.
16766 (MEM_SET_IN_STRUCT_P): Minor reformat.
16767 (TRAP_CONDITION): Whitespace.
16768 (TRAP_CODE): Likewise.
16769 (COND_EXEC_TEST): Likewise.
16770 (COND_EXEC_CODE): Likewise.
16771 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16772 (PHI_NODE_P): Add parenthesis.
16773 (plus_constant): Whitespace and add parenthesis.
16775 2002-01-03 Kazu Hirata <kazu@hxi.com>
16777 * config/avr/avr.c: Fix comment typos.
16778 * config/c4x/c4x.md: Likewise.
16779 * config/dsp16xx/dsp16xx.h: Likewise.
16780 * config/dsp16xx/dsp16xx.md: Likewise.
16781 * config/i386/i386.md: Likewise.
16782 * config/ia64/ia64.c: Likewise.
16783 * config/m32r/m32r.h: Likewise.
16784 * config/m68hc11/m68hc11.md: Likewise.
16785 * config/mmix/mmix.c: Likewise.
16786 * config/mn10200/mn10200.c: Likewise.
16787 * config/romp/romp.c: Likewise.
16788 * config/sh/sh.c: Likewise.
16789 * config/stormy16/stormy16.c: Likewise.
16790 * config/stormy16/stormy16.h: Likewise.
16791 * config/stormy16/stormy16.md: Likewise.
16793 2002-01-03 Graham Stott <grahams@redhat.com>
16795 * loop.h: Update copyright date.
16796 (LOOP_MOVABLES): Fix typo.
16797 (LOOP_REGS): Likewise.
16798 (LOOP_IVS): Likewise.
16800 2002-01-03 Graham Stott <grahams@redhat.com>
16802 * cppinit.c: Update copyright date.
16803 Don't include output.h
16804 * Makefile.in: Update copyright date.
16807 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
16810 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16811 (-pthread) Add to RS/6000 options.
16813 2002-01-02 Kazu Hirata <kazu@hxi.com>
16815 * except.c: Fix comment typos.
16816 * loop.c: Likewise.
16817 * varasm.c: Likewise.
16818 * doc/tm.texi: Fix a typo.
16820 2002-01-02 Jakub Jelinek <jakub@redhat.com>
16822 * c-typeck.c (output_init_element): Allow initializing static storage
16823 duration objects with compound literals.
16825 2002-01-02 Richard Henderson <rth@redhat.com>
16827 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16830 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16832 * gcc.c (default_compilers): Const-ify.
16833 * mips-tdump.c (stab_names): Likewise.
16834 * mips-tfile.c (map_coff_types, map_coff_storage,
16835 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16836 pseudo_ops_t, pseudo_ops): Likewise.
16837 * protoize.c (default_include): Likewise
16839 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16840 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16841 Add array size in declaration.
16842 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16843 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16844 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16845 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16846 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16847 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16848 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16849 emtens, make_nan): Const-ify.
16850 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16851 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16853 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
16855 * config.gcc (ia64-*-*): Set extra_headers.
16856 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
16857 * config/alpha/t-osf: Remove.
16858 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16860 2002-01-02 David Edelsohn <edelsohn@gnu.org>
16862 * config/rs6000/t-aix43: Revert previous change.
16864 2002-01-02 Jason Merrill <jason@redhat.com>
16866 * c-decl.c (c_expand_body): Call outlining_inline_function when
16867 emitting an inline function out of line.
16869 2002-01-02 Richard Henderson <rth@redhat.com>
16871 * dwarf2out.c (limbo_die_node): Add created_for member.
16872 (new_die): New argument created_for. Update all callers.
16873 (mark_limbo_die_list): New.
16874 (dwarf2out_init): Register limbo_die_list as a root.
16875 (dwarf2out_finish): Force insert limbo dies into their function
16878 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
16881 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16883 2002-01-02 Kazu Hirata <kazu@hxi.com>
16885 * config/h8300/fixunssfsi.c: Update copyright.
16888 * config/h8300/h8300.c: Update copyright.
16889 Eliminate warnings.
16891 2002-01-02 Kazu Hirata <kazu@hxi.com>
16893 * config/romp/romp.c: Fix comment formatting.
16894 * config/romp/romp.h: Likewise.
16895 * config/romp/romp.md: Likewise.
16896 * config/s390/s390.c: Likewise.
16897 * config/stormy16/stormy16.c: Likewise.
16898 * config/stormy16/stormy16.h: Likewise.
16900 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
16902 * c-common.h (genrtl_expr_stmt_value): Declare.
16903 * c-semantics.c (genrtl_goto_stmt): Redirect to...
16904 (genrtl_goto_stmt_value): ... this new function. Pass new
16905 argument down to expand_expr_stmt_value, taking
16906 TREE_ADDRESSABLE into account.
16907 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16908 STMT_EXPR as addressable, i.e., one whose result we want.
16909 * expr.c (expand_expr): Don't save expression statement value
16910 of labeled_blocks or loop_exprs.
16911 * stmt.c (expand_expr_stmt): Redirect to...
16912 (expand_expr_stmt_value): ... this new function. Use new
16913 argument to tell whether to save expression value.
16914 (expand_end_stmt_expr): Reset last_expr_type and
16915 last_expr_value if we don't have either.
16916 * tree-inline.c (declare_return_variable): Mark its use
16917 statement as addressable.
16918 * tree.h: Document new use of TREE_ADDRESSABLE.
16919 (expand_expr_stmt_value): Declare.
16921 2002-01-01 Tom Rix <trix@redhat.com>
16923 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16924 rs6000_emit_allocate_stack.
16926 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
16928 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16929 ${srcdir}/ginclude/ to every entry in extra_headers.
16930 * configure: Regenerate.
16931 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
16932 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
16933 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
16934 * ginclude/proto.h: Rename to config/convex/proto.h.
16936 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16938 * attribs.c (handle_vector_size_attribute): Use host_integerp
16939 and tree_int_cst; remove warnings.
16940 * caller-save.c (insert_restore): Add cast to get rid of warning.
16941 (insert_save): Likewise.
16942 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
16943 * regmove.c (find_matches): Add temporary var to kill a warning.
16945 2002-01-01 Douglas B Rupp <rupp@gnat.com>
16947 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
16948 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
16949 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
16950 (vms-dwarf2eh.o): Add Makefile rule.
16951 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
16952 * config/alpha/vms-dwarf2eh.asm: New file.
16954 * gcc.c (delete_if_ordinary): Delete all versions.
16956 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
16958 * config/mmix/mmix.md: Update FIXME to not mention
16960 (MMIX_rJ_REGNUM): New define_constants constant.
16961 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
16962 "*movdicc_real"): Adjust contraints formatting.
16963 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
16964 for branch prediction.
16965 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
16967 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
16968 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
16969 number. Delete related FIXMEs.
16970 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
16971 from number to MMIX_rJ_REGNUM.
16972 (TARGET_MASK_BRANCH_PREDICT): New.
16973 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
16974 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
16975 value. Add -mbranch-predict and -mno-branch-predict.
16976 (TARGET_VERSION): Drop date.
16977 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
16978 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
16979 for finding out global symbols.
16980 (mmix_asm_output_labelref): Revert condition for global symbol.
16981 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
16982 (mmix_print_operand_punct_valid_p): A '+' is valid.
16984 See ChangeLog.6 for earlier changes.