1 2002-07-29 Richard Earnshaw <rearnsha@arm.com>
3 * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
5 (sibcall_insn, sibcall_value_insn): Update accordingly.
6 (sibcall_epilogue): Remove debugging comment from assembler stream.
8 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
10 * pretty-print.h: Define more macros.
11 * diagnostic.h (output_formatted_integer): Moved from...
12 * diagnostic.c: ... here.
14 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16 * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
18 2002-07-28 Zack Weinberg <zack@codesourcery.com>
20 * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
21 arguments. Always use ".-symbol" as expression argument.
22 * doc/tm.texi: Update to match. Document requirement for
23 ".size symbol, .-symbol" to be acceptable to assembler.
25 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
26 config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
27 config/i386/freebsd-aout.h, config/i386/sco5.h,
28 config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
29 config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
31 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33 * Makefile.in (gengtype-lex.c): Fix error in last change.
35 * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
38 * Makefile.in (vmsdbgout.o): Depend on function.h.
40 * vmsdbgout.c: Include function.h.
42 2002-07-28 Alan Modra <amodra@bigpond.net.au>
44 * prefix.c (update_path): Don't strip single `.' path components
45 unless stripping a later `..' component. Exit loop as soon as
46 a valid path is found.
48 2002-07-27 Roger Sayle <roger@eyesopen.com>
50 * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
51 argument. Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
52 BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
53 floating point unordered comparisons (e.g. __builtin_isgreater)
54 as const, and leave the remaining GCC_BUILTINs unchanged.
56 * c-decl.c (builtin_function): No need to explicitly mark
57 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
59 2002-07-27 Roger Sayle <roger@eyesopen.com>
61 * Makefile.in: rtlanal.o now depends upon real.h.
63 * flags.h [flag_signaling_nans]: New flag.
64 [HONOR_SNANS]: New macro.
66 * toplev.c [flag_signaling_nans]: Initialize to false.
67 (f_options): Add processing for "-fsignaling-nans".
68 (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
69 (process_options): flag_signaling_nans implies flag_trapping_math.
71 * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
72 when -fsignaling-nans. First step to implementing WG14's N965.
74 * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
75 1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
76 [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
78 * simplify-rtx.c (simplify_relational_operation): Conditionalize
79 transforming abs(x) < 0.0 into false on !HONOR_SNANS.
81 * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
82 required by HONOR_SNANS. (may_trap_p): Floating point DIV, MOD,
83 UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
84 -fsignaling_nans. EQ and NE only trap for flag_signaling_nans
85 not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
87 * doc/invoke.texi: Document new -fsignaling-nans compiler option.
89 2002-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
91 * Makefile.in (gengtype-lex.c): Work around a bug in flex.
92 * gengtype-lex.l (YY_USE_PROTOS): Undef.
95 2002-07-27 Roger Sayle <roger@eyesopen.com>
97 * doc/invoke.texi: Document that both -fno-builtin-foo and
98 -fno-builtin are supported by the g++ front-end.
100 2002-07-27 Stan Shebs <shebs@apple.com>
102 * configure.in: Rename config_gtfiles to target_gtfiles.
103 * configure: Regenerate.
104 * doc/gty.texi: Update reference.
105 * config.gcc (powerpc-*-darwin*): Set target_gtfiles
106 instead of appending to it.
108 2002-07-25 Aldy Hernandez <aldyh@redhat.com>
110 * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
111 vectors are split into two registers.
112 (function_arg): Same.
114 Thu Jul 26 23:00:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
116 * pa.md (extv): Check predicates before emitting extv_32.
118 2002-07-27 Alan Modra <amodra@bigpond.net.au>
120 * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
121 (rs6000_traceback): New var.
122 (rs6000_override_options): Set rs6000_traceback.
123 (rs6000_output_function_epilogue): Implement traceback options.
124 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
125 (rs6000_traceback_name): Declare.
127 * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
128 label reference when NO_PROFILE_COUNTERS.
130 2002-07-26 Jason Merrill <jason@redhat.com>
132 * function.c (assign_parms): Handle frontend-directed pass by
135 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
137 * doc/cppopts.texi: Update.
139 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
141 * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
142 warnings on assertions.
144 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
146 * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
147 RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
149 * c-parse.in (rid_to_yy): Similarly.
151 2002-07-26 Jason Merrill <jason@redhat.com>
153 * c-dump.c: Resurrect.
154 * tree-dump.c: Move C-specific stuff to c-dump.c.
155 * c-common.h: Declare c_dump_tree.
156 * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
157 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
158 (c-dump.o): New rule.
160 2002-07-26 Alan Modra <amodra@bigpond.net.au>
162 * config/rs6000/rs6000.md: Enable patterns using rlwinm for
163 PowerPC64. Replace "T" and "S" constraints with "n" when the
164 predicate will do. Formatting fixes.
165 (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
166 as for extzvsi_internal1.
168 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
170 * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
171 DERIV_END_LABEL_FMT): Remove.
172 (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
174 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
176 * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
179 2002-07-25 Stan Shebs <shebs@apple.com>
181 * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
183 (output_compiler_stub): Remove unused locals.
184 (output_call): Always initialize line number.
186 Thu Jul 25 20:34:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
188 * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
189 * sh.md (truncdiqi2, movqi_media): Likewise.
191 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
193 * gcse.c (obstack_chunk_alloc): Remove.
194 (gcse_alloc): Fix to count allocated bytes.
195 * collect2.c (SYMBOL__MAIN): Remove.
197 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
199 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
200 HAVE_TARGET_EXECUTABLE_SUFFIX.
202 Thu Jul 25 18:57:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
204 * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
205 SIZE, EXPR and OFFSET.
207 2002-07-25 Richard Henderson <rth@redhat.com>
209 * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
210 in ARRAY_REF of DECL_P case.
212 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
214 * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
215 description. Document -mips32, -mips64, and the associated -march
216 values. Describe the "mipsN" arguments to -march. Say that the
217 -mipsN options are equivalent to -march. Reword the description
218 of default type sizes.
219 * toplev.h (target_flags_explicit): Declare.
220 * toplev.c (target_flags_explicit): New var.
221 (set_target_switch): Update target_flags_explicit.
222 * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
223 * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
224 * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
225 * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
226 * config/mips/mips.h (mips_cpu_info): New struct.
227 (mips_cpu_string, mips_explicit_type_size_string): Remove.
228 (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
229 (MIPS_CPP_SET_PROCESSOR): New macro.
230 (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
231 Define _MIPS_ARCH and _MIPS_TUNE.
232 (MIPS_ISA_DEFAULT): Don't provide a default value. Instead...
233 (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
234 MIPS_ISA_DEFAULT were already defined.
235 (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
236 (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
237 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
238 (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
239 (ABI_GAS_ASM_SPEC): Remove.
240 (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
241 (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
242 Invoke %(asm_abi_default_spec) if no ABI was specified.
243 (CC1_SPEC): Remove ISA -> register-size rules.
244 (EXTRA_SPECS): Remove abi_gas_asm_spec. Add asm_abi_default_spec.
245 * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
246 (mips_cpu_string, mips_explicit_type_size_string): Remove.
247 (mips_cpu_info_table): New array.
248 (mips_set_architecture, mips_set_tune): New fns.
249 (override_options): Rework to make -mipsN equivalent to -march.
250 Detect more erroneous cases, including those removed from CC1_SPEC.
251 Don't change the ABI based on architecture, or vice versa.
252 Unify logic with GAS.
253 (mips_asm_file_start): Get architecture name from mips_arch_info.
254 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
255 (mips_parse_cpu): Take the name of the option as argument. Handle
256 'from-abi'. Raise an error if the option is wrong.
257 (mips_cpu_info_from_isa): New fn.
259 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
261 * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
262 (tablejump_mips162): Likewise.
264 Thu Jul 25 10:23:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
266 * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
269 2002-07-25 Gabriel Dos Reis <gdr@nerim.net>
271 * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
273 * c-common.h (c_sizeof): Adjust definition.
274 (c_alignof): Likewise.
275 * c-tree.h (c_sizeof_nowarn): Now macro.
276 * c-typeck.c (c_sizeof_nowarn): Remove definition.
278 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
280 * c-decl.c (c_decode_option): No need to handle switches
283 2002-07-24 Zack Weinberg <zack@codesourcery.com>
285 * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
286 ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
287 * doc/tm.texi: Document them. Also document SIZE_ASM_OP,
288 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
290 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
291 config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
292 config/cris/aout.h, config/i386/freebsd-aout.h,
293 config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
294 config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
295 config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
296 config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
297 config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
298 config/xtensa/elf.h, config/xtensa/linux.h:
300 Where possible, remove redundant definitions of SIZE_ASM_OP,
301 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
303 2002-07-24 Aldy Hernandez <aldyh@redhat.com>
305 * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
306 TARGET_ISEL, and TARGET_FPRS.
308 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
309 -mabi=spe, -mabi=no-spe, and -misel=.
311 * config/rs6000/rs6000-protos.h: Add output_isel.
312 Move vrsave_operation prototype here.
314 * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
318 (abssi2_nopower): Disallow when TARGET_ISEL.
320 (negsf2): Change to expand and rename old pattern to *negsf2.
321 (abssf2): Change to expand and rename old pattern to *abssf2.
323 New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
326 Change patterns that check for TARGET_HARD_FLOAT or
327 TARGET_SOFT_FLOAT to also check TARGET_FPRS.
329 * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
330 rs6000_isel, rs6000_fprs, rs6000_isel_string.
331 (rs6000_override_options): Add 8540 case to
332 processor_target_table.
333 Set rs6000_isel for the 8540.
334 Call rs6000_parse_isel_option.
335 (enable_mask_for_builtins): New.
336 (rs6000_parse_isel_option): New.
337 (rs6000_parse_abi_options): Add spe and no-spe.
338 (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
339 (rs6000_legitimize_address): Check for TARGET_FPRS when checking
340 for TARGET_HARD_FLOAT.
341 Add case for SPE_VECTOR_MODE.
342 (rs6000_legitimize_reload_address): Handle SPE vector modes.
343 (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
345 Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
346 (rs6000_emit_move): Check for TARGET_FPRS.
347 Add cases for SPE vector modes.
348 (function_arg_boundary): Return 64 for SPE vector modes.
349 (function_arg_advance): Check for TARGET_FPRS and
351 (function_arg): Same.
352 (setup_incoming_varargs): Check for TARGET_FPRS.
353 (rs6000_va_arg): Same.
354 (struct builtin_description): Un-constify mask field. Move up in
356 (bdesc_2arg): Un-constify and add SPE builtins.
358 (bdesc_spe_predicates): New.
359 (bdesc_spe_evsel): New.
360 (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
361 (rs6000_expand_binop_builtin): Same.
362 (bdesc_2arg_spe): New.
363 (spe_expand_builtin): New.
364 (spe_expand_predicate_builtin): New.
365 (spe_expand_evsel_builtin): New.
366 (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
367 (rs6000_init_builtins): Initialize SPE builtins. Call
368 rs6000_common_init_builtins.
369 (altivec_init_builtins): Move all non-altivec builtin code to...
370 (rs6000_common_init_builtins): ...here. New function.
371 (branch_positive_comparison_operator): Allow NE code for SPE.
372 (ccr_bit): Return correct ccr bit for SPE fp.
373 (print_operand): Emit crnor in 'D' case for SPE.
375 Add SPE code for 'y' case.
376 (rs6000_generate_compare): Generate rtl for SPE fp.
377 (output_cbranch): Handle SPE hard floats.
378 (rs6000_emit_cmove): Handle isel.
379 (rs6000_emit_int_cmove): New.
381 (rs6000_stack_info): Adjust stack frame so GPRs are saved in
383 (debug_stack_info): Add SPE info.
384 (gen_frame_mem_offset): New.
385 (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
386 Change mode of frame pointer, when saving it, to Pmode.
387 (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
388 Misc cleanups and use gen_frame_mem_offset when appropriate.
390 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
391 (TARGET_SPE_ABI): New.
395 (FIXED_SCRATCH): New.
396 (RTX_COSTS): Add PROCESSOR_PPC8540.
397 (ASM_CPU_SPEC): Add case for 8540.
398 (TARGET_OPTIONS): Add isel= case.
399 (rs6000_spe_abi): New.
402 (rs6000_isel_string): New.
403 (UNITS_PER_SPE_WORD): New.
404 (LOCAL_ALIGNMENT): Adjust for SPE.
405 (HARD_REGNO_MODE_OK): Same.
406 (DATA_ALIGNMENT): Same.
407 (MEMBER_TYPE_FORCES_BLK): New.
408 (FIRST_PSEUDO_REGISTER): Set to 113.
409 (FIXED_REGISTERS): Add SPE registers.
411 (REG_CLASS_NAMES): Same.
412 (REG_CLASS_CONTENTS): Same.
413 (REGNO_REG_CLASS): Same.
414 (REGISTER_NAMES): Same.
415 (DEBUG_REGISTER_NAMES): Same.
416 (ADDITIONAL_REGISTER_NAMES): Same.
417 (CALL_USED_REGISTERS): Same.
418 (CALL_REALLY_USED_REGISTERS): Same.
419 (SPE_ACC_REGNO): New.
420 (SPEFSCR_REGNO): New.
421 (SPE_SIMD_REGNO_P): New.
422 (HARD_REGNO_NREGS): Adjust for SPE.
423 (VECTOR_MODE_SUPPORTED_P): Same.
424 (REGNO_REG_CLASS): Same.
425 (FUNCTION_VALUE): Same.
426 (LIBCALL_VALUE): Same.
427 (LEGITIMATE_OFFSET_ADDRESS_P): Same.
428 (SPE_VECTOR_MODE): New.
429 (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
430 the GPRs. Set FIXED_SCRATCH fixed in SPE case.
431 (rs6000_stack): Add spe_gp_size, spe_padding_size,
433 (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
434 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
435 (SPE_CONST_OFFSET_OK): New.
436 (rs6000_builtins): Add SPE builtins.
438 * testsuite/gcc.dg/ppc-spe.c: New.
440 * config/rs6000/eabispe.h: New.
442 * config/rs6000/spe.h: New.
444 * config/rs600/spe.md: New.
446 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
447 __SIMD__ for TARGET_SPE.
449 * config.gcc: Add powerpc-*-eabispe* case.
450 Add spe.h to user headers for powerpc.
452 2002-07-24 Chris Demetriou <cgd@broadcom.com>
454 * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
455 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
456 * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
458 2002-07-24 Richard Henderson <rth@redhat.com>
460 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
461 form when not optimizing.
463 2002-07-24 David Mosberger <davidm@hpl.hp.com>
465 * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
466 thread_pointer_rtx as unchanging.
468 2002-07-24 Michael Matz <matz@suse.de>
470 * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
473 2002-07-24 Richard Earnshaw <rearnsha@arm.com>
475 * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
477 (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
478 (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
480 2002-07-24 Chris Demetriou <cgd@broadcom.com>
482 * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
483 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
484 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
486 Wed Jul 24 17:59:12 CEST 2002 Jan Hubicka <jh@suse.cz>
488 * toplev.c (rest_of_compilation): Dump loops before clobbering
491 Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
493 * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
495 2002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
498 * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
501 2002-07-24 Gabriel Dos Reis <gdr@nerim.net>
503 * pretty-print.h: Add macros from cp/error.c
505 2002-07-24 Alan Modra <amodra@bigpond.net.au>
507 * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
508 (mask64_2_operand): Declare.
509 (build_mask64_2_operands): Declare.
510 (and64_2_operand): Declare.
511 (extract_MB): Declare.
512 (extract_ME): Declare.
513 * config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
515 (mask_operand_wrap): New insn predicate.
516 (mask64_2_operand): Likewise.
517 (and64_2_operand): Likewise.
518 (build_mask64_2_operands): New function.
519 (extract_MB): New function.
520 (extract_ME): New function.
521 (print_operand <case m,M>): Use extract_MB and extract_ME.
522 (print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
523 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
524 (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
525 mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
526 * config/rs6000/rs6000.md (andsi3_internal3): New
527 (andsi3_internal3+1): Enable split for powerpc64.
528 (andsi3_internal3+2): New split.
529 (andsi3_internal4): Renamed old andsi3_internal3.
530 (andsi3_internal5): New.
531 (andsi3_internal5+1): Enable split for powerpc64.
532 (andsi3_internal5+2): New split.
533 (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
534 (anddi3): Handle 't' constraint.
535 (anddi3+1): New split.
536 (anddi3_internal2): Handle 't' constraint.
537 (anddi3_internal2+1): New split.
538 (anddi3_internal3): Handle 't' constraint.
539 (anddi3_internal3+1): New split.
541 2002-07-24 Alan Modra <amodra@bigpond.net.au>
543 * config/rs6000/rs6000.md: Remove scratch reg on insns using
544 addze and similar (plus (comparison r1 r2) r3) insns. Add
545 missing scratch reg in one case. Formatting fixes.
547 2002-07-24 Neil Booth <neil@daikokuya.co.uk>
549 * cppexp.c (parse_defined): Mark macro used.
550 * cpphash.h (struct cpp_macro): New member "used".
551 (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
552 (struct cpp_reader): New member.
553 * cppinit.c (cpp_finish_options): Set first_unused_line.
554 (cpp_finish): Warn of unused macros if requested.
555 (OPT_TABLE): New switches.
556 (cpp_handle_option): Handle them.
557 * cpplib.c (do_undef): Warn if macro unused.
558 (do_ifdef, do_ifndef): Mark macro used.
559 * cpplib.h (struct cpp_options): New member.
560 * cppmacro.c (_cpp_warn_if_unused_macro): New.
561 (enter_macro_context): Mark macro used.
562 (_cpp_create_definition): Mark macro unused; warn if unused
564 * cpptrad.c (scan_out_logcial_line, push_replacement_text):
566 * doc/cppopts.texi: Update.
568 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
570 * dwarf2out.c (SECTION_ASM_OP,
571 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
572 * system.h (SECTION_ASM_OP): Poison.
573 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
574 * config/alpha/alpha-interix.h, config/mips/linux.h
575 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
576 * config/mmix/mmix-protos.h, config/mmix/mmix.c
577 (mmix_asm_output_define_label_difference_symbol): Remove.
579 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
580 * doc/tm.texi: Remove documentation.
582 Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
584 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
585 (constrain_operands): Likewise.
586 * regclass.c (record_reg_classes): Likewise.
587 * reload.c (find_reloads): Likewise.
588 * doc/md.texi: Likewise.
590 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
591 * simplify-rtx.c (simplify_subreg): When converting to a non-int
592 mode, try to convert to an integer mode of matching size first.
594 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
595 from individual subregs, check that each subreg has been generated
598 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
600 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
601 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
602 FOR_EACH_BB_IN_SBITMAP): Remove.
603 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
604 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
605 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
606 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
607 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
608 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
610 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
612 * pretty-print.h: New file.
614 2002-07-23 Paul Koning <pkoning@equallogic.com>
616 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
617 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
618 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
619 (TARGET_G_FLOAT): Default to 0 if not defined.
620 (ieeetoe): New, common routine to convert target format floats
622 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
624 (e113toe): Change to use ieeetoe.
626 2002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
628 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
630 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
631 (e64toe): Remove special cases for DEC and IBM. Remove support for
632 ARM_EXTENDED_IEEE_FORMAT.
633 (e24toe): Remove special cases for DEC.
634 (significand_size): Simplify. Indent.
635 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
636 (etoieee, toieee): New.
637 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
638 etoieee and toieee for IEEE arithmetic.
640 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
642 * doc/extend.texi: Say ISO C90, not ISO C89.
643 * doc/invoke.texi: Likewise.
644 * doc/standards.texi: Likewise.
646 2002-07-23 Steve Ellcey <sje@cup.hp.com>
648 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
649 Fix permutation of conversion and plus/mult.
650 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
651 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
652 (expand_builtin_strncpy) Ditto.
653 (expand_builtin_memset) Ditto.
655 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
658 * c-common.c (c_sizeof_or_alignof_type): New function.
659 (c_alignof): Remove definition.
660 * c-common.h (c_sizeof, c_alignof): Define as macros.
661 (c_sizeof_or_alignof_type): Declare.
662 (my_friendly_assert): Moved from cp/cp-tree.h
663 * c-typeck.c (c_sizeof): Remove definition.
665 2002-07-23 Jan Hubicka <jh@suse.cz>
667 * gcse.c (try_replace_reg): Use num_changes_pending.
668 * recog.c (num_changes_pending): New function.
669 (validate_replace_src): Use validate_repalce_src_group.
670 (validate_replace_src_group): New.
671 * recog.h (validate_repalce_src_group): New.
672 (num_changes_pending): Likewise.
674 Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
676 * calls.c (emit_library_call_value_1): If
677 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
678 libcall, const call nor pure call.
680 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
682 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
684 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
686 * vmsdbgout.c (SECTION_ASM_OP): Remove.
688 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
690 * config/i386/i386.c (AT_BP): Remove.
692 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
694 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
696 * gcse.c: Don't define obstack_chunk_free.
697 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
698 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
699 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
700 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
701 Don't define obstack macros.
703 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
706 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
707 ASM_OPERANDS instructions.
709 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
712 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
713 constant addresses only on 68HC12.
715 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
717 * cppfiles.c (stack_include_file): Correct test of whether
718 a dependency should be output.
720 2002-07-22 David Edelsohn <edelsohn@gnu.org>
722 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
724 2002-07-22 Richard Earnshaw <rearnsha@arm.com>
726 * arm.md (movqi): If optimizing and we can create pseudos, use
727 a ZERO_EXTEND to load from memory, then copy the result into the
729 (movhi): Likewise, but only for ARMv4.
731 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
733 * ssa-ccp.c (PHI_PARMS): Remove.
735 2002-07-22 Richard Sandiford <rsandifo@redhat.com>
737 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
738 on big-endian targets.
740 2002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
742 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
743 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
744 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
745 New formatting macros.
747 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
749 Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
751 * rtlanal.c (subreg_regno_offset): Return correct offset for
752 big endian paradoxical subregs.
754 * optabs.c (expand_vector_unop): Don't expand using sub_optab
755 if we got the wrong mode.
757 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
758 * genrecog.c (write_switch, write_cond): Use it.
759 * genemit.c (gen_exp): Likewise.
761 2002-07-22 Jakub Jelinek <jakub@redhat.com>
763 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
765 2002-07-22 Jakub Jelinek <jakub@redhat.com>
767 * c-decl.c (build_compound_literal): Defer compound literal decls
768 until until file end to emit them only if they are actually used.
770 2002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
772 * ra-build.c (check_conflict_numbers): Hide unused function.
773 (livethrough_conflicts_bb): Avoid automatic aggregate
775 (parts_to_webs_1): Avoid `U' integer constant modifier.
776 (conflicts_between_webs): Wrap a variable in the macro controlling
778 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
779 (dump_igraph, dump_graph_cost): Avoid string concatenation
780 (dump_static_insn_cost): Avoid automatic aggregate
782 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
784 (dump_cost): Avoid string concatenation
786 2002-07-21 Richard Henderson <rth@redhat.com>
788 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
789 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
791 2002-07-21 Richard Henderson <rth@redhat.com>
793 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
794 that are not unrolled completely.
796 2002-07-21 Richard Henderson <rth@redhat.com>
798 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
799 * loop.c (strength_reduce): Update.
800 * toplev.c (rest_of_compilation): Do unrolling in the first
801 loop pass, not the second.
803 2002-07-21 Richard Henderson <rth@redhat.com>
805 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
806 when flag_argument_noalias == 2.
807 * alias.c (nonoverlapping_memrefs_p): Handle that.
808 * print-rtl.c (print_mem_expr): Likewise.
810 2002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
812 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
813 instead of __negdi2 directly.
815 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
817 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
818 * function.c (SYMBOL__MAIN): Remove definition.
819 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
820 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
821 * profile.c (GCOV_INDEX_TO_BB): Remove.
822 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
823 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
825 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
827 * c-lex.c (GET_ENVIRONMENT): Remove.
828 * collect2.c (GET_ENV_PATH_LIST): Remove.
829 (prefix_from_env): Use GET_ENVIRONMENT.
830 * cppinit.c (GET_ENV_PATH_LIST): Remove.
831 (init_standard_includes): Use GET_ENVIRONMENT.
832 * defaults.h (GET_ENVIRONMENT): Define here if not already.
833 * gcc.c (GET_ENV_PATH_LIST): Remove.
834 (make_relative_prefix, process_command): Update.
835 * protoize.c (GET_ENV_PATH_LIST): Remove.
836 (do_processing): Update.
838 2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
840 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
841 (grokdeclarator): Likewise.
842 * c-format.c (C_STD_NAME): Likewise.
843 * c-lex.c (interpret_integer): Likewise.
844 * c-typeck.c (build_array_ref): Likewise.
845 * cpplex.c (_cpp_lex_direct): Likewise.
846 * toplev.c (documented_lang_options): Likewise.
848 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
850 * c-format.c (T99_I, T99_UI): Remove.
852 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
854 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
856 Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
858 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
861 2002-07-21 Andreas Jaeger <aj@suse.de>
863 * reload1.c (fixup_abnormal_edges): Remove unused variable.
865 2002-07-21 Bernd Schmidt <bernds@redhat.com>
867 Improvements for the ifcvt pass from Michael Meissner, with patches
868 by Richard Sandiford <rsandifo@redhat.com>
869 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
870 * ifcvt.c (cond_exec_changed_p): New static variable.
871 (last_active_insn): New function, renamed from last_active_insn_p
872 and changed to return the last active insn in a basic block. All
874 (block_fallthru): New function.
875 (cond_exec_process_insns): New argument CE_INFO. Pass it to
876 IFCVT_MODIFY_INSN. All callers updated.
877 Return false if START or END are NULL.
878 Handle case where we're processing an insn that is already
881 (noce_process_if_block): CE_INFO argument rather than
882 multiple args containing the involved basic blocks. All callers
884 (process_if_block, merge_if_block, find_if_block,
885 cond_exec_process_if_block): Likewise.
887 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
889 Use new function last_active_insn to simplify some code.
890 New code to handle multiple tests.
891 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
892 cond_exec_changed_p to TRUE.
894 (process_if_block): New code to handle multiple tests.
895 (merge_if_block): Likewise.
896 (find_if_header): New arg PASS. Changed to return the currently
897 processed basic block or NULL instead of true/false. All callers
899 Call IFCVT_INIT_EXTRA_FIELDS.
900 (block_jumps_and_fallthru_p): New function.
901 (find_if_block): Discover opportunities to convert multiple tests.
902 Add additional debugging output.
903 Update the ce_info structure before returning.
905 (if_convert): Run multiple passes of if-conversion.
906 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
907 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
908 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
911 Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
913 * gcse.c: Include cselib.h
914 (constptop_register): Break out from ...
915 (cprop_insn): ... here; kill basic_block argument.
916 (do_local_cprop, local_cprop_pass): New functions.
917 (one_cprop_pass): Call local_cprop_pass.
919 2002-07-20 Roger Sayle <roger@eyesopen.com>
921 * simplify-rtx.c (simplify_relational_operation): Optimize
922 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
924 2002-07-20 Michae Matz <matz@suse.de>
926 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
928 2002-07-20 Neil Booth <neil@daikokuya.co.uk>
930 * cppexp.c (struct op): Add token pointer.
931 (check_promotion, CHECK_PROMOTION): New.
933 (_cpp_parse_expr): Update, use token pointer of struct op.
934 (reduce): Warn about change of sign owing to promotion.
935 * cppinit.c (cpp_handle_option): New warning if -Wall.
936 * cpplib.h (struct cpp_options): New member.
938 2002-07-19 David Edelsohn <edelsohn@gnu.org>
940 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
941 fpu list. Separate Power4 compare and delayed_compare. Correct
943 (fix_truncdfsi2_internal): Restore FPR preference.
944 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
945 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
947 2002-07-19 Momchil Velikov <velco@fadata.bg>
949 * reload1.c (reload_as_needed): Duplicate oldpat.
951 2002-07-20 Alan Modra <amodra@bigpond.net.au>
954 * loop.h (struct loop_info): Add "preconditioned".
955 * unroll.c (unroll_loop): Set it.
956 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
958 2002-07-19 Zack Weinberg <zack@codesourcery.com>
960 * rtl.def (CODE_LABEL): Remove slot 8.
961 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
962 (LABEL_ALTERNATE_NAME): Delete.
963 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
964 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
966 * final.c (output_alternate_entry_point): New.
967 (final_scan_insn): Use it instead of
968 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
969 of a case label being an alternate entry point.
971 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
972 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
973 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
975 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
977 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
978 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
979 * doc/tm.texi: Delete documentation of
980 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
982 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
984 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
985 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
987 (STARTFILE_SPEC): Define.
988 (ENDFILE_SPEC): Define.
990 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
991 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
993 * config/mips/iris6-o32-gas.h: New file.
994 * config.gcc (mips-sgi-irix6*o32): Use it.
996 * config/mips/t-iris5-gas: New file.
997 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
999 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
1001 * cppexp.c (ALWAYS_EVAL): Remove.
1002 (optab, reduce): Always evaluate.
1003 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
1004 only if not skipping evaluation.
1006 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1008 * config/avr/avr.c (debug_hard_reg_set): Remove.
1010 2002-07-19 Chris Demetriou <cgd@broadcom.com>
1012 * gcc.c (cpp_options): Include "%1" (cc1_spec).
1014 2002-07-19 Richard Henderson <rth@redhat.com>
1016 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
1018 2002-07-19 Alan Modra <amodra@bigpond.net.au>
1020 * prefix.c (update_path): Don't zap single `.' path components
1021 unless followed by another `.' and fix typo last patch.
1023 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
1025 * cppexp.c (cpp_num_mul): Remove unused parameter.
1026 (UNARY, BINARY, OTHER, binary_handler): Remove.
1029 (reduce): Refactor to a large switch, don't use a function
1032 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
1034 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
1036 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1038 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
1039 (sh_expand_binop_v2sf): Likewise.
1040 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
1041 (int_gpr_dest, trunc_hi_operand): New functions.
1042 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
1044 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
1045 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
1046 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
1047 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
1048 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
1049 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
1050 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
1051 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
1052 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
1053 (movsf_ie+1): Likewise.
1054 (loaddi_trunc): Use int_gpr_dest predicate.
1055 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
1056 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
1057 (casesi_worker_0+[12], casesi_worker): Likewise.
1058 (shcompact_preserve_incoming_args): Likewise.
1059 (mov_nop): Use any_register_operand predicate.
1060 (mperm_w0): Use trunc_hi_operand predicate.
1062 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
1064 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
1065 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
1068 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
1070 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
1072 2002-07-18 Richard Henderson <rth@redhat.com>
1074 PR optimization/7147
1075 * ifcvt.c (noce_get_condition): Make certain that the condition
1078 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
1080 * sh.c (barrier_align, push): Shut up compiler warnings.
1081 (initial_elimination_offset,sh_media_init_builtins): Likewise.
1082 (reg_no_subreg_operand): Delete.
1084 2002-07-17 Bo Thorsen <bo@suse.de>
1086 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
1087 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
1088 (STARTFILE_SPEC): Remove hardcoded library paths.
1089 (ENDFILE_SPEC): Likewise.
1091 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
1093 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
1095 * gcse.c (try_replace_reg): Do not return false positives.
1097 2002-07-18 Alan Modra <amodra@bigpond.net.au>
1099 * prefix.c: (update_path): Strip ".." components when prior dir
1100 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
1102 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
1103 (ASM_OUTPUT_REG_POP): Likewise.
1105 2002-07-18 Alan Modra <amodra@bigpond.net.au>
1107 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
1108 adjustments to first_reg for profiling case.
1109 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
1110 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
1111 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
1112 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
1113 (ASM_OUTPUT_REG_POP): Define.
1114 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
1115 (ASM_OUTPUT_REG_POP): Undef.
1117 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
1119 * cpplib.c (do_sccs): Handle #sccs on all systems.
1120 * system.h (SCCS_DIRECTIVE): Poison.
1121 * config/darwin.h, config/freebsd.h, config/netbsd.h,
1122 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
1123 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
1124 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
1125 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
1126 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
1127 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
1128 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
1129 Remove all references to SCCS_DIRECTIVE.
1130 * doc/cpp.texi, doc/tm.texi: Update.
1132 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
1134 * regrename.c (maybe_mode_change): New function.
1135 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
1137 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
1139 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
1140 suppress addition when either ct or cf are zero.
1142 2002-06-17 Eric Botcazou <ebotcazou@multimania.com>
1143 Glen Nakamura <glen@imodulo.com>
1145 PR optimization/6713
1146 * loop.c (loop_givs_rescan): Explicitly delete the insn that
1147 sets a non-replaceable giv after issuing the new one.
1149 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
1151 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
1152 eval_token): Clarify and correct use of "bool" variables.
1153 * cpplib.h (struct cpp_options): Similarly.
1154 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
1155 * cpptrad.c (recursive_macro): Similarly.
1157 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
1159 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
1162 * sh.md (cmpgtudi_media): Remove spurious @.
1164 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
1165 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
1167 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
1168 * sh-protos.h (sh_initialize_trampoline): Declare.
1169 * sh.c (sh_initialize_trampoline): New function.
1170 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
1171 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
1172 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
1173 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
1174 * sh.md (initialize_trampoline, double_shori): New patterns.
1175 (initialize_trampoline_compact): Likewise.
1176 (shmedia32_initialize_trampoline_big): Remove.
1177 (shmedia32_initialize_trampoline_little): Likewise.
1179 * sh-protos.h (binary_float_operator): Remove declaration.
1180 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
1181 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
1182 (unary_float_operator, sh_expand_unop_v2sf): New functions.
1183 (sh_expand_binop_v2sf): Likewise.
1184 (zero_vec_operand): Delete.
1185 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
1186 all non-shared ones.
1187 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
1188 Enable nsb and byterev.
1189 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
1190 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
1192 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
1193 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
1195 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
1197 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
1198 lowpart fp regs - only for big endian for now.
1199 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
1201 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
1202 (LOAD_EXTEND_OP): NIL for SImode.
1203 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
1204 general and fp registers is 4.
1205 PREDICATE_CODES: Amend binary_float_operator entry.
1206 Remove zero_vec_operand. Add unary_float_operator.
1207 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
1209 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
1210 (truncdiqi2): Do sign extension.
1211 (movsi_media, movdi_media): Allow to use r63 to an fp register.
1212 (movdf_media, movsf_media): Likewise.
1213 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
1214 Collapse to one define_insn_and_split. Allow immediate sources.
1215 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
1216 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
1217 (movv4sf): Allow immediate sources.
1218 (movsf_media_nofpu+1): Don't split moves to FP registers.
1219 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
1220 (movv8qi_i+3): Check against CONST0_RTX.
1221 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
1222 for input and output operands. Fix argument 3 to gen_mextr_rl.
1223 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
1224 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
1225 (mshf0_w, fipr, ftrv): Likewise.
1226 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
1228 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1230 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
1231 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
1234 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
1236 * config/mips/mips-protos.h (mips_sign_extend): Declare.
1237 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
1238 (TARGET_SWITCHES): Remove debugh.
1239 (ISA_HAS_TRUNC_W): New macro.
1240 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
1241 (PREDICATE_CODES): Remove se_nonimmediate_operand.
1242 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
1243 any SImode move_operand.
1244 (se_nonimmediate_operand): Remove.
1245 (mips_sign_extend): New.
1246 (mips_move_2words): Use it for sign-extended source operands.
1247 (override_options): Allow integers to be put into single FPRs.
1248 (mips_secondary_reload_class): Handle integers in float registers.
1249 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
1250 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
1251 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
1252 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
1253 (fix_truncdfdi2): Provide only a single alternative, in which the
1254 integer is in a float register. Depend on TARGET_FLOAT64 rather
1256 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
1257 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
1258 (movdi_internal2): Don't allow the source operand to be sign-extended.
1259 Add alternatives for float registers.
1260 (*movdi_internal2_extend): New. Version of movdi_internal2 that
1261 allows sign-extension.
1262 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
1263 (movsi_internal2): Rename to movsi_internal. Add alternatives for
1264 float registers. Remove TARGET_DEBUG_H_MODE test.
1265 (movhi_internal1): Rename to movhi_internal. Don't check
1266 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
1267 (movqi_internal1): Rename to movqi_internal and remove
1268 TARGET_DEBUG_H_MODE dependency.
1269 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
1271 2002-07-16 Jim Wilson <wilson@redhat.com>
1273 * toplev.c (lang_dependent_init): Create function context for
1276 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
1278 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
1279 --gc-sections if -r.
1280 * config/cris/cris.h: Ditto.
1282 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
1284 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
1285 the comparison directly gives a mask suppress addition when cf is
1286 zero by complementing the mask.
1288 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1290 * Makefile.in: Delete references to enquire.
1291 * enquire.c: Move to contrib.
1293 2002-07-16 Stan Shebs <shebs@apple.com>
1295 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
1296 config/rs6000/darwin.h.
1297 (ASM_OUTPUT_SKIP): Ditto.
1298 (TEXT_SECTION_ASM_OP): Ditto.
1299 (DATA_SECTION_ASM_OP): Ditto.
1300 (ASM_APP_ON): Define.
1301 (ASM_APP_OFF): Define.
1302 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
1303 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
1305 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
1306 (machopic_function_base_name): Declare result to be const.
1307 (machopic_non_lazy_ptr_name): Ditto.
1308 (machopic_stub_name): Ditto.
1309 * config/darwin-protos.h: Ditto for the prototypes.
1311 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
1313 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
1315 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1317 * i386.md (prefetch): Fix for 64bit mode.
1318 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
1320 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1322 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
1323 * i386.c (x86_machine_dependent_reorg): New function.
1324 * i386-protos.h (x86_machine_dependent_reorg): Declare.
1326 2002-07-16 Zack Weinberg <zack@codesourcery.com>
1328 * builtins.c (std_expand_builtin_va_start): Remove unused
1330 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
1331 std_expand_builtin_va_start with just two arguments.
1332 * expr.h: Update prototypes.
1334 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
1335 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
1336 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
1337 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
1338 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
1339 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
1340 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
1341 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
1342 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
1343 argument from all implementations of EXPAND_BUILTIN_VA_START
1344 and all uses of std_expand_builtin_va_start.
1346 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
1348 * regrename.c (copy_value): Don't record high part copies.
1350 2002-07-16 Steve Ellcey <sje@cup.hp.com>
1352 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
1353 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
1354 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
1356 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1358 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
1360 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
1361 into addsi3 using register class "x" and "y".
1363 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
1364 "earlyclobber" constraint modifier for some alternative.
1366 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
1367 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
1369 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
1371 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
1372 (TARGET_SWITCHES): Add -mieee-compare option.
1373 (OVERRIDE_OPTIONS): 32332 is a subset of
1374 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
1375 (TARGET_SWITCHES): Fix description of bitfield option.
1376 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
1377 -mieee-compare option. Remove 32332 flag.
1379 2002-07-16 Steve Ellcey <sje@cup.hp.com>
1381 * explow.c (convert_memory_address): Remove special handling
1382 when POINTERS_EXTEND_UNSIGNED < 0.
1383 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
1384 (movedi_symbolic): Fix typo.
1385 (load_fptr): Remove mode restriction so it works for SI and DI.
1386 (load_fptr_internal1): Ditto.
1387 (load_gprel): Ditto.
1388 (load_symptr_internal1): Ditto.
1390 * config/ia64.c (call_operand): Modify mode check.
1391 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
1392 (ia64_expand_move): Ditto.
1393 (ia64_assemble_integer): Handle SImode function pointers.
1394 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
1395 (ia64_expand_op_and_fetch): Ditto.
1396 (ia64_expand_compare_and_swap): Ditto.
1397 (ia64_expand_lock_test_and_set): Ditto.
1398 (ia64_expand_lock_release): Ditto.
1400 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1402 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
1404 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1405 Richard Earnshaw <rearnsha@arm.com>
1407 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
1408 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
1410 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
1412 * arm.md (stack_tie): New insn. Use an idiom that the alias code
1413 understands to be a memory clobber.
1414 * arm.c (arm_expand_prologue): Use it.
1416 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
1418 * ra-rewrite.c: #include reload.h, insn-config.h
1419 * ra-build.c: #include reload.h
1420 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
1421 depend on reload.h, insn-config.h.
1423 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
1425 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
1426 the same size as a word.
1428 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
1429 BYTES_BIG_ENDIAN into account.
1431 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
1433 * i386.md (prefetch): Fix for 64bit mode.
1434 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
1436 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
1438 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1440 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
1442 2002-07-15 Zack Weinberg <zack@codesourcery.com>
1444 * ginclude/varargs.h: Replace with stub which issues #error.
1445 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
1448 * builtins.def (BUILT_IN_VARARGS_START): Delete.
1449 (BUILT_IN_VA_START): New.
1450 * builtins.c (expand_builtin_va_start): Eliminate first
1451 argument and code to implement pre-ISO varargs.
1452 (std_expand_builtin_va_start): Ignore first argument; it is
1454 (expand_builtin): Handle BUILT_IN_VA_START and
1455 BUILT_IN_STDARG_START identically. Delete
1456 BUILT_IN_VARARGS_START case.
1458 * function.c (assign_parms): Delete hide_last_arg and all
1460 (mark_varargs): Delete function.
1461 * function.h (struct function): Delete 'varargs' bit.
1462 (current_function_varargs): Delete macro.
1463 * tree.h: Don't declare mark_varargs.
1465 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
1466 (c_expand_body): Don't call mark_varargs.
1467 * c-objc-common.c: Handle BUILT_IN_VA_START and
1468 BUILT_IN_STDARG_START identically. Delete
1469 BUILT_IN_VARARGS_START case.
1470 * c-tree.h: Don't declare c_mark_varargs.
1471 * c-parse.in: Remove grammar rules for '&...' (which has been
1472 commented out since before 2.7.2) and for '...' in K+R
1473 argument declarations.
1475 * builtins.c, function.c, integrate.c, sibcall.c,
1476 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
1477 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
1478 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
1479 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
1480 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
1481 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
1482 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
1483 config/stormy16/stormy16.c: Delete all references to
1484 current_function_varargs, and code predicated on that flag.
1486 * config/alpha/alpha.c (alpha_va_start),
1487 config/arc/arc.c (arc_va_start),
1488 config/i386/i386.c (ix86_va_start),
1489 config/mips/mips.c (mips_va_start),
1490 config/mn10300/mn10300.c (mn10300_va_start),
1491 config/rs6000/rs6000.c (rs6000_va_start),
1492 config/s390/s390.c (s390_va_start),
1493 config/sh/sh.c (sh_va_start),
1494 Ignore first argument; it is always 1.
1496 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
1497 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
1498 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
1499 Delete m68hc11_va_start.
1500 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
1501 No need to define EXPAND_BUILTIN_VA_START.
1503 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
1504 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
1506 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
1508 PR optimization/7153
1509 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
1510 dies in more than one insn.
1512 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
1514 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
1516 2002-07-15 Michael Matz <matz@suse.de>,
1517 Daniel Berlin <dberlin@dberlin.org>,
1518 Denis Chertykov <denisc@overta.ru>
1520 Add a new register allocator.
1524 * ra-build.c: New file.
1525 * ra-colorize.c: New file.
1526 * ra-debug.c: New file.
1527 * ra-rewrite.c: New file.
1529 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
1530 (ra-rewrite.o): New .o files for libbackend.a.
1531 (GTFILES): Add basic-block.h.
1533 * toplev.c (flag_new_regalloc): New.
1534 (f_options): New option "new-ra".
1535 (rest_of_compilation): Call initialize_uninitialized_subregs()
1536 only for the old allocator. If flag_new_regalloc is set, call
1537 new allocator, instead of local_alloc(), global_alloc() and
1540 * doc/invoke.texi: Document -fnew-ra.
1541 * basic-block.h (FOR_ALL_BB): New.
1542 * config/rs6000/rs6000.c (print_operand): Write small constants
1545 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
1546 (df_reg_table_realloc): Make size at least as large as max_reg_num().
1547 (df_insn_table_realloc): Size argument now is absolute, not relative.
1548 Changed all callers.
1550 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
1551 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
1553 2002-06-20 Michael Matz <matz@suse.de>
1555 * df.h (struct ref.id): Make unsigned.
1556 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
1558 2002-06-13 Michael Matz <matz@suse.de>
1560 * df.h (DF_REF_MODE_CHANGE): New flag.
1561 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
1562 involving subregs with invalid mode changes, when
1563 CLASS_CANNOT_CHANGE_MODE is defined.
1565 2002-05-07 Michael Matz <matz@suse.de>
1567 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
1569 2002-05-03 Michael Matz <matz@suse.de>
1571 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
1573 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
1575 * regclass.c (regclass): Work with all regs which have sets or
1577 (reg_scan_mark_refs): Count regs inside (clobber ...).
1579 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
1581 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
1582 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
1584 (df_bb_refs_update): Don't clear insns_modified here, ...
1585 (df_analyse): ... but here.
1587 * sbitmap.c (dump_sbitmap_file): New.
1588 (debug_sbitmap): Use it.
1590 * sbitmap.h (dump_sbitmap_file): Add prototype.
1592 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
1594 * df.c (df_insn_modify): Grow the UID table if necessary, rather
1595 than assume all emits go through df_insns_modify.
1597 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
1599 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
1600 increase REG_N_REFS (like flow does), so that regclass doesn't
1601 think a reg is useless, and thus, not calculate a class, when it
1604 2001-01-28 Daniel Berlin <dberlin@redhat.com>
1606 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
1609 2002-07-15 Jakub Jelinek <jakub@redhat.com>
1612 * config/i386/i386.c (const_int_1_31_operand): New.
1613 * config/i386/i386.h (PREDICATE_CODES): Add it.
1614 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
1615 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
1616 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
1618 2002-07-14 Alan Modra <amodra@bigpond.net.au>
1621 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
1622 (floatunssidf2): Likewise.
1623 (floatsidf_ppc64): New insn_and_split.
1624 (floatunssidf_ppc64): Likewise.
1626 2002-07-14 Andreas Jaeger <aj@suse.de>
1628 * config.gcc (sh64): Remove unused
1629 target_requires_64bit_host_wide_int.
1631 2002-07-12 Roger Sayle <roger@eyesopen.com>
1633 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
1634 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
1635 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
1636 whether clear_by_pieces should be used to clear storage.
1637 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
1639 * doc/tm.texi: Document these two new target macros.
1641 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
1643 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
1644 the scratch register.
1645 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
1646 of it, forbid reload to use it.
1648 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
1650 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
1651 usage on 64-bit hosts, return value was truncated to 32 bits.
1653 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
1655 * simplify-rtx.c (simplify_subreg): Handle floating point
1656 CONST_DOUBLEs. When an integer subreg of a smaller mode than
1657 the element mode is requested, compute a subreg with an
1658 integer mode of the same size as the element mode first.
1660 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1662 * combine.c (try_combine): When converting a paradoxical subreg
1663 to an extension, take LOAD_EXTEND_OP into account.
1665 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1667 * config.gcc (mips-sgi-irix6*o32): New configuration.
1669 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
1671 * configure: Regenerate.
1673 * config/mips/iris6-o32-as.h: New file.
1674 * config/mips/iris6-o32.h: New file.
1676 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
1678 (HAVE_AS_SHF_MERGE): Undefine.
1680 * config/mips/t-iris5-as: New file.
1681 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
1683 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
1684 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
1685 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
1686 dp-bit.c, fp-bit.c): Move ...
1687 * config/mips/t-iris5-6: ... here.
1688 New file, shared by IRIX 5 and IRIX 6.
1689 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
1690 mips-sgi-irix5*): Use it.
1692 * config/mips/iris6.h: Remove duplicate comment.
1694 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
1695 !TARGET_IRIX6]: Define.
1696 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
1698 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
1700 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1702 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
1703 and delete code to force constant to register.
1704 * pa-protos.h (adddi3_operand): Add prototype.
1705 * pa.c (adddi3_operand): New function.
1707 2002-07-11 Roger Sayle <roger@eyesopen.com>
1709 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
1710 non-ANSI builtin functions.
1712 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
1714 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
1715 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
1716 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
1717 (gen_const_vector_0): Use it.
1719 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1721 * pa.md (adddi3): For 32-bit targets, force constants to a register
1722 if they don't fit in an 11-bit immediate. Change insn predicate to
1723 arith11_operand. Remove comment.
1724 * pa.c (cint_ok_for_move): Fix comment.
1725 (emit_move_sequence): Don't directly split DImode constants on 32-bit
1728 2002-07-11 Tim Josling <tej@melbpc.org.au>
1730 Remove front end hard coding from gengtype.c.
1733 (STAGESTUFF): add gtyp-gen.h
1734 (GTFILES): Remove front end specific files.
1735 (GTFILES_FILES_LANGS): New, from configure..
1736 (GTFILES_FILES_FILES): Likewise.
1737 (GTFILES_LANG_DIR_NAMES): Likewise.
1738 (GTFILES_SRCDIR): Likewise.
1739 (gtyp-gen.h): Build from configure information.
1740 (s-gtype): Remove command line parameters from gengtype.
1741 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
1742 (mostlyclean): Delete files generated by and for gengtype.
1744 * c-config-lang.in: New file.
1746 * configure.in (all_gtfiles_files_langs): New. Accumulate files
1748 (all_gtfiles_files_files): New. Accumulate language for each file
1750 (gtfiles): Pick up value for C.
1751 (srcdir): AC-SUBST this variable.
1752 (all_gtfiles_files_langs): AC-SUBST this variable.
1753 (all_gtfiles_files_files): AC-SUBST this variable.
1755 * configure: Regenerate.
1757 * gengtype-lex.l (parse_file): Make parameter const.
1759 * gengtype.c (toplevel): include gtyp-gen.h.
1760 (BASE_FILE_<language> unnamed enum): Delete.
1761 (lang_names): Delete (replaced by gtyp-gen.h)
1762 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
1764 (NUM_GT_FILES): New.
1765 (NUM_LANG_FILES): New.
1767 (NUM_BASE_FILES): Change calculation.
1768 (open_base_files): Change prototype to avoid warning.
1769 (startswith): Delete.
1770 (get_file_basename): Iterate through generated language list not
1772 (get_base_file_bitmap): Use generated list of files and languages.
1773 (close_output_files): Add prototype to rmove warning.
1774 (main): Iterate through list of generated files from gtyp-gen.h
1775 rather than command line paramaters. Ignore duplicated file
1778 * gengtype.h (parse_file): Amend prototype for const parameter.
1780 * doc/sourcebuild.texi: Document gtfiles variable.
1782 * doc/gty.texi: Document changes to gtfiles variable for front
1785 * objc/config-lang.in (gtfiles): Add files needed for objc front
1788 2002-07-10 Roger Sayle <roger@eyesopen.com>
1791 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
1792 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
1794 2002-07-10 Roger Sayle <roger@eyesopen.com>
1795 Zack Weinberg <zack@codesourcery.com>
1797 * builtins.def: Make the argument types of abort and exit
1798 independent of the front-end.
1800 2002-07-11 Alan Modra <amodra@bigpond.net.au>
1802 * config/rs6000/linux64.h (ASM_SPEC): Define.
1804 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
1806 * config/rs6000/rs6000.c (emit_frame_save): New.
1807 (rs6000_frame_related): Replace reg2 before reg.
1808 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
1809 and eh_return registers.
1811 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
1813 Revert all patches for optimization of Complex .op. Real.
1814 * complex_part_zero_p: Remove
1815 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
1817 * expand_cmplxdiv_wide: Ditto.
1818 * expand_binop: Ditto.
1820 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
1822 * config/avr/avr.md: Fix two 0x80000000 constants to make them
1823 negative also on 64-bit hosts.
1825 Default to -fno-reorder-blocks when optimizing for size.
1826 * config/avr/avr-protos.h (avr_optimization_options): Declare.
1827 * config/avr/avr.c (avr_optimization_options): New function.
1828 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
1830 Optimize returning from simple functions.
1831 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
1832 * config/avr/avr.c (avr_simple_epilogue): New function.
1833 * config/avr/avr.md (return): New insn.
1835 2002-07-10 Douglas B Rupp <rupp@gnat.com>
1837 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
1838 HAS_INIT_SECTION to protection.
1840 2002-07-10 Mark Mitchell <mark@codesourcery.com>
1842 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
1845 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
1847 * combine.c (gen_lowpart_for_combine): Handle vector modes.
1848 Supply non-VOID mode to simplify_gen_subreg.
1850 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
1852 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
1854 2002-07-10 Jeffrey A Law <law@redhat.com>
1856 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
1859 * mn10200.c (expand_epilogue): Fix test to determine which scratch
1862 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
1864 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
1866 If simplify_gen_subreg fails, try next equivalent.
1868 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
1870 * diagnostic.h: #include location.h
1871 (location_t): Move definition to..
1872 * location.h: ... here. New file.
1873 * tree.h: #include location.h
1874 (DECL_SOURCE_LOCATION): New macro.
1875 (DECL_SOURCE_FILE): Use.
1876 (DECL_SOURCE_LINE): Likewise.
1877 (struct tree_decl): REplace filename and linenum with locus.
1878 * Makefile.in (TREE_H): add location.h
1879 (diagnostic.o): Depends on gt-location.h
1880 (gt-location.h): Depends on s-gtype
1882 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
1884 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
1885 TARGET_OS_CPP_BUILTINS.
1886 * config/rs6000/aix31.h: Likewise.
1887 * config/rs6000/aix41.h: Likewise.
1888 * config/rs6000/aix43.h: Likewise.
1889 * config/rs6000/aix51.h: Likewise.
1890 * config/rs6000/beos.h: Likewise.
1891 * config/rs6000/darwin.h: Likewise.
1892 * config/rs6000/eabi.h: Likewise.
1893 * config/rs6000/eabisim.h: Likewise.
1894 * config/rs6000/linux.h: Likewise.
1895 * config/rs6000/linux64.h: Likewise.
1896 * config/rs6000/lynx.h: Likewise.
1897 * config/rs6000/mach.h: Likewise.
1898 * config/rs6000/rtems.h: Likewise.
1899 * config/rs6000/sysv4.h: Likewise.
1900 * config/rs6000/vxppc.h: Likewise.
1902 2002-07-09 Devang Patel <dpatel@apple.com>
1903 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
1904 Do not allow ObjC objects as a parameter type for Objective-C methods.
1905 My previous patch restricted 'struct' also.
1907 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
1909 * cpperror.c (cpp_error): Default to directive_line within
1911 * cppexp.c (cpp_interpret_integer): Only use traditional
1912 number semantics in directives.
1913 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
1914 (do_include_common): Similarly.
1915 * cpptrad.c (scan_out_logical_line): Implement accurate
1916 quoting of <> in #include.
1917 * doc/cpp.texi: Update.
1919 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
1920 J"orn Rennecke <joern.rennecke@superh.com>
1922 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
1923 * sh.md (attribute issues): Replace with:
1924 (attribute pipe_model). All users changed.
1925 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
1927 (function units sh5issue, sh5fds): New.
1928 (attribute is_mac_media): New.
1929 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
1930 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
1931 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
1932 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
1933 (call_media, call_value_media, sibcall_media): Likewise.
1934 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
1935 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
1936 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
1937 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
1938 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
1939 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
1940 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
1941 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
1942 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
1943 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
1944 (truncdfsf2_media): Likewise.
1945 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
1946 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
1948 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
1950 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
1951 * sh.c (general_extend_operand, inqhi_operand): New functions.
1952 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
1953 alternatives using 'N' modifier. Add type.
1954 (adddi3z_media): Likewise. Enable generator function generation.
1955 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
1956 exact predicates / constraints. Add type.
1957 (subsi3): Allow 0 for SHMEDIA.
1958 (udivsi3_i4_media): Use match_operand for input values
1959 rather than hard registers.
1960 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1961 unnecessarily through hard registers. Keep copies of pseudo
1962 registers outside of the libcall sequence.
1963 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
1964 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
1965 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
1966 (extendhidi2, extendqidi2): Likewise.
1967 (andsi3_compact): Name.
1968 (andcdi3): Enable generator function generation.
1969 (zero_extendhisi2, zero_extendqisi2): Rename to
1970 (zero_extendhisi2_compact, zero_extendqisi2_compact).
1971 (extendhisi2, extendqisi2): Rename to
1972 (extendhisi2_compact, extendqisi2_compact).
1973 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
1974 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
1975 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
1976 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
1977 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
1978 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
1979 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
1980 (shmedia32_initialize_trampoline_big): Likewise.
1981 (shmedia32_initialize_trampoline_little): Likewise.
1982 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
1983 (negdi2): Remove spurious T clobber.
1984 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
1985 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
1986 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
1987 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
1988 (ic_invalidate_line_media): Write back data cache before invalidating
1989 instruction cache. Add type.
1990 (movsf_media): Sign-extend when the destination is a general
1991 purpose register. Add type.
1992 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
1993 (casesi_worker_0+1): Only increment ref count for proper label.
1994 (casesi_worker_0+2): Likewise.
1996 2002-07-09 Mark Mitchell <mark@codesourcery.com>
1998 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
2000 2002-07-09 Steve Ellcey <sje@cup.hp.com>
2002 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
2003 from Pmode to ptr_mode.
2004 (get_exception_pointer): Ditto.
2005 (connect_post_landing_pads): Ditto.
2006 (dw2_build_landing_pads): Ditto.
2008 2002-07-08 Steve Ellcey <sje@cup.hp.com>
2009 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
2010 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
2011 (handle_pragma_redefine_extname): Change to use new function.
2013 2002-07-08 Roger Sayle <roger@eyesopen.com>
2015 * combine.c (combine_simplify_rtx): Add an explicit cast
2016 to avoid signed/unsigned comparison warning.
2017 (simplify_if_then_else): Likewise.
2018 (extended_count): Likewise.
2019 (simplify_shift_const): Likewise.
2020 (simplify_comparison): Likewise.
2022 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
2024 * config/mips/mips.md: Add imadd type. Update scheduler description
2025 to use imadd as well as imul.
2026 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
2027 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
2028 (*mul_sub_si): Likewise for first alternative. Change second
2029 alternative from imul to multi.
2031 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
2033 * c-common.c (c_common_post_options): Update prototype;
2034 don't init backends if preprocessing only.
2035 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
2036 * langhooks.h (struct lang_hooks): Update post_options to
2038 * toplev.c (parse_options_and_default_flags, do_compile,
2039 lang_independent_init): Update prototypes. Allow the
2040 front end to specify that there is no need to initialize
2042 (general_init): Move call to hex_init here...
2043 (toplev_main): ...from here. Pass flag for back end init
2046 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2048 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
2049 (PREDICATE_CODES): Add entries for equality_comparison_operator,
2050 greater_comparison_operator and less_comparison_operator.
2051 * sh.c (print_operand): Add '\'' code. Make 'o' handle
2053 (equality_comparison_operator): New function.
2054 (greater_comparison_operator, less_comparison_operator): Likewise.
2055 * sh.md (beq_media_i): Disable generator function generation.
2056 Use match_operator to handle a whole class of comparisons. Add
2057 modifier in output template to provide branch prediction. Add type.
2058 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
2059 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
2060 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
2061 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
2063 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
2065 Emit MMIX function prologue and epilogue as rtl.
2066 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
2067 not unprototyped get_hard_reg_initial_val.
2068 ("call_value", "nonlocal_goto_receiver"): Ditto.
2069 ("return"): Make define_expand. Move real insn to...
2070 ("*expanded_return"): New pattern.
2071 ("prologue", "epilogue"): New define_expands.
2072 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
2073 (struct machine_function): New member in_prologue.
2074 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
2075 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
2076 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
2077 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
2078 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
2079 (LOCAL_REGNO): Define. Adjust comment.
2080 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
2081 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
2083 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
2085 (mmix_target_asm_function_prologue): Make static. Just mark that
2086 the prologue is being emitted. Move guts to...
2087 (mmix_expand_prologue): New function. Adjust for emitting
2088 prologue as rtl. For sizes, use HOST_WIDE_INT only.
2089 (mmix_target_asm_function_epilogue): Make static. Simply emit a
2091 (mmix_expand_epilogue): New function. Adjust for emitting
2092 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
2093 (mmix_target_asm_function_end_prologue): Mark that the prologue
2095 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
2096 (mmix_conditional_register_usage): Improve comments.
2097 (mmix_local_regno): New function.
2098 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
2099 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
2100 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
2101 (mmix_get_hard_reg_initial_val): Ditto.
2103 2002-07-06 Andreas Jaeger <aj@suse.de>
2105 * toplev.c (set_fast_math_flags): Don't use ISO C style function
2107 * gengtype.c (open_base_files): Likewise.
2108 (close_output_files): Likewise.
2109 * tracer.c (find_best_predecessor): Likewise.
2110 (find_best_successor): Likewise.
2111 (ignore_bb_p): Likewise.
2113 2002-07-05 Roger Sayle <roger@eyesopen.com>
2116 * builtin-attrs.def: Define new attribute lists for use in
2118 * builtins.def [DEF_BUILTIN]: Modify to take an additional
2119 ATTRS argument, an enumerated value defined in builtin-attrs.def
2120 that represents the attribute list for the builtins. Modify
2121 all builtin functions to pass an appropriate attribute list.
2122 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
2123 their required noreturn attributes.
2124 * tree.h (enum_builtin_function): Ignore the additional parameter
2126 * builtins.c (built_in_names): Likewise.
2127 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
2128 argument with a tree representing the functions attribute list.
2129 Pass this "attrs" argument to builtin_function. No longer handle
2130 the noreturn_p processing manually.
2131 (built_in_attributes): Move the definitions from builtin-attrs.def
2132 before c_common_nodes_and_builtins.
2133 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
2134 DEF_BUILTIN, passing it to both builtin_function and the changed
2137 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
2138 __builtin__exit and __builtin__Exit.
2140 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
2142 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
2143 QI mode registers in soft registers.
2144 ("zero_extendqihi2"): Do not take into account soft registers
2145 for register allocation (use '*' constraint).
2147 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
2149 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
2151 ("*ashrsi3"): Likewise.
2152 ("*lshrsi3"): Likewise.
2154 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
2156 * genautomata.c (output_max_insn_queue_index_def): Take latencies
2159 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
2161 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
2162 address computation and memory moves.
2164 2002-07-03 Mark Mitchell <mark@codesourcery.com>
2167 * dwarfout.c (output_reg_number): Fix warning message.
2168 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
2171 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2173 * gcc/gcc.c (asm_debug): Move initialization ...
2174 (init_spec): ... here.
2176 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
2178 * c-parse.in (extdef): Append ';'.
2179 (old_style_parm_decls): Append ';'.
2181 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2183 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
2184 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
2185 to gcc_cv_as_gstabs_flag.
2186 * configure: Rebuilt.
2188 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
2190 * ggc.h (ggc_add_root): Document as obsolete.
2192 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
2194 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
2195 (mshflo_w): Likewise.
2197 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
2199 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
2200 vector mode subregs of constants to finding integer mode
2201 subregs of constants.
2202 * cse.c (cse_insn): Use simplify_gen_subreg.
2203 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
2204 From a vector mode expression of different size than the
2207 2002-07-03 Eric Christopher <echristo@redhat.com>
2209 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
2210 * config/mips/mips.h: Remove deprecated -m<processor> options
2211 and cc1_cpu_spec associated.
2212 (CONSTANT_ADDRESS_P): Fix last patch.
2213 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
2214 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
2217 2002-07-03 Stan Shebs <shebs@apple.com>
2219 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
2220 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
2221 (CPP_SPEC): Remove insertion of APPLE_CC definition.
2223 2002-07-03 Roger Sayle <roger@eyesopen.com>
2225 * combine.c (struct_undo): Change types of recorded substitutions
2226 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
2227 (do_SUBST_INT): Change types of the substitution from unsigned int
2228 to int, to avoid compilation warning from SUBST_INT's only caller.
2230 (make_extraction): Add cast to avoid compilation warning.
2231 (force_to_mode): Remove cast to avoid compilation warning.
2233 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
2234 Jeff Law <law@redhat.com>
2236 * i386.md (length_immediate attribute): Fix typo.
2237 (length_address attribute): Likewise.
2238 (modrm attribute): Set it to 0 for immediate call instructions.
2239 (jcc_1 pattern): Set modrm attribute to 0.
2240 (jcc_2 pattern ): Likewise.
2241 (jump pattern): Likewise.
2242 (doloop_end_internal pattern): Explicitly set length.
2243 (leave pattern): Fix typo.
2244 (leave_rex64 pattern): Likewise.
2246 2002-07-03 David Edelsohn <edelsohn@gnu.org>
2248 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
2249 in FPR as preference.
2251 (floatdidf2, fix_truncdfdi2): Same.
2252 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
2254 (floatsitf2, fix_trunctfsi2): SImode in GPR.
2255 (ctrdi): Remove FPR alternative and splitter.
2257 2002-07-03 Will Cohen <wcohen@redhat.com>
2259 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
2261 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
2263 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
2264 than UNITS_PER_WORD, unless this is little endian and the first unit
2265 in this word. Let extract_bit_field decide how to load an element.
2266 Force arguments to matching mode.
2267 (expand_vector_unop): Likewise.
2269 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
2270 consist of word_mode elements.
2271 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
2272 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
2273 (build_unary_op): Allow vector types for BIT_NOT_EPR.
2274 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
2276 * optabs.c (expand_vector_binop): Try to perform operation in
2277 smaller vector modes with same inner size. Add handling of AND, IOR
2278 and XOR. Reject expansion to inner-mode sized scalars when using
2279 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
2280 (expand_vector_unop): Try to perform operation in smaller vector
2281 modes with same inner size. Add handling of one's complement.
2282 When there is no vector negate operation, try a vector subtract
2283 operation. Use simplify_gen_subreg on constants.
2284 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
2285 constants into smaller vectors with same inner mode, and to
2286 integer CONST_DOUBLEs.
2288 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2290 * c-parse.in (parsing_iso_function_signature): New variable.
2291 (extdef_1): New, copied from...
2292 (extdef): ... here. Reset parsing_iso_function_signature.
2293 (old_style_parm_decls): Reset parsing_iso_function_signature.
2294 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
2295 Warn about ISO C style function definitions.
2296 (nested_function, notype_nested_function): Reset
2297 parsing_iso_function_signature.
2298 (parmlist_2): Set parsing_iso_function_signature.
2300 * doc/invoke.texi (-Wtraditional): Document new behavior.
2302 2002-07-02 Chris Demetriou <cgd@broadcom.com>
2304 * config.gcc (mips*el-*-*): Use tm_defines to set
2305 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
2306 * config/mips/little.h: Remove.
2308 2002-07-02 Devang Patel <dpatel@apple.com>
2310 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
2311 object as parameter. Prevent something like 'NSObject' to be
2312 used as the type for a method argument.
2314 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
2316 * cpptrad.c: Update comment.
2318 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
2320 * doc/cpp.texi: Update for traditional preprocessing changes.
2321 * goc/cppopts.texi: Similarly.
2323 2002-07-02 Ziemowit Laski <zlaski@apple.com>
2325 * c-parse.in (designator): Enable designated initializers if ObjC.
2326 (objcmessageexpr): Remove references to objc_receiver_context.
2327 * objc/objc-act.h (objc_receiver_context): Remove decl.
2328 * objc/objc-act.c (objc_receiver_context): Remove.
2329 (lookup_objc_ivar): Test objc_method_context instead of
2330 objc_receiver_context.
2332 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
2334 * sh.c (print_operand, case 'N'): Allow zero vector.
2335 (arith_reg_or_0_operand): Likewise.
2336 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
2337 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
2338 IOR, XOR, PLUS and SET and take their respective constant
2339 ranges into account.
2340 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
2341 * sh.md (subdi3, subdi3_media): Allow zero operand.
2342 (movv8qi_i+3): Only vector that is not split is the zero vector.
2343 Fix operand 3 to simplify_subreg.
2344 (movv2si_i): Split alternative 1.
2345 (mshfhi_l_di_rev+1): New splitter.
2347 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
2349 PR preprocessor/7029
2350 * cppinit.c (cpp_handle_option): Suppress warnings with an
2351 implicit "-w" for "-M" and "-MM".
2352 * doc/cppopts.texi: Update.
2354 2002-07-01 Roger Sayle <roger@eyesopen.com>
2356 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
2357 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
2360 2002-07-02 Alan Modra <amodra@bigpond.net.au>
2362 * README.Portability: Fix typos.
2364 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
2367 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
2368 of indirections for register inside sign-extended mem part.
2370 2002-07-01 Roger Sayle <roger@eyesopen.com>
2372 * tree.h: Modify builtin_function interface to take an extra
2373 argument ATTRS, which is a tree representing an attribute list.
2375 * c-decl.c (builtin_function): Accept additional parameter.
2376 * objc/objc-act.c (builtin_function): Likewise.
2377 * f/com.c (builtin_function): Likewise.
2378 * java/decl.c (builtin_function): Likewise.
2379 * ada/utils.c (builtin_function): Likewise.
2380 * cp/decl.c (builtin_function): Likewise.
2381 (builtin_function_1): Likewise.
2383 * c-common.c (c_common_nodes_and_builtins): Pass an additional
2384 NULL_TREE argument to builtin_function. (builtin_function_2):
2386 * cp/call.c (build_java_interface_fn_ref): Likewise.
2387 * objc/objc-act.c (synth_module_prologue): Likewise.
2388 * java/decl.c (java_init_decl_processing): Likewise.
2389 * f/com.c (ffe_com_init_0): Likewise.
2391 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
2392 NULL_TREE argument to builtin_function.
2393 * config/arm/arm.c (def_builtin): Likewise.
2394 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
2395 * config/i386/i386.c (def_builtin): Likewise.
2396 * config/ia64/ia64.c (def_builtin): Likewise.
2397 * config/rs6000/rs6000.c (def_builtin): Likewise.
2399 2002-07-01 Zack Weinberg <zack@codesourcery.com>
2401 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
2402 * config/mips/t-isa3264: Likewise.
2403 * config/mmix/t-mmix: Likewise.
2405 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
2407 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
2409 2002-07-01 Roger Sayle <roger@eyesopen.com>
2412 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
2413 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
2416 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
2418 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
2420 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
2422 * README.Portability (Function prototypes): Give an example of
2423 declaring and defining a function with no arguments.
2425 * README.Portability (Function prototypes): Document new
2426 variable-argument function macros.
2428 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
2430 * sh.c (langhooks.h): Include.
2431 (sh_init_builtins, sh_media_init_builtins): New functions.
2432 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
2433 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
2434 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
2435 (builtin_description): New struct tag.
2436 (signature_args, bdesc): New arrays.
2437 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
2438 (print_operand): Add 'N' modifier.
2439 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
2440 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
2441 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
2442 (CONST_COSTS): Add special case for SHmedia AND.
2443 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
2444 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
2445 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
2446 target_operand can also be const or unspec.
2447 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
2448 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
2449 (attribute type): Add new types.
2450 (anddi3): Add splitter.
2451 (movdi_const_16bit+1): Add code to handle vector constants and
2452 bitmasks efficiently.
2453 (shori_media): Have generator function made.
2454 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
2455 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
2456 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
2457 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
2458 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
2459 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
2460 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
2461 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
2462 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
2463 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
2464 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
2465 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
2466 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
2467 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
2468 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
2469 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
2470 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
2471 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
2472 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
2475 (fpu_switch+1, fpu_switch+2): Remove constraint.
2477 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
2479 * tree.c (build_function_type_list): Update function comment.
2480 Rename first argument to return_type.
2482 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
2484 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
2485 tradcif.y and related files.
2487 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
2489 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
2491 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2493 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
2495 2002-06-30 Devang Patel <dpatel@apple.com>
2497 * objc/objc-act.c (finish_file): Avoid finish_objc() if
2500 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
2501 Frank Ch. Eigler <fche@redhat.com>
2502 Matthew Green <mrg@redhat.com>
2503 Richard Henderson <rtl@redhat.com>
2504 Dave Hudson <dave.hudson@ubicom.com>
2505 Jeff Johnston <jjohnstn@redhat.com>
2506 Alan Lehotsky <apl@alum.mit.edu>
2507 Bernd Schmidt <bernds@redhat.com>
2508 Graham Stott <grahams@redhat.com>
2510 * doc/extend.texi: Add ip2k port to description of attribute
2512 * doc/install.texi (Specific): Add ip2k description.
2513 * doc/install-old.texi (Configurations): Add ip2k to possible
2515 * doc/md.texi: Document ip2k constraints.
2516 * config/ip2k/crt0.S: New file.
2517 * config/ip2k/ip2k-protos.h: New file.
2518 * config/ip2k/ip2k.c: New file.
2519 * config/ip2k/ip2k.h: New file.
2520 * config/ip2k/ip2k.md: New file.
2521 * config/ip2k/libgcc.S: New file.
2522 * config/ip2k/t-ip2k: New file.
2524 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
2526 * config/mmix/mmix.md ("return"): New pattern.
2527 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
2528 (TARGET_USE_RETURN_INSN): New macros.
2529 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
2530 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
2531 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
2532 (MMIX_POP_ARGUMENT): New macro.
2533 (mmix_target_asm_function_prologue): When no epilogue is executed,
2534 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
2535 (mmix_print_operand) <case '.'>: New case.
2536 (mmix_print_operand_punct_valid_p): Match '.'.
2537 (mmix_use_simple_return): New function.
2538 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
2539 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
2540 -msingle-exit, -mno-single-exit.
2541 (MMIX Options): Ditto.
2543 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
2545 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
2547 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2549 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
2551 2002-06-30 Alan Modra <amodra@bigpond.net.au>
2553 * unroll.c (loop_iterations): Handle EQ loops.
2555 2002-06-29 David Edelsohn <edelsohn@gnu.org>
2557 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
2558 constraint in define_expand, not splitter.
2561 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
2563 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
2564 build_function_type_list instead of build_function_type.
2566 * config/ia64/ia64.c (ia64_init_builtins): Same.
2568 * config/alpha/alpha.c (alpha_init_builtins): Same.
2570 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
2572 * config/arm/arm.c (arm_init_builtins): Same.
2574 * tree.h: Add build_function_type_list prototype.
2576 * tree.c (build_function_type_list): New.
2578 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2580 * collect2.c (scan_prog_file): Fix typo in message.
2582 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
2584 * fold-cont.c: Remove unused CHARMASK.
2586 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
2588 PR preprocessor/7150
2589 * cppmain.c (scan_translation_unit_trad): Simplify.
2590 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
2592 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
2594 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
2595 Don't use CPP_PREDEFINES.
2596 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
2597 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
2598 * config/i386/djgpp.h, config/i386/i386-coff.h,
2599 config/i386/i386-interix.h, config/i386/i386-interix3.h,
2600 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2601 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
2602 config/i386/uwin.h: Similarly.
2604 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2606 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
2607 flag_inline_trees to enable inlining.
2609 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
2611 * configure.in (gcc_gxx_include_dir): Change to match versioned
2612 C++ headers if --enable-version-specific-runtime-libs is used.
2613 * configure: Regenerate.
2615 2002-06-28 Jan Hubicka <jh@suse.cz>
2617 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
2619 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
2621 * combine.c (combine_simplify_rtx): Pass the mode of the
2622 shift count, not the shift operation when trying to simplify
2623 a shift on a SHIFT_COUNT_TRUNCATED target.
2625 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2627 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
2628 avoid the auto increment addressing modes.
2629 ("*subsi3"): Likewise.
2630 (split for add/sub on address): For 68HC12 push the value on
2631 the stack and do the operation with a pop.
2633 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
2635 * cpplib.c (_cpp_handle_directive): Move #define-specific
2636 code to the #define handler...
2637 (do_define): ...here.
2638 (lex_macro_node): No longer a need to check for comments here.
2640 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2642 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
2643 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2645 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
2646 do not reorder basic blocks at the end when optimizing for size.
2648 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2650 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
2651 (m68hc11_make_autoinc_notes): New function.
2652 (m68hc11_split_move): Be very cautious when spliting a move with
2653 auto increment/decrement modes because this may result in incompatible
2654 directions; add REG_INC notes to the resulting insn for CSE reg.
2656 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
2658 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
2659 can be a valid address.
2661 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
2663 * config/rs6000/rs6000.c: Remove unusued variables from last
2666 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2669 * config/rs6000/rs6000.c (rs6000_override_options): Move
2670 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
2672 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2674 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
2675 lvx/stv/dst builtins...
2676 (altivec_expand_ld_builtin): ...to here.
2677 (altivec_expand_st_builtin): ...here.
2678 (altivec_expand_dst_builtin): ...and here (respectively).
2680 2002-06-28 Bob Wilson <bob.wilson@acm.org>
2682 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
2684 2001-06-08 Bernd Schmidt <bernds@redhat.com>
2686 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
2688 * recog.c (general_operand, register_operand): Disallow them.
2690 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
2692 PR preprocessor/7138
2693 * cpplib.c (_cpp_handle_directive): Do traditional
2694 preparation after setting state.angled_headers.
2695 * cpptrad.c (scan_out_logical_line): Fix potential
2698 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2700 * config/rs6000/rs6000.c (rs6000_override_options): Move
2701 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
2703 2002-06-27 Bob Wilson <bob.wilson@acm.org>
2705 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
2706 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
2707 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
2709 2002-06-27 Roger Sayle <roger@eyesopen.com>
2711 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
2712 * config/stormy16/stormy16.h: Likewise.
2714 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
2717 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2719 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
2720 Hitachi entry. Make punctuation more consistent.
2722 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
2724 * doc/install.texi: Change ` bit' to `-bit'.
2725 * doc/md.texi: Change `-bits' to `-bit'.
2726 * doc/tm.texi: Change `-bits' to ` bits'.
2728 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
2730 * gcse.c (hoist_code): Rewrite to only get list of dominated
2731 blocks once per BB. Also fix reversed test (by removing need for
2734 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
2736 * cpphash.h (_cpp_set_trad_context): Remove.
2737 * cpplib.c (prepare_directive_trad): Do nothing for #define.
2738 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
2739 * cpptrad.c: Update comments.
2740 (_cpp_read_logical_line_trad): Let scan_logical_line handle
2741 updating the current context.
2742 (scan_logical_line): Update the current context.
2743 (_cpp_create_trad_definition): Similarly.
2744 (_cpp_set_trad_context): Remove.
2746 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
2748 PR preprocessor/7070
2749 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
2751 2002-06-26 Bob Wilson <bob.wilson@acm.org>
2753 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
2754 config/xtensa/xtensa.c (xtensa_return_addr): New function.
2755 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
2756 config/xtensa/xtensa.md (fix_return_addr): New pattern.
2758 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2760 * mips.c (coprocessor_operand, coprocessor2_operand,
2761 symbolic_operand): Move prototypes from here...
2762 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
2763 symbolic_operand): ...to here.
2765 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2767 * config/sh/crt1.asm: remove _stack label definition
2770 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2772 * varasm.c: Include real.h before output.h.
2774 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
2776 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
2777 check for TARGET_ALTIVEC.
2779 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
2781 * config.gcc (vax-*-vms*): Make obselete.
2783 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2785 * gcc.c (warn_std): Delete.
2787 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
2789 * doc/extend.texi: Fix formatting of last checkin.
2791 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2793 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
2794 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
2796 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
2798 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2799 discrepancies from motorola's documentation.
2801 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
2803 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
2804 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
2806 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
2807 produce a 32 bit result before normalization, then normalize with a
2808 left shift. Compute approximative error of 2nd reciprocal
2809 approximation in 2's complement. Fix mask generation from upper
2810 longword of second divide stage result.
2811 For large divisor, fix shift count used to truncate first stage
2812 divide result; make decision if to adjust upwards based on comparison
2813 of higher parts of normalized values.
2814 (udivdi): Likewise. Undo normalization of result for large divisor
2817 2002-06-25 David S. Miller <davem@redhat.com>
2819 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
2821 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
2823 * cpplib.c (do_include_common): Revert to correct line number
2825 * cpptrad.c (scan_out_logical_line): Treat null directive as
2826 white space. Invlidate MI optimization for non-whitespace
2827 text outside a directive.
2829 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2831 * Makefile.in (SHELL): Set to @SHELL@.
2832 * fixinc/Makefile.in (SHELL): Likewise.
2834 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
2835 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
2838 2002-06-24 Jeff Law <law@redhat.com>
2840 * flow.c (propagate_one_insn): When removing an insn
2841 with a REG_LIBCALL note but not the entire libcall sequence,
2842 delete the associated REG_RETVAL note.
2844 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
2846 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
2847 (udivsi3): Likewise. Rewrite SH1 implementation.
2848 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
2849 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
2850 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
2851 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
2852 (_moddi3): Likewise.
2854 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
2856 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
2857 arguments into account for stack_regs.
2859 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
2861 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
2864 2002-06-24 Art Haas <ahaas@neosoft.com>
2866 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
2867 * doc/tm.texi (Frame Layout): Likewise.
2869 2002-06-20 Steve Ellcey <sje@cup.hp.com>
2871 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
2872 Set float_format to i128.
2874 2002-06-24 David S. Miller <davem@redhat.com>
2876 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
2877 32-bit ABI libfuncs to NULL.
2879 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
2880 strings instead of quoted strings for code blocks.
2882 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
2883 optabs if op1 is const0_rtx.
2885 * Makefile.in (GTFILES): Add basic-block.h
2886 * basic-block.h (label_value_list, tail_recursion_label_list):
2889 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
2891 * cpptrad.c (scan_out_logical_line): Check recursing only when
2892 we know we have a macro invocation in the function-like case.
2893 Only call _cpp_handle_directive if we know we have a good
2894 directive, or we want to reject a bad directive.
2896 2002-06-24 Alan Modra <amodra@bigpond.net.au>
2898 * doloop.c (doloop_valid_p): Correct comment.
2899 (doloop_modify_runtime <abs_inc != 1>): Simplify.
2900 (doloop_modify_runtime <do-while>): Don't emit code when NE.
2902 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
2904 * config.gcc: Add support for ip2k.
2906 2002-06-23 Jan Hubicka <jh@suse.cz>
2907 Jeff Law <law@redhat.com>
2909 * function.h (struct emit_status): Clarify potential contents
2910 of regno_reg_rtx array.
2911 * integrate.c (copy_rtx_and_substitute): Update comments. Make
2912 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
2914 * reg-stack.c (convert_regs_exit): Push the registers to stack in
2917 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
2920 * function.c (assign_stack_temp_for_type): Do not return
2921 the same MEM rtx for multiple uses of a stack slot.
2923 2002-06-22 David S. Miller <davem@redhat.com>
2925 PR target/6841 target/6770 target/6719
2926 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
2927 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
2928 GENERAL_OR_EXTRA_FP_REGS.
2930 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
2932 * cpptrad.c (struct fun_macro): Add line number.
2933 (scan_out_logical_line): Set it, and use it to report unterminated
2936 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2938 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
2939 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
2940 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
2941 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
2942 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
2943 REGEXP_ONEOF, check_name): Const-ify.
2945 2002-06-21 Matt Thomas <matt@3am-software.com>
2947 * config/vax/vax.c (vax_output_function_prologue): Use
2948 REGISTER_PREFIX. Fix some indentation.
2949 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
2950 (VAX_ISTREAM_SYNC): Define.
2951 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
2952 i-stream sync to the end.
2953 (REGISTER_PREFIX): Define as "".
2954 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
2956 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
2958 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
2961 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2963 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
2964 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
2966 2002-06-21 Matt Thomas <matt@3am-software.com>
2968 * config/vax/netbsd.h: Adjust a comment.
2969 (TARGET_DEFAULT): Redefine as 0.
2971 2002-06-21 Richard Henderson <rth@redhat.com>
2973 * bb-reorder.c (make_reorder_chain_1): Search harder for the
2974 vax casesi fallthru edge.
2975 * cfglayout.c (cleanup_unconditional_jumps): Use
2976 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
2977 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
2978 block after ADDR_VEC.
2980 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2982 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
2984 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
2986 * cpperror.c (cpp_error): For traditional CPP, default to
2987 diagnostics on pfile->line.
2988 * cpplib.c (prepare_directive_trad): Set line number for
2989 diagnostics for #define too.
2990 * cpptrad.c (skip_whitespace): Skip comments properly.
2991 (_cpp_expansions_different_trad): Initialize quote2.
2993 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
2995 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
2996 * config/mmix/mmix.h: Ditto.
2997 * config/mmix/mmix-protos.h: Ditto.
2998 * config/mmix/mmix.c: Ditto. Fix typo in comment.
2999 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
3000 comment. Comment extra CC modes.
3002 2002-06-20 Jan Hubicka <jh@suse.cz>
3004 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
3005 (scope_to_insns_finalize): Do not call set_block_levels; handle
3007 (choose_inner_scope): New.
3008 * rtl.h (choose_inner_scope): Declare.
3010 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
3012 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
3014 * pa.c (pa_asm_output_mi_thunk): Likewise.
3015 (n_deferred_plabels): Change type to size_t.
3016 (output_deferred_plabels, output_call): Use size_t instead of int.
3018 2002-06-20 Richard Henderson <rth@redhat.com>
3021 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
3022 pattern and adjust constraints for coldfire.
3024 2002-06-20 Richard Henderson <rth@redhat.com>
3026 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
3028 2002-06-20 Chris Demetriou <cgd@broadcom.com>
3030 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
3032 2002-06-20 Chris Demetriou <cgd@broadcom.com>
3034 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
3036 2002-06-20 Stan Shebs <shebs@apple.com>
3038 * dominance.c: Include errors.h instead of error.h.
3040 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
3042 * cppexp.c (cpp_interpret_integer): Don't force traditional
3043 numbers to be unsigned.
3044 * cpplib.c (prepare_directive_trad): Set line number for
3046 * cpptrad.c (scan_out_logical_line): Continue scanning out
3048 * gcc.c (trad_capable_cpp): Use cc1 always.
3050 2002-06-20 Jeffrey Law <law@redhat.com>
3052 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
3053 elimination in leaf functions by default yet.
3055 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
3057 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
3059 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3061 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
3063 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
3064 Fixes PR other/6836.
3066 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
3067 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3069 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
3071 * basic-block.h: Do not include et-forest.h
3072 (dominance_info): Declare as struct dominance-info.
3073 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
3075 * dominance.c (struct dominance_info): Define.
3076 (BB_NODE, SET_BB_NODE): New macros.
3077 (bb_hash_func, bb_eq_func): Kill.
3078 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
3079 nearest_common_dominator, dominated_by_p, recount_dominator,
3080 add_to_dominance_info, delete_from_dominance_info): update for new
3082 (get_dominated_by, redirect_immediate_dominators): Rewrite using
3084 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
3085 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
3088 * et-forest.h: Update copyright; revamp all function to operate on
3090 (et_forest_value): Kill.
3091 (et_forest_enumerate_sons, et_forest_node_value): New.
3092 * et-forest.c: Update copyright.
3093 * et-forest.h: Update copyright; revamp all function to operate on
3095 (et_forest_value): Kill.
3096 (et_forest_enumerate_sons, et_forest_node_value): New.
3098 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
3100 * basic-block.h: Inlude et-forest.h
3101 (basic_block_def): Kill dominator.
3102 (dominance_info): New type.
3103 (loops): Use dominace_info.
3104 (dominace handling functions): Take dominace_info as argument
3106 (create_preheader): Likewise.
3107 * cfg.c (entry_exit_blocks): Kill dominator.
3108 (dump_flow_info): Do not dump dominators.
3109 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
3111 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
3112 (flow_loops_pre_header_scan, make_forwarder_block,
3113 canonicale_loop_headers, flow_loops_find): Likewise.
3114 * dominance.c: Include error.h
3115 (idoms_to_doms): Kill.
3116 (bb_hash_func, bb_eq_func): New static functions.
3117 (debug_dominace_info): New global function.
3118 (calculate_dominance_info): Use new et forest structure.
3119 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
3120 get_dominated_by, redirect_immediate_dominators,
3121 nearest_common_dominator, dominated_by_p, verify_dominators,
3122 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
3123 delete_from_dominance_info): New global functions.
3124 * gcse.c (domnators): CHange to dominance_info.
3125 (alloc_hoist_mem): Do not alloc dominators
3126 (free_code_hoist_mem): Use free_dominance_info.
3127 (compute_code_hoist_data): Use dominance_info.
3128 (hoist_code): Likewise.
3129 * ifcvt.c (post_dominators): Likewise.
3130 (find_if_case_2, if_convert): Likewise.
3131 * predict.c (process_note_predictions, process_note_prediction,
3132 estimate-probability): Likewise.
3133 * sched-rgn.c (find_rgns, init_regions): Likewise.
3134 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
3135 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
3136 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
3137 find_evaluations, convert_to_ssa): Likewise.
3138 * ssa.h (compute_dominance_frontiers): Likewise.
3140 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3142 * Makefile.in (et-forest.c): Add.
3143 * et-forest.c: New file.
3144 * at-forest.h: New file.
3146 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3148 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
3149 array size calculation.
3150 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
3153 * diagnostic.c (diagnostic_kind_text): Const-ify.
3154 * gengtype.c (lang_names): Likewise.
3156 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
3158 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
3160 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3162 * config/sol2.h: New file.
3163 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
3164 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
3165 (sparc-*-chorusos*): Likewise.
3166 (sparc-*-elf*): Likewise.
3167 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
3168 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
3169 (sparc-hal-solaris2*): Likewise.
3170 (sparc-*-solaris2*): Likewise.
3171 (sparclite-*-elf*): Likewise.
3172 (sparc86x-*-elf*): Likewise.
3173 (sparc64-*-elf*): Likewise.
3175 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
3177 (ASM_SPEC): Override config/sol2.h version for now.
3178 Removed obsolete GAS_REJECTS_MINUS_S variant.
3179 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
3180 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
3181 (TARGET_OS_CPP_BUILTINS): Likewise.
3183 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
3184 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
3186 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
3187 (ASM_CPU_SPEC): Define.
3188 (SUBTARGET_EXTRA_SPECS): Define.
3190 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
3191 in config/sparc/sol2.h.
3192 (ASM_SPEC): Moved to config/sol2.h.
3193 (CPP_CPU_SPEC): Simplified.
3194 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
3196 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
3197 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
3198 STARTFILE_ARCH64_SPEC.
3199 (STARTFILE_SPEC): Moved to config/sol2.h
3200 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
3201 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
3202 (LINK_ARCH64_SPEC): Simplified.
3203 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
3204 (LINK_SPEC): Moved to config/sol2.h
3206 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
3208 Use BITS_PER_WORD for size.
3209 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
3210 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
3211 (CPP_PREDEFINES): Removed OS-specific part handled by
3212 TARGET_OS_CPP_BUILTINS.
3213 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
3214 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
3215 (ASM_SPEC): Moved to config/sol2.h.
3216 (PREFERRED_DEBUGGING_TYPE): Likewise.
3217 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
3218 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
3219 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
3220 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
3222 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
3223 * config/i386/sol2gas.h: Removed.
3225 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
3227 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
3229 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
3231 * gcc.c-torture/execute/simd-1.c: New.
3233 * gcc.dg/simd-1.c: New.
3235 * doc/extend.texi (Vector Extensions): Document that we can
3236 specify simd types not specifically supported by the hardware.
3237 Document that simd types can be used as function arguments.
3238 Document that signness does make a difference in SIMD types.
3239 Misc cleanups and revisions to the vector extensions section.
3241 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
3244 * expr.c (vector_mode_valid_p): New.
3246 * expr.h: Add vector_mode_valid_p.
3248 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
3250 * c-common.c (type_for_mode): Always build vector nodes regardless
3251 of VECTOR_MODE_SUPPORTED_P.
3252 (handle_mode_attribute): Error if we can't emulate a nonexisting
3254 (handle_vector_size_attribute): Same.
3256 * optabs.c (expand_binop): Open-code vector operations.
3257 (expand_unop): Open-code vector unops.
3258 (expand_vector_binop): New.
3259 (expand_vector_unop): New.
3261 * c-typeck.c (build_binary_op): Allow vectors in binops.
3262 Allow vectors in conditional operatiors.
3263 (build_unary_op): Allow vectors in unary minus.
3265 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
3268 2002-05-20 Richard Henderson <rth@redhat.com>
3270 * c-common.c (c_common_get_alias_set): Correctly handle characters.
3271 Rearrange order of expressions; don't handle vectors here.
3272 * alias.c (get_alias_set): Let vectors match their components.
3274 2002-06-19 Chris Demetriou <cgd@broadcom.com>
3276 * config/mips/mips.c (mips_emit_prefetch): Use hints which
3277 match desired locality.
3279 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3281 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
3282 (h8300_insert_attributes): New.
3284 2002-06-19 Akim Demaille <akim@epita.fr>
3286 * c-parse.in (initelt: identifier ':' initval): Add an empty
3287 action to fix a type clash.
3288 (aliasdecl, classdef): Add the missing closing `;'.
3290 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
3291 $$ = $1 type clashes.
3293 2002-06-19 Eric Christopher <echristo@redhat.com>
3295 * config/mips/mips.c (symbol_operand): New function.
3296 (mips_emit_prefetch): Ditto.
3297 * config/mips/mips-protos.h: Define.
3298 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
3299 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
3300 (LEGITIMIZE_ADDRESS): Ditto.
3301 * config/mips/mips.md (prefetch, prefetch_si_address,
3302 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
3304 2002-06-19 Eric Christopher <echristo@redhat.com>
3306 * config/fp-bit.h: Add unordered defines for gofast.
3308 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
3310 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
3311 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
3312 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
3313 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
3314 checking and without it.
3315 (decl_name, decl_mode_check_failed, regexp_name,
3316 regexp_mode_check_failed): New functions.
3317 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3318 gen_presence_set, gen_absence_set, gen_automaton,
3319 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3320 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
3321 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
3322 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
3323 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
3324 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
3325 (decl_hash, decl_eq_p): Use the macros.
3326 (find_decl): Ditto. Set up mode of work_decl.
3327 (process_excls, process_presence_absence, process_decls,
3328 check_automaton_usage, process_regexp, process_regexp_decls,
3329 check_usage, loop_in_regexp, check_loops_in_regexps,
3330 process_regexp_cycles, add_advance_cycle_insn_decl,
3331 initiate_states, initiate_excl_sets,
3332 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
3333 transform_2): Use the macros.
3334 (transform_3): Ditto. Check mode before making transformations of
3336 (regexp_transform_func, transform_insn_regexps,
3337 process_unit_to_form_the_same_automaton_unit_lists,
3338 form_the_same_automaton_unit_lists_from_regexp,
3339 form_the_same_automaton_unit_lists,
3340 process_seq_for_forming_states, process_alts_for_forming_states,
3341 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
3342 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
3343 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
3344 units_to_automata_heuristic_distr, create_ainsns,
3345 units_to_automata_distr, create_automata): Use the macros.
3346 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
3347 (longest_path_length, min_issue_delay_pass_states,
3348 output_dead_lock_vect, output_tables, output_insn_code_cases,
3349 output_internal_insn_latency_func, output_print_reservation_func,
3350 output_description, output_automaton_units, generate): Use the
3352 (make_insn_alts_attr): Ditto. Check case when there are not
3353 alternatives in the reservation.
3354 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
3355 make_bypass_attr, form_important_insn_automata_lists,
3356 expand_automata): Use the macros.
3358 2002-06-20 Tim Josling <tej@melbpc.org.au>
3360 * Makefile.in: Clean up code to check for misspecified languages
3361 in enable-languages.
3363 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
3365 * cpptrad.c (_cpp_replacement_text_len): initialize len.
3367 2002-06-19 Jason Merrill <jason@redhat.com>
3369 * Makefile.in (unstrap, restrap): New targets.
3370 (bootstrap): Mention restrap.
3372 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
3374 * except.c (ehl_free): Remove.
3376 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
3377 builtin_define and builtin_define_std.
3379 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3381 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
3382 (sCOND): Restrict operand class so that gcc knows how to reload them.
3383 (bitfield_set): Merge two unnamed insn's using alternatives.
3384 (call_value): Remove constraint on unused uperand.
3385 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
3386 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
3388 * longlong.h (count_trailing_zeros): Escape newline and beautify.
3390 2002-06-19 Mark Mitchell <mark@codesourcery.com>
3392 * Makefile.in (QMTEST_DIR): Simplify definition.
3394 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
3396 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
3399 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
3401 * cpphash.h (struct cpp_reader): Make date and time strings.
3402 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
3403 _cpp_replacement_text_len): New.
3404 * cppinit.c (cpp_create_reader): Update.
3405 (init_builtins): Register appropriate builtins for -traditional-cpp.
3406 * cppmacro.c (new_number_token): Remove.
3407 (_cpp_builtin_macro_text): New.
3408 (builtin_macro): Use it.
3409 (cpp_macro_definition): Update to handle traditional macros.
3410 * cppmain.c (cb_line_change): Don't do column positioning for
3412 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
3414 (skip_whitespace): Fix.
3415 (maybe_start_funlike): Don't set state.parsing_args.
3416 (scan_out_logical_line): Remove duplicate error. Use lex_state
3417 rather than state.parsing_args.
3418 (push_replacement_text): Handle builtins.
3419 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
3421 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
3422 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3424 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
3425 attribute __always_inline__.
3427 2002-06-18 Bob Wilson <bob.wilson@acm.org>
3429 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
3430 when generating the call to _mcount.
3431 (NO_PROFILE_COUNTERS): Define.
3433 2002-06-18 Richard Henderson <rth@redhat.com>
3435 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
3438 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
3440 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
3441 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
3442 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
3443 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
3445 * sh-protos.h (sh_pr_interrupt): Declare.
3446 * sh.c (sh_pr_interrupt): New function.
3447 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
3448 (sh_hard_regno_rename_ok): Likewise.
3449 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
3451 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
3453 * rtl.def (DEFINE_AUTOMATON): Add description of new options
3454 `time' and `v'. Fix incorrect description of option `w'.
3456 * doc/md.texi: Ditto.
3458 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
3459 (gen_automata_option): Process the new options.
3460 (transform_2, transform_3): Initialize some variables.
3461 (initiate_automaton_gen): Use the new macros.
3463 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
3465 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
3466 (mips_set_return_address, mips_restore_gp): Declare.
3467 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
3468 (current_frame_info): Remove.
3469 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
3470 * config/mips/mips.c: Remove uses of current_frame_info.
3471 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
3472 (struct machine_function): Add 'frame' and 'insns_len'.
3473 (current_frame_info, zero_frame_info): Remove.
3474 (mips_restore_gp, mips_set_return_address): New.
3475 (mips_initial_elimination_offset): New.
3476 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
3477 (eh_return define_split): Use mips_set_return_address.
3479 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
3481 * cpplib.c (dtable): Update.
3482 (end_directive): Decrement expansion prevention count.
3483 Clear state.in_expression.
3484 (prepare_directive_trad): Set state.in_expression.
3485 Increment expansion prevention count.
3486 * cpptrad.c (enum ls): New.
3487 (_cpp_overlay_buffer): Set overlaid_buffer.
3488 (_cpp_remove_overlay): Use overlaid_buffer.
3489 (_cpp_read_logcial_line_trad): Update buffer when it might
3491 (scan_out_logical_line): Handle state transitions for assertions
3492 and defined() in #if, and for funlike invocations including the
3493 directive case. Handle '<' and '>' as a quote mechanism in
3494 #include. Warn about unterminated macro invocations.
3495 * cpphash.h (struct lexer_state): New member in_expression.
3496 (struct cpp_reader): New member overlaid buffer.
3498 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
3500 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
3503 2002-06-18 Alan Modra <amodra@bigpond.net.au>
3505 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
3507 * doloop.c (doloop_optimize): Extract pattern from insn.
3509 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
3511 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
3513 2002-06-17 Jeff Law <law@redhat.com>
3515 * libgcc2.c: Do not include symcat.h or machmode.h.
3517 2002-06-17 Richard Henderson <rth@redhat.com>
3520 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
3522 2002-06-17 Tom Tromey <tromey@redhat.com>
3524 * dwarfout.c: Include function.h.
3526 2002-06-17 Andreas Schwab <schwab@suse.de>
3528 * print-rtl.c (print_rtx): Print space before vector, not after.
3529 (debug_rtx): Clear sawclose before printing.
3530 (debug_rtx_list): Print newline after each list element.
3531 (debug_rtx_range): Likewise.
3533 2002-06-17 Richard Henderson <rth@redhat.com>
3535 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
3536 (current_function_funcdef_no): Similarly.
3537 * function.c (funcdef_no): Similarly.
3538 (prepare_function_start): Set current_function_funcdef_no.
3539 (expand_function_start): Don't set current_function_profile_label_no.
3540 * dwarf2out.h (current_funcdef_number): Remove.
3541 * dwarf2out.c (current_funcdef_number): Remove. Replace with
3542 current_function_funcdef_no throughout.
3543 * dwarfout.c, vmsdbgout.c: Similarly.
3544 * except.c (sjlj_funcdef_number): Remove.
3545 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
3546 (output_function_exception_table): Likewise.
3547 * final.c (profile_function): Use current_function_funcdef_no
3548 instead of current_function_profile_label_no.
3550 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
3552 * sched-ebb.c (init_ready_list): Check INSN_P first.
3554 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
3556 * sh.md (divsi3): Update way how to find insns in a sequence.
3558 * reload1.c (merge_assigned_reloads): Don't change reloads
3559 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
3560 to RELOAD_OTHER when there are conflicting input reloads.
3562 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
3564 * function.c (epilogue_done): Correctly build a sequence of insns for
3567 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
3569 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
3572 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
3574 2002-06-16 Richard Henderson <rth@redhat.com>
3576 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
3577 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
3579 2002-06-16 Richard Henderson <rth@redhat.com>
3582 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
3584 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
3586 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
3587 * config/i386/i386-aout.h, config/i386/i386elf.h,
3588 config/i386/sysv4.h: Remove CPP_PREDEFINES.
3589 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
3590 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
3591 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
3592 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
3593 CPP_PREDEFINES and part of CPP_SPEC.
3594 * config/i386/sysv4-cpp.h: New.
3596 2002-06-16 Richard Henderson <rth@redhat.com>
3599 * dwarf2out.c (modified_type_die): Don't assign the qualified die
3600 to the unqualified type.
3602 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
3604 * i386-protos.h (x86_field_alignment): Declare.
3605 * i386.c (x86_field_alignment): Define.
3606 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
3607 (BIGGEST_FIELD_ALIGNMENT): Kill.
3609 2002-06-16 Richard Henderson <rth@redhat.com>
3611 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
3613 2002-06-16 Richard Henderson <rth@redhat.com>
3615 * c-common.c (flag_ms_extensions): Move from c++ front end.
3616 * c-common.h (flag_ms_extensions): Declare.
3617 * c-decl.c (c_decode_option): Add -fms-extensions.
3618 (grokfield): Don't accept anonymous structures in ISO C mode;
3619 accept only unnamed anonymous structures in GNU C mode; accept
3620 Plan 9 extensions in MS mode.
3621 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
3622 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
3623 (extension): Clear flag_iso.
3624 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
3626 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
3629 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
3630 early if current_function_epilogue_delay_list is non-empty.
3631 * config/cris/cris.md ("return"): Add sanity check asserting that
3632 current_function_epilogue_delay_list is empty.
3634 2002-06-16 Jeff Law <law@redhat.com>
3636 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
3637 sharing of hard registers.
3639 * toplev.c (rest_of_compilation): Remove redundant conditional.
3641 * toplev.c (rest_of_compilation): Perform a simpler, less costly
3642 cleanup of the CFG when not optimizing.
3644 2002-06-16 Alan Modra <amodra@bigpond.net.au>
3646 * gcc.c (main): Correct startfile_prefix_spec check.
3648 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3650 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
3651 include both darwin.o and rs6000-c.o.
3653 2002-06-15 Roger Sayle <roger@eyesopen.com>
3655 * expr.c (compare_from_rtx): Call simplify_relational_operation
3656 on all comparisons, not just those between integer constants,
3657 with the correct (possibly unsigned) comparison code.
3658 (do_compare_rtx_and_jump): Likewise.
3660 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
3662 * Makefile.in (tm_defines): New configuration variable.
3663 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
3664 Pass tm_defines in TM_DEFINES.
3665 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
3666 * config.gcc (tm_defines): New configuration variable.
3667 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
3668 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
3669 * configure.in: Substitute tm_defines.
3670 * configure: Rebuilt.
3671 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
3672 * doc/install.texi: Update.
3673 * pa/pa-700.h: Delete file.
3674 * pa/pa-7100.h: Delete file.
3676 2002-06-15 Roger Sayle <roger@eyesopen.com>
3678 * fold-const.c (comparison_to_compcode): New function to convert
3679 an comparison TREE CODE into a bit-based representation.
3680 (compcode_to_comparison): New function to convert from this bit
3681 based representation back to a comparison TREE CODE.
3682 (fold_truthop): Simplify (x<y) && (x==y) and related composite
3685 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
3687 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
3689 * stor-layout.c (compute_record_mode): Remove check for
3690 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
3691 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
3692 MEMBER_TYPE_FORCES_BLK.
3694 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
3696 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
3698 2002-06-14 Jeff Sturm <jsturm@one-point.com>
3700 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
3702 2002-06-14 Steve Ellcey <sje@cup.hp.com>
3704 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
3705 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
3706 * configure, config.in: Regenerate.
3708 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3710 * loop.c (check_final_value): Use v->always_executed
3711 instead of v->always_computable.
3712 * unroll.c (final_giv_value): Don't calculate the final
3713 value as a function of the biv if the giv is not computed
3714 for every loop iteration.
3716 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3718 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
3720 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3723 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
3724 the truncation down when the target type is signed.
3725 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
3726 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
3727 the conversion if the target type is a smaller type.
3729 2002-06-14 Richard Henderson <rth@redhat.com>
3731 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
3732 earlier. Re-factor comparisons vs extrema.
3734 2002-06-14 Richard Henderson <rth@redhat.com>
3736 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
3738 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3740 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
3741 * sched-deps.c (add_dependence): Likewise.
3742 (group_leader): Likewise.
3743 * sched-rgn.c (init_ready_list): Likewise.
3744 * doc/rtl.texi: Adjust accordingly.
3746 2002-06-13 Jeffrey Law <law@redhat.com>
3748 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
3749 null pointer checks were eliminated. Update prototype.
3750 (delete_null_pointer_checks): Similarly.
3751 * rtl.h (delete_null_pointer_checks): Update prototype.
3752 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
3753 delete_null_pointer_checks deletes one or more null
3754 pointer checks. Do not run cleanup_cfg before gcse, the
3755 CFG is accurate and optimized at that point..
3757 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
3760 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3762 * Makefile.in (libgcc.mk): Depend on specs.
3764 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
3766 * sh.md (mulsi3): Update way how to find insns in a sequence.
3768 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3770 * sh.h: Define HARD_REGNO_RENAME_OK
3771 * sh.c: sh_hard_regno_rename_ok: New. If current function has
3772 interrupt_handler attribute, only registers saved on stack are OK.
3773 * sh-protos.h: Declare sh_hard_regno_rename_ok.
3775 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
3777 * config/sh/sh.md (jump): Emit jump insn.
3778 (call_pcrel): Get pattern of the result of gen_call_site.
3779 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
3781 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
3783 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
3784 * cpptrad.c: Update comments.
3785 (skip_whitespace, copy_comment): Take a new parameter.
3786 (skip_escaped_newlines): Don't duplicate escaped newline test.
3787 (copy_comment): Different location for CUR, decide here how
3788 to copy / replace the comment.
3789 (skip_whitespace): Copy whitespace.
3790 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
3791 (scan_out_logical_line): Let copy comment handle keeping or
3793 (scan_parameters, _cpp_create_trad_definition): Update.
3795 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
3797 * reload.c (get_secondary_mem,find_reloads_address,
3798 find_reloads_address_1): Pass reference to MEM to find_reloads_address
3799 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
3801 2002-06-13 Jessica Han <jessica@cup.hp.com>
3803 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
3804 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
3805 * doc/tm.texi: Document them.
3806 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
3807 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
3808 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
3809 (ASM_OUTPUT_FDESC): Likewise.
3811 2002-06-13 Eric Christopher <echristo@redhat.com>
3813 * diagnostic.c (output_format): Fix thinko.
3815 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
3817 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
3818 (DWARF2_UNWIND_INFO): Define to 0.
3820 * config/sh/sh.c (calc_live_regs): Don't use initial_value
3821 optimization for PR_MEDIA_REG.
3823 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
3825 * cpphash.h (_cpp_lex_identifier_trad): Remove.
3826 * cpplib.c (end_directive): Don't skip, always remove overlay
3828 (prepare_directive_trad): Handle NULL pfile->directive.
3829 (_cpp_handle_directive): Always call prepare_directive_trad
3831 * cppmain.c (check_multiline_token): Rename account_for_newlines,
3833 (scan_translation_unit_trad): Use it.
3834 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
3835 output, get escaped newline in comment close correct.
3836 (check_output_buffer, skip_whitespace): Update.
3837 (_cpp_lex_identifier_trad): Remove.
3838 (scan_out_logical_line): Handle -C and comments in directives
3841 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
3843 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
3844 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3845 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
3846 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
3847 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
3848 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
3849 (SELECT_SH5_COMPACT_NOFPU): Likewise.
3850 (TARGET_SWITCHES): Use them.
3851 (TARGET_CPU_DEFAULT): Define if not already defined.
3852 (TARGET_DEFAULT): Use it.
3853 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
3854 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
3855 * config/sh/t-monolib: New file.
3857 2002-06-13 Roger Sayle <roger@eyesopen.com>
3859 * toplev.c (rest_of_compilation): Simplify (and correct) the
3860 logic of the first delete-null-pointer-checks pass.
3862 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
3864 * i386.c (ix86_expand_movstr): Fix pasto.
3866 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
3868 * reload.c (find_valid_class): Fix thinko in my previous patch.
3870 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3872 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
3873 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
3874 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
3875 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
3877 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
3879 * tree-inline.c (expand_call_inline): Don' mess with _DECL
3882 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
3884 * diagnostic.c (output_format): Recognize "%H" as a format
3885 specifier for a location_t.
3886 (text_specifies_location): New function.
3887 (diagnostic_set_info): Use it.
3889 2002-06-13 Jeffrey Law <law@redhat.com>
3891 * emit-rtl.c (static_regno_reg_rtx): Define.
3892 (init_emit_once): Initialize static_regno_reg_rtx.
3893 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
3894 of building new hard reg objects once per function.
3895 (gen_rtx_REG): Try to share hard regs.
3896 * regclass.c (init_fake_stack_mems): New function broken out from
3898 * rtl.h (init_fake_stack_mems): Declare.
3899 * toplev.c (lang_independent_init): Call init_regs before
3900 init_emit_once. Call init_fake_stack_mems after init_emit_once.
3902 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
3904 * alias.c (argument_registers): Remove.
3905 (init_alias_once): Initialize static_reg_base_value here. Remove
3906 initialization of argument_registers.
3907 (init_alias_once_per_function): Remove.
3908 (init_alias_analysis): Copy all the entries from static_reg_base_value
3909 into new_reg_base_value all at once.
3910 * rtl.h (init_alias_once_per_function): Remove declaration.
3911 * function.c (prepare_function_start): Do not call
3912 init_alias_once_per_function.
3914 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
3915 starting a sequence and emitting an INSN.
3917 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
3919 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
3921 2002-06-13 David S. Miller <davem@redhat.com>
3923 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
3925 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
3927 * cpplib.c (end_directive): Handle line skipping. Only remove
3928 the rest of the line if the directive was valid.
3929 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
3930 expanding a traditional macro.
3931 * cpptrad.c (recursive_macro): New.
3932 (read_logical_line_trad): Handle skipping.
3933 (scan_out_logical_line): Continue after a successful directive.
3934 Don't expand macros whilst skipping, or if recursing.
3935 (_cpp_create_trad_definition): scan_out_logical_line now sets
3936 the output current position.
3938 2002-06-12 Eric Christopher <echristo@redhat.com>
3940 From Chris Demetriou <cgd@broadcom.com>
3941 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
3943 (ISA_HAS_MADD_MSUB): Ditto.
3944 (ISA_HAS_NMADD_NMSUB): Ditto.
3946 2002-06-12 Eric Christopher <echristo@redhat.com>
3948 * config.gcc: Consolidate little endian handling and
3949 little/big endian targets.
3950 * config/mips/elfl.h: Remove file.
3951 * config/mips/elfl64.h: Ditto.
3952 * config/mips/ecoffl.h: Ditto.
3953 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
3955 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3957 * gengtype.h (xvasprintf): New prototype.
3958 (xasprintf): New prototype.
3960 (get_output_file): Return an outf_p.
3961 (header_file): Is now an outf_p.
3962 (base_files): Now are outf_p.
3964 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
3965 rather than stdio operations. Use xasprintf in a few places,
3969 (struct filemap): Delete.
3971 (output_files): New.
3973 (create_file): Create an outf_p. Add parameter to indicate output
3974 file name, change all callers.
3975 (open_base_files): Create gtype-desc.c here.
3976 (get_output_file_with_visibility): Rewrite.
3977 (get_output_file_name): Just look at 'name' field in struct outf.
3978 (close_output_files): Rewrite.
3980 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
3982 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
3983 (MASK_G_FLOAT): Define.
3984 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
3985 (TARGET_SWITCHES): Likewise.
3986 (TARGET_DEFAULT): Likewise.
3988 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
3990 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
3991 * config/mips/mips.c (mips_output_filename): Don't print a
3992 ".file" directive if we are using DWARF-2.
3993 (mips_output_function_prologue): Do not emit source file
3994 name for TARGET_GAS.
3996 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
3998 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
3999 decide whether emit the short opcode.
4000 * i386.h (x86_shift1): Declare.
4001 (TARGET_SHIFT1): New macro.
4002 * i386.c (x86_shift1): New global variable.
4004 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
4005 unconditionally; make loop to rebuild CFG; kill unnecesary
4006 find_basic_block calls; kill compute_bb_for_insn call.
4007 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
4008 * haifa-sched.c (sched_init): Likewise.
4009 * ssa-ccp.c (ssa_const_prop): Likewise.
4010 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4012 2002-06-11 David S. Miller <davem@redhat.com>
4014 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
4017 2002-06-11 Richard Henderson <rth@redhat.com>
4019 * c-common.c (builtin_define_type_max): New.
4020 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
4021 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
4023 From Joseph S. Myers:
4024 * glimits.h: Rewrite to expect the double underscore definitions
4027 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
4028 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
4029 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
4030 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4031 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
4032 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
4033 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
4034 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
4036 2002-06-11 Richard Henderson <rth@redhat.com>
4038 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
4039 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
4040 (code_for_builtns): Update.
4041 (alpha_init_builtins): Add __builtin_thread_pointer and
4042 __builtin_set_thread_pointer.
4043 (alpha_expand_builtin): Handle void builtins.
4044 * doc/extend.texi (Alpha Built-in Functions): Update.
4046 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
4049 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
4051 2002-06-11 Zack Weinberg <zack@codesourcery.com>
4053 * config.gcc: Make the name of the extra-modes file adjustable
4055 (s390x, strongarm, xscale stanzas): Use this facility.
4056 * configure.in: Update to match.
4057 * configure: Regenerate.
4059 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
4061 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
4062 max/mins as unsigned GE compares.
4064 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
4066 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
4067 * config/vax/bsd.h: New file.
4068 * config/vax/netbsd.h: Add missing notice.
4069 (CPP_PREDEFINES): Remove.
4070 (TARGET_OS_CPP_BUILTINS): Define.
4071 (CPP_SPEC): Use NETBSD_CPP_SPEC.
4072 * config/vax/openbsd.h: Update copyright years.
4073 (CPP_PREDEFINES): Remove.
4074 (TARGET_OS_CPP_BUILTINS): Define.
4075 * config/vax/ultrix.h: Likewise.
4076 * config/vax/vaxv.h: Likewise.
4077 * config/vax/vms.h: Likewise.
4078 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
4079 (CPP_PREDEFINES, CPP_SPEC): Remove.
4081 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
4083 * i386.md (addqi_1_slp, subqi_1_slp
4084 (andqi_ext0, testqi_ext0): Remove unnecesary check.
4085 (addhi*, addqi*): Simplify "dec" condition.
4086 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
4087 (and, or, xor to QImode splitters): New.
4090 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
4091 (andqi_ext_1_rex64): New.
4095 (rotrqi3*_slp): New.
4096 (rotlqi3*_slp): New.
4098 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
4100 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
4102 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
4103 (CPP_ENDIAN_LITTLE_SPEC): Delete.
4104 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
4105 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
4106 __LONG_DOUBLE_128__ setting, _CALL_* setting.
4107 (CPP_DEFAULT_SPEC): Delete.
4108 (CPP_FLOAT_DEFAULT_SPEC): Delete.
4109 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
4110 (CPP_SYSV_DEFAULT_SPEC): Delete.
4111 (CPP_ENDIAN_BIG_SPEC): Delete.
4112 (CPP_ENDIAN_LITTLE_SPEC): Delete.
4113 (CPP_ENDIAN_SPEC): Delete.
4114 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
4115 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
4116 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
4117 cpp_longdouble_default.
4118 * config/rs6000/softfloat.h: Delete.
4119 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
4120 (EXTRA_SPECS): Delete cpp_cpu.
4121 (TARGET_CPU_CPP_BUILTINS): New.
4122 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
4124 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
4125 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
4126 (CPP_DEFAULT_SPEC): Delete.
4127 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
4128 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
4129 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
4130 (CPP_DEFAULT_SPEC): Delete.
4131 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
4132 (CPLUSPLUS_CPP_SPEC): Likewise.
4133 (CPP_CPU_SPEC): Delete.
4134 (CPP_DEFAULT_SPEC): Delete.
4135 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
4136 (CPLUSPLUS_CPP_SPEC): Likewise.
4137 (CPP_CPU_SPEC): Delete.
4138 (CPP_DEFAULT_SPEC): Delete.
4139 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
4140 (CPP_DEFAULT_SPEC): Delete.
4141 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
4142 (CPP_DEFAULT_SPEC): Delete.
4144 * doc/gty.texi: Small updates.
4146 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
4148 * objc/objc-act.c (warn_with_ivar): Adjust calls to
4149 diagnostic_count_error.
4150 (warn_with_method): Likewise.
4152 * diagnostic.h (warnings_are_errors_message): New field of
4154 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
4156 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
4157 (diagnostic_count_diagnostic): Make aware of other kinds of
4159 (diagnostic_initialize): Initialize warnings_are_errors_message field.
4161 2002-06-11 Tom Tromey <tromey@redhat.com>
4164 * fold-const.c (fold_convert): Don't modify existing tree's type.
4166 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
4168 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
4170 2002-06-11 Richard Henderson <rth@redhat.com>
4172 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
4174 2002-06-11 Richard Henderson <rth@redhat.com>
4176 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
4177 DWARF2_UNWIND_INFO is false.
4179 2002-06-11 Bob Wilson <bob.wilson@acm.org>
4181 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
4183 * config/s390/s390.c (emit_prologue): gen_store_multiple
4184 returns an insn now, not a pattern.
4186 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4188 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
4191 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4193 * i386.c (x86_promote_QImode): Set for Athlon
4194 (x86_fast_prefix): New global variable.
4195 (x86_arch_always_fancy_math_387): Fix formating.
4196 * i386.h (x86_fast_prefix): Declare
4197 (TARGET_FAST_PREFIX): define.
4198 * i386.md (and to strict_low_part, HI to SI
4199 promoting splitter): Use new macro.
4201 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
4203 2002-06-11 Zack Weinberg <zack@codesourcery.com>
4205 * Makefile.in (distclean): Delete junk left in testsuite
4208 2002-06-11 Jeffrey Law <law@redhat.com>
4210 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
4211 last insn created by the splitter.
4213 * caller-save.c (init_caller_save): Move creation of SAVEINSN
4214 and RESTINSN into into the scope of the sequence.
4216 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
4219 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
4221 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
4222 not the pattern. So extract the pattern from the insn.
4224 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
4226 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
4228 * config/s390/s390.md (movsi): Only use floating point
4229 register alternatives when operands are already fprs.
4230 (movdi_31, movdi_64): Likewise.
4232 2002-06-11 David S. Miller <davem@redhat.com>
4234 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
4235 Only run RTX equality checks on INSN_P rtl.
4237 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
4239 * config/s390/s390.md (reload_base, ltorg): Remove.
4240 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
4241 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
4242 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
4243 s390_asm_output_pool_prologue): Likewise.
4244 * s390.h (s390_pool_start_insn): Likewise.
4246 * s390.c (s390_output_symbolic_const): Remove support for
4247 old-style pool chunks.
4248 (s390_function_epilogue): Likewise.
4249 (s390_output_constant_pool): Likewise. Also, fix incorrect
4250 alignment for 64-bit literal pools.
4251 (print_operand_address): Remove 'y' and 'Y' format flags.
4252 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
4253 old-style pool chunks.
4254 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
4255 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
4256 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
4258 * s390.c (consttable_operand): New function.
4259 * s390-protos.h (consttable_operand): Declare it.
4260 * s390.h (PREDICATE_CODES): Add consttable_operand.
4261 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
4262 consttable_sf, consttable_df, pool_start_31, pool_end_31,
4263 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
4264 * s390.c (struct constant, struct constant_pool): New data types.
4265 (constant_modes, gen_consttable): New variables.
4266 (s390_start_pool, s390_end_pool, s390_add_pool,
4267 s390_dump_pool, s390_free_pool): New functions.
4268 (s390_chunkify_pool): Completely reimplement literal pool
4271 * s390.c (s390_pool_overflow): New variable.
4272 * s390.h (s390_pool_overflow): Declare it.
4273 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
4274 jumps in literal pool overflow situations.
4276 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
4277 (s390_frame_info): Account for possible use of RETURN_REGNUM
4278 by new literal pool overflow code.
4279 (s390_emit_prologue): Likewise.
4281 2002-06-05 David S. Miller <davem@redhat.com>
4283 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
4284 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
4285 emit_insns_before_scope, emit_insns_after,
4286 emit_insns_after_scope): Delete declaration.
4287 * ada/misc.c (insert_code_for): Use emit_insn* instead of
4289 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
4290 (alpha_set_memflags): Fix comment.
4291 (set_frame_related_p): Use get_insns instead of gen_sequence.
4292 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
4294 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
4296 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
4297 * config/fr30/fr30.c (fr30_move_double): Likewise.
4298 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
4300 * config/ia64/ia64.c (spill_restore_mem): Likewise.
4301 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
4303 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
4304 instead of gen_sequence.
4305 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
4306 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
4307 * config/sh/sh.c (sh_need_epilogue): Likewise.
4308 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
4310 (setjmp pattern and split): Use them to avoid splitter which emits
4312 * genattrtab.c (main): Emit include of function.h
4313 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
4314 get_insns instead of gen_sequence.
4315 * config/cris/cris.c (cris_split_movdx): Likewise.
4316 * emit-rtl.c (emit_insns*): Kill.
4317 (try_split): Expect insn list instead of SEQUENCE.
4318 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
4319 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
4320 Make them abort if a SEQUENCE is given and RTL checking is
4322 (emit_*_scope): Don't forget to set scope on final insn.
4323 (gen_sequence): Move from here...
4324 * ssa.c (gen_sequence): To here as private function.
4325 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
4327 (expand_builtin_return, expand_builtin_mathfn): Likewise.
4328 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
4329 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
4330 (expand_builtin_expect_jump): Use get_insns and fix comments.
4331 * calls.c (try_to_integrate): Use emit_insn_foo.
4332 (expand_call, emit_library_call_value_1): Likewise.
4333 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
4334 (emit_move_insn_1): Use get_insns instead of gen_sequence.
4335 (expand_expr): Use emit_insn_foo.
4336 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
4337 * except.c (build_post_landing_pads): Likewise.
4338 * flow.c (attempt_auto_inc): Likewise.
4339 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
4340 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
4341 * function.c (fixup_var_refs_insn): Use get_insns instead of
4343 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
4344 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
4345 (fixup_stack_1, purge_addressof_1, expand_main_function,
4346 get_arg_pointer_save_area): Likewise.
4347 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
4348 expand_function_end): Use emit_insn_foo.
4349 (record_insns, keep_stack_depressed): Work with insn list instead
4350 of SEQUENCE, fix comments.
4351 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
4352 noce_try_store_flag_constants, noce_try_store_flag_inc,
4353 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
4354 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
4355 (noce_process_if_block): Use get_insns instead of gen_sequence.
4356 * optabs.c (add_equal_note): Work with insn list, fix comments.
4357 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
4358 (expand_unop, expand_complex_abs, expand_unop_insn,
4359 expand_no_conflict_block): Likewise.
4360 (gen_move_insn): Use get_insns instead of gen_sequence.
4361 (gen_cond_trap): Likewise.
4362 * integrate.c (copy_rtx_and_substitute): Likewise.
4363 (emit_initial_value_sets): Use emit_insn_foo.
4364 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
4365 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
4366 now that RTL generators give insn lists.
4367 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
4368 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
4369 instead of gen_sequence.
4370 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
4371 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
4372 instead of gen_sequence.
4373 * loop.c (move_movables, emit_prefetch_instructions,
4374 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
4376 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
4377 (product_cheap_p): Likewise, and add commentary about RTL wastage
4379 * lcm.c (optimize_mode_switching): Use get_insns instead of
4381 * profile.c (gen_edge_profiler): Likewise.
4382 * regmove.c (copy_src_to_dest): Likewise.
4383 * reg-stack.c (compensate_edge): Likewise and fix comment.
4384 * gcse.c (process_insert_insn): Likewise.
4385 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
4386 * jump.c (delete_prior_computation): Update comment.
4387 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
4388 of gen_sequence, update comments to match.
4389 * recog.c (peephole2_optimize): Work with insn lists instead of
4391 * sched-vis.c (print_pattern): Abort on SEQUENCE.
4392 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
4393 Use get_insns instead of gen_sequence.
4394 (copy_loop_body): Likewise and don't emit dummy NOTE.
4395 * genrecog.c: Don't mention SEQUENCE rtl in comments.
4396 * combine.c (try_combine): Expect insn lists from split generator.
4397 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
4400 2002-06-11 Roger Sayle <roger@eyesopen.com>
4401 Andreas Jaeger <aj@suse.de>
4403 * cfgbuild.c: Update copyright years.
4405 2002-06-11 Andreas Schwab <schwab@suse.de>
4407 * config/m68k/m68k.h (PREDICATE_CODES): Define.
4409 2002-06-11 Eric Christopher <echristo@redhat.com>
4411 * doc/tm.texi (Run-time Target): Add comment about flag_iso
4413 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
4414 * config/mips/ecoffl.h: Ditto.
4415 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
4416 (CPP_PREDEFINES): Ditto.
4417 * config/mips/elfl64.h: Ditto.
4418 * config/mips/elfl.h: Ditto.
4419 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
4420 out until irix header consolidation.
4421 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
4422 with SUBTARGET_OS_CPP_BUILTINS.
4423 * config/mips/iris6.h: Ditto.
4424 (CPLUSPLUS_CPP_SPEC): Remove.
4425 * config/mips/linux.h: Ditto.
4426 * config/mips/netbsd.h: Ditto.
4427 * config/mips/openbsd.h: Ditto.
4428 * config/mips/rtems.h: Ditto.
4429 * config/mips/rtems64.h: Ditto.
4430 * config/mips/sni-svr4.h: Ditto.
4431 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
4432 ISA_MIPS32, ISA_MIPS64): New defines.
4433 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
4434 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
4435 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4436 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
4437 (TARGET_CPU_CPP_BUILTINS): Define.
4438 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
4439 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
4440 (movdicc): Remove check for ISA_MIPS32.
4441 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
4442 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
4443 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
4444 sunge_sf, sunle_df, sunle_sf): New patterns.
4446 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
4448 * Makefile.in: Update cppmain.o.
4449 * cpphash.h (struct cpp_reader): Move some members to a
4451 (trad_line): Rename saved_line.
4452 (_cpp_read_logical_line_trad): Update.
4453 (_cpp_remove_overlay): New.
4454 * cppinit.c (cpp_create_reader): No need to set saved_line.
4455 (cpp_destroy): Update.
4456 (cpp_read_main_file): Only overlay if compiling.
4457 * cpplex.c (continue_after_nul): Return false if in directive.
4458 * cpplib.c (EXPAND): New.
4459 (directive_table, SEEN_EOL): Update.
4460 (end_directive): Remove overlay if traditional; don't skip
4461 line in traditional #define.
4462 (prepare_directive_trad): New.
4463 (_cpp_handle_directive, run_directive): Update for traditional
4465 (lex_macro_node): Simplify, don't use lex_identifier_trad.
4466 * cpplib.h (struct options): Add preprocess_only.
4467 * cppmain.c: Don't include intl.h.
4468 (cpp_preprocess_file): Set options->preprocess_only.
4469 (scan_translation_unit_trad): Fix, and print line numbers.
4470 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
4471 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
4472 save_replacement_text, _cpp_create_trad_definition): Update for
4474 (_cpp_overlay_buffer): Save line number.
4475 (_cpp_remove_overlay): Rename from restore_buff, restore line.
4476 (_cpp_read_logical_line_trad): Don't handle overlays here.
4477 (scan_out_logical_line): Process directives.
4479 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
4481 * gthr-win32.h: Wrap functions in extern "C".
4482 (__gthread_key_t): Typedef as unsigned long,
4484 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
4485 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
4486 (__gthr_win32_once, __gthr_win32_key_create,
4487 __gthr_win32_key_delete, __gthr_win32_getspecific,
4488 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
4489 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
4490 __gthr_win32_mutex_unlock): Declare.
4491 (__gthread_once,__gthread_key_create,
4492 __gthread_key_delete, __gthread_getspecific,
4493 __gthread_setspecific, __gthread_mutex_init_function,
4494 __gthread_mutex_lock,__gthread_mutex_trylock,
4495 __gthread_mutex_unlock): Call corresponding
4496 __gthr_win32_* extern implementations if #defined
4497 __GTHREAD_HIDE_WIN32API.
4498 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
4499 $(srcdir)/config/i386/gthr-win32.c
4500 * config/i386/gthr-win32.c: New implementation file.
4501 (__gthr_win32_once, __gthr_win32_key_create,
4502 __gthr_win32_key_delete, __gthr_win32_getspecific,
4503 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
4504 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
4505 __gthr_win32_mutex_unlock): New functions, based on
4506 static inlines in gthr-win32.h.
4508 2002-06-10 Bob Wilson <bob.wilson@acm.org>
4510 * config/xtensa/xtensa.c (override_options): Don't warn about
4511 using -fpic or -fPIC when PIC is enabled by default.
4513 2002-06-10 Roger Sayle <roger@eyesopen.com>
4515 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
4517 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4519 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
4520 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
4521 exists, substitute its pathname as @extra_modes_file@, define
4522 EXTRA_MODES_FILE to be an appropriate string to #include it
4523 with, and define EXTRA_CC_MODES to 1.
4525 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
4526 it's defined. Get rid of redundancy in calling sequence for
4527 CC; don't use it to define CCmode, to avoid a warning.
4528 * libgcc2.c: Include symcat.h for the sake of machmode.def.
4530 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
4531 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
4532 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
4534 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
4535 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
4537 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
4538 defining extra CC modes.
4540 2002-06-10 Roger Sayle <roger@eyesopen.com>
4541 Andreas Jaeger <aj@suse.de>
4543 * cfgrtl.c (create_basic_block_structure): Remove index argument
4544 and use last_basic_block++ instead. (create_basic_block): Update.
4545 * cfgbuild.c (find_basic_blocks_1): Likewise.
4547 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
4548 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
4549 * sched-ebb.c (schedule_ebbs): Likewise.
4550 * sched-rgn.c (schedule_insns): Likewise.
4551 * ssa-ccp.c (ssa_const_prop): Likewise.
4552 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
4553 * toplev.c (rest_of_compilation): Likewise.
4554 * config/ia64/ia64.c (ia64_reorg): Likewise.
4556 2002-06-10 Roger Sayle <roger@eyesopen.com>
4558 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
4559 of matching registers.
4561 2002-06-10 Roger Sayle <roger@eyesopen.com>
4563 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
4564 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
4566 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
4568 * config/mmix/mmix.h: Improve comments.
4569 (CPP_SPEC, CPP_PREDEFINES): Don't define.
4570 (TARGET_CPU_CPP_BUILTINS): Define.
4571 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
4572 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
4574 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
4576 (mmix_constant_address_p): Remove another
4577 redundant test before case.
4578 (mmix_canonicalize_comparison): Remove unused function.
4579 (mmix_print_operand_address): Don't test and adjust for operand in
4580 non-canonical format.
4581 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
4582 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
4584 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4586 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
4587 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
4588 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
4589 (gen_compare): Use CCmode unconditionally.
4591 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4593 PR optimization/6759
4594 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
4597 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4600 * c-decl.c (grokfield): Allow user defined types if they declare
4601 structs or unions for unnamed fields.
4603 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4606 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
4608 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4610 PR optimization/6842
4611 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
4612 operand subreg cannot be simplified.
4614 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4616 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
4617 (compare_constant): Likewise.
4618 (output_addressed_constants): Likewise.
4620 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4622 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
4623 merge bb with itself.
4625 2002-06-10 Richard Henderson <rth@redhat.com>
4627 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
4628 (builtin_zapnot): Likewise.
4630 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
4633 2002-06-10 Eric Christopher <echristo@redhat.com>
4635 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
4636 prototype and function.
4637 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
4638 (call_insn_operand): Remove half pic references.
4639 (legitimate_address_p): Ditto.
4640 * config/i386/i386.h: Remove half pic defines.
4642 2002-06-10 Eric Christopher <echristo@redhat.com>
4644 * doc/extend.texi (Return Address): Add note explaining the side-
4645 effects of inlining on __builtin_return_address.
4647 2002-06-10 Tom Tromey <tromey@redhat.com>
4649 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
4650 (c-common.o): Depend on langhooks.h.
4652 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
4654 * cpphash.h (_cpp_read_logical_line_trad,
4655 _cpp_expansions_different_trad): Update prototypes.
4656 * cpplex.c (continue_after_nul): New.
4657 * cppmain.c: Include cpphash.h.
4658 (scan_translation_unit_trad): New.
4659 (cpp_preprocess_file): Call it.
4660 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
4662 (_cpp_expansions_different_trad): Update prototype.
4664 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
4666 Fix cfi generation for SH[1-4]:
4668 * sh.c (frame_insn): New function.
4669 (output_stack_adjust): Add parameter emit_fn. All callers changed.
4670 (push): Now returns rtx. Use frame_insn.
4671 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
4673 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
4675 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4677 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
4679 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
4680 (distclean): ... not here. But do delete all testsuite/*.log,
4681 testsuite/*.sum files here. Delete mkheaders. Delete
4682 po/*.gmo and the testsuite directory in a split tree build.
4684 2002-06-10 Jeffrey Law <law@redhat.com>
4686 * alias.c (static_reg_base_value): New to hold RTL for
4687 items allocated once per function for the aliasing code.
4688 (init_alias_once_per_function): Initialize static_reg_base_value.
4689 (init_alias_analysis): Avoid throw-away allocations of RTL by
4690 using pre-computed values in static_reg_base_value.
4691 * function.c (prepare_function_start): Call
4692 init_alias_once_per_function appropriately.
4693 * rtl.h (init_alias_once_per_function): Declare.
4694 * caller-save (init_caller_save): Restructure slightly to
4695 avoid lots of silly RTL generation.
4696 * expr.c (init_expr_once): Likewise.
4697 * reload1.c (reload_cse_regs_1): Allocate throw-away register
4698 RTL object here. Pass it into children.
4699 (reload_cse_simplify_operands): Use passed-in register RTL
4701 (reload_cse_simplify): Pass through throw-away register
4704 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
4706 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
4708 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
4710 * gcc.c (process_command): Avoid assignment to read-only location.
4711 Fix sizeof calculation.
4713 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
4715 * cpphash.h (struct cpp_macro): Put comments on their own lines.
4716 (_cpp_expansions_different_trad): New.
4717 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
4718 * cpptrad.c (canonicalize_text): New.
4719 (scan_out_logical_line): Handle no arguments correctly.
4720 (save_replacement_text): Commit memory when finished.
4721 (_cpp_expansions_different_trad): New.
4723 2002-06-10 Tim Josling <tej@melbpc.org.au>
4725 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
4727 (lang_names): Add treelang and cobol.
4728 (get_file_basename): Add code to support treelang and cobol as
4729 4th and 5th users of c-common.c.
4731 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
4733 * Makefile.in (install-driver): Install driver as
4734 $(target_alias)-gcc-$(version).
4735 * gcc.c (spec_version): Make const.
4736 (process_command): Handle -V and -b by using exec.
4737 * doc/invoke.texi (Target Options): Restore -V option,
4738 update docs for -b option.
4740 2002-06-10 Tim Josling <tej@melbpc.org.au>
4742 * configure.in (remaining_languages_check):
4743 Added check that all languages specified were found.
4744 Exit if not found. Previous behaviour was silent failure.
4745 * configure: Regenerated.
4747 2002-06-10 Tim Josling <tej@melbpc.org.au>
4749 First steps to making treelang documentation compliant, based on
4750 instructions in sourcebuild.texi. Also add to gcc.c list of
4753 * doc/contrib.texi: Add self as contributor of treelang.
4755 * doc/frontends.texi: Add mention of treelang.
4757 * doc/invoke.texi (Overall Options): Add mention of treelang.
4759 * doc/standards.texi: Add mention of treelang.
4761 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
4763 * config/cris/cris.c: Include ggc.h
4765 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
4767 * cpphash.h (_cpp_push_text_context): Update.
4768 (_cpp_arguments_ok): New.
4769 * cppmacro.c (_cpp_arguments_ok): New, split out from...
4770 (collect_args): ...here.
4771 (_cpp_push_text_context): Change inputs.
4772 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
4773 replace_args_and_push): New.
4774 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
4775 Don't use IS macros directly.
4776 (scan_out_logical_line): Handle function-like macro argument
4778 (push_replacement_text): Update.
4779 (replacement_length): Remove.
4780 (_cpp_create_trad_definition): Don't skip whitespace before
4783 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4785 * config/avr/avr.c (avr_mcu_types): Update for new devices.
4786 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
4787 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
4788 * config/avr/avr.md ("type" and "length" attributes): New type
4789 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
4790 output a single "call" or "rcall" insn depending on device size.
4791 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
4793 2002-06-09 David Edelsohn <edelsohn@gnu.org>
4795 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
4796 synonym for 630. Add power4. Remove embedded processors. Use -m604
4798 (CPP_CPU_SPEC): Add power3 and power4.
4799 (PROCESSOR_DEFAULT): Change to 604e.
4800 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
4801 (CPP_CPU_SPEC): Similar additions.
4802 (enum process_type): Add POWER4.
4803 (RTX_COSTS): Add POWER4.
4804 (CPP_CPU_SPEC): Similar additions.
4805 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
4806 (PROCESSOR_DEFAULT64): Define.
4807 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
4808 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
4810 (rs6000_issue_rate): Add Power4.
4811 * config/rs6000/rs6000.md (cpu attr): Add power4.
4812 (iu compare): Remove 604, 604e, 620, 630.
4813 Add basic Power4 scheduling information.
4814 (mfcr/mtcrf): Change type attribute to cr_logical.
4816 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4818 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
4820 * gengtype-lex.l: Fix format specifier warning.
4822 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
4824 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
4825 lieu of isspace/IDchar.
4826 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
4827 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
4830 2002-06-08 Zack Weinberg <zack@codesourcery.com>
4832 * Makefile.in (LIBCPP_OBJS): Take out version.o.
4833 * cpphash.h (cpp_reader): Take out print_version member.
4834 * cppinit.c: (cpp_handle_option): Don't do anything with
4835 -version. Just set help_only for --version, --target-help.
4836 Just set verbose option for -v.
4837 (cpp_post_options): Don't print a version string.
4839 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
4841 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
4842 (avr_section_type_flags): New, handle .noinit* sections.
4844 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4846 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
4847 and include netbsd_entry_point.
4848 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
4849 (NETBSD_ENTRY_POINT): Define.
4851 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4853 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
4854 if not already defined.
4855 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
4857 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
4859 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
4860 in a noreturn function.
4861 (avr_output_function_prologue, avr_output_function_epilogue):
4862 Correct function size calculation. Do not crash on empty function.
4863 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
4865 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4867 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4868 netbsd_link_spec and netbsd_entry_point.
4869 (LINK_SPEC): Use %(netbsd_link_spec).
4870 (NETBSD_ENTRY_POINT): Define.
4872 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4874 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
4876 (LINK_ARCH64_SPEC): Likewise.
4877 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
4878 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
4880 2002-06-08 Marc Espie <espie@openbsd.org>
4882 * lists.c (free_list): Fix typo in comment.
4884 2002-06-08 Andreas Jaeger <aj@suse.de>
4886 * lcm.c (optimize_mode_switching): Add unused attribute for
4889 * sched-deps.c (sched_analyze): Remove unused variable.
4891 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
4893 * diagnostic.def: Don't capitalize diagnostict descriptors.
4895 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4897 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
4898 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
4899 (NETBSD_ENTRY_POINT): Define.
4901 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4903 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
4904 NETBSD_LINK_SPEC_ELF.
4905 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
4906 (NETBSD_ENTRY_POINT): Define.
4907 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
4908 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
4910 (NETBSD_ENTRY_POINT): Define.
4912 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4914 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
4915 netbsd_link_spec and netbsd_entry_point.
4916 (LINK_SPEC): Use %(netbsd_link_spec).
4917 (NETBSD_ENTRY_POINT): Define.
4919 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
4921 * config/netbsd-elf.h (LINK_SPEC): Rename to...
4922 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
4923 to specify program entry point.
4925 2002-06-07 Jeff Law <law@redhat.com
4927 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
4928 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
4929 than creating a new register.
4930 (distribute_notes): Likewise.
4931 * df.c (df_reg_use_gen): Likewise.
4932 (df_reg_clobber_gen): Likewise.
4933 (df_ref_record): Likewise.
4934 * expr.c (use_regs): Likewise.
4935 * flow.c (propagate_one_insn): Likewise.
4936 (mark_set_1): Likewise.
4937 (mark_used_reg): Likewise.
4938 * reload.c (emit_reload_insns): Likewise.
4940 2002-06-07 Roger Sayle <roger@eyesopen.com>
4942 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
4943 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
4944 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
4945 comparison code comp can be reversed.
4947 2002-06-07 Roger Sayle <roger@eyesopen.com>
4949 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
4950 constants last in comparisons. Optimize (x+1.0)>0.0 into the
4951 equivalent x > -1.0 when -ffast-math.
4953 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4955 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
4956 * config/mips/t-netbsd: New file.
4958 2002-06-07 Zack Weinberg <zack@codesourcery.com>
4960 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
4961 options their own entries.
4962 (parse_option): Clarify comment.
4963 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
4964 special case. Replace if/strcmp chain for -W options with
4965 use of new OPT_* entries for them.
4966 (cpp_handle_options): Update to match.
4967 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
4968 * c-decl.c: Update call to cpp_handle_option.
4970 2002-06-07 Akim Demaille <akim@epita.fr>
4972 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
4975 2002-06-07 Jeffrey Law <law@redhat.com>
4977 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
4980 2002-06-07 H.J. Lu (hjl@gnu.org)
4982 * configure.in: Add --enable-__cxa_atexit.
4983 * configure: Regenerated.
4984 * config.in: Likewise.
4986 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
4989 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
4991 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
4993 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
4995 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
4997 2002-06-07 Jason Merrill <jason@redhat.com>
4999 * cppexp.c (num_equality_op): Use a temporary variable to work
5000 around gcc 3.0.4 bug.
5002 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
5004 * diagnostic.c (diagnostic_build_prefix): Tidy.
5006 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
5008 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
5009 scan_parameters, save_replacement_text, replacement_length): New.
5010 (scan_out_logical_line): Take a macro and save parameters if
5012 (_cpp_logical_line_trad): Update.
5013 (_cpp_create_trad_definition): Update to handle function-like
5015 * cpplex.c (new_buff): Update.
5016 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
5017 * cpphash.h: ...here.
5018 (CPP_ALIGN2, _cpp_save_parameter): New.
5019 * cppmacro.c (save_parameter): Rename, export.
5020 (parse_params): Update.
5022 2002-06-07 Andreas Jaeger <aj@suse.de>
5024 * config/mmix/mmix.c: Remove extra broken prototype for
5025 mmix_init_machine_status.
5027 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
5029 * gengtype.c: Add comments before all the routines.
5031 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
5033 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
5034 from and add t-sh64 to ${tmake_file}.
5035 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
5036 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
5037 * config/sh/t-netbsd-sh5-32: Remove.
5038 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
5040 (MULTILIB_DIRNAMES): Define.
5042 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
5044 * i386.md (and promoting splitters): Disable QI to SImode promoting
5045 when doing so changes immediate to be 32bit.
5047 * rtl.h (emit_*_scope): Declare.
5048 * emit-rtl.c (emit_*_scope): New global functions.
5049 (try_split): Copy scope.
5050 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
5051 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
5052 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
5053 noce_process_if_block, find_cond_trap): Copy scopes.
5054 * recog.c (peephole2_optimize): likewise.
5056 2002-06-06 Jeffrey Law <law@redhat.com>
5058 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
5060 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
5062 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
5064 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5066 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
5067 ($(docdir)/gccinstall.info): New target.
5068 (info): Depend on it.
5069 (gccinstall.dvi): New target.
5070 (dvi): Depend on it.
5071 * doc/.cvsignore: Ignore new info files.
5072 * doc/install.texi (@setfilename): Reflect new info filename.
5074 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
5076 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
5079 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
5082 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
5083 c_common_get_alias_set.
5084 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
5086 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
5088 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
5090 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
5091 * avr/avr.c (avr_output_function_epilogue): Use above to determine
5093 * pa/pa.c (pa_output_function_prologue): Likewise.
5095 2002-06-05 David S. Miller <davem@redhat.com>
5097 * integrate.c (subst_constants): Handle 'B' RTL format.
5099 2002-06-05 Eric Christopher <echristo@redhat.com>
5101 * varasm.c (make_decl_rtl): Fix comment for removed
5104 2002-06-05 Eric Christopher <echristo@redhat.com>
5106 * Makefile.in: Remove missed halfpic bits.
5108 2002-06-05 Eric Christopher <echristo@redhat.com>
5110 * toplev.c: Remove half-pic.
5111 * config/mips/mips.c: Ditto.
5112 * config/mips/mips.h: Ditto. Remove unused defines.
5113 * config/mips/openbsd.h: Update comment to reflect above.
5114 * config/mips/mips.md: Remove half-pic constraints.
5115 * halfpic.h: Delete.
5118 2002-06-05 Jeffrey Law <law@redhat.com>
5120 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
5121 rejects (mem (lo_sum (reg) (unspec))), but will allow
5122 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
5124 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
5126 * cpphash.h (_cpp_create_definition): Update prototype.
5127 (_cpp_push_text_context, _cpp_create_trad_definition): New.
5128 ( cpp_lex_identifier_trad): New.
5129 (_cpp_set_trad_context): New.
5130 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
5131 * cpplib.c (SEEN_EOL): Update.
5132 (lex_macro_node): Update for -traditional.
5133 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
5134 * cppmacro.c (_cpp_create_definition): Split into
5135 create_iso_definition() and _cpp_create_trad_definition().
5136 (warn_of_redefinition): Update prototype; handle traditional
5138 (_cpp_push_text_context): New.
5139 * cpptrad.c (skip_whitespace, push_replacement_text): New.
5140 (lex_identifier): Call ht_lookup with correct start.
5141 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
5142 _cpp_set_trad_context): New.
5143 (scan_out_logical_line): Update to handle changing contexts.
5145 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
5147 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
5149 * config/sh/t-be (MULTILIB_ENDIAN): Set.
5150 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
5151 * t-sh (MULTILIB_ENDIAN): Set.
5152 (MULTILIB_OPTIONS): Use it.
5153 * t-sh64 (MULTILIB_OPTIONS): Likewise.
5154 (MULTILIB_DIRNAMES): Likewise.
5156 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
5158 * toplev.h (report_error_function): Remove.
5160 * diagnostic.h (location_t): New datatype.
5161 (text_info): Likewise.
5162 (diagnostic_info): Likewise.
5163 (output_prefix): New macro.
5164 (diagnostic_last_function_changed): Likewise.
5165 (diagnostic_set_last_function): Likewise.
5166 (diagnostic_last_module_changed): Likewise.
5167 (diagnostic_set_last_module): Likewise.
5168 (report_diagnostic): Now macro.
5169 (diagnostic_set_info): Declare.
5171 * diagnostic.c (report_problematic_module): Rename to
5172 diagnostic_repor_current_module.
5173 (set_diagnostic_context): Remove.
5174 (count_error): Rename to diagnostic_error_count.
5175 (error_function_changed): Remove.
5176 (record_last_error_function): Likewise.
5177 (error_module_changed): Likewise.
5178 (record_last_error_module): Likewise.
5179 (context_as_prefix): Rename to diagnostic_build_prefix.
5180 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
5181 (diagnostic_set_info): New function.
5183 * objc/objc-act.c: #include diagnostic.h
5184 (error_with_ivar): Adjust call to count_error.
5185 (warn_with_method): Likewise.
5186 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
5188 2002-06-05 Bob Wilson <bob.wilson@acm.org>
5190 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
5191 lang_hooks.types.make_type instead of make_node; set up
5192 __va_list_tag type decl.
5193 (xtensa_builtin_saveregs): Remove broken use of
5194 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
5195 for saved registers; add varargs alias set.
5197 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
5200 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
5201 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
5202 CPP_PREDEFINES and part of CPP_SPEC.
5203 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
5204 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
5206 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
5208 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
5210 2002-06-05 Alan Modra <amodra@bigpond.net.au>
5212 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
5214 2002-06-04 Zack Weinberg <zack@codesourcery.com>
5216 * gengtype-yacc.y: Make sure all rules end with a semicolon.
5218 2002-06-04 Bob Wilson <bob.wilson@acm.org>
5220 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
5221 typo in function prototype and include "ggc.h" header.
5223 2002-06-04 Richard Henderson <rth@redhat.com>
5225 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
5226 (print_operand) ['U']: Likewise.
5227 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
5228 (alpha_expand_unaligned_store_words): Likewise.
5229 (alpha_expand_builtin_vector_binop): Fix typo.
5230 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
5231 umulh, and cix insns.
5232 (one_arg_builtins): Add cix builtins.
5233 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
5234 (alpha_expand_builtin): Fix typo in arity.
5235 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
5236 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
5237 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
5238 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
5239 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
5240 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
5241 builtin_ctlz, builtin_ctpop): New.
5242 * doc/extend.texi (Alpha Built-in Functions): Update.
5244 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
5246 * gengtype.c (write_gc_root): Don't unnecessarily prevent
5247 global variable-length arrays being roots.
5249 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
5250 * configure.in (config_gtfiles): New variable.
5251 (all_gtfiles): Initialise from config_gtfiles.
5252 * configure: Regenerate.
5254 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
5257 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
5258 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
5259 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
5260 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
5261 win32.h (CPP_SPEC): Remove cpp_cpu.
5262 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
5263 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
5265 2002-06-04 Janis Johnson <janis187@us.ibm.com>
5267 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
5269 2002-06-04 Jeff Law <law@redhat.com.
5270 David Edelsohn <edelsohn@gnu.org>
5271 Michael Matz <matz@kde.org>
5273 * sched-int.h (struct deps): New field libcall_block_tail_insn.
5274 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
5275 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
5276 is set, then mark the current insn as being part of a libcall
5278 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
5280 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
5281 insns against the issue rate.
5283 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
5285 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
5286 * final.c (final_scan_insn): Likewise.
5287 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
5288 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
5289 * haifa-sched.c (unlink_other_notes): Likeewise.
5290 (reemit_notes): Likewise.
5291 * print-rtl.c (print_rtx): Likewise.
5292 * sched-deps (sched-analyze): Likewise.
5293 * rtl.c (note_insn_name): Likewise.
5294 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
5295 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
5298 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5300 * varasm.c (mark_constants): Handle RTX format 'B'.
5302 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
5304 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
5305 (struct cpp_context): Add traditional fields.
5306 * cppmacro.c (paste_all_tokens, push_ptoken_context,
5307 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
5308 * cpptrad.c (skip_comment, lex_identifier,
5309 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
5311 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
5313 * gbl-ctors.h: Fix formatting.
5315 * gccspec.c: Likewise.
5317 * gcov-io.h: Likewise.
5319 * ggc-common.c: Likewise.
5321 * ggc-page.c: Likewise.
5322 * ggc-simple.c: Likewise.
5323 * global.c: Likewise.
5324 * graph.h: Likewise.
5325 * gthr-dce.h: Likewise.
5327 * gthr-posix.h: Likewise.
5328 * gthr-rtems.h: Likewise.
5329 * gthr-solaris.h: Likewise.
5330 * gthr-win32.h: Likewise.
5332 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
5334 Merge from pch-branch:
5336 * gengtype.h (UNION_OR_STRUCT_P): New macro.
5337 * gengtype.c (write_gc_structure_fields): Use it.
5338 (write_gc_root): Use it here too.
5340 * gengtype.c (write_gc_structure_fields): Assume that lengths
5341 of typenames fit into an 'int'; don't pass a size_t to "%d" in
5343 (write_gc_marker_routine_for_structure): Likewise.
5344 (write_gc_types): Likewise.
5345 (write_gc_root): Likewise.
5347 * varray.h (VARRAY_CLEAR): New.
5348 (varray_clear): Prototype.
5349 * varray.c (varray_clear): New.
5350 * cselib.c (reg_values_old): New.
5351 (used_regs_old): New.
5352 (cselib_init): Use cached varrays if available to avoid
5353 generating large amounts of garbage.
5354 (cselib_finish): Don't throw away old varrays.
5356 * final.c (insn_addresses_): Move out of ifdef.
5358 * varray.c (uses_ggc): Make more varray kinds GCable.
5359 * varray.h (union varray_data_tag): Let gengtype see
5360 fields 'generic' and 'te'.
5361 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
5362 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
5363 (reg_to_stack): Don't call VARRAY_FREE.
5364 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
5365 (insn_addresses_): Use gengtype to mark.
5366 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
5367 pointers; handle generic pointers in unused union fields.
5368 (get_output_file_with_visibility): Include cselib.h,
5369 insn-addr.h in gtype-desc.c.
5370 * function.c (prologue): Use gengtype to mark.
5371 (epilogue): Likewise.
5372 (sibcall_epilogue): Likewise.
5373 * dependence.c: Include gt-dependence.h, ggc.h.
5374 (struct def_use): Use gengtype to mark.
5375 (struct loop): Likewise.
5376 (struct induction): Likewise.
5377 (struct dependence): Likewise.
5378 (def_use_chain): Likewise.
5379 (dep_chain): Likewise.
5380 (loop_chain): Likewise.
5381 (induction_chain): Likewise.
5382 (init_dependence_analysis): Don't free anything, just clear pointers.
5383 (build_def_use): Use GGC to allocate def_use.
5384 (add_loop): Use GGC to allocate loop.
5385 (find_induction_variable): Use GGC to allocate induction.
5386 (check_node_dependence): Use GGC to allocate induction, dependence.
5387 (dump_node_dependence): Don't free varrays.
5388 (end_dependence_analysis): Likewise.
5389 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
5390 (struct elt_loc_list): Likewise.
5391 (struct elt_list): Likewise.
5392 * cselib.c: Don't include obstack.h.
5393 (hash_table): Use gengtype to mark.
5394 (reg_values): Use gengtype to mark.
5395 (used_regs): Use gengtype to mark.
5396 (cselib_obstack): Delete.
5397 (cselib_startobj): Delete.
5398 (empty_vals): Mark as deletable.
5399 (empty_elt_lists): Mark as deletable.
5400 (empty_elt_loc_lists): Mark as deletable.
5401 (new_elt_list): Use GGC to allocate struct elt_list.
5402 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
5403 (clear_table): Don't delete obstack; don't unnecessarily clear
5404 deletable variables.
5405 (new_cselib_val): Use GGC to allocate struct cselib_val.
5406 (cselib_init): Don't set up obstacks. Use GGC to allocate
5408 (cselib_finish): Just clear variables, don't free anything.
5409 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
5410 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
5411 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
5412 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
5413 (gt-reg-stack.h): New rule.
5414 (gt-dependence.h): New rule.
5415 (gtype-desc.o): Add cselib.h, insn-addr.h.
5417 * varray.c: Use only necessary headers.
5418 (element_size): New.
5420 (varray_init): Take type, not size. Use GGC if appropriate.
5421 (varray_grow): Update for change to struct varray_head_tag.
5422 Use GGC if appropriate.
5423 * varray.h (struct const_equiv_data): Use gengtype.
5424 (enum varray_data_enum): New.
5425 (union varray_data_tag): Use gengtype.
5426 (struct varray_head_tag): Use gengtype. Replace size field with
5427 enum varray_data_enum.
5428 (varray_init): Update prototype.
5429 (VARRAY_SCHED_INIT): Delete.
5430 (VARRAY_*_INIT): Update for change to varray_init.
5431 (VARRAY_SCHED): Delete.
5432 (VARRAY_PUSH_SCHED): Delete.
5433 (VARRAY_TOP_SCHED): Delete.
5434 * tree.h: Update for change to length specifier.
5435 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
5436 (clone_body): Likewise.
5437 * ssa.h (ssa_definition): Use gengtype to mark.
5438 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
5439 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
5440 * rtl.h (struct rtvec_def): Update for change to length specifier.
5441 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
5442 (struct initial_value_struct): Update for change to length specifier.
5443 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
5444 (ggc_add_tree_varray_root): Delete prototype.
5445 (ggc_mark_rtx_varray): Delete prototype.
5446 (ggc_mark_tree_varray): Delete prototype.
5447 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
5448 (ggc_add_tree_varray_root): Delete.
5449 (ggc_mark_rtx_varray): Delete.
5450 (ggc_mark_tree_varray): Delete.
5451 (ggc_mark_rtx_varray_ptr): Delete.
5452 (ggc_mark_tree_varray_ptr): Delete.
5453 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
5454 (create_varray): Delete prototype.
5455 * gengtype.c (varrays): Delete.
5456 (create_varray): Delete.
5457 (adjust_field_type): Detect array of string pointers.
5458 (process_gc_options): Remove code to handle varray_type option.
5459 (set_gc_used_type): Remove TYPE_VARRAY case.
5460 (output_escaped_param): New.
5461 (write_gc_structure_fields): Use output_escaped_param on all
5462 parameters. Handle 'skip' with 'use_param' option. Handle
5463 arrays of strings. Remove TYPE_VARRAY handling.
5464 (write_gc_roots): Use boolean to detect 'length' option.
5465 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
5466 (struct_fields): Call adjust_field_type on array fields.
5467 (type): Remove VARRAY_TYPE case.
5468 (type_option): Likewise.
5469 * gengtype-lex.l: Don't consider varray_type a keyword.
5470 * function.h: Update for change to length specifier.
5471 (free_eh_status): Delete prototype.
5472 * function.c (free_after_compilation): Don't call free_eh_status.
5473 (reorder_blocks): Don't use VARRAY_FREE.
5474 * except.c (struct eh_status): Update for change to length specifier.
5475 remove varray_type specifier.
5476 (free_eh_status): Delete.
5477 * dwarf2out.c: Include gt-dwarf2out.h.
5478 (used_rtx_varray): Use gengtype to mark, move
5480 (incomplete_types): Likewise.
5481 (decl_scope_table): Likewise.
5482 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
5483 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
5484 * c-tree.h (struct lang_type): Update for change to length specifier.
5485 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
5486 * c-objc-common.c: Include gt-c-objc-common.h.
5487 (deferred_fns): Mark for gengtype.
5488 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
5489 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
5490 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
5491 (gtype-desc.o): Update dependencies.
5492 (dwarf2out.o): Add gt-dwarf2out.h.
5493 (varray.o): Update dependencies.
5494 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
5495 (gt-c-objc-common.h): New rule.
5496 (gt-dwarf2out.h): New rule.
5497 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
5499 * doc/gty.texi (GTY Options): Correct spelling.
5500 (GGC Roots): Likewise.
5501 * Makefile.in (TEXI_CPP_FILES): New.
5502 (TEXI_GCC_FILES): New.
5503 (TEXI_GCCINT_FILES): New.
5504 (TEXI_CPPINT_FILES): New.
5505 ($(docdir)/cpp.info): Use new macros.
5506 ($(docdir)/gcc.info): Likewise.
5507 ($(docdir)/gccint.info): Likewise.
5508 ($(docdir)/cppinternals.info): Likewise.
5509 (cpp.dvi): Likewise.
5510 (gcc.dvi): Likewise.
5511 (gccint.dvi): Likewise.
5512 (cppinternals.dvi): Likewise.
5514 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
5515 * doc/gccint.texi (Top): Include gty.texi.
5516 * doc/gty.texi: New file.
5518 * bitmap.c: Include ggc.h, gt-bitmap.h.
5519 (bitmap_ggc_free): New.
5520 (bitmap_elem_to_freelist): New.
5521 (bitmap_element_free): Use bitmap_elem_to_freelist.
5522 (bitmap_element_allocate): Allow use of GGC.
5523 (bitmap_clear): Use bitmap_elem_to_freelist.
5524 (bitmap_copy): Update for change to bitmap_element_allocate.
5525 (bitmap_set_bit): Likewise.
5526 (bitmap_operation): Update for changes elsewhere.
5527 (bitmap_initialize): Allow to create bitmaps that will use GGC.
5528 * bitmap.h (struct bitmap_element_def): Use gengtype.
5529 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
5530 (bitmap_initialize): Add extra parameter.
5531 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
5532 (BITMAP_ALLOCA): Delete.
5533 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
5534 (BITMAP_GGC_ALLOC): New.
5535 * Makefile.in (gtype-desc.o): Add bitmap.h.
5536 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
5537 (GTFILES): Add bitmap.c.
5538 (gt-bitmap.h): New rule.
5539 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
5540 * basic-block.h: Update for changes to bitmap_initialize.
5541 * except.c (exception_handler_label_map): Move into...
5542 (struct eh_status): Here.
5543 (struct eh_region): Make 'aka' GCable.
5544 (free_eh_status): Don't need to specially handle
5545 exception_handler_label_map.
5546 (add_ehl_entry): Update for changes to exception_handler_label_map.
5547 (find_exception_handler_labels): Likewise.
5548 (remove_exception_handler_label): Likewise.
5549 (maybe_remove_eh_handler): Likewise.
5550 (for_each_eh_label): Likewise.
5551 (remove_eh_handler): Allocate 'aka' using GGC.
5552 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
5553 to list of includes.
5555 * gengtype.c (write_gc_marker_routine_for_structure): Name
5556 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
5557 (write_gc_types): Arrange for the tests with NULL to be inlined.
5558 (write_gc_roots): Update uses of procedure pointers.
5559 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
5561 * Makefile.in (explow.o): Add dependency on gt-explow.h.
5562 (sdbout.o): Add dependency on gt-sdbout.h.
5564 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
5565 (mem_attrs_htab): Likewise.
5566 (init_emit_once): Don't call ggc_add_deletable_htab.
5567 * fold-const.c (size_htab): Use gengtype to clear unused entries.
5568 (size_int_type_wide): Don't call ggc_add_deletable_htab.
5569 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
5570 parameters, use them, change callers.
5571 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
5572 (write_gc_roots): Handle 'if_marked' option.
5573 (main): Don't need to call set_gc_used_type any more.
5574 * ggc.h (ggc_htab_marked_p): Delete.
5575 (ggc_htab_mark): Delete.
5576 (struct ggc_cache_tab): New.
5577 (gt_ggc_cache_rtab): New declaration.
5578 * ggc-common.c (struct d_htab_root): Delete.
5579 (d_htab_roots): Delete.
5580 (ggc_add_deletable_htab): Delete.
5581 (ggc_htab_delete): Handle new htab-deleting mechanism.
5582 (ggc_mark_roots): Use new htab-deleting mechanism.
5583 * tree.c (type_hash_table): Use gengtype to clear unused entries.
5585 (init_obstacks): Don't call ggc_add_deletable_htab.
5587 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
5588 (struct hashed_entry): Likewise.
5589 (nst_method_hash_list): Likewise.
5590 (cls_method_hash_list): Likewise.
5591 (HASH_ALLOC_LIST_SIZE): Delete.
5592 (ATTR_ALLOC_LIST_SIZE): Delete.
5593 * objc/objc-act.c (hash_init): Use ggc to allocate
5594 nst_method_hash_list, cls_method_hash_list.
5595 (hash_enter): Use ggc to allocate; allocate one entry at a time.
5596 (hash_add_attr): Likewise.
5597 (ggc_mark_hash_table): Delete.
5598 (objc_act_parse_init): Delete.
5599 (objc_init): Delete reference to objc_act_parse_init.
5600 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
5601 obstack.h. Replace references to 'struct hash_table' with htab_t.
5602 (struct symbol_hash_entry): Replace hash header with key field.
5603 (struct file_hash_entry): Replace hash header with key field.
5604 (struct demangled_hash_entry): Replace hash header with key field.
5605 (hash_string_eq): New.
5606 (hash_string_hash): New.
5607 (symbol_hash_newfunc): Delete.
5608 (symbol_hash_lookup): Modify to use htab_t.
5609 (file_hash_newfunc): Delete.
5610 (file_hash_lookup): Modify to use htab_t.
5611 (demangled_hash_newfunc): Delete.
5612 (demangled_hash_lookup): Modify to use htab_t.
5613 (tlink_init): Modify to use htab_t.
5616 * ggc.h: Delete forward structure declarations.
5617 Delete prototypes for deleted functions.
5618 * ggc-common.c: Don't include hash.h.
5619 (ggc_add_tree_hash_table_root): Delete.
5620 (ggc_mark_tree_hash_table_entry): Delete.
5621 (ggc_mark_tree_hash_table): Delete.
5622 (ggc_mark_tree_hash_table_ptr): Delete.
5623 * gengtype.c (write_gc_structure_fields): Allow param_is option.
5624 (write_gc_marker_routine_for_structure): Use visibility of
5625 the parameter if there is one.
5626 * function.c: Replace hash.h with hashtab.h. Replace references
5627 to 'struct hash_table *' with htab_t.
5628 (struct insns_for_mem_entry): Include a plain key.
5629 (fixup_var_refs_insns_with_hash): Update to use htab_t.
5630 (insns_for_mem_newfunc): Delete.
5631 (insns_for_mem_hash): Update to use htab_t.
5632 (insns_for_mem_comp): Likewise.
5633 (insns_for_mem_walk): Likewise.
5634 * c-lang.c: Include ggc.h.
5635 * Makefile.in (OBJS): Remove hash.o.
5636 (c-lang.o): Add GGC_H.
5637 (COLLECT2_OBJS): Remove hash.o.
5638 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
5639 (ggc-common.o): Remove hash.h.
5640 (function.o): Remove hash.h, add HASHTAB_H.
5641 (genautomata.o): Remove hash.h, add HASHTAB_H.
5643 * varasm.c (mark_const_str_htab_1): Delete.
5644 (mark_const_str_htab): Delete.
5645 (const_str_htab_del): Delete.
5646 (const_str_htab): Use gengtype to mark.
5647 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
5649 * tree.c (mark_tree_hashtable_entry): Delete.
5650 (mark_tree_hashtable): Delete.
5651 * tree.h (mark_tree_hashtable): Delete prototype.
5652 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
5653 (ggc_mark): Likewise.
5655 (htab_create_ggc): New.
5656 * ggc-common.c (ggc_calloc): New.
5657 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
5658 (struct type): Add param_struct structure.
5659 * gengtype.c (param_structs): New.
5660 (adjust_field_type): Handle param_is option.
5661 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
5662 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
5663 (write_gc_structure_fields): Add new PARAM parameter. Update
5664 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
5665 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
5666 Use it to generate function name. Update callers.
5667 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
5669 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
5671 (main): Define PTR as pointer-to-scalar. Don't specially
5672 mark deferred_string or ehl_map_entry.
5673 * gengtype-yacc.y (PARAM_IS): Add new token.
5674 (externstatic): Use adjust_field_type.
5675 (type_option): Add PARAM_IS.
5676 * gengtype-lex.l: Add rule for typedef of function pointers.
5677 Add rule for PARAM_IS.
5678 (IWORD): Add size_t.
5679 * except.c (exception_handler_label_map): Use gengtype to mark.
5680 (type_to_runtime_map): Likewise.
5681 (mark_ehl_map_entry): Delete.
5682 (mark_ehl_map): Delete.
5683 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
5684 (t2r_mark_1): Delete.
5686 * Makefile.in (gtype-desc.o): Correct dependencies.
5687 (GTFILES): Add hashtab.h.
5688 (genautomata.o): Actually uses hashtab.h.
5690 * Makefile.in (stringpool.o): Add $(GGC_H).
5691 (dwarf2asm.o): Likewise.
5692 (GTFILES): Add hashtable.h.
5693 * c-common.h (struct c_common_identifier): Use gengtype.
5694 * c-decl.h (c_mark_tree): Delete.
5695 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
5696 * c-tree.h (struct lang_identifier): Use gengtype.
5697 (union lang_tree_node): New.
5698 (c_mark_tree): Delete prototype.
5699 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
5701 * gengtype-lex.l (IWORD): Allow 'bool'.
5703 * gengtype-yacc.y (ALIAS): New token.
5704 (type_option): New rule.
5705 (option): Use type_option.
5706 * gengtype.c (process_gc_options): New.
5707 (set_gc_used_type): Use it.
5708 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
5709 Add new variable 't' to hold the type of the field being processed.
5710 Add more error checking. Use UNION_P when looking at 'desc' option.
5711 Handle language-specific structures containing other
5712 language-specific structures.
5713 (write_gc_types): Handle 'ptr_alias' option.
5714 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
5715 * ggc-common.c (ggc_pending_trees): Delete.
5716 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
5717 (ggc_mark_trees): Delete.
5718 (gt_ggc_m_tree_node): Delete.
5719 * ggc.h (ggc_pending_trees): Delete.
5720 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
5721 * hashtable.h (ht_identifier): Use gengtype.
5722 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
5723 * langhooks.h (struct lang_hooks): Delete mark_tree.
5724 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
5726 * system.h: Poison LANG_HOOKS_MARK_TREE.
5727 * tree.c (tree_node_structure): New.
5728 * tree.h (struct tree_common): Use gengtype.
5729 (struct tree_int_cst): Likewise.
5730 (struct tree_real_cst): Likewise.
5731 (struct tree_string): Likewise.
5732 (struct tree_complex): Likewise.
5733 (struct tree_vector): Likewise.
5734 (struct tree_identifier): Likewise.
5735 (struct tree_list): Likewise.
5736 (struct tree_vec): Likewise.
5737 (struct tree_exp): Likewise.
5738 (struct tree_block): Likewise.
5739 (struct tree_type): Likewise.
5740 (struct tree_decl): Likewise.
5741 (enum tree_structure_enum): New.
5742 (union tree_node): Use gengtype, with an alias.
5743 (tree_node_structure): Prototype.
5744 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
5746 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
5747 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
5748 to LANG_HOOKS_FUNCTION_FINAL.
5749 * Makefile.in (GTFILES): Add bitmap.h.
5750 * except.c (struct eh_region): Mark field 'aka' to be skipped.
5752 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
5753 (alpha_init_machine_status): Give proper type.
5754 * Makefile.in (c-lang.o): Depend on gtype-c.h.
5755 (optabs.o): Depend on gt-optabs.h.
5756 (GTFILES): Add optabs.o.
5757 (gt-optabs.h): Add rule.
5758 * optabs.c: Include gt-optabs.h.
5760 * gengtype.c (set_gc_used_type): Correct some errors in last change.
5761 (write_gc_structure_fields): If a field which should be NULL is
5763 * c-pragma.c: Move struct align_stack and variable alignment_stack
5766 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
5767 * config/xtensa/xtensa.c: Include gt-cris.h.
5768 (struct machine_function): Use gengtype to mark.
5769 * config/mmix/mmix.h (struct machine_function): Use gengtype
5771 * config/cris/t-cris: Add dependencies for gt-cris.h.
5772 * config/cris/cris.c: Include gt-cris.h.
5773 (struct machine_function): Use gengtype to mark.
5774 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
5776 * doc/tm.texi (Per-Function Data): Delete references to
5777 mark_machine_status.
5778 * config/ia64/ia64.c (ia64_override_options): Don't set
5779 mark_machine_status.
5780 * config/i386/i386.c (override_options): Likewise.
5781 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
5782 * config/arm/arm.c (arm_init_expanders): Likewise.
5783 * config/alpha/alpha.c (override_options): Likewise.
5784 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
5785 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
5786 (write_gc_structure_fields): Don't handle 'really' option.
5787 Handle 'maybe_null' option.
5788 (write_gc_types): Handle 'maybe_null' option.
5789 * function.h (struct function): Don't use "really".
5790 (mark_machine_status): Delete declaration.
5791 (mark_lang_status): Delete declaration.
5792 (gt_ggc_mr_machine_function): Delete prototype.
5793 (gt_ggc_mr_language_function): Delete prototype.
5794 * function.c (mark_machine_status): Delete.
5795 (mark_lang_status): Delete.
5796 (gt_ggc_mr_machine_function): Delete.
5797 (gt_ggc_mr_language_function): Delete.
5798 * c-tree.h (mark_c_function_context): Delete prototype.
5799 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
5800 * c-decl.c (struct language_function): Rename from struct
5801 c_language_function. Update uses. Use gengtype to mark.
5802 (mark_c_function_context): Delete.
5803 * c-common.h (struct c_language_function): Rename from struct
5805 (mark_stmt_tree): Delete prototype.
5806 (c_mark_lang_decl): Delete prototype.
5807 (mark_c_language_function): Delete prototype.
5808 * c-common.c (mark_stmt_tree): Delete.
5809 (c_mark_lang_decl): Delete.
5810 (mark_c_language_function): Delete.
5812 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
5813 (lang_bitmap): New typedef. Use where appropriate.
5814 (struct type): Add gc_used field, lang_struct field.
5815 (UNION_P): New macro.
5816 (new_structure): New prototype.
5817 (find_structure): Remove 'pos' parameter. Change all callers.
5818 * gengtype-lex.l: Update for changes to find_structure.
5819 * gengtype-yacc.y (typedef_struct): Use new_structure.
5820 (yacc_ids): Suppress warning.
5821 (type): Use new_structure.
5822 * gengtype.c (string_type): Update for changes to struct type.
5823 (find_structure): Just find a structure, don't worry about
5825 (new_structure): New.
5826 (note_yacc_type): Use new_structure.
5827 (set_gc_used_type): New.
5829 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
5830 (write_gc_types): Handle TYPE_LANG_STRUCT.
5831 (write_gc_marker_routine_for_structure): New.
5832 (main): Call set_gc_used. Add some calls to set_gc_used_type
5833 for places where GCC doesn't use gengtype properly yet.
5834 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
5835 (gt_ggc_m_tree_node): Likewise.
5837 * varasm.c (copy_constant): Call expand_constant if we hit
5838 something we can't recognise.
5840 * ggc-common.c (ggc_mark_rtvec_children): Delete.
5841 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
5842 (lang_mark_false_label_stack): Delete.
5843 * rtl.h (struct rtvec_def): Use gengtype to mark.
5844 * ggc.h (ggc_mark_rtvec): Delete.
5845 (gt_ggc_m_rtvec_def): Delete.
5846 (ggc_mark_nonnull_tree): Delete.
5847 (ggc_mark_rtvec_children): Delete prototype.
5848 (lang_mark_false_label_stack): Delete declaration.
5850 * gengtype.h (note_yacc_type): Add prototype.
5851 * gengtype.c (note_yacc_type): New function.
5852 * gengtype-lex.l: Add lexer support for yacc files.
5853 * gengtype-yacc.y (start): Extract union from yacc files.
5854 (yacc_union): New rule.
5855 (yacc_typematch): New rule.
5856 (yacc_ids): New rule.
5857 (enum_items): Tweak for efficiency.
5858 (optionseq): Likewise.
5860 * c-common.h (struct language_function): Use gengtype.
5861 (struct c_lang_decl): Likewise.
5862 * c-tree.h (struct lang_decl): Likewise.
5863 (struct lang_type): Likewise.
5864 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
5865 tree language substructures.
5867 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
5869 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
5871 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
5873 * stmt.c (struct nesting): Add discriminator. Use gengtype to
5874 mark. Remove 'data.block.cleanup_ptr' field.
5875 (struct stmt_status): Use usual technique to mark struct nesting.
5876 (gt_ggc_mr_nesting_cond): Delete.
5877 (gt_ggc_mr_nesting_loop): Delete.
5878 (gt_ggc_mr_nesting_block): Delete.
5879 (gt_ggc_mr_nesting_case_stmt): Delete.
5880 (expand_start_cond): Set discriminator.
5881 (expand_start_loop): Likewise.
5882 (expand_start_null_loop): Likewise.
5883 (expand_start_bindings_and_block): Set discriminator. Don't set
5885 (expand_decl_cleanup): Replace 'cleanup_ptr' with
5886 &thisblock->data.block.cleanups.
5887 (expand_start_case): Set discriminator.
5888 (expand_start_case_dummy): Set discriminator.
5890 * ggc-callbacks.c: Remove.
5892 * gengtype.h (struct type): Add 'u.s.bitmap' field.
5893 (find_structure): Add 'pos' parameter.
5894 * gengtype-lex.l: Update callers to find_structure.
5895 * gengtype-yacc.y: Likewise.
5896 * gengtype.c (find_structure): Allow for structures to be defined
5897 in multiple language backends.
5898 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
5899 (counter): Rename to gc_counter.
5900 (write_gc_structure_fields): Fail when writing out fields for
5901 an incomplete structure. Ignore arrays of scalars. Handle
5903 (write_gc_types): Reset counter for each procedure written.
5905 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
5906 (free_case_nodes): Delete.
5907 (expand_end_case_type): Delete call to free_case_nodes.
5909 * Makefile.in (cselib.o): Include gt-<filename>.h.
5911 (profile.o): Likewise.
5912 (alias.o): Likewise.
5913 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
5914 alphabetize backend files.
5915 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
5916 * alias.c: Use gengtype for roots.
5917 * c-common.h (struct stmt_tree_s): Use gengtype.
5918 * c-decl.c: Use gengtype for roots.
5919 * cselib.c: Use gengtype for roots.
5920 * expr.c: Use gengtype for roots.
5921 * fold-const.c: Use gengtype for roots.
5922 * gcse.c: Use gengtype for roots.
5923 * gengtype-lex.l: Handle typedefs of function types.
5924 Allow for empty array bounds.
5925 Allow processing to stop on initialisers.
5926 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
5927 (semiequal): New rule.
5928 * gengtype.c (create_file): Tidy output files.
5929 (get_output_file_with_visibility): Fix paren warning. Fix bug
5930 involving multiple input files mapping to one output file.
5931 (write_gc_structure_fields): Skip arrays of scalars.
5932 (write_gc_types): Tidy output files.
5933 (write_gc_root): New function.
5934 (write_gc_roots): Fix bugs, add support for roots that are
5936 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
5937 (ggc_mark_tree_ptr): Delete.
5938 (ggc_add_rtx_root): Delete.
5939 (ggc_add_tree_root): Delete.
5940 (ggc_del_root): Delete.
5941 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
5942 allocate struct initial_value_struct.
5943 * profile.c: Use gengtype for roots.
5944 * sdbout.c: Use gengtype for roots.
5945 * varasm.c (mark_weak_decls): Delete unused prototype.
5946 (mark_const_hash_entry): Delete unused function.
5947 * config/darwin-protos.h: Use gengtype for roots.
5948 (machopic_add_gc_roots): Delete.
5949 * config/arm/arm.c: Use gengtype for roots.
5950 * config/arm/arm.h: Use gengtype for roots.
5951 * config/c4x/c4x-protos.h: Use gengtype for roots.
5952 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
5953 * config/d30v/d30v-protos.h: Use gengtype for roots.
5954 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
5955 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
5956 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
5957 * config/ia64/ia64-protos.h: Use gengtype for roots.
5958 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
5959 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
5960 * config/m68hc11/m68hc11.c (z_reg): Make global.
5961 (z_reg_qi): Make global.
5962 (m68hc11_add_gc_roots): Delete.
5963 * config/mcore/mcore-protos.h: Use gengtype for roots.
5964 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
5965 * config/mips/mips.c (mips_add_gc_roots): Delete.
5966 * config/mips/mips.h: Use gengtype for roots.
5967 * config/mmix/mmix.c (override_options): Use gengtype for roots.
5968 * config/mmix/mmix.h: Use gengtype for roots.
5969 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
5970 * config/mn10200/mn10200.h: Use gengtype for roots.
5971 * config/pa/pa.c: Use gengtype for roots, marking.
5972 (struct deferred_plabel): Use GGC, gengtype.
5973 (pa_add_gc_roots): Delete.
5974 (mark_deferred_plabels): Delete.
5975 * config/pj/pj-protos.h: Use gengtype for roots.
5976 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
5977 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
5978 machopic_add_gc_roots.
5979 * config/rs6000/rs6000.h: Use gengtype for roots.
5980 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
5981 (gt-darwin.h): Add rule.
5982 * config/sh/sh.c: Use gengtype for roots.
5983 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
5984 (gt-sh.h): Add rule.
5985 * config/sparc/sparc.c: Use gengtype for roots.
5986 (sparc_add_gc_roots): Delete.
5987 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
5988 (mark_ultrasparc_pipeline_state): Delete.
5989 * config/sparc/sparc.h: Use gengtype for roots.
5991 * Makefile.in (c-parse.o): Update dependencies.
5992 (c-common.o): Likewise.
5993 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
5994 Add dependencies for the files they generate.
5995 * c-common.c: Replace ggc_add_* uses with GTY annotations.
5996 * c-common.h: Likewise.
5997 * c-decl.c: Likewise.
5998 (gt_ggc_mp_binding_level): Delete.
5999 * c-lang.c: Include gtype-c.h.
6000 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
6002 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
6003 (gt_ggc_mp_align_stack): Delete.
6004 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
6005 * function.c: Replace ggc_add_* uses with GTY annotations.
6006 (gt_ggc_mp_function): Delete.
6007 * function.h: Replace ggc_add_* uses with GTY annotations.
6008 * gengtype.c (lang_names): New.
6009 (NUM_BASE_FILES): New.
6010 (open_base_files): Create language base files.
6012 (get_file_basename): New.
6013 (get_base_file_bitmap): New.
6014 (get_output_file_with_visibility): Rename from get_output_file.
6015 Add more mappings for various C/Objc filenames.
6016 (finish_root_table): New.
6017 (write_gc_roots): Handle dependencies and scoping properly.
6018 * gengtype.h: Add prototypes for new functions.
6019 * ggc-common.c (struct deletable_root): Delete.
6020 (deletables): Delete.
6021 (ggc_add_deletable_root): Delete.
6022 (ggc_mark_roots): No need to deal with deleted functionality.
6023 * ggc.h (ggc_add_deletable_root): Delete prototype.
6024 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
6025 (gtype-objc.h): Add rule to create.
6026 * objc/config-lang.in (gtfiles): New.
6027 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
6028 ggc_add_* with GTY markers. Include gtype-objc.h.
6029 (ggc_mark_imp_list): Delete.
6030 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
6031 * objc/objc-lang.c: Random Whitespace Change.
6033 * except.h (exception_handler_labels): Delete.
6034 (get_exception_handler_labels): New.
6035 * except.c (exception_handler_labels): Delete.
6036 (struct eh_status): Add exception_handler_labels field.
6037 (doing_eh): Don't add exception_handler_labels as root.
6038 (free_eh_status): Don't need to free exception_handler_labels.
6039 (get_exception_handler_labels): New.
6040 (find_exception_handler_labels): Update for move of
6041 exception_handler_labels.
6042 (remove_exception_handler_label): Likewise.
6043 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
6044 * jump.c (rebuild_jump_labels): Likewise.
6045 * loop.c (find_and_verify_loops): Likewise.
6046 * sched-rgn.c (is_cfg_nonregular): Likewise.
6048 * gengtype.c (write_gc_structure_fields): Handle variable-length
6051 * varasm.c (struct weak_syms): Use GGC, gengtype.
6052 (mark_weak_decls): Delete.
6053 (weak_decls): Likewise.
6054 (add_weak): Likewise.
6055 (remove_from_pending_weak_list): Likewise.
6056 (init_varasm_once): Likewise.
6058 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
6059 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
6060 stor-layout.c, regclass.c, and lists.c.
6061 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
6062 gt-regclass.h and gt-lists.h on s-gtype.
6063 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
6064 * except.c: Use gengtype for roots.
6065 * explow.c: Use gengtype for roots. Include gt-explow.h.
6066 * expr.h (init_stor_layout_once): Delete prototype.
6067 * function.c: Use gengtype for roots.
6068 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
6069 * gengtype-yacc.y (start): Can also be an externstatic.
6070 (externstatic): New production.
6071 (struct_fields): Correct array bounds inversion for 2-d arrays.
6072 * gengtype.c (variables): New variable.
6073 (note_variable): New function.
6074 (get_output_file): Include libfuncs.h into gtype-desc.c.
6075 (get_output_file_name): New function.
6076 (write_gc_structure_fields): Suppress warnings.
6077 (write_gc_types): Make static.
6078 (put_mangled_filename): New function.
6079 (write_gc_roots): New function.
6080 (main): Call write_gc_roots.
6081 * gengtype.h (note_variable): Prototype.
6082 (get_output_file_name): Prototype.
6083 (write_gc_types): Delete prototype.
6084 * ggc.h: Clean up unnecessary structure predefinitions.
6085 (struct ggc_root_tab): Define.
6086 (gt_ggc_m_rtx_def): Make function, not macro.
6087 (gt_ggc_m_tree_node): Likewise.
6088 * libfuncs.h: Use gengtype for roots.
6089 * lists.c: Use gengtype for roots. Include gt-lists.h.
6090 (init_EXPR_INSN_LIST_cache): Delete.
6091 * optabs.c: Use gengtype for roots.
6092 (gt_ggc_mp_optab): Delete.
6093 * optabs.h: Use gengtype for roots.
6094 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
6095 * rtl.h: Use gengtype for roots.
6096 (init_EXPR_INSN_LIST_cache): Delete prototype.
6097 * stor-layout.c: Use gengtype for roots.
6098 Include gt-stor-layout.h.
6099 (init_stor_layout_once): Delete.
6100 * toplev.c: Use gengtype for roots. Delete calls to deleted
6102 * tree.c: Use gengtype for roots.
6103 * tree.h: Use gengtype for roots.
6104 * varasm.c: Use gengtype for roots.
6106 * Makefile.in (GTFILES): Add @all_gtfiles@.
6107 * configure: Regenerate.
6108 * configure.in: Construct all_gtfiles from the gtfiles definitions
6110 * gengtype-yacc.y (type): Warn about duplicate structure names.
6111 * gengtype.c (get_output_file): Handle .c files in language
6114 * Makefile.in (GTFILES): Run gengtype on all the config files
6115 and on the target .c file.
6116 * except.c (mark_eh_region): Delete.
6117 (init_eh_for_function): Use GGC on struct eh_status.
6118 (mark_eh_status): Delete.
6119 (free_eh_status): Use GGC.
6120 (expand_eh_region_start): Use GGC to
6121 (collect_eh_region_array): Allocate last_region_number using GGC.
6122 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
6123 (remove_eh_handler): Let GGC free struct eh_region.
6124 (add_call_site): Use GGC to reallocate call_site_record array.
6125 * function.c (init_machine_status): Update calling sequence.
6126 (mark_machine_status): Likewise.
6127 (mark_lang_status): Likewise.
6128 (prepare_function_start): Update init_machine_status call.
6129 (mark_function_status): Delete.
6130 (maybe_mark_struct_function): Delete.
6131 (ggc_mark_struct_function): Delete.
6132 (gt_ggc_mp_function): New.
6133 (gt_ggc_mr_machine_function): New.
6134 (gt_ggc_mr_language_function): New.
6135 (init_function_once): Use canonical names.
6136 * function.h (struct function): Use gengtype.
6137 (init_machine_status): Return the structure.
6138 (mark_machine_status): Take a 'void *'.
6139 (mark_lang_status): Likewise.
6140 * ggc-common.c (ggc_mark_trees): Use canonical name for
6141 ggc_mark_struct_function.
6142 * tree.h (ggc_mark_struct_function): Delete prototype.
6143 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
6144 (alpha_init_machine_status): Likewise.
6145 (override_options): Use canonical name for alpha_mark_machine_status.
6146 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
6147 * config/arm/arm.h (struct machine_function): Use gengtype.
6148 * config/arm/arm.c (arm_mark_machine_status): Delete.
6149 (arm_init_machine_status): Update calling sequence.
6150 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
6151 * config/cris/cris.c (cris_init_machine_status): Update
6153 * config/d30v/d30v.h (struct machine_function): Use gengtype.
6154 * config/d30v/d30v.c (d30v_init_machine_status): Update
6156 (d30v_mark_machine_status): Delete.
6157 * config/i386/i386.c: Include gt-i386.h.
6158 (struct machine_function): Use gengtype.
6159 (ix86_init_machine_status): Update calling sequence.
6160 (ix86_mark_machine_status): Delete.
6161 (override_options): Use canonical namke for ix86_mark_machine_status.
6162 * config/ia64/ia64.h (struct machine_function): Use gengtype.
6163 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
6165 (ia64_mark_machine_status): Delete.
6166 (ia64_override_options): Use canonical name for
6167 ia64_mark_machine_status.
6168 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
6170 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
6171 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6172 * gengtype.c (get_output_file): Fix warning.
6173 (main): Add prototype to suppress warning.
6174 * tree.c: Remove tree_hash_mark prototype.
6176 * tree.h (init_stmt): Delete prototype.
6177 * toplev.c (lang_independent_init): Don't call init_stmt.
6178 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
6179 (stmt_obstack): Delete.
6180 (POPSTACK): No need to free 'struct nesting'.
6181 (gt_ggc_mr_nesting_cond): Use canonical names.
6182 (gt_ggc_mr_nesting_loop): Use canonical names.
6183 (gt_ggc_mr_nesting_block): Use canonical names.
6184 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
6185 (mark_stmt_status): Delete.
6186 (init_stmt): Delete.
6187 (clear_last_expr): Clear both last_expr_type and last_expr_value.
6188 Use it everywhere that last_expr_type was cleared.
6189 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
6190 (zap_lists): Delete.
6191 * ggc.h (ggc_add_deletable_root): Prototype.
6192 (mark_stmt_status): Remove prototype.
6193 * ggc-common.c (ggc_add_deletable_root): New.
6194 (ggc_mark_roots): Handle deletable roots.
6195 * function.c (ggc_mark_struct_function): Use canonical name
6196 for mark_stmt_status.
6197 * emit-rtl.c (free_sequence_stack): New.
6198 (start_sequence): Use a freelist for sequences.
6199 (end_sequence): Likewise.
6200 (init_emit_once): Add free_sequence_stack as a deleteable root.
6201 * c-pragma.c Include gt-c-pragma.h.
6202 (struct align_stack): Use gengtype.
6203 (push_alignment): Use GGC for struct align_stack.
6204 (mark_align_stack): Delete.
6205 (gt_ggc_mp_align_stack): New.
6206 (init_pragma): Use canonical name for mark_align_stack.
6207 * c-decl.c: Include gt-c-decl.h.
6208 (struct binding_level): Use gengtype.
6209 (make_binding_level): Use GGC; handle the freelist here.
6210 (pop_binding_level): New.
6211 (pushlevel): Move code into make_binding_level.
6212 (push_label_level): Likewise.
6213 (poplevel): Move code into pop_binding_level.
6214 (pop_label_level): Likewise.
6215 (mark_binding_level): Delete.
6216 (gt_ggc_mp_binding_level): New.
6217 (c_init_decl_processing): Use canonical name for mark_binding_level.
6218 Add free_binding_level as deletable root.
6219 (mark_c_function_context): Use canonical name for mark_binding_level.
6220 * Makefile.in (c-decl.o): Add gt-c-decl.h.
6221 (c-pragma.o): Add gt-c-pragma.h.
6222 (GTFILES): Add c-decl.c and c-pragma.c.
6223 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
6225 * tree.c (struct type_hash): Use gengtype.
6226 (init_obstacks): Use canonical name for type_hash_mark.
6227 (type_hash_mark): Delete.
6229 * rtl.h (struct mem_attrs): Use gengtype.
6230 * optabs.h (struct optab): Use gengtype.
6231 * optabs.c (expand_binop): Squish signed/unsigned warning.
6232 (mark_optab): Make local, use canonical name, use autogenerated
6234 (init_optabs): Use canonical name for mark_optab.
6235 (new_optab): Use GGC to allocate optabs.
6236 * ggc.h: Delete mark_optab prototype.
6237 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
6238 mem_attrs marker procedure.
6239 * gengtype.c (get_output_file): Include headers in gtype-desc.c
6240 explicitly rather than deducing them from file names.
6241 (write_gc_structure_fields): Handle arrays of structures.
6242 (main): Return non-zero exit code if errors occur during output.
6243 * emit-rtl.c (mem_attrs_mark): Delete.
6244 (init_emit_once): Use canonical name for mem_attrs marker procedure.
6245 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
6246 (tree.o): Depend on gt-tree.h.
6247 (GTFILES): Add rtl.h, optabs.h, tree.c.
6248 (gt-tree.h): Add it to s-gtype rule.
6250 * .cvsignore: Ignore gengtype flex/bison generated files.
6251 * Makefile.in (GGC_H): Add gtype-desc.h.
6252 (OBJS): Add gtype-desc.o.
6253 (GEN): Add gengtype.
6254 (STAGESTUFF): Add gengtype.
6255 (varasm.o): Add gt-varasm.h.
6256 (stmt.o): Add gt-stmt.h.
6257 (except.o): Add gt-except.h.
6258 (integrate.o): Add gt-integrate.h.
6260 Add new rules for new files.
6261 * configure: Regenerate.
6262 * configure.in: Correct defaults.h paths.
6263 * emit-rtl.c (mark_sequence_stack): Delete.
6264 (mark_emit_status): Delete.
6265 (start_sequence): Allocate sequence structures using GGC.
6266 (end_sequence): Allocate sequence structures using GGC.
6267 * except.c: Use gengtype for various structures. Include
6269 * expr.c (mark_expr_status): Delete.
6270 * function.c: Use gengtype for various structures. Include
6272 (mark_function_status): Use standard gt_ggc names for marker functions.
6273 (ggc_mark_struct_function): Likewise.
6274 * function.h: Use gengtype for various structures.
6275 * gengtype-lex.l: New file.
6276 * gengtype-yacc.y: New file.
6277 * gengtype.c: New file.
6278 * gengtype.h: New file.
6279 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
6280 the standard names. Remove some now-unnecessary prototypes.
6281 * integrate.c: Use gengtype for various structures. Include
6283 (mark_hard_reg_initial_vals): Delete.
6284 * integrate.h (mark_hard_reg_initial_vals): Delete.
6285 * stmt.c: Use gengtype for various structures. Include
6287 (mark_case_node): Delete.
6288 (mark_goto_fixup): Delete.
6289 (mark_stmt_status): Use standard gt_ggc names for marker functions.
6290 * system.h: Define GTY to empty. In flex/bison files,
6291 don't poison malloc or realloc, instead just define them to
6292 xmalloc and xrealloc.
6293 * varasm.c: Use gengtype for various structures. Include
6294 gt-varasm.h. Use standard gt_ggc names for marker functions.
6295 (mark_pool_constant): Delete.
6296 (mark_varasm_status): Delete.
6297 (decode_rtx_const): #if 0 out non-typesafe hack.
6299 * function.h (free_lang_status): Mark as obsolete.
6300 * function.c (free_lang_status): Mark as obsolete.
6301 * c-decl.c (push_c_function_context): Use GC to allocate and free
6302 struct language_function.
6303 (pop_c_function_context): Likewise.
6304 * c-common.c (mark_c_language_function): Mark struct
6307 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
6308 Document that the machine_function structures must be allocated
6309 using GC. Update mark_machine_status documentation.
6310 * function.h: Don't declare free_machine_status.
6311 * function.c (free_machine_status): Don't define.
6312 (free_after_compilation): Don't call free_machine_status.
6313 (ggc_mark_struct_function): Mark f->machine. Call
6314 mark_machine_status only on non-NULL pointers.
6315 * system.h: Poison free_machine_status.
6316 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
6317 struct machine_function.
6318 (xtensa_free_machine_status): Delete.
6319 (override_options): Don't set free_machine_status.
6320 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
6321 free_machine_status.
6322 (rs6000_init_machine_status): Use GC on struct machine_function.
6323 (rs6000_free_machine_status): Delete.
6324 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
6326 (ia64_mark_machine_status): Likewise.
6327 (ia64_free_machine_status): Delete.
6328 (ia64_override_options): Don't set free_machine_status.
6329 * config/i386/i386.c (override_options): Don't set
6330 free_machine_status.
6331 (ix86_init_machine_status): Use GC on struct machine_function.
6332 (ix86_mark_machine_status): Likewise.
6333 (ix86_free_machine_status): Delete.
6334 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
6336 (d30v_mark_machine_status): Likewise.
6337 (d30v_free_machine_status): Delete.
6338 (d30v_init_expanders): Don't set free_machine_status.
6339 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
6341 (arm_init_machine_status): Likewise.
6342 (arm_free_machine_status): Delete.
6343 (arm_init_expanders): Don't set free_machine_status.
6344 * config/alpha/alpha.c (override_options): Don't set
6345 free_machine_status.
6346 (alpha_init_machine_status): Use GC on struct machine_function.
6347 (alpha_mark_machine_status): Likewise.
6348 (alpha_free_machine_status): Delete.
6350 * varasm.c (compare_constant): Fix typo.
6352 * varasm.c: Don't include obstack.h.
6353 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
6354 (struct rtx_const): Give substructures names, improve formatting.
6355 (struct constant_descriptor): Delete.
6356 (struct constant_descriptor_tree): New, based on constant_descriptor.
6357 (const_hash_table): Is a hash table of trees.
6358 (mark_const_hash_entry): Is used for hashes of trees. Mark
6359 constant_descriptor_tree structure.
6360 (mark_const_str_htab_1): Mark deferred_string structure.
6361 (compare_constant): Rewrite to compare trees.
6362 (compare_constant_1): Delete.
6363 (record_constant): Delete.
6364 (record_constant_1): Delete.
6365 (output_constant_def): Use struct constant_descriptor_tree.
6366 Don't duplicate trees twice.
6367 (struct constant_descriptor_rtx): New.
6368 (struct pool_constant): Used for rtx constants.
6369 (init_varasm_status): Update for change to struct varasm_status.
6370 (mark_varasm_status): Likewise.
6371 (free_varasm_status): Delete.
6372 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
6373 (record_constant_rtx): Likewise.
6374 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
6375 (force_const_mem): Likewise.
6376 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
6377 * function.c (free_after_compilation): Don't use free_varasm_status.
6378 * function.h: Don't prototype free_varasm_status.
6380 * ggc-common.c (ggc_realloc): Handle X being NULL.
6382 * ggc-common.c (ggc_realloc): New function.
6383 * ggc.h: Prototype it.
6384 * emit-rtl.c (free_emit_status): Delete.
6385 (init_emit): Allocate emit subarrays using GC.
6386 (gen_reg_rtx): Reallocate subarrays using GC.
6387 (init_emit): Use GC to allocate 'struct emit_status' and its
6389 (mark_emit_status): Mark structure and its subarrays.
6390 * stmt.c (free_stmt_status): Delete.
6391 * expr.c (free_expr_status): Delete.
6392 * function.h: Remove prototypes for deleted functions.
6393 * function.c (free_after_compilation): Don't use deleted functions.
6394 Don't call free() on x_parm_reg_stack_loc.
6395 (free_after_parsing): Don't use free_stmt_status.
6396 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
6397 (mark_function_status): Mark x_parm_reg_stack_loc.
6399 * varasm.c (init_varasm_status): Use GC to allocate
6400 'struct varasm_status' and its fields x_const_rtx_hash_table
6401 and x_const_rtx_sym_hash_table.
6402 (mark_varasm_status): Mark them.
6403 (free_varasm_status): Use GC to free them.
6404 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
6405 (mark_expr_status): Mark the structure itself.
6406 (free_expr_status): Use GC to free the structure.
6407 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
6408 (mark_stmt_status): Mark the 'struct stmt_status' itself.
6409 (init_stmt_for_function): Allocate the structure for GC.
6411 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
6412 (equate_type_number_to_die): Likewise.
6413 * tree.h (TYPE_SYMTAB_DIE): New macro.
6414 (struct die_struct): Predeclare.
6415 (struct tree_type): Add field symtab.die. Add a tag
6416 to the union type of field symtab.
6418 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
6419 'struct rtvec_def *', not 'struct rtvec_def'.
6421 * function.h (original_arg_vector): Make a real rtvec.
6422 * function.c (ggc_mark_struct_function): Adjust.
6423 * integrate.c (expand_inline_function): Adjust.
6425 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
6427 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
6428 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
6429 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
6430 (TARGET_VERSION_CPU): Define according to the
6432 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
6434 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
6435 if TARGET_SHMEDIA64.
6436 (LINK_DEFAULT_CPU_EMUL): Define according to the
6438 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
6439 (SUBTARGET_LINK_SPEC): Define.
6440 (LINK_SPEC): Use SH_LINK_SPEC.
6442 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
6443 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
6444 and TARGET_SHMEDIA64 which abort, for now.
6445 * config/sh/t-netbsd-sh5: New file.
6446 * config/sh/t-netbsd-sh5-32: New file.
6447 * config/sh/t-netbsd-sh5-64: New file.
6449 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6450 Richard Henderson <rth@redhat.com>
6452 * config/alpha/alpha.c (reg_or_const_int_operand): New.
6453 (some_operand, input_operand): Accept CONST_VECTOR.
6454 (alpha_extra_constraint): Add 'W'.
6455 (alpha_expand_zap_mask): New.
6456 (alpha_expand_builtin_vector_binop): New.
6457 (enum alpha_builtin): New.
6458 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
6459 (alpha_init_builtins, alpha_expand_builtin): New.
6460 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
6461 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
6462 (PREDICATE_CODES): Update.
6463 * config/alpha/alpha-protos.h: Update.
6464 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
6465 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
6466 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
6467 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
6468 (movv2si, movv2si_fix, movv2si_nofix): New.
6469 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
6470 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
6471 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
6472 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
6473 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
6474 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
6475 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
6476 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
6477 builtin_unpkbw, unpkbw): New.
6478 * doc/extend.texi (Alpha Built-in Functions): New.
6480 2002-06-03 Richard Henderson <rth@redhat.com>
6482 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
6483 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
6485 2002-06-03 Richard Henderson <rth@redhat.com>
6487 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
6489 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
6490 (const0_operand): New.
6491 (reg_or_fp0_operand, fp0_operand): Remove.
6492 * config/alpha/alpha.h (PREDICATE_CODES): Update.
6493 * config/alpha/alpha-protos.h: Update.
6494 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
6495 and fp0_operand with reg_or_0_operand and const0_operand.
6497 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6499 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
6501 2002-06-03 Roger Sayle <roger@eyesopen.com>
6503 * gcse.c (cprop_jump): Use single_set to get the pattern
6504 from the setcc argument.
6506 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
6508 * diagnostic.h (diagnostic_count): Move from output_buffer to
6510 (diagnostic_kind_count): Adjust definition.
6512 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
6514 * except.c (except.c): Do not rebuild CFG.
6515 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
6518 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
6520 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
6521 * toplev.c: Include cfglahout.h
6522 * Makefile.in (toplev.c): Add dependnecy.
6524 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
6526 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
6527 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
6528 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
6530 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
6532 * config/ns32k/netbsd.h: Update copyright years.
6533 (TARGET_OS_CPP_BUILTINS): Define.
6534 (CPP_PREDEFINES): Remove.
6535 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
6536 (TARGET_CPU_CPP_BUILTINS): Define.
6538 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
6540 * emit-rtl.c: Fix formatting.
6541 * errors.h: Likewise.
6542 * except.c: Likewise.
6543 * explow.c: Likewise.
6544 * expmed.c: Likewise.
6548 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
6550 * config/h8300/elf.h: Fix formatting.
6551 * config/h8300/rtems.h: Likewise.
6553 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
6555 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
6557 2002-06-02 Tom Tromey <tromey@redhat.com>
6559 * fixinc/fixincl.x: Rebuilt.
6560 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
6562 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6565 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
6566 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
6570 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
6572 * final.c (final): Allow notes to not have computed addresses;
6573 kill no longer needed STACK_REGS ifdef.
6575 2002-06-02 Richard Henderson <rth@redhat.com>
6577 * gcse.c (bypass_conditional_jumps): Fix typo last change.
6579 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6581 * loop.c (emit_prefetch_instructions): Properly place the address
6584 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
6586 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
6587 (set_block_for_insn): Turn into macro.
6588 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
6589 * cfglayout.c (insn_scopes): Kill.
6590 (scope_to_insns_initialize): Do not use insn_scopes.
6591 (scope_to_insns_finalize): Likewise.
6592 (duplicate_insn_chain): Likewise.
6593 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
6594 * cfgrtl.c (basic_block_for_insn): Kill.
6595 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
6596 (create_basic_block_structure): Use reorder_insns.
6597 (compute_bb_for_insn): Do not use basic_block_for_insn.
6598 (merge_blocks_nomove): Likewise.
6599 (update_bb_for_insn): Likewise.
6600 (verify_flow_info): Likewise.
6601 (set_block_for_insn): Kill.
6602 * combine.c (try_combine): Update gen_rtx_INSN call.
6603 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
6604 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
6606 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
6607 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
6609 (emit_insns_after): Simplify.
6610 (emit_copy_of_insn_after): Copy scope.
6611 * final.c (final_start_function): Lower scopes.
6612 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
6613 * integrate.c (copy_insn_list): Cope scopes.
6614 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
6615 * loop.c (loop_optimize): Do not care block notes.
6616 * print-rtl.c (print_rtx): Print BB.
6617 * recog.c (apply_change_group): Simplify.
6618 * rtl.c (copy_rtx): Handle 'B'.
6619 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
6620 * rtl.h (Field accessors): Update indexes.
6621 * sched-ebb.c (schedule_ebbs): Do not lower notes.
6622 * sched-rgn.c (schedule_insns): Likewise.
6623 * toplev.c (rest_of_compilation): Lower notes.
6624 * unroll.c (unroll_loop): Do not care scoping notes.
6625 (copy_loop_body): Copy scopes.
6627 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6630 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
6632 * rtems.h: Similarly.
6633 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
6634 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
6635 (TARGET_CPU_CPP_BUILTINS): Use.
6637 2002-06-02 Richard Henderson <rth@redhat.com>
6639 * alias.c: Include target.h.
6640 (mark_constant_function): Use targetm.binds_local_p instead
6641 of checking TREE_PUBLIC ourselves.
6642 * Makefile.in (alias.o): Add TARGET_H.
6644 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6646 * c-lex.c: Update copyright and file description.
6648 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6650 * config/fr30/fr30.h: Update to new CPP macros.
6652 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6654 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
6656 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6657 Zack Weinberg <zack@codesourcery.com>
6659 * c-common.c (c_common_init): Override cpplib's default
6660 warn_long_long setting.
6661 * c-lex.c (lex_number): Replace with interpret_integer,
6662 interpret_float, narrowest_unsigned_type and
6663 narrowest_signed_type, taking advantage of the new
6664 cpplib functionality.
6665 * cpperror.c (_cpp_begin_message): If a warning is turned
6666 into an error, avoid printing "warning:".
6667 * cppexp.c (cpp_num_sign_extend): New.
6668 * cppinit.c: Update comment.
6669 * cpplib.h (cpp_num_sign_extend): New.
6670 * tree.h: Update comment.
6672 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
6674 * diagnostic.h (struct diagnostic_context): Add new member
6676 (internal_error_function): Remove declaration.
6677 * diagnostic.c (internal_error_function): Remove definition..
6678 (internal_error): Adjust use.
6680 2002-06-02 Richard Henderson <rth@redhat.com>
6682 * rtl.h (CC0_P): New.
6683 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
6684 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
6685 (bypass_block): Save old dest block for dump text.
6686 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
6687 Allow only true SET insns, not single_set.
6689 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
6691 * diagnostic.c (diagnostic_finish): Rename to output_flush.
6692 (clear_disgnostic_info): Rename to output_clear_data. Use false
6693 instead of 0 for boolean value.
6694 Adjust function call throughout.
6696 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
6698 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
6699 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
6701 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6703 * d30v.h (CPP_PREDEFINES): Replace with
6704 (TARGET_CPU_CPP_BUILTINS): New.
6706 2002-06-02 Roger Sayle <roger@eyesopen.com>
6708 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
6710 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
6712 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
6714 2002-06-02 Richard Henderson <rth@redhat.com>
6716 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
6718 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
6720 Support for C++ constructors/destructors.
6721 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
6722 instead of looping if main() returns.
6723 (asm_file_start): Output global symbols that cause .data and .bss
6724 initialization code to be linked in, unconditionally for now.
6725 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
6726 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
6727 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6729 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
6730 (__tablejump__): New.
6731 (__do_copy_data, __do_clear_bss): New.
6732 (__do_global_ctors, __do_global_dtors): New.
6733 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
6736 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6738 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
6739 (CPP_SPEC, CPP_PREDEFINES): Kill.
6740 * c4x/rtems.h (CPP_PREDEFINES): Kill.
6741 (TARGET_OS_CPP_BUILTINS): New.
6743 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
6745 * Makefile.in (tracer.o): New.
6746 * params.def (TRACER_*): New options.
6747 * rtl.h (tracer): Declare.
6748 * timevar.def (TV_TRACER): New.
6749 * toplev.c (dump_file_index): Add DFI_tracer.
6750 (dump_file_info): Add tracer.
6752 (lang_indepdenent_options): Add tracer.
6753 (rest_of_compilation): Call tracer.
6754 * tracer.c: New file.
6755 * invoke.texi (-ftracer): Document.
6756 (--param tracer-*): Document.
6758 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
6760 * tree-inline.c (expand_call_inline): Make the statement
6761 expression we generate have a COMPOUND_STMT.
6763 2002-06-01 Roger Sayle <roger@eyesopen.com>
6765 * gcse.c (cprop_cc0_jump): Function deleted.
6766 (cprop_jump): Take an additional argument which is the possibly
6767 NULL cc setting insn immediately before the conditional jump.
6768 When a MODE_CC set is present, substitute it into the JUMP_INSN
6769 before attempting the constant propagation.
6770 (cprop_insn): Recognize cc setters followed by conditional jumps
6771 as a special case. Use cprop_jump instead of cprop_cc0_jump.
6772 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
6773 (find_bypass_set): New function based upon find_avail_set used by
6774 cprop, but finds constant expressions available at the end of
6776 (bypass_block): New function. Given a basic block that begins
6777 with a conditional jump and multiple incoming edges, perform
6778 the jump bypass optimization.
6779 (bypass_conditional_jumps): New function. Call bypass_block with
6780 each suitable basic block in the CFG using a simple single pass.
6782 2002-06-01 Roger Sayle <roger@eyesopen.com>
6784 * tree.c (real_minus_onep): New function to test for -1.0.
6785 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
6787 2002-06-01 Roger Sayle <roger@eyesopen.com>
6789 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
6790 and "!p && !q" into "(p|q) == 0" under suitable conditions.
6792 2002-06-01 Andreas Jaeger <aj@suse.de>
6794 * cppexp.c (cpp_classify_number): Cast precission to int for
6795 correct printf format.
6797 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
6799 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
6800 expected, but don't really exist: atmega83, atmega85, attiny10.
6801 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
6802 emulations for all devices.
6803 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
6804 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
6806 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
6808 * config/h8300/h8300-protos.h: Add a prototype for
6809 h8300_shift_needs_scratch_p.
6810 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
6811 * config/h8300/h8300.h (OK_FOR_R): New.
6812 (OK_FOR_S): Likewise.
6813 (OK_FOR_T): Likewise.
6814 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
6815 * config/h8300/h8300.md (anonymous shift patterns): Use
6816 constraints R, S, and T.
6818 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6820 * basic-block.h (struct basic_block_def): New field loop_father.
6821 (BB_VISITED): New flag.
6822 (struct loop): New field pred, removed field shared.
6823 (struct loops): New field parray.
6824 (LOOP_EXITS_DOMS): Removed.
6825 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
6826 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
6827 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
6828 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
6829 verify_loop_structure): Declare.
6830 * cfg.c (entry_exit_blocks): Initialize loop_father field.
6831 * cfganal.c (dfs_enumerate_from): New function.
6832 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
6833 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
6834 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
6835 flow_loop_dump, flow_loops_dump, flow_loops_free,
6836 flow_loop_tree_node_add, flow_loop_level_compute,
6837 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
6838 flow_loop_outside_edge_p): Modified for new infrastructure.
6839 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
6840 redirect_edge_with_latch_update, flow_loop_free): New static functions.
6841 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
6842 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
6843 find_common_loop, verify_loop_structure, loop_latch_edge,
6844 loop_preheader_edge): New functions.
6845 (flow_loops_cfg_dump): Do not show dominators, as this information
6846 does not remain up to date long.
6847 (flow_loops_find): Store results in new format.
6848 * predict.c (propagate_freq, estimate_probability,
6849 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
6852 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
6854 * except.c (nothrow_function_p): Walk epilogue delay list
6855 checking the insn, not the chain for potential throws.
6857 2002-05-31 Zack Weinberg <zack@codesourcery.com>
6859 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
6860 (install): Refer to install-cpp directly.
6861 (uninstall-cpp): Folded into uninstall rule.
6862 * configure.in: Delete all code relating to --disable-cpp.
6863 * configure: Regenerate.
6864 * config/t-install-cpp: Delete.
6866 2002-05-31 Richard Henderson <rth@redhat.com>
6868 * configure.in (HAVE_AS_TLS): Add alpha tests.
6869 * configure: Rebuild.
6870 * config/alpha/alpha.c (TARGET_AS_TLS): New.
6871 (alpha_tls_size, alpha_tls_size_string): New.
6872 (overide_options): Set it. Always install machine_status hooks.
6873 (input_operand): Accept got tls predicates.
6874 (local_symbol_p): Merge into ...
6875 (local_symbolic_operand): ... here. Reject tls symbols.
6876 (global_symbolic_operand): Likewise.
6877 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
6878 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
6879 (tp16_symbolic_operand, tp32_symbolic_operand): New.
6880 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
6881 (alpha_encode_section_info): Handle TLS symbols.
6882 (alpha_strip_name_encoding): Likewise.
6883 (alpha_legitimate_address_p): Likewise.
6884 (alpha_legitimize_address): Likewise.
6885 (alpha_expand_mov): Early exit to avoid nop moves.
6886 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
6887 (alpha_init_machine_status, alpha_mark_machine_status,
6888 alpha_free_machine_status): Always define.
6889 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
6890 (print_operand, print_operand_address): Add TLS relocs.
6891 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
6892 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
6893 (TARGET_SWITCHES): Add -mtls-kernel.
6894 (alpha_tls_size, alpha_tls_size_string): New.
6895 (TARGET_OPTIONS): Add -mtls-size=.
6896 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
6897 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
6898 (ASM_OUTPUT_LABELREF): Skip %.
6899 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
6900 (PREDICATE_CODES): Update.
6901 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
6902 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
6903 UNSPEC_TP, UNSPECV_SET_TP): New.
6904 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
6905 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
6906 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
6907 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
6908 (call_value_osf_2_er): Accept anything as op4.
6909 * config/alpha/alpha-protos.h: Update.
6910 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
6912 2002-05-31 Zack Weinberg <zack@codesourcery.com>
6914 * cppinit.c (append_include_chain): Always pay attention to
6915 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
6918 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
6920 * target.h: Fix formatting.
6921 * timevar.h: Likewise.
6922 * tlink.c: Likewise.
6923 * toplev.c: Likewise.
6924 * toplev.h: Likewise.
6926 * tree-dump.h: Likewise.
6928 * tree-inline.h: Likewise.
6929 * unroll.c: Likewise.
6930 * unwind-dw2.c: Likewise.
6931 * unwind-dw2-fde.c: Likewise.
6932 * unwind-dw2-fde-glibc.c: Likewise.
6933 * unwind-dw2-fde.h: Likewise.
6934 * unwind.h: Likewise.
6935 * unwind-sjlj.c: Likewise.
6936 * varasm.c: Likewise.
6937 * varray.h: Likewise.
6938 * vmsdbg.h: Likewise.
6939 * vmsdbgout.c: Likewise.
6940 * xcoffout.h: Likewise.
6942 2002-05-31 Igor Shevlyakov <igor@microunity.com>
6944 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
6945 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
6947 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
6949 * gcc.c (cpp_unique_options): Remove "-d" options.
6950 (cpp_debug_options): New spec string.
6951 (default_compilers): Use it.
6952 * objc/lang-specs.h: Likewise.
6954 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
6956 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
6957 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
6958 * gcc/mklibgcc.in: Likewise.
6959 * gcc/config/arc/t-arc: Likewise.
6960 * gcc/configure.in: Likewise.
6961 * gcc/configure: Regenerate.
6963 2002-05-31 Stan Shebs <shebs@apple.com>
6964 Turly O'Connor <turly@apple.com>
6966 * c-decl.c (struct binding_level): Change int field n_incomplete
6967 to tree list incomplete_list.
6968 (clear_binding_level): Init field with NULL.
6969 (pushdecl): Add incomplete type to list.
6970 (mark_binding_level): Mark the incomplete list.
6971 (finish_struct): Scan the incomplete list for types instead
6972 of all decls in the current binding level.
6974 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
6976 * pa.c (output_millicode_call): Add missing '%' characters.
6977 (output_call): Likewise.
6979 2002-05-31 David Edelsohn <edelsohn@gnu.org>
6981 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
6982 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
6984 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
6986 * varasm.c (mark_constant_pool): Walk epilogue delay list
6987 checking the insn, not the chain for potential constants.
6989 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
6991 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
6993 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
6995 * i386.c (classify_argument): Properly handle base types.
6997 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
6998 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
7001 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
7003 * gcse.c (gcse_emit_move_after): New.
7004 (pre_delete, hoist_store): Use it.
7006 * reload1.c (emit_input_reload_insns): Use constrain_operands
7007 instead of constraint_accepts_reg_p to verify optimization.
7008 (constraint_accepts_reg_p): Kill
7010 * reload1.c (reload_cse_delete_noop_set): Kill.
7011 (reload_cse_simplify): use delte_insn_and_edges.
7013 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7015 * cfgloop.c (flow_loops_find): Initialize first and last fields
7018 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
7020 * c-common.c (builtin_define_std): Correct logic.
7022 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
7024 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
7025 (output_call): Likewise.
7027 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
7029 * pa.c: Move output.h include after tree.h include.
7030 (pa_asm_output_mi_thunk): Constify identifier lab.
7032 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
7034 * config/ns32k/ns32k.h: Define named constants for the
7035 bits in target_flags and use them.
7036 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
7038 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
7040 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
7041 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
7042 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
7043 default scheduling model.
7044 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
7045 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
7046 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
7047 * doc/install.texi (hppa*-*-*): Document default scheduling.
7049 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
7051 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
7053 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
7055 * config.gcc (ns32k-*-netbsd*): Set tm_file to
7056 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
7057 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
7058 netbsd.h, or netbsd-aout.h.
7060 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
7062 * longlong.h (count_trailing_zeros): Add missing \, and clean up
7063 whitespace in __ns32000__ case.
7065 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
7067 * expr.c (expand_expr): Output partially zeroed out vectors with
7068 output_constant_def.
7070 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7072 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
7074 (shl*-*-netbsdelf*): New targets.
7075 * config/sh/netbsd-elf.h: New file.
7076 * config/sh/t-netbsd: New file.
7078 2002-05-30 Richard Henderson <rth@redhat.com>
7079 Eric Botcazou <ebotcazou@multimania.com>
7081 PR optimization/6822
7082 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
7083 to unsigned int for op1 comparisons. Use gen_int_mode.
7085 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
7087 * expmed.c (const_mult_add_overflow_p): New.
7088 * expr.h: Declare it.
7089 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
7090 Don't eliminate the biv if the giv has a constant multiplier and
7091 the rhs argument of the comparison does satisfy the predicate.
7092 Use expand_mult_add to compute the replacement constant.
7094 2002-05-30 Osku Salerma <osku@iki.fi>
7096 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
7097 (c_common_get_alias_set): Handle it.
7098 * doc/extend.texi: Document it.
7100 2002-05-30 Richard Henderson <rth@redhat.com>
7102 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
7103 * toplev.c (process_options): Don't check it.
7104 * doc/tm.texi: Don't document it.
7105 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
7106 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
7107 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
7108 frame pointer optimization if current_function_profile.
7110 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
7112 * langhooks.c: Fix formatting.
7113 * langhooks.h: Likewise.
7115 * libgcc2.c: Likewise.
7116 * lists.c: Likewise.
7117 * local-alloc.c: Likewise.
7121 2002-05-30 Marc Espie <espie@openbsd.org>
7123 * config.gcc (sparc64-*-openbsd*): New.
7124 * config/sparc/openbsd1-64.h: New.
7125 * config/sparc/openbsd64.h: New.
7127 2002-05-30 Jeff Law <law@redhat.com>
7129 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
7130 a dead insn with a REG_RETVAL note when the entire libcall is not
7131 dead and remove the associated REG_LIBCALL note at the same time.
7133 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
7135 * lcm.c (output.h): #include.
7136 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
7137 as an ordinary block.
7138 (optimize_mode_switching): Don't pretend that the exit block is
7139 an ordinary block, or handle sucessors of entry block specially.
7140 Instead, split edges from entry block and to exit block, and
7141 put a computing definition on the thus gained post-entry-block,
7142 and a need on the pre-exit-block.
7144 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
7146 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
7147 * rtl.texi: Document 'B'
7149 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7151 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
7153 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
7155 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
7157 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
7158 const0_rtx instead of NULL_RTX when in error.
7159 (altivec_expand_abs_builtin): Same.
7160 (rs6000_expand_binop_builtin): Same.
7161 (altivec_expand_predicate_builtin): Same.
7162 (altivec_expand_stv_builtin): Same.
7163 (rs6000_expand_ternop_builtin): Same.
7164 (altivec_expand_builtin): Same.
7166 2002-05-29 David S. Miller <davem@redhat.com>
7168 * rtl.h (clear_emit_caches): Delete.
7169 * integrate.c (output_inline_function): Don't call it.
7170 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
7171 (clear_emit_caches): Delete definition.
7172 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
7174 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
7176 * config/mmix/mmix.c: Include real.h.
7177 (mmix_constant_address_p): Remove redundant test before switch.
7179 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7181 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
7182 only if not already defined.
7184 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
7186 * config/h8300/h8300-protos.h: Remove prototypes for
7187 ok_for_bclr and small_power_of_two.
7188 * config/h8300/h8300.c (small_power_of_two): Remove.
7189 (ok_for_blcr): Likewise.
7190 (fix_bit_operand): Make WHAT deal with an integer instead of a
7191 constraint character.
7192 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
7193 (CONST_OK_FOR_P): Likewise.
7194 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
7195 CONST_OK_FOR_P any more.
7196 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
7201 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7203 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7204 (CPP_PREDEFINES): Make sure this is undefined.
7205 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
7206 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
7207 or -U__MIPSEB__ before defining one or the other. Instead,
7208 use %(subtarget_endian_default) if neither -EB nor -EL are
7210 (SUBTARGET_EXTRA_SPECS): Define.
7211 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
7214 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
7216 * doc/md.texi (Patterns): Note pattern condition pitfall
7219 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
7221 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
7222 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
7223 ternary operations from here...
7224 (rs6000_expand_builtin): ...to here.
7225 New argument expandedp.
7226 Change all instances of altivec_expand_binop_builtin to
7227 rs6000_expand_binop_builtin.
7228 (altivec_expand_unop_builtin): Rename to
7229 rs6000_expand_unop_builtin.
7230 (altivec_expand_binop_builtin): Rename to
7231 rs6000_expand_binop_builtin.
7232 (altivec_expand_ternop_builtin): Rename to
7233 rs6000_expand_ternop_builtin.
7235 2002-05-29 Richard Henderson <rth@redhat.com>
7237 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
7238 (TARGET_BI_ARCH): Likewise.
7239 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
7240 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
7241 (TARGET_64BIT_DEFAULT): Default to 0.
7242 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
7244 2002-05-29 Richard Henderson <rth@redhat.com>
7246 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
7247 (get_pc_thunk_name): New.
7248 (output_set_got): Use it.
7249 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
7250 into linkonce sections.
7252 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7254 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
7255 (CPP_PREDEFINES): Make sure this is undefined.
7256 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
7257 (CPP_SUBTARGET_SPEC): Don't provide different versions for
7258 default-32 and default-64. Just always use %(netbsd_cpp_spec).
7259 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
7260 cpp_subtarget_spec64. Add netbsd_cpp_spec.
7261 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7262 (CPP_PREDEFINES): Make sure this is undefined.
7263 (SUBTARGET_EXTRA_SPECS): Define.
7264 (CPP_SPEC): Use %(netbsd_cpp_spec).
7266 2002-05-29 Jeff Law <law@redhat.com>
7268 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
7270 * flow.c (propagate_one_insn): Do not remove a dead insn if it
7271 contains a REG_RETVAL note.
7273 * haifa-sched (sched_analyze): Remove another useless clearing
7274 of SCHED_GROUP_P I missed yesterday.
7276 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
7277 * pa.c (pa_asm_output_mi_thunk): New function.
7278 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
7280 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
7281 Marek Michalkiewicz <marekm@amelek.gda.pl>
7283 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
7284 (avr_asm_only_p): Make non-static.
7285 (enum avr_arch): Remove.
7286 (avr_arch_types): New.
7287 (avr_mcu_types): Update.
7288 (avr_override_options): Use avr_arch_types table instead of switch.
7289 * avr.h (CPP_PREDEFINES): Die.
7290 (avr_base_arch_macro, avr_extra_arch_macro): New.
7291 (TARGET_CPU_CPP_BUILTINS): New.
7292 (CPP_SPEC, EXTRA_SPECS): Simplify.
7293 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
7294 CPP_AVR5_SPEC): Die.
7296 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7298 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
7299 NETBSD_OS_CPP_BUILTINS_AOUT.
7300 (SUBTARGET_EXTRA_SPECS): Define.
7301 (CPP_SPEC): Use %(netbsd_cpp_spec).
7303 2002-05-29 Richard Henderson <rth@redhat.com>
7305 * config/i386/i386.c (ix86_output_function_epilogue): New.
7306 (TARGET_ASM_FUNCTION_EPILOGUE): New.
7307 (pic_label_name): Remove.
7308 (pic_labels_used): New.
7309 (ix86_asm_file_end): Emit one pc load stub for each register used.
7310 (output_set_got): Generate deep pc load to any register.
7311 (ix86_select_alt_pic_regnum): New.
7312 (ix86_save_reg): Don't save pic register if we can find a valid
7313 call-clobbered replacement.
7314 (ix86_expand_prologue): If we found a valid replacement, renumber
7315 pic_offset_table_rtx.
7316 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
7317 pic_offset_table_rtx after reload.
7318 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
7319 * config/i386/i386.md (set_got): Make insn, not expander.
7320 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
7322 2002-05-29 Richard Henderson <rth@redhat.com>
7324 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
7325 alignment for alloca.
7327 2002-05-29 Richard Henderson <rth@redhat.com>
7329 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
7330 (print_operand_address): Only add rip for symbolic addresses
7331 for which we do not have another relocation type.
7333 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7335 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
7336 (EXTRA_SPECS): Add netbsd_cpp_spec.
7337 (CPP_SPEC): Use %(netbsd_cpp_spec).
7338 (CPP_PREDEFINES): Remove.
7339 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7340 (EXTRA_SPECS): Define.
7341 (CPP_SPEC): Use %(netbsd_cpp_spec).
7342 (CPP_PREDEFINES): Remove.
7344 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
7346 PR preprocessor/6844
7347 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
7350 2002-05-29 Eric Christopher <echristo@redhat.com>
7352 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
7353 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
7355 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
7357 * config/fr30/fr30.md: Remove previous restriction on splits.
7358 Enforce conformance through gen_lowpart and cont_int_operand.
7359 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
7360 as the assembler does not support ".bss".
7362 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7364 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
7365 (CPP_PREDEFINES): Remove.
7366 (SUBTARGET_EXTRA_SPECS): Define.
7367 (CPP_SPEC): Use %(netbsd_cpp_spec).
7368 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7369 (CPP_PREDEFINES): Remove.
7370 (SUBTARGET_EXTRA_SPECS): Define.
7371 (CPP_SPEC): Use %(netbsd_cpp_spec).
7372 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
7373 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
7374 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
7375 Add netbsd_cpp_spec.
7376 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
7378 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
7379 Zack Weinberg <zack@codesourcery.com>
7381 * cppexp.c (cpp_num): Move to cpplib.h.
7382 (CPP_ERROR): Remove.
7383 (interpret_float_suffix, interpret_int_suffix): New.
7384 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
7385 (cpp_classify_number, cpp_interpret_integer): New.
7386 (interpret_number): Remove.
7387 (eval_token): Update to use new routines.
7388 * cpphash.h (cpp_num_part): Move to cpplib.h.
7389 * cppinit.c (cpp_post_options): Set warn_long_long.
7390 * cpplib.h (struct cpp_options): Add warn_long_long.
7391 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
7392 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
7393 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
7394 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
7395 cpp_interpret_integer): New.
7397 2002-05-29 Joel Sherrill <joel@OARcorp.com>
7399 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
7401 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7403 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
7404 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
7405 (CPP_SUBTARGET_SPEC): Define.
7406 (SUBTARGET_EXTRA_SPECS): Define.
7409 2002-05-29 Chris Lattner <sabre@nondot.org>
7411 * ssa.c (rename_insn_1): Rename uses of undefined registers to
7412 prevent confusion if/when the register is defined.
7414 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
7417 * config/cris/cris.md: Fix typos and thinkos in comments.
7418 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
7420 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
7421 ("*mov_sideqi_mem"): Similar, but for operand 3.
7422 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
7423 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
7424 Remove spurious mode specifier on operand 2.
7426 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
7428 * config/h8300/h8300-protos.h: Remove the prototype for
7430 Add prototypes for single_one_operand and single_zero_operand.
7431 * config/h8300/h8300.c (o_operand): Remove.
7432 (single_one_operand): New.
7433 (single_zero_operand): Likewise.
7434 (print_operand): For 'V' operand, and the operand with 0xff.
7435 For 'V' and 'W' operands, do not and the bit position with 7.
7436 * config/h8300/h8300.md (various anonymous patterns): Replace
7437 use of exact_log2 with single_one_operand/single_zero_operand.
7439 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
7441 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
7443 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
7445 * config/s390/s390.c (legitimate_pic_operand_p): Do not
7446 accept symbolic LARL operands.
7447 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
7450 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
7452 * config/s390/s390.md (cmpstr_64/31): Mark whole
7453 input registers as used.
7455 2002-05-28 Richard Henderson <rth@redhat.com>
7457 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
7458 not current_function_uses_pic_offset_table and
7459 current_function_uses_const_pool; examine current_function_profile.
7460 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
7461 input to blockage if needed.
7462 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
7463 (legitimize_pic_address): Likewise. Set regs_ever_live for
7464 pic_offset_table_rtx when invoked during reload.
7465 * config/i386/i386.h (FINALIZE_PIC): Remove.
7466 * config/i386/i386.md (tablejump): Reformat. Do not set
7467 current_function_uses_pic_offset_table.
7468 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
7469 (blockage): Accept anything as operand 0.
7471 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7473 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
7474 common CPP built-ins for all NetBSD a.out targets.
7475 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
7476 common CPP built-ins for all NetBSD ELF targets.
7477 * config/netbsd.h: Add missing notice.
7478 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
7479 for all NetBSD targets.
7480 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
7481 for all NetBSD targets using an LP64 code model.
7482 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
7485 2002-05-28 Richard Henderson <rth@redhat.com>
7487 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
7488 update if UPDATE_LIFE_LOCAL.
7490 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7492 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
7494 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
7495 Jason R. Thorpe <thorpej@wasabisystems.com>
7497 config/sh reorganization to factor out endianness and coff:
7499 * config/sh/little.h: New file.
7500 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
7501 defined, define to 0 to select big-endian.
7502 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
7503 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
7504 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
7505 * config/sh/t-be: New file.
7506 * config/sh/t-le: New file.
7508 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
7509 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
7510 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
7511 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
7512 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
7513 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
7514 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
7515 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
7516 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
7517 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
7518 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
7519 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
7520 (LINK_SPEC): Define to SH_LINK_SPEC.
7521 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
7522 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
7523 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
7524 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
7525 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
7526 * config/sh/coff.h: New file.
7527 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
7528 (TARGET_OBJFMT_CPP_BUILTINS): Define.
7529 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
7530 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
7531 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
7532 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
7533 (PTRDIFF_TYPE): Likewise.
7534 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
7535 (CPP_PREDEFINES): Don't define.
7536 (TARGET_OBJFMT_CPP_BUILTINS): Define.
7537 (LINK_SPEC): Define to SH_LINK_SPEC.
7538 (LINK_EMUL_PREFIX): Redefine.
7539 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
7540 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
7541 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
7542 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
7543 (TARGET_OS_CPP_BUILTINS): Define.
7544 (TARGET_DEFAULT): Redefine.
7545 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
7546 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
7547 (LINK_SPEC): Don't redefine.
7548 (LINK_DEFAULT_CPU_EMUL): Redefine.
7549 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
7550 * sh.c (sh_asm_named_section): Don't declare / define.
7551 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
7552 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
7553 (sh64-*-elf* tm_file): Likewise.
7554 (sh-*-rtemself* tm_file): Likewise.
7555 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
7556 (sh-*-linux* tmake_file): Add sh/t-le.
7557 (sh-*-rtems* tm_file): Add sh/coff.h
7558 (sh-*-* tm_file): Likewise.
7560 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
7562 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
7563 CONSTANT_POOL_ADDRESS_P.
7565 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
7567 2002-05-28 David Edelsohn <edelsohn@gnu.org>
7568 Jeff Law <law@redhat.com>
7570 * optabs.c (expand_binop): Fix nwords sign warnings.
7571 generate pseudo for add_optab.
7573 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
7574 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
7576 2002-05-28 Marc Espie <espie@openbsd.org>
7578 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
7579 inherited from gas.h.
7580 (ASM_QUAD): Undef. OpenBSD does not support it.
7582 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
7584 * doc/install.texi (binaries): Change mingw binaries
7585 link to www.mingw.org.
7587 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7589 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
7591 2002-05-28 Richard Henderson <rth@redhat.com>
7593 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
7594 bottom alignment for leaf functions.
7596 2002-05-28 Zack Weinberg <zack@codesourcery.com>
7598 * config/pa/milli32.S, config/pa/lib1funcs.asm,
7599 config/sparc/sol2-g1.asm: Delete unused files.
7601 2002-05-28 Richard Henderson <rth@redhat.com>
7603 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
7605 * flow.c (calculate_global_regs_live): Rename call_used to
7606 invalidated_by_call. Initialize from regs_invalidated_by_call
7607 instead of call_used_regs.
7609 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
7612 2002-05-28 Zack Weinberg <zack@codesourcery.com>
7614 * tree.h: Don't include real.h.
7615 Forward-declare struct realvaluetype.
7616 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
7618 (TREE_REAL_CST_PTR): New accessor.
7619 (TREE_REAL_CST): Update.
7620 * real.h: Include machmode.h.
7621 (realvaluetype): Make it struct realvaluetype, not a typedef.
7622 (build_real): Prototype here.
7624 * tree.c: Include real.h.
7625 (build_real): Allocate the REAL_VALUE_TYPE as a separate
7626 object in GC memory, set TREE_REAL_CST_PTR to point to it.
7627 (build_real_from_int_cst): Use build_real.
7628 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
7631 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
7632 fold-const.c, print-tree.c, real.c: Include real.h.
7633 * Makefile.in: Update dependency lists.
7635 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7637 * basic-block.h (last_basic_block): Declare.
7638 (expunge_block_nocompact): Declaration removed.
7639 (compact_blocks): Declare.
7640 * cfg.c (last_basic_block): New variable.
7641 (expunge_block_nocompact): Removed.
7642 (expunge_block): Do not compact basic blocks.
7643 (compact_blocks): New.
7644 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
7646 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
7648 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
7649 real positions of blocks.
7650 (delete_unreachable_blocks): Simplified -- quadratic behavior now
7652 (cleanup_cfg): Compact blocks.
7653 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
7654 basic_block_info varray.
7655 (flow_delete_block): Comment update.
7656 (back_edge_of_syntactic_loop_p): Modify position check code.
7657 (verify_flow_info): Update checking.
7658 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
7659 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7660 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
7661 indices no longer change.
7662 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
7664 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
7665 * profile.c (branch_prob): Compact blocks.
7666 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
7669 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
7671 * config/h8300/h8300.md (two anonymous patterns): New.
7673 2002-05-28 David S. Miller <davem@redhat.com>
7675 * config/sparc/sparc.md (cpu): Tidy.
7676 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
7678 (in_call_delay): Delete reference to 'return' type.
7679 (eligible_for_return_delay, in_return_delay, define_delay
7680 referencing those): Delete.
7681 (rest of file): Use new type attributes as appropriate.
7682 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
7683 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
7684 * config/sparc/ultra1_2.md (us1_single): New reservation.
7685 (us1_ialuX): Likewise.
7686 * config/sparc/ultra3.md (us3_single): Likewise.
7687 (us3_ialuX): Likewise.
7688 (us3_imul, us3_idiv): Tweak.
7690 2002-05-28 Richard Henderson <rth@redhat.com>
7692 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
7695 2002-05-28 Richard Henderson <rth@redhat.com>
7697 * config.gcc: Obsolete mn10200.
7699 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
7701 * cppexp.c (interpret_number): Optimize for single-digit
7702 and less-than-half-precision cases.
7703 (num_trim, num_positive, num_div_op): Cast constants.
7705 2002-05-27 Bo Thorsen <bo@suse.de>
7707 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
7708 3.1 branch. The file was made by Jakub Jelinek.
7709 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
7710 support so multilib doesn't break. And don't define this at all
7711 when -Dinhibit_libc is used.
7712 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
7713 * config/i386/t-linux64: Implement full multilib support. Patch
7714 originally done by Andreas Jaeger and Jakub Jelinek.
7716 2002-05-27 Roger Sayle <roger@eyesopen.com>
7718 * c-common.c: Add support for __attribute__((nothrow)) to specify
7719 that a function cannot throw an exception (using TREE_NOTHROW).
7720 (handle_nothrow_attribute): New function to process this attribute.
7722 * doc/extend.texi: Document the new nothrow function attribute.
7724 2002-05-27 H.J. Lu (hjl@gnu.org)
7726 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
7727 (num_positive): Likewise.
7728 (num_div_op): Likewise.
7730 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7732 * c-common.c (c_common_init): Always use intmax_t.
7734 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7736 * c-common.c (c_common_init): Use intmax_t for now.
7738 2002-05-24 Andrew Haley <aph@redhat.com>
7740 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
7741 if T is a boolean type.
7743 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7745 * basic-block.h (last_basic_block): Defined as synonym for
7747 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
7748 flow_depth_first_order_compute, flow_preorder_transversal_compute,
7749 flow_dfs_compute_reverse_init): Replaced relevant occurences of
7750 n_basic_blocks with last_basic_block.
7751 * cfgbuild.c (make_edges): Likewise.
7752 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
7753 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
7754 * combine.c (combine_instructions): Likewise.
7755 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
7756 iterative_dataflow_bitmap): Likewise.
7757 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7758 calc_idoms, idoms_to_doms): Likewise.
7759 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
7761 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
7762 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
7763 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
7764 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
7765 delete_null_pointer_checks, compute_code_hoist_vbeinout,
7766 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7767 compute_store_table, build_store_vectors): Likewise.
7768 * haifa-sched.c (sched_init): Likewise.
7769 * ifcvt.c (if_convert): Likewise.
7770 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7771 pre_edge_lcm, compute_available, compute_nearerout,
7772 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
7774 * predict.c (estimate_probability, process_note_prediction,
7775 note_prediction_to_br_prob): Likewise.
7776 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
7777 * recog.c (split_all_insns, peephole2_optimize): Likewise.
7778 * regrename.c (copyprop_hardreg_forward): Likewise.
7779 * resource.c (init_resource_info): Likewise.
7780 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
7781 init_regions, schedule_insns): Likewise.
7782 * ssa-ccp.c (ssa_const_prop): Likewise.
7783 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7784 * ssa.c (compute_dominance_frontiers,
7785 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
7787 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
7788 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
7791 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
7793 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
7795 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
7796 hoist_insn_after, hoist_insn_to_edge): New.
7798 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
7800 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
7801 (PROP_FINAL): Include.
7802 * flow.c (life_analysis, update_life_info,
7803 init_propagate_block_info, mark_set_1, mark_used_rgs):
7804 Support SCAN_DEAD_STORE.
7806 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7808 * c-common.c (c_common_init): Set CPP arithmetic precision.
7809 * cppexp.c (cpp_num_part): Move typedef ...
7810 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
7811 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
7812 (sanity_checks): Update.
7814 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
7816 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
7817 (mkheaders): New rule.
7818 (install-mkheaders): New rule.
7819 * configure.in (all_outputs): Add mkheaders.
7820 * configure: Regenerate.
7821 * mkheaders.in: New file.
7823 2002-05-26 Jakub Jelinek <jakub@redhat.com>
7825 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
7827 2002-05-26 Andreas Jaeger <aj@suse.de>
7829 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
7831 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
7833 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
7834 right_shift): Remove.
7835 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
7837 (struct op): Use cpp_num.
7838 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
7839 num_part_mul, num_unary_op, num_binary_op, num_negate,
7840 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
7841 num_div_op, num_lshift, num_rshift, append_digit): New.
7842 (interpret_number, parse_defined, eval_token, reduce): Update
7843 for two-integer arithmetic.
7844 (binary_handler): New typedef.
7846 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
7847 (_cpp_parse_expr, reduce): Update to handle two-integers.
7848 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
7850 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
7852 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
7853 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
7854 branch insn into account, do not assume 1.
7855 (avr_out_sbxx_branch): New function. Optimize cases of skipping
7856 over single word insn. Handle upper half of I/O space too.
7857 * config/avr/avr.md (*sbrx_branch): Use it.
7858 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
7859 (*sbix_branch, *sbix_branch_bit7): Likewise.
7860 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
7861 Use RTL peepholes to optimize register operand sign tests.
7863 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
7865 * config/avr/avr.c (avr_asm_only_p): New variable.
7866 (avr_override_options): Set it here if AVR1.
7867 (asm_file_start): Test it here, report an error if set.
7869 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
7871 * alias.c: Fix formatting.
7872 * attribs.c: Likewise.
7873 * bb-reorder.c: Likewise.
7874 * bitmap.c: Likewise.
7875 * bitmap.h: Likewise.
7876 * builtins.c: Likewise.
7878 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
7880 * reload.c (find_valid_class): Accept new argument DEST,
7881 choose class accordingly.
7882 (push_reload): Update callers.
7884 2002-05-26 Andreas Jaeger <aj@suse.de>
7886 * combine.c (combine_instructions): Do not indent #if for
7889 2002-05-25 Richard Henderson <rth@redhat.com>
7891 * c-pragma.c (apply_pragma_weak): Convert value identifier to
7892 string for decl_attributes.
7893 (handle_pragma_weak): Call assemble_alias if we're modifying
7896 2002-05-25 Richard Henderson <rth@redhat.com>
7899 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
7900 using rtl instead of fprintf.
7901 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
7902 * config/sparc/sparc-protos.h: Update.
7904 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
7906 * Makefile.in (C_COMMON_H): Fix.
7907 Update other targets.
7908 * c-common.c: Don't include c-lex.h.
7909 (builtin_define_with_value): Make static and prototype.
7910 (builtin_define_std): Move from c-lex.h.
7911 * c-common.h (init_c_lex): Move from c-lex.h.
7912 * c-decl.c: Don't include c-lex.h.
7913 (make_pointer_declarator): Move from c-parse.in.
7914 * c-lex.c: Don't include c-lex.h.
7916 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
7917 (make_pointer_declarator): Move to c-decl.c.
7918 * c-pragma.c: Don't include c-lex.h.
7919 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
7920 * c-tree.h (make_pointer_declarator): New.
7922 * passes.texi, tm.texi: Update.
7924 * Make-lang.in: Update and correct.
7925 * objc-act.c: Don't include c-lex.h or cpplib.h.
7927 * treetree.c: Don't include c-lex.h.
7929 * darwin-c.c: Don't include c-lex.h.
7930 * c4x/c4x-c.c: Don't include c-lex.h.
7931 * c4x/t-c4x: Update.
7932 * i370/i370-c.c: Don't include c-lex.h.
7933 * i370/t-i370: Update.
7934 * i960/i960-c.c: Don't include c-lex.h.
7935 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
7936 * i960/t-960bare: Update.
7937 * i960/t-vxworks: Update.
7938 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
7939 * rs6000/t-darwin: Update.
7940 * rs6000/t-rs6000-c-rule: Update.
7941 * v850/v850-c.c: Don't include c-lex.h.
7942 * v850/v850.c: Don't include c-lex.h or cpplib.h.
7945 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
7947 * tree.def: Fix typos.
7948 * doc/install.texi: Likewise.
7950 2002-05-25 Richard Henderson <rth@redhat.com>
7952 * configure.in (HAVE_AS_TLS): Add ia64 test.
7953 * configure: Rebuild.
7954 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
7955 (override_options): Set it.
7956 (TARGET_HAVE_TLS): New.
7957 (sdata_symbolic_operand): Look for 's'.
7958 (tls_symbolic_operand): New.
7959 (ia64_expand_load_address): Abort for tls symbols.
7960 (gen_tls_get_addr): New.
7961 (gen_thread_pointer): New.
7962 (ia64_expand_move): Split out from movdi. Handle tls symbols.
7963 (rtx_needs_barrier): Add new unspecs.
7964 (ia64_encode_section_info): Handle tls symbols.
7965 (ia64_strip_name_encoding): Strip two encoding chars.
7966 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
7967 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
7968 (TARGET_OPTIONS): Add tls-size.
7969 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
7970 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
7971 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
7972 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
7973 (movsf, movdf): Likewise.
7974 (movdi_symbolic): Use match_scratch. Don't split if we won't
7975 have a scratch availiable.
7976 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
7977 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
7978 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
7979 * config/ia64/ia64-protos.h: Update.
7980 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
7981 sdata_symbolic_operand.
7982 (ASM_OUTPUT_LABELREF): Strip two characters.
7984 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
7986 * combine.c (simplify_set): Remove an unnecessary subreg.
7988 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
7990 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
7992 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
7994 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
7996 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
7998 2002-05-25 Roger Sayle <roger@eyesopen.com>
8000 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
8001 (cond (compare x y) 0) into the equivalent (cond x y).
8003 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
8005 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
8007 2002-05-24 Zack Weinberg <zack@codesourcery.com>
8009 * config.gcc: Remove all stanzas for previously obsoleted
8010 systems. Where necessary, add explicit error stanzas to
8011 prevent removed systems from being misidentified as something
8012 else. Begin a fresh obsoletions list, with the systems that
8013 were reprieved last round.
8014 * doc/install.texi: Remove all mention of dead targets.
8015 * fixinc/mkfixinc.sh: Likewise.
8017 * config/arm/arm.h: Bit 31 of target_flags is no longer
8020 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
8021 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
8022 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
8023 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
8024 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
8025 config/alpha/osf12.h, config/alpha/osf2or3.h,
8026 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
8027 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
8028 config/clipper/clipper-protos.h, config/clipper/clipper.c,
8029 config/clipper/clipper.h, config/clipper/clipper.md,
8030 config/clipper/clix.h, config/convex/convex-protos.h,
8031 config/convex/convex.c, config/convex/convex.h,
8032 config/convex/convex.md, config/convex/fixinc.convex,
8033 config/convex/proto.h, config/elxsi/elxsi-protos.h,
8034 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
8035 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
8036 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
8037 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
8038 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
8039 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
8040 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
8041 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
8042 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
8043 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
8044 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
8045 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
8046 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
8047 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
8048 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
8049 config/m68k/altos3068.h, config/m68k/apollo68.h,
8050 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
8051 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
8052 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
8053 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
8054 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
8055 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
8056 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
8057 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
8058 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
8059 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
8060 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
8061 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
8062 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
8063 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
8064 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
8065 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
8066 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
8067 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
8068 config/mips/dec-osf1.h, config/mips/elflorion.h,
8069 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
8070 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
8071 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
8072 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
8073 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
8074 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
8075 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
8076 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
8077 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
8078 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
8079 config/ns32k/sequent.h, config/ns32k/tek6000.h,
8080 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
8081 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
8082 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
8083 config/sparc/rtems.h, config/we32k/we32k-protos.h,
8084 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
8087 2002-05-24 Richard Henderson <rth@redhat.com>
8089 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
8090 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
8091 * config/i386/i386.c (tls_model_chars): Add leading space.
8092 (tls_symbolic_operand): Don't bias by 1.
8093 (legitimize_address): Don't unbias by 1.
8095 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8097 * lcm.c (optimize_mode_switching): Change bb used as indices
8100 2002-05-24 Richard Henderson <rth@redhat.com>
8102 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
8103 of update_life_info_in_dirty_blocks.
8105 2002-05-24 Jakub Jelinek <jakub@redhat.com>
8108 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
8110 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
8112 PR preprocessor/6780
8113 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
8115 2002-05-24 Jim Blandy <jimb@redhat.com>
8117 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
8118 entry with a type code of zero, marking the end of the compilation
8121 2002-05-24 Richard Henderson <rth@redhat.com>
8123 * varasm.c (asm_output_bss): Always output one byte.
8124 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8126 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8128 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
8131 2002-05-24 Andreas Jaeger <aj@suse.de>
8133 * ggc-page.c (alloc_page): Cast variables of type size_t to
8134 unsigned long, adjust printf format string.
8135 (ggc_alloc): Likewise.
8136 (ggc_print_statistics): Likewise.
8137 (ggc_print_statistics): Correct printf format string for SCALE to
8140 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
8142 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
8144 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
8145 Zack Weinberg <zack@codesourcery.com>
8147 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
8149 * dwarf2out.c (lookup_filename): Properly quote filename in .file
8150 directive in assembly file.
8151 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
8152 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
8153 * config/pj/pj.h (ASM_FILE_START): Likewise.
8154 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
8155 * config/avr/avr.c (asm_file_end): Likewise.
8156 * toplev.c (output_quoted_string): Handle possibly signed plain
8158 * toplev.h (output_clean_symbol_name): Declare
8159 * toplev.c (output_clean_symbol_name): Define.
8160 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
8161 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
8163 2002-05-24 Alan Modra <amodra@bigpond.net.au>
8165 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
8167 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
8169 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
8170 of size of unsigned.
8172 2002-05-23 Richard Henderson <rth@redhat.com>
8174 * configure.in (HAVE_AS_TLS): New test.
8175 * config.in, configure: Rebuild.
8176 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
8177 (ix86_tls_dialect_string, ix86_tls_dialect): New.
8178 (override_options): Set it.
8179 (tls_model_chars, tls_symbolic_operand): New.
8180 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
8181 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
8182 (local_exec_symbolic_operand): New.
8183 (get_pic_label_name): Merge into output_set_got.
8184 (ix86_asm_file_end): Emit pic_label_name if defined.
8185 (legitimate_constant_p, constant_address_p): New.
8186 (legitimate_pic_operand_p): New.
8187 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
8188 (legitimate_address_p): Likewise.
8189 (ix86_encode_section_info): Rename from i386_; handle tls decls.
8190 (ix86_strip_name_encoding): New.
8191 (get_thread_pointer): New.
8192 (legitimize_address): Handle tls symbols.
8193 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
8195 (struct machine_function): Add some_ld_name.
8196 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
8197 (print_operand) [&]: Use it. Handle UNSPEC_TP.
8198 (output_addr_const_extra): New.
8199 (maybe_get_pool_constant): New.
8200 (ix86_split_to_parts): Use it.
8201 (ix86_expand_move): Handle tls symbols.
8202 (ix86_tls_get_addr): New.
8203 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
8204 (TARGET_OPTIONS): Add tls-dialect.
8205 (CONSTANT_ADDRESS_P): Use new out-of-line function.
8206 (LEGITIMATE_CONSTANT_P): Likewise.
8207 (LEGITIMATE_PIC_OPERAND_P): Likewise.
8208 (TARGET_STRIP_NAME_ENCODING): New.
8209 (ASM_OUTPUT_LABELREF): New.
8210 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
8211 (OUTPUT_ADDR_CONST_EXTRA): New.
8212 (PREDICATE_CODES): Update.
8213 (ix86_tls_dialect, ix86_tls_dialect_string): New.
8214 * config/i386/i386.md: Regroup and renumber unspec constants.
8215 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
8216 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
8217 (tls_global_dynamic, tls_local_dynamic_base): New.
8218 (tls_local_dynamic_once): New.
8219 * config/i386/i386-protos.h: Update.
8221 2002-05-23 Richard Henderson <rth@redhat.com>
8223 * genemit.c (gen_insn): Print file:lineno comment before function.
8225 * gensupport.c (struct queue_elem): Add filename member.
8226 (queue_pattern): Initialize it; update all callers.
8227 (process_include): Don't free filename.
8228 (read_md_rtx): Set read_rtx_filename.
8230 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
8232 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
8234 2002-05-23 Richard Henderson <rth@redhat.com>
8236 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
8238 2002-05-23 Richard Henderson <rth@redhat.com>
8240 * doc/extend.texi (C++98 Thread-Local Edits): Update with
8241 commentary from Mark.
8243 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8245 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
8246 Use FOR_EACH_BB macros to iterate over basic block chain.
8247 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
8248 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
8250 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
8251 find_unreachable_blocks, create_edge_list, verify_edge_list,
8252 remove_fake_edges, add_noreturn_fake_exit_edges,
8253 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
8255 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
8256 find_sub_basic_blocks): Likewise.
8257 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
8259 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
8261 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
8263 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
8264 commit_edge_insertions, commit_edge_insertions_watch_calls,
8265 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
8266 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
8267 * conflict.c (conflict_graph_compute): Likewise.
8268 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
8269 df_modified_p, df_refs_unlink, df_dump): Likewise.
8270 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
8271 * final.c (compute_alignments): Likewise.
8272 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
8273 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
8274 count_or_remove_death_notes): Likewise.
8275 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
8276 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
8277 classic_gcse, compute_transp, cprop, compute_pre_data,
8278 compute_transpout, invalidate_nonnull_info,
8279 delete_null_pointer_checks_1, delete_null_pointer_checks,
8280 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
8281 compute_store_table, build_store_vectors, store_motion): Likewise.
8282 * global.c (global_conflicts, mark_elimination): Likewise.
8283 * graph.c (print_rtl_graph_with_bb): Likewise.
8284 * haifa-sched.c (sched_init): Likewise.
8285 * ifcvt.c (if_convert): Likewise.
8286 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
8287 compute_available, compute_nearerout, compute_rev_insert_delete,
8288 optimize_mode_switching): Likewise.
8289 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
8290 * predict.c (estimate_probability, note_prediction_to_br_prob,
8291 propagate_freq, counts_to_freqs, expensive_function_p,
8292 estimate_bb_frequencies): Likewise.
8293 * profile.c (instrument_edges, get_exec_counts,
8294 compute_branch_probabilities, compute_checksum, branch_prob,
8295 find_spanning_tree): Likewise.
8296 * recog.c (split_all_insns, peephole2_optimize): Likewise.
8297 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
8299 * regclass.c (scan_one_insn, regclass): Likewise.
8300 * regmove.c (mark_flags_life_zones, regmove_optimize,
8301 record_stack_memrefs): Likewise.
8302 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
8303 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
8304 * resource.c (find_basic_block): Likewise.
8305 * sched-ebb.c (schedule_ebbs): Likewise.
8306 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
8307 find_single_block_region, find_rgns, schedule_insns)
8308 * sibcall.c (optimize_sibling_and_tail_recursive_call)
8309 * ssa-ccp.c (optimize_unexecutable_edges,
8310 ssa_ccp_df_delete_unreachable_insns): Likewise.
8311 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8312 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
8313 rename_block, convert_to_ssa, compute_conservative_reg_partition,
8314 compute_coalesced_reg_partition, rename_equivalent_regs,
8315 convert_from_ssa): Likewise.
8316 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
8317 process_for_unwind_directive): Likewise.
8319 * df.c (FOR_ALL_BBS): Removed.
8320 * gcse.c (struct null_pointer_info): Type of current_block field
8322 (struct reg_avail_info): Type of last_bb field changed.
8323 * config/ia64/ia64.c (block_num): Removed.
8324 (need_copy_state): Type changed.
8327 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
8329 * cppinit.c (mark_named_operators): Split out from init_builtins.
8330 (cpp_finish_options): Call it from here instead.
8332 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
8334 * builtin-attrs.def: Update copyright years.
8335 (ATTR_NONNULL): New attribute identifier.
8336 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
8337 attribute tree lists.
8338 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
8340 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
8341 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
8342 attribute lists. Chain the appropriate nonnull attribute.
8343 * c-format.c (check_format_arg): Remove null format string
8345 * testsuite/gcc.dg/format/null-1.c: New test.
8347 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8349 * Makefile.in (ADAC): Define.
8351 (.SUFFIXES): Move before language makefile fragments.
8352 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
8354 2002-05-23 Mark Mitchell <mark@codesourcery.com>
8356 * varasm.c (make_decl_rtl): Don't allow weak variables to be
8359 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
8361 * cfg.c (dump_flow_info): Print results of
8362 maybe_hot/probably_never_executed predicates.
8363 * toplev.c (open_dump_file): Print function frequency.
8365 2002-05-23 David S. Miller <davem@redhat.com>
8367 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
8370 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
8372 * c-common.c (warn_nonnull): Declare.
8373 (c_common_attribute_table): Add "nonnull" attribute.
8374 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
8375 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
8376 check_function_arguments_recurse): New functions.
8377 * c-common.h (warn_nonnull): Declare extern.
8378 (check_function_arguments, check_function_arguments_recurse): New
8380 * c-decl.c (c_decode_option): Add -Wnonnull option.
8381 * c-format.c (set_Wformat): Set warn_nonnull if enabling
8383 (format_check_context): New structure.
8384 (check_format_info_recurse): Remove recursion and rename to...
8385 (check_format_arg): ...this. Update comment.
8386 (check_format_info): Use check_function_arguments_recurse.
8387 * c-typeck.c (build_function_call): Call check_function_arguments
8388 instead of check_function_format.
8389 * doc/extend.texi: Document "nonnull" attribute.
8390 * doc/invoke.texi: Docuemnt -Wnonnull option.
8391 * testsuite/gcc.dg/nonnull-1.c: New test.
8392 * testsuite/gcc.dg/nonnull-2.c: New test.
8394 2002-05-23 David S. Miller <davem@redhat.com>
8396 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
8397 * cfgcleanup.c (cleanup_cfg): If it is set do not
8398 attempt to delete trivially dead insns.
8399 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
8400 * toplev.c (rest_of_compilation): Document non-trivial aspect
8401 the RTL before optimize_save_area_alloca is run.
8403 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
8405 * c-lex.c (indent_level): Remove.
8406 (cb_file_change, c_lex): Remove indent level handling.
8407 * c-lex.h (indent_level): Remove.
8408 * input.h (struct file_stack): Remove indent_level.
8409 * toplev.c (push_srcloc): Remove indent_level handling.
8411 2002-05-23 Jakub Jelinek <jakub@redhat.com>
8414 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
8415 of x in constraints for clarity.
8416 (sse_mov?fcc split): abort if op2 == op3.
8417 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
8418 sse_movsfcc_const0_4): Add earlyclobber.
8419 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
8420 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
8421 Use Y instead of x in constraints.
8423 2002-05-23 Richard Henderson <rth@redhat.com>
8425 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
8426 (C++98 Thread-Local Edits): New subsection.
8428 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
8429 (ix86_arch): Set type to enum processor_type.
8431 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
8432 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
8434 2002-05-23 Jakub Jelinek <jakub@redhat.com>
8436 * configure.in: Fix as version test for binutils 2.12.1 releases
8438 * configure: Rebuilt.
8440 2002-05-23 Richard Henderson <rth@redhat.com>
8442 * config/i386/i386.c (get_pic_label_name): New.
8443 (load_pic_register): Remove.
8444 (output_set_got): New.
8445 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
8446 * config/i386/i386.md (UNSPEC_SET_GOT): New.
8447 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
8448 (prologue_set_got, prologue_get_pc): Remove.
8449 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
8450 (builtin_setjmp_receiver): Use gen_set_got.
8451 * config/i386/i386-protos.h: Update.
8453 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
8455 * gcse.c (hash_expr): Do not use alias set for hashing.
8457 2002-05-22 Kevin Buettner <kevinb@redhat.com>
8459 * dbxout.c (dbxout_class_name_qualifiers): New function.
8460 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
8462 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
8464 * cpperror.c (_cpp_begin_message): No special casing
8466 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
8467 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
8468 * cpplib.c (do_include_common): Use DL_ERROR.
8469 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
8471 * fix-header.c (read_scan_file): Update.
8473 2002-05-22 Richard Henderson <rth@redhat.com>
8475 * config/i386/i386.c (ix86_expand_call): New function, extracted
8476 from md call patterns. Add pic_offset_table_rtx to
8477 CALL_INSN_FUNCTION_USAGE when needed.
8478 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
8479 (call_value_pop, call_value, untyped_call): Likewise.
8480 (call_exp, call_value_exp): Remove.
8481 * config/i386/i386-protos.h: Update.
8483 2002-05-22 Richard Henderson <rth@redhat.com>
8485 * varasm.c (default_section_type_flags): Check for VAR_DECL
8486 before using DECL_THREAD_LOCAL.
8488 2002-05-22 David Edelsohn <edelsohn@gnu.org>
8490 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
8491 (STARTFILE_SPEC): Delete PE crt0.o.
8492 * config/rs6000/aix51.h: Same.
8493 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
8494 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
8495 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
8496 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
8497 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
8499 2002-05-22 Richard Henderson <rth@redhat.com>
8501 * varasm.c (default_section_type_flags): Handle tls data and
8503 (default_unique_section): Handle tls sections.
8505 2002-05-23 Alan Modra <amodra@bigpond.net.au>
8507 * configure.in (CROSS): Define NATIVE_CROSS.
8508 * configure: Regenerate.
8509 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
8510 (startfile_prefix_spec): New var.
8511 (static_specs): Add startfile_prefix_spec.
8512 (do_spec_2): Split out from..
8514 (main): Process startfile_prefix_spec.
8515 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
8517 (STARTFILE_PREFIX_SPEC): Define.
8518 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
8521 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
8523 * cpperror.c: Fix formatting.
8524 * cppexp.c: Likewise.
8525 * cppfiles.c: Likewise.
8526 * cpphash.c: Likewise.
8527 * cpphash.h: Likewise.
8528 * cppinit.c: Likewise.
8529 * cpplex.c: Likewise.
8530 * cpplib.c: Likewise.
8531 * cppmacro.c: Likewise.
8532 * cppmain.c: Likewise.
8533 * cppspec.c: Likewise.
8535 2002-05-22 Jakub Jelinek <jakub@redhat.com>
8537 * combine.c (force_to_mode): Use gen_int_mode.
8538 Don't clear CONST_INT bits outside of mode.
8540 2002-05-22 Richard Henderson <rth@redhat.com>
8542 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
8543 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
8545 2002-05-22 Jakub Jelinek <jakub@redhat.com>
8548 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
8549 if DECL_SIZE_UNIT is INTEGER_CST.
8551 2002-05-22 Richard Henderson <rth@redhat.com>
8553 * flow.c (life_analysis): Delete broken reg_label check.
8555 2002-05-22 Richard Henderson <rth@redhat.com>
8557 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
8558 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
8560 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
8562 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
8563 (embed-bb.c): New rule.
8564 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
8565 * config/sh/embed_bb.c: Delete.
8567 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
8569 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
8571 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
8573 * config/h8300/h8300.md (*andorqi3): New.
8575 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
8577 PR preprocessor/6517
8578 * Makefile.in: Update.
8579 * c-common.c (c_common_post_options): Add preprocessor
8580 errors to the error count.
8581 * c-lang.c (c_post_options): Kill.
8582 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
8583 * hooks.h: Add header guards.
8584 * langhooks-def.h: Include hooks.h.
8585 (LANG_HOOKS_POST_OPTIONS): Update.
8586 * langhooks.h (struct lang_hooks): Update post_options.
8587 * toplev.c (parse_options_and_default_flags): Update.
8589 * objc-lang.c (objc_post_options): Kill.
8590 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
8592 2002-05-21 Bruce Korb <bkorb@gnu.org>
8594 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
8595 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
8596 * fixinc/fixincl.x: regen.
8598 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
8600 * cfgbuild.c: Fix formatting.
8602 * cfgcleanup.c: Likewise.
8603 * cfglayout.c: Likewise.
8604 * cfgloop.c: Likewise.
8605 * cfgrtl.c: Likewise.
8607 2002-05-21 Richard Henderson <rth@redhat.com>
8609 * c-common.h (enum rid): Add RID_THREAD.
8610 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
8611 (grokdeclarator): Grok __thread.
8612 * c-parse.in (reswords): Add __thread.
8613 (rid_to_yy): Add RID_THREAD.
8615 * tree.h (DECL_THREAD_LOCAL): New.
8616 (struct tree_decl): Add thread_local_flag.
8617 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
8618 * tree.c (staticp): TLS variables are not static.
8620 * target-def.h (TARGET_HAVE_TLS): New.
8621 * target.h (have_tls): New.
8622 * output.h (SECTION_TLS): New.
8623 * varasm.c (assemble_variable): TLS variables can't be common for now.
8624 (default_section_type_flags): Handle .tdata and .tbss.
8625 (default_elf_asm_named_section): Handle SECTION_TLS.
8626 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
8628 * flags.h (flag_tls_default): Declare.
8629 * toplev.c (flag_tls_default): Define.
8630 (display_help): Display help for it.
8631 (decode_f_option): Set it.
8633 * doc/extend.texi (Thread-Local): New node describing language-level
8634 thread-local storage.
8635 * doc/invoke.texi (-ftls-model): Document.
8637 * fixinc/inclhack.def (thread_keyword): New.
8638 * fixinc/fixincl.x: Rebuild.
8640 2002-05-21 Jeffrey A Law <law@redhat.com>
8642 * optabs.c (expand_binop): For double-word integer multiplies,
8643 do not compute intermediate results into something that is
8644 not a register (such as a SUBREG or MEM).
8646 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
8647 (ix86_sched_reorder): Make sure to initialize scheduling
8648 data even when there's only one insn in the ready queue.
8650 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
8652 * genautomata.c (reserv_sets_hash_value): Fix a typo.
8654 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
8656 * genautomata.c (reserv_sets_hash_value): Define hash_value as
8657 set_el_t. Transform the hash value into unsigned.
8658 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
8659 (transform_3): Add code to process `(A,B)+(D,E)'.
8661 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
8663 * reload1.c (do_output_reload): Run delete_output_reload
8666 2002-05-21 Roger Sayle <roger@eyesopen.com>
8669 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
8670 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
8671 (can_store_by_pieces): ... and here to limit the largest mode used.
8672 Add a comment to document this function.
8674 2002-05-21 Richard Henderson <rth@redhat.com>
8676 * flow.c (life_analysis): Fix test for deleted label.
8678 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
8680 * doc/tm.texi: Fix typo.
8682 2002-05-21 Zack Weinberg <zack@codesourcery.com>
8684 * c-common.c (c_common_init): Set options->unsigned_char from
8686 (cb_register_builtins): Define __STRICT_ANSI__ and
8687 __CHAR_UNSIGNED__ here...
8688 * cppinit.c (init_builtins): Not here.
8689 (cpp_create_reader): unsigned_char option defaults to 0, not
8690 !DEFAULT_SIGNED_CHAR.
8691 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
8692 and -funsigned-char.
8694 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
8695 * cpphash.c (_cpp_init_hashtable): Don't set it.
8696 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
8697 directly. Clarify comment.
8699 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8701 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
8702 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
8703 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
8704 BASIC_BLOCK (n_basic_blocks - 1).
8705 * cfganal.c (can_fallthru, flow_call_edges_add,
8706 flow_preorder_transversal_compute): Too.
8707 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
8708 find_sub_basic_blocks): Too.
8709 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
8710 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
8711 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
8712 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
8713 * combine.c (this_basic_block): Type changed to basic_block.
8714 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
8715 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
8716 get_last_value, distribute_notes, distribute_links): Too.
8717 * final.c (compute_alignments): Too.
8718 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
8719 * function.c (thread_prologue_and_epilogue_insns): Too.
8720 * gcse.c (compute_code_hoist_vbeinout): Too.
8721 * global.c (build_insn_chain): Too.
8722 * ifcvt.c (find_if_block, find_cond_trap): Too.
8723 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
8724 * regmove.c (regmove_optimize): Too.
8725 * resource.c (find_basic_block): Too.
8726 * sched-ebb.c (schedule_ebbs): Too.
8727 * ssa-dce.c (find_control_dependence, find_pdom): Too.
8729 2002-05-21 Andreas Jaeger <aj@suse.de>
8731 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
8733 2002-05-21 Richard Henderson <rth@redhat.com>
8735 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
8736 unspec names, not numbers.
8738 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
8740 * doc/sourcebuild.texi: Mention snapshot-README and
8741 snapshot-index.html as needing updating for new front ends.
8743 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8745 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
8746 disabling checking, and avoid multiple evaluation of RTX.
8748 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
8750 * bitmap.c (bitmap_find_bit): Return early if we have the correct
8753 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
8755 * profile.c (gen_edge_profiler): Set alias set before the memory is
8758 2002-05-20 David S. Miller <davem@redhat.com>
8760 * cselib.c (max_value_regs): New.
8761 (cselib_lookup, cselib_invalidate_regno): Initialize it when
8762 adding new entries to the REG_VALUES table and we are dealing with
8764 (clear_table): Initialize it.
8765 (cselib_invalidate_regno): Use it to determine which hard
8766 registers to scan when mode is not VOIDmode.
8768 2002-05-20 Duraid Madina <duraid@fl.net.au>
8770 * tradcpp.c (fixup_newlines): Use old-style function header.
8772 2002-05-20 Krister Walfridsson <cato@df.lth.se>
8774 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
8776 2002-05-20 H.J. Lu (hjl@gnu.org)
8778 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
8780 * config/mips/mips.h (DFMODE_NAN): Defined.
8781 (SFMODE_NAN): Likewise.
8783 2002-05-20 Dale Johannesen <dalej@apple.com>
8785 * combine.c (cant_combine_insn_p): Back out my
8788 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8790 * params.c: Fix formatting.
8791 * params.h: Likewise.
8792 * predict.c: Likewise.
8793 * prefix.c: Likewise.
8794 * print-rtl.c: Likewise.
8795 * print-tree.c: Likewise.
8796 * profile.c: Likewise.
8798 2002-05-20 H.J. Lu (hjl@gnu.org)
8800 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
8802 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
8804 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
8805 switches straight on to the assembler, do not abbreviate them.
8806 * config/arm/elf.h (ASM_SPEC): As above.
8807 * config/arm/semi.h (ASM_SPEC): As above.
8808 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
8809 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
8810 -mcpu=xscale on to the assembler by default.
8811 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
8813 2002-05-20 Richard Henderson <rth@redhat.com>
8815 * cse.c (canon_hash): Reorder do_not_record test. Always
8816 allow pic_offset_table_rtx.
8818 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
8820 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
8821 (expand_binop): Ditto (3 times).
8823 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
8825 * Makefile.in (distclean): Remove QMTest stuff.
8826 (QMTEST_PATH): New variable.
8827 (QMTESTFLAGS): Likewise.
8828 (QMTESTRUNFLAGS): Likewise.
8830 (QMTEST_GPP_TESTS): Likewise.
8831 (QMTEST_DIR): Likewise.
8832 (QMTEST_DIR/context): New target.
8833 (qmtest-g++): Likeise.
8834 (qmtest-gui): Likewise.
8835 (QMTEST_DIR/gpp-expected.qmr): Likewise.
8837 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
8839 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
8840 an altivec register if TARGET_ALTIVEC.
8842 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
8843 to ALTIVEC_VECTOR_MODE.
8844 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
8845 (rs6000_va_arg): Vectors may go in registers if they are not
8848 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
8850 * protoize.c: Fix formatting.
8852 2002-05-19 Richard Henderson <rth@redhat.com>
8854 * gensupport.c (init_include_reader): Merge into ...
8855 (process_include): ... here. Simplify composite path creation.
8856 Plug memory leaks. Fix file/line number tracking. Do not
8857 process_define_cond_exec. Return void.
8858 (process_rtx): Don't check process_include return value.
8860 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8862 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
8864 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8865 traversing basic block chain.
8866 (create_basic_block_structure, create_basic_block): Declaration changed.
8867 (link_block, unlink_block): Declare.
8868 * cfg.c (entry_exit_blocks): Initialize new fields.
8869 (link_block, unlink_block): New.
8870 (expunge_block_nocompact): Unlink basic block.
8871 (dump_flow_info): Print prev_bb/next_bb fields.
8872 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
8873 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
8874 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
8875 * cfgrtl.c (create_basic_block_structure, create_basic_block,
8876 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
8877 (verify_flow_info): Check that list agrees with numbering.
8879 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
8881 * c-common.c (preprocessing_asm): New macro.
8882 * c-lex.h (builtin_define, builtin_assert): Use pfile.
8886 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
8887 (CPP_SPEC): Simplify.
8888 (TARGET_CPU_CPP_BUILTINS): Update.
8889 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
8890 (CPP_SPEC): Simplify.
8891 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
8892 (TARGET_OS_CPP_BUILTINS): Update.
8893 * osf.h (CPP_XFLOAT_SPEC): Kill.
8894 (TARGET_OS_CPP_BUILTINS): Update.
8895 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
8896 * osf5.h (CPP_XFLOAT_SPEC): Kill.
8897 * vms.h (CPP_SUBTARGET_SPEC): Kill.
8898 (TARGET_OS_CPP_BUILTINS): Update.
8900 2002-05-19 Richard Henderson <rth@redhat.com>
8902 * varasm.c (default_binds_local_p): Fix typo.
8904 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
8906 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
8907 CONST_INT operand to the correct mode after adding 1 to it.
8909 2002-05-19 Mark Mitchell <mark@codesourcery.com>
8911 * config.gcc (powerpc-wrs-windiss*): New target.
8913 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8915 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
8918 2002-05-18 Mark Mitchell <mark@codesourcery.com>
8920 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
8922 * config.in: Regenerated.
8923 * configure: Regenerated.
8925 2002-05-19 Richard Henderson <rth@redhat.com>
8927 * target-def.h (TARGET_BINDS_LOCAL_P): New.
8928 * target.h (struct gcc_target): Move boolean fields to the end.
8930 * varasm.c (default_binds_local_p): New.
8931 * output.h: Declare it.
8933 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
8934 * config/cris/cris.c (cris_encode_section_info): Likewise.
8935 * config/i386/i386.c (i386_encode_section_info): Likewise.
8936 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
8937 * config/sh/sh.c (sh_encode_section_info): Likewise.
8939 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
8940 (TARGET_BINDS_LOCAL_P): New.
8942 2002-05-19 Richard Henderson <rth@redhat.com>
8944 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
8945 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
8946 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
8948 * toplev.c (display_help): Kill -a -ax help.
8950 * config/1750a/1750a.h, config/alpha/alpha.h,
8951 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
8952 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
8953 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
8954 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
8956 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
8957 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
8959 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
8960 (ix86_output_function_block_profiler): Kill.
8961 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
8962 (m68hc11_function_block_profiler): Kill.
8963 * config/m68hc11/m68hc11-protos.h: Update.
8964 * config/m88k/m88k.c (output_block_profiler): Kill.
8965 (output_function_block_profiler): Kill.
8966 * config/m88k/m88k-protos.h: Update.
8968 2002-05-19 Richard Henderson <rth@redhat.com>
8970 * system.h (STRIP_NAME_ENCODING): Poison it.
8971 * output.h (STRIP_NAME_ENCODING): Remove.
8972 (default_strip_name_encoding): Declare.
8973 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
8974 * target.h (strip_name_encoding): New.
8975 * varasm.c (default_strip_name_encoding): New.
8977 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
8978 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
8979 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
8980 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
8981 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
8982 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
8983 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
8984 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
8985 config/v850/v850.h: Use the hook, not the macro.
8987 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8988 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
8989 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
8990 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
8991 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
8992 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
8993 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
8994 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
8995 config/v850/v850.c, config/v850/v850.h:
8996 Move STRIP_NAME_ENCODING to out-of-line function and add
8997 TARGET_STRIP_NAME_ENCODING.
8999 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
9000 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
9001 with TARGET_STRIP_NAME_ENCODING referencing existing function;
9002 make function static.
9004 * xcoffout.c: Include target.h
9005 * Makefile.in (xcoffout.o): Update.
9007 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
9008 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
9009 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
9010 reloc argument unused.
9011 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
9013 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
9014 STRIP_NAME_ENCODING docs.
9016 2002-05-19 Andreas Jaeger <aj@suse.de>
9018 * gengenrtl.c: Add prototype for excluded_rtx.
9020 * real.h: Add prototype for exact_real_truncate.
9022 2002-05-18 Richard Henderson <rth@redhat.com>
9024 * system.h (ENCODE_SECTION_INFO): Poison it.
9025 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
9026 * target.h (encode_section_info): New.
9027 * varasm.c (make_decl_rtl, output_constant_def): Use it.
9028 * hooks.c (hook_tree_int_void): New.
9029 * hooks.h: Declare it.
9031 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
9032 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
9033 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
9034 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
9035 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
9036 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
9037 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
9038 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
9039 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
9040 config/mcore/mcore-protos.h, config/mcore/mcore.c,
9041 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
9042 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
9043 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
9044 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
9045 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
9046 referencing existing function. Make function static.
9048 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
9049 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
9050 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
9051 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
9052 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
9053 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
9054 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
9055 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
9056 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
9057 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
9058 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
9059 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
9060 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
9061 Move ENCODE_SECTION_INFO to out-of-line function and add
9062 TARGET_ENCODE_SECTION_INFO.
9064 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
9065 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
9067 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
9069 (switch_to_section): Replace in_rdata case with in_readonly_data.
9071 * config/h8300/h8300.c (h8300_encode_label): Make static.
9072 * config/h8300/h8300-protos.h: Update.
9074 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
9075 from rs6000_encode_section_info; make static.
9076 (rs6000_xcoff_encode_section_info): New.
9078 * config/v850/v850.c (v850_encode_data_area): Make static.
9079 * config/v850/v850-protos.h: Update.
9081 * config/vax/vax.c: Include flags.h.
9082 (vms_select_section): Fix typo.
9084 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
9085 ENCODE_SECTION_INFO docs.
9087 2002-05-18 Richard Henderson <rth@redhat.com>
9089 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
9090 REGISTER_TARGET_PRAGMAS.
9091 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
9093 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
9095 2002-05-18 Richard Henderson <rth@redhat.com>
9097 * system.h (SELECT_RTX_SECTION): Poison.
9098 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
9099 * target.h (select_rtx_section): New.
9100 * varasm.c (output_constant_pool): Use it.
9101 (default_select_rtx_section, default_elf_select_rtx_section): New.
9102 * output.h: Declare them.
9104 * config/darwin.h (SELECT_RTX_SECTION): Move ...
9105 * config/darwin.c (machopic_select_rtx_section): ... here.
9106 * config/darwin-protos.h: Update.
9108 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
9109 * config/nextstep.c (machopic_select_rtx_section): ... here.
9110 (nextstep_select_section): Rename variable to avoid macro clash.
9111 * config/nextstep-protos.h: Update.
9113 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
9114 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
9115 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
9116 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
9117 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
9118 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
9119 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
9120 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
9121 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
9122 (SELECT_RTX_SECTION): Remove.
9124 * config/darwin.h, config/elfos.h, config/nextstep.h,
9125 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
9126 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
9127 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
9128 config/sparc/lynx.h, config/xtensa/xtensa.c
9129 (TARGET_ASM_SELECT_RTX_SECTION): New.
9131 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
9132 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
9133 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
9134 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
9135 (ia64_aix_select_rtx_section): New.
9136 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
9138 * config/mips/mips.c (mips_select_rtx_section): Make static.
9139 Support ELF SHF_MERGE features.
9140 * config/mips/mips-protos.h: Update.
9141 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
9142 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
9143 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
9144 make static, fall back to default_elf_select_rtx_section.
9145 * config/rs6000/rs6000-protos.h: Update.
9146 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
9147 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
9148 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
9149 * config/romp/romp.c (romp_select_rtx_section): New.
9150 * config/s390/s390.c (s390_select_rtx_section): New.
9151 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
9152 declarations before target macro definition.
9153 (xtensa_emit_call): Use static buffer.
9154 (xtensa_select_rtx_section): New.
9155 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
9156 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
9157 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
9159 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
9160 SELECT_RTX_SECTION docs.
9162 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
9164 * i386.md (movsi/movdi): Fix template.
9165 (sse2 patterns): Set attributes consistently.
9167 * i386.md (pushqi2, ashrqi_*): Fix constraint.
9169 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
9171 * optabs.c (complex_part_zero_p): New.
9172 * (expand_cmplxdiv_straight): Use it.
9173 * (expand_cmplxdiv_wide): Ditto.
9174 * (expand_binop): Ditto.
9176 2002-05-18 Richard Henderson <rth@redhat.com>
9178 * final.c (HAVE_READONLY_DATA_SECTION): New.
9179 (shorten_branches): Use it instead of ifdefs.
9180 * varasm.c (enum in_section): Add in_readonly_data.
9181 (text_section, data_section): Tidy.
9182 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
9184 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
9185 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
9186 (READONLY_DATA_SECTION): Don't undef.
9188 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
9189 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
9190 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
9192 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
9193 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
9194 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
9195 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
9197 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
9198 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
9199 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
9200 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
9201 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
9202 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
9203 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
9204 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
9205 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
9207 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
9208 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
9209 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
9210 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
9211 config/pa/pa64-hpux.h, config/sparc/litecoff.h
9212 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
9214 * config/elfos.h, config/netware.h, config/svr3.h,
9215 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
9216 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
9217 config/h8300/h8300.h, config/i386/i386-interix.h,
9218 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
9219 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
9221 * config/elfos.h, config/netware.h, config/svr3.h,
9222 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
9223 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
9224 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
9225 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
9227 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
9228 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
9229 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
9230 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
9231 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
9232 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
9233 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
9234 config/rs6000/sysv4.h, config/v850/v850.h
9235 (EXTRA_SECTIONS): Remove in_const/in_rdata.
9236 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
9238 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
9239 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
9240 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
9241 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
9242 * config/alpha/alpha.c (alpha_start_function): Likewise.
9243 (alpha_write_linkage): Likewise.
9244 * config/m32r/m32r.c (m32r_select_section): Likewise.
9245 * config/m88k/m88k.c (m88k_select_section): Likewise.
9246 * config/mips/mips.c (mips_select_rtx_section): Likewise.
9247 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
9248 (rs6000_elf_select_section): Likewise.
9249 * config/v850/v850.c (v850_select_section): Likewise.
9251 * config/1750a/1750a.h, config/i860/sysv3.h
9252 (READONLY_DATA_SECTION_ASM_OP): New.
9253 READONLY_DATA_SECTION_ASM_OP.
9254 * config/i386/interix.c, config/i386/winnt.c
9255 (i386_pe_unique_section): Always use .rdata prefix.
9256 * config/pa/som.h (readonly_data): Always switch to read-only section.
9257 (READONLY_DATA_SECTION): Predicate on flag_pic.
9258 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
9259 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
9260 (READONLY_DATA_SECTION): Update.
9262 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
9264 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
9265 is used without -Wformat.
9266 * c-common.h (warn_format_zero_length): Declare extern.
9267 * c-decl.c (warn_options): Add "format-zero-length".
9268 * c-format.c (warn_format_zero_length): Declare.
9269 (set_Wformat): Set warn_format_zero_length for -Wformat.
9270 (check_format_info): Only warn about zero-length formats if
9271 warn_format_zero_length is true. Include the format type
9272 name in the warning message.
9273 * doc/invoke.texi: Document -Wformat-zero-length.
9274 * testsuite/gcc.dg/format/zero-length-1.c: New test.
9276 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
9278 * timevar.c: Fix formatting.
9279 * tlink.c: Likewise.
9280 * toplev.c: Likewise.
9281 * tree-dump.c: Likewise.
9282 * tree-inline.c: Likewise.
9284 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
9286 * cppinit.c (cpp_post_options): If preprocessed, turn off
9287 traditional. If traditional, turn off column numbers.
9288 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
9289 * cpptrad.c (handle_newline): Update line_base.
9290 (skip_comment): Handle -Wcomment.
9292 2002-05-17 Zack Weinberg <zack@codesourcery.com>
9294 * cppinit.c (struct builtin): Remove unused fields.
9295 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
9296 (operator_array): New - was second half of builtin_array.
9297 (init_builtins): Simplify loop over builtin_array/operator_array.
9299 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
9301 * defaults.h (UNIQUE_SECTION): Remove.
9302 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
9304 2002-05-17 Richard Henderson <rth@redhat.com>
9306 * expr.c (init_expr_once): Don't use start/end_sequence.
9307 Use rtx_alloc instead of emit_insn.
9308 * toplev.c (lang_dependent_init): Run init_expr_once here ...
9309 (lang_independent_init): ... not here.
9311 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9313 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
9315 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
9317 * config/avr/avr.c (avr_regs_to_save): New function. Also check
9318 for fixed registers, possibly used for global register variables.
9319 (initial_elimination_offset, avr_output_function_prologue,
9320 avr_output_function_epilogue): Move common code to avr_regs_to_save.
9322 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
9324 * Makefile.in: Update for cpptrad.c.
9325 * cpphash.h (struct cpp_buffer): New members for buffer
9327 (struct cpp_reader): New members for traditional output.
9328 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
9329 * cppinit.c (cpp_create_reader): Set trad_line.
9330 (cpp_destroy): Free trad_out_base if used.
9331 (cpp_read_main_file): Overlay an empty buffer if traditional.
9332 (cpp_finish_options): Don't do builtins.
9333 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
9334 (cpp_handle_option): Handle it.
9335 * cpplex.c (continue_after_nul): New.
9336 (_cpp_lex_direct): Use handle_nul.
9337 * cpplib.h (struct cpp_options): New traditional option.
9338 * cpptrad.c: New file.
9340 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
9342 * c-common.c (c_common_init_options): Use C89 for Objective-C,
9343 and set the options flag.
9344 * cppinit.c (lang_flags): Remove objc.
9345 (lang_defaults): Remove OBJC and OBJCXX.
9347 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
9348 (cpp_handle_option): Remove -+ and -lang-objc++.
9349 For ObjC, just set a flag.
9350 (print_help): Update.
9351 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
9353 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9355 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
9356 bootstrap with -mips3.
9358 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
9360 * final.c: Fix formatting.
9361 * fix-header.c: Likewise.
9363 * fold-const.c: Likewise.
9364 * function.c: Likewise.
9366 2002-05-17 David S. Miller <davem@redhat.com>
9368 PR c/6689, PR optimization/6615
9369 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
9370 and make it a pointer to rtx. Update comments.
9371 (update_equiv_regs): When scanning for equivalences, record
9372 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
9373 it while making the equiv replacements.
9375 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9377 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
9379 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
9381 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
9382 when encoding visibility into SYMBOL_REF_FLAG.
9384 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
9386 * expr.c (force_operand): Fix reversed move.
9388 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
9390 * doc/install.texi (Testing): Mention two common DejaGnu warnings
9391 that can be ignored.
9393 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9395 * doc/install.texi (Final install): Recommend to install into a
9396 "clean" target directory.
9398 2002-05-17 Richard Henderson <rth@redhat.com>
9400 * config/ia64/ia64.md: Use braced strings instead of quoted strings
9401 for code blocks. Tidy whitespace.
9403 2002-05-17 Richard Henderson <rth@redhat.com>
9405 * hooks.c (hook_tree_bool_false): New.
9406 * hooks.h: Declare it.
9407 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
9408 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
9409 * target.h (select_section, unique_section): New.
9410 (in_small_data_p): New.
9411 * varasm.c (resolve_unique_section): Use hooks instead of macros.
9412 (variable_section, output_constant_def_contents): Likewise.
9413 (default_select_section, default_unique_section): New.
9414 (categorize_decl_for_section, default_elf_select_section): New.
9415 * output.h: Declare them.
9417 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
9418 (TARGET_ASM_SELECT_SECTION): New.
9419 (SELECT_SECTION): Move ...
9420 * config/darwin.c (machopic_select_section): ... here.
9421 * config/darwin-protos.h: Update.
9423 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
9424 (SELECT_SECTION): Move ...
9425 * config/nextstep.c (nextstep_select_section): ... here.
9426 * config/nextstep-protos.h: Update.
9428 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
9429 (TARGET_ASM_SELECT_SECTION): New.
9430 * config/svr3.h (SELECT_SECTION): Remove.
9432 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
9433 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
9434 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
9435 (alpha_encode_section_info): Use it.
9436 * config/alpha/alpha-protos.h: Update.
9437 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
9438 (SELECT_SECTION, UNIQUE_SECTION): Remove.
9439 (TARGET_ASM_SELECT_SECTION): New.
9440 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
9442 * config/arm/pe.h (UNIQUE_SECTION): Remove.
9443 (TARGET_ASM_UNIQUE_SECTION): New.
9445 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
9446 (avr_unique_section): Rename from unique_section; make static.
9447 * config/avr/avr-protos.h: Update.
9448 * config/avr/avr.h (UNIQUE_SECTION): Remove.
9450 * config/c4x/c4x.h (SELECT_SECTION): Remove.
9452 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
9453 (TARGET_ASM_UNIQUE_SECTION): New.
9454 * config/i386/i386-interix.h: Likewise.
9455 * config/i386/win32.h: Likewise.
9456 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
9457 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
9458 * config/i386/sco5.h (SELECT_SECTION): Remove.
9459 (TARGET_ASM_SELECT_SECTION): New.
9460 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
9462 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
9463 instead of SELECT_SECTION.
9464 * config/m68k/dpx2.h: Likewise.
9465 * config/rs6000/lynx.h: Likewise.
9467 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
9468 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
9469 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
9470 (ia64_in_small_data_p): New.
9471 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
9472 (ia64_aix_select_section, ia64_aix_unique_section): New.
9473 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
9474 (SELECT_SECTION, UNIQUE_SECTION): Remove.
9476 * config/m32r/m32r.h (SELECT_SECTION): Remove.
9477 (TARGET_ASM_SELECT_SECTION): New.
9478 * config/m32r/m32r.c (m32r_select_section): Take align argument.
9479 * config/m32r/m32r-protos.h: Update.
9481 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
9482 (SELECT_SECTION): Move ...
9483 * config/m88k/m88k.c (m88k_select_section): ... here.
9485 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
9486 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
9487 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
9488 (mcore_unique_section): Make static.
9489 * config/mcore/mcore-protos.h: Update.
9491 * config/mips/elf.h (UNIQUE_SECTION): Remove.
9492 (TARGET_ASM_UNIQUE_SECTION): New.
9493 * config/mips/elf64.h: Likewise.
9494 * config/mips/iris6gld.h: Likewise.
9495 * config/mips/linux.h: Likewise.
9496 * config/mips/mips-protos.h: Update.
9497 * config/mips/mips.c (mips_select_section): Add align argument.
9498 * config/mips/mips.h (SELECT_SECTION): Remove.
9499 (TARGET_ASM_SELECT_SECTION): New.
9501 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
9502 * config/mmix/mmix.c (mmix_select_section): Remove.
9503 (mmix_unique_section): Remove.
9504 * config/mmix/mmix-protos.h: Update.
9506 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
9507 (SELECT_SECTION): Move ...
9508 * config/pa/pa.c (pa_select_section): ... here.
9509 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
9511 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
9512 from rs6000_select_section and make static.
9513 (rs6000_elf_unique_section): Similarly.
9514 (rs6000_xcoff_select_section): From xcoff.h.
9515 (rs6000_xcoff_unique_section): Likewise.
9516 * config/rs6000/rs6000-protos.h: Update.
9517 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
9518 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
9519 * config/rs6000/xcoff.h: Likewise.
9521 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
9522 (SELECT_SECTION): Move ...
9523 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
9525 * config/v850/v850.h (SELECT_SECTION): Move ...
9526 * config/v850/v850.c (v850_select_section): ... here.
9527 (TARGET_ASM_SELECT_SECTION): New.
9529 * config/vax/vms.h (SELECT_SECTION): Move ...
9530 * config/vax/vax.c (vms_select_section): ... here.
9531 (TARGET_ASM_SELECT_SECTION): New.
9533 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
9534 for the target hooks.
9536 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
9538 * config/arm/arm.c (emit_multi_reg_push): Do not set
9539 RTX_FRAME_RELATED_P on the SEQUENCE.
9541 2002-05-16 Richard Henderson <rth@redhat.com>
9543 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
9544 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
9546 2002-05-16 Richard Henderson <rth@redhat.com>
9548 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
9550 * config/ia64/ia64.c (saveable_obstack): Do not declare.
9552 2002-05-16 Richard Henderson <rth@redhat.com>
9554 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
9555 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
9556 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
9557 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
9558 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
9559 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
9560 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
9561 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
9562 Revert "Basic block renumbering removal", and two followup patches.
9564 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
9566 * lcm.c (optimize_mode_switching): Revert previous change.
9568 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9570 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
9571 with only extant block numbers.
9573 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
9575 * lcm.c (optimize_mode_switching): Fix typo.
9577 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9579 * flow.c (calculate_global_regs_live): Queue blocks in program order.
9581 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9583 * doc/install.texi (Configuration): Document PWDCMD.
9585 2002-05-16 Dale Johannesen <dalej@apple.com>
9587 * combine.c (cant_combine_insn_p): Reenable combinations
9588 involving hard regs unless CLASS_LIKELY_SPILLED_P.
9590 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9592 * c-common.c (cb_register_builtins): Handle more built-ins
9593 here rather than in gcc.c specs.
9594 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
9595 (cpp_options): Pass -O flags even when only preprocessing.
9596 * toplev.c (set_fast_math_flags): New prototype.
9597 (fast_math_flags_set_p): New.
9598 (set_no_fast_math_flags): Remove.
9599 (decode_f_option): Update.
9600 * toplev.h (set_fast_math_flags): Update.
9601 (fast_math_flags_set_p): New.
9602 (set_no_fast_math_flags): Remove.
9604 * c4x/c4x.c (c4x_override_options): Update.
9606 2002-05-16 Zack Weinberg <zack@codesourcery.com>
9608 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
9609 Default-define here.
9610 (builtin_define_with_value): Can now wrap the expansion in
9611 quotation marks if such is wanted.
9612 (cb_register_builtins): Update calls to builtin_define_with_value.
9613 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
9615 (c_common_init): Set options->stdc_0_in_system_headers.
9616 * c-lex.h: Update prototype of builtin_define_with_value.
9617 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
9618 and REGISTER_PREFIX.
9620 * cppinit.c (VERS, ULP, C, X): Kill.
9621 (builtin_array): Remove entries for __VERSION__,
9622 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
9623 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
9625 (init_builtins): Kill off a bunch of now-dead code.
9626 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
9627 -fno-leading-underscore.
9628 (cpp_handle_option): Remove code to set user_label_prefix.
9629 (cpp_post_options): Likewise.
9631 * cpplib.h (struct cpp_options): Remove user_label_prefix.
9632 (stdc_0_in_system_headers): New.
9633 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
9634 stdc_0_in_system_headers) too to decide the value of __STDC__.
9636 * tradcpp.c (user_label_prefix): Kill.
9637 (main): Remove code handling -f(no-)leading-underscore.
9638 (initialize_builtins): Don't define __REGISTER_PREFIX__
9639 or __USER_LABEL_PREFIX__.
9640 (install_value): Wrap compound statement in dummy loop so the
9641 macro works properly in an if statement.
9644 2002-05-16 Janis Johnson <janis187@us.ibm.com>
9646 * loop.h (struct loop_info): Add member has_prefetch.
9647 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
9648 (prescan_loop): Initialize has_prefetch.
9649 (struct prefetch_info): Change prefetch_in_loop and
9650 prefetch_before_loop from bit fields to ints.
9651 (emit_prefetch_instructions): Several small fixes.
9652 (check_dbra_loop): Don't reverse loop that uses prefetch.
9654 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9656 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
9657 * configure.in: Likewise.
9658 * fixinc/check.tpl: Likewise.
9659 * fixinc/fixinc.dgux: Likewise.
9660 * fixinc/fixinc.svr4: Likewise.
9661 * fixinc/fixinc.winnt: Likewise.
9662 * fixinc/fixincl.sh: Likewise.
9663 * fixproto: Likewise.
9664 * configure: Regenerate.
9666 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9668 Basic block renumbering removal:
9669 * basic_block.h (struct basic_block_def): Renamed index to sindex,
9670 added prev_bb and next_bb fields.
9671 (n_basic_blocks): Renamed to num_basic_blocks.
9672 (last_basic_block): New, index of last basic block.
9673 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
9674 traversing basic block chain.
9675 (BLOCK_NUM): index -> sindex.
9676 (create_basic_block_structure, create_basic_block): Declaration changed.
9677 (debug_num2bb): Declare.
9678 (expunge_block_nocompact): Declaration removed.
9679 (link_block, unlink_block, compact_blocks): Declare.
9680 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
9681 * cfg.c (entry_exit_blocks): Initialize new fields.
9682 (clear_edges, alloc_block, expunge_block, cached_make_edge,
9683 redirect_edge_pred, dump_flow_info, dump_edge_info,
9684 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
9685 free_aux_for_edges): Modified.
9686 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
9687 (expunge_block_nocompact): Removed.
9688 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
9689 find_unreachable_blocks, create_edge_list, print_edge_list,
9690 verify_edge_list, flow_edge_list_print, remove_fake_successors,
9691 remove_fake_edges, flow_reverse_top_sort_order_compute,
9692 flow_depth_first_order_compute, flow_preorder_transversal_compute,
9693 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
9694 flow_dfs_compute_reverse_execute): Modified.
9695 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
9696 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
9698 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
9699 merge_blocks_move_predecessor_nojumps,
9700 merge_blocks_move_successor_nojumps, merge_blocks,
9701 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
9702 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
9703 * cfglayout.c (skip_insns_after_block, label_for_bb,
9704 record_effective_endpoints, scope_to_insns_finalize,
9705 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
9706 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
9707 cfg_layout_duplicate_bb): Modified.
9708 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
9709 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
9710 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
9711 flow_loops_find, flow_loop_outside_edge_p): Modified.
9712 * cfgrtl.c (create_basic_block_structure, create_basic_block,
9713 flow_delete_block, compute_bb_for_insn, split_block,
9714 try_redirect_by_replacing_jump, redirect_edge_and_branch,
9715 force_nonfallthru_and_redirect, tidy_fallthru_edge,
9716 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
9717 commit_edge_insertions, commit_edge_insertions_watch_calls,
9718 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
9719 purge_all_dead_edges): Modified.
9720 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
9721 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
9722 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
9724 * conflict.c (conflict_graph_compute): Modified.
9725 * df.c (FOR_ALL_BBS): Removed.
9726 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
9727 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
9728 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
9729 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
9730 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
9731 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
9732 * final.c (compute_alignments, final_scan_insn): Modified.
9733 * flow.c (verify_local_live_at_start, update_life_info,
9734 update_life_info_in_dirty_blocks, free_basic_block_vars,
9735 delete_noop_moves, calculate_global_regs_live,
9736 initialize_uninitialized_subregs, allocate_bb_life_data,
9737 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
9738 mark_used_reg, count_or_remove_death_notes): Modified.
9739 * function.c (thread_prologue_and_epilogue_insns): Modified.
9740 * gcse.c (struct null_pointer_info): Change typo of current_block
9742 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
9743 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
9744 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
9745 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
9746 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
9747 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
9748 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
9749 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
9750 pre_delete, one_pre_gcse_pass, compute_transpout,
9751 invalidate_nonnull_info, delete_null_pointer_checks_1,
9752 free_code_hoist_mem, compute_code_hoist_vbeinout,
9753 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
9754 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
9755 compute_store_table, build_store_vectors, insert_insn_start_bb,
9756 insert_store, replace_store_insn, free_store_memory, store_motion):
9758 * global.c (global_alloc, global_conflicts, mark_elimination,
9759 build_insn_chain): Modified.
9760 * graph.c (print_rtl_graph_with_bb): Modified.
9761 * haifa-sched.c (sched_init): Modified.
9762 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
9763 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
9764 if_convert): Modified.
9765 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
9766 compute_insert_delete, pre_edge_lcm, compute_available,
9767 compute_farthest, compute_nearerout, compute_rev_insert_delete,
9768 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
9770 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
9771 * loop.c (loop_dump_aux): Modified.
9772 * predict.c (combine_predictions_for_insn, estimate_probability,
9773 last_basic_block_p, process_note_prediction, process_note_predictions,
9774 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
9775 expensive_function_p, estimate_bb_frequencies,
9776 compute_function_frequency): Modified.
9777 * print-rtl.c (print_rtx): Modified.
9778 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
9779 get_exec_counts, compute_branch_probabilities, compute_checksum,
9780 branch_prob, find_spanning_tree): Modified.
9781 * recog.c (split_all_insns, peephole2_optimize): Modified.
9782 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
9783 convert_regs_1, convert_regs_2, convert_regs): Modified.
9784 * regclass.c (scan_one_insn, regclass): Modified.
9785 * regmove.c (mark_flags_life_zones, regmove_optimize,
9786 combine_stack_adjustments): Modified.
9787 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
9788 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
9789 * reorg.c (dbr_schedule): Modified.
9790 * resource.c (find_basic_block, init_resource_info): Modified.
9791 * sbitmap.c (sbitmap_intersection_of_succs,
9792 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
9793 sbitmap_union_of_preds): Modified.
9794 * sched-deps.c (init_dependency_caches): Modified.
9795 * sched-ebb.c (schedule_ebbs): Modified.
9796 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
9797 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
9798 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
9799 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
9800 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
9801 ssa_const_prop): Modified.
9802 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
9803 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
9804 * ssa.c (remove_phi_alternative, find_evaluations,
9805 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
9806 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
9807 make_regs_equivalent_over_bad_edges,
9808 make_equivalent_phi_alternatives_equival,
9809 compute_conservative_reg_partition,
9810 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
9811 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
9814 2002-05-16 Mark Mitchell <mark@codesourcery.com>
9816 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
9818 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
9820 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
9821 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
9822 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
9823 calling CONSTANT_POOL_ADDRESS_P.
9824 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
9825 to decide whether to define __arm__ or __thumb.
9826 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
9827 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
9829 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9831 * config/arc/arc.h (CPP_PREDEFINES): Remove.
9833 (TARGET_CPU_CPP_BUILTINS): New.
9835 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9837 * cpphash.h (cpp_macro): Move here, and make expansion a union.
9838 * cppmacro.c (cpp_macro): Remove.
9839 (enter_macro_context, replace_args, warn_of_redefinition,
9840 _cpp_create_definition, cpp_macro_definition): Update.
9842 2002-05-16 Jason Merrill <jason@redhat.com>
9844 * config/mips/mips.c (mips_output_external): Don't do sdata
9845 optimization for a variable with DECL_COMDAT set.
9847 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9849 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
9850 Cleanups for accepting modifiers on pointers.
9851 Fix predicate typos.
9852 Allow long pointers as well as int pointers.
9854 2002-05-15 Richard Henderson <rth@redhat.com>
9856 * varasm.c (merge_weak): Remove special case for extern and common.
9858 2002-05-15 Matt Hiller <hiller@redhat.com>
9860 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
9862 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
9863 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
9864 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
9865 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
9866 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
9867 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
9869 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9871 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
9873 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
9875 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
9876 ("altivec_mfvscr"): Read from VSCR.
9878 Add vscr sets for the following insns: altivec_vctuxs,
9879 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
9880 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
9881 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
9882 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
9883 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
9884 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
9885 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
9886 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
9887 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
9888 altivec_vsum2sws, altivec_vsumsws.
9890 * config/rs6000/rs6000.h: Add VSCR fixed register.
9891 (CALL_REALLY_USED_REGISTERS): Add vscr.
9892 (CALL_USED_REGISTERS): Same.
9893 (FIXED_REGISTERS): Same.
9894 (REG_ALLOC_ORDER): Same.
9895 (reg_class): Add VSCR_REGS.
9896 (REG_CLASS_NAMES): Same.
9897 (REG_CLASS_CONTENTS): Same.
9899 (REGISTER_NAMES): Add vscr.
9900 (DEBUG_REGISTER_NAMES): Same.
9901 (ADDITIONAL_REGISTER_NAMES): Same.
9902 (FIRST_PSEUDO_REGISTER): Increment.
9903 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
9905 2002-05-15 Jakub Jelinek <jakub@redhat.com>
9907 * fold-const.c (fold): Fix a typo.
9909 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
9911 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
9912 comparison against the highest or lowest integer value before
9913 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
9914 transformation and that of an unsigned comparison against 0
9917 2002-05-15 Richard Henderson <rth@redhat.com>
9919 * varasm.c (merge_weak): Error for any weakening after definition.
9920 Adjust weakening after use warning to catch more cases.
9921 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
9922 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
9924 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
9926 * invoke.texi (-malign-double): Re-add lost warning.
9928 * i386-protos.h (x86_output_mi_thunk): Declare.
9929 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
9930 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
9932 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
9933 when flag_asynchronous_unwind_tables is set.
9935 * flags.h (flag_reorder_functions): Declare.
9936 * function.c (prepare_function_start): Initialize frequnecy.
9937 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
9938 * Makefile.in (predict.o): Add dependency on target.h and params.h
9939 * defaults.h (HOT_TEXT_SECTION_NAME,
9940 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
9941 * predict.c (choose_function_section): New function.
9942 (estimate_bb_frequencies): Use it.
9943 * toplev.c (flag_reorder_functions): New global variable.
9944 (lang_independent_options): New.
9945 (parse_options_and_default_flags): Set.
9946 * varasm.c (assemble_start_function): Bypass functdion alignment
9947 for never executed functions.
9948 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
9949 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
9950 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
9953 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
9955 * predict.c: Inlude profile.h
9956 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
9957 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
9958 Use the information about maximal counter in the program.
9960 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
9962 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
9963 probably_never_executed_bb_p): New functions.
9964 * cfgcleanup.c (outgoing_edges_match): Use them.
9965 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
9966 (maybe_hot_bb_p, probably_cold_bb_p,
9967 probably_never_executed_bb_p): New functions.
9969 * function.h (function): Add new field function_frequency.
9970 * predict.c (compute_function_frequency): New function.
9971 (estimate_probability): Call it.
9973 2002-03-09 Jakub Jelinek <jakub@redhat.com>
9975 PR optimization/5172, optimization/5200
9976 * gcse.c (gcse_main): Disable store_motion.
9978 2002-05-14 Zack Weinberg <zack@codesourcery.com>
9980 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
9981 (c_common_nodes_and_builtins): Use it.
9982 (builtin_define_with_value): New function.
9983 (cb_register_builtins): Define __SIZE_TYPE__,
9984 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
9985 using builtin_define_with_value. Use consistent notation when
9986 defining __GXX_WEAK__.
9987 (WCHAR_TYPE_SIZE): Don't redefine.
9988 (combine_strings): Don't use WCHAR_TYPE_SIZE.
9990 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
9991 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
9992 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
9993 * tradcpp.c (initialize_builtins): Likewise.
9994 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
9996 * c-lex.h (builtin_define_with_value): Prototype.
9997 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
9998 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
9999 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
10001 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
10002 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
10003 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
10004 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
10005 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
10006 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
10007 config/sparc/sol2-bi.h, config/sparc/sparc.h:
10008 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
10009 to __SIZE_TYPE__ etc from all spec strings. When this makes
10010 extra specs empty, delete them.
10012 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
10014 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
10015 for PA8000 or generating dwarf2 call frame information.
10016 (output_call): Remove DO_FRAME_NOTES check from return pointer
10018 (following_call): Return 0 when scheduling for PA8000 or generating
10019 dwarf2 call frame information. Revise comment.
10021 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
10024 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
10025 and __IEEE_FP_INEXACT as appropriate.
10026 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
10027 (CPP_SPEC): Remove ieee defines.
10028 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
10030 2002-05-14 Richard Henderson <rth@redhat.com>
10032 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
10033 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
10035 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
10037 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
10038 (CPP_SPEC): Update.
10039 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
10040 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
10041 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
10042 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
10043 (EXTRA_SPECS): Update.
10044 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
10045 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
10046 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
10047 define TARGET_OS_CPP_BUILTINS if necessary.
10049 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
10051 * gcc.c (cpp_options): Must pass -m* and -f* options
10052 to the front end even when only preprocessing.
10053 (cc1_options): Remove redundant -lang-c.
10054 * tradcpp.c (main): Ignore -m options.
10056 * lang-specs.h: Similarly.
10058 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
10060 * genautomata.c (transform_3): Add code for transformation
10061 `(A,B,...)+C -> A+C,B,...'.
10063 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
10065 * final.c (end_final): Do not output profile_arcs constructor, when
10066 no functions are instrumented.
10068 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
10070 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
10072 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10074 * doc/install.texi: Remove special markup originally required for
10075 HTML generation with texi2html.
10077 2002-05-14 Andreas Schwab <schwab@suse.de>
10079 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
10081 (UNIQUE_SECTION): Define to get small data correctly.
10083 * varasm.c (resolve_unique_section): Add third parameter
10084 flag_function_or_data_sections and use it instead of
10085 flag_function_sections.
10086 (assemble_start_function): Pass flag_function_sections.
10087 (asm_emit_uninitialised): Pass flag_data_sections.
10088 (assemble_variable): Likewise.
10090 2002-05-14 Richard Henderson <rth@redhat.com>
10092 * config/i386/i386.md: Use define_constants for unspec numbers.
10093 * config/i386/i386.c: Likewise.
10095 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
10097 * doc/contrib.texi: Update my entry.
10099 2002-05-13 Mark Mitchell <mark@codesourcery.com>
10101 * fixinc/inclhack.def (winidss_valist): Limit applicability.
10102 * fixinc/fixincl.x: Regenerated.
10103 * fixinc/tests/base/math.h: Update.
10104 * fixinc/tests/base/testing.h: Likewise.
10106 2002-05-13 Zack Weinberg <zack@codesourcery.com>
10108 * genattr.c (gen_attr): Don't emit a comma after the last
10111 2002-05-13 Richard Henderson <rth@redhat.com>
10113 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
10114 by non-local gotos.
10115 * recog.c (peephole2_optimize): Likewise.
10117 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
10119 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
10122 2002-05-13 Jeffrey A Law (law@redhat.com)
10124 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
10125 Update prototype and callers.
10126 (propagate_one_insn): Stack pointer adjustments kill MEMs on
10127 the mem_set_list which reference the stack pointer, as do
10128 calls to constant functions as they may clobber outgoing
10131 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
10133 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
10134 (ia32_multipass_dfa_lookahead): New function.
10136 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
10138 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
10139 (translate_options): Remove 'V'.
10140 (process_command): Similarly.
10142 * invoke.texi: Remove documentation of 'V'.
10144 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
10146 * config/s390/linux.h: Revert 2002-04-22 changes.
10148 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
10150 * config/fr30/fr30.md: Only allow splits of immediate loads
10151 if the destination is a register.
10153 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
10155 * Makefile.in (c-common.o, cppinit.o): Update.
10156 * c-common.c: Include except.h.
10157 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
10158 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
10159 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
10160 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
10161 CPP_PREDEFINES): Handle here.
10163 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
10164 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
10165 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
10166 TARGET_OS_CPP_BUILTINS.
10167 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
10168 (CPP_SPEC, EXTRA_SPECS): Update.
10169 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
10170 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
10171 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
10172 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
10173 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
10175 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
10176 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
10178 2002-05-12 Zack Weinberg <zack@codesourcery.com>
10180 * emit-rtl.c (global_rtl): Update comment.
10181 (const_double_htab, const_double_htab_hash,
10182 const_double_htab_hash, lookup_const_double): New.
10183 (const_int_htab_hash, const_int_htab_eq): Remove const
10184 qualifiers, which cause tons of warnings with RTL checking on.
10185 (gen_rtx_CONST_DOUBLE): Deleted.
10186 (const_double_from_real_value): New function - bears some
10187 resemblance to the former immed_real_const_1.
10188 (immed_double_const): Moved here from varasm.c and
10190 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
10191 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
10192 (gen_rtx): Use immed_double_const.
10193 (init_emit_once): Initialize the const_double_htab. Use
10194 REAL_VALUE_FROM_INT where possible. Can now use
10195 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
10196 * varasm.c (struct varasm_status): Remove x_const_double_chain.
10197 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
10198 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
10199 (init_varasm_status, mark_varasm_status): Don't touch
10200 x_const_double_chain.
10202 * output.h: Delete prototype for clear_const_double_mem.
10203 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
10204 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
10205 const_double_from_real_value, not immed_real_const_1, and use
10206 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
10208 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
10209 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
10210 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
10211 (gen_rtx_REG): Second arg is unsigned.
10213 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
10214 (excluded_rtx): New, return true for CONST_DOUBLE.
10215 (genmacro): Write nothing for excluded codes.
10216 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
10217 * expr.c (expand_expr): Likewise.
10218 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
10219 CONST_DOUBLE_CHAIN.
10220 * toplev.c (rest_of_compilation): Don't call
10221 clear_const_double_mem.
10223 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
10224 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
10225 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
10226 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
10227 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
10228 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
10229 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
10230 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
10232 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10234 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
10236 2002-05-12 Tom Tromey <tromey@redhat.com>
10238 * tree.h (copy_node): Don't mention TREE_PERMANENT.
10240 2002-05-12 Zack Weinberg <zack@codesourcery.com>
10242 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
10243 (scan_comma_elt): New function. Accepts whitespace in comma lists.
10244 * gensupport.h: Prototype new routines.
10245 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
10247 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
10248 (next_comma_elt): Use scan_comma_elt.
10250 * config/i386/i386.md: Use new attribute notation to break up
10251 long lines in define_attr forms.
10253 2002-05-12 Richard Henderson <rth@redhat.com>
10255 * expr.c (compress_float_constant): New.
10256 (emit_move_insn): Use it.
10257 (float_extend_from_mem): New.
10258 (init_expr_once): Initialize it.
10259 * real.c (exact_real_truncate): New.
10261 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
10262 dropped into memory; penalize for size.
10263 (RTX_COSTS): FLOAT_EXTEND is free.
10264 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
10265 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
10267 2002-05-12 Richard Henderson <rth@redhat.com>
10269 * profile.h (profile_info): Add missing extern to declaration.
10270 * profile.c (profile_info): Define it.
10272 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10274 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
10275 used for DImode and TImode.
10277 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
10279 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
10282 2002-05-11 Zack Weinberg <zack@codesourcery.com>
10284 * config/rs6000/rs6000.c (rs6000_default_long_calls,
10285 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
10286 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
10287 (rs6000_override_options): Handle -m(no-)longcall.
10288 (init_cumulative_args, output_mi_thunk): Check for both
10289 longcall and shortcall attributes on the function.
10290 (rs6000_attribute_table): Add "shortcall".
10291 (rs6000_handle_longcall_attribute): Update comment.
10292 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
10293 altivec_expand_ternop_builtin): Add default clauses to switches
10294 to silence warnings.
10296 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
10297 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
10298 (TARGET_OPTIONS): Add longcall and no-longcall.
10300 * config/rs6000/rs6000.md (call_nonlocal_sysv,
10301 call_value_nonlocal_sysv): Split by alternatives. One pair
10302 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
10303 the call cookie. The other pair accepts only LR/CTR and has
10306 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
10307 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
10309 * config/rs6000/rs6000-c.c: New file.
10310 * config/rs6000/t-rs6000-c-rule: New file.
10311 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
10312 Prototype rs6000_pragma_longcall.
10314 * doc/extend.texi: Document shortcall attribute.
10315 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
10317 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10319 * reorg.c (dbr_schedule): Remove unnecessary test.
10321 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
10323 * i386.md (testsi to testqi spliters): New.
10325 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
10327 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
10329 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
10331 * basic-block.h: New flag EDGE_CAN_FALLTHRU
10332 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
10333 that can be made fallthru.
10335 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
10337 * cfglayout.c (cleanup_unconditional_jumps): New static function.
10338 (cfg_layout_initialize): Use it.
10340 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
10342 * config/avr/avr.c (avr_mcu_types): Update supported devices.
10343 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10344 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10346 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
10348 * dbxout.c: Fix formatting.
10349 * dependence.c: Likewise.
10351 * diagnostic.c: Likewise.
10352 * doloop.c: Likewise.
10353 * dominance.c: Likewise.
10354 * doschk.c: Likewise.
10355 * dwarf2asm.c: Likewise.
10356 * dwarf2out.c: Likewise.
10357 * dwarfout.c: Likewise.
10359 2002-05-10 Richard Henderson <rth@redhat.com>
10361 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
10362 Convert integers constants as needed. Replace "nwords" field with
10364 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
10365 * function.h: Fix typo in comment.
10366 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
10368 2002-05-10 Roger Sayle <roger@eyesopen.com>
10370 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
10371 into the equivalent (signed char)c > 0.
10373 2002-05-10 Janis Johnson <janis187@us.ibm.com>
10375 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
10376 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
10377 (struct prefetch_info): Fix spelling of member bytes_accessed.
10378 (emit_prefetch_instructions): Make dump messages more regular;
10379 restructure code to add more dump messages; use new macros for
10380 heuristics. (There are no code generation changes in any of this).
10382 2002-05-10 David S. Miller <davem@redhat.com>
10384 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
10385 (struct rtx_def): Update unchanging flag comment.
10386 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
10387 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
10388 to be handled to INSN too.
10389 (dbr_schedule): Likewise.
10390 * resource.c (next_insn_no_annul): Likewise.
10392 * cse.c (rtx_cost): Remove multiplication by power of 2 special
10395 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10397 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
10398 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
10399 (possibly) work around broken /bin/sh.
10401 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10403 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
10404 . as N64/N32 libgcc_s.so subdirs.
10406 2002-05-10 David S. Miller <davem@redhat.com>
10408 * config/sparc/sparc.md: Use define_constants for unspec numbers.
10410 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
10412 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
10414 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
10415 * doc/rtl.texi: Document these macros more accurately.
10416 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
10417 JUMP_INSNs and CALL_INSNs.
10418 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
10419 or INSN_FROM_TARGET_P if the code is appropriate.
10421 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
10423 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
10424 before using SYMBOL_REF_FLAG (addr).
10426 * config/avr/avr-protos.h (avr_io_address_p): Declare.
10427 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
10428 Make non-static. Update all callers.
10429 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
10430 New insns to clear/set/test a single bit in I/O address space.
10432 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10434 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
10436 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10438 * Makefile.in: Update.
10439 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
10440 builtin_define_std): New.
10441 (c_common_init): Register CPP builtins callback.
10442 * c-common.h (flag_iso, flag_undef): New.
10443 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
10444 * c-lex.c: Don't include target.h.
10445 (cb_register_builtins): Move to c-common.c.
10446 (init_c_lex): Don't register hook here.
10447 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
10448 (cpp_define, cpp_assert): Remove.
10449 * gcc.c (cc1_options): Pass -undef to front end.
10450 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
10451 (TARGET_INITIALIZER): Update.
10452 * target.h (struct cpp_reader): Don't predeclare.
10453 (struct gcc_target): Remove cpp builtin hook.
10454 * tree.c (default_register_cpp_builtins): Remove.
10458 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10460 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
10462 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10464 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
10465 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
10467 2002-05-09 Jakub Jelinek <jakub@redhat.com>
10469 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
10470 * config/sparc/libgcc-sparc-glibc.ver: New file.
10471 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
10472 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
10474 2002-05-09 Jakub Jelinek <jakub@redhat.com>
10477 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
10478 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
10479 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
10481 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
10482 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
10483 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
10484 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
10486 2002-05-09 Richard Henderson <rth@redhat.com>
10488 * config/ia64/ia64.md: Use define_constants for unspec numbers.
10489 * config/ia64/ia64.c: Likewise.
10491 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
10493 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
10494 (save_restore_insns): Likewise.
10495 (mips_expand_prologue, mips_expand_epilogue): Update callers.
10496 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
10498 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
10500 * athlon.md, k6.md, pentium.md, ppro.md): New files.
10501 * i386.md: Move scheduling information into new files.
10503 * i386.md (type attribute): Add "rotate" for rotate insns.
10504 (rotate insns): Set type to "rotate".
10505 (various attributes and function units): Treat rotate like shift.
10506 (pent_pair attribute): Only rotates by one bit position are
10508 (sbb insns): Explicitly set pent_pair attribute on a couple
10509 that were missing it.
10511 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
10513 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
10514 make sure that buffer starts on odd word address.
10515 (sh_va_arg): Skip odd fp registers when reading a double precision
10518 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10520 * tree.h (preserve_data, object_permanent_p, type_precision):
10523 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10525 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
10526 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
10528 * cpp.texi: Update for removal of obsolete features.
10530 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
10531 Jeffrey A Law (law@redhat.com)
10533 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
10534 the DFA interface for Pentium processors.
10535 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
10536 (attr_pent_pair, ix86_pent_find_pair): Remove.
10537 (ix86_sched_reorder_pentium): Remove.
10538 (ix86_sched_reorder): Remove reordering for Pentium.
10539 * i386.md (Pentium scheduling): Rewrite using DFA description.
10541 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
10543 * cfganal.c (can_fallthru): Fix fast path.
10544 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
10545 with edges to the next block.
10547 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
10548 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
10550 * final.c (end_final): Use C trees to output data structures for profiling.
10552 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
10553 (profile.o): New dependency profile.h
10554 (final.o): New dependency profile.h
10555 * profile.h: New file. New global structure profile_info.
10556 * final.h (count_edges_instrumented_now): Declare.
10557 (current_function_cfg_checksum): Declare.
10558 (function_list): New structure.
10559 (functions_head, functions_tail): New static variables.
10560 (end_final): Emits more data, removed some -ax stuff.
10561 (final): Stores function names and chcksums.
10562 * gcov-io.h (__write_gcov_string): New function.
10563 (__read_gcov_string): New function.
10564 * gcov.c (read_profile): New function.
10565 (create_program_flow_graph): Uses read_profile instead of reading
10567 (read_files): Removed da_file checking, it's done by read_profile now.
10568 * libgcc2.c (bb_function_info): New structure.
10569 (bb): New field in structure, removed some -ax stuff.
10570 (__bb_exit_func): Changed structure of da_file.
10571 * profile.c (count_edges_instrumented_now): New global variable.
10572 (current_function_cfg_checksum): New global variable.
10573 (max_counter_in_program): New global variable.
10574 (get_exec_counts): New function.
10575 (compute_checksum): New function.
10576 (instrument_edges): Sets count_edges_instrumented_now.
10577 (compute_branch_probabilities): Uses get_exec_counts instead of
10579 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
10580 (init_branch_prob): Removed da_file checking, done in get_exec_counts
10582 (end_branch_prob): Removed da_file checking, done in get_exec_counts
10584 * gcov.texi: Updated information about gcov file format.
10586 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
10588 * sbitmap.c: Fix formatting.
10589 * scan.c: Likewise.
10590 * scan-decls.c: Likewise.
10591 * sched-deps.c: Likewise.
10592 * sched-ebb.c: Likewise.
10593 * sched-rgn.c: Likewise.
10594 * sched-vis.c: Likewise.
10595 * sdbout.c: Likewise.
10596 * sibcall.c: Likewise.
10597 * simplify-rtx.c: Likewise.
10599 * ssa-ccp.c: Likewise.
10600 * ssa-dce.c: Likewise.
10601 * stmt.c: Likewise.
10602 * stor-layout.c: Likewise.
10603 * stringpool.c: Likewise.
10605 2002-05-09 David S. Miller <davem@redhat.com>
10607 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
10609 2002-05-07 David S. Miller <davem@redhat.com>
10611 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
10612 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
10613 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
10614 library implementation clobbers the output before the inputs
10615 are fully consumed, use stack temporary for the output.
10617 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
10619 * config/netbsd.h (CPP_SPEC): Remove.
10620 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
10621 * config/i386/netbsd.h (CPP_SPEC): Define.
10622 * config/ns32k/netbsd.h (CPP_SPEC): Define.
10623 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
10624 * config/sparc/netbsd.h (CPP_SPEC): Define.
10625 * config/vax/netbsd.h (CPP_SPEC): Define.
10627 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
10629 * read-rtl.c: Fix formatting.
10630 * real.c: Likewise.
10631 * recog.c: Likewise.
10632 * regclass.c: Likewise.
10633 * regmove.c: Likewise.
10634 * reg-stack.c: Likewise.
10635 * reload1.c: Likewise.
10636 * reload.c: Likewise.
10637 * resource.c: Likewise.
10638 * rtlanal.c: Likewise.
10640 * rtl-error.c: Likewise.
10642 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10644 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
10645 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
10647 2002-05-08 Bernd Schmidt <bernds@redhat.com>
10649 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
10650 use __SSE2__ macro instead.
10651 * config/i386/xmmintrin.h: Likewise.
10653 2002-05-08 Janis Johnson <janis187@us.ibm.com>
10655 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
10656 and use it in all invocations of these macros. Clean up comments.
10657 * rtl.c (rtl_check_failed_flag): Add an argument for the name
10658 of the flag access macro whose check failed.
10659 * doc/rtl.texi (Flags): Document additional flag uses.
10661 2002-05-08 Robert Spier <rspier@pobox.com>
10662 Neil Booth <neil@daikokuya.demon.co.uk>
10664 PR preprocessor/6521
10665 * cppfiles.c (handle_missing_header): Don't do anything
10666 different for <> includes.
10668 * cppopts.texi: Update documentation for -MG.
10670 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
10672 * cpplex.c (cpp_interpret_charconst): Truncate as well as
10675 * cpp.texi: Clarify multichar charconst valuation.
10677 2002-05-08 Mark Mitchell <mark@codesourcery.com>
10679 * doc/invoke.texi: Document -mwindiss option.
10681 2002-05-08 Jason Merrill <jason@redhat.com>
10683 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
10685 * dwarf2out.c (gen_type_die): Abort on broken recursion.
10688 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
10691 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
10693 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
10694 little-endian multilibs to override arm/thumb multilibs.
10695 Do not build hardware floating point multilibs, nor apcs-26
10696 multilibs for the Thumb.
10698 2002-05-08 Mark Mitchell <mark@codesourcery.com>
10701 * varasm.c (mark_weak): New function.
10702 (merge_weak): Use it. Do not call declare_weak.
10703 (declare_weak): Use merge_weak.
10705 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
10707 * cse.c (dead_libcall_p): Update counts.
10708 (delete_trivially_dead_insns): Update call of dead_libcall_p.
10710 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
10712 * cfglayout.c (function_tail_eff_head): Rename to ...
10713 (function_footer): ... this one.
10714 (unlink_insn_chain): New functions.
10715 (label_for_bb): Only call block_label and emit debug message.
10716 (record_effective_endpoints): Actually unlink the headers and footers.
10717 (fixup_reorder_cahin): Re-insert the unlinked sequences.
10718 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
10719 * cfglayout.h (struct reorder_block_def): New fields footer/header;
10720 remove eff_head/eff_end.
10721 * rtl.h (set_first_insn): Declare.
10722 * emit-rtl.c (set_first_insn): New function.
10724 * cfglayout.c (fixup_reorder_chain): Dump duplicated
10725 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
10726 cfg_layout_duplicate_bb): New global function.
10727 (duplicate_insn_chain): New static function.
10728 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
10729 cfg_layout_duplicate_bb): Declare.
10730 (struct reorder_block_def): Add "original" field.
10731 * emit-rtl.c (emit_copy_of_insn_after): New function.
10732 * rtl.h (emit_copy_of_insn_after): Declare.
10734 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
10735 (fixup_reorder_chain): properly handle edges to exit block.
10737 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10738 Jan Hubicka <jh@suse.cz>
10740 * basic-block.h (note_prediction_to_br_prob): declare.
10741 * c-semantics.c: Inlucde predit.h
10742 (expand_stmt): predict GOTO_STMT as not taken.
10743 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
10744 (cleanup_cfg): Do not free tail_recursion_list.
10745 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
10746 (flow_delete_block): Kill predictions past end of basic block.
10747 * output.h (delete_unreachable_blocks): Declare.
10748 * predict.c (predicted_by_p, process_note_predictions,
10749 process_note_prediction, last_block_p): New function.
10750 (estimate_probability): Bypass loop on PRED_CONTINUE;
10751 do not handle noreturn heuristics; kill PRED_RETURN; add
10753 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
10754 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
10755 * predict.h (IS_TAKEN): New constant.
10756 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
10757 * rtl.c (NOTE_INSN_PREDICTION): New.
10758 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
10760 (insn_note): add NOTE_INSN_PREDICTION.
10761 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
10762 CFG; free tail_recursion_label_list.
10763 * stmt.c: Include predict.h;
10764 (return_prediction): New.
10765 (expand_value_return): Use it.
10766 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
10768 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
10770 * config/mips/mips.md: Name the unspecs with define_constant.
10771 (*HILO_delay): Rename to 'hilo_delay' (no star).
10772 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
10773 (reload_outdi, reload_outsi): Likewise.
10775 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
10777 * toplev.c: Fix formatting.
10779 2002-05-07 Janis Johnson <janis187@us.ibm.com>
10781 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
10782 * configure.in (ac_rtlflag_checking): New.
10783 * doc/install.texi (--enable-checking): Document RTL flag checking.
10785 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
10787 * c-common.c (c_common_init): Set options->unsigned_wchar.
10788 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
10789 group target dependencies.
10790 (init_builtins, cpp_handle_option): Update.
10791 * cpplex.c (cpp_interpret_charconst): Update.
10792 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
10793 signed_char to unsigned_char, group target dependencies.
10794 * defaults.h (WCHAR_UNSIGNED): Remove.
10795 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
10797 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
10798 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
10799 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
10800 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
10801 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
10803 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
10805 2002-05-07 Mark Mitchell <mark@codesourcery.com>
10807 * fixinc/inclhack.def (windiss_math1): New fix.
10808 (windiss_math2): Likewise.
10809 (windiss_valist): Likewise.
10810 * fixinc/fixincl.x: Regenerated.
10812 2002-05-07 Andreas Jaeger <aj@suse.de>
10814 * genautomata.c (output_internal_min_issue_delay_func): Add
10815 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
10816 (output_internal_trans_func): Likewise.
10818 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
10820 * pa.c (hppa_profile_hook): Use force_reg to get the address
10821 of the profile hook into an appropriate pseudo register.
10823 2002-05-07 Mark Mitchell <mark@codesourcery.com>
10825 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
10826 (LINK_START_SPEC): Handle it.
10827 (LINK_OS_SPEC): Likewise.
10828 (CPP_SPEC): Likewise.
10829 (STARTFILE_SPEC): Likewise.
10830 (LIB_SPEC): Likewise.
10831 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
10833 (CRTSAVRES_DEFAULT_SPEC): New macro.
10834 (LIB_WINDISS_SPEC): New macro.
10835 (CPP_OS_WINDISS_SPEC): Likewise.
10836 (STARTFILE_WINDISS_SPEC): Likewise.
10837 (ENDFILE_WINDISS_SPEC): Likewise.
10838 (LINK_START_WINDISS_SPEC): Likewise.
10839 (LINK_OS_WINDISS_SPEC): Likewise.
10840 * config/rs6000/windiss.h: New file.
10842 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
10844 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
10846 2002-05-06 David S. Miller <davem@redhat.com>
10848 * config/sparc/sparc.md (shift insns): Do not mask off
10849 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
10852 2002-05-06 Richard Henderson <rth@redhat.com>
10855 * expr.c (highest_pow2_factor_for_type): New.
10856 (expand_assignment): Use it.
10858 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
10860 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
10862 ("altivec_mfvscr"): Same.
10864 2002-05-06 Janis Johnson <janis187@us.ibm.com>
10866 * rtl.h (struct rtx_def): Update comments.
10867 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
10868 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
10869 RTL_FLAG_CHECK macros with list of expected RTL codes.
10870 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
10871 (rtl_check_failed_flag): New.
10872 * reload1.c (reload): Use REG macro before changing rtx to MEM.
10873 (reload_cse_noop_set_p): Check rtx code before using access macro.
10874 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
10875 before using access macro.
10877 2002-05-06 Janis Johnson <janis187@us.ibm.com>
10879 * doc/rtl.texi (Flags): Update to reflect current usage.
10881 2002-05-06 Roger Sayle <roger@eyesopen.com>
10884 * fold-const.c (sign_bit_p): New function.
10885 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
10886 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
10887 Reapply fold when converting (A & C) == C into (A & C) != 0.
10888 (fold_binary_op_with_conditional_arg): Fix typo in comment.
10890 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
10892 * c-common.c (warn_multichar): New.
10893 (c_common_init): Set CPP's warn_multichar.
10894 * c-common.h (warn_multichar): New.
10895 * c-decl.c (warn_multichar): Remove.
10896 * c-lex.c (lex_charconst): Update.
10897 * c-tree.h (warn_multichar): Remove.
10898 * cppexp.c (eval_token): Sign-extend charconst value.
10899 * cppinit.c (cpp_create_reader): Set warn_multichar.
10900 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
10901 each character. Update prototype. Sign-extend the result.
10902 * cpplib.h: Fix conditions.
10903 (struct cpp_options): Add new warning flag.
10904 (cpp_interpret_charconst): Update prototype.
10906 * cpp.texi: Update documentation.
10908 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
10910 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
10911 Fix typo in usage of allof instead of unit.
10913 2002-05-06 Richard Henderson <rth@redhat.com>
10915 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
10916 and any jump or call for IN.
10918 2002-05-06 Bernd Schmidt <bernds@redhat.com>
10920 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
10922 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
10924 2002-05-06 Roger Sayle <roger@eyesopen.com>
10926 * fold-const.c (lshift-double): Cast the high word to an unsigned
10927 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
10928 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
10929 avoid compiler warning. (fold): Remove redundant code from
10930 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
10932 2002-05-06 Jeff Law <law@redhat.com>
10934 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
10935 * pa.c (pa_adjust_cost): Remove all true dependency cost
10936 adjustments. Also remove support for non-DFA scheduling.
10937 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
10938 to adjust true dependency costs. Update various comments.
10939 (7100lc, 7200, 7300 scheduling): Simplify by combining the
10940 FP ALU & MPY units into a single unit.
10942 2002-05-06 Catherine Moore <clm@redhat.com>
10944 * config/v850/v850.c (compute_register_save_size): Make sure
10945 to count all of the registers that will be saved.
10947 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
10949 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
10951 2002-05-06 David S. Miller <davem@redhat.com>
10953 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
10954 allow result to overlap input operands in memory.
10956 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
10959 * cpp.texi: Update multichar charconst docs.
10961 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
10963 * cpplex.c (cpp_interpret_charconst): Sign-extend each
10964 character. Don't ignore excess characters. Treat
10965 multicharacter character constants as signed.
10966 (cpp_parse_escape): Clarify diagnostic.
10968 2002-05-05 Jakub Jelinek <jakub@redhat.com>
10970 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
10971 use add instead of shift.
10972 (ashldi3_sp64): Likewise.
10973 (ashlsi3_const1, ashldi3_const1): Remove.
10974 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
10975 * config/sparc/sparc.c (const1_operand): New.
10977 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
10979 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
10981 2002-05-05 Jakub Jelinek <jakub@redhat.com>
10984 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
10986 2002-05-05 Richard Henderson <rth@redhat.com>
10988 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
10989 memory latency adjustments.
10990 (alpha_variable_issue): Remove.
10991 (alpha_use_dfa_pipeline_interface): New.
10992 (alpha_multipass_dfa_lookahead): New.
10993 * config/alpha/alpha.md: Remove define_function_unit scheduling;
10994 include new dfa scheduling.
10995 (attr type): Add none.
10996 (blockage): Use it.
10997 * config/alpha/ev4.md: New.
10998 * config/alpha/ev5.md: New.
10999 * config/alpha/ev6.md: New.
11001 2002-05-05 David S. Miller <davem@redhat.com>
11003 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
11005 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
11007 * cse.c: Fix formatting.
11008 * emit-rtl.c: Likewise.
11010 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
11012 * genautomata.c (initiate_states): Add additional guard to
11013 initialize `units_array'.
11015 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
11017 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
11018 process_unit_to_form_the_same_automaton_unit_lists,
11019 form_the_same_automaton_unit_lists
11020 check_unit_distributions_to_automata): New prototypes and
11022 (check_automata): Rename it into `check_automata_insn_issues'.
11023 (unit_decl): New fields `the_same_automaton_unit' and
11024 `the_same_automaton_message_reported_p'.
11025 (unit_decl_t): New typedef.
11026 (the_same_automaton_lists): New gloval variable.
11027 (unit_regexp, unit_set_el, units_array, units_cmp,
11028 output_get_cpu_unit_code_func): Use the typedef.
11029 (evaluate_max_reserv_cycles): Increment
11030 `description->max_insn_reserv_cycles'.
11031 (initiate_states): Don't increment `max_cycles_num'.
11032 (transform_insn_regexps): Move code around transformation of
11033 regexps from `generate'.
11034 (generate): Remove call of `transform_insn_regexps'.
11035 (expand_automata): Call `transform_insn_regexps' and
11036 `check_unit_distributions_to_automata'. Check errors before
11039 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
11040 automaton `ultrasparc3_1'.
11042 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
11044 * c-common.c (c_common_init): Set up CPP arithmetic.
11045 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
11046 something reasonable for the host.
11047 (sanity_checks): Add checks.
11048 (cpp_read_main_file): Call sanity_checks() from here...
11049 (cpp_post_options): ... not here.
11050 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
11051 * cpplib.h (struct cpp_options): New member int_precision.
11053 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11055 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
11057 2002-05-04 David S. Miller <davem@redhat.com>
11059 * config/sparc/linux.h, config/sparc/linux64.h
11060 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
11062 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
11064 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
11066 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
11069 2002-05-05 Tim Josling <tej@melbpc.org.au>
11071 * treelang; New directory for new sample language treelang.
11073 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
11075 * Makefile.in (c-lex.o): Update.
11076 * c-lex.c: Include target.h.
11077 (cb_register_builtins): New.
11078 (init_c_lex): Set builtins callback.
11079 * c-lex.h (cpp_define, cpp_assert): New prototypes.
11080 * cppinit.c (init_builtins): Use callback, including for
11082 * cpplib.h (struct cpp_callbacks): New member.
11083 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
11084 (TARGET_INITIALIZER): Update.
11085 * target.h (struct gcc_target): New hook.
11086 * tree.c (default_register_cpp_builtins): New.
11087 * tree.h (default_register_cpp_builtins): New.
11089 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
11091 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
11093 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
11094 (cpp_post_options): Move sanity checks to...
11095 (sanity_checks): New.
11096 * cpplex.c (maybe_read_ucs): Fix prototype.
11097 (parse_string, cpp_parse_escape): Cast for %c format specifier.
11098 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
11101 2002-05-04 Bernd Schmidt <bernds@redhat.com>
11103 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
11104 builtins. Use V2DI patterns instead of TI for logical operations.
11105 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
11106 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
11107 (ix86_expand_builtins): Change the pattern used for movntdq.
11108 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
11109 sse2_nandv2di3): New patterns.
11110 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
11112 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
11113 (cvtdq2pd): Correct mode on operand 1.
11114 (sse2_umulsidi3): Describe without unspec.
11115 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
11117 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
11118 (ashlv2di3): Likewise, from sse2_ashlv2di3.
11119 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
11120 ashlv4si3, ashlv2di3): Use SImode for shift count.
11121 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
11122 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
11124 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
11126 (__m128i, __m128d): New macros.
11127 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
11128 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
11129 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
11130 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
11131 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
11132 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
11133 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
11134 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
11135 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
11136 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
11137 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
11138 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
11139 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
11140 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
11141 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
11142 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
11143 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
11144 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
11145 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
11146 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
11147 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
11148 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
11149 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
11150 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
11151 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
11152 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
11153 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
11154 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
11155 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
11156 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
11157 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
11158 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
11159 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
11160 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
11161 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
11162 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
11163 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
11165 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
11166 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
11168 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
11170 * dwarf2out.c: Fix formatting.
11171 * varasm.c: Likewise.
11173 2002-05-04 David Edelsohn <edelsohn@gnu.org>
11176 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
11177 clobber and use result as temporary value.
11179 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
11181 * expr.c (force_operand): Use expand_simple_* to handle more
11184 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
11186 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
11187 and sign-extension.
11188 (lex_charconst): Update for change in prototype of
11189 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
11191 * cpphash.h (BITS_PER_CPPCHAR_T): New.
11192 * cppinit.c (cpp_create_reader): Initialize them for no
11193 change in semantics.
11194 (cpp_post_options): Add sanity checks.
11195 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
11196 and truncation issues. Calculate in type cppchar_t.
11197 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
11198 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
11199 run-time dependent precision correctly. Return whether the
11200 result is signed or not.
11201 * cpplib.c (dequote_string): Use cppchar_t; update.
11202 * cpplib.h (cppchar_signed_t): New.
11203 struct cpp_options): New precision members.
11204 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
11205 * cppexp.c (eval_token): Update.
11207 2002-05-03 David S. Miller <davem@redhat.com>
11209 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
11210 * config/sparc/sparc.c (sparc_rtx_costs): New function
11211 implementing RTX_COSTS and CONST_COSTS.
11212 * config/sparc/sparc.h (CONST_COSTS): Delete.
11213 (RTX_COSTS_CASES): Define.
11214 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
11217 * config/sparc/sparc.md (DFA schedulers): Split out...
11218 * config/sparc/cypress.md, config/sparc/hypersparc.md,
11219 config/sparc/sparclet.md, config/sparc/supersparc.md,
11220 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
11222 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
11223 checks on it, always defined for Sparc.
11225 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
11226 Tweak, and add more detailed comments.
11228 2002-05-03 Zack Weinberg <zack@codesourcery.com>
11230 * Re-apply patch accidentally reverted with
11231 DFA scheduler merge: remove all rules and variables to slurp
11232 source files out of libiberty and rebuild them with HOST_CC.
11233 ($(HOST_PREFIX_1)varray.o): New rule.
11234 (genattrtab rule): Word wrap.
11236 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
11238 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
11239 (CPP_SUBTARGET_SPEC): Define.
11240 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
11241 cpp_subtarget specs.
11242 (CPP_SPEC): Redefine to include %(cpp_subtarget).
11244 2002-05-03 David S. Miller <davem@redhat.com>
11246 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
11247 * target.h (struct gcc_target): Delete cycle_display member.
11249 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
11250 (rtx_needs_barrier): Delete reference to cycle_display unspec.
11251 (ia64_sched_reorder2): Mention need for cycle display handling
11252 once such notes exist.
11254 2002-05-03 Richard Henderson <rth@redhat.com>
11256 * real.c (etoasc): Strip most trailing zeros for clarity.
11257 * sched-vis.c: Include real.h.
11258 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
11259 * Makefile.in (sched-vis.o): Add real.h.
11261 2002-05-03 David S. Miller <davem@redhat.com>
11263 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
11266 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
11268 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
11269 when we get an out of range literal.
11270 (altivec_expand_ternop_builtin): Same.
11271 (altivec_expand_unop_builtin): Same.
11272 (altivec_expand_builtin): Same, for dss.
11273 (altivec_expand_builtin): Use trees instead of rtl when
11274 determining literal argument validity.
11276 2002-05-03 David S. Miller <davem@redhat.com>
11278 Delete cycle display scheduling hook.
11279 * config/ia64/ia64.c (ia64_cycle_display,
11280 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
11281 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
11282 and use emit_insn_before instead of ia64_emit_insn_before.
11283 * config/ia64/ia64.md (unspec usage): Delete cycle display.
11284 (cycle_display): Delete insn pattern.
11285 * config/sparc/sparc.md (unspec usage): Delete cycle display.
11286 (cycle_display): Delete insn pattern.
11287 * config/sparc/sparc.c (sparc_cycle_display,
11288 TARGET_SCHED_CYCLE_DISPLAY): Delete.
11289 * doc/md.texi (cycle_display): Don't mention.
11290 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
11292 2002-05-03 Richard Henderson <rth@redhat.com>
11294 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
11295 * recog.h: Declare them.
11297 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
11298 * config/sparc/sparc.md: Use store_data_bypass_p instead.
11299 * config/sparc/sparc-protos.h: Update.
11301 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
11303 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
11304 -D__arch64__. Add -D_LP64.
11305 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
11307 (CPP_ARCH64_SPEC): Likewise.
11308 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
11309 (NO_BUILTIN_SIZE_TYPE): Undef.
11311 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
11313 * genautomata.c (min_issue_delay_pass_states): Change return type
11315 (min_issue_delay_pass_states): Change the algorithm.
11316 (min_issue_delay): Set up min_insn_issue_delay for the state.
11317 (output_min_issue_delay_table): Interchange the nested loops and
11318 and initiate min_insn_issue_delay for states.
11320 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
11322 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
11323 jump is simplejump.
11325 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
11327 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
11330 2002-05-03 Richard Henderson <rth@redhat.com>
11333 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
11334 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
11335 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
11336 code before JUMP, not EARLIEST.
11338 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
11340 * c-format.c (check_format_info_main): Don't check for presence of
11341 parameter for * width until after operand number has been read,
11342 and only check for it if format parameters are available.
11345 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
11347 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
11348 (LINK_SPEC): Undef before defining.
11350 2002-05-03 Jakub Jelinek <jakub@redhat.com>
11352 PR preprocessor/6489
11353 * tradcpp.c (fixup_newlines): New.
11354 (main, finclude): Use it.
11356 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
11358 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
11359 * config/mips/mips.c (mips_unique_section): Strip encoding from
11362 2002-05-03 Jakub Jelinek <jakub@redhat.com>
11364 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
11367 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11369 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
11370 (Specific): Removed buildstats references.
11371 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
11372 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
11373 Accomodate Solaris versions beyond 8.
11374 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
11375 (Specific, *-*-solaris2.8): Removed, obsolete.
11377 2002-05-03 Jakub Jelinek <jakub@redhat.com>
11380 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
11381 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
11382 fill leaf_reg_remap with identity.
11383 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
11385 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
11387 * config/h8300/crti.asm: Remove trailing spaces.
11388 * config/h8300/h8300.c: Likewise.
11389 * config/h8300/lib1funcs.asm: Likewise.
11391 2002-05-02 Jason Merrill <jason@redhat.com>
11393 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
11394 * c-decl.c (c_init_decl_processing): Use it.
11395 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
11396 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
11397 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
11399 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
11401 * regrename.c: Fix formatting.
11402 * tree.c: Likewise.
11404 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
11406 * i386.md (attribute memory): Handle compares properly.
11408 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
11410 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
11413 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
11415 * function.c: Fix formatting.
11417 2002-05-02 Jan Hubicka <jh@suse.cz>
11419 * haifa-sched.c (schedule_insn): Print table of instructions and
11421 (sched_block): Do not print ready list at verbosity level 1.
11422 * sched-vis.c (print_insn): Make global.
11423 * sched-ebb.c (ebb_print_insn): Rename from...
11424 (print_insn): ... this one.
11425 * sched-int.h (print_insn): Declare
11427 2002-05-02 Richard Henderson <rth@redhat.com>
11429 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
11430 emitted by cycle_display.
11432 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
11434 * doc/install.texi (*-*-freebsd*): Update to latest status.
11436 2002-05-02 Jakub Jelinek <jakub@redhat.com>
11439 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
11440 * config/float-sparc.h: Assume 128-bit long double if
11441 __LONG_DOUBLE_128__ is defined.
11443 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
11445 * genattrtab.c (write_function_unit_info): Add a dummy element
11446 when num_units == 0.
11448 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11450 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
11451 TYPE_MODE (double_type_node) instead of DFmode.
11453 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
11455 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
11457 * toplev.c (rest_of_compilation): Revert Richard's patch.
11459 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11461 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
11463 2002-05-02 Catherine Moore <clm@redhat.com>
11465 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
11467 2002-05-02 Kazu Hirata <kazu@hxi.com>
11469 * combine.c: Fix comment typos.
11470 * expr.c: Likewise.
11471 * genautomata.c: Likewise.
11472 * stmt.c: Likewise.
11473 * tree.h: Likewise.
11475 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
11477 * doc/install.texi: State GNAT version requirements.
11479 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
11481 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
11482 of the frame pointer or arg pointer register which strict register
11483 checking is not enabled.
11485 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
11487 * gcc.dg/altivec-8.c: New.
11489 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
11490 PRE_INC and PRE_DEC for altivec modes.
11492 2002-05-01 Bruce Korb <bkorb@gnu.org>
11494 * fixinc/check.tpl(set-writable): make sure the function exists first
11495 * fixinc/inclhack.def(alpha_assert): fix test_text
11496 * fixinc/tests/base/assert.h: add in missing result
11498 2002-05-01 Jeff Law <law@redhat.com>
11500 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
11503 2002-05-01 Joel Brobecker <brobecker@gnat.com>
11505 * dbxout.c (dbxout_type): Emit size information for range types,
11506 as well, but only when using GDB extensions.
11508 2002-05-01 Richard Henderson <rth@redhat.com>
11510 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
11511 target-independent gnu binutils date test.
11513 2002-05-01 Richard Henderson <rth@redhat.com>
11515 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
11516 info before expunging the block.
11518 2002-05-01 Jakub Jelinek <jakub@redhat.com>
11520 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
11521 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
11522 -M -or -MM is in effect.
11524 2002-05-01 Zack Weinberg <zack@codesourcery.com>
11526 * config.gcc: Correct test of --enable-obsolete. Obsolete all
11527 A29k configurations.
11528 * doc/install.texi: Update to match.
11530 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11533 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
11534 for duplicates. Always loop over whole list.
11536 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11538 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
11540 2002-05-01 Joel Sherrill <joel@OARcorp.com>
11542 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
11545 2002-05-01 Joel Sherrill <joel@OARcorp.com>
11547 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
11549 2002-05-01 David Edelsohn <edelsohn@gnu.org>
11551 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
11552 (nabs_nopower): Same.
11553 (floatdisf2): New pattern.
11554 (absdi2): Convert to define_insn_and_split.
11556 (trunctfsf2): Same.
11557 (floatditf2): Same.
11558 (floatsitf2): Same.
11559 (fix_trunctfdi2): Same.
11560 (fix_trunctfsi2): Same.
11562 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
11564 * doc/install.texi: Update Texinfo version requirement
11567 2002-05-01 Jakub Jelinek <jakub@redhat.com>
11569 PR target/6512, PR target/5628
11570 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
11571 when memory is not aligned.
11572 (movdf_insn_v9only_vis): Likewise.
11573 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
11574 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
11575 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
11577 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
11579 * gcc.dg/altivec-7.c: New.
11581 * config/rs6000/altivec.h: Cleanup.
11583 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
11585 * doc/invoke.texi (Option Summary): Add -mvrsave=.
11586 (RS/6000 and PowerPC Options): Document -mvrsave=.
11588 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
11589 (rs6000_altivec_vrsave_string): Same.
11590 (rs6000_override_options): Call rs6000_parse_vrsave_option.
11591 (rs6000_parse_vrsave_option): New.
11592 (rs6000_stack_info): Only generate vrsave instructions when
11593 TARGET_ALTIVEC_VRSAVE.
11595 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
11596 (rs6000_altivec_vrsave_string): Define extern.
11597 (rs6000_altivec_vrsave): Same.
11598 (TARGET_ALTIVEC_VRSAVE): New.
11600 2002-04-30 Richard Henderson <rth@redhat.com>
11603 * toplev.c (rest_of_compilation): Don't run cross-jump before
11606 2002-04-30 Tom Rix <trix@redhat.com>
11608 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
11609 check which_alternative.
11611 2002-04-30 Kazu Hirata <kazu@hxi.com>
11613 * cpplex.c: Fix comment formatting.
11614 * function.c: Likewise.
11615 * integrate.c: Likewise.
11616 * regrename.c: Likewise.
11617 * sibcall.c: Likewise.
11618 * simplify-rtx.c: Likewise.
11619 * tree-inline.c: Likewise.
11621 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
11623 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
11624 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
11625 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
11626 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
11627 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
11628 * pa/x-ada: New file. Define ADA_CFLAGS.
11630 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
11632 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
11633 from MMIX_LAST_REGISTER_FILE_REGNUM.
11634 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
11635 (struct machine_function): New member highest_saved_stack_register
11636 previously static variable in mmix.c.
11637 (MACHINE_DEPENDENT_REORG): Define.
11638 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
11639 (MMIX_OUTPUT_REGNO): New.
11640 (mmix_target_asm_function_prologue): Move calculation of last used
11641 saved-stack-register into...
11642 (mmix_machine_dependent_reorg): New function. Update to also handle
11644 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
11645 register names, simplify somewhat by new variable regno.
11646 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
11648 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
11649 emitting register names.
11650 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
11651 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
11652 Remove fixed FIXME.
11653 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
11656 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
11658 2002-04-30 Richard Henderson <rth@redhat.com>
11660 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
11661 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
11662 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
11663 emit_tfmode_cvt): New.
11664 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
11665 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
11666 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
11667 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
11668 * config/sparc/sparc-protos.h: Update.
11670 2002-04-30 Janis Johnson <janis187@us.ibm.com>
11672 * install.texi (Final install): Add to the list of info to include
11673 in a report of a successful bootstrap, and add link to 3.1 list.
11675 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
11677 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
11678 (mode): Add vector modes
11679 (i387): Kill attribute.
11680 (unit): New attribute.
11681 (length_immediate): Grok new types.
11682 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
11683 (modrm): Use "unit".
11684 (memory): Handle MMX/SSE properly.
11685 (scheduling descriptions): Kill uses of fop1.
11686 (sse, mmx, fp patterns): Set type and mode properly.
11688 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
11690 * pa.c (override_options): Default to PA8000 scheduling.
11691 * doc/invoke.texi (HP-PA options): Mention newly added 7300
11692 scheduling parameter.
11694 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
11695 handling of double precision multiplies.
11697 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
11698 fpdiv and fpsqrt instructions.
11699 (7200 & 7300 scheduling): Fix typo in handling of
11700 store-load and store-store penalties.
11702 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11704 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
11705 mips. Add two missing commas.
11707 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
11709 * doc/contrib.texi (Contributors): Update Paolo Carlini's
11710 and Benjamin Kosnik's entries.
11712 2002-04-29 David S. Miller <davem@redhat.com>
11714 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
11715 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
11716 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
11717 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11719 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11721 * combine.c (find_split_point): Use gen_int_mode.
11723 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
11725 Merging code from dfa-branch:
11727 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
11729 * genautomata.c (output_reserv_sets): Fix typo.
11731 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
11733 * genautomata.c (output_reserv_sets): Remove
11734 next_cycle_output_flag.
11736 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
11738 * sched-rgn.c (init_ready_list): Make the DFA code handle
11739 USE/CLOBBER insns in the same way as the traditional
11741 (new_ready): Similarly..
11743 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
11745 * haifa-sched.c (schedule_block): Change the DFA state only after
11748 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
11750 * pa.c (hppa_use_dfa_pipeline_interface): New function.
11751 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
11752 (override_options): Add PA7300 scheduling support.
11753 (pa_adjust_cost): Update various comments. Properly
11754 handle anti and output dependencies when using the
11756 (pa_issue_rate): Add PA7300 scheduling support.
11757 (pa_can_combine_p): Call extract_insn before calling
11758 constrain_operands (taken from mainline tree).
11759 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
11760 * pa.md (cpu attr): Add 7300. Rewrite pipeline
11761 descriptions using DFA descriptions. Add PA7300
11762 scheduling support.
11764 2002-03-30 David S. Miller <davem@redhat.com>
11766 Add UltraSPARC-III DFA scheduling support.
11767 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
11768 Update FP conditional move on register insn patterns to use it, as
11770 (define_attr cpu): Add ultrasparc3.
11771 (define_attr us3load_type): New, update integer load patterns to
11772 set it, as appropriate.
11773 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
11774 (rest): Add UltraSPARC3 scheduling description.
11775 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
11776 (PROCESSOR_ULTRASPARC3): New.
11777 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
11778 ({ASM,CPP}_CPU_SPEC): Likewise.
11779 (REGISTER_MOVE_COST): Likewise.
11780 (RTX_COSTS): Likewise.
11781 * config/sparc/sparc.c (sparc_override_options,
11782 sparc_initialize_trampoline, sparc64_initialize_trampoline,
11783 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
11784 sparc_issue_rate): Likewise.
11785 * config/sparc/sol2.h: Likewise.
11786 * config/sparc/sol2-sld-64.h: Likewise.
11787 * config/sparc/linux64.h: Likewise.
11789 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
11791 * doc/md.texi: Add comments about usage the latency time for the
11792 different dependencies and about case when two or more conditions
11793 in different define_insn_reservations returns TRUE for an insn.
11795 * doc/md.texi: Add reference for automaton based pipeline
11798 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
11800 * doc/passes.texi: Add missed information about genattrtab.
11802 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
11804 * genautomata.c (output_automata_list_transition_code): Check
11805 automata_list on NULL.
11807 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
11809 * genautomata.c (output_insn_code_cases,
11810 output_automata_list_min_issue_delay_code,
11811 output_automata_list_transition_code,
11812 output_automata_list_state_alts_code): Comment the functions.
11814 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
11816 * genautomata.c (automata_list_el_t): New typedef.
11817 (get_free_automata_list_el,free_automata_list_el,
11818 free_automata_list, automata_list_hash, automata_list_eq_p,
11819 initiate_automata_lists, automata_list_start, automata_list_add,
11820 automata_list_finish, finish_automata_lists,
11821 output_insn_code_cases, output_automata_list_min_issue_delay_code,
11822 output_automata_list_transition_code,
11823 output_automata_list_state_alts_code, add_automaton_state,
11824 form_important_insn_automata_lists): New functions and prototypes.
11825 (insn_reserv_decl): Add members important_automata_list and
11827 (ainsn): Add members important_p.
11828 (automata_list_el): New structure.
11829 (first_free_automata_list_el, current_automata_list,
11830 automata_list_table): New global variables.
11831 (create_ainsns): Initiate member important_p.
11832 (output_internal_min_issue_delay_func): Generate the switch and
11833 call output_insn_code_cases.
11834 (output_internal_trans_func, output_internal_state_alts_func):
11836 (generate): Call initiate_automata_lists.
11837 (automaton_states): New global variable.
11838 (expand_automata): Call form_important_insn_automata_lists.
11839 (write_automata): Call finish_automata_lists.
11841 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
11843 * genautomata.c (add_excls, add_presence_absence): Check that
11844 cpu units in the sets belong the same automaton.
11846 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
11847 about that cpu units in the sets belong the same automaton.
11849 * doc/md.texi: Ditto.
11851 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
11852 Nitin Gupta <niting@noida.hcltech.com>
11854 * config/sh/sh.c (sh_use_dfa_interface): New function.
11856 (sh_issue_rate): New Function.
11857 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
11858 TARGET_SCHED_ISSUE_RATE: define.
11860 * config/sh/sh.md: Add DFA based pipeline description for SH4.
11862 (define_attr insn_class): New attribute used for DFA
11864 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
11865 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
11866 cmpeqdi_t): Likewise.
11868 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
11869 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
11871 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
11873 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
11875 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
11878 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
11880 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
11881 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
11883 (output_dfa_start_func): Initiate new variable insn_codes_length,
11884 (write_automata): Output definition of the new variable.
11886 2001-10-02 David S. Miller <davem@redhat.com>
11888 * haifa-sched.c (advance_one_cycle): New function.
11889 (schedule_block): Use it.
11890 (queue_to_ready): Use it, and also make sure to advance the DFA
11891 state on all stall cycles, not just those where insn_queue links
11894 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
11896 * haifa-sched.c (max_issue): Remove last_p argument. Only return
11897 non-zero if the highest-priority instruction could be scheduled.
11898 (choose_ready): Remove last argument from max_issue call.
11900 2001-09-28 David S. Miller <davem@redhat.com>
11902 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
11903 ultrasparc and 3 for other multi-issue sparcs.
11905 2001-09-27 David S. Miller <davem@redhat.com>
11907 * config/sparc/sparc.md (cycle_display): New pattern.
11908 * config/sparc/sparc.c (sparc_cycle_display): New.
11909 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
11911 2001-09-25 David S. Miller <davem@redhat.com>
11913 Convert all of Sparc scheduling to DFA
11914 * config/sparc/sparc.md: Kill all define_function_unit
11915 directives and replace with DFA equivalent.
11916 * config/sparc/sparc.c (ultrasparc_adjust_cost,
11917 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
11918 ultra_fpmode_conflict_exists, ultra_find_type,
11919 ultra_build_types_avail, ultra_flush_pipeline,
11920 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
11921 ultrasparc_variable_issue, ultrasparc_sched_init,
11922 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
11923 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
11924 ultra_cur_hist, ultra_cycles_elapsed): Kill.
11925 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
11926 ultrasparc_store_bypass_p): New.
11927 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
11930 2001-09-24 David S. Miller <davem@redhat.com>
11932 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
11933 ready->vec[foo] not ready[foo].
11935 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
11937 * doc/md.texi: Correct examples for define_insn_reservations
11940 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
11942 * genautomata.c (create_automata): Print message about creation of
11944 (generate): Remove printing meease about creation of
11947 2001-09-05 David S. Miller <davem@redhat.com>
11949 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
11950 * config/sparc/linux64.h: Likewise.
11952 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
11954 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
11955 schedule_block, sched_init, sched_finish): Add missed calls of
11956 use_dfa_pipeline_interface.
11958 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
11961 * sched-vis.c (get_visual_tbl_length): Ditto.
11963 2001-08-27 Richard Henderson <rth@redhat.com>
11965 * genattr.c (main): Emit state_t even when not doing scheduling.
11967 2001-08-27 Richard Henderson <rth@redhat.com>
11969 * genautomata.c (expand_automata): Always create a description.
11971 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
11973 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
11974 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
11975 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
11978 * genattr.c (main): New variable num_insn_reservations. Increase
11979 it if there is DEFINE_INSN_RESERVATION. Output automaton based
11980 pipeline hazard recognizer interface.
11982 * genattrtab.h: New file.
11984 * genattrtab.c: Include genattrtab.h.
11985 (attr_printf, check_attr_test, make_internal_attr,
11986 make_numeric_value): Move protypes into genattrtab.h. Define them
11988 (num_dfa_decls): New global variable.
11989 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
11990 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
11991 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
11992 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
11994 * genautomata.c: New file.
11996 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
11998 * sched-int.h: (curr_state): Add the external definition for
11999 automaton pipeline interface.
12000 (haifa_insn_data): Add comments for members blockage and units.
12002 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
12003 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
12004 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
12005 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
12006 TARGET_SCHED_DFA_POST_CYCLE_INSN,
12007 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
12008 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
12010 (TARGET_SCHED): Use the new macros.
12012 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
12013 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
12014 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
12015 dfa_bubble): New members in gcc_target.sched.
12017 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
12018 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
12019 (insn_queue): Redefine it as pointer to array.
12020 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
12022 (max_insn_queue_index_macro_value): New variable.
12023 (curr_state, dfa_state_size, ready_try): New varaibles for
12024 automaton interface.
12025 (ready_element, ready_remove, max_issue): New function prototypes
12026 for automaton interface.
12027 (choose_ready): New function prototype.
12028 (insn_unit, blockage_range): Add comments.
12029 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
12030 FUNCTION_UNITS_SIZE == 0.
12031 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
12032 actual_hazard, potential_hazard): Add comments.
12033 (insn_cost): Use cost -1 as undefined value. Remove
12034 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
12035 pipeline interface.
12036 (ready_element, ready_remove): New functions for automaton
12038 (schedule_insn): Add new code for automaton pipeline interface.
12039 (queue_to_ready): Add new code for automaton pipeline interface.
12040 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
12041 (debug_ready_list): Print newline when the queue is empty.
12042 (max_issue): New function for automaton pipeline interface.
12043 (choose_ready): New function.
12044 (schedule_block): Add new code for automaton pipeline interface.
12045 Print ready list before scheduling each insn.
12046 (sched_init): Add new code for automaton pipeline interface.
12047 Initiate insn cost by -1.
12048 (sched_finish): Free the current automaton state and finalize
12049 automaton pipeline interface.
12051 * sched-rgn.c: Include target.h.
12052 (init_ready_list, new_ready, debug_dependencies): Add new code for
12053 automaton pipeline interface.
12055 * sched-vis.c: Include target.h.
12056 (get_visual_tbl_length): Add code for automaton interface.
12057 (target_units, print_block_visualization): Add comments.
12059 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
12060 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
12061 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
12062 (getruntime.o, genautomata.o): New entries.
12063 (genattrtab.o): Add new dependency file genattrtab.h.
12064 (genattrtab): Add new dependencies. Link it with `libm.a'.
12065 (getruntime.o, hashtab.o): New entries for canadian cross.
12067 * doc/md.texi: Description of automaton based model.
12069 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
12071 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
12072 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
12073 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
12074 TARGET_SCHED_DFA_POST_CYCLE_INSN,
12075 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
12076 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
12077 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
12079 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
12080 MAX_DFA_ISSUE_RATE): New macro descriptions.
12082 * doc/contrib.texi: Add dfa based scheduler contribution.
12084 * doc/gcc.texi: Add more information about genattrtab.
12086 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12088 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
12089 adjust_address_nv call.
12091 2002-04-29 Janis Johnson <janis187@us.ibm.com>
12093 * doc/install.texi (Testing): Provide additional information, and
12094 a stronger encouragement, for running the testsuites.
12096 2002-04-29 DJ Delorie <dj@redhat.com>
12098 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
12099 given in upper case.
12101 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12103 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
12104 Solaris 2 <widec.h> if missing.
12105 * fixinc/fixincl.x: Regenerate.
12106 * fixinc/tests/base/widec.h: New file.
12108 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
12110 * toplev.c (f_options): Add "profile" switch so that
12111 -fno-profile can be used to disable -p.
12113 2002-04-29 Bernd Schmidt <bernds@redhat.com>
12115 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
12117 * tree.c (build_common_tree_nodes_2): Likewise.
12118 * tree.h (enum tree_index): Likewise.
12119 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
12121 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
12123 (init_mmx_sse_builtins): Initialize SSE2 builtins.
12124 (ix86_expand_builtin): Add support for SSE2 builtins.
12125 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
12126 (VALID_SSE_REG_MODE): Use it.
12127 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
12128 (enum ix86_builtins): Add SSE2 builtins.
12129 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
12130 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
12131 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
12132 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
12133 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
12134 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
12135 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
12136 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
12137 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
12138 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
12139 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
12140 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
12141 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
12142 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
12143 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
12144 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
12145 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
12146 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
12147 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
12148 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
12149 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
12150 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
12151 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
12152 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
12153 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
12154 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
12155 lfence_insn): New patterns.
12156 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
12157 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
12159 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
12161 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
12163 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12165 * doc/contrib.texi (Contributors): Add Paolo Carlini and
12167 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
12168 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
12169 and CPU instead of cpu.
12171 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
12173 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
12175 (lang_independent_options): Add -fif-conversion, -fif-conversion2
12176 (rest_of_compilation): Do if conversion only when asked for.
12177 (parse_options_and_default_flags): Set new variables to 1 for -O1
12178 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
12180 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
12182 * i386.c (dbx64_register_map): Fix typo.
12184 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
12186 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
12187 real_one_half, real_bb_freq_max): New static variables.
12188 (debug_profile_bbauxs): Kill.
12189 (process_note_predictions): Kill unused variable.
12190 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
12192 (propagate_freq): Use REAL_ARITHMETICS.
12193 (estimate_bb_frequencies): Likevise; init new static variables.
12194 * Makefile.in (predict.o): Add dependency on real.h
12196 2002-04-28 David S. Miller <davem@redhat.com>
12199 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
12200 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
12201 several {reads,writes} instead.
12202 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
12205 2002-04-27 David S. Miller <davem@redhat.com>
12208 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
12211 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
12212 including signal.h and sys/ucontext.h, not needed.
12214 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
12216 * varasm.c (output_constant_def): Correct test for not calling
12217 ENCODE_SECTION_INFO for INTEGER_CST.
12219 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
12221 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
12222 keep most cases as function eval_token.
12223 (eval_token): New function.
12224 (_cpp_parse_expr): Read token here for improved diagnostics.
12225 Don't use op_as_text. Detect bad ':' here.
12226 (reduce): Don't detect bad ':' here.
12227 (op_as_text): Remove.
12228 * cpphash.h (_cpp_test_assertion): Change prototype.
12229 * cpplib.c (_cpp_test_assertion): Change prototype.
12231 2002-04-28 Richard Henderson <rth@redhat.com>
12234 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
12235 (ggc_mark_rtx_children): New.
12237 2002-04-28 Jakub Jelinek <jakub@redhat.com>
12240 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
12241 after call peepholes for UltraSPARC.
12242 (call + jump 64-bit peepholes): Remove.
12244 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12247 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
12248 result as temporary value.
12250 2002-04-28 Jakub Jelinek <jakub@redhat.com>
12253 * toplev.c (rest_of_compilation): Only run regrename and copy
12254 propagation if optimizing.
12256 2002-04-28 Jakub Jelinek <jakub@redhat.com>
12258 PR optimization/6475
12259 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
12260 register of REGNO_DECL (i).
12261 * Makefile.in (reload1.o): Add $(TREE_H).
12263 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
12265 * cppexp.c (lex): Update to use state.skip_eval.
12266 (struct op): Remove prio and flags members.
12267 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
12268 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
12269 (LEFT_ASSOC): New macro.
12270 (optab): New table of operator priorities and flags.
12272 (_cpp_parse_expr): Clean up logic. Return bool. Use a
12273 malloc-ed parser stack.
12274 (reduce): New; reduce the operator stack.
12275 (_cpp_expand_op_stack): Expand the operator stack as necessary.
12276 * cpphash.h (struct op): Predeclare.
12277 (struct cpp_reader): New members op_stack, op_limit.
12278 (struct lexer_state): New member skip_eval.
12279 (_cpp_parse_expr): Update.
12280 (_cpp_expand_op_stack): New.
12281 * cpplib.c (do_if): Update.
12282 * cppinit.c (cpp_create_reader): Create op stack.
12283 (cpp_destroy): And destroy it.
12284 * cpplib.h (CPP_LAST_CPP_OP): Correct.
12285 (TTYPE_TABLE): Correct.
12287 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12290 * c-decl.c (duplicate_decls): Call merge_weak.
12291 * c-pragma.c (apply_pragma_weak): Warn about misuse.
12292 * output.h (merge_weak): Prototype merge_weak.
12293 * varasm.c (merge_weak): New function.
12294 (declare_weak): Make sure we don't give an error on VAR_DECLs.
12295 Mark RTL with SYMBOL_REF_WEAK.
12297 2002-04-27 Kurt Garloff <garloff@suse.de>
12299 * tree-inline.c (inlinable_function_p): Improve heuristics
12300 by using a smoother function to cut down allowable inlinable size.
12301 * param.def: Add parameters max-inline-insns-single,
12302 max-inline-slope, min-inline-insns that determine the exact
12303 shape of the above function.
12304 * param.h: Likewise.
12306 2002-04-26 Richard Henderson <rth@redhat.com>
12308 * c-parse.in (malloced_yyss, malloced_yyvs): New.
12309 (yyoverflow): Re-add. Set them.
12310 (free_parser_stacks): New.
12311 * c-common.h: Declare it.
12312 * c-lex.c (c_common_parse_file): Call it.
12314 2002-04-26 Richard Henderson <rth@redhat.com>
12316 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
12317 for fallthru search.
12319 2002-04-26 Eric Christopher <echristo@redhat.com>
12321 PR optimization/3700
12322 * config/mips/mips.c (mips_issue_rate): Define. New function.
12323 (TARGET_SCHED_ISSUE_RATE): Use.
12325 2002-04-25 David S. Miller <davem@redhat.com>
12328 * reorg.c (optimize_skip): Do not allow exception causing
12329 instructions to be considered for delay slots.
12330 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
12331 (relax_delay_slots): Do not try to consider exception causing
12332 instructions as redundant.
12334 2002-04-26 Richard Henderson <rth@redhat.com>
12337 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
12339 2002-04-26 Mark Mitchell <mark@codesourcery.com>
12342 * config/i386/i386.md (untyped_call): Return the value in a float
12343 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
12346 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
12348 * tree.c (tree_int_cst_lt): Compare constants whose types differ
12349 in unsigned-ness correctly.
12351 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
12353 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
12354 portable runtime model.
12356 2002-04-26 Richard Henderson <rth@redhat.com>
12358 * c-parse.in (yyoverflow): Revert.
12360 2002-04-26 David Edelsohn <edelsohn@gnu.org>
12361 Richard Henderson <rth@redhat.com>
12363 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
12364 result as temporary value.
12366 2002-04-26 Richard Henderson <rth@redhat.com>
12369 * c-common.c (fix_string_type): Split out of ...
12370 (combine_strings): ... here. Take a varray, not a tree list.
12371 (c_expand_builtin_printf): Use fix_string_type.
12372 * c-common.h: Update decls.
12373 * c-parse.in (string): Remove. Update all uses to use STRING
12374 instead, and not call combine_strings.
12375 (yylexstring): New.
12377 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
12378 (build_asm_stmt): Likewise.
12379 * objc/objc-act.c (my_build_string): Use fix_string_type.
12380 (build_objc_string_object): Build varray for combine_strings.
12382 2002-04-26 Bo Thorsen <bo@suse.co.uk>
12384 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
12387 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
12389 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
12390 (HAVE_NO_R_OPERAND): Remove.
12391 (HAVE_VALUE): Remove.
12392 (op_to_prio): Update.
12393 (UNARY): Don't alter flags.
12394 (_cpp_parse_expr): want_value used to indicate whether
12395 a number or unary operator is expected next. Distinguish
12396 unary and binary +/-.
12397 (op_as_text): Update for unary operators.
12399 2002-04-25 Richard Henderson <rth@redhat.com>
12402 * c-parse.in (yyoverflow): New.
12404 2002-04-25 Richard Henderson <rth@redhat.com>
12407 * c-common.c (shorten_compare): Simplfy conditions leading to
12408 the generation of a warning.
12410 2002-04-25 Richard Henderson <rth@redhat.com>
12413 * expmed.c (extract_bit_field): Fall through to generic code rather
12414 than aborting on subreg special case.
12416 2002-04-25 David S. Miller <davem@redhat.com>
12418 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
12419 for DECL being NULL.
12421 2002-04-25 Steve Christiansen <smc@us.ibm.com>
12423 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
12425 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
12427 * c-decl.c (grokdeclarator): Remove outdated ??? note
12428 on invalid declaration of flexible array members.
12430 2002-04-25 Richard Henderson <rth@redhat.com>
12432 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
12434 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
12436 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
12437 needed by the compiler, even if they are used as global regs.
12439 2002-04-25 Matt Hiller <hiller@redhat.com>
12441 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
12443 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
12444 of the corresponding functions.
12445 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
12448 2002-04-25 Matt Hiller <hiller@redhat.com>
12450 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
12452 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
12453 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
12454 registers, adjust comment accordingly.
12455 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
12456 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
12457 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
12458 for coprocessor registers.
12459 (ADDITIONAL_REGISTER_NAMES): Include
12460 ALL_COP_ADDITIONAL_REGISTER_NAMES.
12462 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
12463 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
12464 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
12465 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
12466 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
12468 (mips_char_to_class): Adjust comment to include coprocessor
12469 constraint letters.
12471 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
12473 (mips_reg_names, mips_regno_to_class): Include coprocessor
12475 (mips_sw_reg_names): Ditto, make non-static.
12476 (mips_move_1word): Handle moves to and from coprocessor registers.
12477 (mips_move_2words): Handle moves to and from coprocessor
12479 (mips_class_max_nregs, mips_register_move_cost): Handle
12480 coprocessor register classes.
12481 (override_options): Initialize mips_char_to_class and
12482 mips_hard_regno_mode_ok properly for coprocessor registers.
12484 * config/mips/mips.md (movdi_internal, movdi_internal2,
12485 movsi_internal1, movsi_internal2): Add constraint-sets for
12486 coprocessor registers.
12487 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
12488 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
12490 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
12491 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
12493 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
12494 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
12496 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
12497 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
12500 * doc/tm.texi: Document feature.
12502 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
12504 * integrate.c (function_attribute_inlinable_p): Simplify.
12505 Check the table pointer is not NULL.
12507 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
12509 * doc/c-tree.texi: Fix typo in introduction.
12511 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
12513 * c-common.h (c_common_parse_file): Update.
12514 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
12515 * c-lex.c (YYDEBUG): Get from c-lex.h.
12516 (c_common_parse_file): Update.
12517 * c-lex.h (YYDEBUG, yydebug): New.
12518 * c-parse.in (YYDEBUG): Get from c-lex.h.
12519 (c_set_yydebug): Remove.
12520 * c-tree.h (c_set_yydebug): Remove.
12521 * langhooks-def.h (lhd_do_nothing_i): New.
12522 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
12523 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
12524 * langhooks.c (lhd_do_nothing_i): New.
12525 (lhd_set_yydebug): Remove.
12526 * langhooks.h (struct lang_hooks): Update.
12527 * toplev.c (set_yydebug): New.
12528 (compile_file): Update call to parse_file hook.
12529 (decode_d_option): Update.
12531 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
12533 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
12535 * loop.c (load_mems): Don't change the interface of called functions.
12537 * calls.c (expand_call): Take current_function_pretend_args_size
12538 into account when setting argblock for sibcalls.
12540 2002-04-24 Matt Hiller <hiller@redhat.com>
12542 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
12545 * cpplex.c (skip_line_comment): Process comment one multibyte
12546 character at a time rather than one char at a time, if
12548 (parse_string): Process string one multibyte character at a time
12549 rather than one char at a time, if appropriate.
12550 * c-lex.c (lex_string): Lex and copy multibyte strings
12552 * cpplib.h (cppchar_t): Change to unsigned.
12554 2002-04-24 Richard Henderson <rth@redhat.com>
12557 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
12560 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
12562 * sh.c (sh_va_arg): If argument was passed by reference,
12563 dereference the pointer.
12565 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12567 * sh.md (divsi3_i4_media): Use match_operand for input values
12568 rather than hard registers.
12569 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
12570 unnecessarily through hard registers. Keep copies of pseudo
12571 registers outside of the libcall sequence.
12573 * sh.md (casesi_shift_media): Add modes.
12575 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
12578 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
12580 * attribs.c (c_common_attribute_table): Move table and handlers
12582 (format_attribute_table, lang_attribute_table,
12583 lang_attribute_common): Remove.
12584 (init_attributes): Replace NULL pointers with pointers to the
12586 (handle_packed_attribute, handle_nocommon_attribute,
12587 handle_common_attribute, handle_noreturn_attribute,
12588 handle_noinline_attribute, handle_always_inline_attribute,
12589 handle_used_attribute, handle_unused_attribute,
12590 handle_const_attribute, handle_transparent_union_attribute,
12591 handle_constructor_attribute, handle_destructor_attribute,
12592 handle_mode_attribute, handle_section_attribute,
12593 handle_aligned_attribute, handle_weak_attribute,
12594 handle_alias_attribute, handle_visibility_attribute,
12595 handle_no_instrument_function_attribute, handle_malloc_attribute,
12596 handle_no_limit_stack_attribute, handle_pure_attribute,
12597 handle_deprecated_attribute, handle_vector_size_attribute,
12598 vector_size_helper): Move to c-common.c.
12599 * c-common.c (c_common_attribute_table,
12600 handle_packed_attribute, handle_nocommon_attribute,
12601 handle_common_attribute, handle_noreturn_attribute,
12602 handle_noinline_attribute, handle_always_inline_attribute,
12603 handle_used_attribute, handle_unused_attribute,
12604 handle_const_attribute, handle_transparent_union_attribute,
12605 handle_constructor_attribute, handle_destructor_attribute,
12606 handle_mode_attribute, handle_section_attribute,
12607 handle_aligned_attribute, handle_weak_attribute,
12608 handle_alias_attribute, handle_visibility_attribute,
12609 handle_no_instrument_function_attribute, handle_malloc_attribute,
12610 handle_no_limit_stack_attribute, handle_pure_attribute,
12611 handle_deprecated_attribute, handle_vector_size_attribute,
12612 vector_size_helper): Move from attribs.c.
12613 * c-common.h (c_common_attribute_table,
12614 c_common_format_attribute_table): New.
12615 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
12616 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
12617 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
12618 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
12619 (LANG_HOOKS_INITIALIZER): Update.
12620 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
12621 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
12622 * target.h: Update comment.
12623 * tree.c (default_target_attribute_table): Remove.
12624 * tree.h (default_target_attribute_table, format_attribute_table,
12625 lang_attribute_table, lang_attribute_common): Remove.
12627 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
12628 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
12630 2002-04-24 Jason Merrill <jason@redhat.com>
12632 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
12633 * dwarf2out.c (dwarf_attr_name): Support it.
12634 (gen_array_type_die): Emit it.
12635 (lookup_type_die): No special handling for VECTOR_TYPE.
12636 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
12638 2002-04-24 Richard Henderson <rth@redhat.com>
12640 * config/mips/mips.md (movdi_usd): Renumber.
12642 2002-04-24 David S. Miller <davem@redhat.com>
12645 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
12646 32-bit Sparc and current_function_returns_struct is true.
12648 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
12650 * loop.c (canonicalize_condition): Use gen_int_mode.
12652 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
12654 * config/rs6000/altivec.h: Cleanup file. Add non individual
12656 (vec_vaddubm): New.
12657 (vec_vadduhm): New.
12658 (vec_vadduwm): New.
12660 (vec_vaddcuw): New.
12661 (vec_vaddubs): New.
12662 (vec_vaddsbs): New.
12663 (vec_vadduhs): New.
12664 (vec_vadduws): New.
12665 (vec_vaddsws): New.
12675 (vec_vcmpbfp): New.
12676 (vec_vcmpequb): New.
12677 (vec_vcmpequh): New.
12678 (vec_vcmpequw): New.
12679 (vec_vcmpeqfp): New.
12680 (vec_vcmpgefp): New.
12681 (vec_vcmpgtub): New.
12682 (vec_vcmpgtsb): New.
12683 (vec_vcmpgtuh): New.
12684 (vec_vcmpgtsh): New.
12685 (vec_vcmpgtuw): New.
12686 (vec_vcmpgtsw): New.
12687 (vec_vcmpgtfp): New.
12688 (vec_vcmpgefp): New.
12693 (vec_vexptefp): New.
12698 (vec_lde): Add vector float variant.
12701 (vec_vlogefp): New.
12702 (vec_vmaddfp): New.
12703 (vec_vmhaddshs): New.
12725 (vec_vmladduhm): New.
12726 (vec_vmhraddshs): New.
12727 (vec_msumubm): New.
12728 (vec_vmsummbm): New.
12729 (vec_vmsumuhm): New.
12730 (vec_vmsumshm): New.
12731 (vec_vmsumuhs): New.
12732 (vec_vmsumshs): New.
12733 (vec_vmuleub): New.
12734 (vec_vmulesb): New.
12735 (vec_vmuleuh): New.
12736 (vec_vmulesh): New.
12737 (vec_vmuloub): New.
12739 (vec_vmulouh): New.
12740 (vec_vmulosh): New.
12741 (vec_vnmsubfp): New.
12744 (vec_vpkuhum): New.
12745 (vec_vpkuwum): New.
12747 (vec_vpkuhus): New.
12748 (vec_vpkshss): New.
12749 (vec_vpkuwus): New.
12750 (vec_vpkswss): New.
12751 (vec_vpkshus): New.
12752 (vec_vpkswus): New.
12759 (vec_vrsqrtefp): New.
12770 (vec_vspltisb): New.
12771 (vec_vspltish): New.
12772 (vec_vspltisw): New.
12786 (vec_vsububm): New.
12787 (vec_vsubuhm): New.
12788 (vec_vsubuwm): New.
12790 (vec_vsubcuw): New.
12791 (vec_vsububs): New.
12792 (vec_vsubsbs): New.
12793 (vec_vsubuhs): New.
12794 (vec_vsubshs): New.
12795 (vec_vsubuws): New.
12796 (vec_vsubsws): New.
12797 (vec_vsum4ubs): New.
12798 (vec_vsum4sbs): New.
12799 (vec_vsum4shs): New.
12800 (vec_vsum2sws): New.
12801 (vec_vsumsws): New.
12803 (vec_vupkhsb): New.
12804 (vec_vupkhpx): New.
12805 (vec_vupkhsh): New.
12806 (vec_vupklsb): New.
12807 (vec_vupklpx): New.
12808 (vec_vupklsh): New.
12811 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
12814 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
12815 added literals from substracted literals.
12816 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
12817 (fold) [associate]: Preserve MINUS_EXPR if needed.
12819 2002-04-23 Zack Weinberg <zack@codesourcery.com>
12821 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
12824 2002-04-23 Tom Tromey <tromey@redhat.com>
12826 * gcc.c: Added --resource. For PR java/6314.
12828 2002-04-23 David O'Brien <obrien@FreeBSD.org>
12830 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
12831 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
12834 2002-04-23 David O'Brien <obrien@FreeBSD.org>
12836 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
12838 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
12840 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
12842 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
12843 (ix86_expand_clrstr): Fix typo.
12844 * loop.c (gen_load_of_final_value): New.
12845 (loop_givs_rescan, strength_reduce, check_dbra_loop):
12848 2002-04-23 Roger Sayle <roger@eyesopen.com>
12850 * builtins.c (builtin_memset_gen_str): New function.
12851 (expand_builtin_memset): Optimize the case of constant length, but
12854 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
12856 * config/rs6000/altivec.h (vec_step): Remove extraneous
12858 (vec_ctu): Cast return.
12860 2002-04-23 Alan Modra <amodra@bigpond.net.au>
12863 * function.h: (struct function): Add profile_label_no field.
12864 (current_function_profile_label_no): Define.
12865 * function.c: (profile_label_no): New static var.
12866 (expand_function_start): Increment it, and copy to
12867 current_function_profile_label_no.
12868 * output.h (profile_label_no): Delete.
12869 * final.c (profile_label_no): Delete.
12870 (profile_function): Use current_function_profile_label_no.
12871 (final_end_function): Don't increment profile_label_no here.
12872 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
12873 profile_label_no with current_function_profile_label_no.
12874 * config/pa/pa.c (current_function_number): Delete.
12875 (pa_output_function_prologue): Don't output profile label here.
12876 (hppa_profile_hook): Use label_no param rather than
12877 current_function_number.
12878 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
12879 * config/pa/pa.h: .. here.
12880 (FUNCTION_PROFILER): Output profile label here.
12882 2002-04-22 Eric Christopher <echristo@redhat.com>
12884 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
12885 patch of 2002-04-09 due to binutils issues.
12886 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
12888 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
12890 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
12891 constraint to 'o' for m=r and r=m alternatives.
12892 ("*movv8hi_internal1"): Same.
12893 ("*movv16qi_internal1"): Same.
12894 ("*movv4sf_internal1"): Same.
12896 2002-04-22 Janis Johnson <janis187@us.ibm.com>
12898 * rtl.h (RTX_FLAG): New macro.
12899 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
12900 * final.c (alter_subreg): Use macro to access rtx flag.
12901 * integrate.c (copy_rtx_and_substitute): Use new access macro.
12902 * print-rtl.c (print_rtx): Use new access macro.
12904 * cse.c (insert): Check rtx code before accessing flag.
12906 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
12907 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
12908 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
12909 convert_const_symbol_ref, make_canonical, make_alternative_compare,
12910 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
12911 simplify_test_exp, optimize_attrs, simplify_by_exploding,
12912 find_and_mark_used_attributes, unmark_used_attributes,
12913 add_values_to_cover, simplify_with_current_value,
12914 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
12915 copy_rtx_unchanging, main): Use new access macros.
12917 2002-04-22 Tom Rix <trix@redhat.com>
12919 * expmed.c (init_expmed): Generate shifted constant once.
12921 2002-04-22 Zack Weinberg <zack@codesourcery.com>
12923 * c-lex.c (lex_charconst): Call convert to get constant in
12924 proper type; don't just smash the type field.
12927 * config.gcc: Add list of obsolete configurations. Disallow
12928 building these without --enable-obsolete.
12929 * doc/install.texi: Document --enable-obsolete and obsoletion
12930 policy. Mention obsoletion of individual targets in
12931 appropriate places.
12933 2002-04-22 Richard Henderson <rth@redhat.com>
12935 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
12937 2002-04-22 Mark Mitchell <mark@codesourcery.com>
12940 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
12941 (walk_fixup_memory_subreg): Likewise.
12942 (fixup_var_refs_insn): Adjust accordingly.
12943 (fixup_var_refs_1): Likewise.
12945 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
12947 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
12948 LIBPATH_ARCH64_SPEC): Define.
12949 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
12950 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
12951 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
12952 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
12954 2002-04-22 Joel Sherrill <joel@OARcorp.com>
12956 * gthr-rtems.h: Correct prototypes to remove warnings.
12958 2002-04-22 Richard Henderson <rth@redhat.com>
12961 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
12963 * gcse.c (free_insn_expr_list_list): New.
12964 (clear_modify_mem_tables): Use it. Fix bit set usage.
12965 (canon_list_insert): Use EXPR_LISTs for expressions.
12966 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
12968 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
12970 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
12971 file change and include code to _cpp_pop_buffer.
12972 * cpphash.h (struct pending_option): Predeclare.
12973 (struct cpp_reader): New member next_include_file.
12974 (_cpp_pop_file_buffer): Update.
12975 (_cpp_push_next_buffer): Update, rename.
12976 * cppinit.c (cpp_destroy): Free include chain and pending here.
12977 (cpp_finish_options): Simplify.
12978 (_cpp_push_next_buffer): Rename and clean up.
12979 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
12981 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
12983 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
12985 * config/rs6000/altivec.h (vec_xor): Add variant for both args
12986 being vector signed int.
12988 (vec_xor): Add variant for both args being vector signed char.
12989 Remove redundant variant.
12992 2002-04-21 David S. Miller <davem@redhat.com>
12994 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
12995 compare mode in output RTL.
12997 2002-04-22 David Edelsohn <edelsohn@gnu.org>
12999 * config/rs6000/rs6000.c (rs6000_override_options): Correct
13000 style and formatting of previous patch.
13002 2002-04-22 Alan Modra <amodra@bigpond.net.au>
13004 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
13005 flag_pic for ABI_AIX.
13007 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
13009 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
13010 * cppfiles.c (read_include_file): Similarly.
13011 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
13012 uxstrdup ustrchr, ufputs): Similarly.
13013 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
13014 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
13015 cpp_ideq, parse_identifier, parse_number): Similarly.
13016 * cpplib.c (struct directive, dequote_string, D, run_directive,
13017 cpp_push_buffer): Similarly.
13018 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
13019 _cpp_create_definition, check_trad_stringification,
13020 cpp_macro_definition): Similarly.
13022 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
13024 * cppmacro.c (funlike_invocation_p): Don't step back
13027 2002-04-21 David Edelsohn <edelsohn@gnu.org>
13029 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
13032 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
13034 * doc/invoke.texi: Remove Chill references.
13035 * doc/gcc.texi: Update last modified date.
13037 2002-04-20 Kazu Hirata <kazu@hxi.com>
13039 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
13040 push and pop. Replace add.l with add.w.
13042 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
13044 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
13045 multiply instructions for H8/300H case.
13047 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
13049 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
13050 Bum three instructions from each routine.
13052 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
13054 * Makefile.in: Update.
13055 * decl.c (push_c_function_context, pop_c_function_context,
13056 mark_c_function_context): Rename for consistency.
13057 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
13058 * c-tree.h (push_c_function_context, pop_c_function_context,
13059 mark_c_function_context): Rename for consistency.
13060 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13061 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
13062 * function.c (init_lang_status, save_lang_status,
13063 restore_lang_status, mark_lang_status, free_lang_status):
13064 Move to langhooks.h.
13065 (push_function_context_to, pop_function_context_from,
13066 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
13068 * function.h (init_lang_status, save_lang_status,
13069 restore_lang_status, mark_lang_status, free_lang_status):
13070 Move to langhooks.h.
13071 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
13072 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
13073 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
13074 LANG_HOOKS_FUNCTION_INITIALIZER): New.
13075 (LANG_HOOKS_INITIALIZER): Update.
13076 (lhd_do_nothing_f): New.
13077 * langhooks.h (struct lang_hooks_for_functions): New.
13078 (struct lang_hooks): New hooks.
13079 * langhooks.c (lhd_do_nothing_f): New.
13081 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13082 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
13084 2002-04-19 David S. Miller <davem@redhat.com>
13086 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
13087 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
13089 2002-04-19 Jakub Jelinek <jakub@redhat.com>
13091 PR optimization/3756
13092 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
13093 x = ((int) y < 0) ? cst1 : cst2.
13095 2002-04-19 Jakub Jelinek <jakub@redhat.com>
13098 * function.c: Reapply patch for c/6358.
13099 (expand_function_end): Copy decl_rtl's mode, not
13100 current_function_return_rtx mode.
13102 2002-04-19 Joel Sherrill <joel@OARcorp.com>
13104 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
13107 2002-04-19 Tom Tromey <tromey@redhat.com>
13109 * doc/install.texi (Specific): Update status of Solaris 2.8.
13110 For PR libgcj/6158.
13112 2002-04-19 Andreas Schwab <schwab@suse.de>
13114 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
13115 (PUT_REAL): Restore old definition.
13117 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
13118 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13120 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
13121 binutils 2.11.2 and higher generate smaller binaries than Sun's
13124 2002-04-19 Mark Mitchell <mark@codesourcery.com>
13127 * toplev.c (rest_of_compilation): Do not defer functions for which
13128 TREE_SYMBOL_REFERENCED has already been set.
13130 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
13132 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
13135 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
13137 * builtins.c: Include langhooks.h.
13138 (lang_type_promotes_to): Remove.
13139 (expand_builtin_va_arg): Use new hook.
13140 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
13141 (simple_type_promotes_to): Move to c-typeck.c.
13142 * c-common.h (simple_type_promotes_to): Remove.
13143 * c-decl.c (duplicate_decls, grokdeclarator): Update.
13144 * c-format.c: Include langhooks.h.
13145 (check_format_types): Update.
13146 * c-tree.h (c_type_promotes_to): New.
13147 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
13148 (type_lists_compatible_p): Update.
13149 * langhooks-def.h (lhd_type_promotes_to): New.
13150 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
13151 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
13152 * langhooks.c (lhd_type_promotes_to): New.
13153 * langhooks.h (struct lang_hooks_for_types): New hook.
13154 * tree.h (lang_type_promotes_to): Remove.
13156 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
13158 2002-04-18 Richard Henderson <rth@redhat.com>
13160 * function.c: Revert patch for c/6358.
13162 2002-04-18 Richard Henderson <rth@redhat.com>
13164 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
13165 blocks. Handle multiple references to the TRAP block. Handle
13166 non-adjacent THEN and OTHER blocks.
13168 2002-04-18 Richard Henderson <rth@redhat.com>
13170 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
13171 crash with no type for by-mode libcalls.
13173 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
13175 2002-04-18 Bob Wilson <bob.wilson@acm.org>
13177 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
13178 __xtensa_nonlocal_goto): Use a syscall instructions to flush
13179 the register windows.
13181 2002-04-18 Zack Weinberg <zack@codesourcery.com>
13183 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
13184 appropriate. Document need for extended precision even when
13185 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
13186 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
13187 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
13188 instead of relying on later syntax error when REAL_WIDTH > 5.
13189 * real.c: Define NE based only on whether or not we have a
13190 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
13191 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
13192 define GET_REAL and PUT_REAL as simple memcpy operations; no
13193 need to byteswap or round.
13194 Use #error instead of #ifdef-ing out the entire file, for
13195 prompt error detection.
13197 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
13199 2002-04-18 David S. Miller <davem@redhat.com>
13201 * config/sparc/sparc.h (BRANCH_COST): Define.
13203 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
13206 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
13208 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
13209 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
13210 propagate_block calls after relaxation loop using new variable
13211 stabilized_prop_flags.
13213 2002-04-18 Richard Henderson <rth@redhat.com>
13215 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
13216 (ia64_va_arg): Expect variable sized types by reference.
13217 * config/ia64/ia64-protos.h: Update.
13218 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
13219 ia64_function_arg_pass_by_reference.
13221 2002-04-18 Richard Henderson <rth@redhat.com>
13223 * ifcvt.c: Include except.h.
13224 (block_has_only_trap): Break out from find_cond_trap.
13225 (find_cond_trap): Use it. Always delete the trap block.
13226 (merge_if_block): Allow then block null. Be less simplistic about
13227 what insns can end a block.
13228 * Makefile.in (ifcvt.o): Depend on except.h.
13230 * config/ia64/ia64.md (trap, conditional_trap): New.
13232 2002-04-18 Jakub Jelinek <jakub@redhat.com>
13235 * function.c (assign_parms): Assign hard current_function_return_rtx
13237 (expand_function_end): ...not here.
13239 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
13241 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
13242 * c-tree.h (c_incomplete_type_error): New.
13243 * c-typeck.c (require_complete_type, build_component_ref): Update.
13244 (incomplete_type_error): Rename.
13245 * langhooks-def.h (lhd_incomplete_type_error): New.
13246 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
13247 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
13248 * langhooks.c (lhd_incomplete_type_error): New.
13249 * langhooks.h (struct lang_hooks_for_types): New hook.
13250 * tree.c (size_in_bytes): Use new hook.
13251 * tree.h (incomplete_type_error): Remove.
13253 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
13255 2002-04-18 Zack Weinberg <zack@codesourcery.com>
13257 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
13258 TARGET_FLOAT_FORMAT blocks.
13260 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13262 * doc/install.texi (Downloading the source): Do not mention Chill
13263 any longer, but mention Ada.
13264 (Configuration): Do not mention Chill any longer.
13266 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
13268 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
13270 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
13272 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
13275 2002-04-18 Jakub Jelinek <jakub@redhat.com>
13277 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
13278 instead of unsigned_type.
13280 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
13282 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
13283 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
13286 2002-04-18 Bernd Schmidt <bernds@redhat.com>
13288 * attribs.c (vector_type_node_list): New static variable.
13289 (handle_vector_size_attribute): Use it to avoid generating a
13290 new type node each time we are called.
13292 * combine.c (subst): Avoid trying to make a vector mode subreg of
13293 an integer constant.
13294 (gen_lowpart_for_combine): Likewise.
13296 2002-04-18 Roger Sayle <roger@eyesopen.com>
13297 Jakub Jelinek <jakub@redhat.com>
13299 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
13300 for integer constant c (if x has unsigned type or sign bit is not
13301 set in c). This folds the zero/sign extension into the bit-wise and
13304 2002-04-18 Jakub Jelinek <jakub@redhat.com>
13307 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
13310 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
13312 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
13314 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
13316 * gcc.c (read_specs): Detect and fail if an attempt is made to
13317 rename a spec string to an already existing string.
13319 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
13321 * config/s390/s390.c (legitimize_pic_address): Do not generate
13322 illegal address constant without CONST.
13324 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13326 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
13327 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13329 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
13331 PR optimization/6305
13332 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
13333 to make sure previous reloads are taken into account. Generate
13334 better code if one operand is an in-range immediate constant.
13336 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
13338 * doc/install.texi (Building): libgcj requires GNU make.
13340 2002-04-17 Jakub Jelinek <jakub@redhat.com>
13343 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
13344 even if hard quad and register is not floating.
13345 (movtf reg<-mem split): Disallow splitting if hard quad and
13346 register is floating.
13347 (movtf mem<-reg split): Likewise.
13348 * config/sparc/sparc.c (fp_register_operand): New predicate.
13349 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
13351 2002-04-17 Zack Weinberg <zack@codesourcery.com>
13353 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
13354 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
13355 (unprotoize.o): Ditto. Build from protoize.c. Define
13356 UNPROTOIZE on command line.
13357 * protoize.c: Include cppdefault.h. Delete include_defaults.
13358 (in_system_include_dir): Use cpp_include_defaults (defined in
13360 * unprotoize.c: Delete file.
13362 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
13364 * config/rs6000/altivec.h (vec_ld): Add array variants.
13368 2002-04-17 Alan Matsuoka <alanm@redhat.com>
13369 Aldy Hernandez <aldyh@redhat.com>
13371 * config/rs6000/altivec.h: Define __ALTIVEC__.
13376 (vec_vmaddfp): New.
13378 Add parentheses to all macro arguments.
13380 2002-04-16 Richard Henderson <rth@redhat.com>
13383 * except.c (remove_eh_handler): Insert inner regions at beginning
13384 of sibling chain. Refactor expressions.
13386 2002-04-16 Richard Henderson <rth@redhat.com>
13388 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
13389 * config/sparc/sol2-gas-bi.h: New file.
13390 * config.gcc (sparc*-solaris): Add it as needed.
13391 * configure.in (AS_SPARC64_FLAG): Remove check.
13392 * config.in, configure: Regenerate.
13394 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
13396 2002-04-16 Richard Henderson <rth@redhat.com>
13398 * config/mips/mips.c (override_options): Don't override N32 for
13402 * config/mips/mips.md (can_delay): Split out of existing define_delays.
13403 (HILO_delay): Set can_delay false.
13405 2002-04-16 Dale Johannesen <dalej@apple.com>
13407 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
13408 instruction addresses.
13409 (rs6000_output_function_epilogue): Likewise.
13411 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
13413 * c-parse.in (poplevel, compstmt_start,
13414 compstmt_primary_start): Add ending ';', in accordance
13417 2002-04-16 Richard Henderson <rth@redhat.com>
13419 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
13420 Adjust tm_file order to get TARGET_DEFAULT set properly.
13421 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
13422 * doc/install.texi (sparc-solaris): Update.
13424 2002-04-16 Dale Johannesen <dalej@apple.com>
13426 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
13427 comparison operands do not match each other or if modes of
13428 conditions do not match result.
13430 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
13433 * config/s390/s390.md (mulsidi3): Set both subregs of the
13434 multiword register.
13436 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
13438 * config/rs6000/altivec.h (vec_addc): Type check.
13440 2002-04-16 Jakub Jelinek <jakub@redhat.com>
13443 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
13445 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
13447 2002-04-15 Richard Henderson <rth@redhat.com>
13449 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
13450 call_really_used_regs too.
13452 2002-04-15 Richard Henderson <rth@redhat.com>
13454 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
13456 2002-04-15 David S. Miller <davem@redhat.com>
13458 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
13459 as being CLOBBERed.
13461 2002-04-16 Jakub Jelinek <jakub@redhat.com>
13464 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
13465 CONST_VECTOR is { 0, ... 0 }.
13467 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
13469 * doc/install.texi (Installing GCC: Configuration): Clarify
13470 the only supported ways to configure gcc.
13472 2002-04-15 Roland McGrath <roland@frob.com>
13474 * config.gcc (alpha*-*-gnu*): New target configuration.
13475 * config/alpha/gnu.h: New file for it.
13476 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
13478 2002-04-16 Mark Mitchell <mark@codesourcery.com>
13480 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
13481 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
13482 * tree.h (expand_start_stmt_expr): Update prototype.
13483 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
13484 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
13485 on the STMT_EXPR created for the inline function.
13487 2002-04-15 Richard Henderson <rth@redhat.com>
13489 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
13490 config/i386/linux-aout.h, config/i386/linux-oldld.h,
13491 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
13492 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
13493 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
13494 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
13495 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
13496 Define __gnu_linux__, not gnu_linux.
13497 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
13499 2002-04-15 Mark Mitchell <mark@codesourcery.com>
13501 Remove Chill front end.
13502 * gcc.c (default_compilers): Remove Chill entries.
13503 * ch: Remove directory.
13504 * doc/frontends.texi: Remove information about Chill.
13505 * doc/sourcebuild.texi: Likewise.
13506 * doc/standards.texi: Likewise.
13508 2002-04-15 Douglas B Rupp <rupp@gnat.com>
13510 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
13511 (LONGLONG_STANDALONE): Define.
13513 2002-04-15 David S. Miller <davem@redhat.com>
13515 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
13516 Call emit_library_call with LCT_NORMAL.
13517 (sparc_initialize_trampoline): Use LCT_foo instead of
13518 magic constant in emit_library_call invocations.
13519 (sparc64_initialize_trampoline): Likewise.
13520 (sparc_profile_hook): Likewise.
13521 * config/sparc/sparc.md: Likewise.
13523 * config/sparc/sparc.c (sparc_extra_constraint_check):
13524 Fix type of argument 'c'.
13525 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
13528 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
13530 * diagnostic.h (output_buffer_state): Redefine.
13531 (output_format_decoder): New macro.
13532 (output_prefixing_rule): Likewise.
13533 (output_line_cutoff): Likewise.
13534 (diagnostic_format_decoder): Adjust.
13535 (diagnostic_prefixing_rule): Likewise.
13536 (diagnostic_line_cutoff): Likewise.
13537 (diagnostic_state): Likewise.
13538 (diagnostic_kind_count): Likewise.
13539 (diagnostic_buffer): Now a macro.
13541 * diagnostic.c (diagnostic_buffer): Remove definition.
13542 (output_is_line_wrapping): Adjust.
13543 (set_real_maximum_length): Likewise.
13544 (output_set_maximum_length): Likewise.
13545 (init_output_buffer): Likewise.
13546 (lhd_print_error_function): Likewise.
13547 (output_do_verbatim): Likewise.
13549 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
13551 * cpperror.c (print_location): Don't print include chain
13553 (cpp_begin_message): Update to use DL_ macros.
13554 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
13555 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
13556 cpp_notice, cpp_notice_from_errno): Remove.
13557 (cpp_error, cpp_error_with_line): Update to take a diagnostic
13560 * cppexp.c (CPP_ICE): Remove.
13561 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
13562 lex, integer_overflow, _cpp_parse_expr): Update.
13563 * cppfiles.c (read_include_file, find_include_file,
13564 handle_missing_header, _cpp_read_file, remap_filename): Update.
13565 * cpphash.h (enum error_type): Remove.
13566 (_cpp_begin_message): Update.
13567 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
13568 cpp_handle_option, cpp_post_options): Update.
13569 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
13570 skip_whitespace, parse_identifier, parse_slow, parse_string,
13571 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
13572 cpp_interpret_charconst): Update.
13573 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
13574 lex_macro_node, do_undef, glue_header_name, parse_include,
13575 do_include_common, read_flag, do_line, do_linemarker, do_ident,
13576 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
13577 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
13578 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
13579 _cpp_pop_buffer, do_diagnostic): Update.
13580 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
13581 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
13582 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
13583 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
13584 cpp_notice, cpp_notice_from_errno): Remove.
13585 (cpp_error, cpp_error_with_line): Update to take a diagnostic
13588 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
13589 collect_args, enter_macro_context, save_parameter, parse_params,
13590 _cpp_create_definition, check_trad_stringification,
13591 cpp_macro_definition): Update.
13592 * cppmain.c (cpp_preprocess_file): Update.
13593 * fix-header.c (read_scan_file): Update.
13595 2002-04-14 Andreas Schwab <schwab@suse.de>
13597 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
13599 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
13601 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
13603 2002-04-13 Mark Mitchell <mark@codesourcery.com>
13605 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
13608 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
13610 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
13612 2002-04-13 Joel Sherrill <joel@OARcorp.com>
13614 * config/sparc/t-elf: Enable v8 multilibs. Impacts
13615 sparc-elf and sparc-rtems targets.
13617 2002-04-13 Mark Mitchell <mark@codesourcery.com>
13619 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
13620 defined, and __gnu_hurd__ wherever __GNU__ is defined.
13621 * arm/linux-elf.h: Likewise.
13622 * cris/aout.h: Likewise.
13623 * cris/linux.h: Likewise.
13624 * i370/linux.h: Likewise.
13625 * i386/gnu.h: Likewise.
13626 * i386/linux-aout.h: Likewise.
13627 * i386/linux-oldld.h: Likewise.
13628 * i386/linux.h: Likewise.
13629 * i386/linux64.h: Likewise.
13630 * ia64/linux.h: Likewise.
13631 * m68k/linux-aout.h: Likewise.
13632 * m68k/linux.h: Likewise.
13633 * mips/linux.h: Likewise.
13634 * pa/pa-linux.h: Likewise.
13635 * pj/linux.h: Likewise.
13636 * rs6000/sysv4.h: Likewise.
13637 * s390/linux.h: Likewise.
13638 * sh/linux.h: Likewise.
13639 * sparc/linux-aout.h: Likewise.
13640 * sparc/linux.h: Likewise.
13641 * sparc/linux64.h: Likewise.
13642 * xtensa/linux.h: Likewise.
13644 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
13646 * stmt.c (check_unique_operand_names): Expect operand names to
13647 be strings rather than identifiers. Use simple_cst_equal to
13649 (resolve_operand_name_1): Make same identifier to string change here.
13650 * c-parse.in (asm_operand): Convert a named operand into a string.
13651 * cp/parse.y (asm_operand): Likewise.
13653 2002-04-13 Andreas Schwab <schwab@suse.de>
13655 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
13657 2002-04-12 Mark Mitchell <mark@codesourcery.com>
13659 Revert these changes:
13661 2002-04-06 Mark Mitchell <mark@codesourcery.com>
13664 * stor-layout.c (layout_decl): Reset the RTL for the decl.
13666 2002-04-12 Richard Henderson <rth@redhat.com>
13668 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
13669 (sparc*-*-solaris): Clean up header files.
13670 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
13671 and plan on generating 64-bit code.
13672 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
13673 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
13674 * config/sparc/sol2-sld-64.h: Rename ...
13675 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
13676 for AS_SPARC64_FLAG not defined.
13677 * config/sparc/sol2-gld-bi.h: New.
13678 * config/sparc/sol2-sld.h: Remove.
13679 * config/sparc/sol26-sld.h: New.
13680 * config/sparc/sol2.h: Tidy comments.
13681 * doc/install.texi: Document sparc-solaris configury changes.
13683 2002-04-12 Richard Henderson <rth@redhat.com>
13685 * recog.c (offsettable_address_p): Match the logic in adjust_address.
13687 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
13688 in 64-bit mode only. Use only for 32-bit or MEDLOW.
13690 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13692 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
13694 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
13696 * pa.c (pa_can_combine_p): Call extract_insn before calling
13697 constrain_operands.
13699 2002-04-12 Douglas B Rupp <rupp@gnat.com>
13701 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
13702 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
13703 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
13704 (CPP_PREDEFINES): Handle __declspec.
13705 * config/i386/t-interix (USER_H): Remove.
13707 2002-04-12 DJ Delorie <dj@redhat.com>
13709 * integrate.c (compare_blocks): Make comparisons safe for when
13710 sizeof(int) < sizeof(char *).
13711 (find_block): Likewise.
13713 2002-04-12 Jan Hubicka <jh@suse.cz>
13714 David Edelsohn <edelsohn@gnu.org>
13716 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
13718 (symbol_ref_operand): New.
13719 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
13720 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
13722 2002-04-12 Andreas Schwab <schwab@suse.de>
13724 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
13725 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
13726 overrides the definition in config/svr4.h.
13728 2002-04-12 Eric Norum <eric.norum@usask.ca>
13730 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
13731 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
13732 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
13733 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
13734 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
13735 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
13736 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
13737 definitions to config/rtems.h and make the targets more similar.
13739 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13741 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
13742 POINTERS_EXTEND_UNSIGNED.
13743 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
13744 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
13746 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
13749 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
13751 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
13752 depends on TARGET_SHMEDIA, not TARGET_SH5.
13754 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
13756 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
13757 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
13759 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
13761 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
13764 2002-04-12 Andreas Schwab <schwab@suse.de>
13766 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
13768 2002-04-12 Richard Henderson <rth@redhat.com>
13771 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
13773 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
13774 modes spanning multiple hard regs.
13776 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
13778 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
13780 * pa.c (pa_output_function_prologue): Don't accumulate the total
13781 number of code bytes when using TARGET_64BIT, or gas, SOM and not
13782 the portable runtime.
13783 (output_deferred_plabels): Handle 64bit plabels.
13784 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
13785 generating pic code using the GAS assembler for object formats that
13786 are not SOM (ie., ELF32 and ELF64).
13787 (output_millicode_call): Check attribute type if attribute length is 28.
13788 Likewise use $PIC_pcrel$0. Only call get_attr_length and
13789 dbr_sequence_length once.
13790 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
13791 dbr_sequence_length once.
13792 * pa.h (TARGET_SOM): Define if not defined.
13793 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
13794 with GAS and not SOM.
13795 (jump, call_internal_reg, call_value_internal_reg): Likewise.
13796 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
13798 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13800 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
13801 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
13802 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
13803 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
13804 elfos.h and dbxelf.h values are fine now.
13805 * config/i386/freebsd.h, config/alpha/freebsd.h
13806 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
13808 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13810 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
13811 or set Acpu or Amachine. Reformat.
13812 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13814 (LINK_SPEC): Do not need to undef.
13815 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
13816 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
13817 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13819 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
13820 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
13821 (LINK_SPEC): Do not need to undef.
13822 (DONT_USE_BUILTIN_SETJMP): Do not define.
13823 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
13824 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
13825 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
13826 Remove trailing spaces.
13827 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
13828 __ELF__, or set Acpu or Amachine. Reformat.
13829 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
13832 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13834 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
13835 all other *-*-freebsd* targets.
13837 2002-04-11 Richard Henderson <rth@redhat.com>
13839 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
13841 2002-04-11 David O'Brien <obrien@FreeBSD.org>
13843 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
13844 Include {cpu}/{cpu}.h thru tm_file.
13845 (alpha*-*-linux*ecoff): Remove target.
13846 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
13847 (LINK_SPEC): Remove, is not OS independent.
13848 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
13849 (LINK_SPEC): Do not need to #undef any longer.
13850 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
13852 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
13854 (LINK_SPEC): Moved here from alpha/elf.h.
13855 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
13856 SUB_CPP_PREDEFINES.
13857 * config/alpha/linux-ecoff.h: Remove.
13858 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
13859 (CPP_SPEC): Define _POSIX_SOURCE as needed.
13860 (CPP_SUBTARGET_SPEC): Do not define.
13861 (LINK_SPEC): Do not need to #undef any longer.
13862 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
13863 * config/alpha/vms.h: Likewise.
13865 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
13867 * doc/extend.texi: Remove old claim that typedefs cannot have
13868 an alignment attribute.
13870 2002-04-11 Jakub Jelinek <jakub@redhat.com>
13872 PR optimization/6177
13873 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
13874 bitpos is 0 and bitsize CONCAT size.
13876 2002-04-11 Jakub Jelinek <jakub@redhat.com>
13879 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
13881 2002-04-10 David O'Brien <obrien@FreeBSD.org>
13883 * config/alpha/freebsd.h: Minor reformatting.
13884 (CPP_SPEC): Define ELF and add cpp_subtarget.
13885 (ASM_SPEC): No longer needed.
13887 2002-04-11 Richard Henderson <rth@redhat.com>
13889 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
13890 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
13891 (dimode mem/zero splitter): New.
13893 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
13895 * config/cris/cris.c (cris_override_options): Tweak error message
13896 for PIC not implemented.
13898 * config/cris/cris.h: Tweak comments related to parameter-passing.
13900 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
13902 2002-04-10 Richard Henderson <rth@redhat.com>
13904 * except.c (add_ehl_entry): Allow duplicates after landing pad
13907 2002-04-10 David Edelsohn <edelsohn@gnu.org>
13909 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
13911 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
13913 * c-decl.c (c_init_decl_processing): Move generation of
13914 decls for g77_integer_type_node and friends from here ...
13915 * c-common.c (c_common_nodes_and_builtins): ... to here.
13917 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
13919 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
13920 is only used as frame pointer when frame_pointer_needed is true.
13922 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
13925 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
13926 for the fact that the pool entry uses two words.
13927 (movdf_hard_insn): Similarly. Also, ADR instruction can span
13929 (movdf_soft_insn): Similarly.
13930 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
13931 for the fact that the pool entry uses three words.
13933 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
13935 * config/mips/mips.c (mips_va_arg): When using the struct version
13936 of the EABI va_list, allow arguments in the register save area to
13937 take up less room than a stack argument.
13939 2002-04-10 Richard Henderson <rth@redhat.com>
13941 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
13942 if EXPAND_INITIALIZER.
13944 2002-04-09 Richard Henderson <rth@redhat.com>
13946 * config/alpha/alpha.md (movdi_er_maybe_g): New.
13947 * config/alpha/alpha.c (alpha_expand_mov): Use it.
13949 2002-04-10 Alan Modra <amodra@bigpond.net.au>
13951 PR optimization/6233
13952 * rtlanal.c (pure_call_p): New function.
13953 * rtl.h (pure_call_p): Declare.
13954 * loop.c (prescan_loop): Use it to set has_nonconst_call.
13955 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
13957 2002-04-09 Eric Christopher <echristo@redhat.com>
13959 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
13960 information to .comm directive.
13962 2002-04-09 Richard Henderson <rth@redhat.com>
13965 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
13967 2002-04-09 Richard Henderson <rth@redhat.com>
13969 * basic-block.h (flow_delete_block_noexpunge): Declare.
13970 (expunge_block_nocompact): Declare.
13971 * cfg.c (expunge_block_nocompact): Split out from ...
13972 (expunge_block): ... here.
13973 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
13974 (flow_delete_block_noexpunge): Split out from ...
13975 (flow_delete_block): ... here.
13976 * cfgcleanup.c (delete_unreachable_blocks): Compact while
13977 removing dead blocks.
13978 * except.c (exception_handler_labels): Remove.
13979 (exception_handler_label_map): New.
13980 (struct eh_region): Add aka member.
13981 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
13982 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
13983 (for_each_eh_label, for_each_eh_label_1): New.
13984 (init_eh): Register exception_handler_label_map.
13985 (free_eh_status): Use free_region.
13986 (find_exception_handler_labels): Use the map, not the list.
13987 (remove_exception_handler_label): Likewise.
13988 (maybe_remove_eh_handler): Likewise.
13989 (remove_eh_handler): Use the region aka bitmap.
13990 * except.h (exception_handler_labels): Remove.
13991 (for_each_eh_label): Declare.
13992 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
13993 * loop.c (invalidate_loops_containing_label): New.
13994 (find_and_verify_loops): Use it. Use for_each_eh_label.
13995 * sched-rgn.c (is_cfg_nonregular): Use
13996 current_function_has_exception_handlers.
13998 2002-04-09 Richard Henderson <rth@redhat.com>
14000 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
14001 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
14002 Do not return changed status.
14003 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
14004 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
14005 New functions that do return changed status.
14006 * sbitmap.h: Update decls.
14007 * gcse.c, lcm.c: Use _cg functions as needed.
14009 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
14011 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
14012 (sh64-*-elf*, sh-*-rtemself*): Likewise.
14013 * config/sh/embed_bb.c: New file.
14014 * config/sh/embed-elf.h: New file.
14015 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
14016 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
14017 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
14019 (SUBTARGET_CPP_PTR_SPEC): Don't define.
14020 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
14021 Add subtarget_asm_endian_spec.
14022 (ASM_SPEC): Use subtarget_asm_endian_spec.
14023 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
14024 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
14025 (WCHAR_UNSIGNED): Define.
14026 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
14027 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
14028 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
14030 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
14031 (sh_adjust_cost): Likewise.
14032 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
14034 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
14035 (WCHAR_TYPE_SIZE): Likewise.
14036 (ASM_SPEC): Use subtarget_asm_endian_spec.
14037 (SH_ELF_WCHAR_TYPE): #undef/ #define.
14038 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
14039 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
14040 (MAX_WCHAR_TYPE_SIZE): Don't #define .
14041 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
14042 (USER_LABEL_PREFIX): Don't #undef /#define .
14043 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
14044 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
14045 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
14046 (ASM_SPEC): Likewise.
14047 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
14048 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
14049 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
14050 (LIB2FUNCS_EXTRA): Define.
14051 * t-sh64 (LIB2FUNCS_EXTRA): Define.
14052 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
14053 (LIB1ASMFUNCS_CACHE): Define.
14054 (LIB2FUNCS_EXTRA): Redefine empty.
14056 2002-04-08 Richard Henderson <rth@redhat.com>
14058 * reorg.c (get_branch_condition): Use reversed_comparison_code.
14060 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14062 * config/m68hc11/larith.asm (__map_data_section): Fix condition
14063 and optimize for size.
14064 (__do_global_ctors): Fix pointer comparison.
14065 (__do_global_dtors): Likewise.
14067 2002-04-09 David S. Miller <davem@redhat.com>
14069 * config/sparc/sparc.c (sparc_extra_constraint_check): New
14070 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
14071 allow reloading pseudos.
14072 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
14073 * config/sparc/sparc-protos.h: Declare it.
14075 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
14076 unsigned comparison warning.
14077 (output_restore_regs): Mark leaf_function as unused.
14079 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14081 * expr.c (is_aligning_offset): New function.
14082 (expand_expr, case COMPONENT_EXPR): Call it.
14084 2002-04-08 David S. Miller <davem@redhat.com>
14087 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
14089 Make init_priority work on Sparc when using GNU ld.
14090 * config/sparc/linux.h, config/sparc/linux64.h,
14091 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
14092 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
14093 * config/sparc/sol2-gld.h: New file to do the same.
14094 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
14095 sparc/sol2-gld.h to tm_file.
14097 PR optimization/4328
14098 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
14099 * doc/md.texi: Document it.
14100 * config/sparc/sparc.md (movdi_insn_sp64_novis,
14101 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
14102 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
14103 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
14104 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
14106 2002-04-08 Andreas Jaeger <aj@suse.de>
14108 * stmt.c (expand_asm_operands): Revert last patch from Richard
14111 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14113 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
14114 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
14116 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14118 * doc/contrib.texi (Contributors): Add David O'Brien.
14120 2002-04-08 Alan Modra <amodra@bigpond.net.au>
14122 * configure.in (auto-build.h): Use target_alias and build_alias
14123 when running configure.
14124 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
14125 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
14126 * configure: Regenerate.
14128 2002-04-07 David S. Miller <davem@redhat.com>
14130 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
14132 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
14135 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
14136 generating 32-bit pic code.
14138 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
14140 * cppinit.c (cpp_create_reader): Initialize
14141 discard_comments_in_macro_exp.
14142 (COMMAND_LINE_OPTIONS): Add "-CC" option.
14143 (cpp_handle_option): Handle "-CC" option.
14144 * cpplex.c (save_comment): If saving a C++ comment in
14145 a directive, convert it to a C comment.
14146 (_cpp_lex_direct): Pass second comment start character to
14147 save_comment to indicate comment type.
14148 * cpplib.c (_cpp_handle_directive): If processing
14149 a "#define" directive and discard_comments_in_macro_exp
14150 is false, re-enable saving of comments.
14151 (lex_macro_node): If discard_comments_in_macro_exp is false,
14152 discard any comments before the macro identifier.
14153 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
14155 * cppmacro.c (cpp_get_token): If expanding a macro while
14156 processing a directive, discard any comments we might encounter.
14157 (parse_params): If discard_comments_in_macro_exp is false,
14158 ignore comments in the macro parameter list.
14159 * gcc.c (cpp_unique_options): Add "-CC" option.
14160 (option_map): Map "--comments-in-macros" to "-CC".
14161 * doc/cppopts.texi: Document "-CC" option.
14162 * f/lang-specs.h: Add "-CC" option.
14163 * testsuite/gcc.dg/cpp/maccom1.c: New test.
14164 * testsuite/gcc.dg/cpp/maccom2.c: New test.
14165 * testsuite/gcc.dg/cpp/maccom3.c: New test.
14166 * testsuite/gcc.dg/cpp/maccom4.c: New test.
14167 * testsuite/gcc.dg/cpp/maccom5.c: New test.
14168 * testsuite/gcc.dg/cpp/maccom6.c: New test.
14170 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
14173 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
14175 2002-04-06 Mark Mitchell <mark@codesourcery.com>
14178 * stor-layout.c (layout_decl): Reset the RTL for the decl.
14181 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
14182 RTX_UNCHANGING_P for the functions arguments when a tail call
14185 2002-04-06 Jason Merrill <jason@redhat.com>
14187 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
14188 (parse_options_and_default_flags): Set them appropriately.
14189 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
14191 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
14193 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
14196 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
14199 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
14200 types come in by-reference. Fix typo in comment.
14202 2002-04-05 David S. Miller <davem@redhat.com>
14204 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
14205 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
14206 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
14207 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
14209 2002-04-05 David S. Miller <davem@redhat.com>
14211 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
14212 are not going to emit return instructions, emit at least a nop
14213 for the sake of sane backtraces.
14215 2002-04-05 Richard Henderson <rth@redhat.com>
14217 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
14219 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
14221 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
14223 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
14225 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
14226 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
14227 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
14229 2002-04-05 Andreas Schwab <schwab@suse.de>
14231 * c-convert.c: Include c-common.h.
14232 * Makefile.in (c-convert.o): Updated.
14234 2002-04-05 Jakub Jelinek <jakub@redhat.com>
14236 * mklibgcc.in: Use separate libgcc.map for each multilib.
14237 * Makefile.in (distclean): Don't remove libgcc.map here.
14239 2002-04-05 Jakub Jelinek <jakub@redhat.com>
14241 * Makefile.in (s-mlib): Handle --disable-multilib by separate
14242 genmultilib invocation.
14244 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
14246 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
14247 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
14248 to num_gprs for symmetry.
14249 * config/mips/mips.c: Adjust accordingly.
14251 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
14253 * c-common.c (truthvalue_conversion): Rename, update.
14254 * c-common.h (c_common_truthvalue_conversion): New.
14255 * c-convert.c (convert): Update.
14256 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
14257 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
14258 * c-typeck.c (build_binary_op, build_unary_op,
14259 build_conditional_expr): Update.
14260 * fold-const.c (constant_boolean_node, fold): Use langhook.
14261 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
14262 * langhooks.h (struct lang_hooks): New hook.
14263 * stmt.c (expand_decl_cleanup): Use langhook.
14264 * tree.h (truthvalue_conversion): Remove.
14266 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
14268 2002-04-05 Alan Modra <amodra@bigpond.net.au>
14270 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
14271 Add rules to make null object file.
14273 2002-04-04 Jim Blandy <jimb@redhat.com>
14275 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
14276 macro formal parameter names.
14278 2002-04-04 David S. Miller <davem@redhat.com>
14280 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
14282 2002-04-04 Richard Henderson <rth@redhat.com>
14285 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
14286 Support copies into and out of memory. Don't accept allows_reg
14287 and allows_mem as gospel.
14289 2002-04-04 Richard Henderson <rth@redhat.com>
14292 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
14293 (write_dependence_p): Likewise.
14295 2002-04-04 Richard Henderson <rth@redhat.com>
14297 * predict.c (estimate_bb_frequencies): Do frequency calculation
14298 with a volatile temporary.
14300 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
14302 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
14304 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14307 * final.c (final_start_function): Don't bump profile_label_no here...
14308 (final_end_function): ...but here.
14310 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14312 * config/sparc/sparc.md (pic): New attribute.
14313 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
14315 (split after do_builtin_setjmp_setup): New.
14317 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14320 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
14323 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14325 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
14326 UNITS_PER_WORD for zero sized aggregates.
14328 2002-04-03 David S. Miller <davem@redhat.com>
14330 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
14331 one-character spec for this, just use %(link_gcc_c_sequence).
14333 2002-04-03 David S. Miller <davem@redhat.com>
14335 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
14338 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
14340 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
14341 (DWARF_FRAME_RETURN_COLUMN): Move.
14342 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14343 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
14344 * pa.c (except.h, predict.h): Include.
14346 (store_reg_modify, set_reg_plus_d): Revise prototypes.
14347 (output_ascii): Add cast.
14348 (store_reg_modify): Revise to add frame notes.
14349 (set_reg_plus_d): Likewise.
14350 (compute_frame_size): Include space for eh data registers in frame if
14351 the current function calls eh_return.
14352 (hppa_expand_prologue): Ensure register %r2 is saved if the current
14353 function calls eh_return. Save eh data registers if the current
14354 function calls eh_return. Fix code to add frame notes. Emit
14355 blockage to prevent insns with frame notes being scheduled in the
14356 delay slot of calls.
14357 (hppa_expand_epilogue): Restore eh data registers and do final stack
14358 adjustment if the current function calls eh_return. Don't add frame
14360 (output_call): Revise for change in length of call insn. Don't do
14361 return pointer adjustment for an unconditional jump in the delay slot
14362 of a call when using frame notes.
14363 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
14364 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
14365 (ARG_POINTER_CFA_OFFSET): Define.
14366 * pa.md (return_external_pic): New pattern.
14367 (prologue): Correct formatting. Use return_external_pic if current
14368 function calls eh_return.
14369 (call_internal_symref, call_value_internal_symref,
14370 sibcall_internal_symref, sibcall_value_internal_symref): Change default
14371 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
14373 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
14375 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
14376 list of targets to check using "nop" insn.
14377 * configure: Rebuilt.
14379 2002-04-04 Alan Modra <amodra@bigpond.net.au>
14381 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
14383 2002-04-03 David S. Miller <davem@redhat.com>
14385 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
14386 library sequence passed to the linker.
14387 (LINK_COMMAND_SPEC): Use it.
14388 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
14389 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
14390 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14392 2002-04-03 Jason Merrill <jason@redhat.com>
14394 * except.c (struct eh_status): Remove protect_list.
14395 (begin_protect_partials, end_protect_partials): Remove.
14396 (add_partial_entry): Remove.
14397 * except.h: Remove prototypes.
14399 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
14400 expand_decl_cleanup_eh.
14403 * tree.h (CLEANUP_EH_ONLY): New macro.
14404 * stmt.c (expand_decl_cleanup_eh): New fn.
14405 (expand_cleanups): Check CLEANUP_EH_ONLY.
14406 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
14407 Use expand_decl_cleanup_eh.
14408 (expand_stmt): Adjust.
14409 * c-common.h: Adjust prototype.
14411 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
14413 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
14414 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
14415 (cris_target_asm_function_epilogue): Ditto.
14416 (cris_initial_frame_pointer_offset): Ditto.
14417 (cris_simple_epilogue): Ditto.
14418 (cris_expand_builtin_va_arg): Variable-size types come in
14421 2002-04-03 David S. Miller <davem@redhat.com>
14423 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
14425 (set_fast_math): Correct 'fsr' type.
14427 2002-04-03 Richard Henderson <rth@redhat.com>
14430 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
14431 * toplev.c (check_global_declarations): Use it.
14432 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
14433 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
14434 (LANG_HOOKS_DECLS): Add it.
14435 * langhooks.c (lhd_warn_unused_global_decl): New.
14436 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
14437 * c-objc-common.c (c_warn_unused_global_decl): New.
14438 * c-tree.h (c_warn_unused_global_decl): Declare.
14439 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
14441 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
14443 * langhooks-def.h (lhd_set_decl_assembler_name,
14444 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
14445 (LANG_HOOKS_INITIALIZER): Update.
14446 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
14447 * langhooks.h (struct lang_hooks): New hook.
14448 * tree.c (set_decl_assembler_name): Move to langhooks.c.
14449 (lang_set_decl_assembler_name): Remove.
14450 (init_obstacks): Don't set hook.
14451 (decl_assembler_name): New function.
14452 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
14453 (decl_assembler_name): New.
14454 (lang_set_decl_assembler_name): Remove.
14456 2002-04-03 Jakub Jelinek <jakub@redhat.com>
14458 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
14459 works properly with .hidden symbols.
14460 * configure: Rebuilt.
14461 * config.in: Rebuilt.
14462 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
14463 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
14464 properly with .hidden symbols.
14466 2002-04-03 Jakub Jelinek <jakub@redhat.com>
14469 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
14472 2002-04-03 Richard Henderson <rth@redhat.com>
14475 * sched-rgn.c (sets_likely_spilled): New.
14476 (sets_likely_spilled_1): New.
14477 (add_branch_dependences): Use it.
14479 2002-04-02 Richard Henderson <rth@redhat.com>
14482 * loop.h (LOOP_FIRST_PASS): New.
14483 * loop.c (strength_reduce): Mind it when deciding to unroll.
14484 * toplev.c (rest_of_compilation): Set it.
14486 2002-04-02 David S. Miller <davem@redhat.com>
14488 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
14489 mems_ok_for_ldd_peep when the order of the loads being examined
14491 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
14492 existing comment to increase comprehension of this situation.
14494 2002-04-02 Zack Weinberg <zack@codesourcery.com>
14496 * config/sh/sh.md: Don't use union real_extract.
14498 2002-04-02 Richard Henderson <rth@redhat.com>
14500 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
14502 2002-04-02 David O'Brien <obrien@FreeBSD.org>
14504 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
14505 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
14506 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
14507 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
14508 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
14509 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
14510 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
14511 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
14512 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
14513 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
14514 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
14515 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
14516 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
14517 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
14518 Include as many configury headers via tm_file as possible. This
14519 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
14520 * config/openbsd-oldgas.h: New file.
14521 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
14522 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
14523 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
14524 config/i386/i386-coff.h, config/i386/i386-interix.h,
14525 config/i386/iscdbx.h, config/i386/linux-aout.h,
14526 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
14527 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
14528 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
14529 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
14530 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
14531 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
14532 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
14533 config/i386/vxi386.h: Do not directly include configury headers.
14534 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
14535 Directly include configury headers that are no longer automatically
14536 included by the above headers.
14537 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
14538 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
14539 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
14540 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
14541 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
14542 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
14543 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
14544 (TARGET_VERSION): Define.
14545 * config/i386/beos-elf.h, config/i386/freebsd.h,
14546 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
14547 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
14548 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
14549 config/i386/sco5.h, config/i386/sysv4.h
14550 (TARGET_VERSION): Do not need to protect.
14551 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
14552 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
14553 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
14554 config/i386/i386-interix.h, config/i386/linux-aout.h,
14555 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
14556 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
14557 (YES_UNDERSCORES): Do not define - not needed.
14558 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
14559 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
14560 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
14561 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
14562 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
14563 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
14564 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
14565 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
14567 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
14568 Richard Henderson <rth@redhat.com>
14571 * function.c (assign_temp): Accept either type or decl argument.
14572 Detect variables whose size is too large to fit into an integer.
14573 * stmt.c (expand_decl): Pass the decl, not the type.
14575 2002-04-02 David O'Brien <obrien@FreeBSD.org>
14577 * protoize.c: Match include directory usage with cppdefault.c.
14579 2002-04-03 Jeffrey A Law (law@redhat.com)
14580 Hans-Peter Nilsson <hp@bitrange.com>
14582 * combine.c (simplify_comparison): Avoid narrowing a comparison
14583 with a paradoxical subreg when doing so would drop signficant bits.
14585 2002-04-02 Steve Ellcey <sje@cup.hp.com>
14587 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
14588 if POINTERS_EXTEND_UNSIGNED is defined.
14590 2002-04-02 Richard Henderson <rth@redhat.com>
14593 * local-alloc.c (contains_replace_regs): LO_SUM may contain
14596 2002-04-02 Richard Henderson <rth@redhat.com>
14598 * doc/standards.texi: Document required freestanding libc entry points.
14600 2002-04-02 Alan Modra <amodra@bigpond.net.au>
14602 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
14603 associated splitter. Remove MQ constraint.
14604 (ctrdi_internal4): Correct CCmode clobber.
14606 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
14608 * milli64.S ($$dyncall): New function.
14609 * t-linux (LIB1ASMFUNCS): Revise module list.
14610 (LIB1ASMSRC): Use pa/milli64.S.
14612 2002-04-02 Richard Henderson <rth@redhat.com>
14614 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
14615 rename solaris_sys_varargs_h.
14617 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14619 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
14620 the same mode as its component.
14622 2002-04-02 Richard Henderson <rth@redhat.com>
14625 * final.c (this_is_asm_operands): Export.
14626 * output.h (this_is_asm_operands): Declare.
14627 * config/i386/i386.c (print_operand): Error odd asm operands.
14629 2002-04-02 Richard Henderson <rth@redhat.com>
14632 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
14634 2002-04-01 Richard Henderson <rth@redhat.com>
14637 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
14638 * fixinc/fixincl.x: Rebuild.
14640 2002-04-01 Richard Henderson <rth@redhat.com>
14642 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
14643 (atomic_alloc, atomic_free): New.
14644 (SIZE, MASK_FOR, PTR_IN): New.
14645 (emergency_reg_state, emergency_reg_state_free): New.
14646 (emergency_labeled_state, emergency_labeled_state_free): New.
14647 (reg_state_alloced, labeled_state_alloced): New.
14648 (alloc_reg_state, free_reg_state): New.
14649 (alloc_label_state, free_label_state, free_label_states): New.
14650 (push, pop, dup_state_stack, free_state_stack): Use them.
14651 (desc_label_state): Likewise.
14652 (uw_frame_state_for): Free label states and state stack.
14653 (uw_update_reg_address): Eliminate warnings.
14655 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
14657 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
14658 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
14660 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14662 * c-decl.c (grokdeclarator): Update.
14663 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14664 * c-tree.h (c_mark_addressable): New.
14665 * c-typeck.c (default_function_array_conversion, build_unary_op,
14666 build_array_ref, convert_for_assignment): Update.
14667 (mark_addressable): Rename.
14668 * calls.c (try_to_integrate, expand_call): Use langhook.
14669 * expr.c (expand_expr): Use langhook.
14670 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
14671 * langhooks.h (struct lang_hooks): New hook.
14672 * stmt.c (expand_asm_operands): Use langhook.
14673 * tree.h (mark_addressable): Remove.
14675 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14677 2002-04-01 Bob Wilson <bob.wilson@acm.org>
14679 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
14680 in previous change.
14682 2002-04-01 Bob Wilson <bob.wilson@acm.org>
14684 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
14685 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
14687 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14689 * c-common.c (unsigned_conversion_warning, convert_and_check,
14690 unsigned_type, signed_type, shorten_compare,
14691 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
14692 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
14693 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
14695 * c-decl.c (grokdeclarator): Update.
14696 * c-format.c (check_format_types): Update.
14697 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14698 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14699 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
14700 * convert.c (convert_to_integer): Use new hooks.
14701 * expmed.c (make_tree): Use new hooks.
14702 * expr.c (store_expr): Use new hooks.
14703 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
14704 all_ones_mask_p, unextend, fold): Use new hooks.
14705 * langhooks.h (struct lang_hooks_for_types): New hooks.
14706 * tree.h (signed_or_unsigned_type, signed_type,
14707 unsigned_type): Remove.
14709 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14710 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14712 2002-03-31 Richard Henderson <rth@redhat.com>
14714 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
14715 (desc_frgr_mem): Fix reference to f16-f31.
14717 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14719 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
14720 RTVEC_ELT): Const-ify.
14721 * varray.h (VARRAY_CHECK): Const-ify.
14722 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
14723 ggc_mark_rtvec, ggc_mark): Const-ify.
14725 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14727 * diagnostic.c: Include langhooks-def.h.
14728 * Makefile.in (diagnostic.o): Update.
14730 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
14732 * c-common.c (c_unsafe_for_reeval): Rename.
14733 * c-common.h (c_unsafe_for_reeval): Rename.
14734 * c-decl.c (finish_incomplete_decl): Rename.
14735 (c_init_decl_processing): Don't set langhook.
14736 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
14737 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
14738 * c-objc-common.c (c_objc_common_init): Don't set langhook.
14739 * c-tree.h (finish_incomplete_decl): Rename.
14740 * langhooks-def.h (lhd_unsafe_for_reeval): New.
14741 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
14742 (LANG_HOOKS_INITIALIZER): Update.
14743 * langhooks.c (lhd_unsafe_For_reeval): New.
14744 * langhooks.h (struct langhooks): New hooks.
14745 * toplev.c (incomplete_decl_finalize_hook): Remove.
14746 (wrapup_global_declarations): Update.
14747 * tree.c (lang_unsafe_for_reeval): Remove.
14748 (unsafe_for_reeval): Update.
14749 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
14752 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
14753 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
14755 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
14757 * diagnostic.c (print_error_function): Remove.
14758 (default_print_error_function): Rename.
14759 (report_error_function): Update.
14760 * diagnostic.h (print_error_function): Remove.
14761 (default_print_error_function): Remove.
14762 * langhooks-def.h (struct diagnostic_context): Predeclare.
14763 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
14764 (LANG_HOOKS_INITIALIZER): Update.
14765 * langhooks.h (struct diagnostic context): Predeclare.
14766 (struct lang_hooks): New hook.
14768 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14770 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
14771 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
14773 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
14774 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
14775 of PIC_OFFSET_TABLE_REGNUM thruout.
14776 * config/rs6000/rs6000.md: Likewise.
14777 * config/rs6000/darwin.h: Likewise.
14779 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14781 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
14782 unsigned HOST_WIDE_INT, not unsigned int.
14784 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14786 PR middle-end/6096, middle-end/6098, middle-end/6099
14787 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
14789 (fill_slots_from_thread): Likewise.
14791 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14793 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
14794 floating fields in float regs.
14795 (function_arg_record_value_2): Likewise.
14797 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
14799 * config/mmix/mmix.md (define_constants): Remove misleading
14800 FIXME. Add MMIX_fp_rO_OFFSET.
14801 ("nonlocal_goto_receiver"): Don't have stack-frame address of
14802 saved rO as part of the pattern. Remove FIXME.
14803 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
14804 here, at output-time.
14806 2002-03-31 Jakub Jelinek <jakub@redhat.com>
14809 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
14811 (output_v9branch): Likewise.
14813 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
14815 * gcc.c: Revert previous patch for now.
14816 * config/i386/djgpp.h: Likewise.
14818 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
14820 * config/mmix/crti.asm (_init): Register _fini with atexit.
14821 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
14823 2002-03-31 Richard Henderson <rth@redhat.com>
14826 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
14827 (ASM_OUTPUT_DEF_FROM_DECLS): New.
14829 2002-03-31 Richard Henderson <rth@redhat.com>
14831 * libgcc2.c (__bb_exit_func): Make static.
14833 * config/alpha/alpha.md (trap): New.
14835 2002-03-31 Richard Henderson <rth@redhat.com>
14837 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
14838 promoted argument types; build trap.
14839 (expand_builtin_trap): New.
14840 (expand_builtin): Use it.
14841 * stmt.c (expand_nl_goto_receivers): Likewise.
14842 * expr.h (expand_builtin_trap): Declare.
14843 * libfuncs.h (LTI_abort, abort_libfunc): New.
14844 * optabs.c (init_optabs): Init abort_libfunc.
14846 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
14848 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
14849 (LINK_COMMAND_SPEC): ... from here.
14850 (init_gcc_specs): Duplicate it here too, omitting
14851 shared_name in the second copy.
14852 (init_spec): Test for duplicate
14853 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
14855 2002-03-30 David S. Miller <davem@redhat.com>
14857 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14858 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
14860 2002-03-30 Roger Sayle <roger@eyesopen.com>
14861 Richard Henderson <rth@redhat.com>
14863 * regmove.c (combine_stack_adjustments_for_block): Avoid
14864 emitting a stack adjustment of zero bytes. Let delete_insn
14867 2002-03-30 Richard Henderson <rth@redhat.com>
14869 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
14870 (sparc_emitting_epilogue): New.
14871 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
14872 * config/sparc/sparc-protos.h: Update.
14873 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
14874 (TARGET_SWITCHES): Update.
14875 * config/sparc/sparc.md (return): Remove.
14876 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
14877 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
14878 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
14879 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14880 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
14881 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
14882 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
14883 Remove MASK_EPILOGUE.
14884 * doc/invoke.texi: Update.
14886 2002-03-30 Daniel Berlin <dan@dberlin.org>
14888 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
14889 CPP will start the file for us.
14891 2002-03-30 Richard Henderson <rth@redhat.com>
14894 * config/ia64/ia64.c (group_barrier_needed_p): Special case
14895 prologue_allocate_stack.
14896 (ia64_single_set): Use insn codes for recognition of special
14897 cases, not rtl matching.
14898 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
14900 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
14902 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
14904 2002-03-30 Richard Henderson <rth@redhat.com>
14907 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
14908 or -fomit-frame-pointer with profiling.
14909 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
14910 (FUNCTION_PROFILER): Do nothing.
14911 (PROFILE_HOOK): New.
14912 * config/sparc/sparc.c (sparc_override_options): Don't check
14913 code models for profiling.
14914 (sparc_function_profiler): Remove.
14915 (sparc_profile_hook): New.
14916 * config/sparc/sparc-protos.h: Update.
14918 2002-03-30 Jakub Jelinek <jakub@redhat.com>
14920 PR optimization/6086
14921 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
14922 of SUBREG of volatile MEM or because the MEM was mode dependent,
14923 return CLOBBER instead of unmodified SUBREG.
14925 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
14927 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
14928 when not optimizing.
14930 * toplev.c (rest_of_compilation): Cann mark_constant_function
14931 only when optimizing.
14933 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
14936 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
14937 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
14938 (try_optimize_cfg): clear all AUX fields.
14940 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
14941 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
14942 (ix86_address_cost): Be prepared for SUBREGed registers.
14943 (legitimate_address_p): Accept SUBREGed registers.
14945 2002-03-29 Richard Henderson <rth@redhat.com>
14948 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
14950 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14952 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
14953 for aggregate and TFmode types.
14955 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
14957 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
14959 2002-03-29 Richard Henderson <rth@redhat.com>
14962 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
14963 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
14965 2002-03-29 Richard Henderson <rth@redhat.com>
14968 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
14969 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
14970 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
14971 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
14973 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
14975 2002-03-29 Dale Johannesen <dalej@apple.com>
14977 * loop.c (combine_movables): Do allow combination of pseudos.
14979 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
14981 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
14982 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
14983 No functional change except ...
14984 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
14985 * doc/install.texi (*-*-freebsd*): Document port configuration.
14987 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
14989 * Makefile.in (convert.o, calls.o, expmed.o): Update.
14990 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
14992 * builtin-types.def (BT_PTRMODE): Update.
14993 * c-common.c (type_for_size): Rename c_common_type_for_size.
14994 (type_for_mode): Similarly.
14995 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
14997 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
14998 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
14999 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
15001 * c-typeck.c (common_type, comptypes, default_conversion):
15003 * calls.c: Include langhooks.h.
15004 (emit_library_call_value_1): Use new hooks. Avoid redundant
15006 * convert.c: Include langhooks.h
15007 (convert_to_pointer, convert_to_integer): Use new hooks.
15008 * except.c (init_eh): Similarly.
15009 * expmed.c: Include langhooks.h.
15010 (expand_mult_add): Use new hooks.
15011 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
15012 try_casesi): Similarly.
15013 * fold-const.c (optimize_bit_field_compare, make_range,
15014 decode_field_reference, fold_truthop, fold): Similarly.
15015 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
15016 put_var_into_stack): Similarly.
15017 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
15018 LANG_HOOKS_TYPE_FOR_SIZE): New.
15019 (LANG_HOOKS_TYPES_INITIALIZER): Update.
15020 * langhooks.h (lang_hooks_for_types): New hooks.
15021 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
15022 * tree.c (get_unwidened, get_narrower): Similarly.
15023 * tree.h (type_for_mode, type_for_size): Remove.
15024 * varasm.c (force_const_mem): Use new hooks.
15025 * utils2.c (nonbinary_modular_operation): Update.
15027 * objc-act.c (handle_impent): Update.
15028 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
15031 2002-03-29 Steve Ellcey <sje@cup.hp.com>
15033 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
15034 * config/ia64/ia64.c (basereg_operand): New.
15035 * config/ia64/ia64-protos.h (basereg_operand): Declare.
15036 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
15038 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
15040 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
15041 unwind information when frame_pointer_needed.
15042 (mmix_assemble_integer): Tweak wording in comment.
15044 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
15046 * Makefile.in (except.o): Update.
15047 * except.c: Include langhooks.h.
15048 (init_eh): Use langhook.
15049 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
15050 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
15051 (LANG_HOOKS_INITIALIZER): Update.
15052 * langhooks.h (lang_hooks_for_types): New.
15053 (struct lang_hooks): Add it.
15054 * tree.c (make_lang_type_fn, make_lang_type): Remove.
15055 * tree.h (make_lang_type_fn, make_lang_type): Remove.
15057 * alpha/alpha.c: Include langhooks.h.
15058 (alpha_build_va_list): Use langhook.
15059 * d30v/d30v.c: Include langhooks.h.
15060 (d30v_build_va_list): Use langhook.
15061 * i386/i386.c: Include langhooks.h.
15062 (ix86_build_va_list): Use langhook.
15063 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
15064 * s390/s390.c: Include langhooks.h.
15065 (s390_build_va_list): Use langhook.
15066 * stormy16/stormy16.c: Include langhooks.h.
15067 (stormy16_build_va_list): Use langhook.
15069 2002-03-29 Jakub Jelinek <jakub@redhat.com>
15072 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
15074 (length): Compute variable length for branches/calls/jumps here.
15075 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
15076 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
15077 define branch_type attribute.
15078 (divsi3_sp32): Maximum length is 6 not 7.
15079 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
15080 call_address_untyped_struct_value_sp32,
15081 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
15082 * config/sparc/sparc.c (empty_delay_slot): New function.
15083 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
15084 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
15086 2002-03-29 Jakub Jelinek <jakub@redhat.com>
15088 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
15089 nonzero_bits if not needed.
15090 (nonzero_bits) [XOR]: Likewise.
15091 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
15092 reg_last_set_mode and mode are both MODE_INT, but not equal.
15093 (record_value_for_reg): Compute reg_last_set_nonzero_bits
15094 in nonzero_bits_mode for MODE_INT modes.
15096 2002-03-28 Richard Henderson <rth@redhat.com>
15099 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
15100 to GAS. Correct drift between alternatives.
15102 2002-03-28 Richard Henderson <rth@redhat.com>
15105 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
15107 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
15109 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
15110 emulation to the linker.
15112 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
15114 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
15115 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
15117 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
15119 * combine.c (simplify_and_const_int): Make sure to apply mask
15120 when force_to_mode returns a constant integer. PR3311.
15122 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
15124 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
15126 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15128 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
15129 and Objective-C Dialect Options.
15131 2002-03-28 Richard Henderson <rth@redhat.com>
15133 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
15134 comparison should be done vs !=0 not >0 return code. Tidy cases.
15136 2002-03-28 Richard Henderson <rth@redhat.com>
15138 * c-decl.c (finish_function): New arg can_defer_p. Pass it
15139 on to c_expand_body.
15140 * c-tree.h (finish_function): Update decl.
15141 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
15143 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
15145 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
15147 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
15149 * rtlanal.c: Include flags.h
15150 (may_trap_p): Do not mark FP operations if trapping
15151 if !flag_trapping_math
15152 * Makefile.in (rtlanal.o): Add dependency on flag.h
15153 * ifcvt.c (noce_operand_ok): Avoid the lameness.
15155 2002-03-27 Zack Weinberg <zack@codesourcery.com>
15157 * mips.md: Use dconst1, not 1.0, as first argument of
15158 REAL_VALUE_LDEXP. Don't use union real_extract.
15160 2002-03-28 Alan Modra <amodra@bigpond.net.au>
15162 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
15163 rather than $target. Heed program_prefix and
15164 program_transform_name. Search for gas in cross-compiler case too.
15165 "test -x" rather than "test -f".
15166 (gcc_cv_ld): Likewise.
15167 (gcc_cv_nm): Heed program_prefix and program_transform_name.
15168 (gcc_cv_objdump): Likewise.
15169 * configure: Regenerate.
15171 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
15173 * Makefile.in (attribs.o): Update.
15174 * attribs.c: Include langhooks.h.
15175 (decl_attributes): Use langhook.
15176 * c-decl.c (insert_default_attributes): Rename.
15177 * c-tree.h (c_insert_default_attributes): New.
15178 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
15179 (LANG_HOOKS_INITIALIZER): Update.
15180 * langhooks.h (struct lang_hooks): New hook.
15181 * tree.h (insert_default_attributes): Remove.
15183 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
15185 2002-03-27 Andreas Schwab <schwab@suse.de>
15187 * config/i386/i386.c (classify_argument): Also check for
15190 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15192 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
15195 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
15197 * i960.md (ret): Set PC.
15198 (nonlocal_goto): Fix expander.
15199 * builtins.c (epxand_builin_longjmp): Check that we've emitted
15202 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
15204 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
15205 of libcall regions.
15207 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15209 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
15210 assigning to BLOCK_FOR_INSN directly.
15212 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
15214 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
15216 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
15218 * c-common.c (c_expand_expr): Fix prototype.
15219 * c-common.h (c_expand_expr): Always declare, update.
15220 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
15221 * c-objc-common.c (c_objc_common_init): No global hook.
15222 * expr.c (expand_expr): Use langhook.
15223 * expr.h (enum expand_modifier): Conditionally declare.
15224 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
15225 (LANG_HOOKS_INITIALIZER): Update.
15226 * langhooks.c (lhd_expand_expr): New.
15227 * langhooks.h (struct lang_hooks): New hook.
15228 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
15229 (lang_independent_init): Don't default hook.
15231 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
15233 2002-03-27 Richard Henderson <rth@redhat.com>
15236 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
15237 TARGET_CONST_GP. Simplify conditions.
15239 2002-03-27 Richard Henderson <rth@redhat.com>
15241 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
15242 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
15243 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
15245 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
15247 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
15248 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
15249 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
15250 Remove unnecessary masks.
15251 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
15252 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
15253 -mwindows, -mdll switches and their negations.
15255 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
15257 * gcc-common.c (lang_mark_false_label_stack): Remove.
15258 * ggc.h (lang_mark_false_label_stack): Similarly.
15260 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
15262 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
15264 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
15265 or __rtems_ is defined.
15267 2002-03-26 Richard Henderson <rth@redhat.com>
15269 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
15270 if a non-trivial load was emitted.
15271 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
15272 in high+extra+low case.
15274 2002-03-26 Richard Henderson <rth@redhat.com>
15276 * config.gcc (sparc*-solaris): Use float_format=sparc.
15278 2002-03-26 Richard Henderson <rth@redhat.com>
15280 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15281 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
15282 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
15283 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
15284 (WINT_TYPE_SIZE): Fix at 32.
15286 2002-03-26 Richard Henderson <rth@redhat.com>
15288 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
15289 until after eh landing pad generation.
15290 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
15291 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
15293 2002-03-26 Richard Henderson <rth@redhat.com>
15295 * expr.h (ADD_PARM_SIZE): One more convert for INC.
15297 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
15299 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
15300 and warning switches.
15301 (cc1_options): Likewise.
15303 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
15305 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
15306 Restore more of the signal context. Set no_reg_stack_frame.
15307 * config/ia64/unwind-ia64.c (unw_state_record):
15308 Add no_reg_stack_frame, comments.
15309 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
15310 (uw_update_context): Adjust bsp when unwinding from leaf,
15311 but not signal frame.
15313 2002-03-26 David Edelsohn <edelsohn@gnu.org>
15315 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
15317 2002-03-26 Bob Wilson <bob.wilson@acm.org>
15319 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
15321 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
15324 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
15325 "Add a pool_range attribute", which was lost during the ARM/Thumb
15328 2002-03-26 Bob Wilson <bob.wilson@acm.org>
15330 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
15331 a register into the MAC16 accumulator.
15333 2002-03-26 Andrew Cagney <ac131313@redhat.com>
15335 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
15336 (Warning Options): Document -Wswitch-enum.
15337 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
15339 (warn_switch_enum): Define variables.
15340 * flags.h (warn_switch_enum): Declare variables.
15341 * stmt.c (expand_end_case_type): When warn_switch_enum /
15342 -Wswitch-enum, perform switch checks.
15345 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
15347 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
15348 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
15349 (reload_muladdsi_compare0_scratch): Delete.
15351 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
15353 * doc/install.texi (*-*-freebsd*): Update.
15355 2002-03-26 Richard Henderson <rth@redhat.com>
15357 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
15358 (SUB_PARM_SIZE): Cast DEC to ssizetype.
15360 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
15361 types from the normal argument frame.
15363 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
15364 variable sized objects by reference.
15365 (sparc_va_arg): Receive them by reference too.
15367 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
15369 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
15370 code to not restoring global registers.
15372 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
15374 * Makefile.in (ggc-common.o): Update.
15375 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
15376 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
15377 * c-tree.h (c_mark_tree): New.
15378 * ggc-common.c: Include langhooks.h.
15379 (gcc_mark_trees): Use new langhook.
15380 * ggc-callbacks.c: Delete file.
15381 * ggc.h (lang_mark_tree): Remove.
15382 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
15383 (LANG_HOOKS_INITIALIZER): Update.
15384 * langhooks.h (struct lang_hooks): New hook.
15386 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
15388 2002-03-25 Zack Weinberg <zack@codesourcery.com>
15390 * doc/cpp.texi: Exclude entire Top node from printed manual.
15391 Move option index after directive index. Insert page breaks
15392 before GFDL and concept index. Index environment variables
15393 with command line options.
15394 * doc/cppenv.texi: Use @vtable for environment variable list.
15395 Add paragraph explaining semantics of empty elements in path
15396 variables. Exclude a cross-reference to Fishkill from the
15397 manpage. Remove an unnecessary cross-reference of the entry
15398 right above the referer. Don't use @anchor in text that goes
15400 * doc/cppopts.texi: Cross-reference the environment variables
15401 section, not the specific environment variable, for consistency.
15403 2002-03-25 Richard Henderson <rth@redhat.com>
15405 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
15406 anywhere in the block. Don't refer to insns that have been
15407 removed from the chain. Iterate backward through the new insns.
15408 Don't refer to edges that have been removed.
15410 2002-03-26 Alan Modra <amodra@bigpond.net.au>
15412 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
15413 test for overflow of constant.
15415 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
15418 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
15419 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
15420 these patterns on arm_archv4.
15422 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
15424 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
15427 2002-03-25 Zack Weinberg <zack@codesourcery.com>
15429 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
15430 float_handled, float_handler, float_signal, set_float_handler,
15431 and do_float_handler. Set handler for SIGFPE to crash_signal.
15432 * toplev.h: Don't prototype do_float_handler.
15434 * c-lex.c: Fold parse_float into lex_number. Make warning
15435 about portability of hex float constants more informative, and
15436 don't issue it on top of a syntax error.
15437 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
15439 * real.h: Define REAL_VALUE_ABS here...
15440 * simplify-rtx.c: ... not here. Fold check_fold_consts,
15441 simplify_unary_real, simplify_binary_real, and
15442 simplify_binary_is2orm1 into their callers.
15443 * tree.c: Fold build_real_from_int_cst_1 into caller.
15445 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
15447 * tsystem.h: Include float.h here...
15448 * libgcc2.c: ... not here.
15450 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
15452 Fixes for: PR bootstrap/3591, target/5676
15453 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
15454 defined. Do not disable exceptions or rtti.
15455 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
15456 mcore.h. Disable exceptions and rtti, since they are not
15459 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
15461 * c-decl.c (maybe_build_cleanup): Remove.
15462 * expr.c (expand_expr): Use langhook.
15463 * langhooks-def.h (lhd_return_null_tree,
15464 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
15465 (LANGHOOKS_INITIALIZER): Update.
15466 * langhooks.c (lhd_return_null_tree): New.
15467 * langhooks.h (struct lang_hooks): New hook.
15468 * tree-inline.c (initialize_inlined_parameters): Use langhook.
15469 * tree.h (maybe_build_cleanup): Remove.
15471 2002-03-25 Jakub Jelinek <jakub@redhat.com>
15473 * regrename.c (build_def_use): Move recog_memoized
15474 before extract_insn.
15476 2002-03-25 Jakub Jelinek <jakub@redhat.com>
15479 * expr.c (emit_group_store): Handle storing into CONCAT.
15481 2002-03-25 Jakub Jelinek <jakub@redhat.com>
15483 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
15484 corresponding MATCH_DUP.
15486 2002-03-24 Richard Henderson <rth@redhat.com>
15488 * unroll.c (unroll_loop): Zero label_map.
15490 * gcse.c: Include except.h.
15491 * Makefile.in (gcse.o): Update.
15493 2002-03-24 Richard Henderson <rth@redhat.com>
15495 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
15496 Do resolve_unique_section before shared data clause.
15498 2002-03-24 Richard Henderson <rth@redhat.com>
15500 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
15502 2002-03-24 Richard Henderson <rth@redhat.com>
15504 * recog.c (peephole2_optimize): Split blocks when EH insns are
15505 generated in the middle of a block. Do global life update if
15508 2002-03-24 Richard Henderson <rth@redhat.com>
15510 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
15512 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
15515 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
15516 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
15517 (init_dependency_output): Don't make no_output decision here.
15519 2002-03-24 Andrew Cagney <ac131313@redhat.com>
15521 * stmt.c (check_for_full_enumeration_handling): Remove tests of
15522 warn_switch. Update description.
15523 (expand_end_case_type): Call check_for_full_enumeration_handling
15526 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15528 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
15529 (m68hc11_split_move): Call it to see if the source and destination
15530 operands use the same direction auto inc/dec mode, otherwise make the
15531 source an offsetable memory operand and generate an add.
15533 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15535 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
15536 register for operand 2.
15537 ("*subsi3_zero_extendqi"): Likewise.
15538 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
15539 bits so that it is compatible with a pop.
15540 ("*andhi3_gen"): Likewise.
15541 ("xorhi3"): Likewise.
15543 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
15545 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
15547 (cpp_post_options): ... not here.
15549 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
15550 Aldy Hernandez <aldyh@redhat.com>
15552 Removal of separate preprocessor cpp0.
15554 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
15555 cpp0, install-common): Update.
15556 * c-common.c (flag_preprocess_only): New.
15557 (c_common_init): Preprocess for -E.
15558 * c-common.h (flag_preprocess_only): New.
15559 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
15560 * c-objc-common.c (c_init_decl_processing): Exit quickly
15561 for NULL return from c_common_init.
15562 * cpplib.h (cpp_preprocess_file): New.
15563 * cppmain.c (main, general_init, pfile, progname): Remove.
15564 (do_preprocessing): Rename cpp_preprocess_file, don't call
15565 cpp_finish. Don't close stdout here.
15566 (setup_callbacks): Update prototype.
15567 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
15569 * tradcpp.c (main): Ignore -quiet.
15571 * lang-specs.h (default_compilers): Preprocess with cc1obj.
15573 2002-03-24 Richard Henderson <rth@redhat.com>
15575 PR optimization/5742
15576 * machmode.def: Add inner mode field to complex modes.
15577 * config/mips/mips.c (mips_function_value): Always define. Add
15578 new argument to handle libcalls.
15579 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
15580 (FUNCTION_VALUE): Likewise.
15581 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
15582 * config/mips/mips-protos.h: Update.
15584 2002-03-23 Richard Henderson <rth@redhat.com>
15586 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
15587 * config/sparc/sparc-protos.h: Update.
15588 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
15590 2002-03-23 Richard Henderson <rth@redhat.com>
15592 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
15593 _start or _init begins the text segment.
15595 2002-03-23 David Edelsohn <edelsohn@gnu.org>
15597 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
15598 not HOST_WIDEST_INT.
15599 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
15601 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
15604 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
15605 operand argument to output_return_instruction.
15606 * arm.c (arm_print_operand, case 'd'): If the operand is
15607 const_true_rtx then just return.
15608 (arm_print_operand, case 'D'): If the operand is const_true_rtx
15611 2002-03-23 Andrew Cagney <ac131313@redhat.com>
15613 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
15614 (Warning Options): Document -Wswitch-default.
15615 * toplev.c (W_options): Add -Wswitch-default. Update comment on
15617 (warn_switch_default): Define variable.
15618 (warn_switch): Update comment.
15619 * flags.h (warn_switch_default): Declare variable.
15620 (warn_switch): Update comment.
15621 * stmt.c (expand_end_case): Check for and, when
15622 warn_switch_no_default, warn of a missing default case.
15624 2002-03-23 Alan Modra <amodra@bigpond.net.au>
15626 * real.h (N): Special case 128 bit doubles.
15628 * combine.c (simplify_comparison): When widening modes, ignore
15629 sign extension on CONST_INTs.
15631 2002-03-22 Bob Wilson <bob.wilson@acm.org>
15633 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
15634 passed to adjust_address. Fix comment formatting.
15637 2002-03-22 Zack Weinberg <zack@codesourcery.com>
15639 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
15640 Always make REAL_VALUE_TYPE a struct containing an array of
15641 HOST_WIDE_INT, not a double. Tidy up the code deciding how
15642 big it is. Don't declare or use union real_extract.
15644 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
15645 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
15646 (print_operand), config/arm/arm.c (output_move_double),
15647 config/arm/arm.md (consttable_4, consttable_8),
15648 config/romp/romp.c (output_fpops), config/s390/s390.h
15649 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
15650 (xtensa_output_literal): Don't use union real_extract.
15652 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
15653 (sfmode_constant_to_ulong), config/ns32k/merlin.h
15654 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
15655 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
15656 (PRINT_OPERAND): Don't use local version of union
15659 * config/convex/convex.c (check_float_value), config/vax/vax.c
15660 (vax_float_literal), config/m88k/m88k.md (divdf3),
15661 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
15662 config/pdp11/pdp11.c (output_move_quad): Don't do host
15663 arithmetic on target floating point quantities.
15665 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
15666 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
15668 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
15669 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
15671 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
15672 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
15674 * print-rtl.c (print_rtx): Disable code which needs
15675 floating-point emulator.
15676 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
15677 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
15678 depending on HOST_FLOAT_FORMAT to be defined properly.
15680 * config/1750a/1750a.c (get_double, float_label): Delete.
15681 (print_operand): Delete huge commented-out chunk. Use
15682 REAL_VALUE_TO_DECIMAL.
15683 * config/1750a/1750a-protos.h: Delete prototypes of deleted
15685 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
15687 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
15688 Use REAL_VALUE_TO_DECIMAL as ELF version does.
15689 * config/m88k/m88k.c (real_power_of_2_operand,
15690 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
15691 real_extract out of the union; run the input through
15692 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
15693 from that into the union.
15694 * config/pdp11/pdp11.c (output_move_double): Rearrange
15695 parentheses to make automatic indenter happy.
15697 * doc/tm.texi (Cross-compilation): Rename node to "Floating
15698 Point" and rewrite to describe current situation. Also adjust
15699 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
15701 * doc/rtl.texi: Adjust cross reference.
15703 2002-03-22 Bob Wilson <bob.wilson@acm.org>
15705 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
15706 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
15707 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
15708 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
15709 prevent use of sp as a reload register.
15710 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
15711 non_acc_reg_operand.
15712 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
15713 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
15714 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
15715 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
15717 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
15719 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
15720 * cpplex.c (unterminated): Delete.
15721 (parse_string): No string literal may extend over multiple
15722 lines. Suppress the error when preprocessing assembly.
15723 * cppmain.c (scan_translation_unit): Strings are single-line.
15725 * doc/cpp.texi: Update to match.
15727 2002-03-22 Jakub Jelinek <jakub@redhat.com>
15729 PR optimization/5854
15730 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
15732 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
15733 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
15734 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
15735 const0 if scratch register was not allocated.
15736 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
15737 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
15738 with GEN_INT (...).
15739 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
15740 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
15741 with GEN_INT (...) everywhere. Remove constraints in define_split
15743 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
15744 require scratch register for setting 0 into regs/non-pushable memory.
15746 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
15748 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
15749 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
15751 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
15753 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
15754 * cppinit.c (cpp_create_reader): On by default.
15755 (cpp_handle_option): Handle -W[no-]endif-labels.
15756 (cpp_post_options): Also enable if -pedantic.
15757 * cpplib.c (do_else): Use it.
15758 (do_endif): Likewise.
15759 * doc/cppopts.texi: Document new option.
15760 * doc/invoke.texi: Document new option.
15762 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
15764 * config/i386/i386.c, config/i386/i386.md: Change all occurences
15765 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
15767 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
15769 * flow.c (calculate_global_regs_live): Clear aux fields of
15772 2002-03-22 Jakub Jelinek <jakub@redhat.com>
15774 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
15775 REG or MEM subregs, pass rtx * instead of rtx to it.
15776 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
15777 rtx * instead of rtx to alter_subreg.
15778 * config/m32r/m32r.c (gen_split_move_double): Likewise.
15779 * config/pj/pj.c (pj_output_rval): Likewise.
15781 2002-03-22 Richard Henderson <rth@redhat.com>
15784 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
15785 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
15786 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
15787 (ia64_expand_prologue): Look at int_regs, not words, for number
15788 of incomming int regs.
15790 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
15792 * expr.c (expand_expr): A RESULT_DECL is part of a call.
15794 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
15796 * toplev.c (flag_loop_optimize, flag_crossjumping):
15797 New static variables.
15798 (rest_of_compilation): Conditionalize crossjumping and
15800 (parse_options_and_default_flags): Default loop_optimize and
15802 (lang_independent_options): Add -fcrossjumping and -floop-optimize
15803 * invoke.texi (crossjumping, loop-optimize): Document.
15805 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15807 * real.c (eiisneg): Move outside #ifdef NANS.
15809 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
15811 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
15812 frequencies match; avoid match on different loop depths.
15813 (try_crossjump_to_bb): Kill tests that no longer brings time
15815 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
15817 (split_edge): Likewise.
15819 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
15822 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
15823 * cfgrtl.c: Include insn-config.h
15824 (split_block) Dirtify block in presence of conditional execution
15826 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15828 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
15829 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
15830 (function_arg): Constify CUMULATIVE_ARGS.
15831 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
15832 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
15833 (UNITS_PER_DOUBLE): New macro.
15834 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
15835 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
15836 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
15837 fp_regs and stack_words.
15838 (EABI_FLOAT_VARARGS_P): New macro.
15839 * config/mips/mips.c (struct mips_arg_info): New.
15840 (mips_arg_info): New function.
15841 (function_arg_advance): Use it. Add adjustment instructions here
15842 rather than in function_arg.
15843 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
15844 for VOIDmode at the beginning of the function.
15845 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
15846 (function_arg_pass_by_reference): Likewise.
15847 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
15848 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
15849 (mips_va_start): Likewise. Use the new stack_words field of
15850 CUMULATIVE_ARGS to set up overflow area. Reformat.
15851 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
15852 doubles and other types, aligning the overflow pointer for non-doubles
15853 too. Remove some code duplication. Replace hard-coded constants.
15855 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
15857 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
15858 (CLASS_UNITS): Undefine.
15859 (CLASS_MAX_NREGS): Use FP_INC.
15860 * config/mips/mips.c (compute_frame_size): Likewise.
15861 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
15863 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
15865 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
15866 prototype, and handle lexing numbers and identifiers.
15867 (parse_identifier): Update to new form of parse_slow.
15868 (parse_number): Fast path only, use parse_slow otherwise.
15869 (_cpp_lex_direct): Update calls to parse_number.
15871 2002-03-21 DJ Delorie <dj@redhat.com>
15873 * bb-reorder.c (make_reorder_chain_1): Protect against
15874 when redundant edges are omitted.
15875 * predict.c (dump_prediction): Likewise.
15877 2002-03-21 Richard Henderson <rth@redhat.com>
15880 * fixinc/inclhack.def (solaris_stdio_tag): New.
15881 * fixinc/fixincl.x: Regenerate.
15883 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
15886 * c-typeck.c (process_init_element): Flag non-static
15887 initialization of a flexible array member as illegal.
15889 2002-03-22 Alan Modra <amodra@bigpond.net.au>
15891 * config/rs6000/t-linux64: New.
15892 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
15893 t-ppccomm. Use t-rs6000 and t-linux64.
15894 (powerpc64-*-gnu* <tmake_file>): Likewise.
15895 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
15896 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
15897 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
15899 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
15901 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
15902 flag_really_no_inline instead of optimize == 0.
15904 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
15906 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
15908 * flags.h (flag_really_no_inline): New.
15910 * c-common.c (c_common_post_options): Initialize
15911 flag_really_no_inline.
15913 * toplev.c (flag_really_no_inline): New.
15915 2002-03-21 Jakub Jelinek <jakub@redhat.com>
15917 * config/avr/avr.md (length): Fix length computation for
15918 conditional branches.
15920 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
15922 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
15923 sdbout.o, profile.o): Update.
15924 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
15926 * c-common.h (gettags): Move here from tree.h.
15927 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
15928 insert_block, getdecls, kept_level_p, global_bindings_p): New.
15929 * dbxout.c (dbxout_init): Use getdecls langhook.
15930 * expr.c (expand_expr): Use insert_block langhook.
15931 * fold-const.c: Include langhooks.h.
15932 (fold_range_test, fold_binary_op_with_conditional_arg,
15933 fold): Use global_bindings_p langhook.
15934 * integrate.c (expand_inline_function): Use insert_block langhook.
15935 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
15936 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
15937 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
15938 LANG_HOOKS_GETDECLS): New.
15939 (LANG_HOOKS_INITIALIZER): Update.
15940 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
15942 * langhooks.h (struct lang_hooks_for_decls): New.
15943 (struct lang_hooks): Update.
15944 * profile.c: Include langhooks.h.
15945 (output_func_start_profiler): Use new langhooks.
15946 * sdbout.c: Include langhooks.h.
15947 (sdbout_init, sdbout_finish): Use getdecls langhook.
15948 * stmt.c: Include langhooks.h.
15949 (expand_fixup, fixup_gotos): Use new langhooks.
15950 * stor-layout.c: Include langhooks.h.
15951 (variable_size): Use global_bindings_p langhook.
15952 * toplev.c (compile_file): Use getdecls langhook.
15953 * tree-inline.c (remap_block): Use insert_block langhook.
15954 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
15955 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
15957 2002-03-21 Richard Henderson <rth@redhat.com>
15959 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
15960 constants in .data when -fpic.
15962 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15964 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
15967 2002-03-21 Tom Tromey <tromey@redhat.com>
15969 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
15971 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15973 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
15975 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
15977 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
15978 Richard Henderson <rth@redhat.com>
15981 * c-common.c (c_expand_expr): Preserve result of a statement
15982 expression if needed.
15984 2002-03-21 Jakub Jelinek <jakub@redhat.com>
15987 * genrecog.c (maybe_both_true_mode): Remove.
15988 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
15989 * machmode.def (Pmode): Likewise.
15991 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
15993 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
15994 (nonlocal_mentioned_p_1): New function.
15995 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
15996 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
15997 (mark_constant_function): Recognize pure functions.
15998 * rtl.h (global_reg_mentioned_p): New prototype.
15999 * rtlanal.c (global_reg_mentioned_p,
16000 global_reg_mentioned_p_1): New function.
16002 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16004 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
16006 * fixinc/fixincl.x: Regenerate.
16008 2002-03-20 Jason Merrill <jason@redhat.com>
16010 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
16012 2002-03-20 Michael Meissner <meissner@redhat.com>
16014 * doc/invoke.texi (Optimize Options): Document that -O2 sets
16017 2002-03-20 Bob Wilson <bob.wilson@acm.org>
16019 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
16020 ".literal_position" directive before the constant pool.
16022 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16024 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
16025 Add Craig Rodrigues.
16026 Add Brad Lucier to testers.
16028 2002-03-20 Jakub Jelinek <jakub@redhat.com>
16031 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
16033 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
16034 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
16035 instead of insn_extract.
16037 2002-03-20 Jakub Jelinek <jakub@redhat.com>
16040 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
16042 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
16043 stmt if some case has been output.
16045 2002-03-20 Jakub Jelinek <jakub@redhat.com>
16048 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
16049 movsfcc_1, movdfcc_1): Add %O2.
16050 * config/i386/i386.c (print_operand): Handle %ON.
16051 Print . before float condition codes in Sun as cmov syntax.
16052 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
16053 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
16056 2002-03-20 Philip Blundell <pb@nexus.co.uk>
16058 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
16059 return instruction if PC was popped.
16061 2002-03-20 Bob Wilson <bob.wilson@acm.org>
16063 * config/xtensa/xtensa.md: Remove unused type attributes.
16064 (adddi_carry, subddi_carry): Change type attribute to "multi".
16066 2002-03-19 Dale Johannesen <dalej@apple.com>
16068 PR optimization/5999, middle-end/5731
16069 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
16070 multiplications by reciprocals.
16072 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
16074 * Makefile.in: Update.
16075 * c-common.c: Include langhooks.h.
16076 (inline_forbidden_p): Use new hook.
16077 * diagnostic.c: Include langhooks.h.
16078 (format_with_decl, announce_function,
16079 default_print_error_function): Use new hook.
16080 * dwarf2out.c (dwarf2_name): Use new hook.
16081 * function.c: Include langhooks.h.
16082 (init_function_start): Use new hook.
16083 * langhooks-def.h (lhd_decl_printable_name): New.
16084 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
16085 (LANGHOOKS_INITIALIZER): Update.
16086 * langhooks.c (lhd_decl_printable_name): New.
16087 * langhooks.h (struct lang_hooks): New hook.
16088 * toplev.c (decl_name, decl_printable_name): Remove.
16089 (open_dump_file): Use new hook.
16090 (process_options): Remove old hook.
16091 * tree.h (decl_printable_name): Remove.
16093 * objc-act.c (objc_init): Remove old hook.
16094 (objc_printable_name): Export.
16095 * objc-act.h (objc_printable_name): New.
16096 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
16098 2002-03-19 Jim Blandy <jimb@redhat.com>
16100 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
16101 the start_source_file debug hook, not the current line number.
16103 2002-03-19 Richard Henderson <rth@redhat.com>
16105 * flow.c (EH_USES): Provide default.
16106 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
16107 * doc/tm.texi (EH_USES): New.
16109 * config/ia64/ia64.c (ia64_eh_uses): New.
16110 * config/ia64/ia64-protos.h: Update.
16111 * config/ia64/ia64.h (EH_USES): New.
16113 2002-03-19 Richard Henderson <rth@redhat.com>
16115 * varasm.c (output_constant_def): Fix stupid typo.
16117 2002-03-19 Richard Henderson <rth@redhat.com>
16120 * except.c (current_function_has_exception_handlers): New.
16121 * except.h: Declare it.
16122 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
16123 Combine tests that disable all sibcalls for the function.
16125 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
16127 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
16130 2002-03-19 Richard Henderson <rth@redhat.com>
16133 * config/ia64/ia64.c: Revert 2002-03-01 patch.
16134 * config/ia64/ia64.h (INIT_EXPANDERS): New.
16136 2002-03-19 Jim Blandy <jimb@redhat.com>
16138 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
16139 name, even if the replacement list contains no tokens, as required
16142 2002-03-19 Jason Merrill <jason@redhat.com>
16144 * varasm.c (globalize_decl): Get the name from the RTL, not
16145 DECL_ASSEMBLER_NAME.
16147 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
16149 2002-03-19 Bob Wilson <bob.wilson@acm.org>
16151 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
16152 subdi_carry): Define.
16154 2002-03-19 David Edelsohn <edelsohn@gnu.org>
16156 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
16157 about -fpic/-fPIC if extra_warnings set.
16159 2002-03-19 David Edelsohn <edelsohn@gnu.org>
16161 * expr.c (expand_expr): Sign-extend CONST_INT generated from
16162 TREE_STRING_POINTER.
16163 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
16165 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16167 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
16168 in favor of SP if FRAME_POINTER_REQUIRED is false.
16170 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
16172 * emit-rtl.c (gen_int_mode): New function.
16173 * rtl.h: Prototype for it.
16174 * combine.c (make_extraction, simplify_comparison), expmed.c
16175 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
16176 (convert_modes, store_field), optabs.c (expand_fix),
16177 simplify-rtx.c (neg_const_int, simplify_unary_real),
16179 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
16180 Use it instead of GEN_INT (trunc_int_for_mode (...)).
16182 2002-03-19 Jakub Jelinek <jakub@redhat.com>
16185 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
16186 convert_parm_for_inlining.
16187 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
16189 * langhooks-def.h: Likewise.
16190 * objc/objc-lang.c: Likewise.
16191 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
16193 * tree-inline.c (initialize_inlined_parameters):
16194 Call convert_parm_for_inlining lang hook if needed.
16195 * c-typeck.c (c_convert_parm_for_inlining): New function.
16196 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
16198 2002-03-18 Mark Mitchell <mark@codesourcery.com>
16200 * calls.c (precompute_arguments): Do not assume that temporaries
16201 can be destroyed after expanding the argument.
16202 (expand_call): Likewise.
16204 2002-03-15 Eric Christopher <echristo@redhat.com>
16206 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
16207 Fix register preference on last change.
16208 * config/mips/mips.c (mips_return_in_memory): New function.
16209 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
16210 * config/mips/mips-protos.h: Declare.
16211 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
16212 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
16214 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
16216 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
16218 (anddi3, iorsi3): Likewise.
16220 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
16221 use %gprel for symbols that are going to be placed in linkonce
16224 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
16225 RETURN_ADDRESS_POINTER_REGNUM to $ra.
16226 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
16227 not needed. Disregard leaf_function_p().
16228 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
16229 mips16 frame pointer.
16230 * config/mips/mips.md (store ra): Only to small SP offsets.
16231 2001-08-22 Graham Stott <grahams@redhat.com>
16232 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
16233 return a REG rtx for the return address register.
16235 2002-03-18 Bob Wilson <bob.wilson@acm.org>
16237 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
16238 constant-pool addresses as "mode-dependent".
16239 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
16241 2002-03-18 Jakub Jelinek <jakub@redhat.com>
16244 * expr.c (emit_group_load): Use extract_bit_field if
16245 needed for CONCAT arguments.
16247 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
16250 * arm.md (tablejump): Make this a define_expand. For PIC add the
16251 offset to the base of the table.
16252 (thumb_tablejump): Matcher for Thumb tablejump insn.
16253 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
16254 as the difference of two labels.
16255 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16256 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
16257 tables in the code.
16258 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
16259 * arm.c (get_jump_table_size): If the table is not in the text
16260 section, return zero.
16262 2002-03-18 Bernd Schmidt <bernds@redhat.com>
16264 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
16266 (arm_reload_out_hi): Use gen_lowpart instead of
16267 gen_rtx_SUBREG to access QImode components.
16268 * config/arm/arm.md: Disable zero_extend split for QImode
16269 subregs in BIG_ENDIAN mode.
16270 (storehi_bigend): Match use of least significant byte.
16271 (storeinthi): Remove extraneous SUBREG.
16272 Add missing construction of operands[2].
16273 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
16274 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
16275 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
16277 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
16279 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
16282 2002-03-17 Richard Henderson <rth@redhat.com>
16284 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
16287 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
16289 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
16290 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
16292 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16294 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
16296 * predict.c (estimate_bb_frequencies): Delete unused variables.
16298 2002-03-17 Richard Henderson <rth@redhat.com>
16300 * config/ia64/ia64.c (ia64_attribute_table): Move before
16301 targetm definition. Make static.
16303 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
16305 * c-common.h (yyparse, c_common_parse_file): New.
16306 * c-lang.c: Include c-common.h.
16307 (LANG_HOOKS_PARSE_FILE): Redefine.
16308 * c-lex.c: Include c-common.h.
16309 (yyparse): Rename c_common_parse_file. Call yyparse.
16310 * c-parse.in (yyparse): Remove macro.
16311 * c-tree.h (yyparse_1): Remove.
16312 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
16313 (LANG_HOOKS_INITIALIZER): Update.
16314 * langhooks.h (struct lang_hoooks): New hook parse_file.
16315 * toplev.c (compile_file): Use parse_file hook.
16316 * tree.h (yyparse): Remove.
16317 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
16319 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
16321 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
16322 float_truncate, not fix.
16323 ("*truncdfsf2_real"): Ditto.
16324 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
16326 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
16328 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
16330 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
16331 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
16332 where appropriate. Make the second reference to
16333 leaf_function_p a function call, as intended. Reindented.
16335 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
16336 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
16338 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
16339 add register to non-constant into sp.
16341 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
16342 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
16343 (mips16_gp_pseudo_rtx): Lose.
16344 (INIT_EXPANDERS): Deleted.
16345 * config/mips/mips.c (mips_init_machine_status): New.
16346 (mips_free_machine_status): New.
16347 (mips_mark_machine_status): New.
16348 (override_options): Set them.
16349 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
16350 (struct machine_function): ... new. Replaced all references.
16351 (mips_add_gc_roots): Don't mark them.
16352 (embedded_pic_fnaddr_reg): New, extracted from...
16353 (embedded_pic_offset): ... here.
16354 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
16357 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
16359 * cppinit.c: Revert -MD removal.
16361 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16363 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
16364 soft registers by default for 68HC12.
16365 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
16366 when compiling with -fomit-frame-pointer.
16367 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
16368 (expand_epilogue): Likewise.
16369 (m68hc11_gen_rotate): Use exg when rotating by 8.
16371 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16373 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
16374 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
16375 (splits): Remove unused add splits.
16376 ("*addhi3_68hc12"): Tune constraints.
16377 ("addhi_sp"): Try to use X instead of Y in all cases and if the
16378 constant fits in 8-bits and D is dead use abx/aby instructions.
16379 ("*addhi3"): Remove extern declaration of ix_reg.
16380 ("*subsi3"): Optimize and provide new split.
16381 ("subhi3"): Cleanup.
16382 ("*subhi3_sp"): Avoid saving X if we know it is dead.
16383 (arith splits): For 68hc12 save the address register on the stack
16384 and do the arithmetic operation with a pop.
16386 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16388 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
16389 allocating QImode in address registers.
16390 ("*movqi_m68hc11"): Likewise.
16392 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
16394 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
16396 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
16398 * cppinit.c (print_help): Display -MD and -MMD.
16399 Don't display usage string. Update assertion syntax and
16401 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
16402 (cpp_handle_option): Update.
16404 2002-03-15 Chris Demetriou <cgd@broadcom.com>
16406 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
16407 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
16408 and define it so that regardless of target CPU size,
16409 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
16410 of "int" rather than "long."
16412 2002-03-15 Richard Henderson <rth@redhat.com>
16414 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
16417 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16419 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
16420 ("tstqi" split): Avoid using memory for tstqi on address register.
16421 (splits): Remove constraints.
16422 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
16423 ("cmpdf", "cmpsf"): Remove since not used.
16424 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
16425 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
16427 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16429 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
16430 ("neghi2"): Tighten constraints.
16431 ("one_cmplsi2"): Optimize and simplify split.
16432 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
16434 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16436 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
16437 and split of AND operation to clear the upper bits.
16438 ("*logicalsi3_zextqi"): Likewise.
16439 ("*logicallhi3_zexthi_ashift8"): Likewise.
16440 ("*logicalsi3_silshr16"): Likewise.
16441 ("logicalsi3_silshl16"): Likewise.
16442 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
16444 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16446 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
16447 (m68hc11_indirect_p): New function.
16448 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
16449 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
16451 (asm_print_register): Likewise.
16452 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
16453 (m68hc11_indirect_p): Declare.
16454 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
16455 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
16456 (TARGET_SWITCHES): New option -mrelax.
16457 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
16459 ("iorsi3", "xorsi3"): Likewise.
16460 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
16461 ("*andhi3_mem"): New to handle destination in memory with bclr
16462 and a scratch register.
16463 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
16464 ("*andhi3_const"): New when operand2 is constant.
16465 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
16466 ("*andhi3_gen"): Cleanup of the old "andhi3".
16467 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
16468 ("xorqi3"): Update constraints.
16470 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16472 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
16473 for reg_equiv_memory_loc when the operand is a register that does
16474 not get a hard register (stack location).
16475 (tst_operand): After reload, accept all memory operand.
16476 (symbolic_memory_operand): Fix detection of symbolic references.
16477 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
16478 accept symbols and any constant.
16480 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16482 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
16483 note on the insn that sets the soft frame register.
16484 (must_parenthesize): ix and iy are also reserved names.
16485 (print_operand_address): One more place where parenthesis are required
16486 to avoid confusion with register names.
16487 (m68hc11_gen_movhi): Allow push of stack pointer.
16488 (m68hc11_check_z_replacement): Fix handling of parallel with a
16490 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
16491 the replacement register is.
16492 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
16493 and D8_REGS classes.
16494 (MODES_TIEABLE_P): All modes are tieable except QImode.
16496 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16498 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
16499 (___subdi3): Likewise.
16500 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
16501 (__map_data_section): Optimize 68hc11 case.
16503 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16505 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
16506 than a shift to avoid adding a register with itself.
16507 (m68hc11_memory_move_cost): Take into account NO_REGS.
16508 (m68hc11_register_move_cost): Update and use memory move cost
16509 for soft registers.
16510 (m68hc11_address_cost): Make cost of valid offset not 0 so that
16511 it gives more opportunities to cse to optimize.
16512 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
16513 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
16515 2002-03-15 Mark Mitchell <mark@codesourcery.com>
16517 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
16518 * c-common.def (CLEANUP_STMT): New tree node.
16519 * c-common.h (CLEANUP_DECL): New macro.
16520 (CLEANUP_EXPR): Likewise.
16521 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
16522 * expr.c (expand_expr): Tidy.
16523 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
16524 * tree-inline.c (initialize_inlined_parameters): Clean up
16525 new local variables.
16527 2002-03-15 Jakub Jelinek <jakub@redhat.com>
16530 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
16531 before movrXX only, use reg_overlap_mentioned_p.
16532 Only special case NE if just one insn can be generated.
16534 2002-03-15 Jason Merrill <jason@redhat.com>
16536 * varasm.c (assemble_variable): Call resolve_unique_section before
16537 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
16538 of error_mark_node.
16540 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
16543 * arm.md (split pattern for thumb shiftable immediates): Add comment
16544 explaining non-obvious test.
16546 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
16549 * arm.md (movaddr, movaddr_insn): Delete.
16551 2002-03-15 Jason Merrill <jason@redhat.com>
16553 * toplev.c (wrapup_global_declarations): Clarify variable handling.
16554 -fkeep-static-consts doesn't apply to comdats.
16556 2002-03-14 Richard Henderson <rth@redhat.com>
16558 * c-decl.c: Include c-pragma.h.
16559 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
16560 (finish_function): Tidy.
16561 * c-pragma.c: Include c-common.h.
16562 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
16563 (handle_pragma_weak): Use them.
16564 (init_pragma): Register pending_weaks.
16565 * c-pragma.h (maybe_apply_pragma_weak): Declare.
16566 * print-tree.c (print_node): Print DECL_WEAK.
16567 * varasm.c (mark_weak_decls): Remove.
16568 (remove_from_pending_weak_list): Remove.
16569 (add_weak): Remove.
16570 (asm_emit_uninitialised): Call globalize_decl for weak commons.
16571 (weak_decls): Make a tree_list.
16572 (declare_weak): Cons weak_decls directly.
16573 (globalize_decl): Remove weak_decls elements directly.
16574 (weak_finish): Simplify weak_decls walk. Don't weaken unused
16575 symbols. Don't pretend to handle aliases.
16576 (init_varasm_once): Update weak_decls registry.
16577 * Makefile.in: Update dependencies.
16579 2002-03-14 Richard Henderson <rth@redhat.com>
16582 * config/ia64/ia64.c: Include tm_p.h last.
16583 (gen_nop_type): Remove duplicate definition.
16584 (cycle_end_fill_slots): Set sched_data for second L slot.
16585 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
16586 (nop_cycles_until): Fix typos.
16588 2002-03-15 Jakub Jelinek <jakub@redhat.com>
16590 PR optimization/5891
16591 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
16593 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
16595 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
16596 descriptors correctly.
16598 2002-03-14 Michael Meissner <meissner@redhat.com>
16600 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
16601 100, allowing MAX_UNROLLED_INSNS to be overridden.
16603 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
16606 * unroll.c (params.h): Include.
16607 (MAX_UNROLLED_INSNS): Delete, now in params.h.
16609 * doc/invoke.texi (--param max-unroll-insns): Document.
16611 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
16613 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
16615 * arm.md: Fix warnings about constraints in peepholes and splits.
16617 2002-03-14 Zack Weinberg <zack@codesourcery.com>
16619 * cpphash.h (struct lexer_state): Remove line_extension member.
16620 * cpplib.c (dequote_string, do_linemarker): New functions.
16621 (linemarker_dir): New data object.
16622 (DIRECTIVE_TABLE): No longer need to interpret #line in
16623 preprocessed source. Delete obsolete comment about return
16624 values of handlers.
16625 (end_directive, directive_diagnostics, _cpp_handle_directive):
16626 Don't muck with line_extension.
16627 (directive_diagnostics): No need to issue warnings for
16629 (_cpp_handle_directive): Issue warnings for linemarkers here,
16630 when appropriate. Dispatch linemarkers to do_linemarker, not
16632 (do_line): Code to handle linemarkers split out to do_linemarker.
16633 Convert escape sequences in filename argument, both places.
16635 * cppmacro.c (quote_string): Rename cpp_quote_string and
16636 export. All callers changed.
16637 * cpplib.h (cpp_quote_string): Prototype.
16638 * cppmain.c (print_line): Call cpp_quote_string on to_file
16639 before printing it.
16641 * doc/cpp.texi: Document that escapes are now interpreted in
16642 #line and in linemarkers, and that non-printing characters are
16643 converted to octal escapes when linemarkers are generated.
16645 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
16647 * emit-rtl.c (try_split): Use delete_insns.
16648 * recog.c (split_all_insns): Fix terminating condition.
16650 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
16651 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
16654 * arm.c (arm_output_epilogue): Fix floating-point register save
16655 adjustment when using a frame pointer.
16657 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
16659 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
16660 * config/mips/mips.c (compute_frame_size): Retrofit them here.
16661 (save_restore_insns, mips_expand_epilogue): And here.
16662 (build_mips16_call_stub): And here.
16663 (mips_function_value): Use the new macros to decide whether a single
16664 or complex float can be returned in floating-point registers. Return
16665 a parallel rtx in the complex case.
16667 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
16669 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
16670 call after liveness analysis.
16672 * recog.c (split_insn): Use delete_insn_and_edges.
16674 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
16675 instructions to have branch prediction notes.
16676 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
16678 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
16680 * configure.in: Don't pass -Wno-long-long to a ADA compiler
16681 that doesn't support it.
16682 * configure: Regenerate.
16684 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16687 * config/sparc/sparc.md (normal_branch, inverted_branch,
16688 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
16689 inverted_fp_branch): Adjust calls to output_cbranch.
16690 Set length attribute.
16691 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
16692 output_v9branch. Set length attribute.
16693 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
16695 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
16696 (output_cbranch): Likewise. Handle far branches.
16697 (output_v9branch): Handle far branches.
16698 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
16700 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
16701 noov_compare64_op predicates.
16703 2002-03-13 Jason Merrill <jason@redhat.com>
16705 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
16706 into the function and constify it.
16707 * gthr-dce.h, gthr-solaris.h: Likewise.
16709 2002-03-13 David Edelsohn <edelsohn@gnu.org>
16711 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
16712 * config/rs6000/rs6000.c (rs6000_va_arg): Use
16713 std_expand_builtin_va_arg if not ABI_V4.
16715 2002-03-13 Jason Merrill <jason@redhat.com>
16717 * varasm.c (globalize_decl): New fn.
16718 (assemble_start_function): Use it.
16719 (asm_emit_uninitialized): Use it.
16720 (assemble_alias): Use it.
16721 (assemble_variable): Use it.
16723 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
16725 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
16726 2002-03-12 internal visibility change.
16727 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
16728 visibility into SYMBOL_REF_FLAG.
16730 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
16732 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
16733 VOIDmode operand. Add compile-time optimization for constant results.
16735 2002-03-12 Jason Merrill <jason@redhat.com>
16737 * c-typeck.c (convert_for_assignment): Don't allow conversions
16738 between pointers and references. Only allow lvalues to convert to
16741 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
16743 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
16744 before prologue, to avoid scheduling problems.
16746 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16748 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
16749 (ELIMINABLE_REGS): Add sfp->sp.
16750 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
16752 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16754 PR optimization/5892
16755 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
16757 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16759 * loop.c (basic_induction_var): Don't call convert_modes if mode
16760 classes are different.
16762 2002-03-12 Richard Henderson <rth@redhat.com>
16764 PR optimization/5901
16765 * function.c (reposition_prologue_and_epilogue_notes): Position
16766 the markers after/before the last/first insn not deleted.
16768 2002-03-12 Richard Henderson <rth@redhat.com>
16770 PR optimization/5878
16771 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
16772 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
16773 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
16775 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
16776 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
16777 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
16779 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
16780 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
16781 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
16782 also. Don't set it if not flag_pic.
16783 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
16784 to be INVALID_REGNUM when not used.
16786 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
16788 * expmed.c (store_bit_field): Reset alias set for memory.
16789 (extract_bit_field): Same.
16791 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16793 * c-common.c (c_tree_code_type, c_tree_code_length,
16794 c_tree_code_name, add_c_tree_codes): Delete.
16795 * c-common.h (add_c_tree_codes): Delete.
16796 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
16798 * c-objc-common.c (c_objc_common_init): Don't call
16799 add_c_tree_codes, instead set lang_unsafe_for_reeval.
16800 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
16801 objc_tree_code_name, add_objc_tree_codes): Delete.
16802 (objc_init): Don't call add_objc_tree_codes.
16803 * objc/objc-lang.c (tree_code_type, tree_code_length,
16804 tree_code_name): Define.
16805 * toplev.c (lang_independent_init): Don't set
16806 tree_code_length[IDENTIFIER_NODE].
16807 * tree.c (tree_code_type, tree_code_length, tree_code_name):
16808 Delete definitions, moved to language front-ends.
16809 * tree.def (IDENTIFIER_NODE): Hardwire the length.
16810 * tree.h (tree_code_type, tree_code_length, tree_code_name):
16812 (tree_code_length): Change type to unsigned char.
16814 2002-03-12 Richard Henderson <rth@redhat.com>
16816 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
16817 internal visibility change.
16819 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16821 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
16822 validize_mem() instead of change_address to avoid clobbering
16825 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
16827 * c-lex.h (position_after_whitespace): Remove.
16829 2002-03-12 Jakub Jelinek <jakub@redhat.com>
16831 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
16832 (lex_string): Use unsigned char pointers.
16834 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
16836 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
16837 is not a valid memory_operand.
16839 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16841 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
16842 * config/xtensa/lib1funcs.asm: Fix copyright to include
16843 special case for libgcc files.
16844 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
16845 (__divsi3): Likewise.
16846 (__umodsi3): Likewise.
16847 (__modsi3): Likewise.
16848 * config/xtensa/lib2funcs.S: Fix copyright to include
16849 special case for libgcc files.
16851 2002-03-12 Tom Rix <trix@redhat.com>
16853 * collect2.c (resolve_lib_name): Move outside of
16854 OBJECT_FORMAT_COFF ifdef.
16855 (ignore_library): Same.
16857 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16859 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
16861 2002-03-12 Bob Wilson <bob.wilson@acm.org>
16863 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
16864 to function_section before writing out the constant pool.
16866 2002-03-12 David Edelsohn <edelsohn@gnu.org>
16868 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
16870 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
16872 2002-03-12 Alan Modra <amodra@bigpond.net.au>
16874 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
16875 (adddi3): Likewise.
16878 (cmpsi splitter): Likewise.
16879 (modsi3): Fail if <= 0.
16880 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
16881 redundant test when HOST_BITS_PER_WIDE_INT != 32.
16882 (reg_or_sub_cint64_operand): Likewise.
16883 (num_insns_constant_wide): Optimize sign extension.
16884 (rs6000_legitimize_address): Likewise.
16886 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
16888 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16889 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
16891 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
16893 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
16894 address calculation.
16896 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
16898 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
16899 scratch register to DImode / TImode.
16900 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
16901 register used does not overlap the target.
16903 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16905 * Makefile.in (debug.o): Depend on debug.h.
16906 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
16907 * debug.c (do_nothing_debug_hooks): Likewise.
16908 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
16909 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
16910 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
16911 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
16912 * dwarfout.c (dwarf_debug_hooks): Likewise.
16913 * integrate.c (output_inline_function): Likewise.
16914 * objc/objc-act.c (synth_module_prologue): Likewise.
16915 * sdbout.c (sdb_debug_hooks): Likewise.
16916 * toplev.c (debug_hooks): Likewise.
16917 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16919 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16921 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
16922 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
16923 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
16924 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
16925 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
16926 * defaults.h (POINTER_SIZE): Define.
16927 * doc/tm.texi (POINTER_SIZE): Document default.
16929 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16931 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
16933 2002-03-11 Richard Henderson <rth@redhat.com>
16935 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
16936 if rebuild_label_notes_after_reload.
16938 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
16940 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
16941 emit pic register load if "internal" visibility.
16942 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
16943 (cris_expand_builtin_va_arg): Do all computations on trees.
16945 2002-03-11 Richard Henderson <rth@redhat.com>
16947 * rtlanal.c: Include recog.h.
16948 (keep_with_call_p): Fix thinko.
16949 * Makefile.in (rtlanal.o): Update dependencies.
16951 2002-03-11 Chris Meyer <cmeyer@gatan.com>
16953 * genflags.c (gen_insn): Use IS_VSPACE.
16954 * genoutput.c (output_insn_data): Likewise.
16955 (process_template): Likewise.
16957 2002-03-11 Richard Henderson <rth@redhat.com>
16959 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
16961 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
16963 * Makefile.in: Update.
16964 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
16965 Update documentation.
16966 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
16967 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
16969 2002-03-11 Zack Weinberg <zack@codesourcery.com>
16971 * Makefile.in: Give texi2pod its input file as a command line
16972 argument, not on stdin.
16974 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
16975 Daniel Berlin <dan@dberlin.org>
16977 C++ alias analysis improvement.
16978 * alias.c (record_component_aliases): Record aliases for base
16981 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
16983 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
16985 2002-03-11 Douglas B Rupp <rupp@gnat.com>
16987 * toplev.c (vms_fopen): Remove, not needed.
16989 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
16991 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
16993 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
16994 for FP, already done later.
16996 * toplev.c (debug_args): Add entry for VMS_DEBUG.
16997 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
16999 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
17001 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
17002 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
17003 LARGEST_EXPONENT_IS_NORMAL for the given mode.
17004 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
17005 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
17006 (ediv, emul, eldexp, esqrt): Likewise.
17007 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
17008 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
17009 (saturate): New function.
17010 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
17011 (make_nan): Use a saturation value instead of a NaN if
17012 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
17013 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
17014 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
17015 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
17016 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
17017 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
17018 !ROUND_TOWARDS_ZERO.
17019 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
17020 (ROUND_TOWARDS_ZERO): Document.
17022 2002-03-11 Andreas Jaeger <aj@suse.de>
17024 * cfg.c (dump_flow_info): Remove unused variable.
17026 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
17028 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
17029 computations on trees.
17031 2002-03-10 Richard Henderson <rth@redhat.com>
17034 * reload.c (copy_replacements_1): New.
17035 (copy_replacements): Use it to recurse through the rtx.
17037 2002-03-10 Richard Henderson <rth@redhat.com>
17039 * loop.c (strength_reduce): Compute number of iterations as
17040 unsigned HOST_WIDE_INT.
17042 2002-03-10 Richard Henderson <rth@redhat.com>
17044 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
17045 to move away from the end of the block.
17047 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
17049 PR preprocessor/5899
17050 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
17052 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17054 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
17056 * attribs.c (decl_attributes): Fix signed/unsigned warning.
17058 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
17060 * config/mmix/mmix.c: Improve comments.
17061 (mmix_target_asm_function_prologue): Drop variable
17062 empty_stack_frame. Don't allocate unused slot above fp.
17063 (mmix_target_asm_function_epilogue): Mirror prologue changes.
17064 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
17065 brace in first column.
17066 (enum reg_class): Ditto.
17067 (FIRST_PARM_OFFSET): Now 0.
17068 (USER_LABEL_PREFIX): Remove #if 0:d definition.
17070 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17072 * combine.c (make_extraction): Fix error in last change.
17074 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17076 * c4x.c (c4x_fp_reglist): Const-ify.
17077 * cris.c (cris_print_operand): Likewise.
17078 * i386.c (ix86_va_arg): Likewise.
17079 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
17080 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
17081 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
17082 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
17083 * mcore.h (regno_reg_class): Likewise.
17084 * mips.c (gen_int_relational): Likewise.
17085 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
17086 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
17087 * pdp11.c (move_costs): Likewise.
17088 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
17089 * s390.c (s390_branch_condition_mnemonic, regclass_map):
17091 * s390.h (regclass_map): Likewise.
17092 * sh.c (shift_amounts): Likewise.
17093 * sh.md (rotlsi3): Likewise.
17095 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
17097 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
17098 (ne0+5): Use new clobber to generate proper shift pattern.
17099 Patch by Michael Matz <matz@kde.org>.
17101 2002-03-09 Andreas Schwab <schwab@suse.de>
17103 * gcc.c (validate_all_switches): Also handle `%W{...}'.
17105 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
17107 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
17109 2002-03-09 Jakub Jelinek <jakub@redhat.com>
17112 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
17113 even for non-representable constants.
17115 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17117 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
17118 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
17119 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
17120 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
17121 (pop_function_context): Compute MAY_SHARE parameter for
17123 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
17124 (gen_mem_addressof): Call fixup_var_refs with new parm.
17126 * combine.c (make_extraction): Don't make extension of CONST_INT.
17128 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
17130 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
17131 in o32 and o64 ABIs.
17132 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
17133 but getting fixed-size structs passed in registers regardless of
17134 padding in o32 and o64 ABIs.
17136 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
17137 offset before loading address of argument passed by transparent
17140 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
17142 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
17144 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
17146 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
17147 marker such that registers after it are saved.
17149 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17151 * sparc.c (arith_4096_operand): Fix error in last change.
17153 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
17155 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
17156 defaults for MEABI.
17158 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
17160 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
17163 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
17165 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
17167 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
17169 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
17170 removed; fix return value.
17171 * combine.c (combine_instructions): Dirtify blocks where we failed to
17172 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
17173 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
17175 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17177 * gcse.c (insert_insn_end_bb): Fix typo in last change.
17179 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
17181 * recog.c (peephole2_optimize): Re-distribute EH edges.
17183 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
17185 * expr.c (expand_expr): Use unsave lang hook.
17186 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
17187 (LANG_HOOKS_INITIALIZER): Update.
17188 * langhooks.h (struct lang_hooks): New hook unsave.
17189 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
17190 (unsave_expr_1): Remove unused lang_unsave_expr_now.
17191 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
17192 (unsave_expr_now): Remove.
17193 * tree.h (unsave_expr_now, lang_unsave,
17194 lang_unsave_expr_now): Remove.
17197 2002-03-08 Andreas Jaeger <aj@suse.de>
17199 * flow.c (propagate_block_delete_insn): Remove unused variable.
17201 2002-03-08 Kazu Hirata <kazu@hxi.com>
17203 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
17204 insn length for memory load/store.
17206 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
17208 * doc/install.texi (--with-libiconv-prefix): Document.
17210 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
17212 * doc/sourcebuild.texi: Fix typo.
17214 2002-03-08 Jakub Jelinek <jakub@redhat.com>
17217 * builtins.c (std_expand_builtin_va_arg): Do all computations on
17220 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17222 * rtl.c (copy_most_rtx): Move from here ...
17223 * emit-rtl.c (copy_most_rtx): ... to here.
17225 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
17227 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
17228 SUBTARGET_CPP_SIZE_SPEC.
17229 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
17231 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
17233 2002-03-07 Matt Hiller <hiller@redhat.com>
17235 * gensupport.c (first_dir_md_include): Renamed from include;
17236 change all references.
17237 (last_dir_md_include): Renamed from last_include; change all
17239 (init_md_reader): Unconditionally initialize base_dir whether or
17240 not filename is a relative path.
17242 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
17244 * config/fp-bit.c (_unord_f2): Compile it in even if
17245 US_SOFTWARE_GOFAST is enabled.
17247 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
17248 NULL_RTX. Set all HFmode operations as NULL_RTX.
17249 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
17250 NULL_RTX, try reversing the comparison and the operands.
17252 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
17254 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
17255 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
17258 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
17260 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
17262 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
17264 * basic-block.h (fixup_abnormal_edges): Declare.
17265 * reload1.c (fixup_abnormal_edges): New function.
17266 * reg-stack.c (convert_regs): Use it.
17268 * gcse.c (insert_insn_end_bb): Handle trapping insns.
17270 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
17272 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
17274 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
17275 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
17276 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
17277 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
17278 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
17279 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
17280 unless x and y could be infinite.
17281 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
17282 Check that the common type of both arguments is a real, even for
17283 targets without unordered comparisons. Allow an integer argument
17284 to be compared against a real.
17285 (expand_tree_builtin): Use expand_unordered_cmp.
17286 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
17287 * cse.c (fold_rtx): Likewise. Fix indentation.
17288 * fold-const.c (fold_real_zero_addition_p): New.
17289 (fold): Use it, and the new HONOR_... macros.
17290 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
17291 * jump.c (reversed_comparison_code_parts): After searching for
17292 the true comparison mode, use HONOR_NANS to decide whether it
17293 can be safely reversed.
17294 (reverse_condition_maybe_unordered): Remove IEEE check.
17295 * simplify-rtx.c (simplify_binary_operation): Use the new macros
17296 to decide which simplifications are valid. Allow the following
17297 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
17298 and (a - -b) to (a + b).
17299 (simplify_relational_operation): Use HONOR_NANS.
17300 * doc/tm.texi: Document the MODE_HAS_... macros.
17302 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
17304 * combine.c (simplify_comparison): If simplifying a logical shift
17305 right and compare with constant, force the comparison to unsigned.
17307 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
17309 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
17311 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
17313 (alt_reg_names): Remove % for vrsave.
17315 2002-03-06 Richard Henderson <rth@redhat.com>
17317 PR optimization/5844
17318 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
17319 if used indicates we've already emitted one copy of an operand.
17320 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
17321 (gen_split): Supply a non-null used.
17323 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
17325 * reload1.c (reload): Unshare all rtl after reload is done.
17327 * simplify-rtx.c (simplify_plus_minus): Do not abort,
17328 but simply fail if the expression is too complex to simplify.
17329 (simplify_gen_binary): Handle simplify_plus_minus failures.
17331 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
17333 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
17334 consistently call delete_trivially_dead_insns after CSE and GCSE;
17335 fix DFI_life dumping; do jump threading after liveness; do crossjumping
17336 after liveness2; update comment in last crossjumping.
17337 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
17339 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
17341 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
17342 after completing fast dead code elimination.
17344 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
17347 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
17349 * version.c: Fix misplaced leading blanks on first line.
17351 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
17353 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
17355 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
17357 * cfgcleanup.c (mentions_nonequal_regs): New function.
17358 (thread_jump): Use it.
17359 * toplev.c (rest_of_compilation): Run jump threading after
17362 2002-03-06 Jakub Jelinek <jakub@redhat.com>
17364 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
17367 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
17369 * predict.c (estimate_bb_frequencies): Do not reload the
17370 frequencies from notes.
17372 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
17374 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
17375 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
17377 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
17378 delete_noop_moves): Return indeger.
17379 * flow.c (ndead): New variable.
17380 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
17381 BB argument; update callers.
17382 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
17383 (life_analysis): Do not call purge_all_dead_edges.
17384 (update_life_info): Return number of deleted insns; print statistics.
17385 (update_life_info_in_dirty_blocks): likewise.
17386 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
17387 return number of insns deleted.
17389 * cse.c: Include timevar.h
17390 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
17391 iterate until stabilizes; print statistics; return number of killed
17393 * Makefile.in: (cse.o): Add timevar.h dependency
17394 * rtl.h (delete_trivially_dead_insns): New.
17395 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
17396 * toplev.c (rest_of_compilation): Update callers.
17398 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
17399 (try_optimize_cfg): Do not update liveness.
17400 (cleanup-cfg): Loop until try_optimize_cfg and dead code
17401 removal stabilizes; use delete_trivially_dead_insns.
17403 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
17405 2002-03-05 Zack Weinberg <zack@codesourcery.com>
17407 * cppmain.c (setup_callbacks): Disable #pragma and #ident
17408 callbacks when processing assembly language.
17410 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
17412 * pa.h (ASM_FILE_END): Define.
17413 * som.h (ASM_FILE_END): Delete.
17415 * pa.c (function_arg): Don't pass floats in general registers in
17416 indirect calls if TARGET_ELF32.
17418 2002-03-05 Richard Henderson <rth@redhat.com>
17420 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
17422 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
17424 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
17426 2002-03-05 Jakub Jelinek <jakub@redhat.com>
17428 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
17429 -r command line. Don't hide any symbols if not building
17432 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
17434 * cfg.c (dump_flow_info): Warn about profile mismatches.
17435 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
17436 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
17438 2002-03-05 Jakub Jelinek <jakub@redhat.com>
17440 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
17441 wide volatile memory by parts.
17443 2002-03-05 Jakub Jelinek <jakub@redhat.com>
17445 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
17448 2002-03-05 Richard Henderson <rth@redhat.com>
17450 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
17452 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
17454 * toplev.c (documented_lang_options): Document more
17455 language-specific options.
17456 * doc/invoke.texi (Warning Options): Correct documentation for
17457 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
17458 * c-decl.c (c_decode_option): Use a table to handle warning options.
17460 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
17462 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
17463 parameter to mmix_encode_section_info.
17464 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
17465 relocatably. Always produce ELF, not mmo if linking relocatably.
17466 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
17467 first is non-zero, don't add symbol prefix.
17468 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
17469 prototype accordingly.
17471 2002-03-04 Krister Walfridsson <cato@df.lth.se>
17473 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
17475 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
17477 * configure.in: Increase required makeinfo version to 4.1.
17478 * configure: Regenerate.
17480 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
17482 * .cvsignore: Remove *.info* and genrtl*; these files are generated
17485 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
17487 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
17488 * doc/invoke.texi: Fix @math uses.
17490 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
17492 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
17495 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
17497 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
17498 (powerpc-*-eabisimaltivec*): Same.
17500 * config/rs6000/t-ppcendian: New.
17502 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17504 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
17505 nonimmediate_src_operand and nonimmediate_lsrc_operand to
17506 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
17508 2002-03-03 Richard Henderson <rth@redhat.com>
17510 * toplev.c (rest_of_decl_compilation): Revert last two changes.
17512 2002-03-03 Zack Weinberg <zack@codesourcery.com>
17514 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
17515 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
17516 tree.c, config/m68k/m68k.c:
17517 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
17518 REAL_ARITHMETIC blocks unconditional. Delete some further
17519 #ifdef blocks predicated on REAL_ARITHMETIC.
17520 * flags.h, toplev.c: Delete remaining references to
17521 flag_pretend_float.
17523 * doc/invoke.texi: Remove documentation of -fpretend-float.
17524 * doc/tm.texi: Describe the various REAL_* macros as provided by
17525 real.h, not by the target configuration files.
17527 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
17528 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
17529 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17530 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
17531 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
17532 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
17533 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
17534 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
17535 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
17536 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
17537 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
17538 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
17539 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
17540 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
17541 config/xtensa/xtensa.h:
17542 Do not define, undefine, or mention in comments any of
17543 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
17544 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
17545 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
17546 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
17547 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
17548 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
17549 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
17550 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
17551 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
17553 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17555 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
17556 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
17557 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
17558 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
17559 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
17560 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
17562 * defaults.h (BITS_PER_WORD): Define.
17563 * doc/tm.texi (BITS_PER_WORD): Document default value.
17565 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
17566 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
17567 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
17569 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17571 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
17572 lieu of explicit sizeof/sizeof.
17573 * i386.c (override_options, ix86_init_mmx_sse_builtins,
17574 ix86_expand_builtin): Likewise.
17575 * mips.c (mips_add_gc_roots): Likewise.
17576 * mmix.c (mmix_output_condition): Likewise.
17577 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
17578 altivec_init_builtins): Likewise.
17579 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
17580 * cppexp.c (Nsuff, parse_number): Likewise.
17581 * cppinit.c (builtin_array_end): Likewise.
17582 * gcc.c (n_default_compilers, process_command): Likewise.
17583 * genpreds.c (output_predicate_decls): Likewise.
17584 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
17585 * lcm.c (N_ENTITIES): Likewise.
17586 * stor-layout.c (set_sizetype): Likewise.
17588 2002-03-03 Richard Henderson <rth@redhat.com>
17590 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
17591 for types or labels.
17593 2002-03-03 Richard Henderson <rth@redhat.com>
17595 * c-decl.c (start_decl): Initialized variables are not common.
17597 2002-03-02 Per Bothner <per@bothner.com>
17599 * gcc.c (option_map): Suport new --bootclasspath option.
17600 --CLASSPATH is now just an alias for --classpath.
17602 2002-03-02 Richard Henderson <rth@redhat.com>
17604 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
17605 load if "internal" visibility.
17606 * doc/extend.texi: Document visibility meanings.
17608 2002-03-02 Richard Henderson <rth@redhat.com>
17610 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
17611 to functions as well.
17613 2002-03-02 Richard Henderson <rth@redhat.com>
17615 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
17616 (handle_visibility_attribute): Don't call assemble_visibility.
17617 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
17618 without asmspec. Invoke assemble_alias when needed.
17619 * varasm.c (maybe_assemble_visibility): New.
17620 (assemble_start_function, assemble_variable, assemble_alias): Use it.
17622 2002-03-02 Richard Henderson <rth@redhat.com>
17624 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
17625 invoke ENCODE_SECTION_INFO with first call flag.
17627 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
17628 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
17629 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
17630 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
17631 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
17632 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
17633 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
17634 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
17635 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
17636 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
17637 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
17638 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
17639 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
17640 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
17641 config/mcore/mcore-protos.h, config/mcore/mcore.c,
17642 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
17643 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
17644 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
17645 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
17646 config/sh/sh.h, config/sparc/sparc.h,
17647 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
17648 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
17649 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
17650 FIRST argument. As needed, examine it and do nothing.
17652 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
17653 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17654 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
17656 * config/arm/t-pe (pe.o): Add dependencies.
17658 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17660 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
17661 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
17662 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
17663 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
17664 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
17665 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
17666 * defaults.h (BITS_PER_UNIT): Define.
17667 * doc/tm.texi (BITS_PER_UNIT): Document default value.
17669 2002-03-02 Kazu Hirata <kazu@hxi.com>
17671 * config/h8300/h8300-protos.h: Add a prototype for
17672 compute_a_shift_length.
17673 * config/h8300/h8300.c (h8300_asm_insn_count): New.
17674 (compute_a_shift_length): Likewise.
17675 (h8300_adjust_insn_length): Do not adjust insn length of shift
17677 * config/h8300/h8300.md (anonymous shift patterns): Use
17678 compute_a_shift_length.
17680 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17682 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
17683 trunc_int_for_mode.
17685 * emit-rtl.c (offset_address): Call update_temp_slot_address.
17687 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17689 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
17690 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
17691 * flags.h (flag_zero_initialized_in_bss): Declare.
17692 * toplev.c (flag_zero_initialized_in_bss): New flag.
17693 (lang_independent_options): Add flag_zero_initialized_in_bss.
17694 * tree.c (initializer_zerop): New function.
17695 * tree.h (initializer_zerop): Declare.
17696 * varasm.c (assemble_variable): If we can emit bss, put zero
17697 initializers in the bss section.
17699 2002-03-02 Alan Modra <amodra@bigpond.net.au>
17701 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
17702 like more than one symbol per .weak directive.
17704 2002-03-01 Richard Henderson <rth@redhat.com>
17706 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
17707 adjust argument_pointer by pretend_args_size.
17708 (ia64_va_start): Adjust va_start address by -pretend_args_size.
17710 2002-03-01 Kazu Hirata <kazu@hxi.com>
17712 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
17714 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
17716 * toplev.c (rest_of_compilation): Delete dead jumptables before
17718 * flow.c (delete_dead_jumptables): Make global.
17719 * rtl.h (delete_dead_jumptables): Declare.
17721 2002-03-01 David Edelsohn <edelsohn@gnu.org>
17723 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
17724 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
17725 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
17727 2002-03-01 Kazu Hirata <kazu@hxi.com>
17729 * config/h8300/h8300-protos.h: Fix formatting.
17730 * config/h8300/h8300.c: Likewise.
17731 * config/h8300/h8300.h: Likewise.
17733 2002-03-01 Kazu Hirata <kazu@hxi.com>
17735 * config/h8300/h8300.c (print_operand): Support 16-bit
17736 constant addresses.
17737 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
17739 2002-02-28 Richard Henderson <rth@redhat.com>
17741 * expmed.c (store_bit_field): Prevent generation of CONCATs;
17742 pun complex values as integers; use gen_lowpart instead of
17744 (extract_bit_field): Likewise.
17746 2002-03-01 Alan Modra <amodra@bigpond.net.au>
17747 David Edelsohn <edelsohn@gnu.org>
17749 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
17750 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
17751 (SUPPORTS_WEAK): Likewise.
17752 * output.h (add_weak): Add tree param.
17753 * varasm.c (add_weak): Likewise. Save decl.
17754 (struct weak_syms): Add decl field.
17755 (mark_weak_decls): New function.
17756 (init_varasm_once): ggc_add_root mark_weak_decls.
17757 (assemble_start_function): Use ASM_WEAKEN_DECL.
17758 (assemble_variable): Likewise.
17759 (assemble_alias): Likewise.
17760 (declare_weak): Pass decl to add_weak.
17761 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
17762 (remove_from_pending_weak_list): Declare and define for
17764 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
17765 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
17766 * defaults.h (SUPPORTS_WEAK): Likewise.
17767 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
17768 .weak for code sym. Do emit .size for descriptor sym.
17769 (ASM_DECLARE_FUNCTION_SIZE): Define.
17770 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
17771 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
17772 .lglobl unless TARGET_XCOFF. Formatting fixes.
17773 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
17774 .weak for code sym.
17775 (HANDLE_PRAGMA_WEAK): Remove.
17776 (ASM_WEAKEN_LABEL): Remove.
17777 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
17779 2002-03-01 Jason Merrill <jason@redhat.com>
17781 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
17782 (TARGET_EXPR_CLEANUP): New macro.
17784 2002-02-28 Steve Ellcey <sje@cup.hp.com>
17786 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
17787 to take ptr_extend into account as third type of extension.
17788 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
17789 fields used by SUBREG_PROMOTED_UNSIGNED_P.
17790 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
17791 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
17792 * calls.c (precompute_arguments): Use new macro.
17793 (expand_call): Ditto.
17794 * combine.c (nonzero_bits): Ditto.
17795 (record_promoted_value): Ditto.
17796 * expr.c (store_expr): Ditto.
17797 (expand_expr): Ditto.
17798 * function.c (assign_parms): Ditto.
17800 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
17802 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
17803 override -shared and -shared-libgcc.
17805 2002-02-28 David O'Brien <obrien@FreeBSD.org>
17807 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
17809 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
17812 2002-02-28 Richard Henderson <rth@redhat.com>
17814 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
17815 4 cycle latency from MM producers.
17816 (ia64_internal_sched_reorder): Likewise with pipeline flush.
17818 2002-02-28 Jakub Jelinek <jakub@redhat.com>
17820 * mklibgcc.in: Don't use GNU make extension.
17822 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
17824 * c-parse.in (STATIC): New terminal.
17825 (scspec): New non-terminal. Update productions accordingly.
17826 (program): Remove bogus ifc / end ifc.
17827 (array_declarator): Simplify production using STATIC.
17829 2002-02-28 Jim Meyering <meyering@lucent.com>
17831 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
17832 \a still means TARGET_BELL.
17834 2002-02-28 Richard Henderson <rth@redhat.com>
17836 * haifa-sched.c (sched_emit_insn): New.
17837 (schedule_block): Use last_scheduled_insn to track last insn.
17838 * sched-int.h (sched_emit_insn): Prototype.
17839 * config/ia64/ia64.c (last_issued): Remove.
17840 (ia64_variable_issue): Don't set it.
17841 (nop_cycles_until): Use sched_emit_insn.
17843 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
17845 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
17846 extended constants.
17848 2002-02-28 Kazu Hirata <kazu@hxi.com>
17850 * config/h8300/h8300.c: Fix formatting.
17851 * config/h8300/h8300.h: Likewise.
17853 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
17855 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
17856 which may overwrite the high byte of the frame pointer.
17858 2002-02-28 Bo Thorsen <bo@suse.de>
17860 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
17861 (STARTFILE_SPEC): Add 64 bit files.
17862 (ENDFILE_SPEC): Likewise.
17864 2002-02-28 Jason Merrill <jason@redhat.com>
17866 * c-decl.c (finish_function): Only warn about missing return
17867 statement with -Wreturn-type.
17869 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
17871 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
17873 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
17874 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
17876 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
17878 * basic-block.h (BB_REACHABLE): Renumber.
17879 (BB_DIRTY, BB_NEW): New flags.
17880 (clear_bb_flags): Declare.
17881 (update_life_info_in_dirty_blocks): Declare.
17882 * cfg.c (clear_bb_flags): New function.
17883 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
17884 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
17885 reorder_insns, emit_insn_after): Mark block as dirty.
17886 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
17887 (update_life_info_in_dirty_blocks): New function.
17888 * recog.c (apply_change_group): Dirtify block.
17890 * cse.c (cse_insn): Reorder emitting of jump insn to keep
17892 * gcse.c (delete_null_pointer_checks): Likewise.
17894 * toplev.c (dump_file_index): Move cse2 after bp,
17896 (dump_file_info): Similary.
17897 (rest_of_compilation): Avoid most of CFG rebuilds;
17898 do first if converision after null pointer checks, do cse2
17899 after branch prediction; avoid full liveness rebuild after
17900 initializing subregs.
17901 * invoke.texi (-d options): Document -du, renumber.
17903 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
17904 (notice_new_block): Do not set BB_UPDATE_LIFE.
17905 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
17906 merge_blocks_move_successor_nojumps, merge_blocks,
17907 try_crossjump_to_edge): Likewise.
17908 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
17909 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
17910 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
17911 (merge_of_block): Do not use life_data_ok.
17912 (find_if_case_1): Do not use SET_UPDATE_LIFE.
17913 (if_convert): Use BB_DIRTY mechanizm to update life.
17914 * lcm.c (optimize_mode_switching): Update
17915 update_life_info_in_dirty_blocks
17917 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
17919 * Makefile.in (integrate.o): Update.
17920 * c-decl.c (copy_lang_decl): Rename.
17921 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17922 * integrate.c: Include langhooks.h.
17923 (copy_decl_for_inlining): Update to use langhook.
17924 * langhooks-def.h (lhd_do_nothing_t,
17925 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
17926 (LANG_HOOKS_INITIALIZER): Update.
17927 * langhooks.c (lhd_do_nothing_t): New.
17928 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
17929 * tree.h (copy_lang_decl): Remove.
17931 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
17933 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
17935 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
17936 POST_DEC, and POST_MODIFY.
17938 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17940 * c-typeck.c (digest_init): Remove unused parameter; all
17943 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
17945 * expmed.c (expand_shift): Correctly test for low part of a
17948 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17950 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
17951 insn UIDs with insn addresses.
17953 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17955 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
17956 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
17957 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
17958 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
17959 gcc.c, toplev.c: Delete code implementing -traditional mode.
17961 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
17962 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
17963 Document removal of -traditional mode for compilation, and
17964 remove documentation only relevant to that mode.
17966 * config/nextstep.h, config/ptx4.h, config/svr4.h,
17967 config/convex/convex.h, config/d30v/d30v.h,
17968 config/i386/dgux.h, config/i386/osf1elf.h,
17969 config/i386/osfelf.h, config/i386/osfrose.h,
17970 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
17971 config/m68k/hp310.h, config/m88k/dgux.h,
17972 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
17973 config/m88k/m88k.h, config/m88k/openbsd.h,
17974 config/mips/abi64.h, config/mips/osfrose.h,
17975 config/mips/svr4-5.h, config/mips/svr4-t.h,
17976 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
17977 config/stormy16/stormy16.h: Remove all references to
17978 -traditional from target specs. Delete all mention of the
17979 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
17980 delete a couple of commented-out definitions of
17981 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
17984 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
17985 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
17987 2002-02-27 Zack Weinberg <zack@codesourcery.com>
17989 * mklibgcc.in: Don't use \n in a line subject to
17990 interpretation by echo.
17992 2002-02-27 Graham Stott <grahams@redhat.com>
17994 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
17997 * loop.c (prescan_loop): Handle PARALLEL.
17999 * unroll.c (loop_iterations): Return 0 if the add_val for
18002 * final.c (output_operand_lossage): Constify PFX_STR.
18004 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
18006 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
18008 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
18009 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
18011 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
18013 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
18015 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
18017 * cpplex.c (_cpp_lex_token): Handle directives in macro
18019 * cpplib.c (_cpp_handle_directive): Save and restore state
18020 if parsing macro args when entering a directive.
18021 * cppmacro.c (collect_args): No need to handle directives
18022 in macro arguments.
18023 (enter_macro_context, replace_args): Use the original macro
18024 definition in case it was redefined whilst collecting arguments.
18026 * cpp.texi: Update.
18028 2002-02-26 David Edelsohn <edelsohn@gnu.org>
18030 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
18031 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
18032 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
18034 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
18035 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
18036 (load_toc_v4_PIC_2): Same.
18038 2002-02-26 Alan Modra <amodra@bigpond.net.au>
18040 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
18042 2002-02-26 Richard Henderson <rth@redhat.com>
18044 * config/alpha/alpha.md (ashldi_se): Re-enable.
18046 2002-02-26 Richard Henderson <rth@redhat.com>
18048 * config/alpha/alpha.c (alpha_encode_section_info): Examine
18049 MODULE_LOCAL_P; improve commentary.
18051 2002-02-26 Zack Weinberg <zack@codesourcery.com>
18053 * doc/cpp.texi: Clarify documentation of relationship between
18054 #line and #include.
18056 2002-02-26 Kazu Hirata <kazu@hxi.com>
18058 * config/h8300/h8300-protos.h: Update the prototype for
18059 compute_logical_op_length. Add the prototype for
18060 compute_logical_op_cc.
18061 * config/h8300/h8300.c (compute_logical_op_length): Figure out
18062 code from operands.
18063 (compute_logical_op_cc): New.
18064 * config/h8300/h8300.md: Combine all the logical op patterns
18065 in HImode and SImode. Use compute_logical_op_cc.
18067 2002-02-26 Kelley Cook <kelleycook@comcast.net>
18069 * config/i386/i386.c (print_operand): Don't append ATT-style
18070 length suffixs to x87 opcodes when in Intel mode.
18072 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
18074 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
18075 (init_emit_once): Update calls.
18076 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
18077 (init_syntax_once): Prototype.
18079 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
18081 * pa-linux.h (LIB_SPEC): Update definition.
18082 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
18084 2002-02-26 Richard Henderson <rth@redhat.com>
18086 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
18087 if we emitted a stop bit.
18089 2002-02-26 Jakub Jelinek <jakub@redhat.com>
18091 * configure.in (libgcc_visibility): Substitute.
18092 * configure: Rebuilt.
18093 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
18094 defined symbols .hidden.
18096 2002-02-26 Jakub Jelinek <jakub@redhat.com>
18098 * attribs.c (c_common_attribute_table): Add visibility.
18099 (handle_visibility_attribute): New function.
18100 * varasm.c (assemble_visibility): New function.
18101 * output.h (assemble_visibility): Add prototype.
18102 * tree.h (MODULE_LOCAL_P): Define.
18103 * crtstuff.c (__dso_handle): Use visibility attribute.
18104 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
18105 for MODULE_LOCAL_P symbols too.
18106 * config/ia64/ia64.c (ia64_encode_section_info): Handle
18107 MODULE_LOCAL_P symbols the same way as local symbols.
18108 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
18109 into .sdata/.sbss by the user.
18110 * doc/extend.texi (Function Attributes): Document visibility
18113 2002-02-26 Jakub Jelinek <jakub@redhat.com>
18116 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
18117 STRING_CST initializer spanning the whole variable without
18119 If expand_expr returned MEM, don't use it.
18121 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
18123 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
18124 generate a die for the lexical block.
18126 2002-02-26 Kazu Hirata <kazu@hxi.com>
18128 * config/h8300/h8300-protos.h: Add a prototype for
18129 compute_logical_op_length.
18130 * config/h8300/h8300.c (compute_logical_op_length): New.
18131 * config/h8300/h8300.md (anonymous logical patterns): Use
18132 compute_logical_op_length for length.
18134 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
18136 * dwarf2out.c (modified_type_die): Do not call type_main_variant
18138 (gen_type_die): Same.
18140 * attribs.c (handle_vector_size_attribute): Set debug information.
18142 2002-02-26 Daniel Egger <degger@fhm.edu>
18144 * config/rs6000/rs6000.md: Swap define_insn attributes to
18145 fix incorrect generation of merge high instructions instead
18148 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
18150 * c-typeck.c (really_start_incremental_init): Use
18151 bitsize_zero_node for vectors.
18153 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
18155 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
18156 ("*set_vrsave_internal"): Same.
18158 2002-02-25 Richard Henderson <rth@redhat.com>
18160 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
18161 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
18163 2002-02-25 Jakub Jelinek <jakub@redhat.com>
18166 * config/i386/i386.c (ix86_return_pops_args): Only pop
18167 fake structure return argument if it was passed on the stack.
18169 2002-02-25 Jason Merrill <jason@redhat.com>
18171 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
18174 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
18176 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
18177 link with shared_name only.
18178 * doc/invoke.texi (Link Options): Document new behavior.
18180 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
18182 * c-typeck.c (push_init_level): Handle vectors.
18184 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
18186 * config/sparc/sparc.c (const64_high_operand): Zero-extend
18187 operands of SPARC_SETHI_P.
18188 (input_operand): Likewise.
18189 (sparc_emit_set_const32): Likewise.
18190 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
18191 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
18192 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
18193 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
18194 (movdi_insn_sp64_vis): Likewise.
18195 (movdi split, movdf split): Use SETHI32.
18196 * doc/md.texi: Document SPARC constraints L, M and N.
18198 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
18200 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
18201 ("*set_vrsave_internal"): use mfspr for Darwin.
18203 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
18204 gen_get_vrsave_internal.
18206 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18208 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
18210 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
18212 * cpplex.c (cpp_interpret_charconst): Get signedness or
18213 otherwise of wide character constants correct.
18214 * cppexp.c (lex): Get signedness of wide charconsts correct.
18216 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18218 * optabs.c (widen_operand): Only call convert_modes for
18219 promoted SUBREG if signedness matches.
18220 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
18222 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
18224 * cpplib.c (glue_header_name): Use local buffer to build up
18227 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
18229 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
18231 2002-02-23 Kazu Hirata <kazu@hxi.com>
18233 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
18234 H8/300[HS] separately.
18235 * config/h8300/h8300.md: Remove the early clobber constraint
18236 from bit field patterns.
18238 2002-02-23 Kazu Hirata <kazu@hxi.com>
18240 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
18242 (mulhisi3): Likewise.
18243 (umulqisi3): Likewise.
18244 (umulhisi3): Likewise.
18246 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
18248 * cppinit.c (output_deps): Correct test for stdout output.
18249 (init_dependency_output): Cure warning.
18251 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18253 * expr.c (store_expr): When converting expression to promoted
18254 equivalent type, allow using SUBREG_REG of TARGET as the target
18255 of the expansion of EXP.
18256 * loop.c (basic_induction_var, case SUBREG): Always look inside.
18257 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
18258 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
18259 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
18260 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
18262 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
18264 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
18265 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
18266 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
18268 2002-02-23 Jakub Jelinek <jakub@redhat.com>
18270 PR optimization/5747
18271 * loop.c (scan_loop): Update reg info if move_movables created new
18274 2002-02-23 David Edelsohn <edelsohn@gnu.org>
18276 * gcc.c (init_gcc_spec): Revert last change.
18278 2002-02-23 David Edelsohn <edelsohn@gnu.org>
18280 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
18281 gpc_reg_operand constraint.
18283 2002-02-23 Alan Modra <amodra@bigpond.net.au>
18285 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
18286 Simplify comparison of `low'.
18287 (add_operand): Fix formatting.
18288 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
18289 (mask_operand): Disallow mask to wrap in 64-bit mode.
18290 (rs6000_stack_info): Remove redundant test setting push_p.
18291 (output_toc): Fix formatting.
18292 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
18293 cc_reg_not_cr0_operand constraint.
18294 (booldi3, boolcdi3 splitters): Same.
18296 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
18298 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
18300 2002-02-22 David Edelsohn <edelsohn@gnu.org>
18302 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
18303 gcc invoked with -shared-libgcc.
18305 2002-02-22 Jakub Jelinek <jakub@redhat.com>
18308 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
18309 decl if any of elements was TREE_USED.
18311 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
18313 * config/sparc/sol2.h: Don't include sys/mman.h.
18314 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
18315 (arith_4096_operand): Don't throw high bits away.
18316 (const64_operand): Take sign extension of CONST_INTs into account.
18317 (const64_high_operand, sparc_emit_set_const32): Likewise.
18318 (GEN_HIGHINT64): Likewise.
18319 (sparc_emit_set_const64_quick1): Likewise.
18320 (const64_is_2insns): Likewise.
18321 (print_operand): Use trunc_int_for_mode for sign extension.
18322 * config/sparc/sparc.h (SMALL_INT32): Likewise.
18323 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
18324 chars. Assume CONST_INT is already properly sign-extended.
18325 (movdi split): Sign-extend each SImode part.
18326 (andsi3 split): Don't mask high bits off, so that result
18327 remains properly sign-extend.
18328 (iorsi3 split): Likewise.
18329 (xorsi3 split): Likewise.
18331 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
18333 * fold-const.c (fold): Fix typo in comments.
18335 2002-02-21 Diego Novillo <dnovillo@redhat.com>
18337 * Makefile.in (langhooks.o): Update dependencies.
18339 2002-02-21 Diego Novillo <dnovillo@redhat.com>
18341 * langhooks.c: Include flags.h.
18343 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
18345 * testsuite/gcc.dg/attr-alwaysinline.c: New.
18347 * c-common.c (c_common_post_options): Set inline trees by
18350 * doc/extend.texi (Function Attributes): Document always_inline
18352 Update documentation about inlining when not optimizing.
18354 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
18356 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
18357 unless DECL_ALWAYS_INLINE.
18359 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
18360 unless DECL_ALWAYS_INLINE.
18361 (c_disregard_inline_limits): Disregard if always_inline set.
18363 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
18364 Disregard if always_inline set.
18365 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
18366 unless DECL_ALWAYS_INLINE.
18368 * attribs.c (handle_always_inline_attribute): New.
18369 (c_common_attribute_table): Add always_inline.
18371 * config/rs6000/altivec.h: Add prototypes for builtins
18372 requiring the always_inline attribute.
18374 2002-02-21 Eric Christopher <echristo@redhat.com>
18376 * expmed.c (store_bit_field): Try to simplify the subreg
18377 before generating a new one when when the mode size of
18378 value is less than maxmode.
18380 2002-02-21 Richard Henderson <rth@redhat.com>
18382 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
18383 than gen_rtx_PLUS to form the sum.
18384 * explow.c (force_reg): Rearrange to not allocate new pseudo
18385 when force_operand returns a register.
18386 * expr.c (expand_assignment): Allow offset_rtx expansion to
18387 return a sum. Do not force addresses into registers.
18388 (expand_expr): Likewise.
18389 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
18390 to canonicalize arithmetic that didn't simpify.
18391 (simplify_plus_minus): New argument force; update
18392 all callers. Don't split CONST unless we can do something with it,
18393 and wouldn't lose the constness of the operands.
18395 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
18396 that we generated earlier.
18398 2002-02-21 Tom Tromey <tromey@redhat.com>
18400 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18401 (output_line_info): Use constant `1', with a long explanatory
18403 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
18405 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
18407 * jump.c (redirect_jump): If old label has no UID, don't try to
18410 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
18412 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
18413 If input is constant, do shifts at compile time.
18415 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
18417 * doc/extend.texi: Fix some more overfull hboxes.
18419 2002-02-21 Jakub Jelinek <jakub@redhat.com>
18421 PR optimization/4994
18422 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
18425 2002-02-21 Jakub Jelinek <jakub@redhat.com>
18428 * expr.h (expand_and): Add mode argument.
18429 * expmed.c (expand_and): Add mode argument.
18430 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
18431 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
18432 * except.c (expand_builtin_extract_return_addr): Likewise.
18433 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
18434 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
18435 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
18436 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
18437 * config/c4x/c4x.md: Use GEN_INT (x) instead of
18438 gen_rtx (CONST_INT, VOIDmode, x).
18440 2002-02-21 Jakub Jelinek <jakub@redhat.com>
18443 * stmt.c (warn_if_unused_value): Move side effects test once more.
18445 2002-02-20 Torbjorn Granlund <tege@swox.com>
18447 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
18448 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
18450 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
18452 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
18453 SUBREG or ZERO_EXTEND.
18455 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
18457 * sh.h (current_function_anonymous_args): Remove.
18458 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
18459 of current_function_varargs and current_function_stdarg is set.
18460 * sh.c (sh_expand_prologue): Check current_function_varargs /
18461 current_function_stdarg / TARGET_SH5 instead of
18462 current_function_anonymous_args.
18464 * sh64.h (TARGET_VERSION): Define.
18466 2002-02-20 David Edelsohn <edelsohn@gnu.org>
18468 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
18469 VRSAVE_REGNO on TARGET_ALTIVEC.
18471 2002-02-20 Alan Modra <amodra@bigpond.net.au>
18473 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
18474 bits of SImode const_int.
18475 (includes_rshift_p): Likewise.
18476 (print_operand): Call mask_operand and mask64_operand with correct
18478 (rs6000_output_function_epilogue): Pad traceback table to word.
18479 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
18480 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
18481 mask64_operand with correct mode.
18482 (FUNCTION_ARG_REGNO_P): Correct parentheses.
18484 2002-02-20 Jakub Jelinek <jakub@redhat.com>
18487 * varasm.c (get_pool_constant_mark): New.
18488 * rtl.h (get_pool_constant_mark): Add prototype.
18489 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
18490 be represented if it has not been output.
18492 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
18494 * combine.c (do_SUBST): Sanity check substitutions of
18495 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
18496 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
18497 CONST_INT into its operand.
18498 (known_cond): Likewise, for ZERO_EXTEND.
18499 * simplify-rtx.c (simplify_unary_operation): Fix condition to
18500 allow for simplification of wide modes. Reject CONST_INTs in
18501 ZERO_EXTEND when their actual mode is not given.
18503 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
18505 * c-decl.c (pushdecl): If no global declaration is found for an
18506 extern declaration in block scope, try a limbo one.
18508 2002-02-20 Jakub Jelinek <jakub@redhat.com>
18511 * c-common.c (pointer_int_sum): Moved from...
18512 * c-typeck.c (pointer_int_sum): ...here.
18513 * c-common.h (pointer_int_sum): Add prototype.
18515 2002-02-20 Jakub Jelinek <jakub@redhat.com>
18518 * c-decl.c (duplicate_decls): Return 0 if issued error about
18521 2002-02-20 Roger Sayle <roger@eyesopen.com>
18522 Jakub Jelinek <jakub@redhat.com>
18525 * tree.c (host_integerp): Ensure that the constant integer is
18526 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
18527 when pos is zero or non-zero respectively. Clarify comment.
18528 * c-format.c (check_format_info_recurse): Fix host_integerp
18529 usage; the pos argument should be zero when assigning to a
18530 signed HOST_WIDE_INT.
18532 2002-02-20 Richard Henderson <rth@redhat.com>
18534 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
18535 of the operand, rather than assuming TImode.
18536 (ix86_expand_binop_builtin): Cope with commutative patterns
18537 using nonimmediate_operand for both operands.
18538 (ix86_expand_timode_binop_builtin): Likewise.
18539 (ix86_expand_store_builtin): Validate operand 1.
18540 (ix86_expand_unop1_builtin): Likewise.
18542 2002-02-20 Philip Blundell <philb@gnu.org>
18545 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
18547 2002-02-20 Richard Henderson <rth@redhat.com>
18550 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
18552 2002-02-20 Tom Tromey <tromey@redhat.com>
18554 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18555 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18556 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18557 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18558 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
18561 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
18563 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
18564 for (const_int 0) in X not just INTVAL.
18566 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
18568 * doc/extend.texi: Avoid or reduce overfull hboxes.
18570 2002-02-20 Diego Novillo <dnovillo@redhat.com>
18572 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
18573 operations if the field does not start at a mode boundary.
18575 2001-02-20 Joel Sherrill <joel@OARcorp.com>
18577 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
18578 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
18579 Also done for -Acpu and -Amachine.
18581 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
18583 * cppinit.c (init_dependency_output): Take deps output file
18584 from -o if none given with -MF. Suppress normal output.
18585 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
18586 * doc/cpp.texi, doc/invoke.texi: Update.
18588 2002-02-19 Zack Weinberg <zack@codesourcery.com>
18590 * toplev.c (output_quoted_string): Write unprintable
18591 characters with octal escapes.
18593 2002-02-19 David Edelsohn <edelsohn@gnu.org>
18595 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
18596 really_call_used[VRSAVE_REGNO] if not Altivec.
18598 2002-02-19 Alan Modra <amodra@bigpond.net.au>
18600 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
18602 (constant_pool_expr_1): Fix formatting.
18603 (rs6000_legitimize_reload_address): Likewise.
18605 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18607 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
18608 now that we have one.
18610 2002-02-19 Zack Weinberg <zack@codesourcery.com>
18612 * tree.h (struct tree_common): Remove aux. Add unused_0 at
18613 end of first block of bitfields (which was only seven bits);
18614 rename dummy to unused_1; remove comment which is no longer true.
18616 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
18618 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
18620 2002-02-19 Philip Blundell <pb@nexus.co.uk>
18623 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
18627 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
18628 arm_is_longcall_p rather than inspecting call-type cookie
18630 (call_value_insn) [TARGET_THUMB]: Likewise.
18632 2002-02-19 Graham Stott <grahams@redhat.com>
18634 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
18636 2002-02-19 David Edelsohn <edelsohn@gnu.org>
18638 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
18639 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
18640 (FP_SAVE_INLINE): Delete.
18642 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
18643 * config/rs6000/eabi.asm: Remove ABI save restore routines.
18644 * config/rs6000/t-ppccomm: Build crtsavres.o.
18645 * config/rs6000/crtsavres.asm: New file.
18647 2002-02-19 Philip Blundell <philb@gnu.org>
18649 * config/arm/arm.c (use_return_insn): Don't reject interrupt
18651 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
18652 (output_return_instruction): Allow interrupt functions to return with
18653 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
18654 (arm_expand_prologue): Subtract 4 before stacking LR in an
18655 interrupt function.
18657 2002-02-19 Philip Blundell <pb@nexus.co.uk>
18659 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
18660 decl, not just FUNCTION_DECL.
18661 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
18662 (arm_assemble_integer): Likewise.
18663 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
18666 2002-02-19 matthew green <mrg@eterna.com.au>
18668 * config.gcc (sparc-*-netbsdelf*): Enable target.
18669 (sparc64-*-netbsd*): New target.
18670 * config/sparc/netbsd-elf.h: New file.
18671 * config/sparc/t-netbsd64: New file.
18673 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
18675 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
18677 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
18679 * doc/invoke.texi: explicitly list the style guidelines that
18680 -Weffc++ checks for.
18682 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
18684 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
18686 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
18689 * gcc.c (cpp_unique_options): Treat -o as indicating object file
18690 only if not -E. If -E, pass -o through to the preprocessor.
18692 2002-02-19 Kazu Hirata <kazu@hxi.com>
18694 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
18695 register number with an appropriate macro.
18697 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18699 * doc/rtl.texi (Constants): Close @code tag.
18701 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
18703 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
18704 ("mmx_uavgv4hi3"): Same.
18705 ("pmulhrwv4hi3"): Same.
18707 * tree-inline.c (walk_tree): Handle vectors.
18709 * c-common.c (constant_expression_warning): Handle vectors.
18710 (overflow_warning): Same.
18712 * sched-deps.c (sched_analyze_2): Handle vectors.
18714 * rtlanal.c (rtx_unstable_p): Handle vectors.
18715 (rtx_varies_p): Same.
18716 (count_occurrences): Same.
18717 (regs_set_between_p): Same.
18718 (modified_between_p): Same.
18719 (modified_in_p): Same.
18720 (volatile_insn_p): Same.
18721 (volatile_refs_p): Same.
18722 (side_effects_p): Same.
18723 (may_trap_p): Same.
18724 (inequality_comparisons_p): Same.
18725 (replace_regs): Same.
18726 (computed_jump_p_1): Same.
18728 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
18730 (inner_mode_array): New.
18731 (copy_rtx): Handle vectors.
18732 (copy_most_rtx): Same.
18733 (rtx_equal_p): Same.
18734 (get_mode_alignment): Adjust for vectors.
18736 * resource.c (mark_referenced_resources): Handle vectors.
18737 (mark_set_resources): Same.
18739 * reload1.c (eliminate_regs): Handle vectors.
18740 (elimination_effects): Same.
18741 (scan_paradoxical_subregs): Same.
18743 * reload.c (subst_reg_equivs): Handle vectors.
18745 * regrename.c (scan_rtx): Handle vectors.
18747 * regclass.c (reg_scan_mark_refs): Handle vectors.
18749 * recog.c (find_single_use_1): Handle vectors.
18751 * local-alloc.c (equiv_init_varies_p): Handle vectors.
18752 (contains_replace_regs): Same.
18753 (memref_referenced_p): Same.
18755 * integrate.c (copy_rtx_and_substitute): Handle vectors.
18756 (subst_constants): Same.
18758 * genattrtab.c (attr_copy_rtx): Handle vectors.
18759 (encode_units_mask): Same.
18760 (clear_struct_flag): Same.
18761 (count_sub_rtxs): Same.
18763 * gcse.c (want_to_gcse_p): Handle vectors.
18764 (oprs_unchanged_p): Same.
18765 (hash_expr_1): Same.
18766 (oprs_not_set_p): Same.
18767 (expr_killed_p): Same.
18768 (compute_transp): Same.
18769 (store_ops_ok): Same.
18771 * function.c (purge_addressof_1): Do not allow paradoxical subregs
18773 (fixup_var_refs_1): Same.
18774 (instantiate_virtual_regs_1): Same.
18776 * fold-const.c (operand_equal_p): Handle vectors.
18778 (rtl_expr_nonnegative_p): Same.
18780 * flow.c (mark_used_regs): Handle vectors.
18782 * df.c (df_uses_record): Handle vectors.
18784 * cselib.c (cselib_subst_to_values): Handle vectors.
18785 (cselib_mem_conflict_p): Same.
18788 * cse.c (canon_reg): Handle vectors.
18790 (cse_process_notes): Same.
18791 (count_reg_usage): Same.
18792 (canon_hash): Same.
18794 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
18796 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
18798 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
18799 (gen_rtx): Handle CONST_VECTOR.
18800 (gen_const_vector_0): New.
18801 (copy_rtx_if_shared): CONST_VECTORs can be shared.
18802 (reset_used_flags): Same.
18803 (copy_insn_1): Same.
18804 (initializer_constant_valid_p): Handle VECTOR_CST.
18806 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
18808 * doc/rtl.texi (Constants): Document const_vector.
18809 (CONST0_RTX): Update for vectors.
18810 (RTL sharing): Same.
18812 * print-tree.c (print_node): Add case for VECTOR_CST.
18814 * tree.h (TREE_VECTOR_CST_ELTS): New.
18815 (struct tree_vector): New.
18816 (union tree_node): Add vector node.
18817 (build_vector): Add prototype.
18819 * tree.def (VECTOR_CST): New.
18821 * tree.c (build_vector): New.
18823 * expmed.c (make_tree): Handle CONST_VECTOR.
18825 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
18826 (CONST_VECTOR_ELT): New.
18827 (CONST_VECTOR_NUNITS): New.
18829 * machmode.h (GET_MODE_INNER): New.
18830 (DEF_MACHMODE): Accept 8th arg.
18832 * machmode.def: Add 8th argument for vector inner mode.
18833 Add inner vector modes for vectors.
18835 * rtl.def (VEC_CONST): Remove.
18836 (CONST_VECTOR): New.
18838 * expr.c (clear_storage): Allow vectors.
18839 (is_zeros_p): Handle VECTOR_CST.
18841 * varasm.c (output_constant_pool): Handle vectors.
18842 (rtx_const): Add veclo and vechi fields.
18843 (kind): Add RTX_VECTOR.
18844 (decode_rtx_const): Add case for vector.
18846 * config/rs6000/rs6000-protos.h: Add zero_constant.
18848 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
18849 constants. Force easy vector constants into memory.
18850 (easy_vector_constant): New.
18851 (emit_easy_vector_constant): New.
18852 (rs6000_legitimize_reload_address): Do not generate bad reloads on
18855 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
18857 ("altivec_lvxl"): Same.
18858 (altivec_lvebx): Same.
18859 (altivec_lvehx): Same.
18860 (altivec_lvewx): Same.
18861 ("*movv4si_const0"): New.
18862 ("*movv4sf_const0"): New.
18863 ("*movv8hi_const0"): New.
18864 ("*movv16qi_const0"): New.
18866 2002-02-18 Kazu Hirata <kazu@hxi.com>
18868 * config/h8300/h8300.c (notice_update_cc): Use
18871 2002-02-18 Kazu Hirata <kazu@hxi.com>
18873 * config/h8300/h8300.md (divmod patterns): Change the
18874 constraints for operands[1] to register_operand.
18876 2002-02-18 Kazu Hirata <kazu@hxi.com>
18878 * config/h8300/h8300-protos.h: Remove the prototype for
18880 * config/h8300/h8300.c (p_operand): Remove.
18881 * config/h8300/h8300.md: Replace p_operand with
18884 2002-02-18 Philip Blundell <pb@nexus.co.uk>
18886 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
18888 (output_return_instruction): Allow use of LDR to unstack
18889 return addresss even for interrupt handlers or when
18890 interworking. If compiling for ARMv5, use interworking-safe
18891 return instructions by default. Remove duplicated code and
18892 lengthy "strcat" sequences.
18894 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18896 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
18897 (LINK_EH_SPEC): Define.
18898 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
18900 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
18902 * config/s390/s390.c (s390_emit_prologue): Do not set the
18903 frame_related flag for call-clobbered registers.
18905 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
18907 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
18908 (construct_container): Fix handling of SSE operands.
18909 (ix86_expand_builtin): Fix handling of 64bit pointers.
18910 (mmx_maskmovq_rex): New pattern.
18912 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
18914 * regrename.c (kill_set_value): Handle subregs properly.
18916 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
18918 * objc/objc-act.c (handle_impent): Remove leading '*'
18919 from objc_class_name.
18921 2002-02-17 Richard Henderson <rth@redhat.com>
18923 * config/alpha/alpha.c (some_small_symbolic_operand,
18924 some_small_symbolic_operand_1, split_small_symbolic_operand,
18925 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
18926 Handle small SYMBOL_REFs anywhere, not just inside memories.
18927 * config/alpha/alpha-protos.h: Update.
18928 * config/alpha/alpha.h (PREDICATE_CODES): Update.
18929 * config/alpha/alpha.md (small symbolic operand splitter): Update.
18931 2002-02-17 Roland McGrath <roland@frob.com>
18933 * config.gcc (powerpc-*-gnu-gnualtivec*,
18934 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
18935 * config/rs6000/gnu.h: New file.
18936 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
18937 Grok "gnu" in rs6000_abi_name.
18938 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
18939 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
18940 Grok -mcall-gnu analogous to -mcall-linux et al.
18941 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18942 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
18943 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
18945 2002-02-17 Jakub Jelinek <jakub@redhat.com>
18948 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
18951 2002-02-17 Philipp Thomas <pthomas@suse.de>
18953 * config/cris/cris.h: Undefine STARTFILE_SPEC and
18954 ENDFILE_SPEC before (re)defining them.
18956 2002-02-17 Kazu Hirata <kazu@hxi.com>
18958 * config/h8300/h8300.c: Fix formatting.
18959 * config/h8300/h8300.h: Likewise.
18961 2002-02-17 Philipp Thomas <pthomas@suse.de>
18963 * doc/tm.texi: Explain why empty strings should not be
18964 marked for translation.
18966 2002-02-17 Philipp Thomas <pthomas@suse.de>
18968 * final.c (output_operand_lossage): Changed to accept
18969 printf style arguments. Change calls where necessary.
18970 * output.h (output_operand_lossage): Change declaration
18971 accordingly. Update copyright.
18972 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
18973 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
18974 Update copyright date where necessary.
18976 * config/i386/i386.c (print_operand): Likewise. Remove use of
18979 * config/cris/cris.c (cris_operand_lossage): Likewise.
18980 Rename parameter so that exgettext recognizes it as
18981 translatable message.
18982 (LOSE_AND_RETURN): Rename parameter to msgid.
18984 2002-02-17 Kazu Hirata <kazu@hxi.com>
18986 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
18987 hard coded register number with an appropriate macro.
18988 (HARD_REGNO_MODE_OK): Likewise.
18989 (ARG_POINTER_REGNUM): Likewise.
18990 (STATIC_CHAIN_REGNUM): Likewise.
18991 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
18992 * config/h8300/h8300.md (define_constants): Define more
18995 2002-02-17 Philipp Thomas <pthomas@suse.de>
18997 * config/i386/i386.h: Don't mark empty strings for translation.
18999 2002-02-16 H.J. Lu <hjl@gnu.org>
19001 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
19003 2002-02-16 Zack Weinberg <zack@codesourcery.com>
19005 * cppinit.c (merge_include_chains): Check for brack being
19006 NULL before attempting to merge it with qtail.
19008 2002-02-16 Andrew Cagney <ac131313@redhat.com>
19010 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
19013 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
19015 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
19017 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
19019 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
19020 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
19021 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
19023 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19025 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
19026 now only if !TARGET_FIX.
19027 (*movsi_nt_vms_fix): New pattern.
19029 2002-02-16 Douglas B Rupp <rupp@gnat.com>
19031 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
19032 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
19033 (alpha_sa_mask, alpha_sa_size): Reflect above change.
19034 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
19035 (alpha_start_function, alpha_expand_epilogue): Likewise.
19036 (unicosmk_gen_dsib): Likewise.
19038 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19040 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
19042 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
19044 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
19045 check_and_change_labels, s390_final_chunkify): Delete.
19046 (s390_split_branches, s390_chunkify_pool): New functions.
19047 (s390_function_prologue): Call them.
19049 * config/s390/s390.h (S390_REL_MAX): Delete.
19050 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
19052 * config/s390/s390.md (cjump, icjump, jump): Fix length
19053 attribute calculation.
19056 2002-02-15 David Edelsohn <edelsohn@gnu.org>
19058 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
19059 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
19061 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
19063 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
19064 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
19065 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
19067 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
19069 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
19071 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
19073 * reload.c (find_dummy_reload): Check that an output register
19074 is valid for its mode.
19076 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
19078 * combine.c (known_cond): After replacing the REG of a SUBREG, try
19081 * function.c (assign_parms): Demote promoted argument passed by
19082 transparent reference.
19084 2001-02-14 Joel Sherrill <joel@OARcorp.com>
19086 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
19087 -Acpu() and -Amachine() to eliminate warnings.
19089 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
19091 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
19093 2002-02-14 Kazu Hirata <kazu@hxi.com>
19095 * config/h8300/h8300-protos.h: Update the prototype for
19097 * config/h8300/h8300.c (const_costs): Treat SET as a little
19098 more expensive operation.
19099 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
19100 reference to const_costs.
19102 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
19104 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
19106 2002-02-14 Jakub Jelinek <jakub@redhat.com>
19109 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
19110 use arguments from newtype.
19112 2002-02-13 Eric Christopher <echristo@redhat.com>
19114 * config/mips/mips.c (override_options): Add check for march/mipsX
19115 on the same command line. Fix error message in cpu processing.
19116 Remove architecture and ISA checks.
19118 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
19120 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
19122 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
19124 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
19126 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
19128 ("*movv8hi_internal1"): Same.
19129 ("*movv16qi_internal1"): Same.
19130 ("*movv4sf_internal1"): Same.
19132 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
19133 not push_reload for altivec modes.
19135 2002-02-13 Joel Sherrill <joel@OARcorp.com>
19137 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
19138 all RTEMS targets including removal of #includes from config/*/rtems*.h
19139 file and adding them to tm_file setting. Added xm_defines=POSIX to
19141 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
19142 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
19143 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
19144 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
19145 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
19146 config/m68k/rtemself.h: Ditto.
19147 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
19148 config/mips/rtems64.h: Ditto.
19149 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
19150 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
19152 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
19153 config/sparc/rtemself.h: Ditto.
19154 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
19155 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
19156 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
19158 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
19159 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
19160 target made more similar to i386-elf.
19161 * config/i386/t-rtems-i386: Added soft float support and multilibs.
19162 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
19163 be similar to config/m68k/t-m68kelf.
19164 * gthr-rtems.h: Encapsulate with extern "C" for C++.
19166 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
19168 * regmove.c (kill_value): Handle subregs.
19170 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
19172 * i386.md (mul patterns): Allow memory operand to be first;
19173 add expanders where needed; fix constraints.
19174 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
19175 Allow memory operand to be the first.
19177 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
19180 2002-02-13 Jakub Jelinek <jakub@redhat.com>
19183 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
19186 2002-02-13 Jakub Jelinek <jakub@redhat.com>
19188 PR optimization/5547:
19189 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
19190 all valid IA-32 address modes involving non-scaled %ebx and
19191 GOT/GOTOFF as displacement.
19193 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
19195 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
19196 after emitting ltorg insns.
19198 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
19199 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
19200 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
19201 *abssf2): Fix "op_type" attribute.
19203 2002-02-13 Douglas B Rupp <rupp@gnat.com>
19205 * mkconfig.sh: Avoid using a subshell redirect.
19206 ($output.T): Change to $(output)T.
19207 (ENABLE_NLS): Remove unneeded undef.
19209 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
19210 * config/alpha/x-vms (libsubdir): Define.
19212 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
19213 register frame procedures. Optimize retrieving context.
19215 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
19216 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
19217 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
19219 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19221 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
19222 Make same change as for find_base_value.
19224 2002-02-13 Kazu Hirata <kazu@hxi.com>
19226 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
19227 of QImode and SImode.
19229 2002-02-13 Kazu Hirata <kazu@hxi.com>
19231 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
19232 length computation of movsi.
19233 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
19235 2002-02-13 Kazu Hirata <kazu@hxi.com>
19237 * config/h8300/h8300.md (subqi3): Tighten the predicate for
19238 operands[2] to register_operand.
19240 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
19242 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
19244 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
19246 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
19247 for altivec_lvx* and altivec_stvx*.
19248 ("*movv4si_internal"): Add constraint for loading from GPRs.
19249 ("*movv8hi_internal1"): Same.
19250 ("*movv16qi_internal1"): Same.
19251 ("*movv4sf_internal1"): Same.
19253 * config/rs6000/rs6000.c (altivec_register_operand): New.
19255 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
19256 altivec_register_operand.
19258 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
19260 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
19263 2002-02-13 Stan Shebs <shebs@apple.com>
19265 * c-typeck.c (digest_init): Handle vectors.
19266 (really_start_incremental_init): Same.
19267 (pop_init_level): Same.
19268 (process_init_element): Same.
19270 * varasm.c (output_constant): Same.
19272 * expr.c (clear_storage): Same.
19273 (store_constructor): Same.
19275 2002-02-12 Eric Christopher <echristo@redhat.com>
19277 * explow.c (hard_function_value): Add comment explaining
19278 signed/unsigned comparison.
19280 2002-02-12 Jakub Jelinek <jakub@redhat.com>
19282 * jump.c (never_reached_warning): Add finish argument.
19283 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
19284 real insn after end.
19285 * rtl.h (never_reached_warning): Adjust prototype.
19286 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
19287 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
19288 never_reached_warning.
19290 2002-02-12 Graham Stott <grahams@redhat.com>
19292 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
19294 2002-02-12 Kazu Hirata <kazu@hxi.com>
19296 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
19297 logical shifts on H8/300.
19298 (shift_alg_si): Improve several shifts on H8/300.
19299 (get_shift_alg): Likewise.
19301 2002-02-12 Graham Stott <grahams@redhat.com>
19303 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
19305 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19307 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
19308 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
19310 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
19312 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
19313 non-CONST_INT through default_assemble_integer.
19314 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
19315 <case 8>: Abort for CONST_DOUBLE.
19317 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
19319 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
19321 * config/pa/pa-linux.h (LIB_SPEC): Delete.
19322 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
19324 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
19326 * config/stormy16/stormy16.md (zero_extendqihi2): New.
19328 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
19330 * regrename.c (regrename_optimize): Don't accept a
19331 part-clobbered register if the replaced register is not part
19334 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
19335 take padding into account when computing the argument value.
19337 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
19339 * combine.c (try_combine): Apply substitutions in
19340 CALL_INSN_FUNCTION_USAGE too.
19342 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
19344 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
19345 __builtin_altivec_abs*.
19348 * config/rs6000/rs6000.h (rs6000_builtins): Add
19349 ALTIVEC_BUILTIN_ABS*.
19351 * config/rs6000/altivec.h: Use const char for builtins expecting
19353 (vec_abs): New versions for C and C++.
19356 2002-02-10 Kazu Hirata <kazu@hxi.com>
19358 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
19361 2002-02-10 Kazu Hirata <kazu@hxi.com>
19363 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
19364 constant definition from h8300.md.
19365 (FRAME_POINTER_REGNUM): Likewise.
19366 * config/h8300/h8300.md (define_constants): Add FP_REG.
19368 2002-02-10 Kazu Hirata <kazu@hxi.com>
19370 * config/h8300/h8300.c (print_operand): Remove redundant code.
19372 2002-02-10 Kazu Hirata <kazu@hxi.com>
19374 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
19375 * config/h8300/h8300.c (byte_reg): Make it static.
19377 2002-02-10 Richard Henderson <rth@redhat.com>
19380 * c-typeck.c (incomplete_type_error): Handle flexible array members.
19382 2002-02-10 Richard Henderson <rth@redhat.com>
19385 * tree.c (append_random_chars): Don't abort if main_input_filename
19388 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
19390 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
19392 2002-02-10 Kazu Hirata <kazu@hxi.com>
19394 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
19395 (pushhi1): Likewise.
19397 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
19399 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
19400 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
19402 2002-02-09 David O'Brien <obrien@FreeBSD.org>
19404 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
19406 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
19408 2002-02-09 Kazu Hirata <kazu@hxi.com>
19410 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
19411 a half of an SImode register on H8/300.
19413 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
19415 * i386.md (movdi_2): Add missing '!'.
19417 2002-02-09 Kazu Hirata <kazu@hxi.com>
19419 * config/h8300/h8300.h: Fix formatting. Remove commented-out
19422 2002-02-09 Kazu Hirata <kazu@hxi.com>
19424 * config/h8300/h8300.md (length): Correct the distance valid
19425 for the short branch.
19427 2002-02-09 Kazu Hirata <kazu@hxi.com>
19429 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
19431 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
19433 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
19434 registers in SImode.
19435 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
19438 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
19441 Contribute sh64-elf.
19442 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
19443 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
19444 (sh_cannot_modify_jumps_p): New function.
19445 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
19446 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
19447 (sh_ms_bitfield_layout_p): New function.
19448 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
19449 Zack Weinberg <zack@codesourcery.com>
19450 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
19451 expand_simple_binop instead of expand_binop.
19452 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
19453 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
19454 use of .quad and .uaquad.
19455 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
19456 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
19457 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19458 * config/sh/sh.md (movdi_const, movdi_const_32bit,
19459 movdi_const_16bit): Make sure all CONSTs have modes.
19460 (sym2PIC): Ditto, but by adjusting all callers.
19461 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
19462 if the prologue calls the SHmedia argument decoder or register
19464 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19465 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
19466 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
19467 (sh_expand_epilogue): Don't emit USE of return target register.
19468 (prepare_move_operands): Legitimize DImode PIC addresses.
19469 (sh_media_register_for_return): Skip tr0, used to initialize the
19471 (sh_expand_prologue): Remove explicit USE of return register.
19472 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
19473 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
19474 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
19475 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
19476 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
19477 EXTRA_CONSTRAINT_T.
19478 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
19479 (MOVI_SHORI_BASE_OPERAND_P): New.
19480 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
19481 (EXTRA_CONSTRAINT_T): Define in terms of them.
19482 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
19483 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
19484 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
19485 alternatives supporting TARGET_REGS.
19486 (UNSPEC_GOTPLT): New constant.
19487 (movdi split): Move incrementing of LABEL_NUSES...
19488 (movdi_const, movdi_const_32bit): Here. Use
19489 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
19490 (movdi_const_16bit): New.
19491 (call, call_value) [flag_pic]: Use GOTPLT.
19492 (call_pop, call_value_pop): New expands.
19493 (call_pop_compact, call_pop_rettramp): New insns.
19494 (call_value_pop_compact, call_value_pop_rettramp): New insns.
19495 (sibcall) [flag_pic]: Use GOT.
19496 (builtint_setjmp_receiver): Remove bogus, unused expand.
19497 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
19498 (*pt, *ptb, ptrel): New insns.
19499 (sym2GOT): Handle DImode GOT.
19500 (sym2GOTPLT, symGOTPLT2reg): New expands.
19501 (sym2PIC): New expand.
19502 (shcompact_return_tramp): Use GOTPLT to return trampoline.
19503 (shcompact_return_tramp_i): Use return register explicitly.
19504 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
19505 disable flag_reorder_blocks.
19506 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
19507 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
19508 clobbers, for clarity.
19509 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
19510 restoring of r0 in macl as MAYBE_DEAD.
19511 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
19512 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
19513 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
19514 alter_subreg all over.
19515 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
19516 reload, instead of emitting instructions that would require
19518 (casesi_load_media): Add missing modes.
19519 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
19520 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
19521 as used if the argument decoder is called.
19522 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
19523 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
19524 Pmode, then extend it to DImode if necessary.
19525 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
19526 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
19527 constants in FPU-enabled SHmedia, let them be loaded from memory.
19528 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
19529 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
19530 Adjust whitespace in assembly output templates.
19531 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
19532 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
19533 mode of if_then_else.
19534 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
19535 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
19537 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
19538 Joern Rennecke <amylaar@redhat.com>
19539 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
19540 (SUBTARGET_CPP_PTR_SPEC): New.
19541 (SUBTARGET_CPP_SPEC): Remove.
19542 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
19543 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
19544 Fix typo in previous checkin.
19545 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
19546 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
19547 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
19548 Alexandre Oliva <aoliva@redhat.com>
19549 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
19550 what single FP register can hold for SHmedia target.
19551 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
19552 Alexandre Oliva <aoliva@redhat.com>
19553 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
19554 Do not split into SUBREG.
19555 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
19556 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
19557 and added new functions as specified in SH5 ABI r9.
19558 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
19559 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
19561 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
19562 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
19563 gen_consttable_4 and gen_consttable_8. Emit multiple labels
19564 and consttable_window_ends.
19565 2001-06-03 Graham Stott <grahams@redhat,com>
19566 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
19567 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
19568 * config/sh/sh.c (print_operand): Handle floating-point pair,
19569 vector and matrix registers.
19570 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
19571 vector modes into account.
19572 * config/sh/sh.md (movv2sf): Split move between registers into
19574 (movv4sf, movv16sf): Introduce insns that get split only after
19576 * config/sh/shmedia.h: Fix Copyright dates.
19577 * config/sh/ushmedia.h: Likewise. Move loop counter
19578 declarations into conditionals that uses them.
19579 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
19581 * config/sh/sshmedia.h: Fix Copyright dates.
19582 (sh_media_PUTCFG): Fix constraints.
19583 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
19584 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
19585 ptrmemfunc_vbit_in_delta for SH5.
19586 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
19587 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
19588 * invoke.texi: Likewise.
19589 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
19590 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
19591 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
19592 GCC_pop_shmedia_regs_nofpu): New global symbols.
19593 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
19594 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
19595 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
19596 compact function with nonlocal labels.
19597 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
19598 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
19599 (initial_elimination_offset): Account for their stack space.
19600 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
19601 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
19602 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
19603 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
19604 least one of the operands to be a register.
19605 (movv2sf): Likewise. Renamed to movv2sf_i.
19606 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
19607 prepare_move_operands() before emitting SHmedia insns.
19608 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
19609 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
19610 Don't save nor initialize r12. Don't mis-align the stack.
19611 Pad the code with a nop.
19612 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
19614 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
19615 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
19616 [__SHMEDIA__]: Implement.
19617 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
19618 * config/sh/sh.md: Set latency of `pt' closer to reality.
19619 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
19620 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
19621 Set move, load and store type attributes.
19622 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
19623 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
19625 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
19626 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
19627 * config/sh/sh.c (sh_media_register_for_return): New function.
19628 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
19629 branch-target register.
19630 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
19631 * config/sh/sh.md (return_media_i): Use any call-clobbered
19632 branch-target register.
19633 (return_media): If r18 wasn't copied in the prologue, copy it
19635 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
19636 Clear class FP0_REGS.
19637 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
19639 2001-03-08 DJ Delorie <dj@redhat.com>
19640 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
19641 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
19642 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
19643 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
19644 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
19645 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
19646 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
19647 return value correctly for call_cookie.
19648 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
19649 * config/sh/crt1.asm (start): Modified so as to call
19650 ___setup_argv_and_call_main.
19651 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
19652 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
19654 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
19655 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
19656 (STRIP_NAME_ENCODING): Use it.
19657 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
19658 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
19659 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
19660 prepare_scc_operands().
19661 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
19662 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
19663 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
19664 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
19665 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
19666 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
19667 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
19668 used in shcompact_incoming_args.
19669 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
19671 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
19673 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
19674 Adjust accordingly.
19675 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
19676 Simplify. Adjust. Add sanity check.
19677 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
19679 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
19681 (udivsi3, divsi3): Use them.
19682 (force_mode_for_call): New insn.
19683 (call, call_value, sibcall_value): Emit it before SHcompact
19685 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
19686 * config/sh/sh.md (call, call_value, sibcall): Make sure the
19687 call cookie is non-NULL before taking its value.
19688 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
19689 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
19690 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
19691 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
19693 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
19694 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
19695 temporary for stack adjusts. Use MACL and MACH to pass
19696 arguments to shcompact_incoming_args.
19697 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
19699 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
19700 (nested_trampoline): Load static chain address into r1.
19701 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
19702 2001-01-07 Alexandre Oliva <aoliva@redhat.com
19703 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
19704 fp_arith_reg_operand().
19705 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
19706 * config/sh/sh.md (casesi): Sign-extend the first two operands,
19707 and use signed compares for them.
19708 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
19709 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
19710 ones properly aligned.
19711 (find_barrier): Account for extra alignment needed for 8-byte wide
19713 (machine_dependent_reorg): Require a label for the second 4-byte
19714 constant after an 8-byte one.
19715 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
19717 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
19718 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
19719 last_float when switching float modes.
19720 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
19721 auto-increment for general-purpose registers.
19722 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
19724 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
19726 * config/sh/sh.c (sh_builtin_saveregs): Support using all
19727 registers for varargs.
19728 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
19729 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
19730 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
19731 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
19732 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
19733 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
19734 call_cookie accordingly.
19735 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
19736 (SHCOMPACT_BYREF): Likewise.
19737 (SHCOMPACT_FORCE_ON_STACK): New macro.
19738 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
19739 (sh_builtin_saveregs): Likewise.
19740 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19741 shcompact_incoming_args): Use new shift values. Support
19742 sequences of consecutive and non-consecutive pushes/pops.
19743 * config/sh/sh.md (return): Don't explicitly use PR_REG.
19744 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
19745 * config/sh/sh.h (TEXT_SECTION): Define.
19746 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
19747 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
19748 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
19749 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
19750 return values on FPU-enabled SHmedia.
19751 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
19752 FPU-enabled SHmedia.
19753 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
19754 value is returned in a non-FP reg and is not returned by
19756 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
19758 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
19759 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
19760 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
19761 quad-aligned to be passed by callee-copy reference.
19762 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
19763 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
19764 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
19765 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
19766 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
19767 copying low-numbered FP regs to r7 and r8.
19768 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
19769 FP regs to general-purpose regs only if the copy was passed on the
19771 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
19772 copying FP reg to r9.
19773 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
19774 copy FP regs to general-purpose regs only in outgoing calls.
19775 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
19776 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
19778 * config/sh/sh.h (struct sh_args): Document all fields.
19779 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
19780 passed partially on the stack should not consider making
19782 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
19783 stack_regs only for incoming calls. When passing FP args,
19784 make sure there are FP regs available before modifying
19786 (SHCOMPACT_BYREF): Pass double args in general-purpose
19787 registers by reference.
19788 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
19789 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
19790 attempt to generate sibcalls if the caller got any arguments
19792 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
19793 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
19794 to 8-byte boundaries.
19795 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
19796 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
19797 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
19798 stored in the stack.
19799 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
19800 for the offsets to have the ISA bit set.
19801 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
19802 invocation. Use beq instead of bgt to mark end of sequence of
19804 (shcompact_incoming_args): Fix store of r2. Use beq instead of
19805 bgt to mark end of sequence of stores.
19806 * config/sh/sh.c (arith_operand): Don't check whether
19807 CONST_OK_FOR_J for now.
19808 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
19809 instead of long for conversion.
19810 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
19811 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
19812 before passing it to fprintf.
19813 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
19814 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
19815 Call set_fpscr before reading/writing SR.
19816 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
19818 * config/sh/lib1funcs.asm: Add `.align 2' directives before
19820 (FMOVD_WORKS): Define on SH5 with FPU.
19821 (set_fpscr): Define on SH5. Remove separate _fpscr_values
19823 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
19825 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
19826 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
19828 (ia_main_table): Ditto.
19829 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
19830 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
19831 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
19832 the definitions from sh.h.
19833 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
19835 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
19836 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
19837 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
19838 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
19839 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
19840 Increment LABEL_NUSES.
19842 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
19844 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
19846 * config/sh/elf.h (SIZE_TYPE): Likewise.
19847 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
19848 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19849 shcompact_incoming_args): Load switch table addresses using
19851 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
19852 (NO_BUILTIN_SIZE_TYPE): Define.
19853 (SIZE_TYPE): Don't define.
19854 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
19855 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
19856 definition of __SH5__=32 for -m5-compact-nofpu.
19857 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
19859 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
19860 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
19861 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
19862 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
19863 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
19864 (INSN_LENGTH_ALIGNMENT): Likewise.
19865 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19866 * config/sh/sh.md (call, call_value, sibcall): Simplify
19867 copying of non-branch-target register.
19868 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19869 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
19870 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
19871 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
19872 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
19873 floating-point values as structs.
19874 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
19875 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
19876 general-purpose register.
19877 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
19878 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
19879 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
19880 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
19881 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
19882 (ENCODE_SECTION_INFO): Enclose variables and constants in
19884 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
19885 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
19886 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
19887 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
19888 only for LABEL_REFs. For SYMBOL_REFs, prepend
19889 SH_DATALABEL_ENCODING to the symbol name.
19890 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
19892 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
19893 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
19895 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
19896 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
19897 (DATALABEL_REF_P): Don't require CONST.
19898 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
19900 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
19901 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
19903 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
19904 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
19905 Use shallow_copy_rtx and PUT_MODE to change the mode of
19906 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
19907 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
19908 on SHmedia using GENERAL_REGs.
19909 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19910 bltu_media_i): Fix reversion of conditions.
19911 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
19912 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
19913 * config/sh/sh.c (output_far_jump): Save r13 in macl.
19914 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
19915 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
19916 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
19917 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
19918 (GCC_nested_trampoline): Likewise.
19919 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
19920 * config/sh/sh.c (gen_datalabel_ref): Define.
19921 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
19922 (INITIALIZE_TRAMPOLINE): Likewise.
19923 (TRAMPOLINE_ADJUST_ADDRESS): Define.
19924 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
19925 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
19926 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
19927 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
19928 (ic_invalidate): Adjust for SH5.
19929 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
19930 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
19931 _nested_trampoline.
19932 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
19933 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
19934 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
19935 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
19936 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
19937 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
19938 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
19939 * config/sh/sh.c (target_reg_operand): Match only target-branch
19940 registers and pseudos that aren't virtual registers.
19941 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19942 Copy operands that don't match target_reg_operand to pseudos.
19943 (call_media, call_value_media, sibcall_media): Use
19944 target_reg_operand instead of target_operand.
19945 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
19946 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
19947 * config/sh/sh.c (target_reg_operand): Match hardware registers
19948 other than branch-target registers.
19949 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
19950 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
19951 (fpscr_values) [SH5 == 32]: Define.
19952 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
19953 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
19954 Handle function addresses coming in SUBREGs.
19955 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
19956 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19957 shcompact_return_trampoline): Use datalabel where appropriate.
19958 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
19959 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
19960 general-purpose register to copy one branch-target register to
19962 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
19963 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
19964 SYMBOL_REFs with VOIDmode.
19965 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
19966 bltu_media_i): New insns.
19967 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
19968 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
19969 (INIT_CUMULATIVE_ARGS): Likewise.
19970 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
19971 * machmode.def (V16SFmode): New mode.
19972 * c-common.c (type_for_mode): Support V2SF and V16SF.
19973 * tree.c (build_common_tree_nodes_2): Likewise.
19974 * tree.h (tree_index): Likewise.
19975 * calls.c (emit_call_1): Take args_so_far. Adjust all
19976 callers. Introduce CALL_POPS_ARGS.
19977 * tm.texi (CALL_POPS_ARGS): Document.
19978 * config/sh/crt1.asm: Implement in SHmedia mode.
19979 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
19980 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
19981 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
19982 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
19983 Implement divsi and udivsi in SHmedia mode. Introduce
19984 SHcompact trampolines.
19985 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
19987 (regno_reg_class): Rewrite.
19988 (fp_reg_names): Remove.
19989 (sh_register_names, sh_additional_register_names): New.
19990 (print_operand): Added `u'. Support SUBREGs in addresses.
19991 Add parentheses around shifted CONSTs.
19992 (output_file_start): Output .mode and .abi directives.
19993 (shiftcosts, addsubcosts, multcosts): Adjust.
19994 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
19995 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
19996 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
19997 bytes, not registers. Take into account the need for the
19998 SHcompact incoming args trampoline. Adjust all callers.
19999 (sh_expand_prologue): Take stack_regs into account. Call
20000 incoming args trampoline. Keep stack aligned as per SH5 ABI.
20001 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
20002 stack aligned as per SH5 ABI.
20003 (sh_builtin_saveregs): Support SH5 ABI.
20004 (sh_build_va_list, sh_va_start): Likewise.
20005 (initial_elimination_offset): Take alignment into account.
20006 Compute location of PR according to the SH5 stack frame.
20007 (arith_reg_operand): Reject branch-target registers.
20008 (shmedia_6bit_operand): New.
20009 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
20010 (target_reg_operand): Match DImode only. Accept SUBREGs.
20011 (target_operand): New.
20012 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
20013 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
20014 SIBCALL_REGS for SHmedia.
20015 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
20016 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
20017 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
20018 (TARGET_SWITCHES): New SH5 flags.
20019 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
20020 VALID_REGISTER_P to disable unsupported registers.
20021 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
20022 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
20023 (FUNCTION_ARG_PADDING): Define.
20024 (FASTEST_ALIGNMENT): Adjust.
20025 (SH_REGISTER_NAMES_INITIALIZER): New.
20026 (sh_register_names): Declare.
20027 (DEBUG_REGISTER_NAMES): Define.
20028 (REGISTER_NAMES): Define based on sh_register_names.
20029 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
20030 (sh_additional_register_names): Declare.
20031 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
20032 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
20033 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
20034 (REGISTER_NATURAL_MODE): Define.
20035 (FIRST_PSEUDO_REGISTER): Adjust.
20036 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
20037 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
20038 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
20039 (VECTOR_MODE_SUPPORTED_P): Define.
20040 (REG_CLASS_CONTENTS): Adjust.
20041 (SMALL_REGISTER_CLASSES): Adjust.
20042 (REG_ALLOC_ORDER): Adjust.
20043 (INDEX_REG_CLASS): Adjust.
20044 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
20045 (CONST_OK_FOR_LETTER_P): Adjust.
20046 (PREFERRED_RELOAD_CLASS): Adjust.
20047 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
20048 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
20049 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
20050 (FIRST_FP_PARM_REG): Adjust.
20051 (CALL_POPS_ARGS): Define.
20052 (FUNCTION_ARG_REGNO_P): Adjust.
20053 (struct sh_args): New fields.
20054 (GET_SH_ARG_CLASS): Adjust.
20055 (INIT_CUMULATIVE_ARGS): Adjust.
20056 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
20057 (FUNCTION_ARG_ADVANCE): Adjust.
20058 (FUNCTION_ARG): Adjust.
20059 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
20060 (FUNCTION_ARG_CALLEE_COPIES): Define.
20061 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
20062 (STRICT_ARGUMENT_NAMING): Define.
20063 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
20064 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
20065 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
20066 (SETUP_INCOMING_VARARGS): Adjust.
20067 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
20068 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
20069 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
20070 (SUBREG_OK_FOR_INDEX_P): Adjust.
20071 (EXTRA_CONSTRAINT_S): Update.
20072 (EXTRA_CONSTRAINT_T): New.
20073 (EXTRA_CONSTRAINT): Adjust.
20074 (GO_IF_LEGITIMATE_INDEX): Adjust.
20075 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
20076 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
20077 (MOVE_MAX): Adjust.
20078 (MAX_MOVE_MAX): Define.
20080 (CONST_COSTS): Adjust.
20081 (REGISTER_MOVE_COST): Adjust.
20082 (BRANCH_COST): Adjust.
20083 (TEXT_SECTION_ASM_OP): Adjust.
20084 (DBX_REGISTER_NUMBER): Adjust.
20085 (ASM_OUTPUT_DOUBLE_INT): New.
20086 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
20087 (PREDICATE_CODES): Adjust.
20088 (PROMOTE_MODE): Adjust.
20089 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
20090 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
20091 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
20092 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
20093 (DR0_REG, DR2_REG, DR4_REG): Renumber.
20094 (TR0_REG, TR1_REG, TR2_REG): New.
20095 (XD0_REG): Renumber.
20096 (UNSPEC_COMPACT_ARGS): New.
20097 (type): Added pt and ptabs.
20098 (length): Default to 4 on SHmedia. Default pt length to 12
20099 and 20 on SHmedia32 and SHmedia64, respectively.
20100 (pt): New function unit.
20101 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
20102 Add whitespace between operands of SHmedia instructions.
20104 (adddi3_media, addsi3_media): Adjust constraints.
20105 (subsi3) [SHmedia]: Force operand 1 into a register.
20106 (udivsi3_i1_media, udivsi3_i4_media): New.
20107 (udivsi3): Support SHmedia.
20108 (divsi3_i1_media, divsi3_i4_media): New.
20109 (divsi3): Support SHmedia.
20110 (anddi3, iordi3, xordi3): Adjust constraints.
20111 (zero_extendhidi2, zero_extendqidi2): New.
20112 (extendsidi2, extendhidi2, extendqidi2): New.
20113 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
20114 (pop_e, pop_fpul, pop_4): Likewise.
20115 (movsi_media): Support FP and BT registers.
20116 (movsi_media_nofpu): New. Adjust splits to DImode.
20117 (lduw, ldub): Renamed to zero_extend* above.
20118 (movqi_media): Fix typo.
20119 (movdi_media): Support FP and BT registers.
20120 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
20121 (movdi_const_32bit): New.
20122 (shori_media): Require immediate operand. Use `u' for output.
20123 (movdf_media, movsf_media): Simplified.
20124 (movdf_media_nofpu, movsf_media_nofpu): New.
20125 (movdf, movsf): Adjust
20126 (movv2sf, movv2sf, movv16sf): New.
20127 (beq_media, beq_media_i): Adjust constraints. Don't use
20128 scratch BT register.
20129 (bne_media, bne_media_i): Likewise.
20130 (bgt_media, bgt_media_i): Likewise.
20131 (bge_media, bge_media_i): Likewise.
20132 (bgtu_media, bgtu_media_i): Likewise.
20133 (bgeu_media, bgeu_media_i): Likewise.
20134 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
20135 bunordered): Emit jump insn. Force operands to registers when
20137 (jump_media, jump): Simplify.
20138 (call_compact, call_compact_rettramp): New.
20139 (call_value_compact, call_value_compact_rettramp): New.
20140 (call_media, call_value_media): Simplify.
20141 (sibcall_compact, sibcall_media): New.
20142 (call, call_value): Adjust for SHmedia and SHcompact.
20143 (sibcall, sibcall_value, untyped_call): Likewise.
20144 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
20145 (indirect_jump): Adjust for SHmedia.
20146 (casesi_jump_media): New.
20147 (nop): Re-enable for SHmedia.
20148 (call_site): Restrict to SH1.
20149 (casesi): Adjust for SHmedia.
20150 (casesi_shift_media, casesi_load_media): New.
20151 (return): Explicitly use PR register. Call return trampoline
20153 (return_i): Explicitly use PR register.
20154 (shcompact_return_tramp, shcompact_return_tramp_i): New.
20155 (return_media): Adjust.
20156 (shcompact_incoming_args): New.
20157 (epilogue): Adjust.
20158 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
20159 (movstrsi): Disable on SH5.
20160 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
20161 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
20162 (subsf3, subsf3_media): Likewise.
20163 (mulsf3, mulsf3_media, mac_media): Likewise.
20164 (divsf3, divsf3_media): Likewise.
20165 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
20166 (floatsisf2, fux_truncsfsi2): Likewise.
20167 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
20169 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
20170 (cmpunsf_media, cmpsf): Likewise.
20171 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
20172 (abssf2, abssf2_media): Likewise.
20173 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
20174 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
20175 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
20176 (floatsidf2, fix_truncdfsi2): Likewise.
20177 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
20179 (cmpeqdf_media, cmpgtdf_media): Likewise.
20180 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
20181 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
20182 (absdf2, absdf2_media): Likewise.
20183 (extendsfdf2, extendsfdf2_media): Likewise.
20184 (truncsfdf2, truncsfdf2_media): Likewise.
20185 * config/sh/sh64.h: New file.
20186 * config/sh/t-sh64: New file.
20187 * config/sh/shmedia.h: New file.
20188 * config/sh/ushmedia.h: New file.
20189 * config/sh/sshmedia.h: New file.
20190 * configure.in: Added sh64-*-elf.
20191 * configure: Rebuilt.
20192 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
20193 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
20194 (reg_class_from_letter): Use `b' for TARGET_REGS.
20195 (print_operand): Support `%M', `%m', `AND' and
20196 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
20197 (andcosts): Adjust for SHmedia.
20198 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
20200 (target_reg_operand): New function.
20201 * config/sh/sh-protos.h (target_reg_operand): Declare.
20202 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
20203 FP registers on SH5.
20204 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
20206 (TARGET_REGISTER_P): New macro.
20207 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
20208 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
20209 (EXTRA_CONSTRAINT_S): New macro.
20210 (EXTRA_CONSTRAINT): Adjust.
20211 (FLOAT_TYPE_SIZE): Define to 32.
20212 (Pmode): DImode on SHmedia.
20213 (CONST_COSTS): Adjust for SHmedia literals.
20214 (PREDICATE_CODES): Added target_reg_operand.
20215 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
20216 * config/sh/sh.md: Remove all attrs from SHmedia insns.
20217 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
20218 (cmpdi): Accept SHmedia.
20219 (movdicc_false, movdicc_true): New insns.
20220 (movdicc): New expand.
20221 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
20223 (addsi3_media): Match `S' constraint.
20224 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
20225 (negdi2): Expand for SHmedia.
20226 (one_cmpldi2): New expand.
20227 (zero_extendsidi2): Change from expand to insn.
20228 (extendsidi2): Add constraints.
20229 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
20230 LD/ST address. Fix SI immediate loading split.
20231 (movhi_media, movqi_media, lduw, ldub): New insns.
20232 (movhi, movqi): Accept SHmedia.
20233 (shori_media, movdi_media): Relax input constraints. Split
20234 symbolic constants.
20235 (movdf_media, movsf_media): New insn. New split to movdi.
20236 (movdf, movsf): Match on SHmedia.
20237 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
20238 bgeu_media): New insns and splits. New insns with `_i' suffix.
20239 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
20240 (bunordered): New expand.
20241 (jump_compact): Renamed from `jump'.
20242 (jump_media): New insn.
20243 (jump): New expand.
20244 (call_media, call_value_media): New insns.
20245 (call, call_value): Adjust.
20246 (indirect_jump_compact): Renamed from `indirect_jump'.
20247 (indirect_jump_media): New insn.
20248 (indirect_jump): New expand.
20249 (untyped_call, return): Accept SHmedia.
20250 (return_media): New insn.
20251 (prologue, epilogue, blockage): Accept SHmedia.
20252 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
20253 (sunordered): New expand.
20254 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
20255 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
20256 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
20257 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
20258 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
20259 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
20260 abssf2_media): New insns.
20261 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
20262 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
20263 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
20264 floatdidf2, floatsidf2_media, fix_truncdfdi2,
20265 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
20266 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
20267 absdf2_media): New insns.
20268 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
20269 (extendsfdf2_media, truncdfsf2_media): New insns.
20270 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
20271 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
20272 * config/sh/sh.h (CONST_OK_FOR_J): Document.
20273 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
20274 * config/sh/sh.md (adddi3): New expand.
20275 (adddi3_media, adddi3z_media): New insns.
20276 (adddi3_compact): Renamed from adddi3.
20277 (addsi3_media): Use add.l r63 to add constant zero.
20278 (subdi3): New expand.
20279 (subdi3_media): New insn.
20280 (subdi3_compact): Renamed from subdi3.
20281 (mulsidi3): New expand.
20282 (mulsidi3_media): New insn.
20283 (mulsidi3_compact): Renamed from mulsidi3.
20284 (umulsidi3): New expand.
20285 (umulsidi3_media): New insn.
20286 (umulsidi3_compact): Renamed from umulsidi3.
20287 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
20288 (ashlsi3, ashrsi3, lshrsi3): Use them.
20289 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
20290 (ashldi3, ashrdi3, lshrdi3): Use them.
20291 (zero_extendsidi2): New expand.
20292 (extendsidi2): New insn.
20293 (movsi_media): New insn. Split to movdi to load constants.
20294 (movsi): Enable for shmedia.
20295 (movdi_media): New insn. Use shori_media to load wide constants.
20296 (short_media): New insn.
20297 (movdi): Enable for shmedia.
20298 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
20299 * config/sh/sh.h (CPP_SPEC): Added `m5'.
20300 (SUBTARGET_CPP_SPEC): Added `!m5'.
20301 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
20302 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
20303 to all other SH variants.
20304 (TARGET_DEFAULT): Set to SH1_BIT.
20305 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
20306 (BITS_PER_WORD): Raise to 64 on shmedia.
20307 (MAX_BITS_PER_WORD): Change to 64.
20308 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
20309 (INT_TYPE_SIZE): Keep as 32.
20310 (UNITS_PER_WORD): Raise to 8 on shmedia.
20311 (MIN_UNITS_PER_WORD): Keep as 4.
20312 (POINTER_SIZE): Raise to 64 on shmedia.
20313 (CONST_OK_FOR_J): New macro.
20314 (CONST_OK_FOR_LETTER_P): Use it.
20315 (processor_type): Add PROCESSOR_SH5.
20316 * config/sh/sh.md: Conditionalize all expands, insns and
20317 splits to TARGET_SH1.
20319 (addsi3_compact): Renamed from...
20320 (addsi3): Now an expand.
20321 (addsi3_media, subsi3_media): New insns.
20322 (subsi3): Don't negate constants with SHmedia.
20324 * hooks.c: New file.
20325 * hooks.h: New file.
20326 * Makefile.in (HOOKS_H): New.
20327 (TARGET_DEF_H): Added $(HOOKS_H).
20328 (OBJS): Added hooks.o.
20329 (cfgcleanup.o, bb-reorder.o): Added target.h.
20330 (hooks.o): Added dependencies.
20331 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
20332 (TARGET_INITIALIZER): this.
20333 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
20334 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
20335 * bb-reorder.c: Include target.h.
20336 (reorder_basic_blocks): Skip if cannot modify jumps.
20337 * cfgcleanup.c: Include target.h.
20338 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
20340 2002-02-08 Chris Demetriou <cgd@broadcom.com>
20342 * config/mips/mips.md (casesi_internal, casesi_internal_di):
20343 Protect jump delay slot instructions with .set noreorder and
20346 2002-02-08 Chris Demetriou <cgd@broadcom.com>
20348 * config/mips/mips.md (casesi_internal_di): Calculate
20349 the index into the target offset table correctly.
20351 2002-02-08 Richard Henderson <rth@redhat.com>
20353 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
20354 * final.c (output_addr_const): Accept and discard SUBREG.
20355 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
20356 mark them unknown instead.
20357 (simplify_subtraction): Handle RTX_UNKNOWN.
20358 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
20360 2002-02-08 David Edelsohn <edelsohn@gnu.org>
20362 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
20364 2002-02-08 Richard Henderson <rth@redhat.com>
20366 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
20368 2002-02-08 Andreas Jaeger <aj@suse.de>
20370 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
20371 * config/i386/t-linux64: New file.
20373 2002-02-08 Jakub Jelinek <jakub@redhat.com>
20375 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
20376 * c-parse.in (compstmt): Clear last_expr_type.
20378 2002-02-07 Richard Henderson <rth@redhat.com>
20380 * loop.c (strength_reduce): Sink final_value when not
20383 2002-02-07 David O'Brien <obrien@FreeBSD.org>
20385 * config/sparc/freebsd.h: Fix mismatched spec {.
20387 2002-02-07 Richard Henderson <rth@redhat.com>
20389 * cfgrtl.c: Include recog.h and insn-config.h.
20390 (keep_with_call_p): Fix general_operand invocation.
20391 * Makefile.in (cfgrtl.o): Update dependencies.
20393 2002-02-07 Kazu Hirata <kazu@hxi.com>
20395 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
20396 comment. Accept HImode only if TARGET_H8300.
20398 2002-02-07 Eric Christopher <echristo@redhat.com>
20400 * config/mips/crtn.asm: Cleanup #ifdefs.
20402 2002-02-07 Eric Christopher <echristo@redhat.com>
20404 * config/mips/crti.asm: Add changes for mips16. mips16 uses
20405 register 7 as RA instead of $31.
20406 * config/mips/crtn.asm: Ditto.
20407 * config/mips/mips.c (mips_move_2words): Add case for
20408 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
20409 (compute_frame_size): Fix typo.
20410 (save_restore_insns): Ditto. Make documentation about using
20411 register $7 as return register more precise.
20412 (mips_expand_epilogue): Fix comment. Add code to work around not
20413 being able to add to the stack pointer directly.
20414 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
20415 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
20418 2002-02-07 Tom Rix <trix@redhat.com>
20420 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
20421 immediates in ldu and stdu DS opcode field.
20422 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
20423 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
20424 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
20426 2002-02-07 Jeff Sturm <jsturm@one-point.com>
20428 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
20429 offset for stack bias.
20431 2002-02-07 H.J. Lu <hjl@gnu.org>
20433 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
20435 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
20437 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
20439 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
20441 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
20442 * i386.c (x86_order_regs_for_local_alloc): New global function.
20443 * i386.h (REG_ALLOC_ORDER): CLeanup.
20444 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
20446 2002-02-07 Richard Henderson <rth@redhat.com>
20448 PR optimization/2463
20449 * alias.c (find_base_value): Recall base values for fixed hard regs.
20450 * loop.c (loop_regs_update): Don't use single_set on non-insns.
20452 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
20454 * config/mips/mips.md (define_delay) [mips16]: Adjust required
20457 2002-02-06 Richard Henderson <rth@redhat.com>
20460 * stmt.c (resolve_operand_name_1): Take more care with mixed
20461 named and unnamed operands.
20463 2002-02-06 Janis Johnson <janis187@us.ibm.com>
20464 Jan Hubicka <jh@suse.cz>
20466 * loop.c (remove_constant_addition): Avoid clobbering a shared
20469 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
20471 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
20472 * config/s390/t-linux64: New file.
20473 * config/s390/libgcc-glibc.ver: New file.
20475 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
20477 * config/s390/linux64.h: Delete file.
20478 * config/s390/s390x.h: New file.
20479 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
20480 as target header file.
20481 * config/s390/linux.h (TARGET_VERSION): Define depending on
20482 DEFAULT_TARGET_64BIT.
20483 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
20484 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
20485 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
20486 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
20487 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
20488 (EXTRA_SPEC): New define.
20489 * config/s390/s390.h (TARGET_VERSION): Define depending on
20490 DEFAULT_TARGET_64BIT.
20491 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
20493 2002-02-06 Jason Merrill <jason@redhat.com>
20495 * c-decl.c (finish_function): Warn about a non-void function with
20496 no return statement and no abnormal exit.
20497 (current_function_returns_abnormally): New variable.
20498 (start_function): Clear it.
20499 (struct c_language_function): Add returns_abnormally.
20500 (push_c_function_context): Save it.
20501 (pop_c_function_context): Restore it.
20502 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
20503 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
20504 an explicit return type.
20505 * c-tree.h: Declare current_function_returns_abnormally.
20506 (C_FUNCTION_IMPLICIT_INT): New macro.
20507 * c-typeck.c (build_function_call): Set it.
20508 (c_expand_return): Set current_function_returns_value even if the
20509 value is erroneous.
20511 2002-02-06 Jakub Jelinek <jakub@redhat.com>
20514 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
20515 unsafe for reevaluation.
20517 2002-02-06 Jakub Jelinek <jakub@redhat.com>
20520 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
20521 EXPR_STMT, but COMPOUND_STMT, recurse into it.
20523 2002-02-06 Richard Henderson <rth@redhat.com>
20525 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
20526 be a general_operand. Dest for function value must be a pseudo.
20528 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
20530 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
20531 as SYMBOL_REFs from the constant pool.
20533 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
20535 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
20536 passed by invisible reference.
20538 2002-02-05 Richard Henderson <rth@redhat.com>
20540 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
20542 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
20544 Implement using "base addresses" in insn operands as default.
20545 * config/mmix/mmix.c (mmix_conditional_register_usage): if
20546 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
20547 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
20548 used to read the rtx value.
20549 (mmix_target_asm_function_epilogue): Fix spacing.
20550 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
20551 (mmix_legitimate_address): Ditto.
20552 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
20553 should be loaded with a GETA insn. Don't allocate needless extra
20554 char for nul termination and fix misleading comment.
20555 (mmix_print_operand_address): Handle constants if
20556 TARGET_BASE_ADDRESSES.
20557 (mmix_output_register_setting): Use base addressing if
20558 TARGET_BASE_ADDRESSES and the number of insns is 3.
20559 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
20560 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
20561 to use R as constraint, add LDA to match s.
20562 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
20563 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
20564 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
20565 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
20566 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
20567 order with other fixed registers.
20568 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
20569 other parameter/call-clobbered registers.
20570 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
20571 -mbase-addresses, -mno-base-addresses.
20572 (MMIX Options): Ditto.
20574 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
20576 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
20578 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
20580 * config/rs6000/altivec.h: Change elem to _S_elem.
20582 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
20584 * config/netbsd.h (WCHAR_TYPE): Define.
20585 (WCHAR_TYPE_SIZE): Ditto.
20586 (WINT_TYPE): Ditto.
20587 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
20588 (WCHAR_UNSIGNED): Ditto.
20589 (WCHAR_TYPE_SIZE): Ditto.
20590 (WINT_TYPE): Ditto.
20591 * config/arm/netbsd.h: Likewise.
20592 * config/i386/netbsd-elf.h: Likewise.
20593 * config/i386/netbsd.h: Likewise.
20594 * config/m68k/netbsd-elf.h: Likewise.
20595 * config/m68k/netbsd.h: Likewise.
20596 * config/ns32k/netbsd.h: Likewise.
20597 * config/sparc/netbsd.h: Likewise.
20598 * config/vax/netbsd.: Likewise.
20600 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
20602 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
20603 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
20604 (TARGET_INITIALIZER): this.
20605 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
20606 (BITFIELD_NBYTES_LIMITED): Markup fix.
20607 * tree.h (default_ms_bitfield_layout_p): Declare.
20608 (record_layout_info): Added prev_field.
20609 * tree.c (default_ms_bitfield_layout_p): New fn.
20610 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
20611 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
20612 * stor-layout.c: Include target.h.
20613 (start_record_layout): Initialize prev_field.
20614 (place_field): Handle MS bit-field layout, and disregard
20615 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
20616 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
20617 * Makefile.in (stor-layout.o): Adjust dependencies.
20619 2002-02-05 Jason Merrill <jason@redhat.com>
20621 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
20623 2002-02-05 Andreas Jaeger <aj@suse.de>
20625 * crtstuff.c: Fix comments.
20627 2002-02-05 Richard Henderson <rth@redhat.com>
20630 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
20631 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
20634 * config/mips/mips.c (function_arg): Handle TImode.
20635 (function_arg_advance): Likewise.
20637 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20639 * config/rs6000/altivec.h (vec_step_help): Rename to
20642 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20644 * config/rs6000/altivec.h: Fix typos.
20646 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
20648 * config/arm/netbsd.h: Correct a comment.
20650 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20652 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
20653 building void typed builtins.
20655 * config/rs6000/altivec.h (vec_ld*): Fix typos.
20656 (vec_step): Implement for C++.
20658 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20660 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
20662 2002-02-04 Richard Henderson <rth@redhat.com>
20664 * combine.c (nonzero_bits): Re-introduce special case for
20665 sp/fp/ap wrt REGNO_POINTER_ALIGN.
20667 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20669 * doc/extend.texi: Warn about unsupported usage of altivec
20672 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
20673 (altivec_predicate_*): New.
20675 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
20676 Add C++ version of vec_*() functions.
20678 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
20679 (bdesc_2arg): Remove altivec predicates.
20680 (altivec_expand_builtin): Handle predicates.
20681 (altivec_init_builtins): Handle predicates.
20682 (altivec_expand_predicate_builtin): New.
20684 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20686 * pa.c (DO_FRAME_NOTES): Move forward.
20687 (store_reg): Revise handling of frame notes.
20688 (load_reg): Likewise.
20689 (set_reg_plus_d): Likewise.
20690 (hppa_expand_prologue): Likewise.
20691 (hppa_expand_epilogue): Likewise.
20693 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20695 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
20697 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20699 PR c/4475, c++/3780:
20700 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
20701 * c-common.h (SWITCH_TYPE): Define.
20702 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
20703 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
20704 Rename spareness variable to sparseness.
20705 (expand_end_case_type): Renamed from expand_end_case, use orig_type
20706 if non-NULL instead of TREE_TYPE (orig_index).
20707 * tree.h (expand_end_case_type): Renamed from expand_end_case.
20708 (expand_end_case): Define using expand_end_case_type.
20709 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
20710 to expand_end_case_type.
20711 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
20713 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20715 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
20716 (BIGGEST_ALIGNMENT): Change to 128.
20718 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20720 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
20722 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20724 * pa.md (call_internal_reg_64bit): Remove unused variable.
20726 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
20728 * config/arm/arm.h (machine_function): Add uses_anonymous_args
20730 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
20731 * config/arm/arm.c (current_function_anonymous_args): Delete,
20732 replace uses with cfun->machine->uses_anonymous_args.
20733 (arm_reorg): Do not reset uses_anonymous_args.
20735 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
20736 any geenral register.
20738 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
20740 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
20743 2002-02-04 Richard Henderson <rth@redhat.com>
20745 * combine.c (force_to_mode): Remove STACK_BIAS code.
20746 (nonzero_bits): Likewise. Replace sp/fp special case with
20747 REGNO_POINTER_ALIGN.
20749 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
20750 (HARD_FRAME_POINTER_REGNUM): New.
20751 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
20752 (FIXED_REGS, CALL_USED_REGS): Update.
20753 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
20754 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
20755 (HARD_REGNO_NREGS): Update for SFP.
20756 (STACK_POINTER_OFFSET): Include bias here ...
20757 (FIRST_PARM_OFFSET): ... not here.
20758 (STACK_BIAS): Remove.
20759 (INIT_EXPANDERS): New.
20760 (STARTING_FRAME_OFFSET): Do not include bias.
20761 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
20762 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
20763 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
20764 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
20765 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
20766 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
20767 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
20768 (MUST_SAVE_REGISTER): Likewise.
20769 (sparc_flat_function_prologue): Likewise.
20770 (sparc_flat_function_epilogue): Likewise.
20771 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
20772 (sparc_init_modes): SFP is GENERAL_REGS.
20773 (sparc_builtin_saveregs): SFP does not have bias applied.
20775 2002-02-04 Richard Henderson <rth@redhat.com>
20777 * config/alpha/alpha.c (current_function_is_thunk): Don't check
20778 current_function_is_thunk.
20779 (alpha_sa_mask): Distinguish between current_function_is_thunk
20780 called from ASM_OUTPUT_MI_THUNK and not.
20781 (alpha_does_function_need_gp): Thunks always need gp.
20782 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
20783 (alpha_output_mi_thunk_osf): New.
20784 * config/alpha/alpha-protos.h: Update.
20785 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
20787 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
20789 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
20790 function types, not when they're taken away.
20792 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
20794 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
20795 CODE_LABEL and jump table when replacing a table jump with a
20798 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
20800 * config/s390/s390-protos.h (legitimize_la_operand,
20801 s390_secondary_input_reload_class, s390_plus_operand,
20802 s390_expand_plus_operand): Add prototypes.
20804 config/s390/s390.c (s390_secondary_input_reload_class,
20805 s390_plus_operand, s390_expand_plus_operand): New functions.
20807 (struct s390_address): New member 'pointer'.
20808 (s390_decompose_address): Compute it.
20809 (legitimate_la_operand_p): Use it.
20810 (legitimize_la_operand): New function.
20811 (movti, movdi, movdf splitters): Call it.
20813 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
20814 (PREDICATE_CODES): Add s390_plus_operand.
20816 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
20817 (la_ccclobber): Allow GENERAL_REGS as output operand.
20819 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
20820 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
20821 (*la_64, *la_31, reload_indi, reload_insi): ... these.
20823 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
20825 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
20826 register names for regular asm () construct.
20828 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20830 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
20833 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20835 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
20838 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
20840 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
20841 constant pool to be identical by string address and index.
20843 2002-02-04 Anthony Green <green@redhat.com>
20845 * output.h (SECTION_OVERRIDE): Define.
20846 * varasm.c (named_section): Obey SECTION_OVERRIDE.
20848 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
20850 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
20851 by existing arm*-*-netbsd* (a.out) target.
20852 (ns32k-*-netbsdelf*): Likewise.
20853 (sparc-*-netbsdelf*): Likewise.
20854 (vax-*-netbsdelf*): Likewise.
20856 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
20858 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
20859 headers and libobjc headers.
20861 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
20863 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
20864 (_mingw.h): Remove duplicate include.
20866 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
20868 * config.gcc: Set cpu_type to m68k for 68010, as well.
20869 (m68010-*-netbsdelf*): New...
20870 (m68k*-*-netbsdelf*): ...targets.
20871 * config/m68k/netbsd-elf.h: New file.
20873 2002-02-02 Kazu Hirata <kazu@hxi.com>
20875 * config/h8300/h8300.c (hand_list): Move inside function_arg.
20877 2002-02-02 Kazu Hirata <kazu@hxi.com>
20879 * config/h8300/h8300.c (h8_push_ops): Move inside
20881 (h8_pop_ops): Likewise.
20882 (h8_move_ops): Likewise.
20884 2002-02-02 Kazu Hirata <kazu@hxi.com>
20886 * config/h8300/h8300.c (os_task): Make it static.
20887 (monitor): Likewise.
20888 (pragma_saveall): Likewise.
20890 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
20892 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
20893 constant is a valid sign-extension for Pmode.
20895 2002-02-02 Kazu Hirata <kazu@hxi.com>
20897 * config/h8300/h8300.c: Fix formatting.
20899 2002-02-02 Kazu Hirata <kazu@hxi.com>
20901 * config/h8300/h8300.md: Fix formatting.
20903 2002-02-02 Kazu Hirata <kazu@hxi.com>
20905 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
20906 predicates of operands[1]. Split the patterns for each
20909 2002-02-02 Kazu Hirata <kazu@hxi.com>
20911 * config/h8300/h8300.md (xor patterns): Tighten the predicates
20912 of operands[1] to register_operand.
20914 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
20916 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
20917 * cpphash.c (_cpp_init_hashtable): Similarly.
20918 * cppinit.c (cpp_create_reader): Default the signed_char flag.
20919 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
20920 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
20921 (cpp_handle_option): Handle the new options.
20922 * cpplex.c (cpp_interpret_charconst): Use new flag.
20923 * cpplib.h (struct cpp_options): New member signed_char.
20924 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
20925 (cpp_options): Handle -fsigned-char and -funsigned-char.
20926 (static_specs): Remove signed_char_spec.
20927 (do_spec1): Don't handle %c.
20928 * system.h: Poison SIGNED_CHAR_SPEC.
20929 * tradcif.y (yylex): Use flag_signed_char.
20930 * tradcpp.h (flag_signed_char): New.
20931 * tradcpp.c (flag_signed_char): New.
20932 (main): Handle new command-line options.
20933 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
20935 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
20936 * avr/avr.h: Remove old comments.
20937 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
20938 (CC1_SPEC): Pass -fsigned-char if -mic*.
20939 (SIGNED_CHAR_SPEC): Remove.
20941 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
20943 2002-02-01 Eric Christopher <echristo@redhat.com>
20945 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
20946 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
20947 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
20948 (ASM_OUTPUT_REG_POP): Ditto.
20950 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
20952 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
20955 2002-02-02 Jakub Jelinek <jakub@redhat.com>
20957 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
20959 2002-02-02 Jakub Jelinek <jakub@redhat.com>
20962 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
20965 2002-02-01 Janis Johnson <janis187@us.ibm.com>
20967 * cfganal.c: Include tm_p.h.
20968 (keep_with_call_p): Fix the test that determines if a register holds
20969 the return value of a call.
20971 2002-02-01 DJ Delorie <dj@redhat.com>
20973 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
20974 we are given conflicting registers, switch to the other one we
20975 had allocated for us.
20976 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
20977 as TImode so we know when the "other" register is available.
20979 2002-02-01 David O'Brien <obrien@FreeBSD.org>
20981 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
20984 2002-02-01 Janis Johnson <janis187@us.ibm.com>
20986 * cfganal.c (keep_with_call_p): New function.
20987 (flow_call_edges_add): Prevent splitting a block between a call and
20988 a single-set instruction that should be kept in the same block.
20990 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
20992 * doc/install.texi (avr): Update outdated URL.
20994 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
20996 * config/stormy16/stormy16.md (pushqi): New.
21000 (movhi): Remove stack operands.
21002 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
21003 nonimmediate_nonstack_operand.
21004 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
21006 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
21009 2002-01-31 Jason Merrill <jason@redhat.com>
21011 * Makefile.in (c-parse.c): Handle .output file.
21012 * objc/Make-lang.in (objc-parse.c): Likewise.
21014 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
21016 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
21017 the -me[lb] option is given. Don't output the default flag
21020 2002-01-31 Zack Weinberg <zack@codesourcery.com>
21022 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
21023 the primary source file; this has not been done yet.
21024 * c-decl.c (c_expand_body): Reset input_filename from
21025 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
21027 2002-01-31 Kazu Hirata <kazu@hxi.com>
21029 * rtlanal.c (subreg_regno_offset): Do not use
21030 SUBREG_REGNO_OFFSET.
21031 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
21032 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
21034 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
21036 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
21037 version rather than GNATS version in --version output.
21039 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
21041 * ifcvt.c (noce_process_if_block): Make a copy of the destination
21042 when copying back from a temporary.
21044 2002-01-30 Richard Henderson <rth@redhat.com>
21046 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
21047 and new_dest are the same.
21049 2002-01-30 Richard Henderson <rth@redhat.com>
21052 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
21053 * rtl.c (note_insn_name): Update.
21054 * emit-rtl.c (remove_unnecessary_notes): Kill it.
21055 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
21056 to perform loop rotation.
21057 (expand_exit_loop_top_cond): New.
21058 * tree.h (expand_exit_loop_top_cond): Declare it.
21059 * c-semantics.c (genrtl_while_stmt): Use it.
21060 (genrtl_for_stmt): Likewise.
21062 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
21064 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
21065 arguments to 64-bit boundaries on 64-bit ABIs.
21067 2002-01-30 Steve Ellcey <sje@cup.hp.com>
21069 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
21071 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
21073 * c-decl.c (grokdeclarator): Handle type being a typedef for an
21076 2002-01-30 David O'Brien <obrien@FreeBSD.org>
21078 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
21079 * config/sparc/sparc_bi.h: Remove file.
21080 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
21082 2002-01-30 Richard Henderson <rth@redhat.com>
21084 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
21086 2002-01-30 Zack Weinberg <zack@codesourcery.com>
21088 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
21090 2002-01-30 Jason Merrill <jason@redhat.com>
21092 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
21093 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
21094 (reg_save): Use DW_CFA_offset_extended_sf instead.
21096 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
21098 2002-01-29 Jakub Jelinek <jakub@redhat.com>
21100 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
21103 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
21105 * rs6000.md ("*call_value_local32"): Remove constraints.
21106 ("*call_value_local64"): Same.
21107 ("*call_value_indirect_nonlocal_aix32"): Same.
21108 ("*call_value_nonlocal_aix32"): Same.
21109 ("*call_value_indirect_nonlocal_aix64"): Same.
21110 ("*call_value_nonlocal_aix64"): Same.
21111 ("*call_value_nonlocal_sysv"): Same.
21113 2002-01-29 Richard Henderson <rth@redhat.com>
21115 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
21117 2002-01-29 Richard Henderson <rth@redhat.com>
21119 * expr.c (force_operand): Ignore flag_pic for detecting pic
21121 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
21122 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
21123 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
21124 instead of open-coded loop.
21125 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
21126 be fixed when in use.
21128 2002-01-29 Richard Henderson <rth@redhat.com>
21130 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
21131 * sched-rgn.c (propagate_deps): Update them.
21132 * sched-deps.c (sched_analyze_insn): Update them. Flush the
21133 clobbers list when either gets too long.
21135 2002-01-29 Jakub Jelinek <jakub@redhat.com>
21137 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
21138 and INDEX_REGS the same as GENERAL_REGS.
21139 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
21141 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
21143 * tree.c (build_nonstandard_integer_type): Correct prototype.
21145 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
21147 * config/s390/s390.md (movstrsico, movstrdix_64,
21148 movstrsix_31): Remove, replace by ...
21149 (movstrdi_short, movstrsi_short, movstrdi_long,
21150 movstrsi_long): ... these. New.
21151 (movstrdi, movstrsi): Adapt.
21153 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
21154 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
21155 Remove unnecessary CC clobber.
21156 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
21157 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
21159 (divmoddi4): Don't partially initialize TImode register.
21161 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
21163 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
21165 2002-01-29 Richard Henderson <rth@redhat.com>
21167 * flow.c (print_rtl_and_abort): Remove.
21168 (print_rtl_and_abort_fcn): Remove.
21169 (verify_local_live_at_start): Use dump_bb instead.
21170 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
21171 (verify_wide_reg_1): Return 2 on mode test failure.
21173 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
21175 PR c/3325, c/3326, c/2511, c/3347
21176 * c-decl.c (enum_decl_context): Remove BITFIELD.
21177 (grokdeclarator): Take bitfield width as an input.
21178 Ensure bitfields are given the correct type. Perform
21179 bitfield width validation with build_bitfield_integer_type
21180 rather than waiting for finish_struct.
21181 (grok_typename, grok_typename_in_parm_context, start_decl,
21182 push_parmdecl, grokfield, start_function): Update calls to
21184 (build_bitfield_integer_type): New function.
21185 (finish_struct): Move bitfield validation to grokdeclarator
21186 and build_bitfield_integer_type.
21187 * tree.c (build_nonstandard_integer_type): New function.
21188 * tree.h (build_nonstandard_integer_type): New prototype.
21190 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
21192 2002-01-29 Jakub Jelinek <jakub@redhat.com>
21195 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
21196 don't ignore unrecognized -W* options.
21197 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
21198 * cpplib.h (cpp_handle_option): Adjust prototype.
21199 * c-decl.c (c_decode_options): Pass 0 as last argument to
21203 * gcc.c (cpp_unique_options): Split from cpp_options.
21204 (cpp_options): Source cpp_unique_options.
21205 (default_compilers): Use cpp_unique_options instead of cpp_options
21206 when used together with cc1_options.
21207 (static_specs): Add cpp_unique_options.
21208 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
21209 when used together with cc1_options.
21211 2002-01-29 Kazu Hirata <kazu@hxi.com>
21213 * config/h8300/h8300-protos.h: Update the prototype of
21215 * config/h8300/h8300.c (output_a_shift): Remove an unused
21216 argument 'insn'. Remove redundant code.
21217 * config/h8300/h8300.md: Adust to the new prototype of
21220 2002-01-29 Kazu Hirata <kazu@hxi.com>
21222 * config/h8300/h8300-protos.h: Update the prototypes of
21223 emit_a_rotate and expand_a_rotate.
21224 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
21225 first argument to 'enum rtx_code'.
21226 (expand_a_rotate): Likewise.
21228 2002-01-28 Kazu Hirata <kazu@hxi.com>
21230 * config/h8300/h8300-protos.h: Update the prototype of
21232 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
21234 * config/h8300/h8300.md: Adjust to the new prototype.
21236 2002-01-28 Kazu Hirata <kazu@hxi.com>
21238 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
21241 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
21243 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
21244 is a fixed register before returning pic_offset_table_rtx.
21245 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
21246 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
21248 2002-01-28 Jason Merrill <jason@redhat.com>
21250 * dwarf2.h: Sync with src version.
21252 2002-01-28 Paul Koning <pkoning@equallogic.com>
21254 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
21255 BT_FN_VOID_PTR_VAR.
21256 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
21257 * doc/extend.texi (__builtin_prefetch): Update documentation:
21258 first argument is now const void ptr.
21260 2002-01-28 Kazu Hirata <kazu@hxi.com>
21262 * config/h8300/h8300-protos.h: Remove an unused prototype.
21264 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
21266 * toplev.c (lang_independent_init): Round up identifier size.
21268 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
21270 * config.gcc: Revert previous change.
21272 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
21274 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
21276 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
21278 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
21279 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
21280 other non-elf netbsd config frags.
21281 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
21282 collect2 will does that.
21283 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
21284 shared-lib frobbing will work.
21286 2002-01-28 Kazu Hirata <kazu@hxi.com>
21288 * config/h8300/h8300.h: Fix formatting.
21289 * config/h8300/h8300.md: Likewise.
21291 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
21293 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
21294 the old, removed AAA_standards fix.
21295 * fixinc/fixincl.x: Rebuilt.
21297 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
21299 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
21300 atexit call in crtbegin, hooked in after call to frame_dummy;
21301 register EH before registering __fini__start.
21303 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
21305 * config/rs6000/altivec.h: Remove spurious semicolons.
21307 2002-01-27 Kazu Hirata <kazu@hxi.com>
21309 * config/h8300/h8300.md: Replace dead bit extraction patterns
21310 with ones that work.
21312 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21314 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
21315 if not STRICT_ALIGNMENT.
21316 * rtl.h (MEM_ALIGN): Likewise.
21318 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
21320 * doc/invoke.texi (-fdump-translation-unit): Revert this
21321 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
21323 2002-01-27 Kazu Hirata <kazu@hxi.com>
21325 * config/h8300/h8300.md (define_constants): New.
21326 (anonymous patterns) Use defined constants appropriately.
21328 2002-01-27 Kazu Hirata <kazu@hxi.com>
21330 * config/h8300/h8300.c (function_arg): Remove redundant code.
21332 2002-01-26 Richard Henderson <rth@redhat.com>
21334 * sched-deps.c (reg_pending_uses_head): New.
21335 (reg_pending_barrier): Rename from reg_pending_sets_all.
21336 (find_insn_list): Don't mark inline.
21337 (find_insn_mem_list): Remove.
21338 (add_dependence_list, add_dependence_list_and_free): New.
21339 (flush_pending_lists): Replace only_write param with separate
21340 for_read and for_write parameters. Update all callers. Use
21341 add_dependence_list_and_free.
21342 (sched_analyze_1): Do not add reg dependencies here; just set
21343 the pending bits. Use add_dependence_list.
21344 (sched_analyze_2): Likewise.
21345 (sched_analyze_insn): Replace schedule_barrier_found with
21346 reg_pending_barrier. Add all dependencies for pending reg
21347 uses, sets, and clobbers.
21348 (sched_analyze): Don't add reg dependencies for calls, just
21349 set pending bits. Use regs_invalidated_by_call. Treat
21350 sched_before_next_call as a normal list, not a fake insn.
21351 (init_deps): No funny init for sched_before_next_call.
21352 (free_deps): Free pending mems lists. Don't zero reg_last.
21353 (init_deps_global): Init reg_pending_uses.
21354 (finish_deps_global): Free it.
21355 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
21356 (find_insn_mem_list): Remove.
21357 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
21358 (propagate_deps): Use them. Zero temp mem lists.
21360 2002-01-26 Richard Henderson <rth@redhat.com>
21362 * Makefile.in (CRTSTUFF_CFLAGS): New.
21363 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
21364 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
21365 crtstuff.c instead of alpha assembly version.
21366 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
21367 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
21368 not FORCE_{INIT,FINI}_SECTION_ALIGN.
21369 (__do_global_dtors_aux): Mark used.
21370 (frame_dummy, __do_global_ctors_aux): Mark used.
21371 (fini_dummy, init_dummy): Remove.
21373 * config/alpha/crtbegin.asm: Remove file.
21374 * config/alpha/crtend.asm: Remove file.
21375 * config/alpha/t-crtbe: Remove file.
21376 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
21377 (LINK_EH_SPEC): New.
21379 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
21380 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
21381 calling constructors.
21382 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
21384 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
21385 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
21386 CRT_END_INIT_DUMMY hack.
21387 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
21388 FORCE_{INIT,FINI}_SECTION_ALIGN.
21390 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
21391 FORCE_{INIT,FINI}_SECTION_ALIGN.
21393 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
21394 invocation sequence.
21395 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
21397 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
21398 (FORCE_CODE_SECTION_ALIGN): New.
21400 2002-01-26 Richard Henderson <rth@redhat.com>
21402 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
21404 2002-01-26 Richard Henderson <rth@redhat.com>
21406 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
21407 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
21409 2002-01-26 Kazu Hirata <kazu@hxi.com>
21411 * config/h8300/h8300.md: Remove bit extraction patterns that
21412 cannot be triggered.
21413 Restrict each bit extraction pattern to a variant on which the
21416 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
21418 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
21420 2002-01-26 Kazu Hirata <kazu@hxi.com>
21422 * config/h8300/h8300.md: Remove bit test patterns that cannot
21424 Restrict each bit test pattern to a variant on which the
21427 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21429 * builtins.c (expand_builtin_strncat): Remove redundant check for
21432 2002-01-25 David O'Brien <obrien@FreeBSD.org>
21434 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
21436 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
21439 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
21441 * dbxout.c (dbxout_init): Use assemble_name rather than just
21442 stripping off the first character.
21443 (dbxout_source_file): Likewise.
21445 2002-01-25 DJ Delorie <dj@redhat.com>
21447 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
21448 using rtx_equal_p, not by comparing pointers.
21450 2002-01-25 Steve Ellcey <sje@cup.hp.com>
21452 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
21453 for PIC_OFFSET_TABLE_REGNUM.
21454 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
21456 2002-01-25 David O'Brien <obrien@FreeBSD.org>
21458 * config.gcc (x86_64-*-freebsd*): New target.
21459 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
21461 (i[34567]86-*-freebsd*): Don't include svr4.h.
21462 * config/i386/freebsd64.h: New file.
21464 2002-01-25 Douglas B Rupp <rupp@gnat.com>
21466 * config/alpha/x-vms (version): Make static.
21468 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
21469 in previous checkin.
21471 * Makefile.in (install-headers-cp): New target.
21472 * config.gcc (alpha-dec-*vms*): Install headers with
21475 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
21477 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
21480 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21482 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
21483 of compare_tree_int.
21484 (expand_builtin_strncat): Likewise.
21485 * c-decl.c (finish_struct): Use tree_low_cst.
21486 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
21487 * tree.c (compare_tree_int): Likewise.
21489 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
21491 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
21492 adjustments even if they are implemented by more than two insns.
21494 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
21496 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
21497 * df.h (struct ref): Kill B.
21498 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
21500 * basic-block.h (PROP_EQUAL_NOTES): New flag.
21501 * flow.c (propagate_one_insn): Use it.
21502 (mark_used_regs): Handle NIL.
21504 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
21506 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
21509 2002-01-25 David Edelsohn <edelsohn@gnu.org>
21511 * rs6000.md (prefetch): Make address V4SI mode so that the address
21512 is restricted to legitimate form for instruction.
21514 2002-01-25 Bob Wilson <bob.wilson@acm.org>
21516 * doc/install.texi (xtensa-*-elf): New target.
21517 (xtensa-*-linux*): New target.
21518 * doc/contrib.texi: Add myself.
21520 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
21522 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
21523 purpose register to hold an SImode (or smaller) value.
21525 2002-01-25 Jakub Jelinek <jakub@redhat.com>
21527 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
21529 * crtstuff.c: Likewise.
21531 2002-01-25 Kazu Hirata <kazu@hxi.com>
21533 * config/h8300/h8300.md (negation patterns): Tighten
21534 predicates to register_operand.
21536 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
21538 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
21541 * builtins.c (expand_builtin_prefetch): Same.
21543 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21545 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
21548 2002-01-24 Kazu Hirata <kazu@hxi.com>
21550 * config/h8300/h8300.c (print_operand): Remove support for
21551 operand character 'A'.
21552 * config/h8300/h8300.md (three anonymous patterns): Replace
21553 operand character 'A' with either 'T' or 'S'.
21555 2002-01-24 Kazu Hirata <kazu@hxi.com>
21557 * config/h8300/h8300.c (print_operand): Remove support for
21558 operand character 'U'.
21560 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
21562 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
21564 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
21566 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
21567 values to be assigned to the stack pointer.
21569 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
21571 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
21572 to const_double needs to be done right for big-endian systems.
21574 2002-01-24 Jason Merrill <jason@redhat.com>
21577 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
21578 to can_throw_internal.
21580 2002-01-23 Richard Henderson <rth@redhat.com>
21582 * fold-const.c (fold): Change UINT_MAX test to check vs precision
21583 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
21585 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21587 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
21588 (symGOT2reg): Use them, then set as GOT value as unchanging.
21589 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
21590 as a temporary, if possible.
21591 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
21592 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
21594 2002-01-23 Kazu Hirata <kazu@hxi.com>
21596 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
21597 accept to accept 0x80 as operands[2].
21599 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21601 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
21603 2002-01-23 Richard Henderson <rth@redhat.com>
21605 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
21607 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
21609 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
21610 (parmlist_or_identifiers_1): Verify that only a parmlist follows
21613 2002-01-23 Richard Henderson <rth@redhat.com>
21615 * expr.c (move_by_pieces_1): Extend size before negation.
21617 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
21618 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
21619 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
21620 * config/m68k/t-m68kelf: Likewise.
21622 2002-01-23 Bob Wilson <bob.wilson@acm.org>
21624 * config/xtensa/elf.h: New file.
21625 * config/xtensa/lib1funcs.asm: New file.
21626 * config/xtensa/lib2funcs.S: New file.
21627 * config/xtensa/linux.h: New file.
21628 * config/xtensa/t-xtensa: New file.
21629 * config/xtensa/xtensa-config.h: New file.
21630 * config/xtensa/xtensa-protos.h: New file.
21631 * config/xtensa/xtensa.c: New file.
21632 * config/xtensa/xtensa.h: New file.
21633 * config/xtensa/xtensa.md: New file.
21634 * config.gcc (xtensa-*-elf*): New target.
21635 (xtensa-*-linux*): New target.
21636 * cse.c (canon_hash): Compare rtx pointers instead of register
21637 numbers. This is required for the Xtensa port.
21638 * integrate.c (copy_insn_list): Handle case where the static
21639 chain is in memory and the memory address has to be copied to
21641 * doc/invoke.texi (Option Summary): Add Xtensa options.
21642 (Xtensa Options): New node.
21643 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
21645 2002-01-23 Zack Weinberg <zack@codesourcery.com>
21647 * diagnostic.c (internal_error): Do ICE suppression only
21648 when ENABLE_CHECKING is not defined.
21650 * c-typeck.c (require_complete_type): Return error_mark_node
21651 if type is error_mark_node.
21653 2002-01-23 Janis Johnson <janis187@us.ibm.com>
21655 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
21656 -Os and issue a warning.
21658 2002-01-23 Zack Weinberg <zack@codesourcery.com>
21660 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
21661 current (lack of) need for host configuration by hand.
21663 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
21664 references. Documentation of some target macros moved from
21665 hostconfig.texi to tm.texi.
21667 2002-01-23 Will Cohen <wcohen@redhat.com>
21669 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
21672 2002-01-23 Kazu Hirata <kazu@hxi.com>
21674 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
21677 2002-01-23 Jason Merrill <jason@redhat.com>
21679 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
21681 * function.c (assign_parms): Don't put args of inline functions
21682 into registers when not optimizing.
21684 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
21686 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
21687 (prologue_use): New pattern.
21688 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
21689 preference to gen_rtx_USE.
21690 (thumb_expand_prologue): Use gen_prologue_use in preference to
21692 (thumb_expand_epilogue): Use gen_prologue_use in preference to
21695 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
21697 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
21699 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
21702 * doc/extend.texi: Correct documentation of __alignof__.
21704 2002-01-22 Zack Weinberg <zack@codesourcery.com>
21706 * params.h: Rename arguments of DEFPARAM so that it will be
21707 recognized as a translation keyword.
21709 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21711 * extend.texi: Document altivec functions.
21712 Fix N-bit adjectives in X86 builtin documentation.
21714 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
21716 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
21717 auto_inc_dec values.
21719 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
21721 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
21723 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
21725 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
21727 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
21729 2002-01-22 Richard Henderson <rth@redhat.com>
21731 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
21732 copy_insn not copy_rtx.
21734 2002-01-23 Alan Modra <amodra@bigpond.net.au>
21736 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
21737 "nonzero" as that might add "1" bits. Ensure "constop" is
21738 properly sign extened.
21739 (force_to_mode): Tweak for sign extended constop.
21741 2002-01-22 Richard Henderson <rth@redhat.com>
21743 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
21744 for_each_rtx instead of assuming we're already looking at the MEM.
21745 (split_small_symbolic_mem_operand): Likewise.
21746 * config/alpha/alpha.h (PREDICATE_CODES): Update.
21747 * config/alpha/alpha.md (small symbolic memory splitters): Update.
21749 2002-01-22 Richard Henderson <rth@redhat.com>
21751 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
21752 sequence number for the literal.
21753 (divmoddi_internal_er): Likewise.
21755 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
21758 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
21759 in LIBICONV variable.
21760 * configure: Regenerated.
21762 2002-01-22 Krister Walfridsson <cato@df.lth.se>
21764 * dependence.c (build_def_use): Remove array_idx.
21766 * dwarfout.c (last_filename): Remove.
21767 (output_compile_unit_die): Remove last_filename.
21769 2002-01-22 Roger Sayle <roger@eyesopen.com>
21770 Richard Henderson <rth@redhat.com>
21773 * fold-const.c (fold): Optimize unsigned comparisons against
21774 UINT_MAX (and similar unsigned constants).
21776 2002-01-22 Janis Johnson <janis187@us.ibm.com>
21778 * Makefile.in (loop.o): Depend on OPTABS_H.
21779 * loop.c (emit_prefetch_instructions): Check the prefetch operand
21780 against the predicate.
21783 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
21784 for the address operand.
21786 2002-01-22 Richard Henderson <rth@redhat.com>
21788 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
21790 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
21793 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
21794 preprocessor flags.
21796 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
21798 * config.gcc (x86_64-*-netbsd*): New target.
21799 * config/i386/netbsd64.h: New file.
21801 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21803 * regrename.c (kill_value): Fix typo.
21805 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21807 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
21809 * config/rs6000/rs6000.h: Same.
21811 * function.c (instantiate_virtual_regs): Remove
21812 STARTING_FRAME_PHASE.
21813 (assign_stack_local_1): Same.
21814 Calculate frame phase.
21816 2002-01-22 Nick Clifton <nickc@redhat.com>
21818 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
21819 variable declaration to outer scope in order to simplify
21821 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
21822 arm_hard_regno_mode_ok.
21823 * config/arm/arm-protos.h: Add a prototype for
21824 arm_hard_regno_mode_ok.
21825 * config/arm/arm.c (soft_df_operand): Remove now redundant
21826 check for DImode values using IP_REGNUM.
21827 (nonimmediate_soft_df_operand): Remove now redundant check for
21828 DImode values using IP_REGNUM.
21829 (arm_hard_regno_mode_ok): New function. New check: make sure
21830 that DImode values are not stored in IP_REGNUM.
21832 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
21834 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
21836 2002-01-22 Jason Merrill <jason@redhat.com>
21838 * c-semantics.c (genrtl_compound_stmt): Only check nesting
21839 consistency if this COMPOUND_STMT is scoped.
21841 2002-01-22 Kazu Hirata <kazu@hxi.com>
21843 * predict.c: Fix formatting.
21844 * print-tree.c: Likewise.
21845 * protoize.c: Likewise.
21846 * real.h: Likewise.
21848 * sbitmap.h: Likewise.
21849 * scan.c: Likewise.
21850 * sched-deps.c: Likewise.
21851 * sched-vis.c: Likewise.
21852 * sdbout.c: Likewise.
21853 * sibcall.c: Likewise.
21855 * ssa-ccp.c: Likewise.
21856 * ssa-dce.c: Likewise.
21857 * stmt.c: Likewise.
21858 * stor-layout.c: Likewise.
21859 * system.h: Likewise.
21861 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21863 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
21864 if fits in bounds of base type.
21866 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
21867 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
21868 (add_bound_info, default): If can't find a context, make a
21870 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
21872 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
21874 * c-typeck.c (parser_build_binary_op): If result from
21875 build_binary_op is ERROR_MARK just return error_mark_node without
21876 further processing.
21878 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
21880 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
21881 Split a.out-specific bits into...
21882 * config/netbsd-aout.h: ...this.
21883 * config/netbsd-elf.h: New file.
21884 * config/alpha/netbsd-elf.h: Remove.
21885 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
21886 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
21887 (STARTFILE_SPEC): Remove redundant definition.
21888 (ENDFILE_SPEC): Likewise.
21889 (LINK_SPEC): Likewise.
21890 (CPP_SPEC): Likewise.
21891 (ASM_SPEC): Likewise.
21892 (LIB_SPEC): Likewise.
21893 (SWITCH_TAKES_ARG): Likewise.
21894 (TARGET_MEM_FUNCTIONS): Likewise.
21895 (CPP_PREDEFINES): Redefine.
21896 (ASM_FINAL_SPEC): Remove redefinition.
21897 (ASM_COMMENT_START): Redefine.
21898 (FUNCTION_PROFILER): Define.
21899 (TARGET_VERSION): Redefine.
21900 Comment and formatting cleanup.
21901 * config/i386/netbsd.h: Include <netbsd-aout.h>.
21902 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
21903 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
21904 big- or little-endian.
21905 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
21906 * config.gcc (*-*-netbsd*): Add definitions common to all
21908 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
21909 gnu_ld definitions. Add netbsd-elf.h to and remove
21910 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
21911 tmake_file, and don't lose previous tmake_file contents.
21912 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
21913 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
21914 gnu_ld definitions. Add netbsd-elf.h to tm_file.
21915 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
21916 (mipsel-*-netbsd*): Rename this to...
21917 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
21918 mips/little.h to tm_file for mips*el-*.
21919 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
21920 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
21921 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
21923 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
21925 * pa-protos.h (reg_before_reload_operand): New function prototype.
21926 * pa.c (reg_before_reload_operand): New function implementation.
21927 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
21928 contraints to "*m".
21930 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21932 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
21934 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
21936 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
21937 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
21938 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
21939 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
21940 (ENDFILE_SPEC): Undefine.
21941 (STARTFILE_SPEC): Redefine for PA.
21943 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
21945 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
21947 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
21949 * config.gcc: Add entries to supported PowerPC --with-cpu
21952 2002-01-21 Jakub Jelinek <jakub@redhat.com>
21954 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
21955 true for 64-bit mode only SSE registers in 32-bit mode.
21957 2002-01-21 Kazu Hirata <kazu@hxi.com>
21959 * unwind-dw2.c: Fix formatting.
21960 * unwind-dw2-fde.c: Likewise.
21961 * unwind-dw2-fde.h: Likewise.
21962 * unwind-pe.h: Likewise.
21963 * varasm.c: Likewise.
21964 * varray.h: Likewise.
21966 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
21968 Remove workaround for register stack overwrite bug in mmix.
21969 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
21970 support for TARGET_REG_STACK_FILL_BUG.
21971 * config/mmix/mmix.h: Remove member has_call_without_parameters.
21972 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
21974 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
21975 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
21976 -mno-reg-stack-fill-bug-workaround.
21977 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
21978 machine member has_call_without_parameters.
21979 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
21980 -mreg-stack-fill-bug-workaround and
21981 -mno-reg-stack-fill-bug-workaround.
21982 (MMIX Options): Ditto.
21984 2002-01-21 Kazu Hirata <kazu@hxi.com>
21986 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
21988 Remove redundant code.
21990 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
21992 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
21993 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
21994 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
21995 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
21996 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
21997 out target macro definitions and non-target-specific comments
21998 mostly taken from old versions of the manual.
22000 2002-01-20 Kazu Hirata <kazu@hxi.com>
22002 * config/h8300/h8300.h: Fix comment formatting.
22003 * config/ia64/aix.h: Likewise.
22004 * config/ia64/ia64-protos.h: Likewise.
22005 * config/ia64/ia64.c: Likewise.
22006 * config/ia64/ia64.h: Likewise.
22007 * config/ia64/ia64intrin.h: Likewise.
22008 * config/ia64/linux.h: Likewise.
22009 * config/ia64/unwind-aix.c: Likewise.
22010 * config/ia64/unwind-ia64.c: Likewise.
22012 2002-01-20 Kazu Hirata <kazu@hxi.com>
22014 * config/h8300/h8300.c: Revise comments about shift code.
22016 2002-01-20 Kazu Hirata <kazu@hxi.com>
22018 * config/h8300/h8300.c (function_arg): Update a comment.
22020 2002-01-20 Kazu Hirata <kazu@hxi.com>
22022 * config/h8300/h8300.md: Update the comments at the beginning
22025 2002-01-20 Kazu Hirata <kazu@hxi.com>
22027 * config/i370/i370.c: Fix comment formatting.
22028 * config/i370/i370.h: Likewise.
22029 * config/i370/i370.md: Likewise.
22030 * config/i370/linux.h: Likewise.
22032 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22034 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
22036 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
22037 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
22038 in incomplete case.
22040 2002-01-20 Graham Stott <grahams@redhat.com>
22042 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
22044 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
22046 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
22048 2002-01-19 Tom Rix <trix@redhat.com>
22050 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
22052 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
22054 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
22056 * function.c (assign_stack_local_1): Adjust x_frame_offset with
22057 STARTING_FRAME_PHASE.
22058 (STARTING_FRAME_PHASE): New.
22059 (instantiate_virtual_regs): Check saneness of
22060 STARTING_FRAME_PHASE.
22062 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
22064 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
22066 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
22068 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
22070 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
22071 be used for bootstrapping GCC 3.0.
22073 2002-01-18 Kazu Hirata <kazu@hxi.com>
22075 * config/h8300/h8300.md: Fix an insn length.
22077 2002-01-18 Kazu Hirata <kazu@hxi.com>
22079 * bitmap.h: Fix comment formatting.
22080 * combine.c: Likewise.
22081 * cppfiles.c: Likewise.
22082 * c-pragma.h: Likewise.
22083 * c-typeck.c: Likewise.
22085 * dwarf2out.c: Likewise.
22086 * function.c: Likewise.
22088 * genattrtab.c: Likewise.
22089 * gthr-win32.h: Likewise.
22090 * haifa-sched.c: Likewise.
22091 * predict.c: Likewise.
22092 * rtlanal.c: Likewise.
22094 * unwind-dw2-fde.h: Likewise.
22095 * unwind-pe.h: Likewise.
22096 * vmsdbgout.c: Likewise.
22098 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22100 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
22101 if type_required and passed decl.
22103 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
22105 * config.gcc (cpu_type): Include altivec.h in powerpc
22109 * config/rs6000/altivec.h: New.
22111 2002-01-17 David Edelsohn <edelsohn@gnu.org>
22113 * doc/install.texi (*-ibm-aix*): Update assembler and exception
22114 handling information.
22115 * doc/trouble.texi (Interoperation): Add libstdc++ information
22117 (Misunderstandings): Add template instantiation and static template
22118 member information for AIX.
22120 2002-01-17 Jason Merrill <jason@redhat.com>
22122 * dbxout.c (dbxout_type): Support const and volatile.
22124 * except.c (add_partial_entry): Remove backwards compatibility code.
22125 (end_protect_partials): Likewise.
22127 2002-01-17 Jakub Jelinek <jakub@redhat.com>
22129 * config/ia64/ia64.md (prologue_use): New.
22130 * config/ia64/ia64.c (ia64_expand_prologue): Use
22131 gen_prologue_use instead of gen_rtx_USE.
22132 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
22133 as CODE_FOR_pred_rel_mutex.
22134 (ia64_sched_reorder2): Likewise.
22136 2002-01-16 Eric Christopher <echristo@redhat.com>
22138 * config/mips/r3900.h: Reformat.
22139 (SUBTARGET_CPP_SIZE_SPEC): Remove.
22140 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
22141 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
22142 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
22143 * config/mips/t-elf: Remove mips3 multilib.
22145 2002-01-16 H.J. Lu <hjl@gnu.org>
22147 * config/mips/linux.h: Include "mips/abi64.h".
22149 2002-01-16 H.J. Lu <hjl@gnu.org>
22151 * config/mips/t-linux: New.
22153 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
22155 * config/mips/linux.h: Don't include "gofast.h".
22156 (INIT_SUBTARGET_OPTABS): Removed.
22158 2002-01-16 Kazu Hirata <kazu@hxi.com>
22160 * config/h8300/h8300-protos.h: Replace emit_a_shift with
22162 * config/h8300/h8300.c: Likewise.
22163 * config/h8300/h8300.md: Likewise.
22165 2002-01-16 Kazu Hirata <kazu@hxi.com>
22167 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
22168 spaces after an opcode name.
22169 (pushqi1_h8300hs): Likewise.
22170 (pushhi1_h8300hs): Likewise.
22172 2002-01-16 Kazu Hirata <kazu@hxi.com>
22174 * doc/extend.texi: Replace "option" with "attribute"
22177 2002-01-16 Jakub Jelinek <jakub@redhat.com>
22179 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
22180 (and:DI () (const_int -8)).
22181 (split_small_symbolic_mem_operand): Split
22182 (mem (and:DI () (const_int -8)).
22184 2002-01-16 Jakub Jelinek <jakub@redhat.com>
22187 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
22188 same way as TYPE_IMUL.
22189 (ultrasparc_sched_reorder): Likewise.
22190 * config/sparc/sparc.md (type): Add comment to update
22191 ultrasparc_sched_reorder when making changes.
22193 2002-01-16 Kazu Hirata <kazu@hxi.com>
22195 * doc/invoke.texi: Change the dump file name of block
22196 reordering pass from 28.bbro to 29.bbro.
22197 Mention -dk option.
22199 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
22201 * i386.md (minsf splitter): Fix pasto.
22203 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
22205 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
22206 to frame pointer initialisation instruction.
22207 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
22208 initialisation instruction.
22209 (soft_df_operand): Do not accept the IP register.
22210 (nonimmediate_soft_df_operand): Do not accept the IP register.
22212 2002-01-16 Jakub Jelinek <jakub@redhat.com>
22215 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
22216 MASK_V8 being both set.
22218 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
22220 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
22221 insn for GOT register; add REG_MAYBE_DEAD notes instead.
22222 config/s390/s390.md (call, call_value): Add GOT register to
22223 CALL_INSN_FUNCTION_USAGE where needed.
22224 (call_exp, call_value_exp): New.
22226 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
22228 * config/arm/arm.c: General formatting tidy up.
22230 2002-01-16 Graham Stott <grahams@redhat.com>
22232 * calls.c (try_to_integrate): Use "(size_t)" intermediate
22233 cast and when casting an integer literal to "rtx" pointer.
22234 (expand_call): Likewise.
22235 * flow.c (try_pre_increment): Likewise.
22236 (find_use_as_address): Likewise.
22237 * integrate.c (expand_iline_function): Likewise.
22238 * regmove.c (try_auto_increment): Likewise.
22240 2002-01-16 Graham Stott <grahams@redhat.com>
22242 * sched-rgn.c (passed): Use sbitmap_free.
22243 (header): Likewise.
22245 (in_queue): Likewise.
22246 (in_stack): Likewise.
22248 2002-01-15 Eric Christopher <echristo@redhat.com>
22250 * flow.c (propagate_one_insn): Change to use fatal_insn.
22252 2002-01-15 Kazu Hirata <kazu@hxi.com>
22254 * expmed.c (extract_fixed_bit_field): Remove unused code.
22255 * system.h: Poison SLOW_ZERO_EXTEND.
22256 * doc/tm.texi: Remove.
22257 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
22258 * config/arm/arm.h: Likewise.
22259 * config/avr/avr.h: Likewise.
22260 * config/clipper/clipper.h: Likewise.
22261 * config/convex/convex.h: Likewise.
22262 * config/d30v/d30v.h: Likewise.
22263 * config/dsp16xx/dsp16xx.h: Likewise.
22264 * config/elxsi/elxsi.h: Likewise.
22265 * config/fr30/fr30.h: Likewise.
22266 * config/h8300/h8300.h: Likewise.
22267 * config/i370/i370.h: Likewise.
22268 * config/i386/i386.h: Likewise.
22269 * config/m68k/m68k.h: Likewise.
22270 * config/mips/mips.h: Likewise.
22271 * config/ns32k/ns32k.h: Likewise.
22272 * config/pdp11/pdp11.h: Likewise.
22273 * config/pj/pj.h: Likewise.
22274 * config/s390/s390.h: Likewise.
22275 * config/sh/sh.h: Likewise.
22276 * config/stormy16/stormy16.h: Likewise.
22277 * config/v850/v850.h: Likewise.
22278 * config/vax/vax.h: Likewise.
22279 * config/we32k/we32k.h: Likewise.
22281 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
22283 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
22284 (altivec_lvsl): Change constraint to b.
22285 (altivec_lvsr): Same.
22286 (altivec_lvebx): Same.
22287 (altivec_lvehx): Same.
22288 (altivec_lvewx): Same.
22289 (altivec_lvxl): Same.
22290 (altivec_lvx): Same.
22291 (altivec_stvx): Add parallel.
22292 (altivec_stvxl): Same.
22293 (altivec_stvehx): Same.
22294 (altivec_stvebx): Same.
22295 (altivec_stvebx): Same.
22297 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
22299 * config.gcc: Change altivec.h to altivec-defs.h.
22301 * config/rs6000/altivec.h: Delete.
22303 * config/rs6000/altivec-defs.h: Add.
22305 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
22307 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
22310 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
22311 less than or equal to eight bytes.
22313 * vax.md (andsi3): Remove constraints and change SET destination
22314 operand type to nonimmediate_operand.
22315 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
22316 when it is a CONST_INT.
22318 2002-01-15 Jason Merrill <jason@redhat.com>
22320 * c-common.def (FILE_STMT): New code.
22321 * c-common.c (statement_code_p): It's a statement.
22322 * c-common.h (stmt_tree_s): Add x_last_filename.
22323 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
22324 (last_expr_filename): New macro.
22325 * c-semantics.c (begin_stmt_tree): Initialize it.
22326 (add_stmt): If the filename changed, also insert a
22328 (expand_stmt): Handle seeing one.
22330 2002-01-15 Eric Christopher <echristo@redhat.com>
22332 * flow.c (propagate_one_insn): Add error message and print out
22333 insn for debugging.
22335 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
22337 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
22338 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
22339 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
22340 TRAMPOLINE_ALIGNMENT.
22341 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
22343 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
22344 PCC_BITFIELD_TYPE_MATTERS.
22345 * config/interix.h (STDC_VALUE): Remove. Use
22346 STDC_0_IN_SYSTEM_HEADERS.
22347 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
22348 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
22349 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
22351 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
22353 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
22354 not work on this platform currently.
22356 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
22358 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
22359 readonly_warning in _().
22361 2002-01-15 Douglas B Rupp <rupp@gnat.com>
22363 * gcc.c (delete_if_ordinary): Backout previous change.
22365 2002-01-15 Kazu Hirata <kazu@hxi.com>
22367 * config/h8300/h8300.c (print_operand): Remove support for
22368 unused operand characters.
22370 * read-rtl.c: Fix formatting.
22371 * real.c: Likewise.
22372 * recog.c: Likewise.
22373 * regclass.c: Likewise.
22374 * regmove.c: Likewise.
22375 * reg-stack.c: Likewise.
22376 * reload1.c: Likewise.
22377 * rtlanal.c: Likewise.
22379 2002-01-15 Kazu Hirata <kazu@hxi.com>
22381 * config/i386/i386.c: Fix formatting.
22383 2002-01-15 Jakub Jelinek <jakub@redhat.com>
22385 * c-typeck.c (process_init_element): Don't save_expr
22386 COMPOUND_LITERAL_EXPR if just its initializer will be used.
22388 2002-01-15 David Edelsohn <edelsohn@gnu.org>
22390 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
22391 emit optional traceback table if optimize_size or TARGET_ELF.
22392 * config/rs6000/rs6000.md (prefetch): New.
22394 2002-01-15 Andreas Jaeger <aj@suse.de>
22396 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
22398 2002-01-15 Kazu Hirata <kazu@hxi.com>
22400 * mips-tfile.c: Fix formatting.
22402 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
22404 * unroll.c (final_reg_note_copy): Fix previous commit.
22406 2002-01-14 Kazu Hirata <kazu@hxi.com>
22408 * config/h8300/h8300-protos.h: Remove the prototype for
22410 * config/h8300/h8300.c (eq_operator): Remove.
22412 2002-01-14 Richard Henderson <rth@redhat.com>
22414 * config/i386/i386.md (prefetch): Tidy.
22415 (prefetch_3dnow): Fix locality operand.
22417 2002-01-14 Richard Henderson <rth@redhat.com>
22419 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
22420 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
22422 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
22424 * reload1.c (reload_combine): Pass reg_sum replacement through
22425 copy_rtx in loop performing multiple changes.
22427 2002-01-14 Jakub Jelinek <jakub@redhat.com>
22429 * except.c (remove_unreachable_regions): New.
22430 (free_eh_status): Clear exception_handler_labels.
22431 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
22432 (find_exception_handler_labels): Don't add the same label more than
22434 (remove_exception_handler_label): Don't die if
22435 find_exception_handler_labels hasn't been called for the current
22438 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
22440 * toplev.c (rest_of_compilation): Rebuild jump labels after
22443 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
22445 * doc/extend.texi: Move documentation of X86 built-in functions
22447 * doc/invoke.texi: From here.
22448 * doc/sourcebuild.texi: Document location of documentation for
22449 machine built-in functions.
22451 2002-01-13 Christopher Faylor <cgf@redhat.com>
22453 * cppfiles.c (TEST_THRESHOLD): New macro.
22454 (SHOULD_MMAP): Ditto.
22455 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
22458 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
22460 * unroll.c (final_reg_note_copy): Properly handle
22462 (unroll_loops): Fix LOOP_CONDITION heuristics.
22464 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
22466 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
22467 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
22469 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
22471 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
22474 2002-01-14 Tom Rix <trix@redhat.com>
22476 * config/rs6000/rs6000.md: Fix typo with sradi.
22478 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
22480 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
22481 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
22482 (clrstrdi, clrstrsi): Adapt callers.
22484 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
22486 (movti splitter): Never use register 0 as base register.
22488 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
22490 * combine.c (simplify_shift_const): Always generate new rtx
22491 for shift expression instead of reusing given expression.
22493 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22495 * config/alpha/alpha.c (alpha_expand_mov): Don't call
22496 alpha_legitimize_address unless mode is Pmode.
22498 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
22500 * doc/md.texi (Modifiers): Document the '*' constraint for the
22503 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
22504 * doc/extend.texi (Function Attributes): 'interrupt' is valid
22507 2002-01-13 Richard Henderson <rth@redhat.com>
22509 * reload.c (find_reloads): Use a hard reg destination as reload reg
22510 for an input reload of the source.
22512 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22514 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
22517 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
22519 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
22520 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
22522 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
22524 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22526 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
22528 2002-01-12 Tom Rix <trix@redhat.com>
22530 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
22533 2002-01-12 Richard Henderson <rth@redhat.com>
22535 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
22537 * doc/invoke.texi: Update Alpha options.
22539 * doc/invoke.texi: Update i386 built-in function lists.
22541 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
22543 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
22544 referencing outside.
22546 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22548 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
22549 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
22550 offsets, and change line folding.
22551 * optabs.c (expand_binop): Remove warnings.
22552 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
22554 2002-01-12 Graham Stott <grahams@redhat.com>
22556 * attribs.c (handle_deprecated_attribute): constify WHAT.
22557 * diagnostic.c (warn_deprecated_use): Add braces, fixes
22558 dangling else warning and constify WHAT.
22559 * except.h (struct function, struct inline_remap): Move
22560 struct tag forward defs before all prototypes.
22561 (duplicate_eh_regions): Whitespace.
22563 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
22565 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
22566 MODE_BASE_REG_CLASS.
22567 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
22569 2002-01-12 Richard Henderson <rth@redhat.com>
22571 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
22572 (ix86_expand_vector_move): New.
22573 (bdesc_2arg): Remove andps, andnps, orps, xorps.
22574 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
22575 Remove old prefetch builtins. Special case the logicals removed above.
22576 (ix86_expand_builtin): Likewise.
22577 (safe_vector_operand): Use V4SFmode, not TImode.
22578 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
22579 (ix86_expand_timode_binop_builtin): New.
22580 * config/i386/i386-protos.h: Update.
22581 * config/i386/i386.h (enum ix86_builtins): Update.
22582 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
22583 Use ix86_expand_vector_move in vector move expanders.
22584 (movti_internal, movti_rex64): Add xorps alternative.
22585 (sse_clrv4sf): Rename and adjust from sse_clrti.
22586 (prefetch): Don't work so hard.
22587 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
22588 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
22589 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
22591 2002-01-11 Richard Henderson <rth@redhat.com>
22593 * config/i386/mmintrin.h: New file.
22594 * config/i386/xmmintrin.h: New file.
22595 * config.gcc (i?86-*-*): Add extra_headers.
22596 * simplify-rtx.c (simplify_unary_operation): Handle saturating
22598 (simplify_binary_operation): Handle saturating arithmetic codes.
22599 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
22600 not the lowpart subreg.
22601 (ix86_expand_builtin): Return a TImode dummy register instead of 0
22603 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
22605 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22607 * conflict.c (conflict_graph_compute): Free regsets when finished.
22608 * ssa.c (compute_coalesced_reg_partition): Likewise.
22610 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22612 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
22613 every where we allocate a register.
22615 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22617 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
22618 * lcm.c (compute_earliest, compute_farthest): Likewise.
22620 2002-01-11 Janis Johnson <janis187@us.ibm.com>
22622 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
22624 2002-01-11 Janis Johnson <janis187@us.ibm.com>
22626 * doc/rtl.texi (Insns): Fix 2 typos.
22628 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
22630 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
22631 options. Use @table @gcctabopt for MMIX options. Add index
22632 entries for MMIX options. Start new paragraph with first
22633 heading of the machine-dependent options.
22635 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
22638 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
22639 * combine.c (force_to_mode): Same.
22640 * reload1.c (clear_reload_reg_in_use): Same.
22642 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
22644 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
22647 2002-01-11 Andreas Jaeger <aj@suse.de>,
22648 Brad Lucier <lucier@math.purdue.edu>
22650 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
22653 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
22655 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
22656 Protect with IN_LIBGCC.
22657 (LINK_EH_SPEC): Add required trailing space.
22659 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
22661 * c-tree.h: Move function declarations so that they are listed
22662 under the filename which contains them.
22663 (check_identifier, finish_decl_top_level,
22664 lookup_name_current_level_global, shadow_record_fields): Remove.
22666 2002-01-11 Andreas Jaeger <aj@suse.de>
22668 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
22671 2002-01-10 Richard Henderson <rth@redhat.com>
22673 * config/alpha/alpha.c (print_operand): Add 'J'.
22674 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
22675 new operand with the sequence number for the lituse. When splitting
22676 the insns, use gen_movdi_er_high_g and generate a sequence number.
22677 (gen_movdi_er_high_g): Print the sequence number if non-zero.
22679 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
22681 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
22682 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
22684 (altivec_expand_builtin): Same.
22685 (altivec_expand_stv_builtin): New.
22687 * config/rs6000/rs6000.h (rs6000_builtins): Same.
22689 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
22690 ("altivec_lvehx"): New.
22691 ("altivec_lvewx"): New.
22692 ("altivec_lvxl"): New.
22693 ("altivec_lvx"): New.
22694 ("altivec_stvx"): New.
22695 ("altivec_stvebx"): New.
22696 ("altivec_stvehx"): New.
22697 ("altivec_stvewx"): New.
22698 ("altivec_stvxl"): New.
22700 2002-01-10 Richard Henderson <rth@redhat.com>
22702 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
22703 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
22704 care not to delete instructions twice.
22706 2002-01-10 Zack Weinberg <zack@codesourcery.com>
22708 * toplev.c: Don't declare environ (it's not used anywhere).
22709 * configure.in: Don't check for declaration of environ.
22710 * config/i386/xm-mingw32.h: Don't #define environ.
22711 * config.in, configure: Regenerate.
22713 2002-01-10 Zack Weinberg <zack@codesourcery.com>
22715 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
22716 * configure: Regenerate.
22718 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
22719 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
22720 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
22722 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
22723 LIMITS_H_TEST here, not in m68k/x-next.
22724 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
22725 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
22727 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
22728 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
22729 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
22731 * config/i386/x-djgpp: Renamed i386/t-djgpp.
22732 * config/m88k/x-dolph: Renamed m88k/t-dolph.
22733 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
22734 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
22735 replacement of quadlib.asm with quadlib.c.
22737 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
22738 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
22739 config/rs6000/xm-beos.h: Delete file.
22741 * config.gcc: Update to match above changes.
22743 2002-01-10 Kazu Hirata <kazu@hxi.com>
22745 * config/h8300/h8300.h: Fix comment typos.
22746 * config/h8300/h8300.md: Likewise.
22747 * config/h8300/lib1funcs.asm: Likewise.
22749 2002-01-10 Dale Johannesen <dalej@apple.com>
22751 PR optimization/5269
22752 * unroll.c (precondition_loop_p): Make *increment be the correct
22753 sign when n_iterations known, to avoid confusing caller.
22755 2002-01-10 Kazu Hirata <kazu@hxi.com>
22757 * doc/extend.texi (deprecated): Fix a typo.
22759 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
22761 * basic-block.h (update_br_prob_note): Declare.
22762 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
22763 (try_forward_edges): Care negative frequencies and update note.
22764 (outgoing_edges_match): Tweek conditional merging heuristics.
22765 (try_crossjump_to_edge): use update_br_prob_note.
22766 * cfglayout.c (fixup_reorder_chain): Likewise.
22767 * cfrtl.c (update_br_prob_note): New.
22768 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
22770 * i386.c (ix86_decompose_address): Return -1 if address contains
22772 (legitimate_address_p): Require ix86_decompose_address to return 1.
22774 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
22775 (cprop_insn): Likewise.
22777 2002-01-10 Kazu Hirata <kazu@hxi.com>
22779 * toplev.c: Fix formatting.
22780 * tree.c: Likewise.
22781 * tree-dump.c: Likewise.
22782 * unroll.c: Likewise.
22783 * unwind-dw2.c: Likewise.
22784 * unwind-dw2-fde.c: Likewise.
22785 * unwind-dw2-fde-glibc.c: Likewise.
22786 * unwind-sjlj.c: Likewise.
22788 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
22790 * doc/invoke.texi: Document PDP-11 options.
22792 2002-01-10 Kazu Hirata <kazu@hxi.com>
22794 * config/h8300/h8300.h: Fix formatting.
22796 2002-01-10 Ira Ruben <ira@apple.com>
22798 Add __attribute__ ((deprecated)).
22799 * extend.texi: Document __attribute__ ((deprecated)).
22800 * invoke.texi: Document -Wno-deprecated-declarations.
22801 * testsuite/g++.dg/other/deprecated.C: New C++ test.
22802 * testsuite/gcc.dg/deprecated.c: New C test.
22803 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
22804 (c_common_attribute_table): Add "deprecated" entry.
22805 (handle_deprecated_attribute): New function.
22806 * c-decl.c (deprecated_states): New enum.
22807 deprecated_state: State of "deprecated" handling.
22808 (start_decl): Set deprecated_state based on attributes.
22809 (grokdeclarator): Test for deprecated uses, propagate attribute.
22810 * c-typeck.c (build_component_ref): Test for deprecated fields.
22811 (build_external_ref): Test for deprecated primaries.
22812 * diagnostic.c (warn_deprecated_use) New function to issue
22813 warnings about __attribute__ ((depricated)) references.
22814 * flags.h (warn_deprecated_decl): Extern declared for
22815 -W[no-]deprecated-declarations option.
22816 * print-tree.c (print_node): Show deprecated flag status.
22817 * toplev.c (warn_deprecated_decl): Defined.
22818 (W_options): Added "deprecated-declaration".
22819 * toplev.h (warn_deprecated_use): Extern declared.
22820 * tree.h (struct tree_common): Define deprecated_flag.
22821 (TREE_DEPRECATED): New macro to access flag.
22822 * cp/call.c (build_call): Test for deprecated calls.
22823 * cp/class.c (add_implicitly_declared_members): Set global
22824 flag to tell grokdeclarator to not issue deprecated warnings.
22825 * cp/cp-tree.h: Add extern for adding_implicit_members.
22826 * cp/decl.c (deprecated_states): New enum.
22827 (start_decl): Set deprecated_state based on attributes.
22828 (grokdeclarator): Test for deprecated uses, propagate attribute.
22829 * cp/lex.c (do_identifier): Test for deprecated primaries.
22830 * cp/typeck.c (build_component_ref): Test for deprecated fields.
22832 2002-01-10 Ira Ruben <ira@apple.com>
22834 Fix to assign attributes to inline member functions.
22835 * cp/decl.c (start_method): Handle attrlist.
22837 2002-01-10 Kazu Hirata <kazu@hxi.com>
22839 * combine.c (expand_field_assignment): Use subreg_lsb().
22841 2002-01-10 David Edelsohn <edelsohn@gnu.org>
22843 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
22844 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
22845 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
22846 Recurse for any operand of AND as long as constant is non-zero.
22848 2002-01-10 Kazu Hirata <kazu@hxi.com>
22850 * config/h8300/h8300.md: Remove constraints from expanders.
22852 2002-01-10 Kazu Hirata <kazu@hxi.com>
22854 * varasm.c: Fix formatting.
22855 * varray.c: Likewise.
22856 * vmsdbgout.c: Likewise.
22857 * xcoffout.c: Likewise.
22859 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
22861 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
22862 update edge probabilities to match.
22864 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
22866 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
22868 * doc/languages.texi, doc/sourcebuild.texi: New files.
22869 * doc/configfiles.texi: Make a subsubsection. Update.
22870 * doc/configterms.texi: Add @node. Remove warning that this isn't
22871 instructions for building GCC.
22872 * doc/makefile.texi: Make a subsection.
22873 * doc/gccint.texi: Update.
22875 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
22877 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
22879 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
22881 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
22883 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
22885 * optabs.c (expand_fix): Look for wider integer modes first.
22887 * i386.md (mov?f): Avoid the fake const double trick for medium
22889 (min?f*/max?f*): Prohibit memory operands for i387 variant.
22890 (fop_df_4): Disable for SSE compilation.
22892 2002-01-10 Graham Stott <grahams@redhat.com>
22894 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
22895 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
22897 2002-01-10 Richard Henderson <rth@redhat.com>
22899 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
22901 2002-01-10 Richard Henderson <rth@redhat.com>
22903 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
22904 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
22906 2002-01-10 Kazu Hirata <kazu@hxi.com>
22908 * combine.c (can_combine_p): Fix a comment typo.
22910 2002-01-09 Zack Weinberg <zack@codesourcery.com>
22912 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
22913 empty list correctly. Change loop index $t to $f for
22914 consistency with rest of Makefile.
22916 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
22918 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
22919 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22921 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
22922 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
22923 (altivec_init_builtins): Same.
22924 (altivec_expand_unop_builtin): Return NULL_RTX on error.
22925 (altivec_expand_binop_builtin): Same.
22926 (altivec_expand_ternop_builtin): Same.
22929 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
22930 ("altivec_vctuxs"): Fix typo.
22931 ("altivec_vnmsubfp"): Same.
22932 ("altivec_dssall"): New.
22933 ("altivec_mfvscr"): New.
22934 ("altivec_dss"): New.
22935 ("altivec_lvsl"): New.
22936 ("altivec_lvsr"): New.
22937 ("altivec_dstt"): New.
22938 ("altivec_dstst"): New.
22939 ("altivec_dststt"): New.
22940 ("altivec_dst"): New.
22942 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
22943 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
22945 2002-01-09 Richard Henderson <rth@redhat.com>
22947 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
22949 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
22951 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
22953 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
22955 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
22957 2002-01-09 Kazu Hirata <kazu@hxi.com>
22959 * read-rtl.c: Fix formatting.
22960 * real.c: Likewise.
22961 * regclass.c: Likewise.
22962 * regrename.c: Likewise.
22963 * reg-stack.c: Likewise.
22964 * reload1.c: Likewise.
22965 * reload.c: Likewise.
22968 2002-01-09 Kazu Hirata <kazu@hxi.com>
22970 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
22971 to extract items in the expr_list chain.
22973 2002-01-09 Richard Henderson <rth@redhat.com>
22975 * config/vax/vax.c (vax_rtx_cost): Never abort.
22977 * config/vax/vax.h (REAL_ARITHMETIC): Define.
22979 2002-01-09 Jan Hubicka <jh@suse.cz>
22981 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
22983 2002-01-09 Richard Henderson <rth@redhat.com>
22985 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
22986 Unify code from various alternatives.
22988 2002-01-09 Richard Henderson <rth@redhat.com>
22990 * regrename.c (copy_value): Ignore the copy if the source register
22991 is present in the value chain with a narrower mode.
22993 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22995 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
22996 for the c4x target. Also improve layout.
22998 2002-01-09 Richard Henderson <rth@redhat.com>
23000 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
23001 * config/m32r/m32r.md (and ior xor splitters): Swap operands
23002 to match insn patterns.
23004 2002-01-09 Richard Henderson <rth@redhat.com>
23006 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
23007 (copyprop_hardreg_forward_1): Likewise.
23009 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
23011 * pa.md (decrement_and_branch_until_zero): Change predicate for
23012 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
23014 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
23016 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
23017 gets undefined. For Darwin.
23019 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
23021 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
23023 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23025 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
23027 2002-01-08 Richard Henderson <rth@redhat.com>
23029 * regrename.c (copy_value): Ignore overlapping copies.
23031 2002-01-08 Richard Henderson <rth@redhat.com>
23033 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
23034 as needed to avoid shared structure.
23036 2002-01-08 Kazu Hirata <kazu@hxi.com>
23038 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
23041 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
23043 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
23044 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
23045 documentation of obsolete macros.
23046 * system.h: Poison these macros.
23047 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
23048 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
23049 config/c4x/c4x.h, config/clipper/clipper.h,
23050 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
23051 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
23052 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
23053 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
23054 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
23055 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
23056 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
23057 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
23058 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
23059 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
23060 config/sparc/sparc.h, config/stormy16/stormy16.h,
23061 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
23062 definitions and commented out definitions of obsolete macros.
23063 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
23064 of MAX_INT_TYPE_SIZE.
23066 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
23068 * config/s390/s390.c (s390_preferred_reload_class): Never
23069 return ADDR_REGS if it isn't a subset of the given class.
23070 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
23071 FP_REGS, but all superclasses as well.
23073 * config/s390/s390.c (s390_function_profiler): Fix thinko.
23075 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
23076 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
23077 must not be a const_int.
23079 2002-01-08 Richard Henderson <rth@redhat.com>
23081 * Makefile.in (toplev.o): Depend on options.h.
23082 (gcc.o): Depend on specs.h.
23084 2002-01-08 Jakub Jelinek <jakub@redhat.com>
23086 * expr.c (store_expr): Convert VOIDmode constants back to target's
23089 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
23091 * doc/invoke.texi: Markup gcc as @command. Refer to
23092 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
23093 of http://gcc.gnu.org/thanks.html.
23095 2002-01-08 Dale Johannesen <dalej@apple.com>
23097 * config/rs6000/rs6000.md: Add missing int register
23098 target case to movdf_low.
23100 2002-01-08 Zack Weinberg <zack@codesourcery.com>
23102 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
23103 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
23104 (cppinit.o): Depend on except.h.
23105 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
23106 s-specs): New rules.
23108 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
23109 Don't create specs.h/options.h/gencheck.h here. Remove
23110 unnecessary variable settings from last argument of AC_OUTPUT.
23111 * config.in, configure: Regenerate.
23112 * intl.c: Hardcode package name as "gcc".
23114 * cppinit.c: Include except.h.
23115 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
23117 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
23118 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
23119 (!)USING_SJLJ_EXCEPTIONS.
23120 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
23122 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
23124 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
23125 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
23126 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
23127 documentation of obsolete macros.
23128 * system.h: Poison these macros.
23129 * config/d30v/d30v.h, config/ns32k/encore.h,
23130 config/stormy16/stormy16.h: Remove definitions and commented out
23131 definitions of obsolete macros.
23133 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
23135 * objc/objc-act.c (handle_class_ref): Mark the declaration of
23136 %sobjc_class_ref_%s as used - to prevent unwanted compiler
23139 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
23141 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
23142 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
23143 to insn adjusting stack/frame pointer.
23144 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
23145 accept operands that cause the insn to be non-splittable.
23147 2002-01-08 Graham Stott <grahams@redhat.com>
23149 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
23150 (C_TYPE_FIELDS_VOLATILE): Likewise.
23151 (C_TYPE_BEING_DEFINED): Likewise.
23152 (C_IS_RESERVED_WORD): Likewise.
23153 (C_TYPE_VARIABLE_SIZE): Likewise.
23154 (C_DECL_VARIABLE_SIZE): Likewise.
23155 (C_MISSING_PROTOTYPE_WARNED): Likewise.
23156 (C_SET_EXP_ORIGINAL_CODE): Likewise.
23157 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
23159 (C_DECL_ANTICIPATED): Likewise.
23160 (c_build_type_variant): Add parenthesis.
23162 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
23164 * gcc.c (option_map): Remove --version.
23165 (process_command): Handle -fversion following the GNU Coding
23166 Standards. Partially addresses PR other/704.
23168 2002-01-08 Graham Stott <grahams@redhat.com>
23170 * combine.c (combine_instructions): Fix typo.
23172 2002-01-08 Graham Stott <grahams@redhat.com>
23174 * debug.h: Use "tree" and "rtx" throughout.
23176 * debug.c: Likewise.
23178 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
23180 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
23181 constant pool, use the pool's version of the symbol instead.
23183 2002-01-07 Richard Henderson <rth@redhat.com>
23185 * regrename.c (find_oldest_value_reg): Ignore the value chain if
23186 the original register was copied in a mode with a fewer number of
23187 hard registers than the desired mode.
23188 (copyprop_hardreg_forward_1): Likewise.
23189 (debug_value_data): Fix loop test.
23190 * toplev.c (parse_options_and_default_flags): Reenable
23191 -fcprop-registers at -O1.
23193 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
23195 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
23196 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
23198 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
23201 * config/rs6000/rs6000.md: Add altivec predicate patterns.
23203 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
23205 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
23206 (pa_output_function_prologue): Output local label at the beginning of
23207 the prologue when profiling.
23208 (hppa_profile_hook): Use the local label rather than the function label.
23209 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
23211 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
23213 * config/rs6000/rs6000.c (print_operand): Remove extra space.
23214 (altivec_expand_unop_builtin): Fix thinko.
23215 (altivec_expand_binop_builtin): Same.
23216 (altivec_expand_ternop_builtin): Same.
23217 (altivec_expand_builtin): Same.
23219 2002-01-07 Richard Henderson <rth@redhat.com>
23221 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
23223 2002-01-07 Jason Merrill <jason@redhat.com>
23225 * unwind-dw2.c (execute_cfa_program): Use < again.
23227 2002-01-07 Jakub Jelinek <jakub@redhat.com>
23229 * predict.c (combine_predictions_for_insn): Avoid division by zero.
23231 2002-01-07 Jakub Jelinek <jakub@redhat.com>
23233 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
23234 Don't allow -1 - x -> ~x simplifications in the first pass.
23236 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
23238 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
23240 (altivec_expand_binop_builtin): Same.
23241 (altivec_expand_unop_builtin): Same.
23242 (print_operand): Fix typo.
23243 (bdesc_1arg): Add vupk* variants.
23245 * rs6000.h (rs6000_builtins): Add vupk* enums.
23247 * rs6000.md: Add altivec_vupk* variants.
23249 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
23251 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
23252 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
23253 and last update dates.
23255 2002-01-07 Janis Johnson <janis187@us.ibm.com>
23257 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
23259 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
23261 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
23262 * config/avr/avr.h (CPP_SPEC): Likewise.
23263 (LINK_SPEC): Likewise.
23264 (CRT_BINUTILS_SPECS): Likewise.
23265 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
23266 * doc/invoke.texi (AVR Options): Document them.
23268 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
23270 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
23273 2002-01-07 Graham Stott <grahams@redhat.com>
23275 * config/i386/i386.h: Update copyright date.
23276 (HALF_PIC_PTR): Add parenthesis.
23277 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
23278 (CONSTANT_ALIGNMENT): Add parenthesis.
23279 (DATA_ALIGNMENT): Likewise.
23280 (LOCAL_ALIGNMENT): Likewise.
23281 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
23282 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
23283 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
23284 (HARD_REGNO_NREGS): Add paranethesis.
23285 (VALID_SSE_REG_MODE): Whitespace.
23286 (VALID_MMX_REG_MODE): Whitespace.
23287 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
23288 (ix86_hard_regno_mode_ok): Add parenthesis.
23289 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
23290 (RETURN_IN_MEMORY): Whitespace.
23291 (N_REG_CLASSES): Add parenthesis.
23292 (INTEGER_CLASS_P): Add parenthesis and wrap.
23293 (FLOAT_CLASS_P): Likewise.
23294 (SSE_CLASS_P): Likewise.
23295 (MMX_CLASS_P): Likewise.
23296 (MAYBE_INTEGER_CLASS_P): Likewise.
23297 (MAYBE_FLOAT_CLASS_P): Likewise.
23298 (MAYBE_SSE_CLASS_P): Likewise.
23299 (MAYBE_MMX_CLASS_P): Likewise.
23300 (Q_CLASS_P): Likewise.
23301 (GENERAL_REGNO_P): Uppercase macro parameter.
23302 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
23303 (FP_REGNO_P): Likewise.
23304 (ANY_FP_REGNO_P): Uppercase macro parameter.
23305 (SSE_REGNO_P): Likewise.
23306 (SSE_REGNO): Likewise.
23307 (SSE_REG_P): Likewise.
23308 (SSE_FLOAT_MODE_P): Likewise.
23309 (MMX_REGNO_P): Likewise.
23310 (MMX_REG_P):Likewise.
23311 (STACK_REG_P): Likewise.
23312 (NON_STACK_REG_P): Likewise.
23313 (STACK_TOP_P): Likewise.
23314 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
23315 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
23316 (SECONDARY_MEMORY_NEEDED): Likewise.
23317 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
23318 (MD_ASM_CLOBBERS): Whitespace and wrap.
23319 (MUST_PASS_IN_STACK): Whitespace and wrap.
23320 (RETURN_POPS_ARGS): Add parenthesis.
23321 (INIT_CUMULATIVE_ARGS): Likewise.
23322 (FUNCTION_ARG): Likewise.
23323 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
23324 (SETUP_INCOMING_VARARGS): Likewise.
23325 (BUILD_VA_LIST_TYPE): Add parenthesis.
23326 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
23328 (EXPAND_BUILTIN_VA_ARG): Likewise.
23329 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
23330 (INITIALIZE_TRAMPOLINE): Add parenthesis.
23331 (INITIAL_ELIMINATION_OFFSET): Likewise.
23332 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
23333 (REGNO_OK_FOR_BASE_P): Likewise.
23334 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
23335 (REGNO_OK_FOR_DIREG_P): Likewise.
23336 (REG_OK_FOR_INDEX_P): Whitespace.
23337 (REG_OK_FOR_BASE_P): Whitespace.
23338 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
23340 (FIND_BASE_TERM): Fix typo.
23341 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
23342 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
23343 (SYMBOLIC_CONST; Whitespace.
23344 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
23345 (ENCODE_SECTION_INFO): Whitespace.
23346 (FINALIZE_PIC): Remove do { ... } while (0).
23347 (PROMOTE_MODE): Wrap in do { ... } while (0).
23348 (CONST_COSTS): Whitespace.
23349 (RTX_COSTS): Add paramethesis, whitespace and wrap.
23350 (REGISTER_MOVE_COST): Add parenthesis.
23351 (MEMORY_MOVE_COST): Likewise.
23352 (EXTRA_CC_MODES): Whitespace.
23353 (SELECT_CC_MODE): Add parenthesis and whitespace.
23354 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
23355 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
23356 (ASM_OUTPUT_LABEL): Add paramethesis.
23357 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
23358 (ASM_OUTPUT_REG_POP): Likewise.
23359 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
23360 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
23362 * config/i386/i386.c: Update copyright.
23363 (CHECK_STACK_LIMIT): Add parenthesis.
23364 (AT_BP): Uppercase macro parameter.
23365 (x86_64_int_parameter_registers): Constify.
23366 (x86_64_int_return_registers): Likewise.
23367 (ix86_compare_op0): Use rtx.
23368 (construct_container): Constify INTREG parameter.
23369 (function_arg): Use rtx.
23371 * diagnostic.h: Update copyright date.
23372 (output_buffer_state): Add parenthesis.
23373 (output_buffer_format_args): Likewise.
23375 * combine.c (combine_instructions): Replace XEXP (links, 0)
23378 2002-01-06 H.J. Lu <hjl@gnu.org>
23380 * cfgcleanup.c (thread_jump): Fix 2 typos.
23382 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
23384 * config.gcc: Add support for --enable-altivec.
23386 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
23388 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
23390 2002-01-06 Jakub Jelinek <jakub@redhat.com>
23392 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
23393 __objc_class_name_*.
23395 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
23397 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
23399 2002-01-06 Richard Henderson <rth@redhat.com>
23401 * reorg.c (emit_delay_sequence): Remove death notes, not merely
23402 nop them out. Increment label reference count for REG_LABEL.
23403 (fill_slots_from_thread): Frob label reference count around
23404 delete_related_insns.
23406 2002-01-05 Richard Henderson <rth@redhat.com>
23408 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
23411 2002-01-05 Richard Henderson <rth@redhat.com>
23413 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
23414 * integrate.c (output_inline_function): Likewise.
23415 * toplev.c (rest_of_compilation): Do it here instead. Move call
23416 to remove_unnecessary_notes after emitting abstract instance.
23417 Force an emitted nested function to have its parent emited as well.
23418 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
23420 (rtl_for_decl_location): Do not look at reload data structures
23421 before reload has run.
23423 2002-01-05 Kazu Hirata <kazu@hxi.com>
23425 * cse.c: Fix formatting.
23426 * dwarf2asm.c: Likewise.
23427 * dwarf2out.c: Likewise.
23428 * explow.c: Likewise.
23429 * expmed.c: Likewise.
23430 * function.c: Likewise.
23431 * gcov.c: Likewise.
23432 * gencheck.c: Likewise.
23433 * genrecog.c: Likewise.
23434 * ggc-common.c: Likewise.
23435 * ggc-page.c: Likewise.
23436 * global.c: Likewise.
23438 2002-01-05 Kazu Hirata <kazu@hxi.com>
23440 * combine.c: Fix formatting.
23442 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
23445 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
23447 2002-01-05 David Edelsohn <edelsohn@gnu.org>
23449 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
23450 as 1 for __powerpc64__ as well.
23452 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
23454 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
23457 2002-01-05 Daniel Berlin <dan@dberlin.org>
23459 * lcm.c: Revert change, due to performance regression it causes on
23460 SPEC because it's slightly more conservative (sigh, I hate
23463 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
23465 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
23467 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
23469 * doc/cppinternals.texi: Update.
23471 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
23473 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
23474 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
23476 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
23477 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
23478 kludge for pre-october-14th mmix versions to handle new-found bug
23479 with PUSHJ/PUSHGO and the register stack.
23480 * config/mmix/mmix.h (struct machine_function): Rename member
23481 has_call_value_without_parameters to has_call_without_parameters.
23482 All referers changed.
23483 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
23484 TARGET_MASK_BRANCH_PREDICT): New macros.
23485 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
23486 -mno-reg-stack-fill-bug-workaround.
23487 * config/mmix/mmix.md ("call"): Set struct machine member
23488 has_call_without_parameters.
23490 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
23492 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
23494 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
23496 * cfgcleanup.c: Include tm_p.h
23497 (mark_effect): Fix handling of hard register; fix handling of SET
23499 2002-01-04 Kazu Hirata <kazu@hxi.com>
23501 * config/h8300/h8300.md (anonymous patterns): Check that
23502 operands are registers before using REGNO on them.
23504 2002-01-03 Roland McGrath <roland@frob.com>
23506 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
23508 2002-01-04 Jakub Jelinek <jakub@redhat.com>
23510 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
23511 * c-common.h (genrtl_expr_stmt_value): Likewise.
23512 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
23513 (expand_expr_stmt_value): Add maybe_last argument.
23514 Don't warn about statement with no effect if it is the last statement
23515 in expression statement.
23516 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
23517 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
23518 expand_expr_stmt_value.
23519 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
23520 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
23521 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
23522 as maybe_last to expand_expr_stmt_value.
23524 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
23526 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
23527 be passed in, do not build it.
23528 (c_begin_if_stmt): New function.
23529 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
23530 * c-common.h (c_expand_start_cond): Update prototype.
23531 (c_begin_if_stmt): Prototype new function.
23532 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
23533 * c-parse.in (if_prefix): Use c_begin_if_stmt,
23534 c_begin_while_stmt and c_finish_while_stmt_cond.
23536 2002-01-04 William Cohen <wcohen@redhat.com>
23538 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
23539 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
23540 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
23541 * config/pa/som.h (ASM_FILE_START): Likewise.
23543 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
23545 * lcm.c: Include df.h.
23546 Add available_transfer_function prototype.
23547 (compute_available): Rework to use iterative dataflow framework.
23548 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
23549 with bb_info in df.h
23550 (available_transfer_function): New function.
23552 * Makefile.in (lcm.o): add df.h to dependencies.
23554 2002-01-04 Richard Henderson <rth@redhat.com>
23556 * config/alpha/alpha.c (some_operand): Accept HIGH.
23557 (input_operand): Likewise; accept simple references to globals.
23558 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
23559 (alpha_const_double_ok_for_letter_p): Likewise.
23560 (alpha_extra_constraint): Likewise.
23561 (alpha_preferred_reload_class): Likewise. Do not force
23562 symbolic constants to memory.
23563 (alpha_legitimate_address_p): Accept simple references
23564 to small_symbolic_operand.
23565 (alpha_legitimize_address): New arg scratch. Be prepared to be
23566 called when no_new_pseudos. Emit simple symbolic references.
23567 Split integers into low, high, and rest.
23568 (alpha_expand_mov): Use alpha_legitimize_address.
23569 (some_small_symbolic_mem_operand): New.
23570 (split_small_symbolic_mem_operand): New.
23571 * config/alpha/alpha-protos.h: Update.
23572 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
23573 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
23574 (EXTRA_CONSTRAINT): Likewise.
23575 (PREFERRED_RELOAD_CLASS): Likewise.
23576 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
23577 (PREDICATE_CODES): Update.
23578 * config/alpha/alpha.md: New post-reload splitters to convert
23579 simplfied symbolic operands to the form that references $29.
23580 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
23581 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
23583 2002-01-03 Richard Henderson <rth@redhat.com>
23585 * local-alloc.c (function_invariant_p): Update commentary.
23587 2002-01-04 H.J. Lu <hjl@gnu.org>
23589 * toplev.c (rest_of_compilation): Fix a typo when calling
23592 2002-01-03 Kazu Hirata <kazu@hxi.com>
23594 * c-common.c: Fix formatting.
23595 * diagnostic.c: Likewise.
23596 * doloop.c: Likewise.
23597 * dwarf2out.c: Likewise.
23599 2002-01-03 Kazu Hirata <kazu@hxi.com>
23601 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
23602 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
23604 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
23606 * cpperror.c: Update comments and copyright.
23607 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
23608 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
23610 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
23612 * collect2.c (main): Use strcmp when testing for "-shared".
23614 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
23616 * cppmacro.c: Don't include intl.h. Update comments.
23617 (new_number_token): Allocate enough buffer for 64-bit unsigned
23618 integers; update prototype.
23619 * cppmain.c: Update comments.
23621 2002-01-03 William Cohen <wcohen@redhat.com>
23623 * function.h (struct function): Add profile.
23624 (current_function_profile): New.
23625 doc/extend.texi: Update documentation.
23626 * final.c (final_start_function): Use current_function_profile
23627 instead of profile_flag.
23628 (profile_after_prologue): Likewise.
23629 * function.c (expand_function_start): Likewise.
23630 (expand_function_start): Likewise.
23631 * config/alpha/alpha.c (direct_call_operand):
23632 (alpha_does_function_need_gp): Likewise.
23633 (alpha_expand_prologue): Likewise.
23634 * config/arm/arm.c (arm_expand_prologue): Likewise.
23635 thumb_expand_prologue: Likewise.
23636 * config/d30v/d30v.c (d30v_stack_info): Likewise.
23637 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
23638 (fr30_expand_prologue): Likewise.
23639 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
23640 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
23641 * config/i386/i386.h (FINALIZE_PIC): Likewise.
23642 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
23643 * config/i960/i960.c (i960_output_function_prologue): Likewise.
23644 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
23645 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
23646 (m32r_expand_prologue): Likewise.
23647 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
23648 (m88k_expand_prologue): Likewise.
23649 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
23650 * config/mips/mips.c (compute_frame_size): Likewise.
23651 (mips_expand_prologue): Likewise.
23652 (mips_can_use_return_insn): Likewise.
23653 * config/pa/elf.h (ASM_FILE_START): Likewise.
23654 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
23655 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
23656 * config/pa/som.h (ASM_FILE_START): Likewise.
23657 * config/romp/romp.c (romp_using_r14): Likewise.
23658 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
23659 (rs6000_stack_info): Likewise.
23660 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
23661 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
23662 * config/v850/v850.c (compute_register_save_size): Likewise.
23664 2002-01-03 Jakub Jelinek <jakub@redhat.com>
23666 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
23667 gen_lowpart_common fails, use gen_lowpart_SUBREG.
23669 2002-01-03 Turly O'Connor <turly@apple.com>
23671 * darwin.c (machopic_output_possible_stub_label): Don't generate
23672 stub routines for pseudo-stubs which we've just defined.
23674 2002-01-03 Kazu Hirata <kazu@hxi.com>
23676 * builtins.c: Fix formatting.
23677 * c-typeck.c: Likewise.
23678 * combine.c: Likewise.
23679 * expr.c: Likewise.
23680 * loop.c: Likewise.
23682 2002-01-03 Andreas Schwab <schwab@suse.de>
23684 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
23685 and return true if _cpp_push_next_buffer pushed a new include
23687 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
23688 _cpp_pop_file_buffer did not push a new file.
23689 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
23691 2002-01-02 Eric Christopher <echristo@redhat.com>
23693 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
23694 FIND_REG_INC_NOTE call. Update copyright.
23695 * loop.c (canonicalize_condition): Ditto.
23696 * reorg.c (delete_scheduled_jump): Ditto.
23698 2002-01-03 Kazu Hirata <kazu@hxi.com>
23700 * gcse.c: Fix formatting.
23702 2002-01-03 Graham Stott <grahams@redhat.com>
23704 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
23705 forward defs for struct tags rtx_def, union_tree, rtvec_def
23706 also output corresponding typedefs for rtx, tree, and rtvec.
23708 * system.h: Move forward defs for struct tags rtx_def, union_tree,
23709 rtvec_def along with corresponding typedefs for rtx, tree, and
23710 rtvec to config.h, hconfig.h, tconfig.h.
23712 2002-01-03 Graham Stott <grahams@redhat.com>
23714 * tree.h: Update copyright date.
23715 (IS_EXPR_CODE_CLASS): Add parenthesis.
23716 (TREE_SET_CODE): Add whitespace.
23717 (TREE_CHECK): Add parenthesis.
23718 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
23719 (CST_OR_CONSTRUCTOR_CHECK):
23720 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
23721 (TREE_SYMBOL_REFERENCED): Whitespace.
23722 (INT_CST_LT): Likewise.
23723 (INT_CST_LT_UNSIGNED): Likewise.
23724 (tree_real_cst): Unwrap comment.
23725 (tree_string): Likewise.
23726 (tree_complex): Likewise.
23727 (IDENTIFIER_POINTER): correct cast.
23728 (SAVE_EXPR_CONTEXT): Whitespace.
23729 (EXPR_WFL_FILENAME_NODE): Likewise.
23730 (EXPR_WFL_FILENAME): Remove parenthesis.
23731 (DECL_ORIGIN): Add parenthesis.
23732 (DECL_FROM_INLINE): Use NULL_TREE.
23733 (build_int_2): Whitespace.
23734 (build_type_variant): Add parenthesis.
23736 * gcc/jcf-parse.c: Update copyright date.
23737 (yyparse): Constify resource_filename.
23739 2002-01-03 Graham Stott <grahams@redhat.com>
23741 * rtl.h: Update copyright date.
23742 (RTL_CHECK1): Wrap long line.
23743 (RTL_CHECK2): Likewise.
23744 (RTL_CHECKC1): Wrap long line and whitespace.
23745 (RTL_CHECKC2): Likewise.
23746 (XWINT): Whitespace.
23752 (XBITMAP): Likewise.
23754 (XBBDEF): Likewise.
23756 (X0WINT): Likewise.
23758 (X0UINT): Likewise.
23762 (X0MODE): Likewise.
23763 (X0BITMAP): Likewise.
23764 (X0TREE): Likewise.
23765 (X0BBDEF): Likewise.
23766 (X0ADVFLAGS): Likewise.
23767 (X0CSELIB): Likewise.
23768 (X0MEMATTR): Likewise.
23769 (XCWINT): Likewise.
23771 (XCUINT): Likewise.
23775 (XCMODE): Likewise.
23776 (XCBITMAP): Likewise.
23777 (XCTREE): Likewise.
23778 (XCBBDEF): Likewise.
23779 (XCADVFLAGS): Likewise.
23780 (XCCSELIB): Likewise.
23781 (XC2EXP): Likewise.
23782 (INSN_UID): Likewise.
23783 (PREV_INSN): Likewise.
23784 (PATTERN): Likewise.
23785 (INSN_CODE): Likewise.
23786 (PUT_REG_NOTE_KIND): Likewise.
23787 (CODE_LABEL_NUMBER): Likewise.
23788 (NOTE_SOURCE_FILE): Likewise.
23789 (NOTE_BLOCK): Likewise.
23790 (NOTE_EH_HANDLER): Likewise.
23791 (NOTE_RANGE_INFO): Likewise.
23792 (NOTE_LIVE_INFO): Likewise.
23793 (NOTE_BASIC_BLOCK): Likewise.
23794 (NOTE_EXPECTED_VALUE): Likewise.
23795 (NOTE_LINE_NUMBER): Likewise.
23796 (LABEL_NAME): Likewise.
23797 (LABEL_NUSES): Likewise.
23798 (LABEL_ALTERNATE_NAME): Likewise.
23799 (ADDRESSOF_DECL): Likewise.
23800 (JUMP_LABEL): Likewise.
23801 (LABEL_NEXTREF): Likewise.
23803 (ORIGINAL_REGNO: Likewise.
23804 (HARD_REGISTER_NUM_P): Add parenthesis.
23805 (SUBREG_REG): Whitespace.
23806 (SUBREG_BYTE): Likewise.
23807 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
23808 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
23809 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
23810 (ASM_OPERANDS_INPUT_VEC): Likewise.
23811 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
23812 (ASM_OPERANDS_INPUT): Likewise.
23813 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
23814 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
23815 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
23816 (ASM_OPERANDS_INPUT_MODE): Likewise.
23817 (ASM_OPERANDS_SOURCE_FILE): Likewise.
23818 (ASM_OPERANDS_SOURCE_LINE): Likewise.
23819 (MEM_SET_IN_STRUCT_P): Minor reformat.
23820 (TRAP_CONDITION): Whitespace.
23821 (TRAP_CODE): Likewise.
23822 (COND_EXEC_TEST): Likewise.
23823 (COND_EXEC_CODE): Likewise.
23824 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
23825 (PHI_NODE_P): Add parenthesis.
23826 (plus_constant): Whitespace and add parenthesis.
23828 2002-01-03 Kazu Hirata <kazu@hxi.com>
23830 * config/avr/avr.c: Fix comment typos.
23831 * config/c4x/c4x.md: Likewise.
23832 * config/dsp16xx/dsp16xx.h: Likewise.
23833 * config/dsp16xx/dsp16xx.md: Likewise.
23834 * config/i386/i386.md: Likewise.
23835 * config/ia64/ia64.c: Likewise.
23836 * config/m32r/m32r.h: Likewise.
23837 * config/m68hc11/m68hc11.md: Likewise.
23838 * config/mmix/mmix.c: Likewise.
23839 * config/mn10200/mn10200.c: Likewise.
23840 * config/romp/romp.c: Likewise.
23841 * config/sh/sh.c: Likewise.
23842 * config/stormy16/stormy16.c: Likewise.
23843 * config/stormy16/stormy16.h: Likewise.
23844 * config/stormy16/stormy16.md: Likewise.
23846 2002-01-03 Graham Stott <grahams@redhat.com>
23848 * loop.h: Update copyright date.
23849 (LOOP_MOVABLES): Fix typo.
23850 (LOOP_REGS): Likewise.
23851 (LOOP_IVS): Likewise.
23853 2002-01-03 Graham Stott <grahams@redhat.com>
23855 * cppinit.c: Update copyright date.
23856 Don't include output.h
23857 * Makefile.in: Update copyright date.
23860 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
23863 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
23864 (-pthread) Add to RS/6000 options.
23866 2002-01-02 Kazu Hirata <kazu@hxi.com>
23868 * except.c: Fix comment typos.
23869 * loop.c: Likewise.
23870 * varasm.c: Likewise.
23871 * doc/tm.texi: Fix a typo.
23873 2002-01-02 Jakub Jelinek <jakub@redhat.com>
23875 * c-typeck.c (output_init_element): Allow initializing static storage
23876 duration objects with compound literals.
23878 2002-01-02 Richard Henderson <rth@redhat.com>
23880 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
23883 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23885 * gcc.c (default_compilers): Const-ify.
23886 * mips-tdump.c (stab_names): Likewise.
23887 * mips-tfile.c (map_coff_types, map_coff_storage,
23888 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
23889 pseudo_ops_t, pseudo_ops): Likewise.
23890 * protoize.c (default_include): Likewise
23892 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
23893 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
23894 Add array size in declaration.
23895 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
23896 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
23897 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
23898 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
23899 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
23900 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
23901 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
23902 emtens, make_nan): Const-ify.
23903 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
23904 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
23906 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
23908 * config.gcc (ia64-*-*): Set extra_headers.
23909 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
23910 * config/alpha/t-osf: Remove.
23911 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
23913 2002-01-02 David Edelsohn <edelsohn@gnu.org>
23915 * config/rs6000/t-aix43: Revert previous change.
23917 2002-01-02 Jason Merrill <jason@redhat.com>
23919 * c-decl.c (c_expand_body): Call outlining_inline_function when
23920 emitting an inline function out of line.
23922 2002-01-02 Richard Henderson <rth@redhat.com>
23924 * dwarf2out.c (limbo_die_node): Add created_for member.
23925 (new_die): New argument created_for. Update all callers.
23926 (mark_limbo_die_list): New.
23927 (dwarf2out_init): Register limbo_die_list as a root.
23928 (dwarf2out_finish): Force insert limbo dies into their function
23931 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
23934 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
23936 2002-01-02 Kazu Hirata <kazu@hxi.com>
23938 * config/h8300/fixunssfsi.c: Update copyright.
23941 * config/h8300/h8300.c: Update copyright.
23942 Eliminate warnings.
23944 2002-01-02 Kazu Hirata <kazu@hxi.com>
23946 * config/romp/romp.c: Fix comment formatting.
23947 * config/romp/romp.h: Likewise.
23948 * config/romp/romp.md: Likewise.
23949 * config/s390/s390.c: Likewise.
23950 * config/stormy16/stormy16.c: Likewise.
23951 * config/stormy16/stormy16.h: Likewise.
23953 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
23955 * c-common.h (genrtl_expr_stmt_value): Declare.
23956 * c-semantics.c (genrtl_goto_stmt): Redirect to...
23957 (genrtl_goto_stmt_value): ... this new function. Pass new
23958 argument down to expand_expr_stmt_value, taking
23959 TREE_ADDRESSABLE into account.
23960 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
23961 STMT_EXPR as addressable, i.e., one whose result we want.
23962 * expr.c (expand_expr): Don't save expression statement value
23963 of labeled_blocks or loop_exprs.
23964 * stmt.c (expand_expr_stmt): Redirect to...
23965 (expand_expr_stmt_value): ... this new function. Use new
23966 argument to tell whether to save expression value.
23967 (expand_end_stmt_expr): Reset last_expr_type and
23968 last_expr_value if we don't have either.
23969 * tree-inline.c (declare_return_variable): Mark its use
23970 statement as addressable.
23971 * tree.h: Document new use of TREE_ADDRESSABLE.
23972 (expand_expr_stmt_value): Declare.
23974 2002-01-01 Tom Rix <trix@redhat.com>
23976 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
23977 rs6000_emit_allocate_stack.
23979 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
23981 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
23982 ${srcdir}/ginclude/ to every entry in extra_headers.
23983 * configure: Regenerate.
23984 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
23985 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
23986 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
23987 * ginclude/proto.h: Rename to config/convex/proto.h.
23989 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23991 * attribs.c (handle_vector_size_attribute): Use host_integerp
23992 and tree_int_cst; remove warnings.
23993 * caller-save.c (insert_restore): Add cast to get rid of warning.
23994 (insert_save): Likewise.
23995 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
23996 * regmove.c (find_matches): Add temporary var to kill a warning.
23998 2002-01-01 Douglas B Rupp <rupp@gnat.com>
24000 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
24001 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
24002 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
24003 (vms-dwarf2eh.o): Add Makefile rule.
24004 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
24005 * config/alpha/vms-dwarf2eh.asm: New file.
24007 * gcc.c (delete_if_ordinary): Delete all versions.
24009 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
24011 * config/mmix/mmix.md: Update FIXME to not mention
24013 (MMIX_rJ_REGNUM): New define_constants constant.
24014 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
24015 "*movdicc_real"): Adjust contraints formatting.
24016 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
24017 for branch prediction.
24018 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
24020 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
24021 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
24022 number. Delete related FIXMEs.
24023 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
24024 from number to MMIX_rJ_REGNUM.
24025 (TARGET_MASK_BRANCH_PREDICT): New.
24026 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
24027 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
24028 value. Add -mbranch-predict and -mno-branch-predict.
24029 (TARGET_VERSION): Drop date.
24030 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
24031 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
24032 for finding out global symbols.
24033 (mmix_asm_output_labelref): Revert condition for global symbol.
24034 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
24035 (mmix_print_operand_punct_valid_p): A '+' is valid.
24037 See ChangeLog.6 for earlier changes.